From 15f383564cb1d348ee72ece830747799eac6f560 Mon Sep 17 00:00:00 2001 From: Vladyslava Holovan Date: Mon, 27 Nov 2023 13:09:31 +0200 Subject: [PATCH] new docs --- docs/index.html | 2 +- ...411c5332240ccd6e4.js => main-es2017.1266a674d5191a48133a.js} | 2 +- ...02f411c5332240ccd6e4.js => main-es5.1266a674d5191a48133a.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename docs/{main-es2017.02f411c5332240ccd6e4.js => main-es2017.1266a674d5191a48133a.js} (94%) rename docs/{main-es5.02f411c5332240ccd6e4.js => main-es5.1266a674d5191a48133a.js} (94%) diff --git a/docs/index.html b/docs/index.html index 8a98e24..5f6c465 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/docs/main-es2017.02f411c5332240ccd6e4.js b/docs/main-es2017.1266a674d5191a48133a.js similarity index 94% rename from docs/main-es2017.02f411c5332240ccd6e4.js rename to docs/main-es2017.1266a674d5191a48133a.js index 4a8bf4a..f629b43 100644 --- a/docs/main-es2017.02f411c5332240ccd6e4.js +++ b/docs/main-es2017.1266a674d5191a48133a.js @@ -1 +1 @@ -(self.webpackChunkblog=self.webpackChunkblog||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},9542:function(t,e,n){"use strict";function r(t){return"function"==typeof t}let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=_(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function E(t){return t&&"function"==typeof t.schedule}function k(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new A(t,e))}}class A{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new O(t,this.project,this.thisArg))}}class O extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const T=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return T(t);if(D(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[I])return e=t,t=>{const n=e[I]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n};function N(t,e){return new v(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(D(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(R(t))return N(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[I](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(M(t))}class j extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function U(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let n;try{n=M(t)(e)}catch(r){e.error(r)}return n}function F(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(F((n,r)=>V(t(n,r)).pipe(k((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return F(y,t)}function B(t,e){return e?N(t,e):new v(T(t))}function q(){return function(t){return t.lift(new G(t))}}class G{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new W(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class W extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Z extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const Q=(()=>{const t=Z.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 Y extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function K(){return new S}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 X(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).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 et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=J({__forward_ref__:J});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return tt(this())},t}function st(t){return it(t)?t():t}function it(t){return"function"==typeof t&&t.hasOwnProperty(nt)&&t.__forward_ref__===rt}class ot extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function at(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():at(t)}function ct(t,e){const n=e?` in ${e}`:"";throw new ot("201",`No provider for ${lt(t)} found${n}`)}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,gt)||pt(t,yt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(vt))?t[mt]:null}const gt=J({"\u0275prov":J}),mt=J({"\u0275inj":J}),yt=J({ngInjectableDef:J}),vt=J({ngInjectorDef:J});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let bt;function wt(t){const e=bt;return bt=t,e}function Ct(t,e,n){const r=dt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==e?e:void ct(tt(t),"Injector")}function St(t){return{toString:t}.toString()}var xt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Et=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const kt="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Pt=kt||Tt||At||Ot,It={},Rt=[],Dt=J({"\u0275cmp":J}),Mt=J({"\u0275dir":J}),Nt=J({"\u0275pipe":J}),Vt=J({"\u0275mod":J}),jt=J({"\u0275loc":J}),Lt=J({"\u0275fac":J}),Ut=J({__NG_ELEMENT_ID__:J});let Ft=0;function Ht(t){return St(()=>{const e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Rt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||Rt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=Ft++,n.inputs=Gt(t.inputs,e),n.outputs=Gt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map($t):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(zt):null,n})}function $t(t){return Qt(t)||function(t){return t[Mt]||null}(t)}function zt(t){return function(t){return t[Nt]||null}(t)}const Bt={};function qt(t){return St(()=>{const e={type:t.type,bootstrap:t.bootstrap||Rt,declarations:t.declarations||Rt,imports:t.imports||Rt,exports:t.exports||Rt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Bt[t.id]=t.type),e})}function Gt(t,e){if(null==t)return It;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Wt=Ht;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Qt(t){return t[Dt]||null}function Yt(t,e){const n=t[Vt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}function Kt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Jt(t){return Array.isArray(t)&&!0===t[1]}function Xt(t){return 0!=(8&t.flags)}function te(t){return 2==(2&t.flags)}function ee(t){return 1==(1&t.flags)}function ne(t){return null!==t.template}function re(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}class se{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ie(){return oe}function oe(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ae}function ae(){const t=ce(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===It)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,n,r){const s=ce(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:It,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new se(l&&l.currentValue,e,o===It),t[r]=e}function ce(t){return t.__ngSimpleChanges__||null}let ue;function he(t){return!!t.listen}ie.ngInherit=!0;const de={createRenderer:(t,e)=>void 0!==ue?ue:"undefined"!=typeof document?document:void 0};function pe(t){for(;Array.isArray(t);)t=t[0];return t}function fe(t,e){return pe(e[t])}function ge(t,e){return pe(e[t.index])}function me(t,e){return t.data[e]}function ye(t,e){return t[e]}function ve(t,e){const n=e[t];return Kt(n)?n:n[0]}function _e(t){return 4==(4&t[2])}function be(t){return 128==(128&t[2])}function we(t,e){return null==e?null:t[e]}function Ce(t){t[18]=0}function Se(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 xe={lFrame:qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ee(){return xe.bindingsEnabled}function ke(){return xe.lFrame.lView}function Ae(){return xe.lFrame.tView}function Oe(t){return xe.lFrame.contextLView=t,t[8]}function Te(){let t=Pe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Pe(){return xe.lFrame.currentTNode}function Ie(t,e){const n=xe.lFrame;n.currentTNode=t,n.isParent=e}function Re(){return xe.lFrame.isParent}function De(){return xe.isInCheckNoChangesMode}function Me(t){xe.isInCheckNoChangesMode=t}function Ne(){const t=xe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ve(){return xe.lFrame.bindingIndex++}function je(t,e){const n=xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Le(e)}function Le(t){xe.lFrame.currentDirectiveIndex=t}function Ue(){return xe.lFrame.currentQueryIndex}function Fe(t){xe.lFrame.currentQueryIndex=t}function He(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function $e(t,e,n){if(n&_t.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&_t.Host||(r=He(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=xe.lFrame=Be();return r.currentTNode=e,r.lView=t,!0}function ze(t){const e=Be(),n=t[1];xe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Be(){const t=xe.lFrame,e=null===t?null:t.child;return null===e?qe(t):e}function qe(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 Ge(){const t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const We=Ge;function Ze(){const t=Ge();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 Qe(){return xe.lFrame.selectedIndex}function Ye(t){xe.lFrame.selectedIndex=t}function Ke(){const t=xe.lFrame;return me(t.tView,t.selectedIndex)}function Je(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}class sn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function on(t,e,n){const r=he(t);let s=0;for(;se){o=i-1;break}}}for(;i>16,r=e;for(;n>0;)r=r[15],n--;return r}let fn=!0;function gn(t){const e=fn;return fn=t,e}let mn=0;function yn(t,e){const n=_n(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,vn(r.data,t),vn(e,null),vn(r.blueprint,null));const s=bn(t,e),i=t.injectorIndex;if(hn(s)){const t=dn(s),n=pn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function vn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function _n(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function bn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function wn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ut)&&(r=n[Ut]),null==r&&(r=n[Ut]=mn++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:kn:e}(n);if("function"==typeof i){if(!$e(e,t,r))return r&_t.Host?Cn(s,n,r):Sn(e,n,r,s);try{const t=i(r);if(null!=t||r&_t.Optional)return t;ct(n)}finally{We()}}else if("number"==typeof i){let s=null,o=_n(t,e),a=-1,l=r&_t.Host?e[16][6]:null;for((-1===o||r&_t.SkipSelf)&&(a=-1===o?bn(t,e):e[o+8],-1!==a&&In(r,!1)?(s=e[1],o=dn(a),e=pn(a,e)):o=-1);-1!==o;){const t=e[1];if(Pn(i,o,t.data)){const t=An(o,e,n,s,r,l);if(t!==En)return t}a=e[o+8],-1!==a&&In(r,e[1].data[o+8]===l)&&Pn(i,o,e)?(s=t,o=dn(a),e=pn(a,e)):o=-1}}}return Sn(e,n,r,s)}const En={};function kn(){return new Rn(Te(),ke())}function An(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=On(a,o,n,null==r?te(a)&&fn:r!=o&&0!=(3&a.type),s&_t.Host&&i===a);return null!==l?Tn(e,o,l,a):En}function On(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&ne(t)&&t.type===n)return l}return null}function Tn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof sn){const o=s;o.resolving&&function(t,e){throw new ot("200",`Circular dependency in DI detected for ${t}`)}(lt(i[n]));const a=gn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?wt(o.injectImpl):null;$e(t,r,_t.Default);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const r=oe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&wt(l),gn(a),o.resolving=!1,We()}}return s}function Pn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Lt]||Mn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Lt]||Mn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Mn(t){return it(t)?()=>{const e=Mn(st(t));return e&&e()}:re(t)}function Nn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class jn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ln=new jn("AnalyzeForEntryComponents"),Un=Function;function Fn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Hn(t,e):e(t))}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function zn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bn(t,e,n){let r=Gn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function qn(t,e){const n=Gn(t,e);if(n>=0)return t[1|n]}function Gn(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const Wn={},Zn=/\n/gm,Qn=J({provide:String,useValue:J});let Yn;function Kn(t){const e=Yn;return Yn=t,e}function Jn(t,e=_t.Default){if(void 0===Yn)throw new Error("inject() must be called from an injection context");return null===Yn?Ct(t,void 0,e):Yn.get(t,e&_t.Optional?null:void 0,e)}function Xn(t,e=_t.Default){return(bt||Jn)(st(t),e)}function tr(t){const e=[];for(let n=0;n({token:t})),-1),rr=er(Vn("Optional"),8),sr=er(Vn("SkipSelf"),4);class ir{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function or(t){return t instanceof ir?t.changingThisBreaksApplicationSecurity:t}const ar=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,lr=/^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 cr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ur(t){const e=function(){const t=ke();return t&&t[12]}();return e?e.sanitize(cr.URL,t)||"":function(t,e){const n=function(t){return t instanceof ir&&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}(t,"URL")?or(t):(n=at(t),(n=String(n)).match(ar)||n.match(lr)?n:"unsafe:"+n);var n}function hr(t,e){t.__ngContext__=e}function dr(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function pr(t){return t.ngDebugContext}function fr(t){return t.ngOriginalError}function gr(t,...e){t.error(...e)}class mr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||gr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?pr(t)?pr(t):this._findContext(fr(t)):null}_findOriginalError(t){let e=fr(t);for(;e&&fr(e);)e=fr(e);return e}}const yr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function vr(t){return t instanceof Function?t():t}var _r=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function br(t,e){return(void 0)(t,e)}function wr(t){const e=t[3];return Jt(e)?e[3]:e}function Cr(t){return xr(t[13])}function Sr(t){return xr(t[4])}function xr(t){for(;null!==t&&!Jt(t);)t=t[4];return t}function Er(t,e,n,r,s){if(null!=r){let i,o=!1;Jt(r)?i=r:Kt(r)&&(o=!0,r=r[0]);const a=pe(r);0===t&&null!==n?null==s?Rr(e,n,a):Ir(e,n,a,s||null,!0):1===t&&null!==n?Ir(e,n,a,s||null,!0):2===t?function(t,e,n){const r=Mr(t,e);r&&function(t,e,n,r){he(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==pe(n)&&Er(e,t,r,i,s);for(let o=10;o0&&(t[n-1][4]=r[4]);const o=zn(t,10+e);Fr(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Tr(t,e){if(!(256&e[2])){const n=e[11];he(n)&&n.destroyNode&&Fr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Pr(t[1],t);for(;e;){let n=null;if(Kt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Kt(e)&&Pr(e[1],e),e=e[3];null===e&&(e=t),Kt(e)&&Pr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Pr(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=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const t=r[s=n[i+1]];n[i].call(t)}if(null!==r){for(let t=s+1;ti?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Br(e,c,0)||2&r&&c!==t){if(Qr(r))return!1;o=!0}}}}else{if(!o&&!Qr(r)&&!Qr(l))return!1;if(o&&Qr(l))continue;o=!1,r=l|1&r}}return Qr(r)||o}function Qr(t){return 0==(1&t)}function Yr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Qr(o)||(e+=Jr(i,s),s=""),r=o,i=i||!Qr(r);n++}return""!==s&&(e+=Jr(i,s)),e}const ts={};function es(t){ns(Ae(),ke(),Qe()+t,De())}function ns(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Xe(e,r,n)}else{const r=t.preOrderHooks;null!==r&&tn(e,r,0,n)}Ye(n)}function rs(t,e){return t<<17|e<<2}function ss(t){return t>>17&32767}function is(t){return 2|t}function os(t){return(131068&t)>>2}function as(t,e){return-131069&t|e<<2}function ls(t){return 1|t}function cs(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&ns(t,e,20,De()),n(r,s)}finally{Ye(i)}}function ys(t,e,n){Ee()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||yn(n,e),hr(r,e);const o=n.initialInputs;for(let a=s;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function ks(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function As(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Os(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Vs(n)}}function Vs(t){for(let n=Cr(t);null!==n;n=Sr(n))for(let t=10;t0&&Vs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Vs(r)}}function js(t,e){const n=ve(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Bs(t){return t[7]||(t[7]=[])}function qs(t){return t.cleanup||(t.cleanup=[])}function Gs(t,e){const n=t[9],r=n?n.get(mr,null):null;r&&r.handleError(e)}function Ws(t,e,n,r,s){for(let i=0;ithis.processProvider(n,t,e)),Hn([t],t=>this.processInjectorType(t,[],s)),this.records.set(Qs,oi(void 0,this));const i=this.records.get(Ks);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Wn,n=_t.Default){this.assertNotDestroyed();const r=Kn(this);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof jn)&&dt(t);e=n&&this.injectableDefInScope(n)?oi(si(t),Js):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?ei():this.parent).get(t,e=n&_t.Optional&&e===Wn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(tt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=tt(e);if(Array.isArray(e))s=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):tt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Zn,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{Kn(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let r=ft(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=ft(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{Hn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Rt))}}this.injectorDefTypes.add(i);const a=re(i)||(()=>new i);this.records.set(i,oi(a,Js));const l=r.providers;if(null!=l&&!o){const e=t;Hn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=li(t=st(t))?t:st(t&&t.provide);const s=function(t,e,n){return ai(t)?oi(void 0,t.useValue):oi(ii(t),Js)}(t);if(li(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=oi(void 0,Js,!0),e.factory=()=>tr(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Js&&(e.value=Xs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=st(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function si(t){const e=dt(t),n=null!==e?e.factory:re(t);if(null!==n)return n;if(t instanceof jn)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function ii(t,e,n){let r;if(li(t)){const e=st(t);return re(e)||si(e)}if(ai(t))r=()=>st(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...tr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Xn(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return re(e)||si(e);r=()=>new e(...tr(t.deps))}var s;return r}function oi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ai(t){return null!==t&&"object"==typeof t&&Qn in t}function li(t){return"function"==typeof t}const ci=function(t,e,n){return function(t,e=null,n=null,r){const s=ni(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ui=(()=>{class t{static create(t,e){return Array.isArray(t)?ci(t,e,""):ci(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Wn,t.NULL=new Ys,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Xn(Qs)}),t.__NG_ELEMENT_ID__=-1,t})();function hi(t,e){Je(dr(t)[1],Te())}function di(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(ne(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=pi(t.inputs),e.declaredInputs=pi(t.declaredInputs),e.outputs=pi(t.outputs);const n=s.hostBindings;n&&mi(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&fi(t,i),o&&gi(t,o),X(t.inputs,s.inputs),X(t.declaredInputs,s.declaredInputs),X(t.outputs,s.outputs),ne(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=cn(s.hostAttrs,n=cn(n,s.hostAttrs))}}(r)}function pi(t){return t===It?{}:t===Rt?[]:t}function fi(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function gi(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function mi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let yi=null;function vi(){if(!yi){const t=Pt.Symbol;if(t&&t.iterator)yi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(pe(t[r.index])):r.index;if(he(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Li(r,e,0,i,!1);const t=n.listen(p,s,i);u.push(i,t),c&&c.push(s,g,f,f+1)}}else i=Li(r,e,0,i,!0),p.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,f,o)}else i=Li(r,e,0,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,xe.lFrame.contextLView))[8]}(t)}function Fi(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?ss(i):os(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Hi(t[a],e)&&(l=!0,t[a+1]=r?ls(n):is(n)),a=r?ss(n):os(n)}l&&(t[n+1]=r?is(i):ls(i))}function Hi(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Gn(t,e)>=0}function $i(t,e){return function(t,e,n,r){const s=ke(),i=Ae(),o=function(t){const e=xe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();i.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const r=s[Qe()],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(r)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=e.residualClasses;if(null===s)0===e.classBindings&&(n=Bi(n=zi(null,t,e,n,true),e.attrs,true),i=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(n=zi(s,t,e,n,true),null===i){let n=function(t,e,n){const r=e.classBindings;if(0!==os(r))return t[ss(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=zi(null,t,e,n[1],true),n=Bi(n,e.attrs,true),function(t,e,n,r){t[ss(e.classBindings)]=r}(t,e,0,n))}else i=function(t,e,n){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ss(t[a+1]);t[r+1]=rs(e,a),0!==e&&(t[e+1]=as(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=rs(a,0),0!==a&&(t[a+1]=as(t[a+1],r)),a=r;else t[r+1]=rs(l,0),0===a?a=r:t[l+1]=as(t[l+1],r),l=r;u&&(t[r+1]=is(t[r+1])),Fi(t,c,r,!0),Fi(t,c,r,!1),function(t,e,n,r,s){const i=t.residualClasses;null!=i&&"string"==typeof e&&Gn(i,e)>=0&&(n[r+1]=ls(n[r+1]))}(e,c,t,r),o=rs(a,l),e.classBindings=o}(s,r,e,n,i)}}(i,t,o),e!==ts&&Si(s,o,e)&&function(t,e,n,r,s,i,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Gi(1==(1&c)?qi(l,e,n,s,os(c),true):void 0)||(Gi(i)||function(t){return 2==(2&t)}(c)&&(i=qi(l,null,n,s,a,true)),function(t,e,n,r,s){const i=he(t);s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r)}(r,0,fe(Qe(),n),s,i))}(i,i.data[Qe()],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=tt(or(t))),t}(e),0,o)}(t,e),$i}function zi(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===ts&&(u=c?Rt:void 0);let h=c?qn(u,r):l===r?u:void 0;if(i&&!Gi(h)&&(h=qn(e,r)),Gi(h)&&(a=h,o))return a;const d=t[s+1];s=o?ss(d):os(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=qn(t,r))}return a}function Gi(t){return void 0!==t}function Wi(t,e=""){const n=ke(),r=Ae(),s=t+20,i=r.firstCreatePass?hs(r,s,1,e,null):r.data[s],o=n[s]=function(t,e){return he(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Nr(r,n,o,i),Ie(i,!1)}function Zi(t){return Qi("",t,""),Zi}function Qi(t,e,n){const r=ke(),s=function(t,e,n,r){return Si(t,Ve(),n)?e+at(n)+r:ts}(r,t,e,n);return s!==ts&&function(t,e,n){const r=fe(e,t);!function(t,e,n){he(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,Qe(),s),Qi}function Yi(t,e,n){const r=ke();return Si(r,Ve(),e)&&Ss(Ae(),Ke(),r,t,e,r[11],n,!0),Yi}const Ki=void 0;var Ji=["en",[["a","p"],["AM","PM"],Ki],[["AM","PM"],Ki,Ki],[["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"]],Ki,[["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"]],Ki,[["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}",Ki,"{1} 'at' {0}",Ki],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Xi={};function to(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=eo(e);if(n)return n;const r=e.split("-")[0];if(n=eo(r),n)return n;if("en"===r)return Ji;throw new Error(`Missing locale data for the locale "${t}".`)}function eo(t){return t in Xi||(Xi[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Xi[t]}var no=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ro="en-US";function so(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ro=t.toLowerCase().replace(/_/g,"-"))}function io(t,e,n,r,s){if(t=st(t),Array.isArray(t))for(let i=0;i>20;if(li(t)||!t.multi){const r=new sn(l,s,Ai),p=lo(a,e,s?u:u+d,h);-1===p?(wn(yn(c,o),i,a),oo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=lo(a,e,u+d,h),f=lo(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){wn(yn(c,o),i,a);const u=function(t,e,n,r,s){const i=new sn(t,n,Ai);return i.multi=[],i.index=e,i.componentProviders=0,ao(i,s,r&&!n),i}(s?uo:co,n.length,s,r,l);!s&&m&&(n[f].providerFactory=u),oo(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else oo(i,t,p>-1?p:f,ao(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function oo(t,e,n,r){const s=li(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function ao(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function lo(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Ae();if(r.firstCreatePass){const s=ne(t);io(n,r.data,r.blueprint,s,!0),io(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class fo{}class go{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let mo=(()=>{class t{}return t.NULL=new go,t})();function yo(...t){}function vo(t,e){return new bo(ge(t,e))}const _o=function(){return vo(Te(),ke())};let bo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=_o,t})();function wo(t){return t instanceof bo?t.nativeElement:t}class Co{}let So=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xo(),t})();const xo=function(){const t=ke(),e=ve(Te().index,t);return function(t){return t[11]}(Kt(e)?e:t)};let Eo=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class ko{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ao=new ko("12.0.5");class Oo{constructor(){}supports(t){return bi(t)}create(t){return new Po(t)}}const To=(t,e)=>e;class Po{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||To}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Io(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Do),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Do),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Io{constructor(t,e){this.item=t,this.trackById=e,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 Ro{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Do{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ro,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mo(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new jo(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class jo{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Lo(){return new Uo([new Oo])}let Uo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Lo()),deps:[[t,new sr,new rr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:Lo}),t})();function Fo(){return new Ho([new No])}let Ho=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Fo()),deps:[[t,new sr,new rr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:Fo}),t})();function $o(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(pe(i)),Jt(i))for(let t=10;t-1&&(Or(t,n),zn(e,n))}this._attachedToViewContainer=!1}Tr(this._lView[1],this._lView)}onDestroy(t){ws(this._lView[1],this._lView,null,t)}markForCheck(){Us(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Me(!0);try{Fs(t,e,n)}finally{Me(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Fr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Bo extends zo{constructor(t){super(t),this._view=t}detectChanges(){Hs(this._view)}checkNoChanges(){!function(t){Me(!0);try{Hs(t)}finally{Me(!1)}}(this._view)}get context(){return null}}const qo=function(t){return function(t,e,n){if(te(t)&&!n){const n=ve(t.index,e);return new zo(n,n)}return 47&t.type?new zo(e[16],e):null}(Te(),ke(),16==(16&t))};let Go=(()=>{class t{}return t.__NG_ELEMENT_ID__=qo,t})();const Wo=[new No],Zo=new Uo([new Oo]),Qo=new Ho(Wo),Yo=function(){return ta(Te(),ke())};let Ko=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yo,t})();const Jo=Ko,Xo=class extends Jo{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=us(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),ps(e,n,t),new zo(n)}};function ta(t,e){return 4&t.type?new Xo(e,t,vo(t,e)):null}class ea{}class na{}const ra=function(){return ca(Te(),ke())};let sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=ra,t})();const ia=sa,oa=class extends ia{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return vo(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){const t=bn(this._hostTNode,this._hostLView);if(hn(t)){const e=pn(t,this._hostLView),n=dn(t);return new Rn(e[1].data[n+8],e)}return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=aa(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(ea,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(Jt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new oa(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=e),ryr});class fa extends fo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Xr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return da(this.componentDef.inputs)}get outputs(){return da(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,ua,s);return i!==ua||r===ua?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(Co,de),o=s.get(Eo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(he(t))return t.selectRootElement(e,n===Et.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):kr(i.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:yr,clean:zs,playerHandler:null,flags:0},d=bs(0,null,null,1,0,null,null,null,null,null),p=us(null,d,h,u,null,null,i,a,o,s);let f,g;ze(p);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=hs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Zs(a,l,!0),null!==t&&(on(s,t,l),null!==a.classes&&zr(s,t,a.classes),null!==a.styles&&$r(s,t,a.styles)));const c=r.createRenderer(t,e),u=us(n,_s(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(wn(yn(a,n),o,e.type),As(o,a),Ts(a,n.length,1)),Ls(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)on(a,c,["ng-version",Ao.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&zr(a,c,e.join(" "))}if(g=me(d,20),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Te();e.contentQueries(1,o,t.directiveStart)}const a=Te();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ye(a.index),Es(n[1],a,0,a.directiveStart,a.directiveEnd,e),ks(e,o)),o}(t,this.componentDef,p,h,[hi]),ps(d,p,null)}finally{Ze()}return new ga(this.componentType,f,vo(g,p),p,g)}}class ga extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Bo(r),this.componentType=t}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const ma=new Map;class ya extends ea{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ha(this);const n=Yt(t),r=t[jt]||null;r&&so(r),this._bootstrapComponents=vr(n.bootstrap),this._r3Injector=ni(t,e,[{provide:ea,useValue:this},{provide:mo,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ui.THROW_IF_NOT_FOUND,n=_t.Default){return t===ui||t===ea||t===Qs?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class va extends na{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(t){const e=new Set;!function t(n){const r=Yt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(s,ma.get(s),n),ma.set(s,n));const i=vr(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new ya(this.moduleType,t)}}function _a(t,e){const n=t[e];return n===ts?void 0:n}function ba(t,e){const n=Ae();let r;const s=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new ot("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=re(r.type)),o=wt(Ai);try{const t=gn(!1),e=i();return gn(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,ke(),s,e),e}finally{wt(o)}}function wa(t,e,n){const r=t+20,s=ke(),i=ye(s,r);return xa(s,Sa(s,r)?function(t,e,n,r,s,i){const o=e+n;return Si(t,o,s)?Ci(t,o+1,i?r.call(i,s):r(s)):_a(t,o+1)}(s,Ne(),e,i.transform,n,i):i.transform(n))}function Ca(t,e,n,r){const s=t+20,i=ke(),o=ye(i,s);return xa(i,Sa(i,s)?function(t,e,n,r,s,i,o){const a=e+n;return xi(t,a,s,i)?Ci(t,a+2,o?r.call(o,s,i):r(s,i)):_a(t,a+2)}(i,Ne(),e,o.transform,n,r,o):o.transform(n,r))}function Sa(t,e){return t[1].data[e].pure}function xa(t,e){return _i.isWrapped(e)&&(e=_i.unwrap(e),t[xe.lFrame.bindingIndex]=ts),e}function Ea(t){return e=>{setTimeout(t,void 0,e)}}const ka=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,i;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}this.__isAsync&&(a=Ea(a),o&&(o=Ea(o)),l&&(l=Ea(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof h&&t.add(c),c}};function Aa(){return this._results[vi()]()}class Oa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=vi(),n=Oa.prototype;n[e]||(n[e]=Aa)}get changes(){return this._changes||(this._changes=new ka)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const n=Fn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r0)r.push(o[t/2]);else{const s=i[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=yo,this.reject=yo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Xn(qa,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Wa=new jn("AppId"),Za={provide:Wa,useFactory:function(){return`${Qa()}${Qa()}${Qa()}`},deps:[]};function Qa(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ya=new jn("Platform Initializer"),Ka=new jn("Platform ID"),Ja=new jn("appBootstrapListener");let Xa=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const tl=new jn("LocaleId"),el=new jn("DefaultCurrencyCode");class nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rl=function(t){return new va(t)},sl=rl,il=function(t){return Promise.resolve(rl(t))},ol=function(t){const e=rl(t),n=vr(Yt(t).declarations).reduce((t,e)=>{const n=Qt(e);return n&&t.push(new fa(n)),t},[]);return new nl(e,n)},al=ol,ll=function(t){return Promise.resolve(ol(t))};let cl=(()=>{class t{constructor(){this.compileModuleSync=sl,this.compileModuleAsync=il,this.compileModuleAndAllComponentsSync=al,this.compileModuleAndAllComponentsAsync=ll}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const ul=(()=>Promise.resolve(0))();function hl(t){"undefined"==typeof Zone?ul.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class dl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ka(!1),this.onMicrotaskEmpty=new ka(!1),this.onStable=new ka(!1),this.onError=new ka(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&e,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.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(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gl(t),t.isCheckStableRunning=!0,fl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return ml(t),n.invokeTask(s,i,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),yl(t)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return ml(t),n.invoke(s,i,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),yl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,gl(t),fl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(dl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,pl,yo,yo);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const pl={};function fl(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 gl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ml(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function yl(t){t._nesting--,fl(t)}class vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ka,this.onMicrotaskEmpty=new ka,this.onStable=new ka,this.onError=new ka}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let _l=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{dl.assertNotInAngularZone(),hl(()=>{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())hl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Xn(dl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{constructor(){this._applications=new Map,Sl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class wl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Cl,Sl=new wl,xl=!0,El=!1;const kl=new jn("AllowMultipleToken");class Al{constructor(t,e){this.name=t,this.token=e}}function Ol(t,e,n=[]){const r=`Platform: ${e}`,s=new jn(r);return(e=[])=>{let i=Tl();if(!i||i.injector.get(kl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ks,useValue:"platform"});!function(t){if(Cl&&!Cl.destroyed&&!Cl.injector.get(kl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cl=t.get(Pl);const e=t.get(Ya,null);e&&e.forEach(t=>t())}(ui.create({providers:t,name:r}))}return function(t){const e=Tl();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}(s)}}function Tl(){return Cl&&!Cl.destroyed?Cl:null}let Pl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vl:("zone.js"===t?void 0:t)||new dl({enableLongStackTrace:(El=!0,xl),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:dl,useValue:n}];return n.run(()=>{const e=ui.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(mr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{i.handleError(t)}});s.onDestroy(()=>{Dl(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return Mi(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Ga);return t.runInitializers(),t.donePromise.then(()=>(so(s.injector.get(tl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Il({},e);return function(t,e,n){const r=new va(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Rl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Il(t,e){return Array.isArray(e)?e.reduce(Il,t):Object.assign(Object.assign({},t),e)}let Rl=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,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 i=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{dl.assertNotInAngularZone(),hl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{dl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return E(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 v?t[0]:z(e)(B(t,n))}(i,o.pipe(t=>{return q()((e=K,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Q);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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 n;n=t instanceof fo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ea),s=n.create(ui.NULL,[],e||n.selector,r),i=s.location.nativeElement,o=s.injector.get(_l,null),a=o&&s.injector.get(bl);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),Dl(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Dl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ja,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Xn(dl),Xn(ui),Xn(mr),Xn(mo),Xn(Ga))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Dl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ml{}class Nl{}const Vl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Vl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(8255)(e).then(t=>t[r]).then(t=>Ll(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Ll(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Xn(cl),Xn(Nl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Ll(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Ul=Ol(null,"core",[{provide:Ka,useValue:"unknown"},{provide:Pl,deps:[ui]},{provide:bl,deps:[]},{provide:Xa,deps:[]}]),Fl=[{provide:Rl,useClass:Rl,deps:[dl,ui,mr,mo,Ga]},{provide:pa,deps:[dl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ga,useClass:Ga,deps:[[new rr,qa]]},{provide:cl,useClass:cl,deps:[]},Za,{provide:Uo,useFactory:function(){return Zo},deps:[]},{provide:Ho,useFactory:function(){return Qo},deps:[]},{provide:tl,useFactory:function(t){return so(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new nr(tl),new rr,new sr]]},{provide:el,useValue:"USD"}];let Hl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rl))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Fl}),t})(),$l=null;function zl(){return $l}const Bl=new jn("DocumentToken");let ql=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Gl,token:t,providedIn:"platform"}),t})();function Gl(){return Xn(Zl)}const Wl=new jn("Location Initialized");let Zl=(()=>{class t extends ql{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zl().getBaseHref(this._doc)}onPopState(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){Ql()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Ql()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({factory:Yl,token:t,providedIn:"platform"}),t})();function Ql(){return!!window.history.pushState}function Yl(){return new Zl(Xn(Bl))}function Kl(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 Jl(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 Xl(t){return t&&"?"!==t[0]?"?"+t:t}let tc=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:ec,token:t,providedIn:"root"}),t})();function ec(t){const e=Xn(Bl).location;return new rc(Xn(ql),e&&e.origin||"")}const nc=new jn("appBaseHref");let rc=(()=>{class t extends tc{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Kl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Xl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+Xl(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+Xl(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ql),Xn(nc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),sc=(()=>{class t extends tc{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Kl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+Xl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+Xl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ql),Xn(nc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),ic=(()=>{class t{constructor(t,e){this._subject=new ka,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Jl(ac(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Xl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ac(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Xn(tc),Xn(ql))},t.normalizeQueryParams=Xl,t.joinWithSlash=Kl,t.stripTrailingSlash=Jl,t.\u0275prov=ut({factory:oc,token:t,providedIn:"root"}),t})();function oc(){return new ic(Xn(tc),Xn(ql))}function ac(t){return t.replace(/\/index.html$/,"")}var lc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),cc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),uc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),hc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),dc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function pc(t,e){return vc(to(t)[no.DateFormat],e)}function fc(t,e){return vc(to(t)[no.TimeFormat],e)}function gc(t,e){return vc(to(t)[no.DateTimeFormat],e)}function mc(t,e){const n=to(t),r=n[no.NumberSymbols][e];if(void 0===r){if(e===dc.CurrencyDecimal)return n[no.NumberSymbols][dc.Decimal];if(e===dc.CurrencyGroup)return n[no.NumberSymbols][dc.Group]}return r}function yc(t){if(!t[no.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[no.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function vc(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function _c(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const bc=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,wc={},Cc=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Sc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),xc=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Ec=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function kc(t,e,n,r){let s=function(t){if(Uc(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,r=1]=t.split("-").map(t=>+t);return Ac(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(bc))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Uc(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Oc(n,e)||e;let i,o=[];for(;e;){if(i=Cc.exec(e),!i){o.push(e);break}{o=o.concat(i.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();r&&(a=Lc(r,a),s=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Lc(e,r)-r))}(s,r));let l="";return o.forEach(t=>{const e=function(t){if(jc[t])return jc[t];let e;switch(t){case"G":case"GG":case"GGG":e=Rc(Ec.Eras,uc.Abbreviated);break;case"GGGG":e=Rc(Ec.Eras,uc.Wide);break;case"GGGGG":e=Rc(Ec.Eras,uc.Narrow);break;case"y":e=Ic(xc.FullYear,1,0,!1,!0);break;case"yy":e=Ic(xc.FullYear,2,0,!0,!0);break;case"yyy":e=Ic(xc.FullYear,3,0,!1,!0);break;case"yyyy":e=Ic(xc.FullYear,4,0,!1,!0);break;case"Y":e=Vc(1);break;case"YY":e=Vc(2,!0);break;case"YYY":e=Vc(3);break;case"YYYY":e=Vc(4);break;case"M":case"L":e=Ic(xc.Month,1,1);break;case"MM":case"LL":e=Ic(xc.Month,2,1);break;case"MMM":e=Rc(Ec.Months,uc.Abbreviated);break;case"MMMM":e=Rc(Ec.Months,uc.Wide);break;case"MMMMM":e=Rc(Ec.Months,uc.Narrow);break;case"LLL":e=Rc(Ec.Months,uc.Abbreviated,cc.Standalone);break;case"LLLL":e=Rc(Ec.Months,uc.Wide,cc.Standalone);break;case"LLLLL":e=Rc(Ec.Months,uc.Narrow,cc.Standalone);break;case"w":e=Nc(1);break;case"ww":e=Nc(2);break;case"W":e=Nc(1,!0);break;case"d":e=Ic(xc.Date,1);break;case"dd":e=Ic(xc.Date,2);break;case"c":case"cc":e=Ic(xc.Day,1);break;case"ccc":e=Rc(Ec.Days,uc.Abbreviated,cc.Standalone);break;case"cccc":e=Rc(Ec.Days,uc.Wide,cc.Standalone);break;case"ccccc":e=Rc(Ec.Days,uc.Narrow,cc.Standalone);break;case"cccccc":e=Rc(Ec.Days,uc.Short,cc.Standalone);break;case"E":case"EE":case"EEE":e=Rc(Ec.Days,uc.Abbreviated);break;case"EEEE":e=Rc(Ec.Days,uc.Wide);break;case"EEEEE":e=Rc(Ec.Days,uc.Narrow);break;case"EEEEEE":e=Rc(Ec.Days,uc.Short);break;case"a":case"aa":case"aaa":e=Rc(Ec.DayPeriods,uc.Abbreviated);break;case"aaaa":e=Rc(Ec.DayPeriods,uc.Wide);break;case"aaaaa":e=Rc(Ec.DayPeriods,uc.Narrow);break;case"b":case"bb":case"bbb":e=Rc(Ec.DayPeriods,uc.Abbreviated,cc.Standalone,!0);break;case"bbbb":e=Rc(Ec.DayPeriods,uc.Wide,cc.Standalone,!0);break;case"bbbbb":e=Rc(Ec.DayPeriods,uc.Narrow,cc.Standalone,!0);break;case"B":case"BB":case"BBB":e=Rc(Ec.DayPeriods,uc.Abbreviated,cc.Format,!0);break;case"BBBB":e=Rc(Ec.DayPeriods,uc.Wide,cc.Format,!0);break;case"BBBBB":e=Rc(Ec.DayPeriods,uc.Narrow,cc.Format,!0);break;case"h":e=Ic(xc.Hours,1,-12);break;case"hh":e=Ic(xc.Hours,2,-12);break;case"H":e=Ic(xc.Hours,1);break;case"HH":e=Ic(xc.Hours,2);break;case"m":e=Ic(xc.Minutes,1);break;case"mm":e=Ic(xc.Minutes,2);break;case"s":e=Ic(xc.Seconds,1);break;case"ss":e=Ic(xc.Seconds,2);break;case"S":e=Ic(xc.FractionalSeconds,1);break;case"SS":e=Ic(xc.FractionalSeconds,2);break;case"SSS":e=Ic(xc.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Dc(Sc.Short);break;case"ZZZZZ":e=Dc(Sc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Dc(Sc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Dc(Sc.Long);break;default:return null}return jc[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ac(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Oc(t,e){const n=function(t){return to(t)[no.LocaleId]}(t);if(wc[n]=wc[n]||{},wc[n][e])return wc[n][e];let r="";switch(e){case"shortDate":r=pc(t,hc.Short);break;case"mediumDate":r=pc(t,hc.Medium);break;case"longDate":r=pc(t,hc.Long);break;case"fullDate":r=pc(t,hc.Full);break;case"shortTime":r=fc(t,hc.Short);break;case"mediumTime":r=fc(t,hc.Medium);break;case"longTime":r=fc(t,hc.Long);break;case"fullTime":r=fc(t,hc.Full);break;case"short":const e=Oc(t,"shortTime"),n=Oc(t,"shortDate");r=Tc(gc(t,hc.Short),[e,n]);break;case"medium":const s=Oc(t,"mediumTime"),i=Oc(t,"mediumDate");r=Tc(gc(t,hc.Medium),[s,i]);break;case"long":const o=Oc(t,"longTime"),a=Oc(t,"longDate");r=Tc(gc(t,hc.Long),[o,a]);break;case"full":const l=Oc(t,"fullTime"),c=Oc(t,"fullDate");r=Tc(gc(t,hc.Full),[l,c])}return r&&(wc[n][e]=r),r}function Tc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Pc(t,e,n="-",r,s){let i="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,i=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===xc.Hours)0===a&&-12===n&&(a=12);else if(t===xc.FractionalSeconds)return l=e,Pc(a,3).substr(0,l);var l;const c=mc(o,dc.MinusSign);return Pc(a,e,c,r,s)}}function Rc(t,e,n=cc.Format,r=!1){return function(s,i){return function(t,e,n,r,s,i){switch(n){case Ec.Months:return function(t,e,n){const r=to(t),s=vc([r[no.MonthsFormat],r[no.MonthsStandalone]],e);return vc(s,n)}(e,s,r)[t.getMonth()];case Ec.Days:return function(t,e,n){const r=to(t),s=vc([r[no.DaysFormat],r[no.DaysStandalone]],e);return vc(s,n)}(e,s,r)[t.getDay()];case Ec.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(i){const t=function(t){const e=to(t);return yc(e),(e[no.ExtraData][2]||[]).map(t=>"string"==typeof t?_c(t):[_c(t[0]),_c(t[1])])}(e),n=function(t,e,n){const r=to(t);yc(r);const s=vc([r[no.ExtraData][0],r[no.ExtraData][1]],e)||[];return vc(s,n)||[]}(e,s,r),i=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Sc.Short:return(s>=0?"+":"")+Pc(o,2,i)+Pc(Math.abs(s%60),2,i);case Sc.ShortGMT:return"GMT"+(s>=0?"+":"")+Pc(o,1,i);case Sc.Long:return"GMT"+(s>=0?"+":"")+Pc(o,2,i)+":"+Pc(Math.abs(s%60),2,i);case Sc.Extended:return 0===r?"Z":(s>=0?"+":"")+Pc(o,2,i)+":"+Pc(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Mc(t){return Ac(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Nc(t,e=!1){return function(n,r){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=Mc(n),e=function(t){const e=Ac(t,0,1).getDay();return Ac(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();s=1+Math.round(r/6048e5)}return Pc(s,t,mc(r,dc.MinusSign))}}function Vc(t,e=!1){return function(n,r){return Pc(Mc(n).getFullYear(),t,mc(r,dc.MinusSign),e)}}const jc={};function Lc(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Uc(t){return t instanceof Date&&!isNaN(t.valueOf())}class Fc{}let Hc=(()=>{class t extends Fc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return to(t)[no.PluralCase]}(e||this.locale)(t)){case lc.Zero:return"zero";case lc.One:return"one";case lc.Two:return"two";case lc.Few:return"few";case lc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Xn(tl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class zc{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bc=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new zc(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new qc(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new qc(t,s);e.push(i)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ai(sa),Ai(Ko),Ai(Uo))},t.\u0275dir=Wt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class qc{constructor(t,e){this.record=t,this.view=e}}function Gc(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${tt(t)}'`)}let Wc=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Gc(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"uppercase",type:t,pure:!0}),t})(),Zc=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return kc(e,n,s||this.locale,r)}catch(i){throw Gc(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ai(tl,16))},t.\u0275pipe=Zt({name:"date",type:t,pure:!0}),t})(),Qc=(()=>{class t{transform(e,n,r){if(null==e)return null;if(!this.supports(e))throw Gc(t,e);return e.slice(n,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"slice",type:t,pure:!1}),t})(),Yc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[{provide:Fc,useClass:Hc}]}),t})(),Kc=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new Jc(Xn(Bl),window)}),t})();class Jc{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=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 n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Xc(this.window.history)||Xc(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Xc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class tu{}class eu extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new eu,$l||($l=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(ru=ru||document.querySelector("base"),ru?ru.getAttribute("href"):null);return null==e?null:function(t){nu=nu||document.createElement("a"),nu.setAttribute("href",t);const e=nu.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){ru=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $c(document.cookie,t)}}let nu,ru=null;const su=new jn("TRANSITION_ID"),iu=[{provide:qa,useFactory:function(t,e,n){return()=>{n.get(Ga).donePromise.then(()=>{const n=zl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[su,Bl,ui],multi:!0}];class ou{static init(){var t;t=new ou,Sl=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?zl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let au=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lu=new jn("EventManagerPlugins");let cu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t extends hu{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(pu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(pu))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function pu(t){zl().remove(t)}const fu={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/"},gu=/%COMP%/g;function mu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let vu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new _u(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new bu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new wu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=mu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Xn(cu),Xn(du),Xn(Wa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class _u{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(fu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=fu[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=fu[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(_r.DashCase|_r.Important)?t.style.setProperty(e,n,r&_r.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&_r.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,yu(n)):this.eventManager.addEventListener(t,e,yu(n))}}class bu extends _u{constructor(t,e,n,r){super(t),this.component=n;const s=mu(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(gu,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(gu,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class wu extends _u{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=mu(r.id,r.styles,[]);for(let i=0;i{class t extends uu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Su=["alt","control","meta","shift"],xu={"\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"},Eu={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"},ku={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Au=(()=>{class t extends uu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zl().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(Su.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=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&&Eu.hasOwnProperty(e)&&(e=Eu[e]))}return xu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Su.forEach(r=>{r!=n&&(0,ku[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ou=Ol(Ul,"browser",[{provide:Ka,useValue:"browser"},{provide:Ya,useValue:function(){eu.makeCurrent(),ou.init()},multi:!0},{provide:Bl,useFactory:function(){return function(t){ue=t}(document),document},deps:[]}]),Tu=[[],{provide:Ks,useValue:"root"},{provide:mr,useFactory:function(){return new mr},deps:[]},{provide:lu,useClass:Cu,multi:!0,deps:[Bl,dl,Ka]},{provide:lu,useClass:Au,multi:!0,deps:[Bl]},[],{provide:vu,useClass:vu,deps:[cu,du,Wa]},{provide:Co,useExisting:vu},{provide:hu,useExisting:du},{provide:du,useClass:du,deps:[Bl]},{provide:_l,useClass:_l,deps:[dl]},{provide:cu,useClass:cu,deps:[lu,dl]},{provide:tu,useClass:au,deps:[]},[]];let Pu=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:Wa,useValue:e.appId},{provide:su,useExisting:Wa},iu]}}}return t.\u0275fac=function(e){return new(e||t)(Xn(t,12))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Tu,imports:[Yc,Hl]}),t})();function Iu(...t){let e=t[t.length-1];return E(e)?(t.pop(),N(t,e)):B(t)}function Ru(t,e){return F(t,e,1)}function Du(t,e){return function(n){return n.lift(new Mu(t,e))}}"undefined"!=typeof window&&window;class Mu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Nu(t,this.predicate,this.thisArg))}}class Nu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Vu{}class ju{}class Lu{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Lu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Lu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Lu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Uu{encodeKey(t){return Fu(t)}encodeValue(t){return Fu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Fu(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Hu(t){return`${t}`}class $u{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Uu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new $u({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Hu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(Hu(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class zu{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Bu(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qu(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Gu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Wu{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Lu),this.context||(this.context=new zu),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new Wu(n,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var Zu=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Qu{constructor(t,e=200,n="OK"){this.headers=t.headers||new Lu,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Yu extends Qu{constructor(t={}){super(t),this.type=Zu.ResponseHeader}clone(t={}){return new Yu({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ku extends Qu{constructor(t={}){super(t),this.type=Zu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ku({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ju extends Qu{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Xu(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let th=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Wu)r=t;else{let s,i;s=n.headers instanceof Lu?n.headers:new Lu(n.headers),n.params&&(i=n.params instanceof $u?n.params:new $u({fromObject:n.params})),r=new Wu(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Iu(r).pipe(Ru(t=>this.handler.handle(t)));if(t instanceof Wu||"events"===n.observe)return s;const i=s.pipe(Du(t=>t instanceof Ku));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(k(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(k(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new $u).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Xu(n,e))}post(t,e,n={}){return this.request("POST",t,Xu(n,e))}put(t,e,n={}){return this.request("PUT",t,Xu(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Vu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class eh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const nh=new jn("HTTP_INTERCEPTORS");let rh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const sh=/^\)\]\}',?\n/;let ih=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new Lu(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Yu({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(sh,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Ku({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Ju({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new Ju({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:Zu.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:Zu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:Zu.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Xn(tu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const oh=new jn("XSRF_COOKIE_NAME"),ah=new jn("XSRF_HEADER_NAME");class lh{}let ch=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=$c(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl),Xn(Ka),Xn(oh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(lh),Xn(ah))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),hh=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(nh,[]);this.chain=t.reduceRight((t,e)=>new eh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ju),Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),dh=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:uh,useClass:rh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:oh,useValue:e.cookieName}:[],e.headerName?{provide:ah,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[uh,{provide:nh,useExisting:uh,multi:!0},{provide:lh,useClass:ch},{provide:oh,useValue:"XSRF-TOKEN"},{provide:ah,useValue:"X-XSRF-TOKEN"}]}),t})(),ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[th,{provide:Vu,useClass:hh},ih,{provide:ju,useExisting:ih}],imports:[[dh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function fh(t,e){return new v(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let gh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(So),Ai(bo))},t.\u0275dir=Wt({type:t}),t})(),mh=(()=>{class t extends gh{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,features:[di]}),t})();const yh=new jn("NgValueAccessor"),vh={provide:yh,useExisting:rt(()=>bh),multi:!0},_h=new jn("CompositionEventMode");let bh=(()=>{class t extends gh{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=zl()?zl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(So),Ai(bo),Ai(_h,8))},t.\u0275dir=Wt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Vi("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[po([vh]),di]}),t})();const wh=new jn("NgValidators"),Ch=new jn("NgAsyncValidators");function Sh(t){return null!=t}function xh(t){const e=Mi(t)?V(t):t;return Ni(e),e}function Eh(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function kh(t,e){return e.map(e=>e(t))}function Ah(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Oh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Sh);return 0==e.length?null:function(t){return Eh(kh(t,e))}}(Ah(t)):null}function Th(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Sh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return fh(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return fh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return fh(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(k(t=>e(...t)))}return fh(t,null)}(kh(t,e).map(xh)).pipe(k(Eh))}}(Ah(t)):null}function Ph(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Ih=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Oh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Th(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t}),t})(),Rh=(()=>{class t extends Ih{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,features:[di]}),t})();class Dh extends Ih{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mh{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Nh=(()=>{class t extends Mh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Dh,2))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&$i("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[di]}),t})(),Vh=(()=>{class t extends Mh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rh,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&$i("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[di]}),t})();function jh(t,e){Uh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Fh(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Fh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Lh(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Uh(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Ph(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Ph(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const s=()=>t.updateValueAndValidity();Lh(e._rawValidators,s),Lh(e._rawAsyncValidators,s)}function Fh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Hh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function $h(t){return(Gh(t)?t.validators:t)||null}function zh(t){return Array.isArray(t)?Oh(t):t||null}function Bh(t,e){return(Gh(e)?e.asyncValidators:t)||null}function qh(t){return Array.isArray(t)?Th(t):t||null}function Gh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Wh{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=zh(this._rawValidators),this._composedAsyncValidatorFn=qh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=zh(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=qh(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Qh?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Yh&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ka,this.statusChanges=new ka}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Gh(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Zh extends Wh{constructor(t=null,e,n){super($h(e),Bh(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Hh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Hh(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Qh extends Wh{constructor(t,e,n){super($h(e),Bh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Zh?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Yh extends Wh{constructor(t,e,n){super($h(e),Bh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Zh?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Kh={provide:Rh,useExisting:rt(()=>Xh)},Jh=(()=>Promise.resolve(null))();let Xh=(()=>{class t extends Rh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ka,this.form=new Qh({},Oh(t),Th(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Jh.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),jh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Jh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Hh(this._directives,t)})}addFormGroup(t){Jh.then(()=>{const e=this._findContainer(t.path),n=new Qh({});(function(t,e){Uh(t,e)})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Jh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Jh.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ai(wh,10),Ai(Ch,10))},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Vi("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[po([Kh]),di]}),t})();const td={provide:Dh,useExisting:rt(()=>nd)},ed=(()=>Promise.resolve(null))();let nd=(()=>{class t extends Dh{constructor(t,e,n,r){super(),this.control=new Zh,this._registered=!1,this.update=new ka,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{t.constructor===bh?n=t:Object.getPrototypeOf(t.constructor)===mh?r=t:s=t}),s||r||n||null}(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){jh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ed.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ed.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rh,9),Ai(wh,10),Ai(Ch,10),Ai(yh,10))},t.\u0275dir=Wt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[po([td]),di,ie]}),t})(),rd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),sd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();const id={provide:yh,useExisting:rt(()=>ad),multi:!0};function od(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ad=(()=>{class t extends mh{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=od(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Vi("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[po([id]),di]}),t})(),ld=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(od(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ai(bo),Ai(So),Ai(ad,9))},t.\u0275dir=Wt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const cd={provide:yh,useExisting:rt(()=>hd),multi:!0};function ud(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let hd=(()=>{class t extends mh{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ud(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ud(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ai(bo),Ai(So),Ai(hd,9))},t.\u0275dir=Wt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[[sd]]}),t})(),fd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[pd]}),t})();class gd extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}class md extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class yd extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function vd(t,e,n,r,s=new yd(t,n,r)){if(!s.closed)return e instanceof v?e.subscribe(s):M(e)(s)}const _d={};class bd{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wd(t,this.resultSelector))}}class wd extends md{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{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 Sd(...t){return z(1)(Iu(...t))}const xd=new v(t=>t.complete());function Ed(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):xd}function kd(t){return new v(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?V(n):Ed()).subscribe(e)})}function Ad(t,e){return"function"==typeof e?n=>n.pipe(Ad((n,r)=>V(t(n,r)).pipe(k((t,s)=>e(n,t,r,s))))):e=>e.lift(new Od(t))}class Od{constructor(t){this.project=t}call(t,e){return e.subscribe(new Td(t,this.project))}}class Td extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new j(this),r=this.destination;r.add(n),this.innerSubscription=U(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Pd=(()=>{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 Id(t){return e=>0===t?Ed():e.lift(new Rd(t))}class Rd{constructor(t){if(this.total=t,this.total<0)throw new Pd}call(t,e){return e.subscribe(new Dd(t,this.total))}}class Dd extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Md(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Nd(t,e,n))}}class Nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Vd(t,this.accumulator,this.seed,this.hasSeed))}}class Vd extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function jd(t){return function(e){const n=new Ld(t),r=e.lift(n);return n.caught=r}}class Ld{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ud(t,this.selector,this.caught))}}class Ud extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new j(this);this.add(r);const s=U(n,r);s!==r&&this.add(s)}}}function Fd(t){return function(e){return 0===t?Ed():e.lift(new Hd(t))}}class Hd{constructor(t){if(this.total=t,this.total<0)throw new Pd}call(t,e){return e.subscribe(new $d(t,this.total))}}class $d extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new Bd(t))}class Bd{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new qd(t,this.errorFactory))}}class qd extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Gd(){return new Cd}function Wd(t=null){return e=>e.lift(new Zd(t))}class Zd{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Qd(t,this.defaultValue))}}class Qd extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Yd(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Du((e,n)=>t(e,n,r)):y,Id(1),n?Wd(e):zd(()=>new Cd))}function Kd(){}function Jd(t,e,n){return function(r){return r.lift(new Xd(t,e,n))}}class Xd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new tp(t,this.nextOrObserver,this.error,this.complete))}}class tp extends f{constructor(t,e,n,s){super(t),this._tapNext=Kd,this._tapError=Kd,this._tapComplete=Kd,this._tapError=n||Kd,this._tapComplete=s||Kd,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Kd,this._tapError=e.error||Kd,this._tapComplete=e.complete||Kd)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class ep{constructor(t){this.callback=t}call(t,e){return e.subscribe(new np(t,this.callback))}}class np extends f{constructor(t,e){super(t),this.add(new h(e))}}class rp{constructor(t,e){this.id=t,this.url=e}}class sp extends rp{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ip extends rp{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class op extends rp{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ap extends rp{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class up extends rp{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vp{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _p{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bp{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function wp(t){return new bp(t)}function Cp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Sp(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function kp(t){return Array.prototype.concat.apply([],t)}function Ap(t){return t.length>0?t[t.length-1]:null}function Op(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tp(t){return Ni(t)?t:Mi(t)?V(Promise.resolve(t)):Iu(t)}const Pp={exact:function t(e,n,r){if(!Up(e.segments,n.segments))return!1;if(!Np(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],r))return!1}return!0},subset:Dp},Ip={exact:function(t,e){return xp(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ep(t[n],e[n]))},ignored:()=>!0};function Rp(t,e,n){return Pp[n.paths](t.root,e.root,n.matrixParams)&&Ip[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Dp(t,e,n){return Mp(t,e,e.segments,n)}function Mp(t,e,n,r){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!Up(s,n)&&!e.hasChildren()&&!!Np(s,n,r)}if(t.segments.length===n.length){if(!Up(t.segments,n))return!1;if(!Np(t.segments,n,r))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Dp(t.children[n],e.children[n],r))return!1}return!0}{const s=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!Up(t.segments,s)&&!!Np(t.segments,s,r)&&!!t.children.primary&&Mp(t.children.primary,e,i,r)}}function Np(t,e,n){return e.every((e,r)=>Ip[n](t[r].parameters,e.parameters))}class Vp{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wp(this.queryParams)),this._queryParamMap}toString(){return $p.serialize(this)}}class jp{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Op(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zp(this)}}class Lp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=wp(this.parameters)),this._parameterMap}toString(){return Yp(this)}}function Up(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Fp{}class Hp{parse(t){const e=new ef(t);return new Vp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Bp(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Gp(e)}=${Gp(t)}`).join("&"):`${Gp(e)}=${Gp(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const $p=new Hp;function zp(t){return t.segments.map(t=>Yp(t)).join("/")}function Bp(t,e){if(!t.hasChildren())return zp(t);if(e){const e=t.children.primary?Bp(t.children.primary,!1):"",n=[];return Op(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${Bp(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Op(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Op(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>"primary"===n?[Bp(t.children.primary,!1)]:[`${n}:${Bp(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${zp(t)}/${e[0]}`:`${zp(t)}/(${e.join("//")})`}}function qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return qp(t).replace(/%3B/gi,";")}function Wp(t){return qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zp(t){return decodeURIComponent(t)}function Qp(t){return Zp(t.replace(/\+/g,"%20"))}function Yp(t){return`${Wp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Wp(t)}=${Wp(e[t])}`).join("")}`;var e}const Kp=/^[^\/()?;=#]+/;function Jp(t){const e=t.match(Kp);return e?e[0]:""}const Xp=/^[^=?&#]+/,tf=/^[^?&#]+/;class ef{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jp([],{}):new jp([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new jp(t,e)),n}parseSegment(){const t=Jp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Lp(Zp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Jp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Jp(this.remaining);t&&(n=t,this.capture(n))}t[Zp(e)]=Zp(n)}parseQueryParam(t){const e=function(t){const e=t.match(Xp);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(tf);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Qp(e),s=Qp(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Jp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new jp([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class nf{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=rf(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=rf(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=sf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return sf(t,this._root).map(t=>t.value)}}function rf(t,e){if(t===e.value)return e;for(const n of e.children){const e=rf(t,n);if(e)return e}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 of{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function af(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class lf extends nf{constructor(t,e){super(t),this.snapshot=e,ff(this,t)}toString(){return this.snapshot.toString()}}function cf(t,e){const n=function(t,e){const n=new df([],{},{},"",{},"primary",e,null,t.root,-1,{});return new pf("",new of(n,[]))}(t,e),r=new gd([new Lp("",{})]),s=new gd({}),i=new gd({}),o=new gd({}),a=new gd(""),l=new uf(r,s,o,a,i,"primary",e,n.root);return l.snapshot=n.root,new lf(new of(l,[]),n)}class uf{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}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(k(t=>wp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(k(t=>wp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hf(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class df{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=wp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pf extends nf{constructor(t,e){super(e),this.url=t,ff(this,e)}toString(){return gf(this._root)}}function ff(t,e){e.value._routerState=t,e.children.forEach(e=>ff(t,e))}function gf(t){const e=t.children.length>0?` { ${t.children.map(gf).join(", ")} } `:"";return`${t.value}${e}`}function mf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,xp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),xp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nxp(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yf(t.parent,e.parent))}function vf(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return vf(t,e,r);return vf(t,e)})}(t,e,n);return new of(r,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return _f(e,t),t}}const n=new uf(new gd((r=e.value).url),new gd(r.params),new gd(r.queryParams),new gd(r.fragment),new gd(r.data),r.outlet,r.component,r),s=e.children.map(e=>vf(t,e));return new of(n,s)}var r}function _f(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{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Vp(n.root===t?e:Sf(n.root,t,e),i,s)}function Sf(t,e,n){const r={};return Op(t.children,(t,s)=>{r[s]=t===e?n:Sf(t,e,n)}),new jp(t.segments,r)}class xf{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&bf(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(wf);if(r&&r!==Ap(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ef{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function kf(t,e,n){if(t||(t=new jp([],{})),0===t.segments.length&&t.hasChildren())return Af(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=n[r];if(wf(o))break;const a=`${o}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!If(a,l,e))return i;r+=2}else{if(!If(a,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=kf(t.children[r],e,n))}),Op(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new jp(t.segments,s)}}function Of(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Of(new jp([],{}),0,t))}),e}function Pf(t){const e={};return Op(t,(t,n)=>e[n]=`${t}`),e}function If(t,e,n){return t==n.path&&xp(e,n.parameters)}class Rf{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),mf(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=af(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Op(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=af(t);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=af(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new vp(t.value.snapshot))}),t.children.length&&this.forwardEvent(new mp(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(mf(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Df(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Df(t){mf(t.value),t.children.forEach(Df)}class Mf{constructor(t,e){this.routes=t,this.module=e}}function Nf(t){return"function"==typeof t}function Vf(t){return t instanceof Vp}const jf=Symbol("INITIAL_VALUE");function Lf(){return Ad(t=>function(...t){let e,n;return E(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),B(t,n).lift(new bd(e))}(t.map(t=>t.pipe(Id(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>Sd(t,n,e)):e=>Sd(t,e)}(jf)))).pipe(Md((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==jf)return t;if(r===jf&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Vf(r))return r}return t},t)},jf),Du(t=>t!==jf),k(t=>Vf(t)?t:!0===t),Id(1)))}let Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ri(0,"router-outlet")},directives:function(){return[jg]},encapsulation:2}),t})();function Ff(t,e=""){for(let n=0;nBf(t)===e);return n.push(...t.filter(t=>Bf(t)!==e)),n}const Gf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Wf(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Gf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Sp)(n,t,e);if(!s)return Object.assign({},Gf);const i={};Op(s.posParams,(t,e)=>{i[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Zf(t,e,n,r,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Qf(t,e,n)&&"primary"!==Bf(n))}(t,n,r)){const s=new jp(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==Bf(i)){const n=new jp([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Bf(i)]=n}return s}(t,e,r,new jp(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(n=>Qf(t,e,n))}(t,n,r)){const i=new jp(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Qf(t,n,a)&&!s[Bf(a)]){const n=new jp([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Bf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new jp(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Qf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Yf(t,e,n,r){return!!(Bf(t)===r||"primary"!==r&&Qf(e,n,t))&&("**"===t.path||Wf(e,t,n).matched)}function Kf(t,e,n){return 0===e.length&&!t.children[n]}class Jf{constructor(t){this.segmentGroup=t||null}}class Xf{constructor(t){this.urlTree=t}}function tg(t){return new v(e=>e.error(new Jf(t)))}function eg(t){return new v(e=>e.error(new Xf(t)))}function ng(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class rg{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ea)}apply(){const t=Zf(this.urlTree.root,[],[],this.config).segmentGroup,e=new jp(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(k(t=>this.createUrlTree(sg(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(jd(t=>{if(t instanceof Xf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Jf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(k(e=>this.createUrlTree(sg(e),t.queryParams,t.fragment))).pipe(jd(t=>{if(t instanceof Jf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new jp([],{primary:t}):t;return new Vp(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(k(t=>new jp([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return V(r).pipe(Ru(r=>{const s=n.children[r],i=qf(e,r);return this.expandSegmentGroup(t,i,s,r).pipe(k(t=>({segment:t,outlet:r})))}),Md((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Du((e,n)=>t(e,n,r)):y,Fd(1),n?Wd(e):zd(()=>new Cd))}())}expandSegment(t,e,n,r,s,i){return V(n).pipe(Ru(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(jd(t=>{if(t instanceof Jf)return Iu(null);throw t}))),Yd(t=>!!t),jd((t,n)=>{if(t instanceof Cd||"EmptyError"===t.name){if(Kf(e,r,s))return Iu(new jp([],{}));throw new Jf(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return Yf(r,e,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):tg(e):tg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?eg(s):this.lineralizeSegments(n,s).pipe(F(n=>{const s=new jp(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Wf(e,r,s);if(!o)return tg(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?eg(u):this.lineralizeSegments(r,u).pipe(F(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Iu(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(k(t=>(n._loadedConfig=t,new jp(r,{})))):Iu(new jp(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=Wf(e,n,r);if(!i)return tg(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(F(t=>{const r=t.module,i=t.routes,{segmentGroup:a,slicedSegments:c}=Zf(e,o,l,i),u=new jp(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,i,u).pipe(k(t=>new jp(o,t)));if(0===i.length&&0===c.length)return Iu(new jp(o,{}));const h=Bf(n)===s;return this.expandSegment(r,u,i,c,h?"primary":s,!0).pipe(k(t=>new jp(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Iu(new Mf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Iu(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(F(n=>n?this.configLoader.load(t.injector,e).pipe(k(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Cp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Iu(new Mf([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Iu(r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&Nf(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Nf(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Tp(i)})).pipe(Lf(),Jd(t=>{if(!Vf(t))return;const e=Cp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),k(t=>!0===t)):Iu(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Iu(n);if(r.numberOfChildren>1||!r.children.primary)return ng(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Vp(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Op(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Op(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new jp(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function sg(t){const e={};for(const n of Object.keys(t.children)){const r=sg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new jp(t.segments.concat(e.segments),e.children)}return t}(new jp(t.segments,e))}class ig{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class og{constructor(t,e){this.component=t,this.route=e}}function ag(t,e,n){const r=t._root;return cg(r,e?e._root:null,n,[r.value])}function lg(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function cg(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=af(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Up(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Up(t.url,e.url)||!xp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yf(t,e)||!xp(t.queryParams,e.queryParams);case"paramsChange":default:return!yf(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new ig(r)):(i.data=o.data,i._resolvedData=o._resolvedData),cg(t,e,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new og(a.outlet.component,o))}else o&&ug(e,a,s),s.canActivateChecks.push(new ig(r)),cg(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),Op(i,(t,e)=>ug(t,n.getContext(e),s)),s}function ug(t,e,n){const r=af(t),s=t.value;Op(r,(t,r)=>{ug(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new og(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class hg{}function dg(t){return new v(e=>e.error(t))}class pg{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const t=Zf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new df([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new of(n,e),s=new pf(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=hf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const r=e.children[s],i=qf(t,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=gg(n);return r.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,r);if(null!==t)return t}return Kf(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!Yf(t,e,n,r))return null;let s,i=[],o=[];if("**"===t.path){const r=n.length>0?Ap(n).parameters:{};s=new df(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),Bf(t),t.component,t,mg(e),yg(e)+n.length,_g(t))}else{const r=Wf(e,t,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new df(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),Bf(t),t.component,t,mg(e),yg(e)+i.length,_g(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Zf(e,i,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new of(s,t)]}if(0===a.length&&0===c.length)return[new of(s,[])];const u=Bf(t)===r,h=this.processSegment(a,l,c,u?"primary":r);return null===h?null:[new of(s,h)]}}function fg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function gg(t){const e=[],n=new Set;for(const r of t){if(!fg(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=gg(r.children);e.push(new of(r.value,t))}return e.filter(t=>!n.has(t))}function mg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function yg(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 vg(t){return t.data||{}}function _g(t){return t.resolve||{}}function bg(t){return Ad(e=>{const n=t(e);return n?V(n).pipe(k(()=>e)):Iu(e)})}class wg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Cg=new jn("ROUTES");class Sg{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(k(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Mf(kp(r.injector.get(Cg,void 0,_t.Self|_t.Optional)).map(zf),r)}),jd(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(n,()=>new S).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):Tp(t()).pipe(F(t=>t instanceof na?Iu(t):V(this.compiler.compileModuleAsync(t))))}}class xg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Eg,this.attachRef=null}}class Eg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new xg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class kg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ag(t){throw t}function Og(t,e,n){return e.parse("/")}function Tg(t,e){return Iu(null)}const Pg={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ig={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Rg=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Ag,this.malformedUriErrorHandler=Og,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Tg,afterPreactivation:Tg},this.urlHandlingStrategy=new kg,this.routeReuseStrategy=new wg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ea),this.console=s.get(Xa);const l=s.get(dl);this.isNgZoneEnabled=l instanceof dl&&dl.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Vp(new jp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sg(i,o,t=>this.triggerEvent(new pp(t)),t=>this.triggerEvent(new fp(t))),this.routerState=cf(this.currentUrlTree,this.rootComponentType),this.transitions=new gd({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()}setupNavigations(t){const e=this.events;return t.pipe(Du(t=>0!==t.id),k(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Ad(t=>{let n=!1,r=!1;return Iu(t).pipe(Jd(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ad(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Iu(t).pipe(Ad(t=>{const n=this.transitions.getValue();return e.next(new sp(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?xd:Promise.resolve(t)}),function(t,e,n,r){return Ad(s=>function(t,e,n,r,s){return new rg(t,e,n,r,s).apply()}(t,e,n,s.extractedUrl,r).pipe(k(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Jd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return F(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){try{const o=new pg(t,e,n,r,s,i).recognize();return null===o?dg(new hg):Iu(o)}catch(o){return dg(o)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(k(t=>Object.assign(Object.assign({},i),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Jd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new lp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new sp(n,this.serializeUrl(r),s,i);e.next(a);const l=cf(r,this.rootComponentType).snapshot;return Iu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),xd}),bg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Jd(t=>{const e=new cp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),k(t=>Object.assign(Object.assign({},t),{guards:ag(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return F(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Iu(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return V(t).pipe(F(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Iu(i.map(i=>{const o=lg(i,e,s);let a;if(function(t){return t&&Nf(t.canDeactivate)}(o))a=Tp(o.canDeactivate(t,e,n,r));else{if(!Nf(o))throw new Error("Invalid CanDeactivate guard");a=Tp(o(t,e,n,r))}return a.pipe(Yd())})).pipe(Lf()):Iu(!0)}(t.component,t.route,n,e,r)),Yd(t=>!0!==t,!0))}(o,r,s,t).pipe(F(n=>n&&"boolean"==typeof n?function(t,e,n,r){return V(e).pipe(Ru(e=>Sd(function(t,e){return null!==t&&e&&e(new gp(t)),Iu(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new yp(t)),Iu(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>kd(()=>Iu(e.guards.map(s=>{const i=lg(s,e.node,n);let o;if(function(t){return t&&Nf(t.canActivateChild)}(i))o=Tp(i.canActivateChild(r,t));else{if(!Nf(i))throw new Error("Invalid CanActivateChild guard");o=Tp(i(r,t))}return o.pipe(Yd())})).pipe(Lf())));return Iu(s).pipe(Lf())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Iu(r.map(r=>kd(()=>{const s=lg(r,e,n);let i;if(function(t){return t&&Nf(t.canActivate)}(s))i=Tp(s.canActivate(e,t));else{if(!Nf(s))throw new Error("Invalid CanActivate guard");i=Tp(s(e,t))}return i.pipe(Yd())}))).pipe(Lf()):Iu(!0)}(t,e.route,n))),Yd(t=>!0!==t,!0))}(r,i,t,e):Iu(n)),k(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Jd(t=>{if(Vf(t.guardsResult)){const e=Cp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new up(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Du(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),bg(t=>{if(t.guards.canActivateChecks.length)return Iu(t).pipe(Jd(t=>{const e=new hp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Ad(t=>{let e=!1;return Iu(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,F(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Iu(t);let i=0;return V(s).pipe(Ru(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Iu({});const i={};return V(s).pipe(F(s=>function(t,e,n,r){const s=lg(t,e,r);return Tp(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Jd(t=>{i[s]=t}))),Fd(1),F(()=>Object.keys(i).length===s.length?Iu(i):xd))}(t._resolve,t,e,r).pipe(k(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),hf(t,n).resolve),null)))}(t.route,e,n,r)),Jd(()=>i++),Fd(1),F(e=>i===s.length?Iu(t):xd))})),Jd({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var n,r}),Jd(t=>{const e=new dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),bg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),k(t=>{const e=function(t,e,n){const r=vf(t,e._root,n?n._root:void 0);return new lf(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Jd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),k(t=>(new Rf(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),Jd({next(){n=!0},complete(){n=!0}}),(s=()=>{n||r||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null},t=>t.lift(new ep(s))),jd(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Vf(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new op(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new ap(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return xd}));var s,i,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ff(t),this.config=t.map(zf),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(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,s){if(0===n.length)return Cf(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new xf(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Op(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new xf(n,e,r)}(n);if(i.toRoot())return Cf(e.root,new jp([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Ef(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ef(t,t===e.root,0)}const r=bf(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Ef(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Af(o.segmentGroup,o.index,i.commands):kf(o.segmentGroup,o.index,i.commands);return Cf(o.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Vf(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(r,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ip(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==e&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const n=new op(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Un),Xn(Fp),Xn(Eg),Xn(ic),Xn(ui),Xn(Ml),Xn(cl),Xn(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dg=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Ng(this.skipLocationChange),replaceUrl:Ng(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!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:Ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(uf),Nn("tabindex"),Ai(So),Ai(bo))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Vi("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ie]}),t})(),Mg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof ip&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,s){if(0!==t||e||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:Ng(this.skipLocationChange),replaceUrl:Ng(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!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:Ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(uf),Ai(tc))},t.\u0275dir=Wt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Vi("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Yi("href",e.href,ur),Ei("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ie]}),t})();function Ng(t){return""===t||!!t}let Vg=(()=>{class t{constructor(t,e,n,r,s,i){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof ip&&this.update()})}ngAfterContentInit(){Iu(this.links.changes,this.linksWithHrefs.changes,Iu(null)).pipe(z()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=V(e).pipe(z()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(bo),Ai(So),Ai(Go),Ai(Dg,8),Ai(Mg,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(Fa(n,Dg,5),Fa(n,Mg,5)),2&t){let t;La(t=Ha())&&(e.links=t),La(t=Ha())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ie]}),t})(),jg=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ka,this.deactivateEvents=new ka,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Lg(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Eg),Ai(sa),Ai(mo),Nn("name"),Ai(Go))},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Lg{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===uf?this.route:t===Eg?this.childContexts:this.parent.get(t,e)}}class Ug{}class Fg{preload(t,e){return Iu(null)}}let Hg=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Sg(e,n,e=>t.triggerEvent(new pp(e)),e=>t.triggerEvent(new fp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Du(t=>t instanceof ip),Ru(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ea);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return V(n).pipe(z(),k(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Iu(e._loadedConfig):this.loader.load(t.injector,e)).pipe(F(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rg),Xn(Ml),Xn(cl),Xn(ui),Xn(Ug))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),$g=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof sp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ip&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof _p&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new _p(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rg),Xn(Kc),Xn(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const zg=new jn("ROUTER_CONFIGURATION"),Bg=new jn("ROUTER_FORROOT_GUARD"),qg=[ic,{provide:Fp,useClass:Hp},{provide:Rg,useFactory:function(t,e,n,r,s,i,o,a={},l,c){const u=new Rg(null,t,e,n,r,s,i,kp(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),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,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Fp,Eg,ic,ui,Ml,cl,Cg,zg,[class{},new rr],[class{},new rr]]},Eg,{provide:uf,useFactory:function(t){return t.routerState.root},deps:[Rg]},{provide:Ml,useClass:jl},Hg,Fg,class{preload(t,e){return e().pipe(jd(()=>Iu(null)))}},{provide:zg,useValue:{enableTracing:!1}}];function Gg(){return new Al("Router",Rg)}let Wg=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[qg,Kg(e),{provide:Bg,useFactory:Yg,deps:[[Rg,new rr,new sr]]},{provide:zg,useValue:n||{}},{provide:tc,useFactory:Qg,deps:[ql,[new nr(nc),new rr],zg]},{provide:$g,useFactory:Zg,deps:[Rg,Kc,zg]},{provide:Ug,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fg},{provide:Al,multi:!0,useFactory:Gg},[Jg,{provide:qa,multi:!0,useFactory:Xg,deps:[Jg]},{provide:em,useFactory:tm,deps:[Jg]},{provide:Ja,multi:!0,useExisting:em}]]}}static forChild(e){return{ngModule:t,providers:[Kg(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bg,8),Xn(Rg,8))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();function Zg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new $g(t,e,n)}function Qg(t,e,n={}){return n.useHash?new sc(t,e):new rc(t,e)}function Yg(t){return"guarded"}function Kg(t){return[{provide:Ln,multi:!0,useValue:t},{provide:Cg,multi:!0,useValue:t}]}let Jg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Wl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Rg),r=this.injector.get(zg);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Iu(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(zg),n=this.injector.get(Hg),r=this.injector.get($g),s=this.injector.get(Rg),i=this.injector.get(Rl);t===i.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xg(t){return t.appInitializer.bind(t)}function tm(t){return t.bootstrapListener.bind(t)}const em=new jn("Router Initializer"),nm=function(){return{exact:!0}};let rm=(()=>{class t{constructor(t){this.router=t,this.title="Blog",this.searchText=""}goSearchComponent(){this.router.navigate([`search/${this.searchText}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-root"]],decls:44,vars:3,consts:[["routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink",""],["routerLinkActive","active"],["routerLink","theme/lifestyle"],["routerLink","theme/nature"],["routerLink","theme/scienceNTechnologies"],["routerLink","theme/sport"],["id","searchDiv"],["list","articleList","type","search","placeholder","Search for an article...",3,"ngModel","ngModelChange"],["type","button",3,"click"],["id","centerDiv"],["align","center"],["href","https://www.instagram.com/"],["src","../assets/instagram-icon.png"],["href","https://uk-ua.facebook.com/"],["src","../assets/facebook-icon.png"],["href","https://www.pinterest.com/"],["src","../assets/pinterest-icon.png"],["href","https://twitter.com/?lang=ru"],["src","../assets/twitter-icon.png"]],template:function(t,e){1&t&&(Pi(0,"header"),Pi(1,"nav"),Pi(2,"ul"),Pi(3,"li",0),Pi(4,"a",1),Wi(5,"HOME"),Ii(),Ii(),Pi(6,"li",2),Pi(7,"a",3),Wi(8,"LIFE STYLE"),Ii(),Ii(),Pi(9,"li",2),Pi(10,"a",4),Wi(11,"NATURE"),Ii(),Ii(),Pi(12,"li",2),Pi(13,"a",5),Wi(14,"SCIENCE AND TECHNOLOGY"),Ii(),Ii(),Pi(15,"li",2),Pi(16,"a",6),Wi(17,"SPORT"),Ii(),Ii(),Ii(),Ii(),Pi(18,"div",7),Pi(19,"input",8),Vi("ngModelChange",function(t){return e.searchText=t}),Ii(),Pi(20,"button",9),Vi("click",function(){return e.goSearchComponent()}),Ii(),Ii(),Ii(),Pi(21,"div",10),Pi(22,"h1",11),Wi(23,"MY BLOG"),Ii(),Pi(24,"p"),Wi(25,"Here you will find a lot of interesting things"),Ii(),Ii(),Ri(26,"router-outlet"),Pi(27,"footer"),Pi(28,"p"),Wi(29," \xa9 2021 VVG "),Ii(),Pi(30,"nav"),Pi(31,"ul"),Pi(32,"li"),Pi(33,"a",12),Ri(34,"img",13),Ii(),Ii(),Pi(35,"li"),Pi(36,"a",14),Ri(37,"img",15),Ii(),Ii(),Pi(38,"li"),Pi(39,"a",16),Ri(40,"img",17),Ii(),Ii(),Pi(41,"li"),Pi(42,"a",18),Ri(43,"img",19),Ii(),Ii(),Ii(),Ii(),Ii()),2&t&&(es(3),Oi("routerLinkActiveOptions",function(t,e,n){const r=Ne()+2,s=ke();return s[r]===ts?Ci(s,r,e()):function(t,e){return t[e]}(s,r)}(0,nm)),es(16),Oi("ngModel",e.searchText))},directives:[Vg,Mg,bh,Nh,nd,jg],styles:["header[_ngcontent-%COMP%]{background:#000;position:fixed;top:0;width:100%;display:flex;justify-content:space-between}#searchDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-min-content;height:-moz-min-content;height:min-content;margin:auto 1%}#searchDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:20px;margin-right:5px}#searchDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url(loupe.63e36a417121627c983b.png);background-repeat:no-repeat;cursor:pointer;border:none;background-color:transparent;margin:auto 0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding-left:0;display:flex;justify-content:flex-start}a[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff;white-space:nowrap}li[_ngcontent-%COMP%]{padding:2%}li[_ngcontent-%COMP%]:hover{cursor:pointer}.active[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover{background:#535353}#centerDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:5% auto auto}#centerDiv[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:0}#centerDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5%;margin-bottom:7%;font-family:SEGOE PRINT}footer[_ngcontent-%COMP%]{background:#000;position:sticky;width:100%;color:#fff;display:flex;justify-content:space-between}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px;height:25px}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;font-family:sans-serif;font-weight:300;font-size:x-small;margin:auto 1%}"]}),t})(),sm=(()=>{class t{constructor(t){this.http=t,this.BASE_URI="https://localhost:44382/api/blog/"}getAllArticles(){return this.http.get(this.BASE_URI)}getArticlesByName(t){return this.http.get(this.BASE_URI+`articles/${t}`)}getArticlesByTheme(t){return this.http.get(this.BASE_URI+`theme/${t}`)}getArticlesByTag(t){return this.http.get(this.BASE_URI+`tag/${t}`)}getArticleById(t){return this.http.get(this.BASE_URI+t)}postCreateArticle(t){return this.http.post(this.BASE_URI,t)}deleteArticle(t){return this.http.delete(this.BASE_URI+t)}updateArticle(t,e){return this.http.put(this.BASE_URI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(Xn(th))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function im(t,e){if(1&t){const t=Di();Pi(0,"li",9),Vi("click",function(){const e=Oe(t).$implicit;return Ui(2).goToSearch(e.name)}),Wi(1),ba(2,"uppercase"),Ii()}if(2&t){const t=e.$implicit;es(1),Qi(" #",wa(2,1,t.name)," ")}}function om(t,e){if(1&t){const t=Di();Pi(0,"div",1),Pi(1,"ul",2),ki(2,im,3,3,"li",3),Ii(),Pi(3,"h3",4),Wi(4),Ii(),Pi(5,"ul",5),Pi(6,"li"),Wi(7),ba(8,"date"),Ii(),Pi(9,"li"),Wi(10),Ii(),Ii(),Ri(11,"img",6),Pi(12,"p",7),Wi(13),ba(14,"slice"),Ii(),Pi(15,"button",8),Vi("click",function(){const e=Oe(t).$implicit;return Ui().goToArtile(e.id)}),Wi(16,"Continue Reading\u2192"),Ii(),Ii()}if(2&t){const t=e.$implicit;es(2),Oi("ngForOf",t.tags),es(2),Zi(t.name),es(3),Zi(Ca(8,6,t.date,"mediumDate")),es(3),Zi(null==t.author?null:t.author.nickName),es(1),Oi("src",t.imgUrl,ur),es(2),Qi("",function(t,e,n,r,s){const i=ke(),o=ye(i,34);return xa(i,Sa(i,34)?function(t,e,n,r,s,i,o,a){const l=e+n;return function(t,e,n,r,s){const i=xi(t,e,n,r);return Si(t,e+2,s)||i}(t,l,s,i,o)?Ci(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):_a(t,l+3)}(i,Ne(),9,o.transform,n,0,350,o):o.transform(n,0,350))}(0,0,t.text),"...")}}let am=(()=>{class t{constructor(t){this.router=t,this.articleList=[]}ngOnInit(){}goToArtile(t){this.router.navigate([`article/${t}`])}goToSearch(t){this.router.navigate([`search/tag/${t}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-articleList"]],inputs:{articleList:"articleList"},decls:1,vars:1,consts:[["class","articleDiv",4,"ngFor","ngForOf"],[1,"articleDiv"],["id","tags"],["class","orange",3,"click",4,"ngFor","ngForOf"],[1,"name"],[1,"info"],[1,"img",3,"src"],[1,"text"],["type","button","id","btn",1,"orange",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&ki(0,om,17,13,"div",0),2&t&&Oi("ngForOf",e.articleList)},directives:[Bc],pipes:[Zc,Qc,Wc],styles:[".articleDiv[_ngcontent-%COMP%]{width:62vw;height:auto;margin:1.5% auto;box-shadow:0 0 5px 2px #d3d3d3;padding:15px;display:grid;grid-template-columns:30vw 30vw;grid-column-gap:15px;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}.articleDiv[_ngcontent-%COMP%]:hover{width:63vw;transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}img[_ngcontent-%COMP%]{width:30vw;height:auto;grid-column:1;grid-row:1/5}#tags[_ngcontent-%COMP%]{grid-row:1}#tags[_ngcontent-%COMP%], .name[_ngcontent-%COMP%]{grid-column:2;margin:0}.name[_ngcontent-%COMP%]{font-size:x-large;color:#000;grid-row:2}ul[_ngcontent-%COMP%]{color:gray;font-size:small;font-family:Calibri;list-style:none;display:flex;grid-column:2;grid-row:3;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:15px}.text[_ngcontent-%COMP%]{grid-row:4}#btn[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{grid-column:2}#btn[_ngcontent-%COMP%]{grid-row:5;padding:0}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}p[_ngcontent-%COMP%]{white-space:pre-wrap;margin:0}"]}),t})(),lm=(()=>{class t{constructor(t,e){this.articleService=t,this.router=e,this.articles=[]}ngOnInit(){this.articleService.getAllArticles().subscribe(t=>{this.articles=t})}goToCreate(){this.router.navigate(["create"])}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-home"]],features:[po([sm])],decls:3,vars:1,consts:[[3,"articleList"],["type","button","id","btn",3,"click"]],template:function(t,e){1&t&&(Ri(0,"app-articleList",0),Pi(1,"button",1),Vi("click",function(){return e.goToCreate()}),Wi(2,"+"),Ii()),2&t&&Oi("articleList",e.articles)},directives:[am],styles:["#btn[_ngcontent-%COMP%]{width:70px;height:70px;font-size:xx-large;border:none;border-radius:50%;background:#fff;box-shadow:0 0 5px 2px #d3d3d3;color:grey;position:fixed;right:5%;top:50%;font-size:7vh}#btn[_ngcontent-%COMP%]:hover{transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer;font-size:9vh}"]}),t})(),cm=(()=>{class t{constructor(t,e){this.articleService=t,this.activateRoute=e,this.articleName="",this.tagName="",this.articles=[],this.articleName=this.activateRoute.snapshot.params.articleName,this.tagName=this.activateRoute.snapshot.params.tagName}ngOnInit(){null!=this.articleName?this.articleService.getArticlesByName(this.articleName).subscribe(t=>this.articles=t):this.articleService.getArticlesByTag(this.tagName).subscribe(t=>this.articles=t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf))},t.\u0275cmp=Ht({type:t,selectors:[["app-search"]],features:[po([sm])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Ri(0,"app-articleList",0),2&t&&Oi("articleList",e.articles)},directives:[am],styles:[""]}),t})(),um=(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.themeName="",this.articles=[],this.themeName=this.activateRoute.snapshot.params.themeName}ngOnInit(){this.articleService.getArticlesByTheme(this.themeName).subscribe(t=>{0==t.length?(this.router.navigate(["not-found"]),console.log(t)):(this.articles=t,console.log(t))})}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-theme"]],features:[po([sm])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Ri(0,"app-articleList",0),2&t&&Oi("articleList",e.articles)},directives:[am],styles:[""]}),t})();function hm(t,e){if(1&t){const t=Di();Pi(0,"li",9),Vi("click",function(){const e=Oe(t).$implicit;return Ui().goToSearch(e.name)}),Wi(1),ba(2,"uppercase"),Ii()}if(2&t){const t=e.$implicit;es(1),Qi(" #",wa(2,1,null==t?null:t.name)," ")}}let dm=(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.id=this.activateRoute.snapshot.params.id}ngOnInit(){this.articleService.getArticleById(this.id).subscribe(t=>{this.article=t,console.log(this.article)})}goToSearch(t){this.router.navigate([`search/tag/${t}`])}deleteArticle(t){this.articleService.deleteArticle(t).subscribe(t=>console.warn(t)),this.router.navigate([""])}updateArticle(t){this.router.navigate([`update/${t}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-article"]],features:[po([sm])],decls:20,vars:9,consts:[["id","articleDiv"],[1,"img",3,"src"],["align","center"],[1,"name"],["id","text"],["class","orange",3,"click",4,"ngFor","ngForOf"],["id","btns"],["type","button","id","deleteBtn",3,"click"],["type","button","id","updateBtn",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&(Pi(0,"div",0),Pi(1,"div"),Ri(2,"img",1),Pi(3,"div",2),Pi(4,"p"),Wi(5),ba(6,"date"),Ii(),Pi(7,"h2",3),Wi(8),Ii(),Pi(9,"p"),Wi(10),Ii(),Ii(),Pi(11,"p",4),Wi(12),Ii(),Pi(13,"ul"),ki(14,hm,3,3,"li",5),Ii(),Ii(),Ii(),Pi(15,"div",6),Pi(16,"button",7),Vi("click",function(){return e.deleteArticle(null==e.article?null:e.article.id)}),Wi(17,"Delete"),Ii(),Pi(18,"button",8),Vi("click",function(){return e.updateArticle(null==e.article?null:e.article.id)}),Wi(19,"Update"),Ii(),Ii()),2&t&&(es(2),Oi("src",null==e.article?null:e.article.imgUrl,ur),es(3),Zi(Ca(6,6,null==e.article?null:e.article.date,"mediumDate")),es(3),Zi(null==e.article?null:e.article.name),es(2),Zi(null==e.article||null==e.article.author?null:e.article.author.nickName),es(2),Zi(null==e.article?null:e.article.text),es(2),Oi("ngForOf",null==e.article?null:e.article.tags))},directives:[Bc],pipes:[Zc,Wc],styles:["img[_ngcontent-%COMP%]{width:100%;height:auto;margin:0 1%;border-radius:0}#articleDiv[_ngcontent-%COMP%]{width:60%;height:auto;margin:0 auto}#btns[_ngcontent-%COMP%]{height:auto;display:flex;flex-direction:column;position:fixed;top:50%;right:5%}#btns[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}h2[_ngcontent-%COMP%]{margin:0 auto;color:#f3bc56}ul[_ngcontent-%COMP%]{list-style:none;display:flex;margin:0;padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:5%}.text[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1%}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}#text[_ngcontent-%COMP%]{margin-bottom:0;white-space:pre-wrap}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:xx-large;background:none;border:none;font-family:Times New Roman;box-shadow:0 0 5px 2px #d3d3d3;cursor:pointer;margin:5%;width:110px;height:60px}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}"]}),t})(),pm=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["app-not-found"]],decls:1,vars:0,consts:[["src","assets/404_Error.jpg"]],template:function(t,e){1&t&&Ri(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:0 auto}"]}),t})();const fm=["name"],gm=["nickName"],mm=["theme"],ym=["imgUrl"],vm=["tags"],_m=["text"];let bm=(()=>{class t{constructor(t){this.service=t}ngOnInit(){}onSubmit(){var t,e,n,r,s,i;let o=new FormData;o.append("name",null===(t=this.name)||void 0===t?void 0:t.nativeElement.value),o.append("nickName",null===(e=this.nickName)||void 0===e?void 0:e.nativeElement.value),o.append("theme",null===(n=this.theme)||void 0===n?void 0:n.nativeElement.value),o.append("imgUrl",null===(r=this.imgUrl)||void 0===r?void 0:r.nativeElement.value),o.append("tags",null===(s=this.tags)||void 0===s?void 0:s.nativeElement.value),o.append("text",null===(i=this.text)||void 0===i?void 0:i.nativeElement.value),this.service.postCreateArticle(o).subscribe(t=>console.warn(t))}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm))},t.\u0275cmp=Ht({type:t,selectors:[["app-create"]],viewQuery:function(t,e){if(1&t&&(Ua(fm,5),Ua(gm,5),Ua(mm,5),Ua(ym,5),Ua(vm,5),Ua(_m,5)),2&t){let t;La(t=Ha())&&(e.name=t.first),La(t=Ha())&&(e.nickName=t.first),La(t=Ha())&&(e.theme=t.first),La(t=Ha())&&(e.imgUrl=t.first),La(t=Ha())&&(e.tags=t.first),La(t=Ha())&&(e.text=t.first)}},features:[po([sm])],decls:31,vars:0,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","placeholder","Name","required",""],["name",""],["type","text","name","author","placeholder","Nickname","required",""],["nickName",""],["name","theme","required","","aria-placeholder","Select a theme"],["theme",""],["type","text","name","imgUrl","placeholder","Image url"],["imgUrl",""],["type","text","name","tags","placeholder","Tags"],["tags",""],["name","text","required","","placeholder","Text"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Pi(0,"form",0),Vi("ngSubmit",function(){return e.onSubmit()}),Pi(1,"h1",1),Wi(2,"Create an article"),Ii(),Ri(3,"input",2,3),Ri(5,"br"),Ri(6,"input",4,5),Ri(8,"br"),Pi(9,"select",6,7),Pi(11,"option"),Wi(12,"lifestyle"),Ii(),Pi(13,"option"),Wi(14,"nature"),Ii(),Pi(15,"option"),Wi(16,"scienceNTechnologies"),Ii(),Pi(17,"option"),Wi(18,"sport"),Ii(),Ii(),Ri(19,"br"),Ri(20,"input",8,9),Ri(22,"br"),Ri(23,"input",10,11),Ri(25,"br"),Ri(26,"textarea",12,13),Ri(28,"br"),Pi(29,"button",14),Wi(30,"Create"),Ii(),Ii())},directives:[rd,Vh,Xh,ld,dd],styles:["form[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t})();class wm{}const Cm=["name"],Sm=["imgUrl"],xm=["text"];function Em(t,e){if(1&t&&(Pi(0,"option"),Wi(1),Ii()),2&t){const t=e.$implicit;es(1),Zi(null==t?null:t.name)}}const km=[{path:"",component:lm},{path:"search/:articleName",component:cm},{path:"search/tag/:tagName",component:cm},{path:"theme/:themeName",component:um},{path:"article/:id",component:dm},{path:"not-found",component:pm},{path:"create",component:bm},{path:"update/:id",component:(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.id=this.activateRoute.snapshot.params.id}ngOnInit(){this.articleService.getArticleById(this.id).subscribe(t=>this.article=t)}onSubmit(){var t,e,n,r,s,i,o,a,l,c;let u=new wm;u.id=null===(t=this.article)||void 0===t?void 0:t.id,u.name=null===(e=this.name)||void 0===e?void 0:e.nativeElement.value,u.date=null===(n=this.article)||void 0===n?void 0:n.date,u.authorFK=null===(r=this.article)||void 0===r?void 0:r.authorFK,u.author=null===(s=this.article)||void 0===s?void 0:s.author,u.themeFK=null===(i=this.article)||void 0===i?void 0:i.themeFK,u.theme=null===(o=this.article)||void 0===o?void 0:o.theme,u.tags=null===(a=this.article)||void 0===a?void 0:a.tags,u.imgUrl=null===(l=this.imgUrl)||void 0===l?void 0:l.nativeElement.value,u.text=null===(c=this.text)||void 0===c?void 0:c.nativeElement.value,this.articleService.updateArticle(this.id,u).subscribe(t=>console.warn(t))}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-update"]],viewQuery:function(t,e){if(1&t&&(Ua(Cm,5),Ua(Sm,5),Ua(xm,5)),2&t){let t;La(t=Ha())&&(e.name=t.first),La(t=Ha())&&(e.imgUrl=t.first),La(t=Ha())&&(e.text=t.first)}},decls:29,vars:4,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","required","",3,"value"],["name",""],["name","theme","required",""],["theme",""],["type","text","name","imgUrl",3,"value"],["imgUrl",""],[4,"ngFor","ngForOf"],["name","text","required","",3,"value"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Pi(0,"form",0),Vi("ngSubmit",function(){return e.onSubmit()}),Pi(1,"h1",1),Wi(2,"Update an article"),Ii(),Ri(3,"input",2,3),Ri(5,"br"),Pi(6,"select",4,5),Pi(8,"option"),Wi(9,"lifestyle"),Ii(),Pi(10,"option"),Wi(11,"nature"),Ii(),Pi(12,"option"),Wi(13,"scienceNTechnologies"),Ii(),Pi(14,"option"),Wi(15,"sport"),Ii(),Ii(),Ri(16,"br"),Ri(17,"input",6,7),Pi(19,"p"),Wi(20,"Tags:"),Ii(),Pi(21,"select"),ki(22,Em,2,1,"option",8),Ii(),Ri(23,"br"),Ri(24,"textarea",9,10),Ri(26,"br"),Pi(27,"button",11),Wi(28,"Update"),Ii(),Ii()),2&t&&(es(3),Oi("value",null==e.article?null:e.article.name),es(14),Oi("value",null==e.article?null:e.article.imgUrl),es(5),Oi("ngForOf",null==e.article?null:e.article.tags),es(2),Oi("value",null==e.article?null:e.article.text))},directives:[rd,Vh,Xh,ld,dd,Bc],styles:["form[_ngcontent-%COMP%]{width:60%;height:auto;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t})()}];let Am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t,bootstrap:[rm]}),t.\u0275inj=ht({providers:[],imports:[[Pu,ph,fd,Wg.forRoot(km,{onSameUrlNavigation:"reload"})]]}),t})();(function(){if(El)throw new Error("Cannot enable prod mode after platform setup.");xl=!1})(),Ou().bootstrapModule(Am).catch(t=>console.error(t))}},function(t){"use strict";t(t.s=9542)}]); \ No newline at end of file +(self.webpackChunkblog=self.webpackChunkblog||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},9542:function(t,e,n){"use strict";function r(t){return"function"==typeof t}let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=_(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function E(t){return t&&"function"==typeof t.schedule}function k(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new A(t,e))}}class A{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new O(t,this.project,this.thisArg))}}class O extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const T=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return T(t);if(D(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[I])return e=t,t=>{const n=e[I]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n};function N(t,e){return new v(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(D(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(R(t))return N(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[I](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(M(t))}class j extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function U(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let n;try{n=M(t)(e)}catch(r){e.error(r)}return n}function F(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(F((n,r)=>V(t(n,r)).pipe(k((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return F(y,t)}function B(t,e){return e?N(t,e):new v(T(t))}function q(){return function(t){return t.lift(new G(t))}}class G{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new W(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class W extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Z extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const Q=(()=>{const t=Z.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 Y extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function K(){return new S}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 X(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).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 et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=J({__forward_ref__:J});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return tt(this())},t}function st(t){return it(t)?t():t}function it(t){return"function"==typeof t&&t.hasOwnProperty(nt)&&t.__forward_ref__===rt}class ot extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function at(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():at(t)}function ct(t,e){const n=e?` in ${e}`:"";throw new ot("201",`No provider for ${lt(t)} found${n}`)}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,gt)||pt(t,yt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(vt))?t[mt]:null}const gt=J({"\u0275prov":J}),mt=J({"\u0275inj":J}),yt=J({ngInjectableDef:J}),vt=J({ngInjectorDef:J});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let bt;function wt(t){const e=bt;return bt=t,e}function Ct(t,e,n){const r=dt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&_t.Optional?null:void 0!==e?e:void ct(tt(t),"Injector")}function St(t){return{toString:t}.toString()}var xt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Et=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const kt="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Pt=kt||Tt||At||Ot,It={},Rt=[],Dt=J({"\u0275cmp":J}),Mt=J({"\u0275dir":J}),Nt=J({"\u0275pipe":J}),Vt=J({"\u0275mod":J}),jt=J({"\u0275loc":J}),Lt=J({"\u0275fac":J}),Ut=J({__NG_ELEMENT_ID__:J});let Ft=0;function Ht(t){return St(()=>{const e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Rt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||Rt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=Ft++,n.inputs=Gt(t.inputs,e),n.outputs=Gt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map($t):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(zt):null,n})}function $t(t){return Qt(t)||function(t){return t[Mt]||null}(t)}function zt(t){return function(t){return t[Nt]||null}(t)}const Bt={};function qt(t){return St(()=>{const e={type:t.type,bootstrap:t.bootstrap||Rt,declarations:t.declarations||Rt,imports:t.imports||Rt,exports:t.exports||Rt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Bt[t.id]=t.type),e})}function Gt(t,e){if(null==t)return It;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Wt=Ht;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Qt(t){return t[Dt]||null}function Yt(t,e){const n=t[Vt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}function Kt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Jt(t){return Array.isArray(t)&&!0===t[1]}function Xt(t){return 0!=(8&t.flags)}function te(t){return 2==(2&t.flags)}function ee(t){return 1==(1&t.flags)}function ne(t){return null!==t.template}function re(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}class se{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ie(){return oe}function oe(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ae}function ae(){const t=ce(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===It)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,n,r){const s=ce(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:It,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new se(l&&l.currentValue,e,o===It),t[r]=e}function ce(t){return t.__ngSimpleChanges__||null}let ue;function he(t){return!!t.listen}ie.ngInherit=!0;const de={createRenderer:(t,e)=>void 0!==ue?ue:"undefined"!=typeof document?document:void 0};function pe(t){for(;Array.isArray(t);)t=t[0];return t}function fe(t,e){return pe(e[t])}function ge(t,e){return pe(e[t.index])}function me(t,e){return t.data[e]}function ye(t,e){return t[e]}function ve(t,e){const n=e[t];return Kt(n)?n:n[0]}function _e(t){return 4==(4&t[2])}function be(t){return 128==(128&t[2])}function we(t,e){return null==e?null:t[e]}function Ce(t){t[18]=0}function Se(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 xe={lFrame:qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ee(){return xe.bindingsEnabled}function ke(){return xe.lFrame.lView}function Ae(){return xe.lFrame.tView}function Oe(t){return xe.lFrame.contextLView=t,t[8]}function Te(){let t=Pe();for(;null!==t&&64===t.type;)t=t.parent;return t}function Pe(){return xe.lFrame.currentTNode}function Ie(t,e){const n=xe.lFrame;n.currentTNode=t,n.isParent=e}function Re(){return xe.lFrame.isParent}function De(){return xe.isInCheckNoChangesMode}function Me(t){xe.isInCheckNoChangesMode=t}function Ne(){const t=xe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ve(){return xe.lFrame.bindingIndex++}function je(t,e){const n=xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Le(e)}function Le(t){xe.lFrame.currentDirectiveIndex=t}function Ue(){return xe.lFrame.currentQueryIndex}function Fe(t){xe.lFrame.currentQueryIndex=t}function He(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function $e(t,e,n){if(n&_t.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&_t.Host||(r=He(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=xe.lFrame=Be();return r.currentTNode=e,r.lView=t,!0}function ze(t){const e=Be(),n=t[1];xe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Be(){const t=xe.lFrame,e=null===t?null:t.child;return null===e?qe(t):e}function qe(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 Ge(){const t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const We=Ge;function Ze(){const t=Ge();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 Qe(){return xe.lFrame.selectedIndex}function Ye(t){xe.lFrame.selectedIndex=t}function Ke(){const t=xe.lFrame;return me(t.tView,t.selectedIndex)}function Je(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}class sn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function on(t,e,n){const r=he(t);let s=0;for(;se){o=i-1;break}}}for(;i>16,r=e;for(;n>0;)r=r[15],n--;return r}let fn=!0;function gn(t){const e=fn;return fn=t,e}let mn=0;function yn(t,e){const n=_n(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,vn(r.data,t),vn(e,null),vn(r.blueprint,null));const s=bn(t,e),i=t.injectorIndex;if(hn(s)){const t=dn(s),n=pn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function vn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function _n(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function bn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function wn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ut)&&(r=n[Ut]),null==r&&(r=n[Ut]=mn++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:kn:e}(n);if("function"==typeof i){if(!$e(e,t,r))return r&_t.Host?Cn(s,n,r):Sn(e,n,r,s);try{const t=i(r);if(null!=t||r&_t.Optional)return t;ct(n)}finally{We()}}else if("number"==typeof i){let s=null,o=_n(t,e),a=-1,l=r&_t.Host?e[16][6]:null;for((-1===o||r&_t.SkipSelf)&&(a=-1===o?bn(t,e):e[o+8],-1!==a&&In(r,!1)?(s=e[1],o=dn(a),e=pn(a,e)):o=-1);-1!==o;){const t=e[1];if(Pn(i,o,t.data)){const t=An(o,e,n,s,r,l);if(t!==En)return t}a=e[o+8],-1!==a&&In(r,e[1].data[o+8]===l)&&Pn(i,o,e)?(s=t,o=dn(a),e=pn(a,e)):o=-1}}}return Sn(e,n,r,s)}const En={};function kn(){return new Rn(Te(),ke())}function An(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=On(a,o,n,null==r?te(a)&&fn:r!=o&&0!=(3&a.type),s&_t.Host&&i===a);return null!==l?Tn(e,o,l,a):En}function On(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&ne(t)&&t.type===n)return l}return null}function Tn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof sn){const o=s;o.resolving&&function(t,e){throw new ot("200",`Circular dependency in DI detected for ${t}`)}(lt(i[n]));const a=gn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?wt(o.injectImpl):null;$e(t,r,_t.Default);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const r=oe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==l&&wt(l),gn(a),o.resolving=!1,We()}}return s}function Pn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Lt]||Mn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Lt]||Mn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Mn(t){return it(t)?()=>{const e=Mn(st(t));return e&&e()}:re(t)}function Nn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class jn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ln=new jn("AnalyzeForEntryComponents"),Un=Function;function Fn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Hn(t,e):e(t))}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function zn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Bn(t,e,n){let r=Gn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function qn(t,e){const n=Gn(t,e);if(n>=0)return t[1|n]}function Gn(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const Wn={},Zn=/\n/gm,Qn=J({provide:String,useValue:J});let Yn;function Kn(t){const e=Yn;return Yn=t,e}function Jn(t,e=_t.Default){if(void 0===Yn)throw new Error("inject() must be called from an injection context");return null===Yn?Ct(t,void 0,e):Yn.get(t,e&_t.Optional?null:void 0,e)}function Xn(t,e=_t.Default){return(bt||Jn)(st(t),e)}function tr(t){const e=[];for(let n=0;n({token:t})),-1),rr=er(Vn("Optional"),8),sr=er(Vn("SkipSelf"),4);class ir{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function or(t){return t instanceof ir?t.changingThisBreaksApplicationSecurity:t}const ar=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,lr=/^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 cr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ur(t){const e=function(){const t=ke();return t&&t[12]}();return e?e.sanitize(cr.URL,t)||"":function(t,e){const n=function(t){return t instanceof ir&&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}(t,"URL")?or(t):(n=at(t),(n=String(n)).match(ar)||n.match(lr)?n:"unsafe:"+n);var n}function hr(t,e){t.__ngContext__=e}function dr(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function pr(t){return t.ngDebugContext}function fr(t){return t.ngOriginalError}function gr(t,...e){t.error(...e)}class mr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||gr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?pr(t)?pr(t):this._findContext(fr(t)):null}_findOriginalError(t){let e=fr(t);for(;e&&fr(e);)e=fr(e);return e}}const yr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function vr(t){return t instanceof Function?t():t}var _r=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function br(t,e){return(void 0)(t,e)}function wr(t){const e=t[3];return Jt(e)?e[3]:e}function Cr(t){return xr(t[13])}function Sr(t){return xr(t[4])}function xr(t){for(;null!==t&&!Jt(t);)t=t[4];return t}function Er(t,e,n,r,s){if(null!=r){let i,o=!1;Jt(r)?i=r:Kt(r)&&(o=!0,r=r[0]);const a=pe(r);0===t&&null!==n?null==s?Rr(e,n,a):Ir(e,n,a,s||null,!0):1===t&&null!==n?Ir(e,n,a,s||null,!0):2===t?function(t,e,n){const r=Mr(t,e);r&&function(t,e,n,r){he(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==pe(n)&&Er(e,t,r,i,s);for(let o=10;o0&&(t[n-1][4]=r[4]);const o=zn(t,10+e);Fr(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Tr(t,e){if(!(256&e[2])){const n=e[11];he(n)&&n.destroyNode&&Fr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Pr(t[1],t);for(;e;){let n=null;if(Kt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Kt(e)&&Pr(e[1],e),e=e[3];null===e&&(e=t),Kt(e)&&Pr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Pr(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=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const t=r[s=n[i+1]];n[i].call(t)}if(null!==r){for(let t=s+1;ti?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Br(e,c,0)||2&r&&c!==t){if(Qr(r))return!1;o=!0}}}}else{if(!o&&!Qr(r)&&!Qr(l))return!1;if(o&&Qr(l))continue;o=!1,r=l|1&r}}return Qr(r)||o}function Qr(t){return 0==(1&t)}function Yr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Qr(o)||(e+=Jr(i,s),s=""),r=o,i=i||!Qr(r);n++}return""!==s&&(e+=Jr(i,s)),e}const ts={};function es(t){ns(Ae(),ke(),Qe()+t,De())}function ns(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Xe(e,r,n)}else{const r=t.preOrderHooks;null!==r&&tn(e,r,0,n)}Ye(n)}function rs(t,e){return t<<17|e<<2}function ss(t){return t>>17&32767}function is(t){return 2|t}function os(t){return(131068&t)>>2}function as(t,e){return-131069&t|e<<2}function ls(t){return 1|t}function cs(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&ns(t,e,20,De()),n(r,s)}finally{Ye(i)}}function ys(t,e,n){Ee()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||yn(n,e),hr(r,e);const o=n.initialInputs;for(let a=s;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function ks(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function As(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Os(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&Vs(n)}}function Vs(t){for(let n=Cr(t);null!==n;n=Sr(n))for(let t=10;t0&&Vs(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Vs(r)}}function js(t,e){const n=ve(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Bs(t){return t[7]||(t[7]=[])}function qs(t){return t.cleanup||(t.cleanup=[])}function Gs(t,e){const n=t[9],r=n?n.get(mr,null):null;r&&r.handleError(e)}function Ws(t,e,n,r,s){for(let i=0;ithis.processProvider(n,t,e)),Hn([t],t=>this.processInjectorType(t,[],s)),this.records.set(Qs,oi(void 0,this));const i=this.records.get(Ks);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Wn,n=_t.Default){this.assertNotDestroyed();const r=Kn(this);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof jn)&&dt(t);e=n&&this.injectableDefInScope(n)?oi(si(t),Js):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?ei():this.parent).get(t,e=n&_t.Optional&&e===Wn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(tt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=tt(e);if(Array.isArray(e))s=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):tt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Zn,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{Kn(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let r=ft(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=ft(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{Hn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Rt))}}this.injectorDefTypes.add(i);const a=re(i)||(()=>new i);this.records.set(i,oi(a,Js));const l=r.providers;if(null!=l&&!o){const e=t;Hn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=li(t=st(t))?t:st(t&&t.provide);const s=function(t,e,n){return ai(t)?oi(void 0,t.useValue):oi(ii(t),Js)}(t);if(li(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=oi(void 0,Js,!0),e.factory=()=>tr(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Js&&(e.value=Xs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=st(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function si(t){const e=dt(t),n=null!==e?e.factory:re(t);if(null!==n)return n;if(t instanceof jn)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function ii(t,e,n){let r;if(li(t)){const e=st(t);return re(e)||si(e)}if(ai(t))r=()=>st(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...tr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Xn(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return re(e)||si(e);r=()=>new e(...tr(t.deps))}var s;return r}function oi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ai(t){return null!==t&&"object"==typeof t&&Qn in t}function li(t){return"function"==typeof t}const ci=function(t,e,n){return function(t,e=null,n=null,r){const s=ni(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let ui=(()=>{class t{static create(t,e){return Array.isArray(t)?ci(t,e,""):ci(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Wn,t.NULL=new Ys,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Xn(Qs)}),t.__NG_ELEMENT_ID__=-1,t})();function hi(t,e){Je(dr(t)[1],Te())}function di(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(ne(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=pi(t.inputs),e.declaredInputs=pi(t.declaredInputs),e.outputs=pi(t.outputs);const n=s.hostBindings;n&&mi(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&fi(t,i),o&&gi(t,o),X(t.inputs,s.inputs),X(t.declaredInputs,s.declaredInputs),X(t.outputs,s.outputs),ne(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=cn(s.hostAttrs,n=cn(n,s.hostAttrs))}}(r)}function pi(t){return t===It?{}:t===Rt?[]:t}function fi(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function gi(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function mi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let yi=null;function vi(){if(!yi){const t=Pt.Symbol;if(t&&t.iterator)yi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(pe(t[r.index])):r.index;if(he(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Li(r,e,0,i,!1);const t=n.listen(p,s,i);u.push(i,t),c&&c.push(s,g,f,f+1)}}else i=Li(r,e,0,i,!0),p.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,f,o)}else i=Li(r,e,0,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,xe.lFrame.contextLView))[8]}(t)}function Fi(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?ss(i):os(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Hi(t[a],e)&&(l=!0,t[a+1]=r?ls(n):is(n)),a=r?ss(n):os(n)}l&&(t[n+1]=r?is(i):ls(i))}function Hi(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Gn(t,e)>=0}function $i(t,e){return function(t,e,n,r){const s=ke(),i=Ae(),o=function(t){const e=xe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();i.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const r=s[Qe()],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(r)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=e.residualClasses;if(null===s)0===e.classBindings&&(n=Bi(n=zi(null,t,e,n,true),e.attrs,true),i=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(n=zi(s,t,e,n,true),null===i){let n=function(t,e,n){const r=e.classBindings;if(0!==os(r))return t[ss(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=zi(null,t,e,n[1],true),n=Bi(n,e.attrs,true),function(t,e,n,r){t[ss(e.classBindings)]=r}(t,e,0,n))}else i=function(t,e,n){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ss(t[a+1]);t[r+1]=rs(e,a),0!==e&&(t[e+1]=as(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=rs(a,0),0!==a&&(t[a+1]=as(t[a+1],r)),a=r;else t[r+1]=rs(l,0),0===a?a=r:t[l+1]=as(t[l+1],r),l=r;u&&(t[r+1]=is(t[r+1])),Fi(t,c,r,!0),Fi(t,c,r,!1),function(t,e,n,r,s){const i=t.residualClasses;null!=i&&"string"==typeof e&&Gn(i,e)>=0&&(n[r+1]=ls(n[r+1]))}(e,c,t,r),o=rs(a,l),e.classBindings=o}(s,r,e,n,i)}}(i,t,o),e!==ts&&Si(s,o,e)&&function(t,e,n,r,s,i,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Gi(1==(1&c)?qi(l,e,n,s,os(c),true):void 0)||(Gi(i)||function(t){return 2==(2&t)}(c)&&(i=qi(l,null,n,s,a,true)),function(t,e,n,r,s){const i=he(t);s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r)}(r,0,fe(Qe(),n),s,i))}(i,i.data[Qe()],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=tt(or(t))),t}(e),0,o)}(t,e),$i}function zi(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===ts&&(u=c?Rt:void 0);let h=c?qn(u,r):l===r?u:void 0;if(i&&!Gi(h)&&(h=qn(e,r)),Gi(h)&&(a=h,o))return a;const d=t[s+1];s=o?ss(d):os(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=qn(t,r))}return a}function Gi(t){return void 0!==t}function Wi(t,e=""){const n=ke(),r=Ae(),s=t+20,i=r.firstCreatePass?hs(r,s,1,e,null):r.data[s],o=n[s]=function(t,e){return he(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Nr(r,n,o,i),Ie(i,!1)}function Zi(t){return Qi("",t,""),Zi}function Qi(t,e,n){const r=ke(),s=function(t,e,n,r){return Si(t,Ve(),n)?e+at(n)+r:ts}(r,t,e,n);return s!==ts&&function(t,e,n){const r=fe(e,t);!function(t,e,n){he(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,Qe(),s),Qi}function Yi(t,e,n){const r=ke();return Si(r,Ve(),e)&&Ss(Ae(),Ke(),r,t,e,r[11],n,!0),Yi}const Ki=void 0;var Ji=["en",[["a","p"],["AM","PM"],Ki],[["AM","PM"],Ki,Ki],[["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"]],Ki,[["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"]],Ki,[["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}",Ki,"{1} 'at' {0}",Ki],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Xi={};function to(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=eo(e);if(n)return n;const r=e.split("-")[0];if(n=eo(r),n)return n;if("en"===r)return Ji;throw new Error(`Missing locale data for the locale "${t}".`)}function eo(t){return t in Xi||(Xi[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Xi[t]}var no=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ro="en-US";function so(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ro=t.toLowerCase().replace(/_/g,"-"))}function io(t,e,n,r,s){if(t=st(t),Array.isArray(t))for(let i=0;i>20;if(li(t)||!t.multi){const r=new sn(l,s,Ai),p=lo(a,e,s?u:u+d,h);-1===p?(wn(yn(c,o),i,a),oo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=lo(a,e,u+d,h),f=lo(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){wn(yn(c,o),i,a);const u=function(t,e,n,r,s){const i=new sn(t,n,Ai);return i.multi=[],i.index=e,i.componentProviders=0,ao(i,s,r&&!n),i}(s?uo:co,n.length,s,r,l);!s&&m&&(n[f].providerFactory=u),oo(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else oo(i,t,p>-1?p:f,ao(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function oo(t,e,n,r){const s=li(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function ao(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function lo(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Ae();if(r.firstCreatePass){const s=ne(t);io(n,r.data,r.blueprint,s,!0),io(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class fo{}class go{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let mo=(()=>{class t{}return t.NULL=new go,t})();function yo(...t){}function vo(t,e){return new bo(ge(t,e))}const _o=function(){return vo(Te(),ke())};let bo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=_o,t})();function wo(t){return t instanceof bo?t.nativeElement:t}class Co{}let So=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xo(),t})();const xo=function(){const t=ke(),e=ve(Te().index,t);return function(t){return t[11]}(Kt(e)?e:t)};let Eo=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class ko{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ao=new ko("12.0.5");class Oo{constructor(){}supports(t){return bi(t)}create(t){return new Po(t)}}const To=(t,e)=>e;class Po{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||To}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new Io(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Do),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Do),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Io{constructor(t,e){this.item=t,this.trackById=e,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 Ro{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Do{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ro,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mo(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new jo(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class jo{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Lo(){return new Uo([new Oo])}let Uo=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Lo()),deps:[[t,new sr,new rr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:Lo}),t})();function Fo(){return new Ho([new No])}let Ho=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Fo()),deps:[[t,new sr,new rr]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:Fo}),t})();function $o(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(pe(i)),Jt(i))for(let t=10;t-1&&(Or(t,n),zn(e,n))}this._attachedToViewContainer=!1}Tr(this._lView[1],this._lView)}onDestroy(t){ws(this._lView[1],this._lView,null,t)}markForCheck(){Us(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Me(!0);try{Fs(t,e,n)}finally{Me(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Fr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Bo extends zo{constructor(t){super(t),this._view=t}detectChanges(){Hs(this._view)}checkNoChanges(){!function(t){Me(!0);try{Hs(t)}finally{Me(!1)}}(this._view)}get context(){return null}}const qo=function(t){return function(t,e,n){if(te(t)&&!n){const n=ve(t.index,e);return new zo(n,n)}return 47&t.type?new zo(e[16],e):null}(Te(),ke(),16==(16&t))};let Go=(()=>{class t{}return t.__NG_ELEMENT_ID__=qo,t})();const Wo=[new No],Zo=new Uo([new Oo]),Qo=new Ho(Wo),Yo=function(){return ta(Te(),ke())};let Ko=(()=>{class t{}return t.__NG_ELEMENT_ID__=Yo,t})();const Jo=Ko,Xo=class extends Jo{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=us(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),ps(e,n,t),new zo(n)}};function ta(t,e){return 4&t.type?new Xo(e,t,vo(t,e)):null}class ea{}class na{}const ra=function(){return ca(Te(),ke())};let sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=ra,t})();const ia=sa,oa=class extends ia{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return vo(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){const t=bn(this._hostTNode,this._hostLView);if(hn(t)){const e=pn(t,this._hostLView),n=dn(t);return new Rn(e[1].data[n+8],e)}return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=aa(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(ea,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(Jt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new oa(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=e),ryr});class fa extends fo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Xr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return da(this.componentDef.inputs)}get outputs(){return da(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,ua,s);return i!==ua||r===ua?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(Co,de),o=s.get(Eo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(he(t))return t.selectRootElement(e,n===Et.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):kr(i.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:yr,clean:zs,playerHandler:null,flags:0},d=bs(0,null,null,1,0,null,null,null,null,null),p=us(null,d,h,u,null,null,i,a,o,s);let f,g;ze(p);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=hs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Zs(a,l,!0),null!==t&&(on(s,t,l),null!==a.classes&&zr(s,t,a.classes),null!==a.styles&&$r(s,t,a.styles)));const c=r.createRenderer(t,e),u=us(n,_s(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(wn(yn(a,n),o,e.type),As(o,a),Ts(a,n.length,1)),Ls(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)on(a,c,["ng-version",Ao.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&zr(a,c,e.join(" "))}if(g=me(d,20),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Te();e.contentQueries(1,o,t.directiveStart)}const a=Te();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ye(a.index),Es(n[1],a,0,a.directiveStart,a.directiveEnd,e),ks(e,o)),o}(t,this.componentDef,p,h,[hi]),ps(d,p,null)}finally{Ze()}return new ga(this.componentType,f,vo(g,p),p,g)}}class ga extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Bo(r),this.componentType=t}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const ma=new Map;class ya extends ea{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ha(this);const n=Yt(t),r=t[jt]||null;r&&so(r),this._bootstrapComponents=vr(n.bootstrap),this._r3Injector=ni(t,e,[{provide:ea,useValue:this},{provide:mo,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ui.THROW_IF_NOT_FOUND,n=_t.Default){return t===ui||t===ea||t===Qs?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class va extends na{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(t){const e=new Set;!function t(n){const r=Yt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(s,ma.get(s),n),ma.set(s,n));const i=vr(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new ya(this.moduleType,t)}}function _a(t,e){const n=t[e];return n===ts?void 0:n}function ba(t,e){const n=Ae();let r;const s=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new ot("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=re(r.type)),o=wt(Ai);try{const t=gn(!1),e=i();return gn(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,ke(),s,e),e}finally{wt(o)}}function wa(t,e,n){const r=t+20,s=ke(),i=ye(s,r);return xa(s,Sa(s,r)?function(t,e,n,r,s,i){const o=e+n;return Si(t,o,s)?Ci(t,o+1,i?r.call(i,s):r(s)):_a(t,o+1)}(s,Ne(),e,i.transform,n,i):i.transform(n))}function Ca(t,e,n,r){const s=t+20,i=ke(),o=ye(i,s);return xa(i,Sa(i,s)?function(t,e,n,r,s,i,o){const a=e+n;return xi(t,a,s,i)?Ci(t,a+2,o?r.call(o,s,i):r(s,i)):_a(t,a+2)}(i,Ne(),e,o.transform,n,r,o):o.transform(n,r))}function Sa(t,e){return t[1].data[e].pure}function xa(t,e){return _i.isWrapped(e)&&(e=_i.unwrap(e),t[xe.lFrame.bindingIndex]=ts),e}function Ea(t){return e=>{setTimeout(t,void 0,e)}}const ka=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,s,i;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(i=e.complete)||void 0===i?void 0:i.bind(e)}this.__isAsync&&(a=Ea(a),o&&(o=Ea(o)),l&&(l=Ea(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof h&&t.add(c),c}};function Aa(){return this._results[vi()]()}class Oa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=vi(),n=Oa.prototype;n[e]||(n[e]=Aa)}get changes(){return this._changes||(this._changes=new ka)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const n=Fn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r0)r.push(o[t/2]);else{const s=i[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=yo,this.reject=yo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Xn(qa,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Wa=new jn("AppId"),Za={provide:Wa,useFactory:function(){return`${Qa()}${Qa()}${Qa()}`},deps:[]};function Qa(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ya=new jn("Platform Initializer"),Ka=new jn("Platform ID"),Ja=new jn("appBootstrapListener");let Xa=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const tl=new jn("LocaleId"),el=new jn("DefaultCurrencyCode");class nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rl=function(t){return new va(t)},sl=rl,il=function(t){return Promise.resolve(rl(t))},ol=function(t){const e=rl(t),n=vr(Yt(t).declarations).reduce((t,e)=>{const n=Qt(e);return n&&t.push(new fa(n)),t},[]);return new nl(e,n)},al=ol,ll=function(t){return Promise.resolve(ol(t))};let cl=(()=>{class t{constructor(){this.compileModuleSync=sl,this.compileModuleAsync=il,this.compileModuleAndAllComponentsSync=al,this.compileModuleAndAllComponentsAsync=ll}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const ul=(()=>Promise.resolve(0))();function hl(t){"undefined"==typeof Zone?ul.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class dl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ka(!1),this.onMicrotaskEmpty=new ka(!1),this.onStable=new ka(!1),this.onError=new ka(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&e,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.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(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gl(t),t.isCheckStableRunning=!0,fl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return ml(t),n.invokeTask(s,i,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),yl(t)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return ml(t),n.invoke(s,i,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),yl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,gl(t),fl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(dl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,pl,yo,yo);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const pl={};function fl(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 gl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ml(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function yl(t){t._nesting--,fl(t)}class vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ka,this.onMicrotaskEmpty=new ka,this.onStable=new ka,this.onError=new ka}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let _l=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{dl.assertNotInAngularZone(),hl(()=>{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())hl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Xn(dl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{constructor(){this._applications=new Map,Sl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class wl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Cl,Sl=new wl,xl=!0,El=!1;const kl=new jn("AllowMultipleToken");class Al{constructor(t,e){this.name=t,this.token=e}}function Ol(t,e,n=[]){const r=`Platform: ${e}`,s=new jn(r);return(e=[])=>{let i=Tl();if(!i||i.injector.get(kl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ks,useValue:"platform"});!function(t){if(Cl&&!Cl.destroyed&&!Cl.injector.get(kl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cl=t.get(Pl);const e=t.get(Ya,null);e&&e.forEach(t=>t())}(ui.create({providers:t,name:r}))}return function(t){const e=Tl();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}(s)}}function Tl(){return Cl&&!Cl.destroyed?Cl:null}let Pl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vl:("zone.js"===t?void 0:t)||new dl({enableLongStackTrace:(El=!0,xl),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:dl,useValue:n}];return n.run(()=>{const e=ui.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(mr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{i.handleError(t)}});s.onDestroy(()=>{Dl(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return Mi(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Ga);return t.runInitializers(),t.donePromise.then(()=>(so(s.injector.get(tl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Il({},e);return function(t,e,n){const r=new va(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Rl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Il(t,e){return Array.isArray(e)?e.reduce(Il,t):Object.assign(Object.assign({},t),e)}let Rl=(()=>{class t{constructor(t,e,n,r,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,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 i=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{dl.assertNotInAngularZone(),hl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{dl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return E(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 v?t[0]:z(e)(B(t,n))}(i,o.pipe(t=>{return q()((e=K,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Q);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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 n;n=t instanceof fo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ea),s=n.create(ui.NULL,[],e||n.selector,r),i=s.location.nativeElement,o=s.injector.get(_l,null),a=o&&s.injector.get(bl);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),Dl(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Dl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ja,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Xn(dl),Xn(ui),Xn(mr),Xn(mo),Xn(Ga))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Dl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ml{}class Nl{}const Vl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Vl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(8255)(e).then(t=>t[r]).then(t=>Ll(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Ll(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Xn(cl),Xn(Nl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Ll(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Ul=Ol(null,"core",[{provide:Ka,useValue:"unknown"},{provide:Pl,deps:[ui]},{provide:bl,deps:[]},{provide:Xa,deps:[]}]),Fl=[{provide:Rl,useClass:Rl,deps:[dl,ui,mr,mo,Ga]},{provide:pa,deps:[dl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ga,useClass:Ga,deps:[[new rr,qa]]},{provide:cl,useClass:cl,deps:[]},Za,{provide:Uo,useFactory:function(){return Zo},deps:[]},{provide:Ho,useFactory:function(){return Qo},deps:[]},{provide:tl,useFactory:function(t){return so(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new nr(tl),new rr,new sr]]},{provide:el,useValue:"USD"}];let Hl=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rl))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Fl}),t})(),$l=null;function zl(){return $l}const Bl=new jn("DocumentToken");let ql=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Gl,token:t,providedIn:"platform"}),t})();function Gl(){return Xn(Zl)}const Wl=new jn("Location Initialized");let Zl=(()=>{class t extends ql{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return zl().getBaseHref(this._doc)}onPopState(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=zl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){Ql()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Ql()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({factory:Yl,token:t,providedIn:"platform"}),t})();function Ql(){return!!window.history.pushState}function Yl(){return new Zl(Xn(Bl))}function Kl(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 Jl(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 Xl(t){return t&&"?"!==t[0]?"?"+t:t}let tc=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:ec,token:t,providedIn:"root"}),t})();function ec(t){const e=Xn(Bl).location;return new rc(Xn(ql),e&&e.origin||"")}const nc=new jn("appBaseHref");let rc=(()=>{class t extends tc{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Kl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Xl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+Xl(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+Xl(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ql),Xn(nc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),sc=(()=>{class t extends tc{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Kl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+Xl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+Xl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ql),Xn(nc,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),ic=(()=>{class t{constructor(t,e){this._subject=new ka,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Jl(ac(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Xl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ac(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Xl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Xn(tc),Xn(ql))},t.normalizeQueryParams=Xl,t.joinWithSlash=Kl,t.stripTrailingSlash=Jl,t.\u0275prov=ut({factory:oc,token:t,providedIn:"root"}),t})();function oc(){return new ic(Xn(tc),Xn(ql))}function ac(t){return t.replace(/\/index.html$/,"")}var lc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),cc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),uc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),hc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),dc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function pc(t,e){return vc(to(t)[no.DateFormat],e)}function fc(t,e){return vc(to(t)[no.TimeFormat],e)}function gc(t,e){return vc(to(t)[no.DateTimeFormat],e)}function mc(t,e){const n=to(t),r=n[no.NumberSymbols][e];if(void 0===r){if(e===dc.CurrencyDecimal)return n[no.NumberSymbols][dc.Decimal];if(e===dc.CurrencyGroup)return n[no.NumberSymbols][dc.Group]}return r}function yc(t){if(!t[no.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[no.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function vc(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function _c(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const bc=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,wc={},Cc=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Sc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),xc=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Ec=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function kc(t,e,n,r){let s=function(t){if(Uc(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,r=1]=t.split("-").map(t=>+t);return Ac(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(bc))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Uc(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Oc(n,e)||e;let i,o=[];for(;e;){if(i=Cc.exec(e),!i){o.push(e);break}{o=o.concat(i.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();r&&(a=Lc(r,a),s=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Lc(e,r)-r))}(s,r));let l="";return o.forEach(t=>{const e=function(t){if(jc[t])return jc[t];let e;switch(t){case"G":case"GG":case"GGG":e=Rc(Ec.Eras,uc.Abbreviated);break;case"GGGG":e=Rc(Ec.Eras,uc.Wide);break;case"GGGGG":e=Rc(Ec.Eras,uc.Narrow);break;case"y":e=Ic(xc.FullYear,1,0,!1,!0);break;case"yy":e=Ic(xc.FullYear,2,0,!0,!0);break;case"yyy":e=Ic(xc.FullYear,3,0,!1,!0);break;case"yyyy":e=Ic(xc.FullYear,4,0,!1,!0);break;case"Y":e=Vc(1);break;case"YY":e=Vc(2,!0);break;case"YYY":e=Vc(3);break;case"YYYY":e=Vc(4);break;case"M":case"L":e=Ic(xc.Month,1,1);break;case"MM":case"LL":e=Ic(xc.Month,2,1);break;case"MMM":e=Rc(Ec.Months,uc.Abbreviated);break;case"MMMM":e=Rc(Ec.Months,uc.Wide);break;case"MMMMM":e=Rc(Ec.Months,uc.Narrow);break;case"LLL":e=Rc(Ec.Months,uc.Abbreviated,cc.Standalone);break;case"LLLL":e=Rc(Ec.Months,uc.Wide,cc.Standalone);break;case"LLLLL":e=Rc(Ec.Months,uc.Narrow,cc.Standalone);break;case"w":e=Nc(1);break;case"ww":e=Nc(2);break;case"W":e=Nc(1,!0);break;case"d":e=Ic(xc.Date,1);break;case"dd":e=Ic(xc.Date,2);break;case"c":case"cc":e=Ic(xc.Day,1);break;case"ccc":e=Rc(Ec.Days,uc.Abbreviated,cc.Standalone);break;case"cccc":e=Rc(Ec.Days,uc.Wide,cc.Standalone);break;case"ccccc":e=Rc(Ec.Days,uc.Narrow,cc.Standalone);break;case"cccccc":e=Rc(Ec.Days,uc.Short,cc.Standalone);break;case"E":case"EE":case"EEE":e=Rc(Ec.Days,uc.Abbreviated);break;case"EEEE":e=Rc(Ec.Days,uc.Wide);break;case"EEEEE":e=Rc(Ec.Days,uc.Narrow);break;case"EEEEEE":e=Rc(Ec.Days,uc.Short);break;case"a":case"aa":case"aaa":e=Rc(Ec.DayPeriods,uc.Abbreviated);break;case"aaaa":e=Rc(Ec.DayPeriods,uc.Wide);break;case"aaaaa":e=Rc(Ec.DayPeriods,uc.Narrow);break;case"b":case"bb":case"bbb":e=Rc(Ec.DayPeriods,uc.Abbreviated,cc.Standalone,!0);break;case"bbbb":e=Rc(Ec.DayPeriods,uc.Wide,cc.Standalone,!0);break;case"bbbbb":e=Rc(Ec.DayPeriods,uc.Narrow,cc.Standalone,!0);break;case"B":case"BB":case"BBB":e=Rc(Ec.DayPeriods,uc.Abbreviated,cc.Format,!0);break;case"BBBB":e=Rc(Ec.DayPeriods,uc.Wide,cc.Format,!0);break;case"BBBBB":e=Rc(Ec.DayPeriods,uc.Narrow,cc.Format,!0);break;case"h":e=Ic(xc.Hours,1,-12);break;case"hh":e=Ic(xc.Hours,2,-12);break;case"H":e=Ic(xc.Hours,1);break;case"HH":e=Ic(xc.Hours,2);break;case"m":e=Ic(xc.Minutes,1);break;case"mm":e=Ic(xc.Minutes,2);break;case"s":e=Ic(xc.Seconds,1);break;case"ss":e=Ic(xc.Seconds,2);break;case"S":e=Ic(xc.FractionalSeconds,1);break;case"SS":e=Ic(xc.FractionalSeconds,2);break;case"SSS":e=Ic(xc.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Dc(Sc.Short);break;case"ZZZZZ":e=Dc(Sc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Dc(Sc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Dc(Sc.Long);break;default:return null}return jc[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ac(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Oc(t,e){const n=function(t){return to(t)[no.LocaleId]}(t);if(wc[n]=wc[n]||{},wc[n][e])return wc[n][e];let r="";switch(e){case"shortDate":r=pc(t,hc.Short);break;case"mediumDate":r=pc(t,hc.Medium);break;case"longDate":r=pc(t,hc.Long);break;case"fullDate":r=pc(t,hc.Full);break;case"shortTime":r=fc(t,hc.Short);break;case"mediumTime":r=fc(t,hc.Medium);break;case"longTime":r=fc(t,hc.Long);break;case"fullTime":r=fc(t,hc.Full);break;case"short":const e=Oc(t,"shortTime"),n=Oc(t,"shortDate");r=Tc(gc(t,hc.Short),[e,n]);break;case"medium":const s=Oc(t,"mediumTime"),i=Oc(t,"mediumDate");r=Tc(gc(t,hc.Medium),[s,i]);break;case"long":const o=Oc(t,"longTime"),a=Oc(t,"longDate");r=Tc(gc(t,hc.Long),[o,a]);break;case"full":const l=Oc(t,"fullTime"),c=Oc(t,"fullDate");r=Tc(gc(t,hc.Full),[l,c])}return r&&(wc[n][e]=r),r}function Tc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Pc(t,e,n="-",r,s){let i="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,i=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===xc.Hours)0===a&&-12===n&&(a=12);else if(t===xc.FractionalSeconds)return l=e,Pc(a,3).substr(0,l);var l;const c=mc(o,dc.MinusSign);return Pc(a,e,c,r,s)}}function Rc(t,e,n=cc.Format,r=!1){return function(s,i){return function(t,e,n,r,s,i){switch(n){case Ec.Months:return function(t,e,n){const r=to(t),s=vc([r[no.MonthsFormat],r[no.MonthsStandalone]],e);return vc(s,n)}(e,s,r)[t.getMonth()];case Ec.Days:return function(t,e,n){const r=to(t),s=vc([r[no.DaysFormat],r[no.DaysStandalone]],e);return vc(s,n)}(e,s,r)[t.getDay()];case Ec.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(i){const t=function(t){const e=to(t);return yc(e),(e[no.ExtraData][2]||[]).map(t=>"string"==typeof t?_c(t):[_c(t[0]),_c(t[1])])}(e),n=function(t,e,n){const r=to(t);yc(r);const s=vc([r[no.ExtraData][0],r[no.ExtraData][1]],e)||[];return vc(s,n)||[]}(e,s,r),i=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Sc.Short:return(s>=0?"+":"")+Pc(o,2,i)+Pc(Math.abs(s%60),2,i);case Sc.ShortGMT:return"GMT"+(s>=0?"+":"")+Pc(o,1,i);case Sc.Long:return"GMT"+(s>=0?"+":"")+Pc(o,2,i)+":"+Pc(Math.abs(s%60),2,i);case Sc.Extended:return 0===r?"Z":(s>=0?"+":"")+Pc(o,2,i)+":"+Pc(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Mc(t){return Ac(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Nc(t,e=!1){return function(n,r){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=Mc(n),e=function(t){const e=Ac(t,0,1).getDay();return Ac(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();s=1+Math.round(r/6048e5)}return Pc(s,t,mc(r,dc.MinusSign))}}function Vc(t,e=!1){return function(n,r){return Pc(Mc(n).getFullYear(),t,mc(r,dc.MinusSign),e)}}const jc={};function Lc(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Uc(t){return t instanceof Date&&!isNaN(t.valueOf())}class Fc{}let Hc=(()=>{class t extends Fc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return to(t)[no.PluralCase]}(e||this.locale)(t)){case lc.Zero:return"zero";case lc.One:return"one";case lc.Two:return"two";case lc.Few:return"few";case lc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Xn(tl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function $c(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class zc{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bc=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new zc(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new qc(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new qc(t,s);e.push(i)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ai(sa),Ai(Ko),Ai(Uo))},t.\u0275dir=Wt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class qc{constructor(t,e){this.record=t,this.view=e}}function Gc(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${tt(t)}'`)}let Wc=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Gc(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"uppercase",type:t,pure:!0}),t})(),Zc=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return kc(e,n,s||this.locale,r)}catch(i){throw Gc(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ai(tl,16))},t.\u0275pipe=Zt({name:"date",type:t,pure:!0}),t})(),Qc=(()=>{class t{transform(e,n,r){if(null==e)return null;if(!this.supports(e))throw Gc(t,e);return e.slice(n,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"slice",type:t,pure:!1}),t})(),Yc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[{provide:Fc,useClass:Hc}]}),t})(),Kc=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new Jc(Xn(Bl),window)}),t})();class Jc{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=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 n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Xc(this.window.history)||Xc(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Xc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class tu{}class eu extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new eu,$l||($l=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(ru=ru||document.querySelector("base"),ru?ru.getAttribute("href"):null);return null==e?null:function(t){nu=nu||document.createElement("a"),nu.setAttribute("href",t);const e=nu.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){ru=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $c(document.cookie,t)}}let nu,ru=null;const su=new jn("TRANSITION_ID"),iu=[{provide:qa,useFactory:function(t,e,n){return()=>{n.get(Ga).donePromise.then(()=>{const n=zl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[su,Bl,ui],multi:!0}];class ou{static init(){var t;t=new ou,Sl=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?zl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let au=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lu=new jn("EventManagerPlugins");let cu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t extends hu{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(pu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(pu))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function pu(t){zl().remove(t)}const fu={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/"},gu=/%COMP%/g;function mu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let vu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new _u(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new bu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new wu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=mu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Xn(cu),Xn(du),Xn(Wa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class _u{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(fu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=fu[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=fu[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(_r.DashCase|_r.Important)?t.style.setProperty(e,n,r&_r.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&_r.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,yu(n)):this.eventManager.addEventListener(t,e,yu(n))}}class bu extends _u{constructor(t,e,n,r){super(t),this.component=n;const s=mu(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(gu,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(gu,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class wu extends _u{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=mu(r.id,r.styles,[]);for(let i=0;i{class t extends uu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Su=["alt","control","meta","shift"],xu={"\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"},Eu={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"},ku={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Au=(()=>{class t extends uu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zl().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(Su.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=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&&Eu.hasOwnProperty(e)&&(e=Eu[e]))}return xu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Su.forEach(r=>{r!=n&&(0,ku[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ou=Ol(Ul,"browser",[{provide:Ka,useValue:"browser"},{provide:Ya,useValue:function(){eu.makeCurrent(),ou.init()},multi:!0},{provide:Bl,useFactory:function(){return function(t){ue=t}(document),document},deps:[]}]),Tu=[[],{provide:Ks,useValue:"root"},{provide:mr,useFactory:function(){return new mr},deps:[]},{provide:lu,useClass:Cu,multi:!0,deps:[Bl,dl,Ka]},{provide:lu,useClass:Au,multi:!0,deps:[Bl]},[],{provide:vu,useClass:vu,deps:[cu,du,Wa]},{provide:Co,useExisting:vu},{provide:hu,useExisting:du},{provide:du,useClass:du,deps:[Bl]},{provide:_l,useClass:_l,deps:[dl]},{provide:cu,useClass:cu,deps:[lu,dl]},{provide:tu,useClass:au,deps:[]},[]];let Pu=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:Wa,useValue:e.appId},{provide:su,useExisting:Wa},iu]}}}return t.\u0275fac=function(e){return new(e||t)(Xn(t,12))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:Tu,imports:[Yc,Hl]}),t})();function Iu(...t){let e=t[t.length-1];return E(e)?(t.pop(),N(t,e)):B(t)}function Ru(t,e){return F(t,e,1)}function Du(t,e){return function(n){return n.lift(new Mu(t,e))}}"undefined"!=typeof window&&window;class Mu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Nu(t,this.predicate,this.thisArg))}}class Nu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Vu{}class ju{}class Lu{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Lu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Lu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Lu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Uu{encodeKey(t){return Fu(t)}encodeValue(t){return Fu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Fu(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Hu(t){return`${t}`}class $u{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Uu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new $u({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Hu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(Hu(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class zu{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function Bu(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qu(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Gu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Wu{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Lu),this.context||(this.context=new zu),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new Wu(n,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var Zu=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Qu{constructor(t,e=200,n="OK"){this.headers=t.headers||new Lu,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Yu extends Qu{constructor(t={}){super(t),this.type=Zu.ResponseHeader}clone(t={}){return new Yu({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ku extends Qu{constructor(t={}){super(t),this.type=Zu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ku({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ju extends Qu{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Xu(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let th=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Wu)r=t;else{let s,i;s=n.headers instanceof Lu?n.headers:new Lu(n.headers),n.params&&(i=n.params instanceof $u?n.params:new $u({fromObject:n.params})),r=new Wu(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Iu(r).pipe(Ru(t=>this.handler.handle(t)));if(t instanceof Wu||"events"===n.observe)return s;const i=s.pipe(Du(t=>t instanceof Ku));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(k(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(k(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new $u).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Xu(n,e))}post(t,e,n={}){return this.request("POST",t,Xu(n,e))}put(t,e,n={}){return this.request("PUT",t,Xu(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Vu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class eh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const nh=new jn("HTTP_INTERCEPTORS");let rh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const sh=/^\)\]\}',?\n/;let ih=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new Lu(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Yu({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(sh,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Ku({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Ju({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new Ju({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:Zu.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:Zu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:Zu.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Xn(tu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const oh=new jn("XSRF_COOKIE_NAME"),ah=new jn("XSRF_HEADER_NAME");class lh{}let ch=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=$c(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bl),Xn(Ka),Xn(oh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),uh=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(lh),Xn(ah))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),hh=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(nh,[]);this.chain=t.reduceRight((t,e)=>new eh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Xn(ju),Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),dh=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:uh,useClass:rh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:oh,useValue:e.cookieName}:[],e.headerName?{provide:ah,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[uh,{provide:nh,useExisting:uh,multi:!0},{provide:lh,useClass:ch},{provide:oh,useValue:"XSRF-TOKEN"},{provide:ah,useValue:"X-XSRF-TOKEN"}]}),t})(),ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({providers:[th,{provide:Vu,useClass:hh},ih,{provide:ju,useExisting:ih}],imports:[[dh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function fh(t,e){return new v(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}let gh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(So),Ai(bo))},t.\u0275dir=Wt({type:t}),t})(),mh=(()=>{class t extends gh{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,features:[di]}),t})();const yh=new jn("NgValueAccessor"),vh={provide:yh,useExisting:rt(()=>bh),multi:!0},_h=new jn("CompositionEventMode");let bh=(()=>{class t extends gh{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=zl()?zl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(So),Ai(bo),Ai(_h,8))},t.\u0275dir=Wt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Vi("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[po([vh]),di]}),t})();const wh=new jn("NgValidators"),Ch=new jn("NgAsyncValidators");function Sh(t){return null!=t}function xh(t){const e=Mi(t)?V(t):t;return Ni(e),e}function Eh(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function kh(t,e){return e.map(e=>e(t))}function Ah(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Oh(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Sh);return 0==e.length?null:function(t){return Eh(kh(t,e))}}(Ah(t)):null}function Th(t){return null!=t?function(t){if(!t)return null;const e=t.filter(Sh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return fh(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return fh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return fh(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(k(t=>e(...t)))}return fh(t,null)}(kh(t,e).map(xh)).pipe(k(Eh))}}(Ah(t)):null}function Ph(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let Ih=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Oh(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Th(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t}),t})(),Rh=(()=>{class t extends Ih{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,features:[di]}),t})();class Dh extends Ih{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mh{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Nh=(()=>{class t extends Mh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Dh,2))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&$i("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[di]}),t})(),Vh=(()=>{class t extends Mh{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rh,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&$i("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[di]}),t})();function jh(t,e){Uh(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Fh(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Fh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function Lh(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Uh(t,e){const n=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(Ph(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(Ph(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const s=()=>t.updateValueAndValidity();Lh(e._rawValidators,s),Lh(e._rawAsyncValidators,s)}function Fh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Hh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function $h(t){return(Gh(t)?t.validators:t)||null}function zh(t){return Array.isArray(t)?Oh(t):t||null}function Bh(t,e){return(Gh(e)?e.asyncValidators:t)||null}function qh(t){return Array.isArray(t)?Th(t):t||null}function Gh(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Wh{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=zh(this._rawValidators),this._composedAsyncValidatorFn=qh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=zh(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=qh(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Qh?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Yh&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ka,this.statusChanges=new ka}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Gh(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Zh extends Wh{constructor(t=null,e,n){super($h(e),Bh(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Hh(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Hh(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Qh extends Wh{constructor(t,e,n){super($h(e),Bh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Zh?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Yh extends Wh{constructor(t,e,n){super($h(e),Bh(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Zh?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Kh={provide:Rh,useExisting:rt(()=>Xh)},Jh=(()=>Promise.resolve(null))();let Xh=(()=>{class t extends Rh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ka,this.form=new Qh({},Oh(t),Th(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Jh.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),jh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Jh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Hh(this._directives,t)})}addFormGroup(t){Jh.then(()=>{const e=this._findContainer(t.path),n=new Qh({});(function(t,e){Uh(t,e)})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Jh.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Jh.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ai(wh,10),Ai(Ch,10))},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Vi("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[po([Kh]),di]}),t})();const td={provide:Dh,useExisting:rt(()=>nd)},ed=(()=>Promise.resolve(null))();let nd=(()=>{class t extends Dh{constructor(t,e,n,r){super(),this.control=new Zh,this._registered=!1,this.update=new ka,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{t.constructor===bh?n=t:Object.getPrototypeOf(t.constructor)===mh?r=t:s=t}),s||r||n||null}(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){jh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ed.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ed.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rh,9),Ai(wh,10),Ai(Ch,10),Ai(yh,10))},t.\u0275dir=Wt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[po([td]),di,ie]}),t})(),rd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),sd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();const id={provide:yh,useExisting:rt(()=>ad),multi:!0};function od(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ad=(()=>{class t extends mh{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=od(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Wt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Vi("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[po([id]),di]}),t})(),ld=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(od(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ai(bo),Ai(So),Ai(ad,9))},t.\u0275dir=Wt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const cd={provide:yh,useExisting:rt(()=>hd),multi:!0};function ud(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let hd=(()=>{class t extends mh{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ud(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ud(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ai(bo),Ai(So),Ai(hd,9))},t.\u0275dir=Wt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[[sd]]}),t})(),fd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({imports:[pd]}),t})();class gd extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}class md extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class yd extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function vd(t,e,n,r,s=new yd(t,n,r)){if(!s.closed)return e instanceof v?e.subscribe(s):M(e)(s)}const _d={};class bd{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wd(t,this.resultSelector))}}class wd extends md{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{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 Sd(...t){return z(1)(Iu(...t))}const xd=new v(t=>t.complete());function Ed(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):xd}function kd(t){return new v(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?V(n):Ed()).subscribe(e)})}function Ad(t,e){return"function"==typeof e?n=>n.pipe(Ad((n,r)=>V(t(n,r)).pipe(k((t,s)=>e(n,t,r,s))))):e=>e.lift(new Od(t))}class Od{constructor(t){this.project=t}call(t,e){return e.subscribe(new Td(t,this.project))}}class Td extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new j(this),r=this.destination;r.add(n),this.innerSubscription=U(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Pd=(()=>{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 Id(t){return e=>0===t?Ed():e.lift(new Rd(t))}class Rd{constructor(t){if(this.total=t,this.total<0)throw new Pd}call(t,e){return e.subscribe(new Dd(t,this.total))}}class Dd extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Md(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Nd(t,e,n))}}class Nd{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Vd(t,this.accumulator,this.seed,this.hasSeed))}}class Vd extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function jd(t){return function(e){const n=new Ld(t),r=e.lift(n);return n.caught=r}}class Ld{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ud(t,this.selector,this.caught))}}class Ud extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new j(this);this.add(r);const s=U(n,r);s!==r&&this.add(s)}}}function Fd(t){return function(e){return 0===t?Ed():e.lift(new Hd(t))}}class Hd{constructor(t){if(this.total=t,this.total<0)throw new Pd}call(t,e){return e.subscribe(new $d(t,this.total))}}class $d extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new Bd(t))}class Bd{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new qd(t,this.errorFactory))}}class qd extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Gd(){return new Cd}function Wd(t=null){return e=>e.lift(new Zd(t))}class Zd{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Qd(t,this.defaultValue))}}class Qd extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Yd(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Du((e,n)=>t(e,n,r)):y,Id(1),n?Wd(e):zd(()=>new Cd))}function Kd(){}function Jd(t,e,n){return function(r){return r.lift(new Xd(t,e,n))}}class Xd{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new tp(t,this.nextOrObserver,this.error,this.complete))}}class tp extends f{constructor(t,e,n,s){super(t),this._tapNext=Kd,this._tapError=Kd,this._tapComplete=Kd,this._tapError=n||Kd,this._tapComplete=s||Kd,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Kd,this._tapError=e.error||Kd,this._tapComplete=e.complete||Kd)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class ep{constructor(t){this.callback=t}call(t,e){return e.subscribe(new np(t,this.callback))}}class np extends f{constructor(t,e){super(t),this.add(new h(e))}}class rp{constructor(t,e){this.id=t,this.url=e}}class sp extends rp{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ip extends rp{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class op extends rp{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ap extends rp{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class up extends rp{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dp extends rp{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vp{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _p{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class bp{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function wp(t){return new bp(t)}function Cp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Sp(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function kp(t){return Array.prototype.concat.apply([],t)}function Ap(t){return t.length>0?t[t.length-1]:null}function Op(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tp(t){return Ni(t)?t:Mi(t)?V(Promise.resolve(t)):Iu(t)}const Pp={exact:function t(e,n,r){if(!Up(e.segments,n.segments))return!1;if(!Np(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],r))return!1}return!0},subset:Dp},Ip={exact:function(t,e){return xp(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ep(t[n],e[n]))},ignored:()=>!0};function Rp(t,e,n){return Pp[n.paths](t.root,e.root,n.matrixParams)&&Ip[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Dp(t,e,n){return Mp(t,e,e.segments,n)}function Mp(t,e,n,r){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!Up(s,n)&&!e.hasChildren()&&!!Np(s,n,r)}if(t.segments.length===n.length){if(!Up(t.segments,n))return!1;if(!Np(t.segments,n,r))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Dp(t.children[n],e.children[n],r))return!1}return!0}{const s=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!Up(t.segments,s)&&!!Np(t.segments,s,r)&&!!t.children.primary&&Mp(t.children.primary,e,i,r)}}function Np(t,e,n){return e.every((e,r)=>Ip[n](t[r].parameters,e.parameters))}class Vp{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wp(this.queryParams)),this._queryParamMap}toString(){return $p.serialize(this)}}class jp{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Op(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zp(this)}}class Lp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=wp(this.parameters)),this._parameterMap}toString(){return Yp(this)}}function Up(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Fp{}class Hp{parse(t){const e=new ef(t);return new Vp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Bp(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Gp(e)}=${Gp(t)}`).join("&"):`${Gp(e)}=${Gp(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const $p=new Hp;function zp(t){return t.segments.map(t=>Yp(t)).join("/")}function Bp(t,e){if(!t.hasChildren())return zp(t);if(e){const e=t.children.primary?Bp(t.children.primary,!1):"",n=[];return Op(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${Bp(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Op(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Op(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>"primary"===n?[Bp(t.children.primary,!1)]:[`${n}:${Bp(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${zp(t)}/${e[0]}`:`${zp(t)}/(${e.join("//")})`}}function qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return qp(t).replace(/%3B/gi,";")}function Wp(t){return qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zp(t){return decodeURIComponent(t)}function Qp(t){return Zp(t.replace(/\+/g,"%20"))}function Yp(t){return`${Wp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Wp(t)}=${Wp(e[t])}`).join("")}`;var e}const Kp=/^[^\/()?;=#]+/;function Jp(t){const e=t.match(Kp);return e?e[0]:""}const Xp=/^[^=?&#]+/,tf=/^[^?&#]+/;class ef{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jp([],{}):new jp([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new jp(t,e)),n}parseSegment(){const t=Jp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Lp(Zp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Jp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Jp(this.remaining);t&&(n=t,this.capture(n))}t[Zp(e)]=Zp(n)}parseQueryParam(t){const e=function(t){const e=t.match(Xp);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(tf);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Qp(e),s=Qp(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Jp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new jp([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class nf{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=rf(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=rf(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=sf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return sf(t,this._root).map(t=>t.value)}}function rf(t,e){if(t===e.value)return e;for(const n of e.children){const e=rf(t,n);if(e)return e}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 of{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function af(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class lf extends nf{constructor(t,e){super(t),this.snapshot=e,ff(this,t)}toString(){return this.snapshot.toString()}}function cf(t,e){const n=function(t,e){const n=new df([],{},{},"",{},"primary",e,null,t.root,-1,{});return new pf("",new of(n,[]))}(t,e),r=new gd([new Lp("",{})]),s=new gd({}),i=new gd({}),o=new gd({}),a=new gd(""),l=new uf(r,s,o,a,i,"primary",e,n.root);return l.snapshot=n.root,new lf(new of(l,[]),n)}class uf{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}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(k(t=>wp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(k(t=>wp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hf(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class df{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=wp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pf extends nf{constructor(t,e){super(e),this.url=t,ff(this,e)}toString(){return gf(this._root)}}function ff(t,e){e.value._routerState=t,e.children.forEach(e=>ff(t,e))}function gf(t){const e=t.children.length>0?` { ${t.children.map(gf).join(", ")} } `:"";return`${t.value}${e}`}function mf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,xp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),xp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nxp(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yf(t.parent,e.parent))}function vf(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return vf(t,e,r);return vf(t,e)})}(t,e,n);return new of(r,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return _f(e,t),t}}const n=new uf(new gd((r=e.value).url),new gd(r.params),new gd(r.queryParams),new gd(r.fragment),new gd(r.data),r.outlet,r.component,r),s=e.children.map(e=>vf(t,e));return new of(n,s)}var r}function _f(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{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Vp(n.root===t?e:Sf(n.root,t,e),i,s)}function Sf(t,e,n){const r={};return Op(t.children,(t,s)=>{r[s]=t===e?n:Sf(t,e,n)}),new jp(t.segments,r)}class xf{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&bf(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(wf);if(r&&r!==Ap(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ef{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function kf(t,e,n){if(t||(t=new jp([],{})),0===t.segments.length&&t.hasChildren())return Af(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=n[r];if(wf(o))break;const a=`${o}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!If(a,l,e))return i;r+=2}else{if(!If(a,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=kf(t.children[r],e,n))}),Op(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new jp(t.segments,s)}}function Of(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Of(new jp([],{}),0,t))}),e}function Pf(t){const e={};return Op(t,(t,n)=>e[n]=`${t}`),e}function If(t,e,n){return t==n.path&&xp(e,n.parameters)}class Rf{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),mf(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=af(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Op(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,s=af(t);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=af(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new vp(t.value.snapshot))}),t.children.length&&this.forwardEvent(new mp(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(mf(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Df(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Df(t){mf(t.value),t.children.forEach(Df)}class Mf{constructor(t,e){this.routes=t,this.module=e}}function Nf(t){return"function"==typeof t}function Vf(t){return t instanceof Vp}const jf=Symbol("INITIAL_VALUE");function Lf(){return Ad(t=>function(...t){let e,n;return E(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),B(t,n).lift(new bd(e))}(t.map(t=>t.pipe(Id(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>Sd(t,n,e)):e=>Sd(t,e)}(jf)))).pipe(Md((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==jf)return t;if(r===jf&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Vf(r))return r}return t},t)},jf),Du(t=>t!==jf),k(t=>Vf(t)?t:!0===t),Id(1)))}let Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ri(0,"router-outlet")},directives:function(){return[jg]},encapsulation:2}),t})();function Ff(t,e=""){for(let n=0;nBf(t)===e);return n.push(...t.filter(t=>Bf(t)!==e)),n}const Gf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Wf(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Gf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Sp)(n,t,e);if(!s)return Object.assign({},Gf);const i={};Op(s.posParams,(t,e)=>{i[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Zf(t,e,n,r,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Qf(t,e,n)&&"primary"!==Bf(n))}(t,n,r)){const s=new jp(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==Bf(i)){const n=new jp([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Bf(i)]=n}return s}(t,e,r,new jp(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(n=>Qf(t,e,n))}(t,n,r)){const i=new jp(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Qf(t,n,a)&&!s[Bf(a)]){const n=new jp([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Bf(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new jp(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Qf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Yf(t,e,n,r){return!!(Bf(t)===r||"primary"!==r&&Qf(e,n,t))&&("**"===t.path||Wf(e,t,n).matched)}function Kf(t,e,n){return 0===e.length&&!t.children[n]}class Jf{constructor(t){this.segmentGroup=t||null}}class Xf{constructor(t){this.urlTree=t}}function tg(t){return new v(e=>e.error(new Jf(t)))}function eg(t){return new v(e=>e.error(new Xf(t)))}function ng(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class rg{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(ea)}apply(){const t=Zf(this.urlTree.root,[],[],this.config).segmentGroup,e=new jp(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(k(t=>this.createUrlTree(sg(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(jd(t=>{if(t instanceof Xf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Jf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(k(e=>this.createUrlTree(sg(e),t.queryParams,t.fragment))).pipe(jd(t=>{if(t instanceof Jf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new jp([],{primary:t}):t;return new Vp(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(k(t=>new jp([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return V(r).pipe(Ru(r=>{const s=n.children[r],i=qf(e,r);return this.expandSegmentGroup(t,i,s,r).pipe(k(t=>({segment:t,outlet:r})))}),Md((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Du((e,n)=>t(e,n,r)):y,Fd(1),n?Wd(e):zd(()=>new Cd))}())}expandSegment(t,e,n,r,s,i){return V(n).pipe(Ru(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(jd(t=>{if(t instanceof Jf)return Iu(null);throw t}))),Yd(t=>!!t),jd((t,n)=>{if(t instanceof Cd||"EmptyError"===t.name){if(Kf(e,r,s))return Iu(new jp([],{}));throw new Jf(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return Yf(r,e,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):tg(e):tg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?eg(s):this.lineralizeSegments(n,s).pipe(F(n=>{const s=new jp(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Wf(e,r,s);if(!o)return tg(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?eg(u):this.lineralizeSegments(r,u).pipe(F(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Iu(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(k(t=>(n._loadedConfig=t,new jp(r,{})))):Iu(new jp(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=Wf(e,n,r);if(!i)return tg(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(F(t=>{const r=t.module,i=t.routes,{segmentGroup:a,slicedSegments:c}=Zf(e,o,l,i),u=new jp(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,i,u).pipe(k(t=>new jp(o,t)));if(0===i.length&&0===c.length)return Iu(new jp(o,{}));const h=Bf(n)===s;return this.expandSegment(r,u,i,c,h?"primary":s,!0).pipe(k(t=>new jp(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Iu(new Mf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Iu(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(F(n=>n?this.configLoader.load(t.injector,e).pipe(k(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Cp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Iu(new Mf([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Iu(r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&Nf(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Nf(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Tp(i)})).pipe(Lf(),Jd(t=>{if(!Vf(t))return;const e=Cp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),k(t=>!0===t)):Iu(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Iu(n);if(r.numberOfChildren>1||!r.children.primary)return ng(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Vp(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Op(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Op(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new jp(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function sg(t){const e={};for(const n of Object.keys(t.children)){const r=sg(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new jp(t.segments.concat(e.segments),e.children)}return t}(new jp(t.segments,e))}class ig{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class og{constructor(t,e){this.component=t,this.route=e}}function ag(t,e,n){const r=t._root;return cg(r,e?e._root:null,n,[r.value])}function lg(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function cg(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=af(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Up(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Up(t.url,e.url)||!xp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yf(t,e)||!xp(t.queryParams,e.queryParams);case"paramsChange":default:return!yf(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new ig(r)):(i.data=o.data,i._resolvedData=o._resolvedData),cg(t,e,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new og(a.outlet.component,o))}else o&&ug(e,a,s),s.canActivateChecks.push(new ig(r)),cg(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),Op(i,(t,e)=>ug(t,n.getContext(e),s)),s}function ug(t,e,n){const r=af(t),s=t.value;Op(r,(t,r)=>{ug(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new og(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class hg{}function dg(t){return new v(e=>e.error(t))}class pg{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const t=Zf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new df([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new of(n,e),s=new pf(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=hf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const r=e.children[s],i=qf(t,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=gg(n);return r.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,r);if(null!==t)return t}return Kf(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!Yf(t,e,n,r))return null;let s,i=[],o=[];if("**"===t.path){const r=n.length>0?Ap(n).parameters:{};s=new df(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),Bf(t),t.component,t,mg(e),yg(e)+n.length,_g(t))}else{const r=Wf(e,t,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new df(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),Bf(t),t.component,t,mg(e),yg(e)+i.length,_g(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Zf(e,i,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new of(s,t)]}if(0===a.length&&0===c.length)return[new of(s,[])];const u=Bf(t)===r,h=this.processSegment(a,l,c,u?"primary":r);return null===h?null:[new of(s,h)]}}function fg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function gg(t){const e=[],n=new Set;for(const r of t){if(!fg(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=gg(r.children);e.push(new of(r.value,t))}return e.filter(t=>!n.has(t))}function mg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function yg(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 vg(t){return t.data||{}}function _g(t){return t.resolve||{}}function bg(t){return Ad(e=>{const n=t(e);return n?V(n).pipe(k(()=>e)):Iu(e)})}class wg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Cg=new jn("ROUTES");class Sg{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(k(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Mf(kp(r.injector.get(Cg,void 0,_t.Self|_t.Optional)).map(zf),r)}),jd(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(n,()=>new S).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):Tp(t()).pipe(F(t=>t instanceof na?Iu(t):V(this.compiler.compileModuleAsync(t))))}}class xg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Eg,this.attachRef=null}}class Eg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new xg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class kg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ag(t){throw t}function Og(t,e,n){return e.parse("/")}function Tg(t,e){return Iu(null)}const Pg={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ig={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Rg=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Ag,this.malformedUriErrorHandler=Og,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Tg,afterPreactivation:Tg},this.urlHandlingStrategy=new kg,this.routeReuseStrategy=new wg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ea),this.console=s.get(Xa);const l=s.get(dl);this.isNgZoneEnabled=l instanceof dl&&dl.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Vp(new jp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sg(i,o,t=>this.triggerEvent(new pp(t)),t=>this.triggerEvent(new fp(t))),this.routerState=cf(this.currentUrlTree,this.rootComponentType),this.transitions=new gd({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()}setupNavigations(t){const e=this.events;return t.pipe(Du(t=>0!==t.id),k(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Ad(t=>{let n=!1,r=!1;return Iu(t).pipe(Jd(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ad(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Iu(t).pipe(Ad(t=>{const n=this.transitions.getValue();return e.next(new sp(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?xd:Promise.resolve(t)}),function(t,e,n,r){return Ad(s=>function(t,e,n,r,s){return new rg(t,e,n,r,s).apply()}(t,e,n,s.extractedUrl,r).pipe(k(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Jd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return F(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){try{const o=new pg(t,e,n,r,s,i).recognize();return null===o?dg(new hg):Iu(o)}catch(o){return dg(o)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(k(t=>Object.assign(Object.assign({},i),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Jd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new lp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new sp(n,this.serializeUrl(r),s,i);e.next(a);const l=cf(r,this.rootComponentType).snapshot;return Iu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),xd}),bg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Jd(t=>{const e=new cp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),k(t=>Object.assign(Object.assign({},t),{guards:ag(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return F(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Iu(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return V(t).pipe(F(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Iu(i.map(i=>{const o=lg(i,e,s);let a;if(function(t){return t&&Nf(t.canDeactivate)}(o))a=Tp(o.canDeactivate(t,e,n,r));else{if(!Nf(o))throw new Error("Invalid CanDeactivate guard");a=Tp(o(t,e,n,r))}return a.pipe(Yd())})).pipe(Lf()):Iu(!0)}(t.component,t.route,n,e,r)),Yd(t=>!0!==t,!0))}(o,r,s,t).pipe(F(n=>n&&"boolean"==typeof n?function(t,e,n,r){return V(e).pipe(Ru(e=>Sd(function(t,e){return null!==t&&e&&e(new gp(t)),Iu(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new yp(t)),Iu(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>kd(()=>Iu(e.guards.map(s=>{const i=lg(s,e.node,n);let o;if(function(t){return t&&Nf(t.canActivateChild)}(i))o=Tp(i.canActivateChild(r,t));else{if(!Nf(i))throw new Error("Invalid CanActivateChild guard");o=Tp(i(r,t))}return o.pipe(Yd())})).pipe(Lf())));return Iu(s).pipe(Lf())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Iu(r.map(r=>kd(()=>{const s=lg(r,e,n);let i;if(function(t){return t&&Nf(t.canActivate)}(s))i=Tp(s.canActivate(e,t));else{if(!Nf(s))throw new Error("Invalid CanActivate guard");i=Tp(s(e,t))}return i.pipe(Yd())}))).pipe(Lf()):Iu(!0)}(t,e.route,n))),Yd(t=>!0!==t,!0))}(r,i,t,e):Iu(n)),k(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Jd(t=>{if(Vf(t.guardsResult)){const e=Cp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new up(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Du(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),bg(t=>{if(t.guards.canActivateChecks.length)return Iu(t).pipe(Jd(t=>{const e=new hp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Ad(t=>{let e=!1;return Iu(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,F(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Iu(t);let i=0;return V(s).pipe(Ru(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Iu({});const i={};return V(s).pipe(F(s=>function(t,e,n,r){const s=lg(t,e,r);return Tp(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Jd(t=>{i[s]=t}))),Fd(1),F(()=>Object.keys(i).length===s.length?Iu(i):xd))}(t._resolve,t,e,r).pipe(k(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),hf(t,n).resolve),null)))}(t.route,e,n,r)),Jd(()=>i++),Fd(1),F(e=>i===s.length?Iu(t):xd))})),Jd({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var n,r}),Jd(t=>{const e=new dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),bg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),k(t=>{const e=function(t,e,n){const r=vf(t,e._root,n?n._root:void 0);return new lf(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Jd(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),k(t=>(new Rf(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),Jd({next(){n=!0},complete(){n=!0}}),(s=()=>{n||r||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null},t=>t.lift(new ep(s))),jd(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Vf(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new op(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new ap(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return xd}));var s,i,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ff(t),this.config=t.map(zf),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(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,s){if(0===n.length)return Cf(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new xf(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Op(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new xf(n,e,r)}(n);if(i.toRoot())return Cf(e.root,new jp([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Ef(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ef(t,t===e.root,0)}const r=bf(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Ef(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Af(o.segmentGroup,o.index,i.commands):kf(o.segmentGroup,o.index,i.commands);return Cf(o.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Vf(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(r,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ip(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==e&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const n=new op(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Un),Xn(Fp),Xn(Eg),Xn(ic),Xn(ui),Xn(Ml),Xn(cl),Xn(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Dg=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Ng(this.skipLocationChange),replaceUrl:Ng(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!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:Ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(uf),Nn("tabindex"),Ai(So),Ai(bo))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Vi("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ie]}),t})(),Mg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=t.events.subscribe(t=>{t instanceof ip&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,s){if(0!==t||e||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:Ng(this.skipLocationChange),replaceUrl:Ng(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!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:Ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(uf),Ai(tc))},t.\u0275dir=Wt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Vi("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Yi("href",e.href,ur),Ei("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[ie]}),t})();function Ng(t){return""===t||!!t}let Vg=(()=>{class t{constructor(t,e,n,r,s,i){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof ip&&this.update()})}ngAfterContentInit(){Iu(this.links.changes,this.linksWithHrefs.changes,Iu(null)).pipe(z()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=V(e).pipe(z()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg),Ai(bo),Ai(So),Ai(Go),Ai(Dg,8),Ai(Mg,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(Fa(n,Dg,5),Fa(n,Mg,5)),2&t){let t;La(t=Ha())&&(e.links=t),La(t=Ha())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ie]}),t})(),jg=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ka,this.deactivateEvents=new ka,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Lg(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ai(Eg),Ai(sa),Ai(mo),Nn("name"),Ai(Go))},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Lg{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===uf?this.route:t===Eg?this.childContexts:this.parent.get(t,e)}}class Ug{}class Fg{preload(t,e){return Iu(null)}}let Hg=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Sg(e,n,e=>t.triggerEvent(new pp(e)),e=>t.triggerEvent(new fp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Du(t=>t instanceof ip),Ru(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ea);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return V(n).pipe(z(),k(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Iu(e._loadedConfig):this.loader.load(t.injector,e)).pipe(F(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rg),Xn(Ml),Xn(cl),Xn(ui),Xn(Ug))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),$g=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof sp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ip&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof _p&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new _p(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Xn(Rg),Xn(Kc),Xn(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const zg=new jn("ROUTER_CONFIGURATION"),Bg=new jn("ROUTER_FORROOT_GUARD"),qg=[ic,{provide:Fp,useClass:Hp},{provide:Rg,useFactory:function(t,e,n,r,s,i,o,a={},l,c){const u=new Rg(null,t,e,n,r,s,i,kp(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),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,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Fp,Eg,ic,ui,Ml,cl,Cg,zg,[class{},new rr],[class{},new rr]]},Eg,{provide:uf,useFactory:function(t){return t.routerState.root},deps:[Rg]},{provide:Ml,useClass:jl},Hg,Fg,class{preload(t,e){return e().pipe(jd(()=>Iu(null)))}},{provide:zg,useValue:{enableTracing:!1}}];function Gg(){return new Al("Router",Rg)}let Wg=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[qg,Kg(e),{provide:Bg,useFactory:Yg,deps:[[Rg,new rr,new sr]]},{provide:zg,useValue:n||{}},{provide:tc,useFactory:Qg,deps:[ql,[new nr(nc),new rr],zg]},{provide:$g,useFactory:Zg,deps:[Rg,Kc,zg]},{provide:Ug,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fg},{provide:Al,multi:!0,useFactory:Gg},[Jg,{provide:qa,multi:!0,useFactory:Xg,deps:[Jg]},{provide:em,useFactory:tm,deps:[Jg]},{provide:Ja,multi:!0,useExisting:em}]]}}static forChild(e){return{ngModule:t,providers:[Kg(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Xn(Bg,8),Xn(Rg,8))},t.\u0275mod=qt({type:t}),t.\u0275inj=ht({}),t})();function Zg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new $g(t,e,n)}function Qg(t,e,n={}){return n.useHash?new sc(t,e):new rc(t,e)}function Yg(t){return"guarded"}function Kg(t){return[{provide:Ln,multi:!0,useValue:t},{provide:Cg,multi:!0,useValue:t}]}let Jg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Wl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Rg),r=this.injector.get(zg);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Iu(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(zg),n=this.injector.get(Hg),r=this.injector.get($g),s=this.injector.get(Rg),i=this.injector.get(Rl);t===i.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(Xn(ui))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xg(t){return t.appInitializer.bind(t)}function tm(t){return t.bootstrapListener.bind(t)}const em=new jn("Router Initializer"),nm=function(){return{exact:!0}};let rm=(()=>{class t{constructor(t){this.router=t,this.title="Blog",this.searchText=""}goSearchComponent(){this.router.navigate([`search/${this.searchText}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-root"]],decls:44,vars:3,consts:[["routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink",""],["routerLinkActive","active"],["routerLink","theme/lifestyle"],["routerLink","theme/nature"],["routerLink","theme/scienceNTechnologies"],["routerLink","theme/sport"],["id","searchDiv"],["list","articleList","type","search","placeholder","Search for an article...",3,"ngModel","ngModelChange"],["type","button",3,"click"],["id","centerDiv"],["align","center"],["href","https://www.instagram.com/"],["src","../assets/instagram-icon.png"],["href","https://uk-ua.facebook.com/"],["src","../assets/facebook-icon.png"],["href","https://www.pinterest.com/"],["src","../assets/pinterest-icon.png"],["href","https://twitter.com/?lang=ru"],["src","../assets/twitter-icon.png"]],template:function(t,e){1&t&&(Pi(0,"header"),Pi(1,"nav"),Pi(2,"ul"),Pi(3,"li",0),Pi(4,"a",1),Wi(5,"HOME"),Ii(),Ii(),Pi(6,"li",2),Pi(7,"a",3),Wi(8,"LIFE STYLE"),Ii(),Ii(),Pi(9,"li",2),Pi(10,"a",4),Wi(11,"NATURE"),Ii(),Ii(),Pi(12,"li",2),Pi(13,"a",5),Wi(14,"SCIENCE AND TECHNOLOGY"),Ii(),Ii(),Pi(15,"li",2),Pi(16,"a",6),Wi(17,"SPORT"),Ii(),Ii(),Ii(),Ii(),Pi(18,"div",7),Pi(19,"input",8),Vi("ngModelChange",function(t){return e.searchText=t}),Ii(),Pi(20,"button",9),Vi("click",function(){return e.goSearchComponent()}),Ii(),Ii(),Ii(),Pi(21,"div",10),Pi(22,"h1",11),Wi(23,"MY BLOG"),Ii(),Pi(24,"p"),Wi(25,"Here you will find a lot of interesting things"),Ii(),Ii(),Ri(26,"router-outlet"),Pi(27,"footer"),Pi(28,"p"),Wi(29," \xa9 2021 VVG "),Ii(),Pi(30,"nav"),Pi(31,"ul"),Pi(32,"li"),Pi(33,"a",12),Ri(34,"img",13),Ii(),Ii(),Pi(35,"li"),Pi(36,"a",14),Ri(37,"img",15),Ii(),Ii(),Pi(38,"li"),Pi(39,"a",16),Ri(40,"img",17),Ii(),Ii(),Pi(41,"li"),Pi(42,"a",18),Ri(43,"img",19),Ii(),Ii(),Ii(),Ii(),Ii()),2&t&&(es(3),Oi("routerLinkActiveOptions",function(t,e,n){const r=Ne()+2,s=ke();return s[r]===ts?Ci(s,r,e()):function(t,e){return t[e]}(s,r)}(0,nm)),es(16),Oi("ngModel",e.searchText))},directives:[Vg,Mg,bh,Nh,nd,jg],styles:["header[_ngcontent-%COMP%]{background:#000;position:fixed;top:0;width:100%;display:flex;justify-content:space-between}#searchDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-min-content;height:-moz-min-content;height:min-content;margin:auto 1%}#searchDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:20px;margin-right:5px}#searchDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url(loupe.63e36a417121627c983b.png);background-repeat:no-repeat;cursor:pointer;border:none;background-color:transparent;margin:auto 0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding-left:0;display:flex;justify-content:flex-start}a[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff;white-space:nowrap}li[_ngcontent-%COMP%]{padding:2%}li[_ngcontent-%COMP%]:hover{cursor:pointer}.active[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover{background:#535353}#centerDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:5% auto auto}#centerDiv[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:0}#centerDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5%;margin-bottom:7%;font-family:SEGOE PRINT}footer[_ngcontent-%COMP%]{background:#000;position:sticky;width:100%;color:#fff;display:flex;justify-content:space-between}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px;height:25px}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;font-family:sans-serif;font-weight:300;font-size:x-small;margin:auto 1%}"]}),t})(),sm=(()=>{class t{constructor(t){this.http=t,this.BASE_URI="https://api-for-angular-blog.onrender.com/api/blog"}getAllArticles(){return this.http.get(this.BASE_URI)}getArticlesByName(t){return this.http.get(this.BASE_URI+`articles/${t}`)}getArticlesByTheme(t){return this.http.get(this.BASE_URI+`theme/${t}`)}getArticlesByTag(t){return this.http.get(this.BASE_URI+`tag/${t}`)}getArticleById(t){return this.http.get(this.BASE_URI+t)}postCreateArticle(t){return this.http.post(this.BASE_URI,t)}deleteArticle(t){return this.http.delete(this.BASE_URI+t)}updateArticle(t,e){return this.http.put(this.BASE_URI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(Xn(th))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function im(t,e){if(1&t){const t=Di();Pi(0,"li",9),Vi("click",function(){const e=Oe(t).$implicit;return Ui(2).goToSearch(e.name)}),Wi(1),ba(2,"uppercase"),Ii()}if(2&t){const t=e.$implicit;es(1),Qi(" #",wa(2,1,t.name)," ")}}function om(t,e){if(1&t){const t=Di();Pi(0,"div",1),Pi(1,"ul",2),ki(2,im,3,3,"li",3),Ii(),Pi(3,"h3",4),Wi(4),Ii(),Pi(5,"ul",5),Pi(6,"li"),Wi(7),ba(8,"date"),Ii(),Pi(9,"li"),Wi(10),Ii(),Ii(),Ri(11,"img",6),Pi(12,"p",7),Wi(13),ba(14,"slice"),Ii(),Pi(15,"button",8),Vi("click",function(){const e=Oe(t).$implicit;return Ui().goToArtile(e.id)}),Wi(16,"Continue Reading\u2192"),Ii(),Ii()}if(2&t){const t=e.$implicit;es(2),Oi("ngForOf",t.tags),es(2),Zi(t.name),es(3),Zi(Ca(8,6,t.date,"mediumDate")),es(3),Zi(null==t.author?null:t.author.nickName),es(1),Oi("src",t.imgUrl,ur),es(2),Qi("",function(t,e,n,r,s){const i=ke(),o=ye(i,34);return xa(i,Sa(i,34)?function(t,e,n,r,s,i,o,a){const l=e+n;return function(t,e,n,r,s){const i=xi(t,e,n,r);return Si(t,e+2,s)||i}(t,l,s,i,o)?Ci(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):_a(t,l+3)}(i,Ne(),9,o.transform,n,0,350,o):o.transform(n,0,350))}(0,0,t.text),"...")}}let am=(()=>{class t{constructor(t){this.router=t,this.articleList=[]}ngOnInit(){}goToArtile(t){this.router.navigate([`article/${t}`])}goToSearch(t){this.router.navigate([`search/tag/${t}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-articleList"]],inputs:{articleList:"articleList"},decls:1,vars:1,consts:[["class","articleDiv",4,"ngFor","ngForOf"],[1,"articleDiv"],["id","tags"],["class","orange",3,"click",4,"ngFor","ngForOf"],[1,"name"],[1,"info"],[1,"img",3,"src"],[1,"text"],["type","button","id","btn",1,"orange",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&ki(0,om,17,13,"div",0),2&t&&Oi("ngForOf",e.articleList)},directives:[Bc],pipes:[Zc,Qc,Wc],styles:[".articleDiv[_ngcontent-%COMP%]{width:62vw;height:auto;margin:1.5% auto;box-shadow:0 0 5px 2px #d3d3d3;padding:15px;display:grid;grid-template-columns:30vw 30vw;grid-column-gap:15px;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}.articleDiv[_ngcontent-%COMP%]:hover{width:63vw;transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}img[_ngcontent-%COMP%]{width:30vw;height:auto;grid-column:1;grid-row:1/5}#tags[_ngcontent-%COMP%]{grid-row:1}#tags[_ngcontent-%COMP%], .name[_ngcontent-%COMP%]{grid-column:2;margin:0}.name[_ngcontent-%COMP%]{font-size:x-large;color:#000;grid-row:2}ul[_ngcontent-%COMP%]{color:gray;font-size:small;font-family:Calibri;list-style:none;display:flex;grid-column:2;grid-row:3;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:15px}.text[_ngcontent-%COMP%]{grid-row:4}#btn[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{grid-column:2}#btn[_ngcontent-%COMP%]{grid-row:5;padding:0}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}p[_ngcontent-%COMP%]{white-space:pre-wrap;margin:0}"]}),t})(),lm=(()=>{class t{constructor(t,e){this.articleService=t,this.router=e,this.articles=[]}ngOnInit(){this.articleService.getAllArticles().subscribe(t=>{this.articles=t})}goToCreate(){this.router.navigate(["create"])}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-home"]],features:[po([sm])],decls:3,vars:1,consts:[[3,"articleList"],["type","button","id","btn",3,"click"]],template:function(t,e){1&t&&(Ri(0,"app-articleList",0),Pi(1,"button",1),Vi("click",function(){return e.goToCreate()}),Wi(2,"+"),Ii()),2&t&&Oi("articleList",e.articles)},directives:[am],styles:["#btn[_ngcontent-%COMP%]{width:70px;height:70px;font-size:xx-large;border:none;border-radius:50%;background:#fff;box-shadow:0 0 5px 2px #d3d3d3;color:grey;position:fixed;right:5%;top:50%;font-size:7vh}#btn[_ngcontent-%COMP%]:hover{transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer;font-size:9vh}"]}),t})(),cm=(()=>{class t{constructor(t,e){this.articleService=t,this.activateRoute=e,this.articleName="",this.tagName="",this.articles=[],this.articleName=this.activateRoute.snapshot.params.articleName,this.tagName=this.activateRoute.snapshot.params.tagName}ngOnInit(){null!=this.articleName?this.articleService.getArticlesByName(this.articleName).subscribe(t=>this.articles=t):this.articleService.getArticlesByTag(this.tagName).subscribe(t=>this.articles=t)}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf))},t.\u0275cmp=Ht({type:t,selectors:[["app-search"]],features:[po([sm])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Ri(0,"app-articleList",0),2&t&&Oi("articleList",e.articles)},directives:[am],styles:[""]}),t})(),um=(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.themeName="",this.articles=[],this.themeName=this.activateRoute.snapshot.params.themeName}ngOnInit(){this.articleService.getArticlesByTheme(this.themeName).subscribe(t=>{0==t.length?(this.router.navigate(["not-found"]),console.log(t)):(this.articles=t,console.log(t))})}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-theme"]],features:[po([sm])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Ri(0,"app-articleList",0),2&t&&Oi("articleList",e.articles)},directives:[am],styles:[""]}),t})();function hm(t,e){if(1&t){const t=Di();Pi(0,"li",9),Vi("click",function(){const e=Oe(t).$implicit;return Ui().goToSearch(e.name)}),Wi(1),ba(2,"uppercase"),Ii()}if(2&t){const t=e.$implicit;es(1),Qi(" #",wa(2,1,null==t?null:t.name)," ")}}let dm=(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.id=this.activateRoute.snapshot.params.id}ngOnInit(){this.articleService.getArticleById(this.id).subscribe(t=>{this.article=t,console.log(this.article)})}goToSearch(t){this.router.navigate([`search/tag/${t}`])}deleteArticle(t){this.articleService.deleteArticle(t).subscribe(t=>console.warn(t)),this.router.navigate([""])}updateArticle(t){this.router.navigate([`update/${t}`])}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-article"]],features:[po([sm])],decls:20,vars:9,consts:[["id","articleDiv"],[1,"img",3,"src"],["align","center"],[1,"name"],["id","text"],["class","orange",3,"click",4,"ngFor","ngForOf"],["id","btns"],["type","button","id","deleteBtn",3,"click"],["type","button","id","updateBtn",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&(Pi(0,"div",0),Pi(1,"div"),Ri(2,"img",1),Pi(3,"div",2),Pi(4,"p"),Wi(5),ba(6,"date"),Ii(),Pi(7,"h2",3),Wi(8),Ii(),Pi(9,"p"),Wi(10),Ii(),Ii(),Pi(11,"p",4),Wi(12),Ii(),Pi(13,"ul"),ki(14,hm,3,3,"li",5),Ii(),Ii(),Ii(),Pi(15,"div",6),Pi(16,"button",7),Vi("click",function(){return e.deleteArticle(null==e.article?null:e.article.id)}),Wi(17,"Delete"),Ii(),Pi(18,"button",8),Vi("click",function(){return e.updateArticle(null==e.article?null:e.article.id)}),Wi(19,"Update"),Ii(),Ii()),2&t&&(es(2),Oi("src",null==e.article?null:e.article.imgUrl,ur),es(3),Zi(Ca(6,6,null==e.article?null:e.article.date,"mediumDate")),es(3),Zi(null==e.article?null:e.article.name),es(2),Zi(null==e.article||null==e.article.author?null:e.article.author.nickName),es(2),Zi(null==e.article?null:e.article.text),es(2),Oi("ngForOf",null==e.article?null:e.article.tags))},directives:[Bc],pipes:[Zc,Wc],styles:["img[_ngcontent-%COMP%]{width:100%;height:auto;margin:0 1%;border-radius:0}#articleDiv[_ngcontent-%COMP%]{width:60%;height:auto;margin:0 auto}#btns[_ngcontent-%COMP%]{height:auto;display:flex;flex-direction:column;position:fixed;top:50%;right:5%}#btns[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}h2[_ngcontent-%COMP%]{margin:0 auto;color:#f3bc56}ul[_ngcontent-%COMP%]{list-style:none;display:flex;margin:0;padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:5%}.text[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1%}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}#text[_ngcontent-%COMP%]{margin-bottom:0;white-space:pre-wrap}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:xx-large;background:none;border:none;font-family:Times New Roman;box-shadow:0 0 5px 2px #d3d3d3;cursor:pointer;margin:5%;width:110px;height:60px}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}"]}),t})(),pm=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["app-not-found"]],decls:1,vars:0,consts:[["src","assets/404_Error.jpg"]],template:function(t,e){1&t&&Ri(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:0 auto}"]}),t})();const fm=["name"],gm=["nickName"],mm=["theme"],ym=["imgUrl"],vm=["tags"],_m=["text"];let bm=(()=>{class t{constructor(t){this.service=t}ngOnInit(){}onSubmit(){var t,e,n,r,s,i;let o=new FormData;o.append("name",null===(t=this.name)||void 0===t?void 0:t.nativeElement.value),o.append("nickName",null===(e=this.nickName)||void 0===e?void 0:e.nativeElement.value),o.append("theme",null===(n=this.theme)||void 0===n?void 0:n.nativeElement.value),o.append("imgUrl",null===(r=this.imgUrl)||void 0===r?void 0:r.nativeElement.value),o.append("tags",null===(s=this.tags)||void 0===s?void 0:s.nativeElement.value),o.append("text",null===(i=this.text)||void 0===i?void 0:i.nativeElement.value),this.service.postCreateArticle(o).subscribe(t=>console.warn(t))}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm))},t.\u0275cmp=Ht({type:t,selectors:[["app-create"]],viewQuery:function(t,e){if(1&t&&(Ua(fm,5),Ua(gm,5),Ua(mm,5),Ua(ym,5),Ua(vm,5),Ua(_m,5)),2&t){let t;La(t=Ha())&&(e.name=t.first),La(t=Ha())&&(e.nickName=t.first),La(t=Ha())&&(e.theme=t.first),La(t=Ha())&&(e.imgUrl=t.first),La(t=Ha())&&(e.tags=t.first),La(t=Ha())&&(e.text=t.first)}},features:[po([sm])],decls:31,vars:0,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","placeholder","Name","required",""],["name",""],["type","text","name","author","placeholder","Nickname","required",""],["nickName",""],["name","theme","required","","aria-placeholder","Select a theme"],["theme",""],["type","text","name","imgUrl","placeholder","Image url"],["imgUrl",""],["type","text","name","tags","placeholder","Tags"],["tags",""],["name","text","required","","placeholder","Text"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Pi(0,"form",0),Vi("ngSubmit",function(){return e.onSubmit()}),Pi(1,"h1",1),Wi(2,"Create an article"),Ii(),Ri(3,"input",2,3),Ri(5,"br"),Ri(6,"input",4,5),Ri(8,"br"),Pi(9,"select",6,7),Pi(11,"option"),Wi(12,"lifestyle"),Ii(),Pi(13,"option"),Wi(14,"nature"),Ii(),Pi(15,"option"),Wi(16,"scienceNTechnologies"),Ii(),Pi(17,"option"),Wi(18,"sport"),Ii(),Ii(),Ri(19,"br"),Ri(20,"input",8,9),Ri(22,"br"),Ri(23,"input",10,11),Ri(25,"br"),Ri(26,"textarea",12,13),Ri(28,"br"),Pi(29,"button",14),Wi(30,"Create"),Ii(),Ii())},directives:[rd,Vh,Xh,ld,dd],styles:["form[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t})();class wm{}const Cm=["name"],Sm=["imgUrl"],xm=["text"];function Em(t,e){if(1&t&&(Pi(0,"option"),Wi(1),Ii()),2&t){const t=e.$implicit;es(1),Zi(null==t?null:t.name)}}const km=[{path:"",component:lm},{path:"search/:articleName",component:cm},{path:"search/tag/:tagName",component:cm},{path:"theme/:themeName",component:um},{path:"article/:id",component:dm},{path:"not-found",component:pm},{path:"create",component:bm},{path:"update/:id",component:(()=>{class t{constructor(t,e,n){this.articleService=t,this.activateRoute=e,this.router=n,this.id=this.activateRoute.snapshot.params.id}ngOnInit(){this.articleService.getArticleById(this.id).subscribe(t=>this.article=t)}onSubmit(){var t,e,n,r,s,i,o,a,l,c;let u=new wm;u.id=null===(t=this.article)||void 0===t?void 0:t.id,u.name=null===(e=this.name)||void 0===e?void 0:e.nativeElement.value,u.date=null===(n=this.article)||void 0===n?void 0:n.date,u.authorFK=null===(r=this.article)||void 0===r?void 0:r.authorFK,u.author=null===(s=this.article)||void 0===s?void 0:s.author,u.themeFK=null===(i=this.article)||void 0===i?void 0:i.themeFK,u.theme=null===(o=this.article)||void 0===o?void 0:o.theme,u.tags=null===(a=this.article)||void 0===a?void 0:a.tags,u.imgUrl=null===(l=this.imgUrl)||void 0===l?void 0:l.nativeElement.value,u.text=null===(c=this.text)||void 0===c?void 0:c.nativeElement.value,this.articleService.updateArticle(this.id,u).subscribe(t=>console.warn(t))}}return t.\u0275fac=function(e){return new(e||t)(Ai(sm),Ai(uf),Ai(Rg))},t.\u0275cmp=Ht({type:t,selectors:[["app-update"]],viewQuery:function(t,e){if(1&t&&(Ua(Cm,5),Ua(Sm,5),Ua(xm,5)),2&t){let t;La(t=Ha())&&(e.name=t.first),La(t=Ha())&&(e.imgUrl=t.first),La(t=Ha())&&(e.text=t.first)}},decls:29,vars:4,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","required","",3,"value"],["name",""],["name","theme","required",""],["theme",""],["type","text","name","imgUrl",3,"value"],["imgUrl",""],[4,"ngFor","ngForOf"],["name","text","required","",3,"value"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Pi(0,"form",0),Vi("ngSubmit",function(){return e.onSubmit()}),Pi(1,"h1",1),Wi(2,"Update an article"),Ii(),Ri(3,"input",2,3),Ri(5,"br"),Pi(6,"select",4,5),Pi(8,"option"),Wi(9,"lifestyle"),Ii(),Pi(10,"option"),Wi(11,"nature"),Ii(),Pi(12,"option"),Wi(13,"scienceNTechnologies"),Ii(),Pi(14,"option"),Wi(15,"sport"),Ii(),Ii(),Ri(16,"br"),Ri(17,"input",6,7),Pi(19,"p"),Wi(20,"Tags:"),Ii(),Pi(21,"select"),ki(22,Em,2,1,"option",8),Ii(),Ri(23,"br"),Ri(24,"textarea",9,10),Ri(26,"br"),Pi(27,"button",11),Wi(28,"Update"),Ii(),Ii()),2&t&&(es(3),Oi("value",null==e.article?null:e.article.name),es(14),Oi("value",null==e.article?null:e.article.imgUrl),es(5),Oi("ngForOf",null==e.article?null:e.article.tags),es(2),Oi("value",null==e.article?null:e.article.text))},directives:[rd,Vh,Xh,ld,dd,Bc],styles:["form[_ngcontent-%COMP%]{width:60%;height:auto;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t})()}];let Am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qt({type:t,bootstrap:[rm]}),t.\u0275inj=ht({providers:[],imports:[[Pu,ph,fd,Wg.forRoot(km,{onSameUrlNavigation:"reload"})]]}),t})();(function(){if(El)throw new Error("Cannot enable prod mode after platform setup.");xl=!1})(),Ou().bootstrapModule(Am).catch(t=>console.error(t))}},function(t){"use strict";t(t.s=9542)}]); \ No newline at end of file diff --git a/docs/main-es5.02f411c5332240ccd6e4.js b/docs/main-es5.1266a674d5191a48133a.js similarity index 94% rename from docs/main-es5.02f411c5332240ccd6e4.js rename to docs/main-es5.1266a674d5191a48133a.js index 05047fd..87c644e 100644 --- a/docs/main-es5.02f411c5332240ccd6e4.js +++ b/docs/main-es5.1266a674d5191a48133a.js @@ -1 +1 @@ -!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(X(function(n,r){return Y(t(n,r)).pipe(F(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new tt(t,n))})}var tt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,t),this.project=e,this.concurrent=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new et(t,this.project,this.concurrent))}}]),t}(),et=function(t){s(n,t);var e=c(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}($);function nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return X(P,t)}function rt(t,e){return e?Q(t,e):new R(B(t))}function it(){return function(t){return t.lift(new at(t))}}var ot,at=function(){function t(e){p(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new ut(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),ut=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(A),st=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return y(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new S).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed&&(this._connection=null,t=S.EMPTY)),t}},{key:"refCount",value:function(){return it()(this)}}]),n}(R),lt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ot=st.prototype)._subscribe},_isComplete:{value:ot._isComplete,writable:!0},getSubject:{value:ot.getSubject},connect:{value:ot.connect},refCount:{value:ot.refCount}},ct=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_error",value:function(t){this._unsubscribe(),u(v(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),u(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(V);function ht(){return new j}function ft(t){for(var e in t)if(t[e]===ft)return e;throw Error("Could not find renamed property on target object.")}function dt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function pt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var gt=ft({__forward_ref__:ft});function yt(t){return t.__forward_ref__=yt,t.toString=function(){return vt(this())},t}function mt(t){return _t(t)?t():t}function _t(t){return"function"==typeof t&&t.hasOwnProperty(gt)&&t.__forward_ref__===yt}var kt=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,r))).code=t,i}return n}(o(Error));function bt(t){return"string"==typeof t?t:null==t?"":String(t)}function wt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():bt(t)}function Ct(t,e){var n=e?" in ".concat(e):"";throw new kt("201","No provider for ".concat(wt(t)," found").concat(n))}function St(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Et(t){return At(t,Pt)||At(t,Rt)}function At(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ot(t){return t&&(t.hasOwnProperty(It)||t.hasOwnProperty(Dt))?t[It]:null}var Tt,Pt=ft({"\u0275prov":ft}),It=ft({"\u0275inj":ft}),Rt=ft({ngInjectableDef:ft}),Dt=ft({ngInjectorDef:ft}),Mt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function Nt(t){var e=Tt;return Tt=t,e}function Vt(t,e,n){var r=Et(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Mt.Optional?null:void 0!==e?e:void Ct(vt(t),"Injector")}function jt(t){return{toString:t}.toString()}var Lt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ut=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Ft="undefined"!=typeof globalThis&&globalThis,Ht="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global,qt=Ft||Bt||Ht||zt,Gt={},Wt=[],Zt=ft({"\u0275cmp":ft}),Qt=ft({"\u0275dir":ft}),Yt=ft({"\u0275pipe":ft}),Kt=ft({"\u0275mod":ft}),$t=ft({"\u0275loc":ft}),Jt=ft({"\u0275fac":ft}),Xt=ft({__NG_ELEMENT_ID__:ft}),te=0;function ee(t){return jt(function(){var e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Lt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ut.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=te++,n.inputs=ae(t.inputs,e),n.outputs=ae(t.outputs),i&&i.forEach(function(t){return t(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ne)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(re)}:null,n})}function ne(t){return le(t)||function(t){return t[Qt]||null}(t)}function re(t){return function(t){return t[Yt]||null}(t)}var ie={};function oe(t){return jt(function(){var e={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ie[t.id]=t.type),e})}function ae(t,e){if(null==t)return Gt;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var ue=ee;function se(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function le(t){return t[Zt]||null}function ce(t,e){var n=t[Kt]||null;if(!n&&!0===e)throw new Error("Type ".concat(vt(t)," does not have '\u0275mod' property."));return n}function he(t){return Array.isArray(t)&&"object"==typeof t[1]}function fe(t){return Array.isArray(t)&&!0===t[1]}function de(t){return 0!=(8&t.flags)}function ve(t){return 2==(2&t.flags)}function pe(t){return 1==(1&t.flags)}function ge(t){return null!==t.template}function ye(t,e){return t.hasOwnProperty(Jt)?t[Jt]:null}var me,_e=function(){function t(e,n,r){p(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return y(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function ke(){return be}function be(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ce),we}function we(){var t=Se(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Gt)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Ce(t,e,n,r){var i=Se(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Gt,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new _e(s&&s.currentValue,e,a===Gt),t[r]=e}function Se(t){return t.__ngSimpleChanges__||null}function xe(t){return!!t.listen}ke.ngInherit=!0;var Ee={createRenderer:function(t,e){return void 0!==me?me:"undefined"!=typeof document?document:void 0}};function Ae(t){for(;Array.isArray(t);)t=t[0];return t}function Oe(t,e){return Ae(e[t])}function Te(t,e){return Ae(e[t.index])}function Pe(t,e){return t.data[e]}function Ie(t,e){return t[e]}function Re(t,e){var n=e[t];return he(n)?n:n[0]}function De(t){return 4==(4&t[2])}function Me(t){return 128==(128&t[2])}function Ne(t,e){return null==e?null:t[e]}function Ve(t){t[18]=0}function je(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var Le={lFrame:on(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ue(){return Le.bindingsEnabled}function Fe(){return Le.lFrame.lView}function He(){return Le.lFrame.tView}function ze(t){return Le.lFrame.contextLView=t,t[8]}function Be(){for(var t=qe();null!==t&&64===t.type;)t=t.parent;return t}function qe(){return Le.lFrame.currentTNode}function Ge(t,e){var n=Le.lFrame;n.currentTNode=t,n.isParent=e}function We(){return Le.lFrame.isParent}function Ze(){return Le.isInCheckNoChangesMode}function Qe(t){Le.isInCheckNoChangesMode=t}function Ye(){var t=Le.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Le.lFrame.bindingIndex++}function $e(t){Le.lFrame.currentDirectiveIndex=t}function Je(){return Le.lFrame.currentQueryIndex}function Xe(t){Le.lFrame.currentQueryIndex=t}function tn(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function en(t,e,n){if(n&Mt.SkipSelf){for(var r=e,i=t;!(null!==(r=r.parent)||n&Mt.Host||(r=tn(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;e=r,t=i}var o=Le.lFrame=rn();return o.currentTNode=e,o.lView=t,!0}function nn(t){var e=rn(),n=t[1];Le.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function rn(){var t=Le.lFrame,e=null===t?null:t.child;return null===e?on(t):e}function on(t){var 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 an(){var t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var un=an;function sn(){var t=an();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 ln(){return Le.lFrame.selectedIndex}function cn(t){Le.lFrame.selectedIndex=t}function hn(){var t=Le.lFrame;return Pe(t.tView,t.selectedIndex)}function fn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var mn=function t(e,n,r){p(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function _n(t,e,n){for(var r=xe(t),i=0;ie){a=o-1;break}}}for(;o>16,r=e;n>0;)r=r[15],n--;return r}var An=!0;function On(t){var e=An;return An=t,e}var Tn=0;function Pn(t,e){var n=Rn(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,In(r.data,t),In(e,null),In(r.blueprint,null));var i=Dn(t,e),o=t.injectorIndex;if(Sn(i))for(var a=xn(i),u=En(i,e),s=u[1].data,l=0;l<8;l++)e[o+l]=u[a+l]|s[a+l];return e[o+8]=i,o}function In(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Mn(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xt)&&(r=n[Xt]),null==r&&(r=n[Xt]=Tn++);var i=255&r;e.data[t+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Mt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(Xt)?t[Xt]:void 0;return"number"==typeof e?e>=0?255&e:Un:e}(n);if("function"==typeof o){if(!en(e,t,r))return r&Mt.Host?Nn(i,n,r):Vn(e,n,r,i);try{var a=o(r);if(null!=a||r&Mt.Optional)return a;Ct(n)}finally{un()}}else if("number"==typeof o){var u=null,s=Rn(t,e),l=-1,c=r&Mt.Host?e[16][6]:null;for((-1===s||r&Mt.SkipSelf)&&(-1!==(l=-1===s?Dn(t,e):e[s+8])&&qn(r,!1)?(u=e[1],s=xn(l),e=En(l,e)):s=-1);-1!==s;){var h=e[1];if(Bn(o,s,h.data)){var f=Fn(s,e,n,u,r,c);if(f!==Ln)return f}-1!==(l=e[s+8])&&qn(r,e[1].data[s+8]===c)&&Bn(o,s,e)?(u=h,s=xn(l),e=En(l,e)):s=-1}}}return Vn(e,n,r,i)}var Ln={};function Un(){return new Gn(Be(),Fe())}function Fn(t,e,n,r,i,o){var a=e[1],u=a.data[t+8],s=Hn(u,a,n,null==r?ve(u)&&An:r!=a&&0!=(3&u.type),i&Mt.Host&&o===u);return null!==s?zn(e,a,s,u):Ln}function Hn(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,u=1048575&o,s=t.directiveStart,l=o>>20,c=i?u+l:t.directiveEnd,h=r?u:u+l;h=s&&f.type===n)return h}if(i){var d=a[s];if(d&&ge(d)&&d.type===n)return s}return null}function zn(t,e,n,r){var i=t[n],o=e.data;if(i instanceof mn){var a=i;a.resolving&&function(t,e){throw new kt("200","Circular dependency in DI detected for ".concat(t))}(wt(o[n]));var u=On(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?Nt(a.injectImpl):null;en(t,r,Mt.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=be(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==s&&Nt(s),On(u),a.resolving=!1,un()}}return i}function Bn(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function nr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rr(t,e){var n=ir(t,e);if(n>=0)return t[1|n]}function ir(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var or,ar={},ur=/\n/gm,sr=ft({provide:String,useValue:ft});function lr(t){var e=or;return or=t,e}function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt.Default;if(void 0===or)throw new Error("inject() must be called from an injection context");return null===or?Vt(t,void 0,e):or.get(t,e&Mt.Optional?null:void 0,e)}function hr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt.Default;return(Tt||cr)(mt(t),e)}function fr(t){for(var e=[],n=0;n1?e-1:0),r=1;r0&&(t[r-1][4]=i[4]);var a=nr(t,10+e);Jr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var u=a[19];null!==u&&u.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Hr(t,e){if(!(256&e[2])){var n=e[11];xe(n)&&n.destroyNode&&Jr(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return zr(t[1],t);for(;e;){var n=null;if(he(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)he(e)&&zr(e[1],e),e=e[3];null===e&&(e=t),he(e)&&zr(e[1],e),n=e&&e[4]}e=n}}(e)}}function zr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var h=i+1;ho?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==ni(f,l,0)||2&r&&l!==h){if(ui(r))return!1;a=!0}}}}else{if(!a&&!ui(r)&&!ui(s))return!1;if(a&&ui(s))continue;a=!1,r=s|1&r}}return ui(r)||a}function ui(t){return 0==(1&t)}function si(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ui(a)||(e+=ci(o,i),i=""),r=a,o=o||!ui(r);n++}return""!==i&&(e+=ci(o,i)),e}var fi={};function di(t){vi(He(),Fe(),ln()+t,Ze())}function vi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&dn(e,i,n)}else{var o=t.preOrderHooks;null!==o&&vn(e,o,0,n)}cn(n)}function pi(t,e){return t<<17|e<<2}function gi(t){return t>>17&32767}function yi(t){return 2|t}function mi(t){return(131068&t)>>2}function _i(t,e){return-131069&t|e<<2}function ki(t){return 1|t}function bi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&vi(t,e,20,Ze()),n(r,i)}finally{cn(o)}}function Ti(t,e,n){Ue()&&(function(t,e,n,r){var i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Pn(n,e),Cr(r,e);for(var a=n.initialInputs,u=i;u2&&void 0!==arguments[2]?arguments[2]:Te,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function Li(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ui(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Fi(t,e,n){if(n){if(e.exportAs)for(var r=0;r0&&Qi(n)}}function Qi(t){for(var e=Mr(t);null!==e;e=Nr(e))for(var n=10;n0&&Qi(r)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Qi(u)}}function Yi(t,e){var n=Re(e,t),r=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:ar;if(e===ar){var n=new Error("NullInjectorError: No provider for ".concat(vt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),co=new Kn("Set Injector scope."),ho={},fo={};function vo(){return void 0===uo&&(uo=new lo),uo}function po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new go(t,n,e||vo(),r)}var go=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&tr(n,function(t){return i.processProvider(t,e,n)}),tr([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(so,_o(void 0,this));var u=this.records.get(co);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof e?null:vt(e))}return y(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt.Default;this.assertNotDestroyed();var r,i=lr(this);try{if(!(n&Mt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Kn)&&Et(t);o=a&&this.injectableDefInScope(a)?_o(yo(t),ho):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&Mt.Self?vo():this.parent).get(t,e=n&Mt.Optional&&e===ar?null:e)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(vt(t)),i)throw u;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var u=e[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):vt(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(ur,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(u,t,0,this.source)}throw u}finally{lr(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(vt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=mt(t)))return!1;var i=Ot(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=Ot(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{tr(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===s&&(s=[]),s.push(t))})}finally{}if(void 0!==s)for(var l=function(t){var e=s[t],n=e.ngModule,i=e.providers;tr(i,function(t){return r.processProvider(t,n,i||Wt)})},c=0;c0){var n=function(t,e){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ko(t){return null!==t&&"object"==typeof t&&sr in t}function bo(t){return"function"==typeof t}var wo=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=po(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Co=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?wo(t,e,""):wo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=ar,t.NULL=new lo,t.\u0275prov=St({token:t,providedIn:"any",factory:function(){return hr(so)}}),t.__NG_ELEMENT_ID__=-1,t}();function So(t,e){fn(Sr(t)[1],Be())}function xo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(ge(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=Eo(t.inputs),o.declaredInputs=Eo(t.declaredInputs),o.outputs=Eo(t.outputs);var a=i.hostBindings;a&&To(t,a);var u=i.viewQuery,s=i.contentQueries;if(u&&Ao(t,u),s&&Oo(t,s),dt(t.inputs,i.inputs),dt(t.declaredInputs,i.declaredInputs),dt(t.outputs,i.outputs),ge(i)&&i.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=wn(i.hostAttrs,n=wn(n,i.hostAttrs))}}(r)}function Eo(t){return t===Gt?{}:t===Wt?[]:t}function Ao(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Oo(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function To(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Po=null;function Io(){if(!Po){var t=qt.Symbol;if(t&&t.iterator)Po=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Mt.Default,n=Fe();return null===n?hr(t,e):jn(Be(),n,mt(t),e)}function Ho(t,e,n){var r=Fe();return Vo(r,Ke(),e)&&Ni(He(),hn(),r,t,e,r[11],n,!1),Ho}function zo(t,e,n,r,i){var o=i?"class":"style";oo(t,n,e.inputs[o],o,r)}function Bo(t,e,n,r){var i=Fe(),o=He(),a=20+t,u=i[11],s=i[a]=Lr(u,e,Le.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,r,i,o,a){var u=e.consts,s=Ci(e,t,2,i,Ne(u,o));return Vi(e,n,s,Ne(u,a)),null!==s.attrs&&ao(s,s.attrs,!1),null!==s.mergedAttrs&&ao(s,s.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,s),s}(a,o,i,0,e,n,r):o.data[a];Ge(l,!0);var c=l.mergedAttrs;null!==c&&_n(u,s,c);var h=l.classes;null!==h&&ei(u,s,h);var f=l.styles;null!==f&&ti(u,s,f),64!=(64&l.flags)&&Zr(o,i,s,l),0===Le.lFrame.elementDepthCount&&Cr(s,i),Le.lFrame.elementDepthCount++,pe(l)&&(Ti(o,i,l),function(t,e,n){if(de(e))for(var r=e.directiveEnd,i=e.directiveStart;is?u[s]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=$o(r,e,0,o,!1);var y=n.listen(d,i,o);c.push(o,y),l&&l.push(i,p,v,v+1)}}else o=$o(r,e,0,o,!0),d.addEventListener(i,o,a),c.push(o),l&&l.push(i,p,v,a)}else o=$o(r,e,0,o,!1);var m,_=r.outputs;if(h&&null!==_&&(m=_[i])){var k=m.length;if(k)for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function Xo(t,e,n,r,i){for(var o=t[n+1],a=null===e,u=r?gi(o):mi(o),s=!1;0!==u&&(!1===s||a);){var l=t[u+1];ta(t[u],e)&&(s=!0,t[u+1]=r?ki(l):yi(l)),u=r?gi(l):mi(l)}s&&(t[n+1]=r?yi(o):ki(o))}function ta(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ir(t,e)>=0}function ea(t,e){return function(t,e,n,r){var i,o,a=Fe(),u=He(),s=(i=Le.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);u.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[ln()],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=function(t){var e=Le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=e.residualClasses;if(null===i)0===e.classBindings&&(n=ra(n=na(null,t,e,n,!0),e.attrs,!0),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=na(i,t,e,n,!0),null===o){var u=function(t,e,n){var r=e.classBindings;if(0!==mi(r))return t[gi(r)]}(t,e);void 0!==u&&Array.isArray(u)&&function(t,e,n,r){t[gi(e.classBindings)]=r}(t,e,0,u=ra(u=na(null,t,e,u[1],!0),e.attrs,!0))}else o=function(t,e,n){for(var r,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==s){var f=gi(t[u+1]);t[r+1]=pi(f,u),0!==f&&(t[f+1]=_i(t[f+1],r)),t[u+1]=131071&t[u+1]|r<<17}else t[r+1]=pi(u,0),0!==u&&(t[u+1]=_i(t[u+1],r)),u=r;else t[r+1]=pi(s,0),0===u?u=r:t[s+1]=_i(t[s+1],r),s=r;c&&(t[r+1]=yi(t[r+1])),Xo(t,l,r,!0),Xo(t,l,r,!1),function(t,e,n,r,i){var o=t.residualClasses;null!=o&&"string"==typeof e&&ir(o,e)>=0&&(n[r+1]=ki(n[r+1]))}(e,l,t,r),a=pi(u,s),e.classBindings=a}(i,o,e,n,a)}}(u,t,s),e!==fi&&Vo(a,s,e)&&function(t,e,n,r,i,o,a,u){if(3&e.type){var s=t.data,l=s[u+1];oa(1==(1&l)?ia(s,e,n,i,mi(l),!0):void 0)||(oa(o)||2==(2&l)&&(o=ia(s,null,n,i,u,!0)),function(t,e,n,r,i){var o=xe(t);i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,Oe(ln(),n),i,o))}}(u,u.data[ln()],a,a[11],t,a[s+1]=function(t,e){return null==t||"object"==typeof t&&(t=vt(mr(t))),t}(e),0,s)}(t,e),ea}function na(t,e,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function ia(t,e,n,r,i,o){for(var a,u=null===e;i>0;){var s=t[i],l=Array.isArray(s),c=l?s[1]:s,h=null===c,f=n[i+1];f===fi&&(f=h?Wt:void 0);var d=h?rr(f,r):c===r?f:void 0;if(l&&!oa(d)&&(d=rr(s,r)),oa(d)&&(a=d,u))return a;var v=t[i+1];i=u?gi(v):mi(v)}if(null!==e){var p=o?e.residualClasses:e.residualStyles;null!=p&&(a=rr(p,r))}return a}function oa(t){return void 0!==t}function aa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Fe(),r=He(),i=t+20,o=r.firstCreatePass?Ci(r,i,1,e,null):r.data[i],a=n[i]=function(t,e){return xe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Zr(r,n,a,o),Ge(o,!1)}function ua(t){return sa("",t,""),ua}function sa(t,e,n){var r=Fe(),i=function(t,e,n,r){return Vo(t,Ke(),n)?e+bt(n)+r:fi}(r,t,e,n);return i!==fi&&function(t,e,n){var r=Oe(e,t);!function(t,e,n){xe(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,ln(),i),sa}function la(t,e,n){var r=Fe();return Vo(r,Ke(),e)&&Ni(He(),hn(),r,t,e,r[11],n,!0),la}var ca=void 0,ha=["en",[["a","p"],["AM","PM"],ca],[["AM","PM"],ca,ca],[["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"]],ca,[["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"]],ca,[["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}",ca,"{1} 'at' {0}",ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],fa={};function da(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=va(e);if(n)return n;var r=e.split("-")[0];if(n=va(r))return n;if("en"===r)return ha;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function va(t){return t in fa||(fa[t]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[t]),fa[t]}var pa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function ga(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function ya(t,e,n,r,i){if(t=mt(t),Array.isArray(t))for(var o=0;o>20;if(bo(t)||!t.multi){var v=new mn(l,i,Fo),p=ka(s,e,i?h:h+d,f);-1===p?(Mn(Pn(c,u),a,s),ma(a,t,e.length),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(v),u.push(v)):(n[p]=v,u[p]=v)}else{var g=ka(s,e,h+d,f),y=ka(s,e,h,h+d),m=g>=0&&n[g],_=y>=0&&n[y];if(i&&!_||!i&&!m){Mn(Pn(c,u),a,s);var k=function(t,e,n,r,i){var o=new mn(t,n,Fo);return o.multi=[],o.index=e,o.componentProviders=0,_a(o,i,r&&!n),o}(i?wa:ba,n.length,i,r,l);!i&&_&&(n[y].providerFactory=k),ma(a,t,e.length,0),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(k),u.push(k)}else ma(a,t,g>-1?g:y,_a(n[i?y:g],l,!i&&r));!i&&r&&_&&n[y].componentProviders++}}}function ma(t,e,n,r){var i=bo(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function _a(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ka(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=He();if(r.firstCreatePass){var i=ge(t);ya(n,r.data,r.blueprint,i,!0),ya(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var xa=function t(){p(this,t)},Ea=function(){function t(){p(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(vt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Aa=function(){var t=function t(){p(this,t)};return t.NULL=new Ea,t}();function Oa(){}function Ta(t,e){return new Ia(Te(t,e))}var Pa=function(){return Ta(Be(),Fe())},Ia=function(){var t=function t(e){p(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Pa,t}();function Ra(t){return t instanceof Ia?t.nativeElement:t}var Da=function t(){p(this,t)},Ma=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=function(){return Na()},t}(),Na=function(){var t=Fe(),e=Re(Be().index,t);return function(t){return t[11]}(he(e)?e:t)},Va=function(){var t=function t(){p(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return null}}),t}(),ja=new function t(e){p(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}("12.0.5"),La=function(){function t(){p(this,t)}return y(t,[{key:"supports",value:function(t){return Do(t)}},{key:"create",value:function(t){return new Fa(t)}}]),t}(),Ua=function(t,e){return e},Fa=function(){function t(e){p(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ua}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=e[r.index];if(null!==a&&i.push(Ae(a)),fe(a))for(var u=10;u-1&&(Fr(t,n),nr(e,n))}this._attachedToViewContainer=!1}Hr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Di(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){$i(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ji(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){Qe(!0);try{Ji(t,e,n)}finally{Qe(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Jr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),tu=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this,t))._view=t,r}return y(n,[{key:"detectChanges",value:function(){Xi(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Qe(!0);try{Xi(t)}finally{Qe(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Xa),eu=function(t){return function(t,e,n){if(ve(t)&&!n){var r=Re(t.index,e);return new Xa(r,r)}return 47&t.type?new Xa(e[16],e):null}(Be(),Fe(),16==(16&t))},nu=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=eu,t}(),ru=[new Ga],iu=new Ya([new La]),ou=new $a(ru),au=function(){return lu(Be(),Fe())},uu=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=au,t}(),su=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=wi(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),xi(e,n,t),new Xa(n)}}]),n}(uu);function lu(t,e){return 4&t.type?new su(e,t,Ta(t,e)):null}var cu=function t(){p(this,t)},hu=function t(){p(this,t)},fu=function(){return yu(Be(),Fe())},du=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=fu,t}(),vu=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"element",get:function(){return Ta(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Gn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Dn(this._hostTNode,this._hostLView);if(Sn(t)){var e=En(t,this._hostLView),n=xn(t);return new Gn(e[1].data[n+8],e)}return new Gn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=pu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(cu,null);a&&(i=a)}var u=t.create(o,r,void 0,i);return this.insert(u.hostView,e),u}},{key:"insert",value:function(t,e){var r=t._lView,i=r[1];if(fe(r[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=r[3],u=new n(a,a[6],a[3]);u.detach(u.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(du);function pu(t){return t[8]}function gu(t){return t[8]||(t[8]=[])}function yu(t,e){var n,r=e[t.index];if(fe(r))n=r;else{var i;if(8&t.type)i=Ae(r);else{var o=e[11];i=o.createComment("");var a=Te(t,e);Br(o,Wr(o,a),i,function(t,e){return xe(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=Wi(r,e,i,t),Ki(e,n)}return new vu(n,t,e)}var mu={},_u=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this)).ngModule=t,r}return y(n,[{key:"resolveComponentFactory",value:function(t){var e=le(t);return new wu(e,this.ngModule)}}]),n}(Aa);function ku(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var bu=new Kn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tr}}),wu=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(hi).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return y(n,[{key:"inputs",get:function(){return ku(this.componentDef.inputs)}},{key:"outputs",get:function(){return ku(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,mu,i);return o!==mu||r===mu?o:e.get(n,r,i)}}}(t,r.injector):t,u=a.get(Da,Ee),s=a.get(Va,null),l=u.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(xe(t))return t.selectRootElement(e,n===Ut.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Lr(u.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Tr,clean:eo,playerHandler:null,flags:0},v=Ri(0,null,null,1,0,null,null,null,null,null),p=wi(null,v,d,f,null,null,u,l,s,a);nn(p);try{var g=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var u=Ci(a,20,2,"#host",null),s=u.mergedAttrs=e.hostAttrs;null!==s&&(ao(u,s,!0),null!==t&&(_n(i,t,s),null!==u.classes&&ei(i,t,u.classes),null!==u.styles&&ti(i,t,u.styles)));var l=r.createRenderer(t,e),c=wi(n,Ii(e),null,e.onPush?64:16,n[20],u,r,l,null,null);return a.firstCreatePass&&(Mn(Pn(u,n),a,e.type),Ui(a,u),Hi(u,n.length,1)),Ki(n,c),n[20]=c}(h,this.componentDef,p,u,l);if(h)if(n)_n(l,h,["ng-version",ja.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r0&&ei(l,h,_.join(" "))}if(o=Pe(v,20),void 0!==e)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:Co.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt.Default;return t===Co||t===cu||t===so?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(cu),Eu=function(t){s(r,t);var n=c(r);function r(t){var i,o,a;return p(this,r),(i=n.call(this)).moduleType=t,null!==ce(t)&&(o=t,a=new Set,function t(n){var r=ce(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(vt(e)," vs ").concat(vt(e.name)))}(i,Su.get(i),n),Su.set(i,n));var o,u=e(Pr(r.imports));try{for(u.s();!(o=u.n()).done;){var s=o.value;a.has(s)||(a.add(s),t(s))}}catch(l){u.e(l)}finally{u.f()}}(o)),i}return y(r,[{key:"create",value:function(t){return new xu(this.moduleType,t)}}]),r}(hu);function Au(t,e){var n=t[e];return n===fi?void 0:n}function Ou(t,e){var n,r=He(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new kt("302","The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=ye(n.type)),a=Nt(Fo);try{var u=On(!1),s=o();return On(u),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(r,Fe(),i,s),s}finally{Nt(a)}}function Tu(t,e,n){var r=t+20,i=Fe(),o=Ie(i,r);return Ru(i,Iu(i,r)?function(t,e,n,r,i,o){var a=e+n;return Vo(t,a,i)?No(t,a+1,o?r.call(o,i):r(i)):Au(t,a+1)}(i,Ye(),e,o.transform,n,o):o.transform(n))}function Pu(t,e,n,r){var i=t+20,o=Fe(),a=Ie(o,i);return Ru(o,Iu(o,i)?function(t,e,n,r,i,o,a){var u=e+n;return jo(t,u,i,o)?No(t,u+2,a?r.call(a,i,o):r(i,o)):Au(t,u+2)}(o,Ye(),e,a.transform,n,r,a):a.transform(n,r))}function Iu(t,e){return t[1].data[e].pure}function Ru(t,e){return Ro.isWrapped(e)&&(e=Ro.unwrap(e),t[Le.lFrame.bindingIndex]=fi),e}function Du(t){return function(e){setTimeout(t,void 0,e)}}var Mu=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,n),(t=e.call(this)).__isAsync=r,t}return y(n,[{key:"emit",value:function(t){u(v(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var i,o,a,s=t,l=e||function(){return null},c=r;if(t&&"object"==typeof t){var h=t;s=null===(i=h.next)||void 0===i?void 0:i.bind(h),l=null===(o=h.error)||void 0===o?void 0:o.bind(h),c=null===(a=h.complete)||void 0===a?void 0:a.bind(h)}this.__isAsync&&(l=Du(l),s&&(s=Du(s)),c&&(c=Du(c)));var f=u(v(n.prototype),"subscribe",this).call(this,{next:s,error:l,complete:c});return t instanceof S&&t.add(f),f}}]),n}(j);function Nu(){return this._results[Io()]()}var Vu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),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;var n=Io(),r=t.prototype;r[n]||(r[n]=Nu)}return y(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Mu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var n=Xn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,t),this.predicate=e,this.flags=n,this.read=r},Fu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[u/2]);else{for(var l=o[u+1],c=e[-s],h=10;h0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(ks))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Ts=function(){var t=function(){function t(){p(this,t),this._applications=new Map,Ps.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ps.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Ps=new(function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Is=!0,Rs=!1,Ds=new Kn("AllowMultipleToken"),Ms=function t(e,n){p(this,t),this.name=e,this.token=n};function Ns(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new Kn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Vs();if(!o||o.injector.get(Ds,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:co,useValue:"platform"});!function(t){if(Es&&!Es.destroyed&&!Es.injector.get(Ds,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Es=t.get(js);var e=t.get(is,null);e&&e.forEach(function(t){return t()})}(Co.create({providers:a,name:r}))}return function(t){var e=Vs();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}(i)}}function Vs(){return Es&&!Es.destroyed?Es:null}var js=function(){var t=function(){function t(e){p(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===n?new As:("zone.js"===n?void 0:n)||new ks({enableLongStackTrace:(Rs=!0,Is),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:ks,useValue:o}];return o.run(function(){var e=Co.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(Or,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){r.handleError(t)}});n.onDestroy(function(){Hs(i._modules,n),t.unsubscribe()})}),function(t,e,r){try{var o=((a=n.injector.get(ts)).runInitializers(),a.donePromise.then(function(){return ga(n.injector.get(ss,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Zo(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(u){throw e.runOutsideAngular(function(){return t.handleError(u)}),u}var a}(r,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ls({},n);return function(t,e,n){var r=new Eu(n);return Promise.resolve(r)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Fs);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(vt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Ls(t,e){return Array.isArray(e)?e.reduce(Ls,t):Object.assign(Object.assign({},t),e)}var Us,Fs=((Us=function(){function t(e,n,r,i,o){var a=this;p(this,t),this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new R(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),s=new R(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){ks.assertNotInAngularZone(),_s(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){ks.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof R?e[0]:nt(r)(rt(e,i))}(u,s.pipe(function(t){return it()((e=ht,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,lt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return y(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof xa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(cu),o=n.create(Co.NULL,[],e||n.selector,i),a=o.location.nativeElement,u=o.injector.get(Os,null),s=u&&o.injector.get(Ts);return u&&s&&s.registerApplication(a,u),o.onDestroy(function(){r.detachView(o.hostView),Hs(r.components,o),s&&s.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var n,r=e(this._views);try{for(r.s();!(n=r.n()).done;)n.value.detectChanges()}catch(i){r.e(i)}finally{r.f()}}catch(o){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(o)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Hs(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(as,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}()).\u0275fac=function(t){return new(t||Us)(hr(ks),hr(Co),hr(Or),hr(Aa),hr(ts))},Us.\u0275prov=St({token:Us,factory:Us.\u0275fac}),Us);function Hs(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var zs=function t(){p(this,t)},Bs=function t(){p(this,t)},qs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Gs=function(){var e=function(){function e(t,n){p(this,e),this._compiler=t,this._config=n||qs}return y(e,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(e){var n=this,r=t(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),l(8255)(i).then(function(t){return t[o]}).then(function(t){return Ws(t,i,o)}).then(function(t){return n._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),l(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Ws(t,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(hr(ys),hr(Bs,8))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}();function Ws(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Zs=Ns(null,"core",[{provide:os,useValue:"unknown"},{provide:js,deps:[Co]},{provide:Ts,deps:[]},{provide:us,deps:[]}]),Qs=[{provide:Fs,useClass:Fs,deps:[ks,Co,Or,Aa,ts]},{provide:bu,deps:[ks],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ts,useClass:ts,deps:[[new pr,Xu]]},{provide:ys,useClass:ys,deps:[]},ns,{provide:Ya,useFactory:function(){return iu},deps:[]},{provide:$a,useFactory:function(){return ou},deps:[]},{provide:ss,useFactory:function(t){return ga(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new vr(ss),new pr,new gr]]},{provide:ls,useValue:"USD"}],Ys=function(){var t=function t(e){p(this,t)};return t.\u0275fac=function(e){return new(e||t)(hr(Fs))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:Qs}),t}(),Ks=null;function $s(){return Ks}var Js=new Kn("DocumentToken"),Xs=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:tl,token:t,providedIn:"platform"}),t}();function tl(){return hr(nl)}var el=new Kn("Location Initialized"),nl=function(){var t=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this))._doc=t,r._init(),r}return y(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return $s().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=$s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=$s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){rl()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){rl()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(Xs);return t.\u0275fac=function(e){return new(e||t)(hr(Js))},t.\u0275prov=St({factory:il,token:t,providedIn:"platform"}),t}();function rl(){return!!window.history.pushState}function il(){return new nl(hr(Js))}function ol(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function al(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ul(t){return t&&"?"!==t[0]?"?"+t:t}var sl=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:ll,token:t,providedIn:"root"}),t}();function ll(t){var e=hr(Js).location;return new hl(hr(Xs),e&&e.origin||"")}var cl=new Kn("appBaseHref"),hl=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;if(p(this,n),(i=e.call(this))._platformLocation=t,i._removeListenerFns=[],null==r&&(r=i._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.");return i._baseHref=r,h(i)}return y(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return ol(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+ul(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(sl);return t.\u0275fac=function(e){return new(e||t)(hr(Xs),hr(cl,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),fl=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",i._removeListenerFns=[],null!=r&&(i._baseHref=r),i}return y(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=ol(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(sl);return t.\u0275fac=function(e){return new(e||t)(hr(Xs),hr(cl,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),dl=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._subject=new Mu,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=al(pl(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+ul(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,pl(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ul(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ul(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(sl),hr(Xs))},t.normalizeQueryParams=ul,t.joinWithSlash=ol,t.stripTrailingSlash=al,t.\u0275prov=St({factory:vl,token:t,providedIn:"root"}),t}();function vl(){return new dl(hr(sl),hr(Xs))}function pl(t){return t.replace(/\/index.html$/,"")}var gl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),yl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),ml=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),_l=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),kl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function bl(t,e){return El(da(t)[pa.DateFormat],e)}function wl(t,e){return El(da(t)[pa.TimeFormat],e)}function Cl(t,e){return El(da(t)[pa.DateTimeFormat],e)}function Sl(t,e){var n=da(t),r=n[pa.NumberSymbols][e];if(void 0===r){if(e===kl.CurrencyDecimal)return n[pa.NumberSymbols][kl.Decimal];if(e===kl.CurrencyGroup)return n[pa.NumberSymbols][kl.Group]}return r}function xl(t){if(!t[pa.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[pa.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function El(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Al(e){var n=t(e.split(":"),2);return{hours:+n[0],minutes:+n[1]}}var Ol=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tl={},Pl=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Il=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Rl=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Dl=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Ml(e,n,r,i){var o=function(e){if(Zl(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var n=t(e.split("-").map(function(t){return+t}),3),r=n[0],i=n[1],o=void 0===i?1:i,a=n[2];return Nl(r,o-1,void 0===a?1:a)}var u,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(u=e.match(Ol))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,u=Number(t[5]||0)-r,s=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,u,s,l),e}(u)}var l=new Date(e);if(!Zl(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);n=Vl(r,n)||n;for(var a,u=[];n;){if(!(a=Pl.exec(n))){u.push(n);break}var s=(u=u.concat(a.slice(1))).pop();if(!s)break;n=s}var l=o.getTimezoneOffset();i&&(l=Wl(i,l),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Wl(e,r)-r))}(o,i));var c="";return u.forEach(function(t){var e=function(t){if(Gl[t])return Gl[t];var e;switch(t){case"G":case"GG":case"GGG":e=Fl(Dl.Eras,ml.Abbreviated);break;case"GGGG":e=Fl(Dl.Eras,ml.Wide);break;case"GGGGG":e=Fl(Dl.Eras,ml.Narrow);break;case"y":e=Ul(Rl.FullYear,1,0,!1,!0);break;case"yy":e=Ul(Rl.FullYear,2,0,!0,!0);break;case"yyy":e=Ul(Rl.FullYear,3,0,!1,!0);break;case"yyyy":e=Ul(Rl.FullYear,4,0,!1,!0);break;case"Y":e=ql(1);break;case"YY":e=ql(2,!0);break;case"YYY":e=ql(3);break;case"YYYY":e=ql(4);break;case"M":case"L":e=Ul(Rl.Month,1,1);break;case"MM":case"LL":e=Ul(Rl.Month,2,1);break;case"MMM":e=Fl(Dl.Months,ml.Abbreviated);break;case"MMMM":e=Fl(Dl.Months,ml.Wide);break;case"MMMMM":e=Fl(Dl.Months,ml.Narrow);break;case"LLL":e=Fl(Dl.Months,ml.Abbreviated,yl.Standalone);break;case"LLLL":e=Fl(Dl.Months,ml.Wide,yl.Standalone);break;case"LLLLL":e=Fl(Dl.Months,ml.Narrow,yl.Standalone);break;case"w":e=Bl(1);break;case"ww":e=Bl(2);break;case"W":e=Bl(1,!0);break;case"d":e=Ul(Rl.Date,1);break;case"dd":e=Ul(Rl.Date,2);break;case"c":case"cc":e=Ul(Rl.Day,1);break;case"ccc":e=Fl(Dl.Days,ml.Abbreviated,yl.Standalone);break;case"cccc":e=Fl(Dl.Days,ml.Wide,yl.Standalone);break;case"ccccc":e=Fl(Dl.Days,ml.Narrow,yl.Standalone);break;case"cccccc":e=Fl(Dl.Days,ml.Short,yl.Standalone);break;case"E":case"EE":case"EEE":e=Fl(Dl.Days,ml.Abbreviated);break;case"EEEE":e=Fl(Dl.Days,ml.Wide);break;case"EEEEE":e=Fl(Dl.Days,ml.Narrow);break;case"EEEEEE":e=Fl(Dl.Days,ml.Short);break;case"a":case"aa":case"aaa":e=Fl(Dl.DayPeriods,ml.Abbreviated);break;case"aaaa":e=Fl(Dl.DayPeriods,ml.Wide);break;case"aaaaa":e=Fl(Dl.DayPeriods,ml.Narrow);break;case"b":case"bb":case"bbb":e=Fl(Dl.DayPeriods,ml.Abbreviated,yl.Standalone,!0);break;case"bbbb":e=Fl(Dl.DayPeriods,ml.Wide,yl.Standalone,!0);break;case"bbbbb":e=Fl(Dl.DayPeriods,ml.Narrow,yl.Standalone,!0);break;case"B":case"BB":case"BBB":e=Fl(Dl.DayPeriods,ml.Abbreviated,yl.Format,!0);break;case"BBBB":e=Fl(Dl.DayPeriods,ml.Wide,yl.Format,!0);break;case"BBBBB":e=Fl(Dl.DayPeriods,ml.Narrow,yl.Format,!0);break;case"h":e=Ul(Rl.Hours,1,-12);break;case"hh":e=Ul(Rl.Hours,2,-12);break;case"H":e=Ul(Rl.Hours,1);break;case"HH":e=Ul(Rl.Hours,2);break;case"m":e=Ul(Rl.Minutes,1);break;case"mm":e=Ul(Rl.Minutes,2);break;case"s":e=Ul(Rl.Seconds,1);break;case"ss":e=Ul(Rl.Seconds,2);break;case"S":e=Ul(Rl.FractionalSeconds,1);break;case"SS":e=Ul(Rl.FractionalSeconds,2);break;case"SSS":e=Ul(Rl.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Hl(Il.Short);break;case"ZZZZZ":e=Hl(Il.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Hl(Il.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Hl(Il.Long);break;default:return null}return Gl[t]=e,e}(t);c+=e?e(o,r,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Nl(t,e,n){var r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Vl(t,e){var n=function(t){return da(t)[pa.LocaleId]}(t);if(Tl[n]=Tl[n]||{},Tl[n][e])return Tl[n][e];var r="";switch(e){case"shortDate":r=bl(t,_l.Short);break;case"mediumDate":r=bl(t,_l.Medium);break;case"longDate":r=bl(t,_l.Long);break;case"fullDate":r=bl(t,_l.Full);break;case"shortTime":r=wl(t,_l.Short);break;case"mediumTime":r=wl(t,_l.Medium);break;case"longTime":r=wl(t,_l.Long);break;case"fullTime":r=wl(t,_l.Full);break;case"short":var i=Vl(t,"shortTime"),o=Vl(t,"shortDate");r=jl(Cl(t,_l.Short),[i,o]);break;case"medium":var a=Vl(t,"mediumTime"),u=Vl(t,"mediumDate");r=jl(Cl(t,_l.Medium),[a,u]);break;case"long":var s=Vl(t,"longTime"),l=Vl(t,"longDate");r=jl(Cl(t,_l.Long),[s,l]);break;case"full":var c=Vl(t,"fullTime"),h=Vl(t,"fullDate");r=jl(Cl(t,_l.Full),[c,h])}return r&&(Tl[n][e]=r),r}function jl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Ll(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var u,s=function(t,e){switch(t){case Rl.FullYear:return e.getFullYear();case Rl.Month:return e.getMonth();case Rl.Date:return e.getDate();case Rl.Hours:return e.getHours();case Rl.Minutes:return e.getMinutes();case Rl.Seconds:return e.getSeconds();case Rl.FractionalSeconds:return e.getMilliseconds();case Rl.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((n>0||s>-n)&&(s+=n),t===Rl.Hours)0===s&&-12===n&&(s=12);else if(t===Rl.FractionalSeconds)return u=e,Ll(s,3).substr(0,u);var l=Sl(a,kl.MinusSign);return Ll(s,e,l,r,i)}}function Fl(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yl.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,n,r,i,o,a){switch(r){case Dl.Months:return function(t,e,n){var r=da(t),i=El([r[pa.MonthsFormat],r[pa.MonthsStandalone]],e);return El(i,n)}(n,o,i)[e.getMonth()];case Dl.Days:return function(t,e,n){var r=da(t),i=El([r[pa.DaysFormat],r[pa.DaysStandalone]],e);return El(i,n)}(n,o,i)[e.getDay()];case Dl.DayPeriods:var u=e.getHours(),s=e.getMinutes();if(a){var l=function(t){var e=da(t);return xl(e),(e[pa.ExtraData][2]||[]).map(function(t){return"string"==typeof t?Al(t):[Al(t[0]),Al(t[1])]})}(n),c=function(t,e,n){var r=da(t);xl(r);var i=El([r[pa.ExtraData][0],r[pa.ExtraData][1]],e)||[];return El(i,n)||[]}(n,o,i),h=l.findIndex(function(e){if(Array.isArray(e)){var n=t(e,2),r=n[0],i=n[1],o=u>=r.hours&&s>=r.minutes,a=u0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Il.Short:return(i>=0?"+":"")+Ll(a,2,o)+Ll(Math.abs(i%60),2,o);case Il.ShortGMT:return"GMT"+(i>=0?"+":"")+Ll(a,1,o);case Il.Long:return"GMT"+(i>=0?"+":"")+Ll(a,2,o)+":"+Ll(Math.abs(i%60),2,o);case Il.Extended:return 0===r?"Z":(i>=0?"+":"")+Ll(a,2,o)+":"+Ll(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function zl(t){return Nl(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Bl(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,a;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+u)/7)}else{var l=zl(n),c=(o=l.getFullYear(),a=Nl(o,0,1).getDay(),Nl(o,0,1+(a<=4?4:11)-a)),h=l.getTime()-c.getTime();i=1+Math.round(h/6048e5)}return Ll(i,t,Sl(r,kl.MinusSign))}}function ql(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return Ll(zl(n).getFullYear(),t,Sl(r,kl.MinusSign),e)}}var Gl={};function Wl(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Zl(t){return t instanceof Date&&!isNaN(t.valueOf())}var Ql=function t(){p(this,t)},Yl=function(){var t=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this)).locale=t,r}return y(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return da(t)[pa.PluralCase]}(e||this.locale)(t)){case gl.Zero:return"zero";case gl.One:return"one";case gl.Two:return"two";case gl.Few:return"few";case gl.Many:return"many";default:return"other"}}}]),n}(Ql);return t.\u0275fac=function(e){return new(e||t)(hr(ss))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Kl(n,r){r=encodeURIComponent(r);var i,o=e(n.split(";"));try{for(o.s();!(i=o.n()).done;){var a=i.value,u=a.indexOf("="),s=t(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=s[0],c=s[1];if(l.trim()===r)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var $l=function(){function t(e,n,r,i){p(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Jl=function(){var t=function(){function t(e,n,r){p(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new $l(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Xl(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=e._viewContainer.get(r);e._viewContainer.move(u,i);var s=new Xl(t,u);n.push(s)}});for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Ml(e,n,i||this.locale,r)}catch(o){throw tc(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(ss,16))},t.\u0275pipe=se({name:"date",type:t,pure:!0}),t}(),rc=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"transform",value:function(e,n,r){if(null==e)return null;if(!this.supports(e))throw tc(t,e);return e.slice(n,r)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=se({name:"slice",type:t,pure:!1}),t}(),ic=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[{provide:Ql,useClass:Yl}]}),t}(),oc=function(){var t=function t(){p(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new ac(hr(Js),window)}}),t}(),ac=function(){function t(e,n){p(this,t),this.document=e,this.window=n,this.offset=function(){return[0,0]}}return y(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var 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))for(var r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;i;){var o=i.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}i=r.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=uc(this.window.history)||uc(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function uc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var sc,lc=function t(){p(this,t)},cc=function(t){s(n,t);var e=c(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(hc=hc||document.querySelector("base"))?hc.getAttribute("href"):null;return null==e?null:function(t){(sc=sc||document.createElement("a")).setAttribute("href",t);var e=sc.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){hc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return Kl(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,Ks||(Ks=t)}}]),n}(function(t){s(n,t);var e=c(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return n}(function(){return function t(){p(this,t)}}())),hc=null,fc=new Kn("TRANSITION_ID"),dc=[{provide:Xu,useFactory:function(t,e,n){return function(){n.get(ts).donePromise.then(function(){var n=$s();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[fc,Js,Co],multi:!0}],vc=function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){qt.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},qt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},qt.getAllAngularRootElements=function(){return t.getAllRootElements()},qt.frameworkStabilizers||(qt.frameworkStabilizers=[]),qt.frameworkStabilizers.push(function(t){var e=qt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?$s().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Ps=e}}]),t}(),pc=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),gc=new Kn("EventManagerPlugins"),yc=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Dc.hasOwnProperty(e)&&(e=Dc[e]))}return Rc[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ic.forEach(function(r){r!=n&&(0,Mc[r])(t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(mc);return t.\u0275fac=function(e){return new(e||t)(hr(Js))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Vc=Ns(Zs,"browser",[{provide:os,useValue:"browser"},{provide:is,useValue:function(){cc.makeCurrent(),vc.init()},multi:!0},{provide:Js,useFactory:function(){return function(t){me=t}(document),document},deps:[]}]),jc=[[],{provide:co,useValue:"root"},{provide:Or,useFactory:function(){return new Or},deps:[]},{provide:gc,useClass:Pc,multi:!0,deps:[Js,ks,os]},{provide:gc,useClass:Nc,multi:!0,deps:[Js]},[],{provide:Ec,useClass:Ec,deps:[yc,kc,es]},{provide:Da,useExisting:Ec},{provide:_c,useExisting:kc},{provide:kc,useClass:kc,deps:[Js]},{provide:Os,useClass:Os,deps:[ks]},{provide:yc,useClass:yc,deps:[gc,ks]},{provide:lc,useClass:pc,deps:[]},[]],Lc=function(){var t=function(){function t(e){if(p(this,t),e)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.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:es,useValue:e.appId},{provide:fc,useExisting:es},dc]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(t,12))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:jc,imports:[ic,Ys]}),t}();function Uc(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,n(r)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),Zc=function(){function t(){p(this,t)}return y(t,[{key:"encodeKey",value:function(t){return Qc(t)}},{key:"encodeValue",value:function(t){return Qc(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Qc(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Yc(t){return"".concat(t)}var Kc=function(){function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Zc,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,n){var r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),o=t(-1==i?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,i)),n.decodeValue(e.slice(i+1))],2),a=o[0],u=o[1],s=r.get(a)||[];s.push(u),r.set(a,s)}),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(t){var e=r.fromObject[t];n.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n];Array.isArray(r)?r.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Yc(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(Yc(e.value));-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),$c=function(){function t(){p(this,t),this.map=new Map}return y(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function Jc(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xc(t){return"undefined"!=typeof Blob&&t instanceof Blob}function th(t){return"undefined"!=typeof FormData&&t instanceof FormData}var eh=function(){function t(e,n,r,i){var o;if(p(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Wc),this.context||(this.context=new $c),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,u=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,s=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(r,i,a,{params:c,headers:l,context:h,reportProgress:s,responseType:o,withCredentials:u})}}]),t}(),nh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),rh=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,t),this.headers=e.headers||new Wc,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},ih=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=nh.ResponseHeader,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(rh),oh=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=nh.Response,t.body=void 0!==r.body?r.body:null,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(rh),ah=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(rh);function uh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var sh=function(){var t=function(){function t(e){p(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof eh?n=t:(r=a.headers instanceof Wc?a.headers:new Wc(a.headers),a.params&&(i=a.params instanceof Kc?a.params:new Kc({fromObject:a.params})),n=new eh(t,e,void 0!==a.body?a.body:null,{headers:r,context:a.context,params:i,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var u=Uc(n).pipe(Fc(function(t){return o.handler.handle(t)}));if(t instanceof eh||"events"===a.observe)return u;var s=u.pipe(Hc(function(t){return t instanceof oh}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(F(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(F(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(F(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(F(function(t){return t.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Kc).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,uh(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,uh(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,uh(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(qc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),lh=function(){function t(e,n){p(this,t),this.next=e,this.interceptor=n}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),ch=new Kn("HTTP_INTERCEPTORS"),hh=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),fh=/^\)\]\}',?\n/,dh=function(){var t=function(){function t(e){p(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),u=null,s=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new Wc(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new ih({headers:i,status:e,statusText:n,url:o})},l=function(){var e=s(),i=e.headers,o=e.status,a=e.statusText,u=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(fh,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new oh({body:l,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new ah({error:l,headers:i,status:o,statusText:a,url:u||void 0}))},c=function(t){var e=s().url,i=new ah({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(s()),h=!0);var i={type:nh.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:nh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:nh.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(lc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),vh=new Kn("XSRF_COOKIE_NAME"),ph=new Kn("XSRF_HEADER_NAME"),gh=function t(){p(this,t)},yh=function(){var t=function(){function t(e,n,r){p(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Kl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Js),hr(os),hr(vh))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),mh=function(){var t=function(){function t(e,n){p(this,t),this.tokenService=e,this.headerName=n}return y(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(gh),hr(ph))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(){function t(e,n){p(this,t),this.backend=e,this.injector=n,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(ch,[]);this.chain=e.reduceRight(function(t,e){return new lh(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Gc),hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),kh=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:mh,useClass:hh}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:vh,useValue:e.cookieName}:[],e.headerName?{provide:ph,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[mh,{provide:ch,useExisting:mh,multi:!0},{provide:gh,useClass:yh},{provide:vh,useValue:"XSRF-TOKEN"},{provide:ph,useValue:"X-XSRF-TOKEN"}]}),t}(),bh=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[sh,{provide:qc,useClass:_h},dh,{provide:Gc,useExisting:dh}],imports:[[kh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}();function wh(t,e){return new R(function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,u=function(u){var s=Y(t[u]),l=!1;n.add(s.subscribe({next:function(t){l||(l=!0,a++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&l||(a===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},s=0;s-1&&t.splice(n,1)}function Kh(t){return(tf(t)?t.validators:t)||null}function $h(t){return Array.isArray(t)?Vh(t):t||null}function Jh(t,e){return(tf(e)?e.asyncValidators:t)||null}function Xh(t){return Array.isArray(t)?jh(t):t||null}function tf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ef=function(){function t(e,n){p(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=$h(this._rawValidators),this._composedAsyncValidatorFn=Xh(this._rawAsyncValidators)}return y(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=$h(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Xh(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Rh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach(function(t){r=r instanceof rf?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof of&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Mu,this.statusChanges=new Mu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){tf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),nf=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,n),(t=e.call(this,Kh(i),Jh(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return y(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){Yh(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){Yh(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(ef),rf=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,Kh(r),Jh(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof nf?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){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[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var r=e.controls[n];r&&t(r,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ef),of=function(t){s(r,t);var n=c(r);function r(t,e,i){var o;return p(this,r),(o=n.call(this,Kh(e),Jh(i,e))).controls=t,o._initObservables(),o._setUpdateStrategy(e),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(r,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof nf?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){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(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,n=e(this.controls);try{for(n.s();!(t=n.n()).done;){if(t.value.enabled)return!1}}catch(r){n.e(r)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),r}(ef),af={provide:Fh,useExisting:yt(function(){return sf})},uf=Promise.resolve(null),sf=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Mu,i.form=new rf({},Vh(t),jh(r)),i}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Gh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Yh(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path),r=new rf({});(function(t,e){Zh(t,e)})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;uf.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(Fh);return t.\u0275fac=function(e){return new(e||t)(Fo(Th,10),Fo(Ph,10))},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Yo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Sa([af]),xo]}),t}(),lf={provide:Hh,useExisting:yt(function(){return hf})},cf=Promise.resolve(null),hf=function(){var t=function(t){s(r,t);var e=c(r);function r(t,n,i,o){var a;return p(this,r),(a=e.call(this)).control=new nf,a._registered=!1,a.update=new Mu,a._parent=t,a._setValidators(n),a._setAsyncValidators(i),a.valueAccessor=function(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===Oh?n=t:Object.getPrototypeOf(t.constructor)===Sh?r=t:i=t}),i||r||n||null):null;var n,r,i}(0,o),a}return y(r,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(n(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Gh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;cf.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;cf.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})}}]),r}(Hh);return t.\u0275fac=function(e){return new(e||t)(Fo(Fh,9),Fo(Th,10),Fo(Ph,10),Fo(xh,10))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Sa([lf]),xo,ke]}),t}(),ff=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),df=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({}),t}(),vf={provide:xh,useExisting:yt(function(){return gf}),multi:!0};function pf(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var gf=function(){var t,e=function(t){s(n,t);var e=c(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return y(n,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var n=pf(e,t);this.setProperty("value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o4&&void 0!==arguments[4]?arguments[4]:new Ef(t,n,r);if(!i.closed)return e instanceof R?e.subscribe(i):Z(e)(i)}var Of={},Tf=function(){function t(e){p(this,t),this.resultSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Pf(t,this.resultSelector))}}]),t}(),Pf=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return y(n,[{key:"_next",value:function(t){this.values.push(Of),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n=2&&(n=!0),function(r){return r.lift(new qf(t,e,n))}}var qf=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Gf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Gf=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}}]),n}(A);function Wf(t){return function(e){var n=new Zf(t),r=e.lift(n);return n.caught=r}}var Zf=function(){function t(e){p(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Qf(t,this.selector,this.caught))}}]),t}(),Qf=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void u(v(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new K(this);this.add(r);var i=J(e,r);i!==r&&this.add(i)}}}]),n}($);function Yf(t){return function(e){return 0===t?Mf():e.lift(new Kf(t))}}var Kf=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new Uf}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new $f(t,this.total))}}]),t}(),$f=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:ed;return function(e){return e.lift(new Xf(t))}}var Xf=function(){function t(e){p(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new td(t,this.errorFactory))}}]),t}(),td=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(A);function ed(){return new If}function nd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new rd(t))}}var rd=function(){function t(e){p(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new id(t,this.defaultValue))}}]),t}(),id=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function od(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Hc(function(e,n){return t(e,n,r)}):P,Ff(1),n?nd(e):Jf(function(){return new If}))}}function ad(){}function ud(t,e,n){return function(r){return r.lift(new sd(t,e,n))}}var sd=function(){function t(e,n,r){p(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new ld(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),ld=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t))._tapNext=ad,a._tapError=ad,a._tapComplete=ad,a._tapError=i||ad,a._tapComplete=o||ad,d(r)?(a._context=f(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||ad,a._tapError=r.error||ad,a._tapComplete=r.complete||ad),a}return y(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(A),cd=function(){function t(e){p(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new hd(t,this.callback))}}]),t}(),hd=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).add(new S(r)),i}return n}(A),fd=function t(e,n){p(this,t),this.id=e,this.url=n},dd=function(t){s(n,t);var e=c(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(fd),vd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(fd),pd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(fd),gd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(fd),yd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),md=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),_d=function(t){s(n,t);var e=c(n);function n(t,r,i,o,a){var u;return p(this,n),(u=e.call(this,t,r)).urlAfterRedirects=i,u.state=o,u.shouldActivate=a,u}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(fd),kd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),bd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),wd=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),Cd=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Sd=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),xd=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ed=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ad=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Od=function(){function t(e,n,r){p(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),Td=function(){function t(e){p(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Pd(t){return new Td(t)}function Id(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Rd(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function jd(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ld(t){return Qo(t)?t:Zo(t)?Y(Promise.resolve(t)):Uc(t)}var Ud={exact:function t(e,n,r){if(!Qd(e.segments,n.segments))return!1;if(!qd(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i],r))return!1}return!0},subset:zd},Fd={exact:function(t,e){return Dd(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Md(t[n],e[n])})},ignored:function(){return!0}};function Hd(t,e,n){return Ud[n.paths](t.root,e.root,n.matrixParams)&&Fd[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function zd(t,e,n){return Bd(t,e,e.segments,n)}function Bd(t,e,n,r){if(t.segments.length>n.length){var i=t.segments.slice(0,n.length);return!!Qd(i,n)&&!e.hasChildren()&&!!qd(i,n,r)}if(t.segments.length===n.length){if(!Qd(t.segments,n))return!1;if(!qd(t.segments,n,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!zd(t.children[o],e.children[o],r))return!1}return!0}var a=n.slice(0,t.segments.length),u=n.slice(t.segments.length);return!!Qd(t.segments,a)&&!!qd(t.segments,a,r)&&!!t.children.primary&&Bd(t.children.primary,e,u,r)}function qd(t,e,n){return e.every(function(e,r){return Fd[n](t[r].parameters,e.parameters)})}var Gd=function(){function t(e,n,r){p(this,t),this.root=e,this.queryParams=n,this.fragment=r}return y(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return $d.serialize(this)}}]),t}(),Wd=function(){function t(e,n){var r=this;p(this,t),this.segments=e,this.children=n,this.parent=null,jd(n,function(t,e){return t.parent=r})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Jd(this)}}]),t}(),Zd=function(){function t(e,n){p(this,t),this.path=e,this.parameters=n}return y(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ov(this)}}]),t}();function Qd(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var Yd=function t(){p(this,t)},Kd=function(){function t(){p(this,t)}return y(t,[{key:"parse",value:function(t){var e=new cv(t);return new Gd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,r;return"/".concat(Xd(t.root,!0)).concat((n=t.queryParams,r=Object.keys(n).map(function(t){var e=n[t];return Array.isArray(e)?e.map(function(e){return"".concat(ev(t),"=").concat(ev(e))}).join("&"):"".concat(ev(t),"=").concat(ev(e))}).filter(function(t){return!!t}),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),$d=new Kd;function Jd(t){return t.segments.map(function(t){return ov(t)}).join("/")}function Xd(t,e){if(!t.hasChildren())return Jd(t);if(e){var n=t.children.primary?Xd(t.children.primary,!1):"",r=[];return jd(t.children,function(t,e){"primary"!==e&&r.push("".concat(e,":").concat(Xd(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(t,e){var n=[];return jd(t.children,function(t,r){"primary"===r&&(n=n.concat(e(t,r)))}),jd(t.children,function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))}),n}(t,function(e,n){return"primary"===n?[Xd(t.children.primary,!1)]:["".concat(n,":").concat(Xd(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Jd(t),"/").concat(i[0]):"".concat(Jd(t),"/(").concat(i.join("//"),")")}function tv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ev(t){return tv(t).replace(/%3B/gi,";")}function nv(t){return tv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rv(t){return decodeURIComponent(t)}function iv(t){return rv(t.replace(/\+/g,"%20"))}function ov(t){return"".concat(nv(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(nv(t),"=").concat(nv(e[t]))}).join("")));var e}var av=/^[^\/()?;=#]+/;function uv(t){var e=t.match(av);return e?e[0]:""}var sv=/^[^=?&#]+/,lv=/^[^?&#]+/,cv=function(){function t(e){p(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wd([],{}):new Wd([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Wd(t,e)),n}},{key:"parseSegment",value:function(){var t=uv(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Zd(rv(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=uv(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=uv(this.remaining);r&&(n=r,this.capture(n))}t[rv(e)]=rv(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(sv);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(lv);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=iv(e),o=iv(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=uv(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Wd([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),hv=function(){function t(e){p(this,t),this._root=e}return y(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=fv(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=fv(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=dv(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return dv(t,this._root).map(function(t){return t.value})}}]),t}();function fv(t,n){if(t===n.value)return n;var r,i=e(n.children);try{for(i.s();!(r=i.n()).done;){var o=fv(t,r.value);if(o)return o}}catch(a){i.e(a)}finally{i.f()}return null}function dv(t,n){if(t===n.value)return[n];var r,i=e(n.children);try{for(i.s();!(r=i.n()).done;){var o=dv(t,r.value);if(o.length)return o.unshift(n),o}}catch(a){i.e(a)}finally{i.f()}return[]}var vv=function(){function t(e,n){p(this,t),this.value=e,this.children=n}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function pv(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var gv=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).snapshot=r,wv(f(i),t),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(hv);function yv(t,e){var n=function(t,e){var n=new kv([],{},{},"",{},"primary",e,null,t.root,-1,{});return new bv("",new vv(n,[]))}(t,e),r=new Sf([new Zd("",{})]),i=new Sf({}),o=new Sf({}),a=new Sf({}),u=new Sf(""),s=new mv(r,i,a,u,o,"primary",e,n.root);return s.snapshot=n.root,new gv(new vv(s,[]),n)}var mv=function(){function t(e,n,r,i,o,a,u,s){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}return y(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(F(function(t){return Pd(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(F(function(t){return Pd(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function _v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var kv=function(){function t(e,n,r,i,o,a,u,s,l,c,h){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return y(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Pd(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),bv=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,r)).url=t,wv(f(i),r),i}return y(n,[{key:"toString",value:function(){return Cv(this._root)}}]),n}(hv);function wv(t,e){e.value._routerState=t,e.children.forEach(function(e){return wv(t,e)})}function Cv(t){var e=t.children.length>0?" { ".concat(t.children.map(Cv).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Sv(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Ov(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(Tv);if(i&&i!==Vd(r))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Dv=function t(e,n,r){p(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function Mv(t,e,n){if(t||(t=new Wd([],{})),0===t.segments.length&&t.hasChildren())return Nv(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],u=n[r];if(Tv(u))break;var s="".concat(u),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Uv(s,l,a))return o;r+=2}else{if(!Uv(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},tp):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(e.matcher||Rd)(n,t,e);if(!i)return Object.assign({},tp);var o={};jd(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function np(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&function(t,e,n){return n.some(function(n){return rp(t,e,n)&&"primary"!==Jv(n)})}(t,r,i)){var a=new Wd(n,function(t,n,r,i){var o={};o.primary=i,i._sourceSegment=t,i._segmentIndexShift=n.length;var a,u=e(r);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Jv(s)){var l=new Wd([],{});l._sourceSegment=t,l._segmentIndexShift=n.length,o[Jv(s)]=l}}}catch(c){u.e(c)}finally{u.f()}return o}(t,n,i,new Wd(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function(t,e,n){return n.some(function(n){return rp(t,e,n)})}(t,r,i)){var u=new Wd(t.segments,function(t,n,r,i,o,a){var u,s={},l=e(i);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(rp(t,r,c)&&!o[Jv(c)]){var h=new Wd([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:n.length,s[Jv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),s)}(t,n,r,i,t.children,o));return u._sourceSegment=t,u._segmentIndexShift=n.length,{segmentGroup:u,slicedSegments:r}}var s=new Wd(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:r}}function rp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ip(t,e,n,r){return!!(Jv(t)===r||"primary"!==r&&rp(e,n,t))&&("**"===t.path||ep(e,t,n).matched)}function op(t,e,n){return 0===e.length&&!t.children[n]}var ap=function t(e){p(this,t),this.segmentGroup=e||null},up=function t(e){p(this,t),this.urlTree=e};function sp(t){return new R(function(e){return e.error(new ap(t))})}function lp(t){return new R(function(e){return e.error(new up(t))})}function cp(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var hp=function(){function t(e,n,r,i,o){p(this,t),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(cu)}return y(t,[{key:"apply",value:function(){var t=this,e=np(this.urlTree.root,[],[],this.config).segmentGroup,n=new Wd(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(F(function(e){return t.createUrlTree(fp(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Wf(function(e){if(e instanceof up)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ap)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(F(function(n){return e.createUrlTree(fp(n),t.queryParams,t.fragment)})).pipe(Wf(function(t){if(t instanceof ap)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var r=t.segments.length>0?new Wd([],{primary:t}):t;return new Gd(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(F(function(t){return new Wd([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o=2;return function(r){return r.pipe(t?Hc(function(e,n){return t(e,n,r)}):P,Yf(1),n?nd(e):Jf(function(){return new If}))}}())}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return Y(n).pipe(Fc(function(u){return a.expandSegmentAgainstRoute(t,e,n,u,r,i,o).pipe(Wf(function(t){if(t instanceof ap)return Uc(null);throw t}))}),od(function(t){return!!t}),Wf(function(t,n){if(t instanceof If||"EmptyError"===t.name){if(op(e,r,i))return Uc(new Wd([],{}));throw new ap(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return ip(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):sp(e):sp(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?lp(o):this.lineralizeSegments(n,o).pipe(X(function(n){var o=new Wd(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,u=ep(e,r,i),s=u.matched,l=u.consumedSegments,c=u.lastChild,h=u.positionalParamSegments;if(!s)return sp(e);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?lp(f):this.lineralizeSegments(r,f).pipe(X(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Uc(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(F(function(t){return n._loadedConfig=t,new Wd(r,{})})):Uc(new Wd(r,{}));var a=ep(e,n,r),u=a.matched,s=a.consumedSegments,l=a.lastChild;if(!u)return sp(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(X(function(t){var r=t.module,a=t.routes,u=np(e,s,c,a),l=u.segmentGroup,h=u.slicedSegments,f=new Wd(l.segments,l.children);if(0===h.length&&f.hasChildren())return o.expandChildren(r,a,f).pipe(F(function(t){return new Wd(s,t)}));if(0===a.length&&0===h.length)return Uc(new Wd(s,{}));var d=Jv(n)===i;return o.expandSegment(r,f,a,h,d?"primary":i,!0).pipe(F(function(t){return new Wd(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Uc(new zv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Uc(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(X(function(n){return n?r.configLoader.load(t.injector,e).pipe(F(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(Id("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Uc(new zv([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;return i&&0!==i.length?Uc(i.map(function(r){var i,o=t.get(r);if(function(t){return t&&Bv(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Bv(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Ld(i)})).pipe(Wv(),ud(function(t){if(qv(t)){var e=Id('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),F(function(t){return!0===t})):Uc(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Uc(n);if(r.numberOfChildren>1||!r.children.primary)return cp(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Gd(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return jd(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return jd(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Wd(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,n){var r,i=0,o=e(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.path===t.path)return n.splice(i),a;i++}}catch(u){o.e(u)}finally{o.f()}return t}}]),t}();function fp(t){for(var e={},n=0,r=Object.keys(t.children);n0||o.hasChildren())&&(e[i]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Wd(t.segments.concat(e.segments),e.children)}return t}(new Wd(t.segments,e))}var dp=function t(e){p(this,t),this.path=e,this.route=this.path[this.path.length-1]},vp=function t(e,n){p(this,t),this.component=e,this.route=n};function pp(t,e,n){var r=t._root;return yp(r,e?e._root:null,n,[r.value])}function gp(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function yp(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=pv(e);return t.children.forEach(function(t){!function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Qd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qd(t.url,e.url)||!Dd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xv(t,e)||!Dd(t.queryParams,e.queryParams);case"paramsChange":default:return!xv(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new dp(r)):(o.data=a.data,o._resolvedData=a._resolvedData),yp(t,e,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new vp(u.outlet.component,a))}else a&&mp(e,u,i),i.canActivateChecks.push(new dp(r)),yp(t,null,o.component?u?u.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),jd(o,function(t,e){return mp(t,n.getContext(e),i)}),i}function mp(t,e,n){var r=pv(t),i=t.value;jd(r,function(t,r){mp(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new vp(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var _p=function t(){p(this,t)};function kp(t){return new R(function(e){return e.error(t)})}var bp=function(){function t(e,n,r,i,o,a){p(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){var t=np(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var n=new kv([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new vv(n,e),i=new bv(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=_v(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var r=[],i=0,o=Object.keys(e.children);i0?Vd(n).parameters:{};i=new kv(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Jv(t),t.component,t,Cp(e),Sp(e)+n.length,Ep(t))}else{var s=ep(e,t,n);if(!s.matched)return null;o=s.consumedSegments,a=n.slice(s.lastChild),i=new kv(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Jv(t),t.component,t,Cp(e),Sp(e)+o.length,Ep(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=np(e,o,a,l.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return null===d?null:[new vv(i,d)]}if(0===l.length&&0===f.length)return[new vv(i,[])];var v=Jv(t)===r,p=this.processSegment(l,h,f,v?"primary":r);return null===p?null:[new vv(i,p)]}}]),t}();function wp(t){var r,i=[],o=new Set,a=e(t);try{var u=function(){var t,e=r.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(e))return i.push(e),"continue";var a=i.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==a?((t=a.children).push.apply(t,n(e.children)),o.add(a)):i.push(e)};for(a.s();!(r=a.n()).done;)u()}catch(f){a.e(f)}finally{a.f()}var s,l=e(o);try{for(l.s();!(s=l.n()).done;){var c=s.value,h=wp(c.children);i.push(new vv(c.value,h))}}catch(f){l.e(f)}finally{l.f()}return i.filter(function(t){return!o.has(t)})}function Cp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Sp(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function xp(t){return t.data||{}}function Ep(t){return t.resolve||{}}function Ap(t){return Vf(function(e){var n=t(e);return n?Y(n).pipe(F(function(){return e})):Uc(e)})}var Op=function(t){s(n,t);var e=c(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(function(){function t(){p(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Tp=new Kn("ROUTES"),Pp=function(){function t(e,n,r,i){p(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren).pipe(F(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new zv(Nd(i.injector.get(Tp,void 0,Mt.Self|Mt.Optional)).map($v),i)}),Wf(function(t){throw e._loader$=void 0,t}));return e._loader$=new st(r,function(){return new j}).pipe(it()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Y(this.loader.load(t)):Ld(t()).pipe(X(function(t){return t instanceof hu?Uc(t):Y(e.compiler.compileModuleAsync(t))}))}}]),t}(),Ip=function t(){p(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rp,this.attachRef=null},Rp=function(){function t(){p(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Ip,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Dp=function(){function t(){p(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Mp(t){throw t}function Np(t,e,n){return e.parse("/")}function Vp(t,e){return Uc(null)}var jp={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Lp={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Up=function(){var t=function(){function t(e,n,r,i,o,a,u,s){var l=this;p(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Mp,this.malformedUriErrorHandler=Np,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vp,afterPreactivation:Vp},this.urlHandlingStrategy=new Dp,this.routeReuseStrategy=new Op,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(cu),this.console=o.get(us);var c=o.get(ks);this.isNgZoneEnabled=c instanceof ks&&ks.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=new Gd(new Wd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pp(a,u,function(t){return l.triggerEvent(new wd(t))},function(t){return l.triggerEvent(new Cd(t))}),this.routerState=yv(this.currentUrlTree,this.rootComponentType),this.transitions=new Sf({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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Hc(function(t){return 0!==t.id}),F(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Vf(function(t){var r,i,o,a,u=!1,s=!1;return Uc(t).pipe(ud(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Vf(function(t){var r=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||r)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Uc(t).pipe(Vf(function(t){var r=e.transitions.getValue();return n.next(new dd(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Df:Promise.resolve(t)}),function(t,e,n,r){return Vf(function(i){return function(t,e,n,r,i){return new hp(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(F(function(t){return Object.assign(Object.assign({},i),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),ud(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return X(function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new bp(t,e,n,r,i,o).recognize();return null===a?kp(new _p):Uc(a)}catch(u){return kp(u)}}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(F(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),ud(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var r=new yd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(r&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var i=t.id,o=t.extractedUrl,a=t.source,u=t.restoredState,s=t.extras,l=new dd(i,e.serializeUrl(o),a,u);n.next(l);var c=yv(o,e.rootComponentType).snapshot;return Uc(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:o,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Df}),Ap(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),ud(function(t){var n=new md(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),F(function(t){return Object.assign(Object.assign({},t),{guards:pp(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return X(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?Uc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Y(t).pipe(X(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Uc(o.map(function(o){var a,u=gp(o,e,i);if(function(t){return t&&Bv(t.canDeactivate)}(u))a=Ld(u.canDeactivate(t,e,n,r));else{if(!Bv(u))throw new Error("Invalid CanDeactivate guard");a=Ld(u(t,e,n,r))}return a.pipe(od())})).pipe(Wv()):Uc(!0)}(t.component,t.route,n,e,r)}),od(function(t){return!0!==t},!0))}(u,r,i,t).pipe(X(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Y(e).pipe(Fc(function(e){return Rf(function(t,e){return null!==t&&e&&e(new Sd(t)),Uc(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Ed(t)),Uc(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Nf(function(){return Uc(e.guards.map(function(i){var o,a=gp(i,e.node,n);if(function(t){return t&&Bv(t.canActivateChild)}(a))o=Ld(a.canActivateChild(r,t));else{if(!Bv(a))throw new Error("Invalid CanActivateChild guard");o=Ld(a(r,t))}return o.pipe(od())})).pipe(Wv())})});return Uc(i).pipe(Wv())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Uc(r.map(function(r){return Nf(function(){var i,o=gp(r,e,n);if(function(t){return t&&Bv(t.canActivate)}(o))i=Ld(o.canActivate(e,t));else{if(!Bv(o))throw new Error("Invalid CanActivate guard");i=Ld(o(e,t))}return i.pipe(od())})})).pipe(Wv()):Uc(!0)}(t,e.route,n))}),od(function(t){return!0!==t},!0))}(r,a,t,e):Uc(n)}),F(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),ud(function(t){if(qv(t.guardsResult)){var n=Id('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var r=new _d(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),Hc(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),Ap(function(t){if(t.guards.canActivateChecks.length)return Uc(t).pipe(ud(function(t){var n=new kd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Vf(function(t){var n,r,i=!1;return Uc(t).pipe((n=e.paramsInheritanceStrategy,r=e.ngModule.injector,X(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Uc(t);var o=0;return Y(i).pipe(Fc(function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Uc({});var o={};return Y(i).pipe(X(function(i){return function(t,e,n,r){var i=gp(t,e,r);return Ld(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(ud(function(t){o[i]=t}))}),Yf(1),X(function(){return Object.keys(o).length===i.length?Uc(o):Df}))}(t._resolve,t,e,r).pipe(F(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),_v(t,n).resolve),null}))}(t.route,e,n,r)}),ud(function(){return o++}),Yf(1),X(function(e){return o===i.length?Uc(t):Df}))})),ud({next:function(){return i=!0},complete:function(){i||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),ud(function(t){var n=new bd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Ap(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),F(function(t){var n=function(t,e,n){var r=Ev(t,e._root,n?n._root:void 0);return new gv(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),ud(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(i=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},F(function(t){return new Fv(o,t.targetRouterState,t.currentRouterState,a).activate(i),t})),ud({next:function(){u=!0},complete:function(){u=!0}}),(r=function(){u||s||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null},function(t){return t.lift(new cd(r))}),Wf(function(r){if(s=!0,(u=r)&&u.ngNavigationCancelingError){var i=qv(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new pd(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new gd(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(l){t.reject(l)}}var u;return Df}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Qv(t),this.config=t.map($v),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.queryParamsHandling,u=e.preserveFragment,s=r||this.routerState.root,l=u?this.currentUrlTree.fragment:o,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,r,i,o){if(0===r.length)return Pv(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Rv(!0,0,t);var e=0,r=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return jd(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(n(t),[{outlets:a}])}if(i.segmentPath)return[].concat(n(t),[i.segmentPath])}return"string"!=typeof i?[].concat(n(t),[i]):0===o?(i.split("/").forEach(function(n,i){0==i&&"."===n||(0==i&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(n(t),[i])},[]);return new Rv(r,e,i)}(r);if(a.toRoot())return Pv(e.root,new Wd([],{}),e,i,o);var u=function(t,e,n){if(t.isAbsolute)return new Dv(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Dv(r,r===e.root,0)}var i=Ov(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Dv(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),s=u.processChildren?Nv(u.segmentGroup,u.index,a.commands):Mv(u.segmentGroup,u.index,a.commands);return Pv(u.segmentGroup,s,e,i,o)}(s,this.currentUrlTree,t,c,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=qv(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree),i=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(i=this.location.getState()),this.scheduleNavigation(r,"imperative",i,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};p(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof dd?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vd&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Od&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Od(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Up),hr(oc),hr(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Kp=new Kn("ROUTER_CONFIGURATION"),$p=new Kn("ROUTER_FORROOT_GUARD"),Jp=[dl,{provide:Yd,useClass:Kd},{provide:Up,useFactory:function(t,e,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Up(null,t,e,n,r,i,o,Nd(a));return s&&(c.urlHandlingStrategy=s),l&&(c.routeReuseStrategy=l),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)}(u,c),u.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Yd,Rp,dl,Co,zs,ys,Tp,Kp,[function(){return function t(){p(this,t)}}(),new pr],[function(){return function t(){p(this,t)}}(),new pr]]},Rp,{provide:mv,useFactory:function(t){return t.routerState.root},deps:[Up]},{provide:zs,useClass:Gs},Qp,Zp,function(){function t(){p(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe(Wf(function(){return Uc(null)}))}}]),t}(),{provide:Kp,useValue:{enableTracing:!1}}];function Xp(){return new Ms("Router",Up)}var tg=function(){var t=function(){function t(e,n){p(this,t)}return y(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Jp,ig(e),{provide:$p,useFactory:rg,deps:[[Up,new pr,new gr]]},{provide:Kp,useValue:n||{}},{provide:sl,useFactory:ng,deps:[Xs,[new vr(cl),new pr],Kp]},{provide:Yp,useFactory:eg,deps:[Up,oc,Kp]},{provide:Wp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Zp},{provide:Ms,multi:!0,useFactory:Xp},[og,{provide:Xu,multi:!0,useFactory:ag,deps:[og]},{provide:sg,useFactory:ug,deps:[og]},{provide:as,multi:!0,useExisting:sg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[ig(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr($p,8),hr(Up,8))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({}),t}();function eg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Yp(t,e,n)}function ng(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new fl(t,e):new hl(t,e)}function rg(t){return"guarded"}function ig(t){return[{provide:$n,multi:!0,useValue:t},{provide:Tp,multi:!0,useValue:t}]}var og=function(){var t=function(){function t(e){p(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(el,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Up),i=t.injector.get(Kp);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Uc(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Kp),n=this.injector.get(Qp),r=this.injector.get(Yp),i=this.injector.get(Up),o=this.injector.get(Fs);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function ag(t){return t.appInitializer.bind(t)}function ug(t){return t.bootstrapListener.bind(t)}var sg=new Kn("Router Initializer"),lg=function(){return{exact:!0}},cg=function(){var t=function(){function t(e){p(this,t),this.router=e,this.title="Blog",this.searchText=""}return y(t,[{key:"goSearchComponent",value:function(){this.router.navigate(["search/".concat(this.searchText)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-root"]],decls:44,vars:3,consts:[["routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink",""],["routerLinkActive","active"],["routerLink","theme/lifestyle"],["routerLink","theme/nature"],["routerLink","theme/scienceNTechnologies"],["routerLink","theme/sport"],["id","searchDiv"],["list","articleList","type","search","placeholder","Search for an article...",3,"ngModel","ngModelChange"],["type","button",3,"click"],["id","centerDiv"],["align","center"],["href","https://www.instagram.com/"],["src","../assets/instagram-icon.png"],["href","https://uk-ua.facebook.com/"],["src","../assets/facebook-icon.png"],["href","https://www.pinterest.com/"],["src","../assets/pinterest-icon.png"],["href","https://twitter.com/?lang=ru"],["src","../assets/twitter-icon.png"]],template:function(t,e){var n,r,i;1&t&&(Bo(0,"header"),Bo(1,"nav"),Bo(2,"ul"),Bo(3,"li",0),Bo(4,"a",1),aa(5,"HOME"),qo(),qo(),Bo(6,"li",2),Bo(7,"a",3),aa(8,"LIFE STYLE"),qo(),qo(),Bo(9,"li",2),Bo(10,"a",4),aa(11,"NATURE"),qo(),qo(),Bo(12,"li",2),Bo(13,"a",5),aa(14,"SCIENCE AND TECHNOLOGY"),qo(),qo(),Bo(15,"li",2),Bo(16,"a",6),aa(17,"SPORT"),qo(),qo(),qo(),qo(),Bo(18,"div",7),Bo(19,"input",8),Yo("ngModelChange",function(t){return e.searchText=t}),qo(),Bo(20,"button",9),Yo("click",function(){return e.goSearchComponent()}),qo(),qo(),qo(),Bo(21,"div",10),Bo(22,"h1",11),aa(23,"MY BLOG"),qo(),Bo(24,"p"),aa(25,"Here you will find a lot of interesting things"),qo(),qo(),Go(26,"router-outlet"),Bo(27,"footer"),Bo(28,"p"),aa(29," \xa9 2021 VVG "),qo(),Bo(30,"nav"),Bo(31,"ul"),Bo(32,"li"),Bo(33,"a",12),Go(34,"img",13),qo(),qo(),Bo(35,"li"),Bo(36,"a",14),Go(37,"img",15),qo(),qo(),Bo(38,"li"),Bo(39,"a",16),Go(40,"img",17),qo(),qo(),Bo(41,"li"),Bo(42,"a",18),Go(43,"img",19),qo(),qo(),qo(),qo(),qo()),2&t&&(di(3),Ho("routerLinkActiveOptions",(n=lg,r=Ye()+2,(i=Fe())[r]===fi?No(i,r,n()):function(t,e){return t[e]}(i,r))),di(16),Ho("ngModel",e.searchText))},directives:[Bp,Hp,Oh,Bh,hf,qp],styles:["header[_ngcontent-%COMP%]{background:#000;position:fixed;top:0;width:100%;display:flex;justify-content:space-between}#searchDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-min-content;height:-moz-min-content;height:min-content;margin:auto 1%}#searchDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:20px;margin-right:5px}#searchDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url(loupe.63e36a417121627c983b.png);background-repeat:no-repeat;cursor:pointer;border:none;background-color:transparent;margin:auto 0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding-left:0;display:flex;justify-content:flex-start}a[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff;white-space:nowrap}li[_ngcontent-%COMP%]{padding:2%}li[_ngcontent-%COMP%]:hover{cursor:pointer}.active[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover{background:#535353}#centerDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:5% auto auto}#centerDiv[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:0}#centerDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5%;margin-bottom:7%;font-family:SEGOE PRINT}footer[_ngcontent-%COMP%]{background:#000;position:sticky;width:100%;color:#fff;display:flex;justify-content:space-between}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px;height:25px}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;font-family:sans-serif;font-weight:300;font-size:x-small;margin:auto 1%}"]}),t}(),hg=function(){var t=function(){function t(e){p(this,t),this.http=e,this.BASE_URI="https://localhost:44382/api/blog/"}return y(t,[{key:"getAllArticles",value:function(){return this.http.get(this.BASE_URI)}},{key:"getArticlesByName",value:function(t){return this.http.get(this.BASE_URI+"articles/".concat(t))}},{key:"getArticlesByTheme",value:function(t){return this.http.get(this.BASE_URI+"theme/".concat(t))}},{key:"getArticlesByTag",value:function(t){return this.http.get(this.BASE_URI+"tag/".concat(t))}},{key:"getArticleById",value:function(t){return this.http.get(this.BASE_URI+t)}},{key:"postCreateArticle",value:function(t){return this.http.post(this.BASE_URI,t)}},{key:"deleteArticle",value:function(t){return this.http.delete(this.BASE_URI+t)}},{key:"updateArticle",value:function(t,e){return this.http.put(this.BASE_URI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(sh))},t.\u0275prov=St({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function fg(t,e){if(1&t){var n=Wo();Bo(0,"li",9),Yo("click",function(){var t=ze(n).$implicit;return Jo(2).goToSearch(t.name)}),aa(1),Ou(2,"uppercase"),qo()}if(2&t){var r=e.$implicit;di(1),sa(" #",Tu(2,1,r.name)," ")}}function dg(t,e){if(1&t){var n=Wo();Bo(0,"div",1),Bo(1,"ul",2),Uo(2,fg,3,3,"li",3),qo(),Bo(3,"h3",4),aa(4),qo(),Bo(5,"ul",5),Bo(6,"li"),aa(7),Ou(8,"date"),qo(),Bo(9,"li"),aa(10),qo(),qo(),Go(11,"img",6),Bo(12,"p",7),aa(13),Ou(14,"slice"),qo(),Bo(15,"button",8),Yo("click",function(){var t=ze(n).$implicit;return Jo().goToArtile(t.id)}),aa(16,"Continue Reading\u2192"),qo(),qo()}if(2&t){var r=e.$implicit;di(2),Ho("ngForOf",r.tags),di(2),ua(r.name),di(3),ua(Pu(8,6,r.date,"mediumDate")),di(3),ua(null==r.author?null:r.author.nickName),di(1),Ho("src",r.imgUrl,wr),di(2),sa("",(i=r.text,o=Fe(),a=Ie(o,34),Ru(o,Iu(o,34)?function(t,e,n,r,i,o,a,u){var s=e+9;return function(t,e,n,r,i){var o=jo(t,e,n,0);return Vo(t,e+2,350)||o}(t,s,i)?No(t,s+3,u?r.call(u,i,0,350):r(i,0,350)):Au(t,s+3)}(o,Ye(),0,a.transform,i,0,0,a):a.transform(i,0,350))),"...")}var i,o,a}var vg=function(){var t=function(){function t(e){p(this,t),this.router=e,this.articleList=[]}return y(t,[{key:"ngOnInit",value:function(){}},{key:"goToArtile",value:function(t){this.router.navigate(["article/".concat(t)])}},{key:"goToSearch",value:function(t){this.router.navigate(["search/tag/".concat(t)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-articleList"]],inputs:{articleList:"articleList"},decls:1,vars:1,consts:[["class","articleDiv",4,"ngFor","ngForOf"],[1,"articleDiv"],["id","tags"],["class","orange",3,"click",4,"ngFor","ngForOf"],[1,"name"],[1,"info"],[1,"img",3,"src"],[1,"text"],["type","button","id","btn",1,"orange",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&Uo(0,dg,17,13,"div",0),2&t&&Ho("ngForOf",e.articleList)},directives:[Jl],pipes:[nc,rc,ec],styles:[".articleDiv[_ngcontent-%COMP%]{width:62vw;height:auto;margin:1.5% auto;box-shadow:0 0 5px 2px #d3d3d3;padding:15px;display:grid;grid-template-columns:30vw 30vw;grid-column-gap:15px;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}.articleDiv[_ngcontent-%COMP%]:hover{width:63vw;transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}img[_ngcontent-%COMP%]{width:30vw;height:auto;grid-column:1;grid-row:1/5}#tags[_ngcontent-%COMP%]{grid-row:1}#tags[_ngcontent-%COMP%], .name[_ngcontent-%COMP%]{grid-column:2;margin:0}.name[_ngcontent-%COMP%]{font-size:x-large;color:#000;grid-row:2}ul[_ngcontent-%COMP%]{color:gray;font-size:small;font-family:Calibri;list-style:none;display:flex;grid-column:2;grid-row:3;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:15px}.text[_ngcontent-%COMP%]{grid-row:4}#btn[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{grid-column:2}#btn[_ngcontent-%COMP%]{grid-row:5;padding:0}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}p[_ngcontent-%COMP%]{white-space:pre-wrap;margin:0}"]}),t}(),pg=function(){var t=function(){function t(e,n){p(this,t),this.articleService=e,this.router=n,this.articles=[]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getAllArticles().subscribe(function(e){t.articles=e})}},{key:"goToCreate",value:function(){this.router.navigate(["create"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-home"]],features:[Sa([hg])],decls:3,vars:1,consts:[[3,"articleList"],["type","button","id","btn",3,"click"]],template:function(t,e){1&t&&(Go(0,"app-articleList",0),Bo(1,"button",1),Yo("click",function(){return e.goToCreate()}),aa(2,"+"),qo()),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:["#btn[_ngcontent-%COMP%]{width:70px;height:70px;font-size:xx-large;border:none;border-radius:50%;background:#fff;box-shadow:0 0 5px 2px #d3d3d3;color:grey;position:fixed;right:5%;top:50%;font-size:7vh}#btn[_ngcontent-%COMP%]:hover{transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer;font-size:9vh}"]}),t}(),gg=function(){var t=function(){function t(e,n){p(this,t),this.articleService=e,this.activateRoute=n,this.articleName="",this.tagName="",this.articles=[],this.articleName=this.activateRoute.snapshot.params.articleName,this.tagName=this.activateRoute.snapshot.params.tagName}return y(t,[{key:"ngOnInit",value:function(){var t=this;null!=this.articleName?this.articleService.getArticlesByName(this.articleName).subscribe(function(e){return t.articles=e}):this.articleService.getArticlesByTag(this.tagName).subscribe(function(e){return t.articles=e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv))},t.\u0275cmp=ee({type:t,selectors:[["app-search"]],features:[Sa([hg])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Go(0,"app-articleList",0),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:[""]}),t}(),yg=function(){var t=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.themeName="",this.articles=[],this.themeName=this.activateRoute.snapshot.params.themeName}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticlesByTheme(this.themeName).subscribe(function(e){0==e.length?(t.router.navigate(["not-found"]),console.log(e)):(t.articles=e,console.log(e))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-theme"]],features:[Sa([hg])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Go(0,"app-articleList",0),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:[""]}),t}();function mg(t,e){if(1&t){var n=Wo();Bo(0,"li",9),Yo("click",function(){var t=ze(n).$implicit;return Jo().goToSearch(t.name)}),aa(1),Ou(2,"uppercase"),qo()}if(2&t){var r=e.$implicit;di(1),sa(" #",Tu(2,1,null==r?null:r.name)," ")}}var _g=function(){var t=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.id=this.activateRoute.snapshot.params.id}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticleById(this.id).subscribe(function(e){t.article=e,console.log(t.article)})}},{key:"goToSearch",value:function(t){this.router.navigate(["search/tag/".concat(t)])}},{key:"deleteArticle",value:function(t){this.articleService.deleteArticle(t).subscribe(function(t){return console.warn(t)}),this.router.navigate([""])}},{key:"updateArticle",value:function(t){this.router.navigate(["update/".concat(t)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-article"]],features:[Sa([hg])],decls:20,vars:9,consts:[["id","articleDiv"],[1,"img",3,"src"],["align","center"],[1,"name"],["id","text"],["class","orange",3,"click",4,"ngFor","ngForOf"],["id","btns"],["type","button","id","deleteBtn",3,"click"],["type","button","id","updateBtn",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&(Bo(0,"div",0),Bo(1,"div"),Go(2,"img",1),Bo(3,"div",2),Bo(4,"p"),aa(5),Ou(6,"date"),qo(),Bo(7,"h2",3),aa(8),qo(),Bo(9,"p"),aa(10),qo(),qo(),Bo(11,"p",4),aa(12),qo(),Bo(13,"ul"),Uo(14,mg,3,3,"li",5),qo(),qo(),qo(),Bo(15,"div",6),Bo(16,"button",7),Yo("click",function(){return e.deleteArticle(null==e.article?null:e.article.id)}),aa(17,"Delete"),qo(),Bo(18,"button",8),Yo("click",function(){return e.updateArticle(null==e.article?null:e.article.id)}),aa(19,"Update"),qo(),qo()),2&t&&(di(2),Ho("src",null==e.article?null:e.article.imgUrl,wr),di(3),ua(Pu(6,6,null==e.article?null:e.article.date,"mediumDate")),di(3),ua(null==e.article?null:e.article.name),di(2),ua(null==e.article||null==e.article.author?null:e.article.author.nickName),di(2),ua(null==e.article?null:e.article.text),di(2),Ho("ngForOf",null==e.article?null:e.article.tags))},directives:[Jl],pipes:[nc,ec],styles:["img[_ngcontent-%COMP%]{width:100%;height:auto;margin:0 1%;border-radius:0}#articleDiv[_ngcontent-%COMP%]{width:60%;height:auto;margin:0 auto}#btns[_ngcontent-%COMP%]{height:auto;display:flex;flex-direction:column;position:fixed;top:50%;right:5%}#btns[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}h2[_ngcontent-%COMP%]{margin:0 auto;color:#f3bc56}ul[_ngcontent-%COMP%]{list-style:none;display:flex;margin:0;padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:5%}.text[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1%}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}#text[_ngcontent-%COMP%]{margin-bottom:0;white-space:pre-wrap}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:xx-large;background:none;border:none;font-family:Times New Roman;box-shadow:0 0 5px 2px #d3d3d3;cursor:pointer;margin:5%;width:110px;height:60px}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}"]}),t}(),kg=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"ngOnInit",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-not-found"]],decls:1,vars:0,consts:[["src","assets/404_Error.jpg"]],template:function(t,e){1&t&&Go(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:0 auto}"]}),t}(),bg=["name"],wg=["nickName"],Cg=["theme"],Sg=["imgUrl"],xg=["tags"],Eg=["text"],Ag=function(){var t=function(){function t(e){p(this,t),this.service=e}return y(t,[{key:"ngOnInit",value:function(){}},{key:"onSubmit",value:function(){var t,e,n,r,i,o,a=new FormData;a.append("name",null===(t=this.name)||void 0===t?void 0:t.nativeElement.value),a.append("nickName",null===(e=this.nickName)||void 0===e?void 0:e.nativeElement.value),a.append("theme",null===(n=this.theme)||void 0===n?void 0:n.nativeElement.value),a.append("imgUrl",null===(r=this.imgUrl)||void 0===r?void 0:r.nativeElement.value),a.append("tags",null===(i=this.tags)||void 0===i?void 0:i.nativeElement.value),a.append("text",null===(o=this.text)||void 0===o?void 0:o.nativeElement.value),this.service.postCreateArticle(a).subscribe(function(t){return console.warn(t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg))},t.\u0275cmp=ee({type:t,selectors:[["app-create"]],viewQuery:function(t,e){var n;(1&t&&(Zu(bg,5),Zu(wg,5),Zu(Cg,5),Zu(Sg,5),Zu(xg,5),Zu(Eg,5)),2&t)&&(Wu(n=Yu())&&(e.name=n.first),Wu(n=Yu())&&(e.nickName=n.first),Wu(n=Yu())&&(e.theme=n.first),Wu(n=Yu())&&(e.imgUrl=n.first),Wu(n=Yu())&&(e.tags=n.first),Wu(n=Yu())&&(e.text=n.first))},features:[Sa([hg])],decls:31,vars:0,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","placeholder","Name","required",""],["name",""],["type","text","name","author","placeholder","Nickname","required",""],["nickName",""],["name","theme","required","","aria-placeholder","Select a theme"],["theme",""],["type","text","name","imgUrl","placeholder","Image url"],["imgUrl",""],["type","text","name","tags","placeholder","Tags"],["tags",""],["name","text","required","","placeholder","Text"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Bo(0,"form",0),Yo("ngSubmit",function(){return e.onSubmit()}),Bo(1,"h1",1),aa(2,"Create an article"),qo(),Go(3,"input",2,3),Go(5,"br"),Go(6,"input",4,5),Go(8,"br"),Bo(9,"select",6,7),Bo(11,"option"),aa(12,"lifestyle"),qo(),Bo(13,"option"),aa(14,"nature"),qo(),Bo(15,"option"),aa(16,"scienceNTechnologies"),qo(),Bo(17,"option"),aa(18,"sport"),qo(),qo(),Go(19,"br"),Go(20,"input",8,9),Go(22,"br"),Go(23,"input",10,11),Go(25,"br"),Go(26,"textarea",12,13),Go(28,"br"),Bo(29,"button",14),aa(30,"Create"),qo(),qo())},directives:[ff,qh,sf,yf,bf],styles:["form[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t}(),Og=function t(){p(this,t)},Tg=["name"],Pg=["imgUrl"],Ig=["text"];function Rg(t,e){if(1&t&&(Bo(0,"option"),aa(1),qo()),2&t){var n=e.$implicit;di(1),ua(null==n?null:n.name)}}var Dg,Mg=[{path:"",component:pg},{path:"search/:articleName",component:gg},{path:"search/tag/:tagName",component:gg},{path:"theme/:themeName",component:yg},{path:"article/:id",component:_g},{path:"not-found",component:kg},{path:"create",component:Ag},{path:"update/:id",component:(Dg=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.id=this.activateRoute.snapshot.params.id}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticleById(this.id).subscribe(function(e){return t.article=e})}},{key:"onSubmit",value:function(){var t,e,n,r,i,o,a,u,s,l,c=new Og;c.id=null===(t=this.article)||void 0===t?void 0:t.id,c.name=null===(e=this.name)||void 0===e?void 0:e.nativeElement.value,c.date=null===(n=this.article)||void 0===n?void 0:n.date,c.authorFK=null===(r=this.article)||void 0===r?void 0:r.authorFK,c.author=null===(i=this.article)||void 0===i?void 0:i.author,c.themeFK=null===(o=this.article)||void 0===o?void 0:o.themeFK,c.theme=null===(a=this.article)||void 0===a?void 0:a.theme,c.tags=null===(u=this.article)||void 0===u?void 0:u.tags,c.imgUrl=null===(s=this.imgUrl)||void 0===s?void 0:s.nativeElement.value,c.text=null===(l=this.text)||void 0===l?void 0:l.nativeElement.value,this.articleService.updateArticle(this.id,c).subscribe(function(t){return console.warn(t)})}}]),t}(),Dg.\u0275fac=function(t){return new(t||Dg)(Fo(hg),Fo(mv),Fo(Up))},Dg.\u0275cmp=ee({type:Dg,selectors:[["app-update"]],viewQuery:function(t,e){var n;1&t&&(Zu(Tg,5),Zu(Pg,5),Zu(Ig,5)),2&t&&(Wu(n=Yu())&&(e.name=n.first),Wu(n=Yu())&&(e.imgUrl=n.first),Wu(n=Yu())&&(e.text=n.first))},decls:29,vars:4,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","required","",3,"value"],["name",""],["name","theme","required",""],["theme",""],["type","text","name","imgUrl",3,"value"],["imgUrl",""],[4,"ngFor","ngForOf"],["name","text","required","",3,"value"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Bo(0,"form",0),Yo("ngSubmit",function(){return e.onSubmit()}),Bo(1,"h1",1),aa(2,"Update an article"),qo(),Go(3,"input",2,3),Go(5,"br"),Bo(6,"select",4,5),Bo(8,"option"),aa(9,"lifestyle"),qo(),Bo(10,"option"),aa(11,"nature"),qo(),Bo(12,"option"),aa(13,"scienceNTechnologies"),qo(),Bo(14,"option"),aa(15,"sport"),qo(),qo(),Go(16,"br"),Go(17,"input",6,7),Bo(19,"p"),aa(20,"Tags:"),qo(),Bo(21,"select"),Uo(22,Rg,2,1,"option",8),qo(),Go(23,"br"),Go(24,"textarea",9,10),Go(26,"br"),Bo(27,"button",11),aa(28,"Update"),qo(),qo()),2&t&&(di(3),Ho("value",null==e.article?null:e.article.name),di(14),Ho("value",null==e.article?null:e.article.imgUrl),di(5),Ho("ngForOf",null==e.article?null:e.article.tags),di(2),Ho("value",null==e.article?null:e.article.text))},directives:[ff,qh,sf,yf,bf,Jl],styles:["form[_ngcontent-%COMP%]{width:60%;height:auto;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),Dg)}],Ng=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t,bootstrap:[cg]}),t.\u0275inj=xt({providers:[],imports:[[Lc,bh,Cf,tg.forRoot(Mg,{onSameUrlNavigation:"reload"})]]}),t}();(function(){if(Rs)throw new Error("Cannot enable prod mode after platform setup.");Is=!1})(),Vc().bootstrapModule(Ng).catch(function(t){return console.error(t)})}},function(t){"use strict";t(t.s=9542)}])}(); \ No newline at end of file +!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(X(function(n,r){return Y(t(n,r)).pipe(F(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new tt(t,n))})}var tt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,t),this.project=e,this.concurrent=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new et(t,this.project,this.concurrent))}}]),t}(),et=function(t){s(n,t);var e=c(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}($);function nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return X(P,t)}function rt(t,e){return e?Q(t,e):new R(B(t))}function it(){return function(t){return t.lift(new at(t))}}var ot,at=function(){function t(e){p(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new ut(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),ut=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(A),st=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return y(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new S).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed&&(this._connection=null,t=S.EMPTY)),t}},{key:"refCount",value:function(){return it()(this)}}]),n}(R),lt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ot=st.prototype)._subscribe},_isComplete:{value:ot._isComplete,writable:!0},getSubject:{value:ot.getSubject},connect:{value:ot.connect},refCount:{value:ot.refCount}},ct=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_error",value:function(t){this._unsubscribe(),u(v(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),u(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(V);function ht(){return new j}function ft(t){for(var e in t)if(t[e]===ft)return e;throw Error("Could not find renamed property on target object.")}function dt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function pt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var gt=ft({__forward_ref__:ft});function yt(t){return t.__forward_ref__=yt,t.toString=function(){return vt(this())},t}function mt(t){return _t(t)?t():t}function _t(t){return"function"==typeof t&&t.hasOwnProperty(gt)&&t.__forward_ref__===yt}var kt=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,r))).code=t,i}return n}(o(Error));function bt(t){return"string"==typeof t?t:null==t?"":String(t)}function wt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():bt(t)}function Ct(t,e){var n=e?" in ".concat(e):"";throw new kt("201","No provider for ".concat(wt(t)," found").concat(n))}function St(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Et(t){return At(t,Pt)||At(t,Rt)}function At(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ot(t){return t&&(t.hasOwnProperty(It)||t.hasOwnProperty(Dt))?t[It]:null}var Tt,Pt=ft({"\u0275prov":ft}),It=ft({"\u0275inj":ft}),Rt=ft({ngInjectableDef:ft}),Dt=ft({ngInjectorDef:ft}),Mt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function Nt(t){var e=Tt;return Tt=t,e}function Vt(t,e,n){var r=Et(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Mt.Optional?null:void 0!==e?e:void Ct(vt(t),"Injector")}function jt(t){return{toString:t}.toString()}var Lt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Ut=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Ft="undefined"!=typeof globalThis&&globalThis,Ht="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global,qt=Ft||Bt||Ht||zt,Gt={},Wt=[],Zt=ft({"\u0275cmp":ft}),Qt=ft({"\u0275dir":ft}),Yt=ft({"\u0275pipe":ft}),Kt=ft({"\u0275mod":ft}),$t=ft({"\u0275loc":ft}),Jt=ft({"\u0275fac":ft}),Xt=ft({__NG_ELEMENT_ID__:ft}),te=0;function ee(t){return jt(function(){var e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Lt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ut.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=te++,n.inputs=ae(t.inputs,e),n.outputs=ae(t.outputs),i&&i.forEach(function(t){return t(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(ne)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(re)}:null,n})}function ne(t){return le(t)||function(t){return t[Qt]||null}(t)}function re(t){return function(t){return t[Yt]||null}(t)}var ie={};function oe(t){return jt(function(){var e={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(ie[t.id]=t.type),e})}function ae(t,e){if(null==t)return Gt;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var ue=ee;function se(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function le(t){return t[Zt]||null}function ce(t,e){var n=t[Kt]||null;if(!n&&!0===e)throw new Error("Type ".concat(vt(t)," does not have '\u0275mod' property."));return n}function he(t){return Array.isArray(t)&&"object"==typeof t[1]}function fe(t){return Array.isArray(t)&&!0===t[1]}function de(t){return 0!=(8&t.flags)}function ve(t){return 2==(2&t.flags)}function pe(t){return 1==(1&t.flags)}function ge(t){return null!==t.template}function ye(t,e){return t.hasOwnProperty(Jt)?t[Jt]:null}var me,_e=function(){function t(e,n,r){p(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return y(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function ke(){return be}function be(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ce),we}function we(){var t=Se(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===Gt)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Ce(t,e,n,r){var i=Se(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Gt,current:null}),o=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],s=a[u];o[u]=new _e(s&&s.currentValue,e,a===Gt),t[r]=e}function Se(t){return t.__ngSimpleChanges__||null}function xe(t){return!!t.listen}ke.ngInherit=!0;var Ee={createRenderer:function(t,e){return void 0!==me?me:"undefined"!=typeof document?document:void 0}};function Ae(t){for(;Array.isArray(t);)t=t[0];return t}function Oe(t,e){return Ae(e[t])}function Te(t,e){return Ae(e[t.index])}function Pe(t,e){return t.data[e]}function Ie(t,e){return t[e]}function Re(t,e){var n=e[t];return he(n)?n:n[0]}function De(t){return 4==(4&t[2])}function Me(t){return 128==(128&t[2])}function Ne(t,e){return null==e?null:t[e]}function Ve(t){t[18]=0}function je(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var Le={lFrame:on(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ue(){return Le.bindingsEnabled}function Fe(){return Le.lFrame.lView}function He(){return Le.lFrame.tView}function ze(t){return Le.lFrame.contextLView=t,t[8]}function Be(){for(var t=qe();null!==t&&64===t.type;)t=t.parent;return t}function qe(){return Le.lFrame.currentTNode}function Ge(t,e){var n=Le.lFrame;n.currentTNode=t,n.isParent=e}function We(){return Le.lFrame.isParent}function Ze(){return Le.isInCheckNoChangesMode}function Qe(t){Le.isInCheckNoChangesMode=t}function Ye(){var t=Le.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Le.lFrame.bindingIndex++}function $e(t){Le.lFrame.currentDirectiveIndex=t}function Je(){return Le.lFrame.currentQueryIndex}function Xe(t){Le.lFrame.currentQueryIndex=t}function tn(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function en(t,e,n){if(n&Mt.SkipSelf){for(var r=e,i=t;!(null!==(r=r.parent)||n&Mt.Host||(r=tn(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;e=r,t=i}var o=Le.lFrame=rn();return o.currentTNode=e,o.lView=t,!0}function nn(t){var e=rn(),n=t[1];Le.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function rn(){var t=Le.lFrame,e=null===t?null:t.child;return null===e?on(t):e}function on(t){var 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 an(){var t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var un=an;function sn(){var t=an();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 ln(){return Le.lFrame.selectedIndex}function cn(t){Le.lFrame.selectedIndex=t}function hn(){var t=Le.lFrame;return Pe(t.tView,t.selectedIndex)}function fn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var mn=function t(e,n,r){p(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function _n(t,e,n){for(var r=xe(t),i=0;ie){a=o-1;break}}}for(;o>16,r=e;n>0;)r=r[15],n--;return r}var An=!0;function On(t){var e=An;return An=t,e}var Tn=0;function Pn(t,e){var n=Rn(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,In(r.data,t),In(e,null),In(r.blueprint,null));var i=Dn(t,e),o=t.injectorIndex;if(Sn(i))for(var a=xn(i),u=En(i,e),s=u[1].data,l=0;l<8;l++)e[o+l]=u[a+l]|s[a+l];return e[o+8]=i,o}function In(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Mn(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xt)&&(r=n[Xt]),null==r&&(r=n[Xt]=Tn++);var i=255&r;e.data[t+(i>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:Mt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(Xt)?t[Xt]:void 0;return"number"==typeof e?e>=0?255&e:Un:e}(n);if("function"==typeof o){if(!en(e,t,r))return r&Mt.Host?Nn(i,n,r):Vn(e,n,r,i);try{var a=o(r);if(null!=a||r&Mt.Optional)return a;Ct(n)}finally{un()}}else if("number"==typeof o){var u=null,s=Rn(t,e),l=-1,c=r&Mt.Host?e[16][6]:null;for((-1===s||r&Mt.SkipSelf)&&(-1!==(l=-1===s?Dn(t,e):e[s+8])&&qn(r,!1)?(u=e[1],s=xn(l),e=En(l,e)):s=-1);-1!==s;){var h=e[1];if(Bn(o,s,h.data)){var f=Fn(s,e,n,u,r,c);if(f!==Ln)return f}-1!==(l=e[s+8])&&qn(r,e[1].data[s+8]===c)&&Bn(o,s,e)?(u=h,s=xn(l),e=En(l,e)):s=-1}}}return Vn(e,n,r,i)}var Ln={};function Un(){return new Gn(Be(),Fe())}function Fn(t,e,n,r,i,o){var a=e[1],u=a.data[t+8],s=Hn(u,a,n,null==r?ve(u)&&An:r!=a&&0!=(3&u.type),i&Mt.Host&&o===u);return null!==s?zn(e,a,s,u):Ln}function Hn(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,u=1048575&o,s=t.directiveStart,l=o>>20,c=i?u+l:t.directiveEnd,h=r?u:u+l;h=s&&f.type===n)return h}if(i){var d=a[s];if(d&&ge(d)&&d.type===n)return s}return null}function zn(t,e,n,r){var i=t[n],o=e.data;if(i instanceof mn){var a=i;a.resolving&&function(t,e){throw new kt("200","Circular dependency in DI detected for ".concat(t))}(wt(o[n]));var u=On(a.canSeeViewProviders);a.resolving=!0;var s=a.injectImpl?Nt(a.injectImpl):null;en(t,r,Mt.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var u=be(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==s&&Nt(s),On(u),a.resolving=!1,un()}}return i}function Bn(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function nr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rr(t,e){var n=ir(t,e);if(n>=0)return t[1|n]}function ir(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var or,ar={},ur=/\n/gm,sr=ft({provide:String,useValue:ft});function lr(t){var e=or;return or=t,e}function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt.Default;if(void 0===or)throw new Error("inject() must be called from an injection context");return null===or?Vt(t,void 0,e):or.get(t,e&Mt.Optional?null:void 0,e)}function hr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt.Default;return(Tt||cr)(mt(t),e)}function fr(t){for(var e=[],n=0;n1?e-1:0),r=1;r0&&(t[r-1][4]=i[4]);var a=nr(t,10+e);Jr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var u=a[19];null!==u&&u.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Hr(t,e){if(!(256&e[2])){var n=e[11];xe(n)&&n.destroyNode&&Jr(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return zr(t[1],t);for(;e;){var n=null;if(he(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)he(e)&&zr(e[1],e),e=e[3];null===e&&(e=t),he(e)&&zr(e[1],e),n=e&&e[4]}e=n}}(e)}}function zr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{var c=r[i=n[o+1]];n[o].call(c)}if(null!==r){for(var h=i+1;ho?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==ni(f,l,0)||2&r&&l!==h){if(ui(r))return!1;a=!0}}}}else{if(!a&&!ui(r)&&!ui(s))return!1;if(a&&ui(s))continue;a=!1,r=s|1&r}}return ui(r)||a}function ui(t){return 0==(1&t)}function si(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ui(a)||(e+=ci(o,i),i=""),r=a,o=o||!ui(r);n++}return""!==i&&(e+=ci(o,i)),e}var fi={};function di(t){vi(He(),Fe(),ln()+t,Ze())}function vi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&dn(e,i,n)}else{var o=t.preOrderHooks;null!==o&&vn(e,o,0,n)}cn(n)}function pi(t,e){return t<<17|e<<2}function gi(t){return t>>17&32767}function yi(t){return 2|t}function mi(t){return(131068&t)>>2}function _i(t,e){return-131069&t|e<<2}function ki(t){return 1|t}function bi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&vi(t,e,20,Ze()),n(r,i)}finally{cn(o)}}function Ti(t,e,n){Ue()&&(function(t,e,n,r){var i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Pn(n,e),Cr(r,e);for(var a=n.initialInputs,u=i;u2&&void 0!==arguments[2]?arguments[2]:Te,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(u)!=s&&u.push(s),u.push(r,i,a)}}function Li(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ui(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Fi(t,e,n){if(n){if(e.exportAs)for(var r=0;r0&&Qi(n)}}function Qi(t){for(var e=Mr(t);null!==e;e=Nr(e))for(var n=10;n0&&Qi(r)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Qi(u)}}function Yi(t,e){var n=Re(e,t),r=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:ar;if(e===ar){var n=new Error("NullInjectorError: No provider for ".concat(vt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),co=new Kn("Set Injector scope."),ho={},fo={};function vo(){return void 0===uo&&(uo=new lo),uo}function po(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new go(t,n,e||vo(),r)}var go=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&tr(n,function(t){return i.processProvider(t,e,n)}),tr([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(so,_o(void 0,this));var u=this.records.get(co);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof e?null:vt(e))}return y(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ar,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt.Default;this.assertNotDestroyed();var r,i=lr(this);try{if(!(n&Mt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Kn)&&Et(t);o=a&&this.injectableDefInScope(a)?_o(yo(t),ho):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&Mt.Self?vo():this.parent).get(t,e=n&Mt.Optional&&e===ar?null:e)}catch(u){if("NullInjectorError"===u.name){if((u.ngTempTokenPath=u.ngTempTokenPath||[]).unshift(vt(t)),i)throw u;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var u=e[a];o.push(a+":"+("string"==typeof u?JSON.stringify(u):vt(u)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(ur,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(u,t,0,this.source)}throw u}finally{lr(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(vt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=mt(t)))return!1;var i=Ot(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,u=-1!==n.indexOf(a);if(void 0!==o&&(i=Ot(o)),null==i)return!1;if(null!=i.imports&&!u){var s;n.push(a);try{tr(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===s&&(s=[]),s.push(t))})}finally{}if(void 0!==s)for(var l=function(t){var e=s[t],n=e.ngModule,i=e.providers;tr(i,function(t){return r.processProvider(t,n,i||Wt)})},c=0;c0){var n=function(t,e){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ko(t){return null!==t&&"object"==typeof t&&sr in t}function bo(t){return"function"==typeof t}var wo=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=po(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Co=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?wo(t,e,""):wo(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=ar,t.NULL=new lo,t.\u0275prov=St({token:t,providedIn:"any",factory:function(){return hr(so)}}),t.__NG_ELEMENT_ID__=-1,t}();function So(t,e){fn(Sr(t)[1],Be())}function xo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(ge(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=Eo(t.inputs),o.declaredInputs=Eo(t.declaredInputs),o.outputs=Eo(t.outputs);var a=i.hostBindings;a&&To(t,a);var u=i.viewQuery,s=i.contentQueries;if(u&&Ao(t,u),s&&Oo(t,s),dt(t.inputs,i.inputs),dt(t.declaredInputs,i.declaredInputs),dt(t.outputs,i.outputs),ge(i)&&i.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}var c=i.features;if(c)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=wn(i.hostAttrs,n=wn(n,i.hostAttrs))}}(r)}function Eo(t){return t===Gt?{}:t===Wt?[]:t}function Ao(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Oo(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function To(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Po=null;function Io(){if(!Po){var t=qt.Symbol;if(t&&t.iterator)Po=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Mt.Default,n=Fe();return null===n?hr(t,e):jn(Be(),n,mt(t),e)}function Ho(t,e,n){var r=Fe();return Vo(r,Ke(),e)&&Ni(He(),hn(),r,t,e,r[11],n,!1),Ho}function zo(t,e,n,r,i){var o=i?"class":"style";oo(t,n,e.inputs[o],o,r)}function Bo(t,e,n,r){var i=Fe(),o=He(),a=20+t,u=i[11],s=i[a]=Lr(u,e,Le.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,r,i,o,a){var u=e.consts,s=Ci(e,t,2,i,Ne(u,o));return Vi(e,n,s,Ne(u,a)),null!==s.attrs&&ao(s,s.attrs,!1),null!==s.mergedAttrs&&ao(s,s.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,s),s}(a,o,i,0,e,n,r):o.data[a];Ge(l,!0);var c=l.mergedAttrs;null!==c&&_n(u,s,c);var h=l.classes;null!==h&&ei(u,s,h);var f=l.styles;null!==f&&ti(u,s,f),64!=(64&l.flags)&&Zr(o,i,s,l),0===Le.lFrame.elementDepthCount&&Cr(s,i),Le.lFrame.elementDepthCount++,pe(l)&&(Ti(o,i,l),function(t,e,n){if(de(e))for(var r=e.directiveEnd,i=e.directiveStart;is?u[s]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=$o(r,e,0,o,!1);var y=n.listen(d,i,o);c.push(o,y),l&&l.push(i,p,v,v+1)}}else o=$o(r,e,0,o,!0),d.addEventListener(i,o,a),c.push(o),l&&l.push(i,p,v,a)}else o=$o(r,e,0,o,!1);var m,_=r.outputs;if(h&&null!==_&&(m=_[i])){var k=m.length;if(k)for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function Xo(t,e,n,r,i){for(var o=t[n+1],a=null===e,u=r?gi(o):mi(o),s=!1;0!==u&&(!1===s||a);){var l=t[u+1];ta(t[u],e)&&(s=!0,t[u+1]=r?ki(l):yi(l)),u=r?gi(l):mi(l)}s&&(t[n+1]=r?yi(o):ki(o))}function ta(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ir(t,e)>=0}function ea(t,e){return function(t,e,n,r){var i,o,a=Fe(),u=He(),s=(i=Le.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);u.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[ln()],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=function(t){var e=Le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=e.residualClasses;if(null===i)0===e.classBindings&&(n=ra(n=na(null,t,e,n,!0),e.attrs,!0),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=na(i,t,e,n,!0),null===o){var u=function(t,e,n){var r=e.classBindings;if(0!==mi(r))return t[gi(r)]}(t,e);void 0!==u&&Array.isArray(u)&&function(t,e,n,r){t[gi(e.classBindings)]=r}(t,e,0,u=ra(u=na(null,t,e,u[1],!0),e.attrs,!0))}else o=function(t,e,n){for(var r,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==s){var f=gi(t[u+1]);t[r+1]=pi(f,u),0!==f&&(t[f+1]=_i(t[f+1],r)),t[u+1]=131071&t[u+1]|r<<17}else t[r+1]=pi(u,0),0!==u&&(t[u+1]=_i(t[u+1],r)),u=r;else t[r+1]=pi(s,0),0===u?u=r:t[s+1]=_i(t[s+1],r),s=r;c&&(t[r+1]=yi(t[r+1])),Xo(t,l,r,!0),Xo(t,l,r,!1),function(t,e,n,r,i){var o=t.residualClasses;null!=o&&"string"==typeof e&&ir(o,e)>=0&&(n[r+1]=ki(n[r+1]))}(e,l,t,r),a=pi(u,s),e.classBindings=a}(i,o,e,n,a)}}(u,t,s),e!==fi&&Vo(a,s,e)&&function(t,e,n,r,i,o,a,u){if(3&e.type){var s=t.data,l=s[u+1];oa(1==(1&l)?ia(s,e,n,i,mi(l),!0):void 0)||(oa(o)||2==(2&l)&&(o=ia(s,null,n,i,u,!0)),function(t,e,n,r,i){var o=xe(t);i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,Oe(ln(),n),i,o))}}(u,u.data[ln()],a,a[11],t,a[s+1]=function(t,e){return null==t||"object"==typeof t&&(t=vt(mr(t))),t}(e),0,s)}(t,e),ea}function na(t,e,n,r,i){var o=null,a=n.directiveEnd,u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function ia(t,e,n,r,i,o){for(var a,u=null===e;i>0;){var s=t[i],l=Array.isArray(s),c=l?s[1]:s,h=null===c,f=n[i+1];f===fi&&(f=h?Wt:void 0);var d=h?rr(f,r):c===r?f:void 0;if(l&&!oa(d)&&(d=rr(s,r)),oa(d)&&(a=d,u))return a;var v=t[i+1];i=u?gi(v):mi(v)}if(null!==e){var p=o?e.residualClasses:e.residualStyles;null!=p&&(a=rr(p,r))}return a}function oa(t){return void 0!==t}function aa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Fe(),r=He(),i=t+20,o=r.firstCreatePass?Ci(r,i,1,e,null):r.data[i],a=n[i]=function(t,e){return xe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Zr(r,n,a,o),Ge(o,!1)}function ua(t){return sa("",t,""),ua}function sa(t,e,n){var r=Fe(),i=function(t,e,n,r){return Vo(t,Ke(),n)?e+bt(n)+r:fi}(r,t,e,n);return i!==fi&&function(t,e,n){var r=Oe(e,t);!function(t,e,n){xe(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,ln(),i),sa}function la(t,e,n){var r=Fe();return Vo(r,Ke(),e)&&Ni(He(),hn(),r,t,e,r[11],n,!0),la}var ca=void 0,ha=["en",[["a","p"],["AM","PM"],ca],[["AM","PM"],ca,ca],[["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"]],ca,[["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"]],ca,[["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}",ca,"{1} 'at' {0}",ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],fa={};function da(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=va(e);if(n)return n;var r=e.split("-")[0];if(n=va(r))return n;if("en"===r)return ha;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function va(t){return t in fa||(fa[t]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[t]),fa[t]}var pa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function ga(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function ya(t,e,n,r,i){if(t=mt(t),Array.isArray(t))for(var o=0;o>20;if(bo(t)||!t.multi){var v=new mn(l,i,Fo),p=ka(s,e,i?h:h+d,f);-1===p?(Mn(Pn(c,u),a,s),ma(a,t,e.length),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(v),u.push(v)):(n[p]=v,u[p]=v)}else{var g=ka(s,e,h+d,f),y=ka(s,e,h,h+d),m=g>=0&&n[g],_=y>=0&&n[y];if(i&&!_||!i&&!m){Mn(Pn(c,u),a,s);var k=function(t,e,n,r,i){var o=new mn(t,n,Fo);return o.multi=[],o.index=e,o.componentProviders=0,_a(o,i,r&&!n),o}(i?wa:ba,n.length,i,r,l);!i&&_&&(n[y].providerFactory=k),ma(a,t,e.length,0),e.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(k),u.push(k)}else ma(a,t,g>-1?g:y,_a(n[i?y:g],l,!i&&r));!i&&r&&_&&n[y].componentProviders++}}}function ma(t,e,n,r){var i=bo(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var u=a.indexOf(n);-1===u?a.push(n,[r,o]):a[u+1].push(r,o)}else a.push(n,o)}}}function _a(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ka(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=He();if(r.firstCreatePass){var i=ge(t);ya(n,r.data,r.blueprint,i,!0),ya(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var xa=function t(){p(this,t)},Ea=function(){function t(){p(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(vt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Aa=function(){var t=function t(){p(this,t)};return t.NULL=new Ea,t}();function Oa(){}function Ta(t,e){return new Ia(Te(t,e))}var Pa=function(){return Ta(Be(),Fe())},Ia=function(){var t=function t(e){p(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Pa,t}();function Ra(t){return t instanceof Ia?t.nativeElement:t}var Da=function t(){p(this,t)},Ma=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=function(){return Na()},t}(),Na=function(){var t=Fe(),e=Re(Be().index,t);return function(t){return t[11]}(he(e)?e:t)},Va=function(){var t=function t(){p(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return null}}),t}(),ja=new function t(e){p(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}("12.0.5"),La=function(){function t(){p(this,t)}return y(t,[{key:"supports",value:function(t){return Do(t)}},{key:"create",value:function(t){return new Fa(t)}}]),t}(),Ua=function(t,e){return e},Fa=function(){function t(e){p(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ua}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=e[r.index];if(null!==a&&i.push(Ae(a)),fe(a))for(var u=10;u-1&&(Fr(t,n),nr(e,n))}this._attachedToViewContainer=!1}Hr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Di(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){$i(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ji(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){Qe(!0);try{Ji(t,e,n)}finally{Qe(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Jr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),tu=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this,t))._view=t,r}return y(n,[{key:"detectChanges",value:function(){Xi(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Qe(!0);try{Xi(t)}finally{Qe(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Xa),eu=function(t){return function(t,e,n){if(ve(t)&&!n){var r=Re(t.index,e);return new Xa(r,r)}return 47&t.type?new Xa(e[16],e):null}(Be(),Fe(),16==(16&t))},nu=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=eu,t}(),ru=[new Ga],iu=new Ya([new La]),ou=new $a(ru),au=function(){return lu(Be(),Fe())},uu=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=au,t}(),su=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=wi(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),xi(e,n,t),new Xa(n)}}]),n}(uu);function lu(t,e){return 4&t.type?new su(e,t,Ta(t,e)):null}var cu=function t(){p(this,t)},hu=function t(){p(this,t)},fu=function(){return yu(Be(),Fe())},du=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=fu,t}(),vu=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"element",get:function(){return Ta(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Gn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Dn(this._hostTNode,this._hostLView);if(Sn(t)){var e=En(t,this._hostLView),n=xn(t);return new Gn(e[1].data[n+8],e)}return new Gn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=pu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(cu,null);a&&(i=a)}var u=t.create(o,r,void 0,i);return this.insert(u.hostView,e),u}},{key:"insert",value:function(t,e){var r=t._lView,i=r[1];if(fe(r[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=r[3],u=new n(a,a[6],a[3]);u.detach(u.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(du);function pu(t){return t[8]}function gu(t){return t[8]||(t[8]=[])}function yu(t,e){var n,r=e[t.index];if(fe(r))n=r;else{var i;if(8&t.type)i=Ae(r);else{var o=e[11];i=o.createComment("");var a=Te(t,e);Br(o,Wr(o,a),i,function(t,e){return xe(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=Wi(r,e,i,t),Ki(e,n)}return new vu(n,t,e)}var mu={},_u=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this)).ngModule=t,r}return y(n,[{key:"resolveComponentFactory",value:function(t){var e=le(t);return new wu(e,this.ngModule)}}]),n}(Aa);function ku(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var bu=new Kn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Tr}}),wu=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(hi).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return y(n,[{key:"inputs",get:function(){return ku(this.componentDef.inputs)}},{key:"outputs",get:function(){return ku(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,mu,i);return o!==mu||r===mu?o:e.get(n,r,i)}}}(t,r.injector):t,u=a.get(Da,Ee),s=a.get(Va,null),l=u.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(xe(t))return t.selectRootElement(e,n===Ut.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Lr(u.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Tr,clean:eo,playerHandler:null,flags:0},v=Ri(0,null,null,1,0,null,null,null,null,null),p=wi(null,v,d,f,null,null,u,l,s,a);nn(p);try{var g=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var u=Ci(a,20,2,"#host",null),s=u.mergedAttrs=e.hostAttrs;null!==s&&(ao(u,s,!0),null!==t&&(_n(i,t,s),null!==u.classes&&ei(i,t,u.classes),null!==u.styles&&ti(i,t,u.styles)));var l=r.createRenderer(t,e),c=wi(n,Ii(e),null,e.onPush?64:16,n[20],u,r,l,null,null);return a.firstCreatePass&&(Mn(Pn(u,n),a,e.type),Ui(a,u),Hi(u,n.length,1)),Ki(n,c),n[20]=c}(h,this.componentDef,p,u,l);if(h)if(n)_n(l,h,["ng-version",ja.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r0&&ei(l,h,_.join(" "))}if(o=Pe(v,20),void 0!==e)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:Co.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt.Default;return t===Co||t===cu||t===so?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(cu),Eu=function(t){s(r,t);var n=c(r);function r(t){var i,o,a;return p(this,r),(i=n.call(this)).moduleType=t,null!==ce(t)&&(o=t,a=new Set,function t(n){var r=ce(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(vt(e)," vs ").concat(vt(e.name)))}(i,Su.get(i),n),Su.set(i,n));var o,u=e(Pr(r.imports));try{for(u.s();!(o=u.n()).done;){var s=o.value;a.has(s)||(a.add(s),t(s))}}catch(l){u.e(l)}finally{u.f()}}(o)),i}return y(r,[{key:"create",value:function(t){return new xu(this.moduleType,t)}}]),r}(hu);function Au(t,e){var n=t[e];return n===fi?void 0:n}function Ou(t,e){var n,r=He(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new kt("302","The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=ye(n.type)),a=Nt(Fo);try{var u=On(!1),s=o();return On(u),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(r,Fe(),i,s),s}finally{Nt(a)}}function Tu(t,e,n){var r=t+20,i=Fe(),o=Ie(i,r);return Ru(i,Iu(i,r)?function(t,e,n,r,i,o){var a=e+n;return Vo(t,a,i)?No(t,a+1,o?r.call(o,i):r(i)):Au(t,a+1)}(i,Ye(),e,o.transform,n,o):o.transform(n))}function Pu(t,e,n,r){var i=t+20,o=Fe(),a=Ie(o,i);return Ru(o,Iu(o,i)?function(t,e,n,r,i,o,a){var u=e+n;return jo(t,u,i,o)?No(t,u+2,a?r.call(a,i,o):r(i,o)):Au(t,u+2)}(o,Ye(),e,a.transform,n,r,a):a.transform(n,r))}function Iu(t,e){return t[1].data[e].pure}function Ru(t,e){return Ro.isWrapped(e)&&(e=Ro.unwrap(e),t[Le.lFrame.bindingIndex]=fi),e}function Du(t){return function(e){setTimeout(t,void 0,e)}}var Mu=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,n),(t=e.call(this)).__isAsync=r,t}return y(n,[{key:"emit",value:function(t){u(v(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var i,o,a,s=t,l=e||function(){return null},c=r;if(t&&"object"==typeof t){var h=t;s=null===(i=h.next)||void 0===i?void 0:i.bind(h),l=null===(o=h.error)||void 0===o?void 0:o.bind(h),c=null===(a=h.complete)||void 0===a?void 0:a.bind(h)}this.__isAsync&&(l=Du(l),s&&(s=Du(s)),c&&(c=Du(c)));var f=u(v(n.prototype),"subscribe",this).call(this,{next:s,error:l,complete:c});return t instanceof S&&t.add(f),f}}]),n}(j);function Nu(){return this._results[Io()]()}var Vu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),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;var n=Io(),r=t.prototype;r[n]||(r[n]=Nu)}return y(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Mu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var n=Xn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,t),this.predicate=e,this.flags=n,this.read=r},Fu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[u/2]);else{for(var l=o[u+1],c=e[-s],h=10;h0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(ks))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Ts=function(){var t=function(){function t(){p(this,t),this._applications=new Map,Ps.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ps.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Ps=new(function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Is=!0,Rs=!1,Ds=new Kn("AllowMultipleToken"),Ms=function t(e,n){p(this,t),this.name=e,this.token=n};function Ns(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new Kn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Vs();if(!o||o.injector.get(Ds,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:co,useValue:"platform"});!function(t){if(Es&&!Es.destroyed&&!Es.injector.get(Ds,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Es=t.get(js);var e=t.get(is,null);e&&e.forEach(function(t){return t()})}(Co.create({providers:a,name:r}))}return function(t){var e=Vs();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}(i)}}function Vs(){return Es&&!Es.destroyed?Es:null}var js=function(){var t=function(){function t(e){p(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===n?new As:("zone.js"===n?void 0:n)||new ks({enableLongStackTrace:(Rs=!0,Is),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:ks,useValue:o}];return o.run(function(){var e=Co.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(Or,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){r.handleError(t)}});n.onDestroy(function(){Hs(i._modules,n),t.unsubscribe()})}),function(t,e,r){try{var o=((a=n.injector.get(ts)).runInitializers(),a.donePromise.then(function(){return ga(n.injector.get(ss,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Zo(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(u){throw e.runOutsideAngular(function(){return t.handleError(u)}),u}var a}(r,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ls({},n);return function(t,e,n){var r=new Eu(n);return Promise.resolve(r)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Fs);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(vt(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Ls(t,e){return Array.isArray(e)?e.reduce(Ls,t):Object.assign(Object.assign({},t),e)}var Us,Fs=((Us=function(){function t(e,n,r,i,o){var a=this;p(this,t),this._zone=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new R(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),s=new R(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){ks.assertNotInAngularZone(),_s(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){ks.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof R?e[0]:nt(r)(rt(e,i))}(u,s.pipe(function(t){return it()((e=ht,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,lt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return y(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof xa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(cu),o=n.create(Co.NULL,[],e||n.selector,i),a=o.location.nativeElement,u=o.injector.get(Os,null),s=u&&o.injector.get(Ts);return u&&s&&s.registerApplication(a,u),o.onDestroy(function(){r.detachView(o.hostView),Hs(r.components,o),s&&s.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var n,r=e(this._views);try{for(r.s();!(n=r.n()).done;)n.value.detectChanges()}catch(i){r.e(i)}finally{r.f()}}catch(o){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(o)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Hs(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(as,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}()).\u0275fac=function(t){return new(t||Us)(hr(ks),hr(Co),hr(Or),hr(Aa),hr(ts))},Us.\u0275prov=St({token:Us,factory:Us.\u0275fac}),Us);function Hs(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var zs=function t(){p(this,t)},Bs=function t(){p(this,t)},qs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Gs=function(){var e=function(){function e(t,n){p(this,e),this._compiler=t,this._config=n||qs}return y(e,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(e){var n=this,r=t(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),l(8255)(i).then(function(t){return t[o]}).then(function(t){return Ws(t,i,o)}).then(function(t){return n._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(e){var n=t(e.split("#"),2),r=n[0],i=n[1],o="NgFactory";return void 0===i&&(i="default",o=""),l(8255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Ws(t,r,i)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(hr(ys),hr(Bs,8))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}();function Ws(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Zs=Ns(null,"core",[{provide:os,useValue:"unknown"},{provide:js,deps:[Co]},{provide:Ts,deps:[]},{provide:us,deps:[]}]),Qs=[{provide:Fs,useClass:Fs,deps:[ks,Co,Or,Aa,ts]},{provide:bu,deps:[ks],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ts,useClass:ts,deps:[[new pr,Xu]]},{provide:ys,useClass:ys,deps:[]},ns,{provide:Ya,useFactory:function(){return iu},deps:[]},{provide:$a,useFactory:function(){return ou},deps:[]},{provide:ss,useFactory:function(t){return ga(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new vr(ss),new pr,new gr]]},{provide:ls,useValue:"USD"}],Ys=function(){var t=function t(e){p(this,t)};return t.\u0275fac=function(e){return new(e||t)(hr(Fs))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:Qs}),t}(),Ks=null;function $s(){return Ks}var Js=new Kn("DocumentToken"),Xs=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:tl,token:t,providedIn:"platform"}),t}();function tl(){return hr(nl)}var el=new Kn("Location Initialized"),nl=function(){var t=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this))._doc=t,r._init(),r}return y(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return $s().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=$s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=$s().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){rl()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){rl()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(Xs);return t.\u0275fac=function(e){return new(e||t)(hr(Js))},t.\u0275prov=St({factory:il,token:t,providedIn:"platform"}),t}();function rl(){return!!window.history.pushState}function il(){return new nl(hr(Js))}function ol(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function al(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ul(t){return t&&"?"!==t[0]?"?"+t:t}var sl=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({factory:ll,token:t,providedIn:"root"}),t}();function ll(t){var e=hr(Js).location;return new hl(hr(Xs),e&&e.origin||"")}var cl=new Kn("appBaseHref"),hl=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;if(p(this,n),(i=e.call(this))._platformLocation=t,i._removeListenerFns=[],null==r&&(r=i._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.");return i._baseHref=r,h(i)}return y(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return ol(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+ul(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(sl);return t.\u0275fac=function(e){return new(e||t)(hr(Xs),hr(cl,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),fl=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",i._removeListenerFns=[],null!=r&&(i._baseHref=r),i}return y(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=ol(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+ul(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(sl);return t.\u0275fac=function(e){return new(e||t)(hr(Xs),hr(cl,8))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),dl=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._subject=new Mu,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=al(pl(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+ul(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,pl(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ul(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ul(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(sl),hr(Xs))},t.normalizeQueryParams=ul,t.joinWithSlash=ol,t.stripTrailingSlash=al,t.\u0275prov=St({factory:vl,token:t,providedIn:"root"}),t}();function vl(){return new dl(hr(sl),hr(Xs))}function pl(t){return t.replace(/\/index.html$/,"")}var gl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),yl=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),ml=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),_l=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),kl=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function bl(t,e){return El(da(t)[pa.DateFormat],e)}function wl(t,e){return El(da(t)[pa.TimeFormat],e)}function Cl(t,e){return El(da(t)[pa.DateTimeFormat],e)}function Sl(t,e){var n=da(t),r=n[pa.NumberSymbols][e];if(void 0===r){if(e===kl.CurrencyDecimal)return n[pa.NumberSymbols][kl.Decimal];if(e===kl.CurrencyGroup)return n[pa.NumberSymbols][kl.Group]}return r}function xl(t){if(!t[pa.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[pa.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function El(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Al(e){var n=t(e.split(":"),2);return{hours:+n[0],minutes:+n[1]}}var Ol=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tl={},Pl=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Il=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Rl=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Dl=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Ml(e,n,r,i){var o=function(e){if(Zl(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var n=t(e.split("-").map(function(t){return+t}),3),r=n[0],i=n[1],o=void 0===i?1:i,a=n[2];return Nl(r,o-1,void 0===a?1:a)}var u,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(u=e.match(Ol))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,u=Number(t[5]||0)-r,s=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,u,s,l),e}(u)}var l=new Date(e);if(!Zl(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);n=Vl(r,n)||n;for(var a,u=[];n;){if(!(a=Pl.exec(n))){u.push(n);break}var s=(u=u.concat(a.slice(1))).pop();if(!s)break;n=s}var l=o.getTimezoneOffset();i&&(l=Wl(i,l),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Wl(e,r)-r))}(o,i));var c="";return u.forEach(function(t){var e=function(t){if(Gl[t])return Gl[t];var e;switch(t){case"G":case"GG":case"GGG":e=Fl(Dl.Eras,ml.Abbreviated);break;case"GGGG":e=Fl(Dl.Eras,ml.Wide);break;case"GGGGG":e=Fl(Dl.Eras,ml.Narrow);break;case"y":e=Ul(Rl.FullYear,1,0,!1,!0);break;case"yy":e=Ul(Rl.FullYear,2,0,!0,!0);break;case"yyy":e=Ul(Rl.FullYear,3,0,!1,!0);break;case"yyyy":e=Ul(Rl.FullYear,4,0,!1,!0);break;case"Y":e=ql(1);break;case"YY":e=ql(2,!0);break;case"YYY":e=ql(3);break;case"YYYY":e=ql(4);break;case"M":case"L":e=Ul(Rl.Month,1,1);break;case"MM":case"LL":e=Ul(Rl.Month,2,1);break;case"MMM":e=Fl(Dl.Months,ml.Abbreviated);break;case"MMMM":e=Fl(Dl.Months,ml.Wide);break;case"MMMMM":e=Fl(Dl.Months,ml.Narrow);break;case"LLL":e=Fl(Dl.Months,ml.Abbreviated,yl.Standalone);break;case"LLLL":e=Fl(Dl.Months,ml.Wide,yl.Standalone);break;case"LLLLL":e=Fl(Dl.Months,ml.Narrow,yl.Standalone);break;case"w":e=Bl(1);break;case"ww":e=Bl(2);break;case"W":e=Bl(1,!0);break;case"d":e=Ul(Rl.Date,1);break;case"dd":e=Ul(Rl.Date,2);break;case"c":case"cc":e=Ul(Rl.Day,1);break;case"ccc":e=Fl(Dl.Days,ml.Abbreviated,yl.Standalone);break;case"cccc":e=Fl(Dl.Days,ml.Wide,yl.Standalone);break;case"ccccc":e=Fl(Dl.Days,ml.Narrow,yl.Standalone);break;case"cccccc":e=Fl(Dl.Days,ml.Short,yl.Standalone);break;case"E":case"EE":case"EEE":e=Fl(Dl.Days,ml.Abbreviated);break;case"EEEE":e=Fl(Dl.Days,ml.Wide);break;case"EEEEE":e=Fl(Dl.Days,ml.Narrow);break;case"EEEEEE":e=Fl(Dl.Days,ml.Short);break;case"a":case"aa":case"aaa":e=Fl(Dl.DayPeriods,ml.Abbreviated);break;case"aaaa":e=Fl(Dl.DayPeriods,ml.Wide);break;case"aaaaa":e=Fl(Dl.DayPeriods,ml.Narrow);break;case"b":case"bb":case"bbb":e=Fl(Dl.DayPeriods,ml.Abbreviated,yl.Standalone,!0);break;case"bbbb":e=Fl(Dl.DayPeriods,ml.Wide,yl.Standalone,!0);break;case"bbbbb":e=Fl(Dl.DayPeriods,ml.Narrow,yl.Standalone,!0);break;case"B":case"BB":case"BBB":e=Fl(Dl.DayPeriods,ml.Abbreviated,yl.Format,!0);break;case"BBBB":e=Fl(Dl.DayPeriods,ml.Wide,yl.Format,!0);break;case"BBBBB":e=Fl(Dl.DayPeriods,ml.Narrow,yl.Format,!0);break;case"h":e=Ul(Rl.Hours,1,-12);break;case"hh":e=Ul(Rl.Hours,2,-12);break;case"H":e=Ul(Rl.Hours,1);break;case"HH":e=Ul(Rl.Hours,2);break;case"m":e=Ul(Rl.Minutes,1);break;case"mm":e=Ul(Rl.Minutes,2);break;case"s":e=Ul(Rl.Seconds,1);break;case"ss":e=Ul(Rl.Seconds,2);break;case"S":e=Ul(Rl.FractionalSeconds,1);break;case"SS":e=Ul(Rl.FractionalSeconds,2);break;case"SSS":e=Ul(Rl.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Hl(Il.Short);break;case"ZZZZZ":e=Hl(Il.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Hl(Il.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Hl(Il.Long);break;default:return null}return Gl[t]=e,e}(t);c+=e?e(o,r,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Nl(t,e,n){var r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Vl(t,e){var n=function(t){return da(t)[pa.LocaleId]}(t);if(Tl[n]=Tl[n]||{},Tl[n][e])return Tl[n][e];var r="";switch(e){case"shortDate":r=bl(t,_l.Short);break;case"mediumDate":r=bl(t,_l.Medium);break;case"longDate":r=bl(t,_l.Long);break;case"fullDate":r=bl(t,_l.Full);break;case"shortTime":r=wl(t,_l.Short);break;case"mediumTime":r=wl(t,_l.Medium);break;case"longTime":r=wl(t,_l.Long);break;case"fullTime":r=wl(t,_l.Full);break;case"short":var i=Vl(t,"shortTime"),o=Vl(t,"shortDate");r=jl(Cl(t,_l.Short),[i,o]);break;case"medium":var a=Vl(t,"mediumTime"),u=Vl(t,"mediumDate");r=jl(Cl(t,_l.Medium),[a,u]);break;case"long":var s=Vl(t,"longTime"),l=Vl(t,"longDate");r=jl(Cl(t,_l.Long),[s,l]);break;case"full":var c=Vl(t,"fullTime"),h=Vl(t,"fullDate");r=jl(Cl(t,_l.Full),[c,h])}return r&&(Tl[n][e]=r),r}function jl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Ll(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var u,s=function(t,e){switch(t){case Rl.FullYear:return e.getFullYear();case Rl.Month:return e.getMonth();case Rl.Date:return e.getDate();case Rl.Hours:return e.getHours();case Rl.Minutes:return e.getMinutes();case Rl.Seconds:return e.getSeconds();case Rl.FractionalSeconds:return e.getMilliseconds();case Rl.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((n>0||s>-n)&&(s+=n),t===Rl.Hours)0===s&&-12===n&&(s=12);else if(t===Rl.FractionalSeconds)return u=e,Ll(s,3).substr(0,u);var l=Sl(a,kl.MinusSign);return Ll(s,e,l,r,i)}}function Fl(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yl.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,n,r,i,o,a){switch(r){case Dl.Months:return function(t,e,n){var r=da(t),i=El([r[pa.MonthsFormat],r[pa.MonthsStandalone]],e);return El(i,n)}(n,o,i)[e.getMonth()];case Dl.Days:return function(t,e,n){var r=da(t),i=El([r[pa.DaysFormat],r[pa.DaysStandalone]],e);return El(i,n)}(n,o,i)[e.getDay()];case Dl.DayPeriods:var u=e.getHours(),s=e.getMinutes();if(a){var l=function(t){var e=da(t);return xl(e),(e[pa.ExtraData][2]||[]).map(function(t){return"string"==typeof t?Al(t):[Al(t[0]),Al(t[1])]})}(n),c=function(t,e,n){var r=da(t);xl(r);var i=El([r[pa.ExtraData][0],r[pa.ExtraData][1]],e)||[];return El(i,n)||[]}(n,o,i),h=l.findIndex(function(e){if(Array.isArray(e)){var n=t(e,2),r=n[0],i=n[1],o=u>=r.hours&&s>=r.minutes,a=u0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Il.Short:return(i>=0?"+":"")+Ll(a,2,o)+Ll(Math.abs(i%60),2,o);case Il.ShortGMT:return"GMT"+(i>=0?"+":"")+Ll(a,1,o);case Il.Long:return"GMT"+(i>=0?"+":"")+Ll(a,2,o)+":"+Ll(Math.abs(i%60),2,o);case Il.Extended:return 0===r?"Z":(i>=0?"+":"")+Ll(a,2,o)+":"+Ll(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function zl(t){return Nl(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Bl(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,a;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+u)/7)}else{var l=zl(n),c=(o=l.getFullYear(),a=Nl(o,0,1).getDay(),Nl(o,0,1+(a<=4?4:11)-a)),h=l.getTime()-c.getTime();i=1+Math.round(h/6048e5)}return Ll(i,t,Sl(r,kl.MinusSign))}}function ql(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){return Ll(zl(n).getFullYear(),t,Sl(r,kl.MinusSign),e)}}var Gl={};function Wl(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Zl(t){return t instanceof Date&&!isNaN(t.valueOf())}var Ql=function t(){p(this,t)},Yl=function(){var t=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this)).locale=t,r}return y(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return da(t)[pa.PluralCase]}(e||this.locale)(t)){case gl.Zero:return"zero";case gl.One:return"one";case gl.Two:return"two";case gl.Few:return"few";case gl.Many:return"many";default:return"other"}}}]),n}(Ql);return t.\u0275fac=function(e){return new(e||t)(hr(ss))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function Kl(n,r){r=encodeURIComponent(r);var i,o=e(n.split(";"));try{for(o.s();!(i=o.n()).done;){var a=i.value,u=a.indexOf("="),s=t(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),l=s[0],c=s[1];if(l.trim()===r)return decodeURIComponent(c)}}catch(h){o.e(h)}finally{o.f()}return null}var $l=function(){function t(e,n,r,i){p(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Jl=function(){var t=function(){function t(e,n,r){p(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new $l(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Xl(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var u=e._viewContainer.get(r);e._viewContainer.move(u,i);var s=new Xl(t,u);n.push(s)}});for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return Ml(e,n,i||this.locale,r)}catch(o){throw tc(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(ss,16))},t.\u0275pipe=se({name:"date",type:t,pure:!0}),t}(),rc=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"transform",value:function(e,n,r){if(null==e)return null;if(!this.supports(e))throw tc(t,e);return e.slice(n,r)}},{key:"supports",value:function(t){return"string"==typeof t||Array.isArray(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=se({name:"slice",type:t,pure:!1}),t}(),ic=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[{provide:Ql,useClass:Yl}]}),t}(),oc=function(){var t=function t(){p(this,t)};return t.\u0275prov=St({token:t,providedIn:"root",factory:function(){return new ac(hr(Js),window)}}),t}(),ac=function(){function t(e,n){p(this,t),this.document=e,this.window=n,this.offset=function(){return[0,0]}}return y(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var 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))for(var r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;i;){var o=i.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}i=r.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=uc(this.window.history)||uc(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function uc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var sc,lc=function t(){p(this,t)},cc=function(t){s(n,t);var e=c(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(hc=hc||document.querySelector("base"))?hc.getAttribute("href"):null;return null==e?null:function(t){(sc=sc||document.createElement("a")).setAttribute("href",t);var e=sc.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){hc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return Kl(document.cookie,t)}}],[{key:"makeCurrent",value:function(){var t;t=new n,Ks||(Ks=t)}}]),n}(function(t){s(n,t);var e=c(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return n}(function(){return function t(){p(this,t)}}())),hc=null,fc=new Kn("TRANSITION_ID"),dc=[{provide:Xu,useFactory:function(t,e,n){return function(){n.get(ts).donePromise.then(function(){var n=$s();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[fc,Js,Co],multi:!0}],vc=function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){qt.getAngularTestability=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},qt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},qt.getAllAngularRootElements=function(){return t.getAllRootElements()},qt.frameworkStabilizers||(qt.frameworkStabilizers=[]),qt.frameworkStabilizers.push(function(t){var e=qt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?$s().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Ps=e}}]),t}(),pc=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),gc=new Kn("EventManagerPlugins"),yc=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Dc.hasOwnProperty(e)&&(e=Dc[e]))}return Rc[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ic.forEach(function(r){r!=n&&(0,Mc[r])(t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(mc);return t.\u0275fac=function(e){return new(e||t)(hr(Js))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Vc=Ns(Zs,"browser",[{provide:os,useValue:"browser"},{provide:is,useValue:function(){cc.makeCurrent(),vc.init()},multi:!0},{provide:Js,useFactory:function(){return function(t){me=t}(document),document},deps:[]}]),jc=[[],{provide:co,useValue:"root"},{provide:Or,useFactory:function(){return new Or},deps:[]},{provide:gc,useClass:Pc,multi:!0,deps:[Js,ks,os]},{provide:gc,useClass:Nc,multi:!0,deps:[Js]},[],{provide:Ec,useClass:Ec,deps:[yc,kc,es]},{provide:Da,useExisting:Ec},{provide:_c,useExisting:kc},{provide:kc,useClass:kc,deps:[Js]},{provide:Os,useClass:Os,deps:[ks]},{provide:yc,useClass:yc,deps:[gc,ks]},{provide:lc,useClass:pc,deps:[]},[]],Lc=function(){var t=function(){function t(e){if(p(this,t),e)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.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:es,useValue:e.appId},{provide:fc,useExisting:es},dc]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(t,12))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:jc,imports:[ic,Ys]}),t}();function Uc(){for(var t=arguments.length,e=new Array(t),n=0;n0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,n(r)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),Zc=function(){function t(){p(this,t)}return y(t,[{key:"encodeKey",value:function(t){return Qc(t)}},{key:"encodeValue",value:function(t){return Qc(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Qc(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Yc(t){return"".concat(t)}var Kc=function(){function e(){var n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Zc,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,n){var r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),o=t(-1==i?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,i)),n.decodeValue(e.slice(i+1))],2),a=o[0],u=o[1],s=r.get(a)||[];s.push(u),r.set(a,s)}),r}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(t){var e=r.fromObject[t];n.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n];Array.isArray(r)?r.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Yc(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(Yc(e.value));-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),$c=function(){function t(){p(this,t),this.map=new Map}return y(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function Jc(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xc(t){return"undefined"!=typeof Blob&&t instanceof Blob}function th(t){return"undefined"!=typeof FormData&&t instanceof FormData}var eh=function(){function t(e,n,r,i){var o;if(p(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Wc),this.context||(this.context=new $c),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var u=n.indexOf("?");this.urlWithParams=n+(-1===u?"?":u0&&void 0!==arguments[0]?arguments[0]:{},r=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,u=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,s=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(r,i,a,{params:c,headers:l,context:h,reportProgress:s,responseType:o,withCredentials:u})}}]),t}(),nh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),rh=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,t),this.headers=e.headers||new Wc,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},ih=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=nh.ResponseHeader,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(rh),oh=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=nh.Response,t.body=void 0!==r.body?r.body:null,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),n}(rh),ah=function(t){s(n,t);var e=c(n);function n(t){var r;return p(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(rh);function uh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var sh=function(){var t=function(){function t(e){p(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof eh?n=t:(r=a.headers instanceof Wc?a.headers:new Wc(a.headers),a.params&&(i=a.params instanceof Kc?a.params:new Kc({fromObject:a.params})),n=new eh(t,e,void 0!==a.body?a.body:null,{headers:r,context:a.context,params:i,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var u=Uc(n).pipe(Fc(function(t){return o.handler.handle(t)}));if(t instanceof eh||"events"===a.observe)return u;var s=u.pipe(Hc(function(t){return t instanceof oh}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(F(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(F(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(F(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(F(function(t){return t.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Kc).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,uh(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,uh(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,uh(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(qc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),lh=function(){function t(e,n){p(this,t),this.next=e,this.interceptor=n}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),ch=new Kn("HTTP_INTERCEPTORS"),hh=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),fh=/^\)\]\}',?\n/,dh=function(){var t=function(){function t(e){p(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),u=null,s=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new Wc(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new ih({headers:i,status:e,statusText:n,url:o})},l=function(){var e=s(),i=e.headers,o=e.status,a=e.statusText,u=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(fh,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new oh({body:l,headers:i,status:o,statusText:a,url:u||void 0})),n.complete()):n.error(new ah({error:l,headers:i,status:o,statusText:a,url:u||void 0}))},c=function(t){var e=s().url,i=new ah({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(s()),h=!0);var i={type:nh.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:nh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:nh.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(lc))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),vh=new Kn("XSRF_COOKIE_NAME"),ph=new Kn("XSRF_HEADER_NAME"),gh=function t(){p(this,t)},yh=function(){var t=function(){function t(e,n,r){p(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Kl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Js),hr(os),hr(vh))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),mh=function(){var t=function(){function t(e,n){p(this,t),this.tokenService=e,this.headerName=n}return y(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(gh),hr(ph))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(){function t(e,n){p(this,t),this.backend=e,this.injector=n,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(ch,[]);this.chain=e.reduceRight(function(t,e){return new lh(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Gc),hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),kh=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:mh,useClass:hh}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:vh,useValue:e.cookieName}:[],e.headerName?{provide:ph,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[mh,{provide:ch,useExisting:mh,multi:!0},{provide:gh,useClass:yh},{provide:vh,useValue:"XSRF-TOKEN"},{provide:ph,useValue:"X-XSRF-TOKEN"}]}),t}(),bh=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({providers:[sh,{provide:qc,useClass:_h},dh,{provide:Gc,useExisting:dh}],imports:[[kh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}();function wh(t,e){return new R(function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,u=function(u){var s=Y(t[u]),l=!1;n.add(s.subscribe({next:function(t){l||(l=!0,a++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&l||(a===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},s=0;s-1&&t.splice(n,1)}function Kh(t){return(tf(t)?t.validators:t)||null}function $h(t){return Array.isArray(t)?Vh(t):t||null}function Jh(t,e){return(tf(e)?e.asyncValidators:t)||null}function Xh(t){return Array.isArray(t)?jh(t):t||null}function tf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ef=function(){function t(e,n){p(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=$h(this._rawValidators),this._composedAsyncValidatorFn=Xh(this._rawAsyncValidators)}return y(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=$h(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Xh(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Rh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var r=t;return e.forEach(function(t){r=r instanceof rf?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof of&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Mu,this.statusChanges=new Mu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){tf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),nf=function(t){s(n,t);var e=c(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,n),(t=e.call(this,Kh(i),Jh(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return y(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){Yh(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){Yh(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),n}(ef),rf=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,Kh(r),Jh(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof nf?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){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[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var r=e.controls[n];r&&t(r,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ef),of=function(t){s(r,t);var n=c(r);function r(t,e,i){var o;return p(this,r),(o=n.call(this,Kh(e),Jh(i,e))).controls=t,o._initObservables(),o._setUpdateStrategy(e),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return y(r,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof nf?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){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(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,n=e(this.controls);try{for(n.s();!(t=n.n()).done;){if(t.value.enabled)return!1}}catch(r){n.e(r)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),r}(ef),af={provide:Fh,useExisting:yt(function(){return sf})},uf=Promise.resolve(null),sf=function(){var t=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Mu,i.form=new rf({},Vh(t),jh(r)),i}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Gh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Yh(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path),r=new rf({});(function(t,e){Zh(t,e)})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;uf.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;uf.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(Fh);return t.\u0275fac=function(e){return new(e||t)(Fo(Th,10),Fo(Ph,10))},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Yo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Sa([af]),xo]}),t}(),lf={provide:Hh,useExisting:yt(function(){return hf})},cf=Promise.resolve(null),hf=function(){var t=function(t){s(r,t);var e=c(r);function r(t,n,i,o){var a;return p(this,r),(a=e.call(this)).control=new nf,a._registered=!1,a.update=new Mu,a._parent=t,a._setValidators(n),a._setAsyncValidators(i),a.valueAccessor=function(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===Oh?n=t:Object.getPrototypeOf(t.constructor)===Sh?r=t:i=t}),i||r||n||null):null;var n,r,i}(0,o),a}return y(r,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?[].concat(n(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Gh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;cf.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;cf.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})}}]),r}(Hh);return t.\u0275fac=function(e){return new(e||t)(Fo(Fh,9),Fo(Th,10),Fo(Ph,10),Fo(xh,10))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Sa([lf]),xo,ke]}),t}(),ff=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),df=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({}),t}(),vf={provide:xh,useExisting:yt(function(){return gf}),multi:!0};function pf(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var gf=function(){var t,e=function(t){s(n,t);var e=c(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return y(n,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var n=pf(e,t);this.setProperty("value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o4&&void 0!==arguments[4]?arguments[4]:new Ef(t,n,r);if(!i.closed)return e instanceof R?e.subscribe(i):Z(e)(i)}var Of={},Tf=function(){function t(e){p(this,t),this.resultSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Pf(t,this.resultSelector))}}]),t}(),Pf=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return y(n,[{key:"_next",value:function(t){this.values.push(Of),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n=2&&(n=!0),function(r){return r.lift(new qf(t,e,n))}}var qf=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Gf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Gf=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}}]),n}(A);function Wf(t){return function(e){var n=new Zf(t),r=e.lift(n);return n.caught=r}}var Zf=function(){function t(e){p(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Qf(t,this.selector,this.caught))}}]),t}(),Qf=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void u(v(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new K(this);this.add(r);var i=J(e,r);i!==r&&this.add(i)}}}]),n}($);function Yf(t){return function(e){return 0===t?Mf():e.lift(new Kf(t))}}var Kf=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new Uf}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new $f(t,this.total))}}]),t}(),$f=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:ed;return function(e){return e.lift(new Xf(t))}}var Xf=function(){function t(e){p(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new td(t,this.errorFactory))}}]),t}(),td=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(A);function ed(){return new If}function nd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new rd(t))}}var rd=function(){function t(e){p(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new id(t,this.defaultValue))}}]),t}(),id=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(A);function od(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Hc(function(e,n){return t(e,n,r)}):P,Ff(1),n?nd(e):Jf(function(){return new If}))}}function ad(){}function ud(t,e,n){return function(r){return r.lift(new sd(t,e,n))}}var sd=function(){function t(e,n,r){p(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new ld(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),ld=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t))._tapNext=ad,a._tapError=ad,a._tapComplete=ad,a._tapError=i||ad,a._tapComplete=o||ad,d(r)?(a._context=f(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||ad,a._tapError=r.error||ad,a._tapComplete=r.complete||ad),a}return y(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(A),cd=function(){function t(e){p(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new hd(t,this.callback))}}]),t}(),hd=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).add(new S(r)),i}return n}(A),fd=function t(e,n){p(this,t),this.id=e,this.url=n},dd=function(t){s(n,t);var e=c(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(fd),vd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(fd),pd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(fd),gd=function(t){s(n,t);var e=c(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(fd),yd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),md=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),_d=function(t){s(n,t);var e=c(n);function n(t,r,i,o,a){var u;return p(this,n),(u=e.call(this,t,r)).urlAfterRedirects=i,u.state=o,u.shouldActivate=a,u}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(fd),kd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),bd=function(t){s(n,t);var e=c(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(fd),wd=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),Cd=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),Sd=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),xd=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ed=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Ad=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Od=function(){function t(e,n,r){p(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),Td=function(){function t(e){p(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Pd(t){return new Td(t)}function Id(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Rd(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function jd(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ld(t){return Qo(t)?t:Zo(t)?Y(Promise.resolve(t)):Uc(t)}var Ud={exact:function t(e,n,r){if(!Qd(e.segments,n.segments))return!1;if(!qd(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i],r))return!1}return!0},subset:zd},Fd={exact:function(t,e){return Dd(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Md(t[n],e[n])})},ignored:function(){return!0}};function Hd(t,e,n){return Ud[n.paths](t.root,e.root,n.matrixParams)&&Fd[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function zd(t,e,n){return Bd(t,e,e.segments,n)}function Bd(t,e,n,r){if(t.segments.length>n.length){var i=t.segments.slice(0,n.length);return!!Qd(i,n)&&!e.hasChildren()&&!!qd(i,n,r)}if(t.segments.length===n.length){if(!Qd(t.segments,n))return!1;if(!qd(t.segments,n,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!zd(t.children[o],e.children[o],r))return!1}return!0}var a=n.slice(0,t.segments.length),u=n.slice(t.segments.length);return!!Qd(t.segments,a)&&!!qd(t.segments,a,r)&&!!t.children.primary&&Bd(t.children.primary,e,u,r)}function qd(t,e,n){return e.every(function(e,r){return Fd[n](t[r].parameters,e.parameters)})}var Gd=function(){function t(e,n,r){p(this,t),this.root=e,this.queryParams=n,this.fragment=r}return y(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return $d.serialize(this)}}]),t}(),Wd=function(){function t(e,n){var r=this;p(this,t),this.segments=e,this.children=n,this.parent=null,jd(n,function(t,e){return t.parent=r})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Jd(this)}}]),t}(),Zd=function(){function t(e,n){p(this,t),this.path=e,this.parameters=n}return y(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Pd(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ov(this)}}]),t}();function Qd(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var Yd=function t(){p(this,t)},Kd=function(){function t(){p(this,t)}return y(t,[{key:"parse",value:function(t){var e=new cv(t);return new Gd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,r;return"/".concat(Xd(t.root,!0)).concat((n=t.queryParams,r=Object.keys(n).map(function(t){var e=n[t];return Array.isArray(e)?e.map(function(e){return"".concat(ev(t),"=").concat(ev(e))}).join("&"):"".concat(ev(t),"=").concat(ev(e))}).filter(function(t){return!!t}),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),$d=new Kd;function Jd(t){return t.segments.map(function(t){return ov(t)}).join("/")}function Xd(t,e){if(!t.hasChildren())return Jd(t);if(e){var n=t.children.primary?Xd(t.children.primary,!1):"",r=[];return jd(t.children,function(t,e){"primary"!==e&&r.push("".concat(e,":").concat(Xd(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(t,e){var n=[];return jd(t.children,function(t,r){"primary"===r&&(n=n.concat(e(t,r)))}),jd(t.children,function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))}),n}(t,function(e,n){return"primary"===n?[Xd(t.children.primary,!1)]:["".concat(n,":").concat(Xd(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Jd(t),"/").concat(i[0]):"".concat(Jd(t),"/(").concat(i.join("//"),")")}function tv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ev(t){return tv(t).replace(/%3B/gi,";")}function nv(t){return tv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rv(t){return decodeURIComponent(t)}function iv(t){return rv(t.replace(/\+/g,"%20"))}function ov(t){return"".concat(nv(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(nv(t),"=").concat(nv(e[t]))}).join("")));var e}var av=/^[^\/()?;=#]+/;function uv(t){var e=t.match(av);return e?e[0]:""}var sv=/^[^=?&#]+/,lv=/^[^?&#]+/,cv=function(){function t(e){p(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wd([],{}):new Wd([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Wd(t,e)),n}},{key:"parseSegment",value:function(){var t=uv(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Zd(rv(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=uv(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=uv(this.remaining);r&&(n=r,this.capture(n))}t[rv(e)]=rv(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(sv);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(lv);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=iv(e),o=iv(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=uv(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Wd([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),hv=function(){function t(e){p(this,t),this._root=e}return y(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=fv(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=fv(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=dv(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return dv(t,this._root).map(function(t){return t.value})}}]),t}();function fv(t,n){if(t===n.value)return n;var r,i=e(n.children);try{for(i.s();!(r=i.n()).done;){var o=fv(t,r.value);if(o)return o}}catch(a){i.e(a)}finally{i.f()}return null}function dv(t,n){if(t===n.value)return[n];var r,i=e(n.children);try{for(i.s();!(r=i.n()).done;){var o=dv(t,r.value);if(o.length)return o.unshift(n),o}}catch(a){i.e(a)}finally{i.f()}return[]}var vv=function(){function t(e,n){p(this,t),this.value=e,this.children=n}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function pv(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var gv=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).snapshot=r,wv(f(i),t),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(hv);function yv(t,e){var n=function(t,e){var n=new kv([],{},{},"",{},"primary",e,null,t.root,-1,{});return new bv("",new vv(n,[]))}(t,e),r=new Sf([new Zd("",{})]),i=new Sf({}),o=new Sf({}),a=new Sf({}),u=new Sf(""),s=new mv(r,i,a,u,o,"primary",e,n.root);return s.snapshot=n.root,new gv(new vv(s,[]),n)}var mv=function(){function t(e,n,r,i,o,a,u,s){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this._futureSnapshot=s}return y(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(F(function(t){return Pd(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(F(function(t){return Pd(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function _v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var kv=function(){function t(e,n,r,i,o,a,u,s,l,c,h){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=u,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return y(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Pd(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Pd(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),bv=function(t){s(n,t);var e=c(n);function n(t,r){var i;return p(this,n),(i=e.call(this,r)).url=t,wv(f(i),r),i}return y(n,[{key:"toString",value:function(){return Cv(this._root)}}]),n}(hv);function wv(t,e){e.value._routerState=t,e.children.forEach(function(e){return wv(t,e)})}function Cv(t){var e=t.children.length>0?" { ".concat(t.children.map(Cv).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Sv(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Ov(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(Tv);if(i&&i!==Vd(r))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Dv=function t(e,n,r){p(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function Mv(t,e,n){if(t||(t=new Wd([],{})),0===t.segments.length&&t.hasChildren())return Nv(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],u=n[r];if(Tv(u))break;var s="".concat(u),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Uv(s,l,a))return o;r+=2}else{if(!Uv(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},tp):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(e.matcher||Rd)(n,t,e);if(!i)return Object.assign({},tp);var o={};jd(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function np(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&function(t,e,n){return n.some(function(n){return rp(t,e,n)&&"primary"!==Jv(n)})}(t,r,i)){var a=new Wd(n,function(t,n,r,i){var o={};o.primary=i,i._sourceSegment=t,i._segmentIndexShift=n.length;var a,u=e(r);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Jv(s)){var l=new Wd([],{});l._sourceSegment=t,l._segmentIndexShift=n.length,o[Jv(s)]=l}}}catch(c){u.e(c)}finally{u.f()}return o}(t,n,i,new Wd(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function(t,e,n){return n.some(function(n){return rp(t,e,n)})}(t,r,i)){var u=new Wd(t.segments,function(t,n,r,i,o,a){var u,s={},l=e(i);try{for(l.s();!(u=l.n()).done;){var c=u.value;if(rp(t,r,c)&&!o[Jv(c)]){var h=new Wd([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:n.length,s[Jv(c)]=h}}}catch(f){l.e(f)}finally{l.f()}return Object.assign(Object.assign({},o),s)}(t,n,r,i,t.children,o));return u._sourceSegment=t,u._segmentIndexShift=n.length,{segmentGroup:u,slicedSegments:r}}var s=new Wd(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:r}}function rp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ip(t,e,n,r){return!!(Jv(t)===r||"primary"!==r&&rp(e,n,t))&&("**"===t.path||ep(e,t,n).matched)}function op(t,e,n){return 0===e.length&&!t.children[n]}var ap=function t(e){p(this,t),this.segmentGroup=e||null},up=function t(e){p(this,t),this.urlTree=e};function sp(t){return new R(function(e){return e.error(new ap(t))})}function lp(t){return new R(function(e){return e.error(new up(t))})}function cp(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var hp=function(){function t(e,n,r,i,o){p(this,t),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(cu)}return y(t,[{key:"apply",value:function(){var t=this,e=np(this.urlTree.root,[],[],this.config).segmentGroup,n=new Wd(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(F(function(e){return t.createUrlTree(fp(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Wf(function(e){if(e instanceof up)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ap)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(F(function(n){return e.createUrlTree(fp(n),t.queryParams,t.fragment)})).pipe(Wf(function(t){if(t instanceof ap)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var r=t.segments.length>0?new Wd([],{primary:t}):t;return new Gd(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(F(function(t){return new Wd([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o=2;return function(r){return r.pipe(t?Hc(function(e,n){return t(e,n,r)}):P,Yf(1),n?nd(e):Jf(function(){return new If}))}}())}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return Y(n).pipe(Fc(function(u){return a.expandSegmentAgainstRoute(t,e,n,u,r,i,o).pipe(Wf(function(t){if(t instanceof ap)return Uc(null);throw t}))}),od(function(t){return!!t}),Wf(function(t,n){if(t instanceof If||"EmptyError"===t.name){if(op(e,r,i))return Uc(new Wd([],{}));throw new ap(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return ip(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):sp(e):sp(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?lp(o):this.lineralizeSegments(n,o).pipe(X(function(n){var o=new Wd(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,u=ep(e,r,i),s=u.matched,l=u.consumedSegments,c=u.lastChild,h=u.positionalParamSegments;if(!s)return sp(e);var f=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?lp(f):this.lineralizeSegments(r,f).pipe(X(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Uc(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(F(function(t){return n._loadedConfig=t,new Wd(r,{})})):Uc(new Wd(r,{}));var a=ep(e,n,r),u=a.matched,s=a.consumedSegments,l=a.lastChild;if(!u)return sp(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(X(function(t){var r=t.module,a=t.routes,u=np(e,s,c,a),l=u.segmentGroup,h=u.slicedSegments,f=new Wd(l.segments,l.children);if(0===h.length&&f.hasChildren())return o.expandChildren(r,a,f).pipe(F(function(t){return new Wd(s,t)}));if(0===a.length&&0===h.length)return Uc(new Wd(s,{}));var d=Jv(n)===i;return o.expandSegment(r,f,a,h,d?"primary":i,!0).pipe(F(function(t){return new Wd(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Uc(new zv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Uc(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(X(function(n){return n?r.configLoader.load(t.injector,e).pipe(F(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(Id("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Uc(new zv([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;return i&&0!==i.length?Uc(i.map(function(r){var i,o=t.get(r);if(function(t){return t&&Bv(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Bv(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Ld(i)})).pipe(Wv(),ud(function(t){if(qv(t)){var e=Id('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),F(function(t){return!0===t})):Uc(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Uc(n);if(r.numberOfChildren>1||!r.children.primary)return cp(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Gd(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return jd(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return jd(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Wd(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,n){var r,i=0,o=e(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.path===t.path)return n.splice(i),a;i++}}catch(u){o.e(u)}finally{o.f()}return t}}]),t}();function fp(t){for(var e={},n=0,r=Object.keys(t.children);n0||o.hasChildren())&&(e[i]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Wd(t.segments.concat(e.segments),e.children)}return t}(new Wd(t.segments,e))}var dp=function t(e){p(this,t),this.path=e,this.route=this.path[this.path.length-1]},vp=function t(e,n){p(this,t),this.component=e,this.route=n};function pp(t,e,n){var r=t._root;return yp(r,e?e._root:null,n,[r.value])}function gp(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function yp(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=pv(e);return t.children.forEach(function(t){!function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var s=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Qd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qd(t.url,e.url)||!Dd(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xv(t,e)||!Dd(t.queryParams,e.queryParams);case"paramsChange":default:return!xv(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new dp(r)):(o.data=a.data,o._resolvedData=a._resolvedData),yp(t,e,o.component?u?u.children:null:n,r,i),s&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new vp(u.outlet.component,a))}else a&&mp(e,u,i),i.canActivateChecks.push(new dp(r)),yp(t,null,o.component?u?u.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),jd(o,function(t,e){return mp(t,n.getContext(e),i)}),i}function mp(t,e,n){var r=pv(t),i=t.value;jd(r,function(t,r){mp(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new vp(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var _p=function t(){p(this,t)};function kp(t){return new R(function(e){return e.error(t)})}var bp=function(){function t(e,n,r,i,o,a){p(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){var t=np(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var n=new kv([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new vv(n,e),i=new bv(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=_v(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var r=[],i=0,o=Object.keys(e.children);i0?Vd(n).parameters:{};i=new kv(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Jv(t),t.component,t,Cp(e),Sp(e)+n.length,Ep(t))}else{var s=ep(e,t,n);if(!s.matched)return null;o=s.consumedSegments,a=n.slice(s.lastChild),i=new kv(o,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Jv(t),t.component,t,Cp(e),Sp(e)+o.length,Ep(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=np(e,o,a,l.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(l,h);return null===d?null:[new vv(i,d)]}if(0===l.length&&0===f.length)return[new vv(i,[])];var v=Jv(t)===r,p=this.processSegment(l,h,f,v?"primary":r);return null===p?null:[new vv(i,p)]}}]),t}();function wp(t){var r,i=[],o=new Set,a=e(t);try{var u=function(){var t,e=r.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(e))return i.push(e),"continue";var a=i.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==a?((t=a.children).push.apply(t,n(e.children)),o.add(a)):i.push(e)};for(a.s();!(r=a.n()).done;)u()}catch(f){a.e(f)}finally{a.f()}var s,l=e(o);try{for(l.s();!(s=l.n()).done;){var c=s.value,h=wp(c.children);i.push(new vv(c.value,h))}}catch(f){l.e(f)}finally{l.f()}return i.filter(function(t){return!o.has(t)})}function Cp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Sp(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function xp(t){return t.data||{}}function Ep(t){return t.resolve||{}}function Ap(t){return Vf(function(e){var n=t(e);return n?Y(n).pipe(F(function(){return e})):Uc(e)})}var Op=function(t){s(n,t);var e=c(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(function(){function t(){p(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Tp=new Kn("ROUTES"),Pp=function(){function t(e,n,r,i){p(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren).pipe(F(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new zv(Nd(i.injector.get(Tp,void 0,Mt.Self|Mt.Optional)).map($v),i)}),Wf(function(t){throw e._loader$=void 0,t}));return e._loader$=new st(r,function(){return new j}).pipe(it()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Y(this.loader.load(t)):Ld(t()).pipe(X(function(t){return t instanceof hu?Uc(t):Y(e.compiler.compileModuleAsync(t))}))}}]),t}(),Ip=function t(){p(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rp,this.attachRef=null},Rp=function(){function t(){p(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Ip,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Dp=function(){function t(){p(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Mp(t){throw t}function Np(t,e,n){return e.parse("/")}function Vp(t,e){return Uc(null)}var jp={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Lp={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Up=function(){var t=function(){function t(e,n,r,i,o,a,u,s){var l=this;p(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Mp,this.malformedUriErrorHandler=Np,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vp,afterPreactivation:Vp},this.urlHandlingStrategy=new Dp,this.routeReuseStrategy=new Op,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(cu),this.console=o.get(us);var c=o.get(ks);this.isNgZoneEnabled=c instanceof ks&&ks.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=new Gd(new Wd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pp(a,u,function(t){return l.triggerEvent(new wd(t))},function(t){return l.triggerEvent(new Cd(t))}),this.routerState=yv(this.currentUrlTree,this.rootComponentType),this.transitions=new Sf({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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Hc(function(t){return 0!==t.id}),F(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Vf(function(t){var r,i,o,a,u=!1,s=!1;return Uc(t).pipe(ud(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Vf(function(t){var r=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||r)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Uc(t).pipe(Vf(function(t){var r=e.transitions.getValue();return n.next(new dd(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Df:Promise.resolve(t)}),function(t,e,n,r){return Vf(function(i){return function(t,e,n,r,i){return new hp(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(F(function(t){return Object.assign(Object.assign({},i),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),ud(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return X(function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new bp(t,e,n,r,i,o).recognize();return null===a?kp(new _p):Uc(a)}catch(u){return kp(u)}}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(F(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),ud(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var r=new yd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(r&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var i=t.id,o=t.extractedUrl,a=t.source,u=t.restoredState,s=t.extras,l=new dd(i,e.serializeUrl(o),a,u);n.next(l);var c=yv(o,e.rootComponentType).snapshot;return Uc(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:o,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Df}),Ap(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),ud(function(t){var n=new md(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),F(function(t){return Object.assign(Object.assign({},t),{guards:pp(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return X(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===a.length?Uc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Y(t).pipe(X(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Uc(o.map(function(o){var a,u=gp(o,e,i);if(function(t){return t&&Bv(t.canDeactivate)}(u))a=Ld(u.canDeactivate(t,e,n,r));else{if(!Bv(u))throw new Error("Invalid CanDeactivate guard");a=Ld(u(t,e,n,r))}return a.pipe(od())})).pipe(Wv()):Uc(!0)}(t.component,t.route,n,e,r)}),od(function(t){return!0!==t},!0))}(u,r,i,t).pipe(X(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Y(e).pipe(Fc(function(e){return Rf(function(t,e){return null!==t&&e&&e(new Sd(t)),Uc(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Ed(t)),Uc(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Nf(function(){return Uc(e.guards.map(function(i){var o,a=gp(i,e.node,n);if(function(t){return t&&Bv(t.canActivateChild)}(a))o=Ld(a.canActivateChild(r,t));else{if(!Bv(a))throw new Error("Invalid CanActivateChild guard");o=Ld(a(r,t))}return o.pipe(od())})).pipe(Wv())})});return Uc(i).pipe(Wv())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Uc(r.map(function(r){return Nf(function(){var i,o=gp(r,e,n);if(function(t){return t&&Bv(t.canActivate)}(o))i=Ld(o.canActivate(e,t));else{if(!Bv(o))throw new Error("Invalid CanActivate guard");i=Ld(o(e,t))}return i.pipe(od())})})).pipe(Wv()):Uc(!0)}(t,e.route,n))}),od(function(t){return!0!==t},!0))}(r,a,t,e):Uc(n)}),F(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),ud(function(t){if(qv(t.guardsResult)){var n=Id('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var r=new _d(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),Hc(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),Ap(function(t){if(t.guards.canActivateChecks.length)return Uc(t).pipe(ud(function(t){var n=new kd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Vf(function(t){var n,r,i=!1;return Uc(t).pipe((n=e.paramsInheritanceStrategy,r=e.ngModule.injector,X(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;if(!i.length)return Uc(t);var o=0;return Y(i).pipe(Fc(function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Uc({});var o={};return Y(i).pipe(X(function(i){return function(t,e,n,r){var i=gp(t,e,r);return Ld(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(ud(function(t){o[i]=t}))}),Yf(1),X(function(){return Object.keys(o).length===i.length?Uc(o):Df}))}(t._resolve,t,e,r).pipe(F(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),_v(t,n).resolve),null}))}(t.route,e,n,r)}),ud(function(){return o++}),Yf(1),X(function(e){return o===i.length?Uc(t):Df}))})),ud({next:function(){return i=!0},complete:function(){i||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),ud(function(t){var n=new bd(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Ap(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,u=a.skipLocationChange,s=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!u,replaceUrl:!!s})}),F(function(t){var n=function(t,e,n){var r=Ev(t,e._root,n?n._root:void 0);return new gv(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),ud(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(i=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},F(function(t){return new Fv(o,t.targetRouterState,t.currentRouterState,a).activate(i),t})),ud({next:function(){u=!0},complete:function(){u=!0}}),(r=function(){u||s||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null},function(t){return t.lift(new cd(r))}),Wf(function(r){if(s=!0,(u=r)&&u.ngNavigationCancelingError){var i=qv(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new pd(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new gd(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(l){t.reject(l)}}var u;return Df}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Qv(t),this.config=t.map($v),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.queryParamsHandling,u=e.preserveFragment,s=r||this.routerState.root,l=u?this.currentUrlTree.fragment:o,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,r,i,o){if(0===r.length)return Pv(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Rv(!0,0,t);var e=0,r=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return jd(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(n(t),[{outlets:a}])}if(i.segmentPath)return[].concat(n(t),[i.segmentPath])}return"string"!=typeof i?[].concat(n(t),[i]):0===o?(i.split("/").forEach(function(n,i){0==i&&"."===n||(0==i&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(n(t),[i])},[]);return new Rv(r,e,i)}(r);if(a.toRoot())return Pv(e.root,new Wd([],{}),e,i,o);var u=function(t,e,n){if(t.isAbsolute)return new Dv(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new Dv(r,r===e.root,0)}var i=Ov(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Dv(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),s=u.processChildren?Nv(u.segmentGroup,u.index,a.commands):Mv(u.segmentGroup,u.index,a.commands);return Pv(u.segmentGroup,s,e,i,o)}(s,this.currentUrlTree,t,c,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=qv(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree),i=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(i=this.location.getState()),this.scheduleNavigation(r,"imperative",i,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};p(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof dd?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof vd&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Od&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Od(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Up),hr(oc),hr(void 0))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}(),Kp=new Kn("ROUTER_CONFIGURATION"),$p=new Kn("ROUTER_FORROOT_GUARD"),Jp=[dl,{provide:Yd,useClass:Kd},{provide:Up,useFactory:function(t,e,n,r,i,o,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Up(null,t,e,n,r,i,o,Nd(a));return s&&(c.urlHandlingStrategy=s),l&&(c.routeReuseStrategy=l),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)}(u,c),u.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Yd,Rp,dl,Co,zs,ys,Tp,Kp,[function(){return function t(){p(this,t)}}(),new pr],[function(){return function t(){p(this,t)}}(),new pr]]},Rp,{provide:mv,useFactory:function(t){return t.routerState.root},deps:[Up]},{provide:zs,useClass:Gs},Qp,Zp,function(){function t(){p(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe(Wf(function(){return Uc(null)}))}}]),t}(),{provide:Kp,useValue:{enableTracing:!1}}];function Xp(){return new Ms("Router",Up)}var tg=function(){var t=function(){function t(e,n){p(this,t)}return y(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Jp,ig(e),{provide:$p,useFactory:rg,deps:[[Up,new pr,new gr]]},{provide:Kp,useValue:n||{}},{provide:sl,useFactory:ng,deps:[Xs,[new vr(cl),new pr],Kp]},{provide:Yp,useFactory:eg,deps:[Up,oc,Kp]},{provide:Wp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Zp},{provide:Ms,multi:!0,useFactory:Xp},[og,{provide:Xu,multi:!0,useFactory:ag,deps:[og]},{provide:sg,useFactory:ug,deps:[og]},{provide:as,multi:!0,useExisting:sg}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[ig(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr($p,8),hr(Up,8))},t.\u0275mod=oe({type:t}),t.\u0275inj=xt({}),t}();function eg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Yp(t,e,n)}function ng(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new fl(t,e):new hl(t,e)}function rg(t){return"guarded"}function ig(t){return[{provide:$n,multi:!0,useValue:t},{provide:Tp,multi:!0,useValue:t}]}var og=function(){var t=function(){function t(e){p(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(el,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(Up),i=t.injector.get(Kp);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Uc(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Kp),n=this.injector.get(Qp),r=this.injector.get(Yp),i=this.injector.get(Up),o=this.injector.get(Fs);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(Co))},t.\u0275prov=St({token:t,factory:t.\u0275fac}),t}();function ag(t){return t.appInitializer.bind(t)}function ug(t){return t.bootstrapListener.bind(t)}var sg=new Kn("Router Initializer"),lg=function(){return{exact:!0}},cg=function(){var t=function(){function t(e){p(this,t),this.router=e,this.title="Blog",this.searchText=""}return y(t,[{key:"goSearchComponent",value:function(){this.router.navigate(["search/".concat(this.searchText)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-root"]],decls:44,vars:3,consts:[["routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink",""],["routerLinkActive","active"],["routerLink","theme/lifestyle"],["routerLink","theme/nature"],["routerLink","theme/scienceNTechnologies"],["routerLink","theme/sport"],["id","searchDiv"],["list","articleList","type","search","placeholder","Search for an article...",3,"ngModel","ngModelChange"],["type","button",3,"click"],["id","centerDiv"],["align","center"],["href","https://www.instagram.com/"],["src","../assets/instagram-icon.png"],["href","https://uk-ua.facebook.com/"],["src","../assets/facebook-icon.png"],["href","https://www.pinterest.com/"],["src","../assets/pinterest-icon.png"],["href","https://twitter.com/?lang=ru"],["src","../assets/twitter-icon.png"]],template:function(t,e){var n,r,i;1&t&&(Bo(0,"header"),Bo(1,"nav"),Bo(2,"ul"),Bo(3,"li",0),Bo(4,"a",1),aa(5,"HOME"),qo(),qo(),Bo(6,"li",2),Bo(7,"a",3),aa(8,"LIFE STYLE"),qo(),qo(),Bo(9,"li",2),Bo(10,"a",4),aa(11,"NATURE"),qo(),qo(),Bo(12,"li",2),Bo(13,"a",5),aa(14,"SCIENCE AND TECHNOLOGY"),qo(),qo(),Bo(15,"li",2),Bo(16,"a",6),aa(17,"SPORT"),qo(),qo(),qo(),qo(),Bo(18,"div",7),Bo(19,"input",8),Yo("ngModelChange",function(t){return e.searchText=t}),qo(),Bo(20,"button",9),Yo("click",function(){return e.goSearchComponent()}),qo(),qo(),qo(),Bo(21,"div",10),Bo(22,"h1",11),aa(23,"MY BLOG"),qo(),Bo(24,"p"),aa(25,"Here you will find a lot of interesting things"),qo(),qo(),Go(26,"router-outlet"),Bo(27,"footer"),Bo(28,"p"),aa(29," \xa9 2021 VVG "),qo(),Bo(30,"nav"),Bo(31,"ul"),Bo(32,"li"),Bo(33,"a",12),Go(34,"img",13),qo(),qo(),Bo(35,"li"),Bo(36,"a",14),Go(37,"img",15),qo(),qo(),Bo(38,"li"),Bo(39,"a",16),Go(40,"img",17),qo(),qo(),Bo(41,"li"),Bo(42,"a",18),Go(43,"img",19),qo(),qo(),qo(),qo(),qo()),2&t&&(di(3),Ho("routerLinkActiveOptions",(n=lg,r=Ye()+2,(i=Fe())[r]===fi?No(i,r,n()):function(t,e){return t[e]}(i,r))),di(16),Ho("ngModel",e.searchText))},directives:[Bp,Hp,Oh,Bh,hf,qp],styles:["header[_ngcontent-%COMP%]{background:#000;position:fixed;top:0;width:100%;display:flex;justify-content:space-between}#searchDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-min-content;height:-moz-min-content;height:min-content;margin:auto 1%}#searchDiv[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:20px;margin-right:5px}#searchDiv[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:18px;height:18px;background-image:url(loupe.63e36a417121627c983b.png);background-repeat:no-repeat;cursor:pointer;border:none;background-color:transparent;margin:auto 0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding-left:0;display:flex;justify-content:flex-start}a[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff;white-space:nowrap}li[_ngcontent-%COMP%]{padding:2%}li[_ngcontent-%COMP%]:hover{cursor:pointer}.active[_ngcontent-%COMP%], li[_ngcontent-%COMP%]:hover{background:#535353}#centerDiv[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:5% auto auto}#centerDiv[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:0}#centerDiv[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:.5%;margin-bottom:7%;font-family:SEGOE PRINT}footer[_ngcontent-%COMP%]{background:#000;position:sticky;width:100%;color:#fff;display:flex;justify-content:space-between}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:10px}footer[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px;height:25px}footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;font-family:sans-serif;font-weight:300;font-size:x-small;margin:auto 1%}"]}),t}(),hg=function(){var t=function(){function t(e){p(this,t),this.http=e,this.BASE_URI="https://api-for-angular-blog.onrender.com/api/blog"}return y(t,[{key:"getAllArticles",value:function(){return this.http.get(this.BASE_URI)}},{key:"getArticlesByName",value:function(t){return this.http.get(this.BASE_URI+"articles/".concat(t))}},{key:"getArticlesByTheme",value:function(t){return this.http.get(this.BASE_URI+"theme/".concat(t))}},{key:"getArticlesByTag",value:function(t){return this.http.get(this.BASE_URI+"tag/".concat(t))}},{key:"getArticleById",value:function(t){return this.http.get(this.BASE_URI+t)}},{key:"postCreateArticle",value:function(t){return this.http.post(this.BASE_URI,t)}},{key:"deleteArticle",value:function(t){return this.http.delete(this.BASE_URI+t)}},{key:"updateArticle",value:function(t,e){return this.http.put(this.BASE_URI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(hr(sh))},t.\u0275prov=St({token:t,factory:t.\u0275fac,providedIn:"root"}),t}();function fg(t,e){if(1&t){var n=Wo();Bo(0,"li",9),Yo("click",function(){var t=ze(n).$implicit;return Jo(2).goToSearch(t.name)}),aa(1),Ou(2,"uppercase"),qo()}if(2&t){var r=e.$implicit;di(1),sa(" #",Tu(2,1,r.name)," ")}}function dg(t,e){if(1&t){var n=Wo();Bo(0,"div",1),Bo(1,"ul",2),Uo(2,fg,3,3,"li",3),qo(),Bo(3,"h3",4),aa(4),qo(),Bo(5,"ul",5),Bo(6,"li"),aa(7),Ou(8,"date"),qo(),Bo(9,"li"),aa(10),qo(),qo(),Go(11,"img",6),Bo(12,"p",7),aa(13),Ou(14,"slice"),qo(),Bo(15,"button",8),Yo("click",function(){var t=ze(n).$implicit;return Jo().goToArtile(t.id)}),aa(16,"Continue Reading\u2192"),qo(),qo()}if(2&t){var r=e.$implicit;di(2),Ho("ngForOf",r.tags),di(2),ua(r.name),di(3),ua(Pu(8,6,r.date,"mediumDate")),di(3),ua(null==r.author?null:r.author.nickName),di(1),Ho("src",r.imgUrl,wr),di(2),sa("",(i=r.text,o=Fe(),a=Ie(o,34),Ru(o,Iu(o,34)?function(t,e,n,r,i,o,a,u){var s=e+9;return function(t,e,n,r,i){var o=jo(t,e,n,0);return Vo(t,e+2,350)||o}(t,s,i)?No(t,s+3,u?r.call(u,i,0,350):r(i,0,350)):Au(t,s+3)}(o,Ye(),0,a.transform,i,0,0,a):a.transform(i,0,350))),"...")}var i,o,a}var vg=function(){var t=function(){function t(e){p(this,t),this.router=e,this.articleList=[]}return y(t,[{key:"ngOnInit",value:function(){}},{key:"goToArtile",value:function(t){this.router.navigate(["article/".concat(t)])}},{key:"goToSearch",value:function(t){this.router.navigate(["search/tag/".concat(t)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-articleList"]],inputs:{articleList:"articleList"},decls:1,vars:1,consts:[["class","articleDiv",4,"ngFor","ngForOf"],[1,"articleDiv"],["id","tags"],["class","orange",3,"click",4,"ngFor","ngForOf"],[1,"name"],[1,"info"],[1,"img",3,"src"],[1,"text"],["type","button","id","btn",1,"orange",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&Uo(0,dg,17,13,"div",0),2&t&&Ho("ngForOf",e.articleList)},directives:[Jl],pipes:[nc,rc,ec],styles:[".articleDiv[_ngcontent-%COMP%]{width:62vw;height:auto;margin:1.5% auto;box-shadow:0 0 5px 2px #d3d3d3;padding:15px;display:grid;grid-template-columns:30vw 30vw;grid-column-gap:15px;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}.articleDiv[_ngcontent-%COMP%]:hover{width:63vw;transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}img[_ngcontent-%COMP%]{width:30vw;height:auto;grid-column:1;grid-row:1/5}#tags[_ngcontent-%COMP%]{grid-row:1}#tags[_ngcontent-%COMP%], .name[_ngcontent-%COMP%]{grid-column:2;margin:0}.name[_ngcontent-%COMP%]{font-size:x-large;color:#000;grid-row:2}ul[_ngcontent-%COMP%]{color:gray;font-size:small;font-family:Calibri;list-style:none;display:flex;grid-column:2;grid-row:3;padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:15px}.text[_ngcontent-%COMP%]{grid-row:4}#btn[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{grid-column:2}#btn[_ngcontent-%COMP%]{grid-row:5;padding:0}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}p[_ngcontent-%COMP%]{white-space:pre-wrap;margin:0}"]}),t}(),pg=function(){var t=function(){function t(e,n){p(this,t),this.articleService=e,this.router=n,this.articles=[]}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getAllArticles().subscribe(function(e){t.articles=e})}},{key:"goToCreate",value:function(){this.router.navigate(["create"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-home"]],features:[Sa([hg])],decls:3,vars:1,consts:[[3,"articleList"],["type","button","id","btn",3,"click"]],template:function(t,e){1&t&&(Go(0,"app-articleList",0),Bo(1,"button",1),Yo("click",function(){return e.goToCreate()}),aa(2,"+"),qo()),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:["#btn[_ngcontent-%COMP%]{width:70px;height:70px;font-size:xx-large;border:none;border-radius:50%;background:#fff;box-shadow:0 0 5px 2px #d3d3d3;color:grey;position:fixed;right:5%;top:50%;font-size:7vh}#btn[_ngcontent-%COMP%]:hover{transition:1.2s;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer;font-size:9vh}"]}),t}(),gg=function(){var t=function(){function t(e,n){p(this,t),this.articleService=e,this.activateRoute=n,this.articleName="",this.tagName="",this.articles=[],this.articleName=this.activateRoute.snapshot.params.articleName,this.tagName=this.activateRoute.snapshot.params.tagName}return y(t,[{key:"ngOnInit",value:function(){var t=this;null!=this.articleName?this.articleService.getArticlesByName(this.articleName).subscribe(function(e){return t.articles=e}):this.articleService.getArticlesByTag(this.tagName).subscribe(function(e){return t.articles=e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv))},t.\u0275cmp=ee({type:t,selectors:[["app-search"]],features:[Sa([hg])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Go(0,"app-articleList",0),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:[""]}),t}(),yg=function(){var t=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.themeName="",this.articles=[],this.themeName=this.activateRoute.snapshot.params.themeName}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticlesByTheme(this.themeName).subscribe(function(e){0==e.length?(t.router.navigate(["not-found"]),console.log(e)):(t.articles=e,console.log(e))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-theme"]],features:[Sa([hg])],decls:1,vars:1,consts:[[3,"articleList"]],template:function(t,e){1&t&&Go(0,"app-articleList",0),2&t&&Ho("articleList",e.articles)},directives:[vg],styles:[""]}),t}();function mg(t,e){if(1&t){var n=Wo();Bo(0,"li",9),Yo("click",function(){var t=ze(n).$implicit;return Jo().goToSearch(t.name)}),aa(1),Ou(2,"uppercase"),qo()}if(2&t){var r=e.$implicit;di(1),sa(" #",Tu(2,1,null==r?null:r.name)," ")}}var _g=function(){var t=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.id=this.activateRoute.snapshot.params.id}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticleById(this.id).subscribe(function(e){t.article=e,console.log(t.article)})}},{key:"goToSearch",value:function(t){this.router.navigate(["search/tag/".concat(t)])}},{key:"deleteArticle",value:function(t){this.articleService.deleteArticle(t).subscribe(function(t){return console.warn(t)}),this.router.navigate([""])}},{key:"updateArticle",value:function(t){this.router.navigate(["update/".concat(t)])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg),Fo(mv),Fo(Up))},t.\u0275cmp=ee({type:t,selectors:[["app-article"]],features:[Sa([hg])],decls:20,vars:9,consts:[["id","articleDiv"],[1,"img",3,"src"],["align","center"],[1,"name"],["id","text"],["class","orange",3,"click",4,"ngFor","ngForOf"],["id","btns"],["type","button","id","deleteBtn",3,"click"],["type","button","id","updateBtn",3,"click"],[1,"orange",3,"click"]],template:function(t,e){1&t&&(Bo(0,"div",0),Bo(1,"div"),Go(2,"img",1),Bo(3,"div",2),Bo(4,"p"),aa(5),Ou(6,"date"),qo(),Bo(7,"h2",3),aa(8),qo(),Bo(9,"p"),aa(10),qo(),qo(),Bo(11,"p",4),aa(12),qo(),Bo(13,"ul"),Uo(14,mg,3,3,"li",5),qo(),qo(),qo(),Bo(15,"div",6),Bo(16,"button",7),Yo("click",function(){return e.deleteArticle(null==e.article?null:e.article.id)}),aa(17,"Delete"),qo(),Bo(18,"button",8),Yo("click",function(){return e.updateArticle(null==e.article?null:e.article.id)}),aa(19,"Update"),qo(),qo()),2&t&&(di(2),Ho("src",null==e.article?null:e.article.imgUrl,wr),di(3),ua(Pu(6,6,null==e.article?null:e.article.date,"mediumDate")),di(3),ua(null==e.article?null:e.article.name),di(2),ua(null==e.article||null==e.article.author?null:e.article.author.nickName),di(2),ua(null==e.article?null:e.article.text),di(2),Ho("ngForOf",null==e.article?null:e.article.tags))},directives:[Jl],pipes:[nc,ec],styles:["img[_ngcontent-%COMP%]{width:100%;height:auto;margin:0 1%;border-radius:0}#articleDiv[_ngcontent-%COMP%]{width:60%;height:auto;margin:0 auto}#btns[_ngcontent-%COMP%]{height:auto;display:flex;flex-direction:column;position:fixed;top:50%;right:5%}#btns[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content}h2[_ngcontent-%COMP%]{margin:0 auto;color:#f3bc56}ul[_ngcontent-%COMP%]{list-style:none;display:flex;margin:0;padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:5%}.text[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1%}.orange[_ngcontent-%COMP%]{color:#f3bc56;font-size:medium;background:none;border:none;font-family:Times New Roman;width:-webkit-max-content;width:-moz-max-content;width:max-content}.orange[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}#text[_ngcontent-%COMP%]{margin-bottom:0;white-space:pre-wrap}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:xx-large;background:none;border:none;font-family:Times New Roman;box-shadow:0 0 5px 2px #d3d3d3;cursor:pointer;margin:5%;width:110px;height:60px}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;box-shadow:0 0 6px 4px #d3d3d3;cursor:pointer}"]}),t}(),kg=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"ngOnInit",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-not-found"]],decls:1,vars:0,consts:[["src","assets/404_Error.jpg"]],template:function(t,e){1&t&&Go(0,"img",0)},styles:["img[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;margin:0 auto}"]}),t}(),bg=["name"],wg=["nickName"],Cg=["theme"],Sg=["imgUrl"],xg=["tags"],Eg=["text"],Ag=function(){var t=function(){function t(e){p(this,t),this.service=e}return y(t,[{key:"ngOnInit",value:function(){}},{key:"onSubmit",value:function(){var t,e,n,r,i,o,a=new FormData;a.append("name",null===(t=this.name)||void 0===t?void 0:t.nativeElement.value),a.append("nickName",null===(e=this.nickName)||void 0===e?void 0:e.nativeElement.value),a.append("theme",null===(n=this.theme)||void 0===n?void 0:n.nativeElement.value),a.append("imgUrl",null===(r=this.imgUrl)||void 0===r?void 0:r.nativeElement.value),a.append("tags",null===(i=this.tags)||void 0===i?void 0:i.nativeElement.value),a.append("text",null===(o=this.text)||void 0===o?void 0:o.nativeElement.value),this.service.postCreateArticle(a).subscribe(function(t){return console.warn(t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fo(hg))},t.\u0275cmp=ee({type:t,selectors:[["app-create"]],viewQuery:function(t,e){var n;(1&t&&(Zu(bg,5),Zu(wg,5),Zu(Cg,5),Zu(Sg,5),Zu(xg,5),Zu(Eg,5)),2&t)&&(Wu(n=Yu())&&(e.name=n.first),Wu(n=Yu())&&(e.nickName=n.first),Wu(n=Yu())&&(e.theme=n.first),Wu(n=Yu())&&(e.imgUrl=n.first),Wu(n=Yu())&&(e.tags=n.first),Wu(n=Yu())&&(e.text=n.first))},features:[Sa([hg])],decls:31,vars:0,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","placeholder","Name","required",""],["name",""],["type","text","name","author","placeholder","Nickname","required",""],["nickName",""],["name","theme","required","","aria-placeholder","Select a theme"],["theme",""],["type","text","name","imgUrl","placeholder","Image url"],["imgUrl",""],["type","text","name","tags","placeholder","Tags"],["tags",""],["name","text","required","","placeholder","Text"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Bo(0,"form",0),Yo("ngSubmit",function(){return e.onSubmit()}),Bo(1,"h1",1),aa(2,"Create an article"),qo(),Go(3,"input",2,3),Go(5,"br"),Go(6,"input",4,5),Go(8,"br"),Bo(9,"select",6,7),Bo(11,"option"),aa(12,"lifestyle"),qo(),Bo(13,"option"),aa(14,"nature"),qo(),Bo(15,"option"),aa(16,"scienceNTechnologies"),qo(),Bo(17,"option"),aa(18,"sport"),qo(),qo(),Go(19,"br"),Go(20,"input",8,9),Go(22,"br"),Go(23,"input",10,11),Go(25,"br"),Go(26,"textarea",12,13),Go(28,"br"),Bo(29,"button",14),aa(30,"Create"),qo(),qo())},directives:[ff,qh,sf,yf,bf],styles:["form[_ngcontent-%COMP%]{width:-webkit-max-content;width:-moz-max-content;width:max-content;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),t}(),Og=function t(){p(this,t)},Tg=["name"],Pg=["imgUrl"],Ig=["text"];function Rg(t,e){if(1&t&&(Bo(0,"option"),aa(1),qo()),2&t){var n=e.$implicit;di(1),ua(null==n?null:n.name)}}var Dg,Mg=[{path:"",component:pg},{path:"search/:articleName",component:gg},{path:"search/tag/:tagName",component:gg},{path:"theme/:themeName",component:yg},{path:"article/:id",component:_g},{path:"not-found",component:kg},{path:"create",component:Ag},{path:"update/:id",component:(Dg=function(){function t(e,n,r){p(this,t),this.articleService=e,this.activateRoute=n,this.router=r,this.id=this.activateRoute.snapshot.params.id}return y(t,[{key:"ngOnInit",value:function(){var t=this;this.articleService.getArticleById(this.id).subscribe(function(e){return t.article=e})}},{key:"onSubmit",value:function(){var t,e,n,r,i,o,a,u,s,l,c=new Og;c.id=null===(t=this.article)||void 0===t?void 0:t.id,c.name=null===(e=this.name)||void 0===e?void 0:e.nativeElement.value,c.date=null===(n=this.article)||void 0===n?void 0:n.date,c.authorFK=null===(r=this.article)||void 0===r?void 0:r.authorFK,c.author=null===(i=this.article)||void 0===i?void 0:i.author,c.themeFK=null===(o=this.article)||void 0===o?void 0:o.themeFK,c.theme=null===(a=this.article)||void 0===a?void 0:a.theme,c.tags=null===(u=this.article)||void 0===u?void 0:u.tags,c.imgUrl=null===(s=this.imgUrl)||void 0===s?void 0:s.nativeElement.value,c.text=null===(l=this.text)||void 0===l?void 0:l.nativeElement.value,this.articleService.updateArticle(this.id,c).subscribe(function(t){return console.warn(t)})}}]),t}(),Dg.\u0275fac=function(t){return new(t||Dg)(Fo(hg),Fo(mv),Fo(Up))},Dg.\u0275cmp=ee({type:Dg,selectors:[["app-update"]],viewQuery:function(t,e){var n;1&t&&(Zu(Tg,5),Zu(Pg,5),Zu(Ig,5)),2&t&&(Wu(n=Yu())&&(e.name=n.first),Wu(n=Yu())&&(e.imgUrl=n.first),Wu(n=Yu())&&(e.text=n.first))},decls:29,vars:4,consts:[["novalidate","",3,"ngSubmit"],["align","center"],["type","text","name","name","required","",3,"value"],["name",""],["name","theme","required",""],["theme",""],["type","text","name","imgUrl",3,"value"],["imgUrl",""],[4,"ngFor","ngForOf"],["name","text","required","",3,"value"],["text",""],["type","submit"]],template:function(t,e){1&t&&(Bo(0,"form",0),Yo("ngSubmit",function(){return e.onSubmit()}),Bo(1,"h1",1),aa(2,"Update an article"),qo(),Go(3,"input",2,3),Go(5,"br"),Bo(6,"select",4,5),Bo(8,"option"),aa(9,"lifestyle"),qo(),Bo(10,"option"),aa(11,"nature"),qo(),Bo(12,"option"),aa(13,"scienceNTechnologies"),qo(),Bo(14,"option"),aa(15,"sport"),qo(),qo(),Go(16,"br"),Go(17,"input",6,7),Bo(19,"p"),aa(20,"Tags:"),qo(),Bo(21,"select"),Uo(22,Rg,2,1,"option",8),qo(),Go(23,"br"),Go(24,"textarea",9,10),Go(26,"br"),Bo(27,"button",11),aa(28,"Update"),qo(),qo()),2&t&&(di(3),Ho("value",null==e.article?null:e.article.name),di(14),Ho("value",null==e.article?null:e.article.imgUrl),di(5),Ho("ngForOf",null==e.article?null:e.article.tags),di(2),Ho("value",null==e.article?null:e.article.text))},directives:[ff,qh,sf,yf,bf,Jl],styles:["form[_ngcontent-%COMP%]{width:60%;height:auto;margin:5% auto;display:flex;flex-direction:column;box-shadow:0 0 5px 2px #d3d3d3;padding:2% 5%}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none!important;border:3px solid #f3bc56}button[_ngcontent-%COMP%]{color:#f3bc56;font-size:larger;background:none;border:none;font-family:Times New Roman}button[_ngcontent-%COMP%]:hover{color:#d6a64d;font-weight:bolder;cursor:pointer}h1[_ngcontent-%COMP%]{color:#f3bc56}"]}),Dg)}],Ng=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=oe({type:t,bootstrap:[cg]}),t.\u0275inj=xt({providers:[],imports:[[Lc,bh,Cf,tg.forRoot(Mg,{onSameUrlNavigation:"reload"})]]}),t}();(function(){if(Rs)throw new Error("Cannot enable prod mode after platform setup.");Is=!1})(),Vc().bootstrapModule(Ng).catch(function(t){return console.error(t)})}},function(t){"use strict";t(t.s=9542)}])}(); \ No newline at end of file