(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);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 u(t){return null!==t&&"object"==typeof t}const c=(()=>{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 c?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 _=(()=>{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=v(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=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b 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 _{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 w;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 T(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 k(t,e))}}class k{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 A=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 N=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return A(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),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=u(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,r};function V(t,e){return new _(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 j(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 _(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 _(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(P(t))return V(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 _(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 _?t:new _(N(t))}class M 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 U extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function L(t,e){if(!e.closed)return t instanceof _?t.subscribe(e):N(t)(e)}function F(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(F((n,r)=>j(t(n,r)).pipe(T((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 U{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 q(t=Number.POSITIVE_INFINITY){return F(y,t)}function z(t,e){return e?V(t,e):new _(A(t))}function B(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new G(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class G 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 _{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 K(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return B()(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 K 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 J(){return new S}function Y(t){return{toString:t}.toString()}const X="__parameters__";function tt(t,e,n){return Y(()=>{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(X)?t[X]:Object.defineProperty(t,X,{value:[]})[X];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})}const et=tt("Inject",t=>({token:t})),nt=tt("Optional"),rt=tt("Self"),st=tt("SkipSelf");var it=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 ot(t){for(let e in t)if(t[e]===ot)return e;throw Error("Could not find renamed property on target object.")}function at(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ct(t){return ht(t,pt)||ht(t,gt)}function ht(t,e){return t.hasOwnProperty(e)?t[e]:null}function dt(t){return t&&(t.hasOwnProperty(ft)||t.hasOwnProperty(mt))?t[ft]:null}const pt=ot({"\u0275prov":ot}),ft=ot({"\u0275inj":ot}),gt=ot({ngInjectableDef:ot}),mt=ot({ngInjectorDef:ot});function yt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yt).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 _t(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const vt=ot({__forward_ref__:ot});function wt(t){return t.__forward_ref__=wt,t.toString=function(){return yt(this())},t}function bt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(vt)&&t.__forward_ref__===wt}const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,kt=St||Tt||xt||Et,Ot=ot({"\u0275cmp":ot}),At=ot({"\u0275dir":ot}),Rt=ot({"\u0275pipe":ot}),It=ot({"\u0275mod":ot}),Pt=ot({"\u0275loc":ot}),Dt=ot({"\u0275fac":ot}),Nt=ot({__NG_ELEMENT_ID__:ot});class Vt{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=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const jt=new Vt("INJECTOR",-1),Mt={},Ut=/\n/gm,Lt="__source",Ft=ot({provide:String,useValue:ot});let Ht,$t=void 0;function qt(t){const e=$t;return $t=t,e}function zt(t){const e=Ht;return Ht=t,e}function Bt(t,e=it.Default){if(void 0===$t)throw new Error("inject() must be called from an injection context");return null===$t?Gt(t,void 0,e):$t.get(t,e&it.Optional?null:void 0,e)}function Wt(t,e=it.Default){return(Ht||Bt)(bt(t),e)}function Gt(t,e,n){const r=ct(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&it.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${yt(t)}]`)}function Zt(t){const e=[];for(let n=0;nArray.isArray(t)?Yt(t,e):e(t))}function Xt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function te(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ee(t,e,n){let r=re(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 ne(t,e){const n=re(t,e);if(n>=0)return t[1|n]}function re(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)}var se=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ie=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const oe={},ae=[];let le=0;function ue(t){return Y(()=>{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===se.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ae,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ie.Emulated,id:"c",styles:t.styles||ae,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=le++,n.inputs=fe(t.inputs,e),n.outputs=fe(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ce):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(he):null,n})}function ce(t){return me(t)||function(t){return t[At]||null}(t)}function he(t){return function(t){return t[Rt]||null}(t)}const de={};function pe(t){const e={type:t.type,bootstrap:t.bootstrap||ae,declarations:t.declarations||ae,imports:t.imports||ae,exports:t.exports||ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Y(()=>{de[t.id]=t.type}),e}function fe(t,e){if(null==t)return oe;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 ge=ue;function me(t){return t[Ot]||null}function ye(t,e){return t.hasOwnProperty(Dt)?t[Dt]:null}function _e(t,e){const n=t[It]||null;if(!n&&!0===e)throw new Error(`Type ${yt(t)} does not have '\u0275mod' property.`);return n}const ve=20,we=10;function be(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ce(t){return Array.isArray(t)&&!0===t[1]}function Se(t){return 0!=(8&t.flags)}function xe(t){return 2==(2&t.flags)}function Ee(t){return 1==(1&t.flags)}function Te(t){return null!==t.template}function ke(t){return 0!=(512&t[2])}class Oe extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function Ae(t){return"string"==typeof t?t:null==t?"":""+t}function Re(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ae(t)}const Ie=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(kt))();function Pe(t){return t instanceof Function?t():t}function De(t,e){const n=e?" in "+e:"";throw new Oe("201",`No provider for ${Re(t)} found${n}`)}class Ne{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ve(){return je}function je(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ue),Me}function Me(){const t=Le(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===oe)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ue(t,e,n,r){const s=Le(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:oe,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Ne(l&&l.currentValue,e,o===oe),t[r]=e}function Le(t){return t.__ngSimpleChanges__||null}Ve.ngInherit=!0;let Fe=void 0;function He(t){return!!t.listen}const $e={createRenderer:(t,e)=>void 0!==Fe?Fe:"undefined"!=typeof document?document:void 0};function qe(t){for(;Array.isArray(t);)t=t[0];return t}function ze(t,e){return qe(e[t])}function Be(t,e){return qe(e[t.index])}function We(t,e){return t.data[e]}function Ge(t,e){const n=e[t];return be(n)?n:n[0]}function Ze(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Qe(t){return 128==(128&t[2])}function Ke(t,e){return null==e?null:t[e]}function Je(t){t[18]=0}function Ye(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:vn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function tn(){return Xe.bindingsEnabled}function en(){return Xe.lFrame.lView}function nn(){return Xe.lFrame.tView}function rn(t){Xe.lFrame.contextLView=t}function sn(){let t=on();for(;null!==t&&64===t.type;)t=t.parent;return t}function on(){return Xe.lFrame.currentTNode}function an(t,e){const n=Xe.lFrame;n.currentTNode=t,n.isParent=e}function ln(){return Xe.lFrame.isParent}function un(){return Xe.isInCheckNoChangesMode}function cn(t){Xe.isInCheckNoChangesMode=t}function hn(){return Xe.lFrame.bindingIndex++}function dn(t,e){const n=Xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,pn(e)}function pn(t){Xe.lFrame.currentDirectiveIndex=t}function fn(t){Xe.lFrame.currentQueryIndex=t}function gn(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function mn(t,e,n){if(n&it.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&it.Host||(r=gn(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=Xe.lFrame=_n();return r.currentTNode=e,r.lView=t,!0}function yn(t){const e=_n(),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 _n(){const t=Xe.lFrame,e=null===t?null:t.child;return null===e?vn(t):e}function vn(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 wn(){const t=Xe.lFrame;return Xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const bn=wn;function Cn(){const t=wn();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 Sn(){return Xe.lFrame.selectedIndex}function xn(t){Xe.lFrame.selectedIndex=t}function En(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[o]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}const In=-1;class Pn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Dn(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 Hn=!0;function $n(t){const e=Hn;return Hn=t,e}let qn=0;function zn(t,e){const n=Wn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Bn(r.data,t),Bn(e,null),Bn(r.blueprint,null));const s=Gn(t,e),i=t.injectorIndex;if(Un(s)){const t=Ln(s),n=Fn(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 Bn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Wn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Gn(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 In;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return In}function Zn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Nt)&&(r=n[Nt]),null==r&&(r=n[Nt]=qn++);const s=255&r,i=1<0?255&e:e}(n);if("function"==typeof i){if(!mn(e,t,r))return Kn(e,n,r,s);try{const t=i();if(null!=t||r&it.Optional)return t;De(n)}finally{bn()}}else if("number"==typeof i){if(-1===i){if(!mn(e,t,r))return r&it.Host?Qn(s,n,r):Kn(e,n,r,s);try{return new rr(sn(),en())}finally{bn()}}let o=null,a=Wn(t,e),l=In,u=r&it.Host?e[16][6]:null;for((-1===a||r&it.SkipSelf)&&(l=-1===a?Gn(t,e):e[a+8],l!==In&&nr(r,!1)?(o=e[1],a=Ln(l),e=Fn(l,e)):a=-1);-1!==a;){const t=e[1];if(er(i,a,t.data)){const t=Xn(a,e,n,o,r,u);if(t!==Yn)return t}l=e[a+8],l!==In&&nr(r,e[1].data[a+8]===u)&&er(i,a,e)?(o=t,a=Ln(l),e=Fn(l,e)):a=-1}}}return Kn(e,n,r,s)}const Yn={};function Xn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=function(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,u=i>>20,c=s?a+u:t.directiveEnd;for(let h=r?a:a+u;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Te(t)&&t.type===n)return l}return null}(a,o,n,null==r?xe(a)&&Hn:r!=o&&0!=(3&a.type),s&it.Host&&i===a);return null!==l?tr(e,o,l,a):Yn}function tr(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof Pn){const o=s;o.resolving&&function(t,e){throw new Oe("200","Circular dependency in DI detected for "+t)}(Re(i[n]));const a=$n(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?zt(o.injectImpl):null;mn(t,r,it.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=je(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&&zt(l),$n(a),o.resolving=!1,bn()}}return s}function er(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<{const t=sr(bt(e));return t?t():null};let n=ye(e);if(null===n){const t=dt(e);n=t&&t.factory}return n||null}function ir(t){return Y(()=>{const e=t.prototype.constructor,n=e[Dt]||sr(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Dt]||sr(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function or(t){return t.ngDebugContext}function ar(t){return t.ngOriginalError}function lr(t,...e){t.error(...e)}class ur{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||lr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?or(t)?or(t):this._findContext(ar(t)):null}_findOriginalError(t){let e=ar(t);for(;e&&ar(e);)e=ar(e);return e}}let cr;function hr(t){var e;return(null===(e=function(){if(void 0===cr&&(cr=null,kt.trustedTypes))try{cr=kt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return cr}())||void 0===e?void 0:e.createHTML(t))||t}class dr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class pr extends dr{getTypeName(){return"HTML"}}class fr extends dr{getTypeName(){return"Style"}}class gr extends dr{getTypeName(){return"Script"}}class mr extends dr{getTypeName(){return"URL"}}class yr extends dr{getTypeName(){return"ResourceURL"}}function _r(t){return t instanceof dr?t.changingThisBreaksApplicationSecurity:t}function vr(t,e){const n=wr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function wr(t){return t instanceof dr&&t.getTypeName()||null}let br=!0,Cr=!1;function Sr(){return Cr=!0,br}class xr{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(hr(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Er{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=hr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=hr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Or(t.trim())).join(", ")),this.buf.push(" ",e,'="',qr(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Vr.hasOwnProperty(e)&&!Ir.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(qr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$r=/([^\#-~ |!])/g;function qr(t){return t.replace(/&/g,"&").replace(Hr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace($r,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let zr;function Br(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Wr=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 Gr(t){const e=function(){const t=en();return t&&t[12]}();return e?e.sanitize(Wr.URL,t)||"":vr(t,"URL")?_r(t):Or(Ae(t))}function Zr(t,e){t.__ngContext__=e}function Qr(t,e){return(void 0)(t,e)}function Kr(t){const e=t[3];return Ce(e)?e[3]:e}function Jr(t){return Xr(t[13])}function Yr(t){return Xr(t[4])}function Xr(t){for(;null!==t&&!Ce(t);)t=t[4];return t}function ts(t,e,n,r,s){if(null!=r){let i,o=!1;Ce(r)?i=r:be(r)&&(o=!0,r=r[0]);const a=qe(r);0===t&&null!==n?null==s?as(e,n,a):os(e,n,a,s||null,!0):1===t&&null!==n?os(e,n,a,s||null,!0):2===t?function(t,e,n){const r=us(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!==qe(n)&&ts(e,t,r,i,s);for(let o=we;o0&&(t[n-1][4]=r[4]);const o=te(t,we+e);fs(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 ss(t,e){if(!(256&e[2])){const n=e[11];He(n)&&n.destroyNode&&fs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return is(t[1],t);for(;e;){let n=null;if(be(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)be(e)&&is(e[1],e),e=e[3];null===e&&(e=t),be(e)&&is(e[1],e),n=e&&e[4]}e=n}}(e)}}function is(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?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e),1===e[1].type&&He(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Ce(e[3])){n!==e[3]&&ns(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function os(t,e,n,r,s){He(t)?t.insertBefore(e,n,r,s):e.insertBefore(n,r,s)}function as(t,e,n){He(t)?t.appendChild(e,n):e.appendChild(n)}function ls(t,e,n,r,s){null!==r?os(t,e,n,r,s):as(t,e,n)}function us(t,e){return He(t)?t.parentNode(e):e.parentNode}function cs(t,e,n,r){const s=function(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n===ie.None||n===ie.Emulated)return null}return Be(r,n)}(t,e.parent,n)}(t,r,e),i=e[11],o=function(t,e,n){return function(t,e,n){return 40&t.type?Be(t,n):null}(t,0,n)}(r.parent||e[6],0,e);if(null!=s)if(Array.isArray(n))for(let a=0;ai?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==_s(e,u,0)||2&r&&u!==t){if(xs(r))return!1;o=!0}}}}else{if(!o&&!xs(r)&&!xs(l))return!1;if(o&&xs(l))continue;o=!1,r=l|1&r}}return xs(r)||o}function xs(t){return 0==(1&t)}function Es(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||xs(o)||(e+=ks(i,s),s=""),r=o,i=i||!xs(r);n++}return""!==s&&(e+=ks(i,s)),e}const As={};function Rs(t){Is(nn(),en(),Sn()+t,un())}function Is(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Tn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&kn(e,r,0,n)}xn(n)}function Ps(t,e){return t<<17|e<<2}function Ds(t){return t>>17&32767}function Ns(t){return 2|t}function Vs(t){return(131068&t)>>2}function js(t,e){return-131069&t|e<<2}function Ms(t){return 1|t}function Us(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rve&&Is(t,e,ve,un()),n(r,s)}finally{xn(i)}}function Ws(t,e,n){tn()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||zn(n,e),Zr(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 ti(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ei(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ni(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&ci(n)}}function ci(t){for(let n=Jr(t);null!==n;n=Yr(n))for(let t=we;t0&&ci(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ci(r)}}function hi(t,e){const n=Ge(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function _i(t){return t[7]||(t[7]=[])}function vi(t,e){const n=t[9],r=n?n.get(ur,null):null;r&&r.handleError(e)}function wi(t,e,n,r,s){for(let i=0;i-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}ss(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const s=_i(e);s.push(null),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,s.length-1)}(this._lView[1],this._lView,0,t)}markForCheck(){pi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){fi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){cn(!0);try{fi(t,e,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,fs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ci extends bi{constructor(t){super(t),this._view=t}detectChanges(){gi(this._view)}checkNoChanges(){!function(t){cn(!0);try{gi(t)}finally{cn(!1)}}(this._view)}get context(){return null}}function Si(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(qe(i)),Ce(i))for(let t=we;t{class t{}return t.__NG_ELEMENT_ID__=()=>Ai(),t})();const Ai=function(t=!1){return function(t,e,n){if(!n&&xe(t)){const n=Ge(t.index,e);return new bi(n,n)}return 47&t.type?new bi(e[16],e):null}(sn(),en(),t)},Ri=Function,Ii=new Vt("Set Injector scope."),Pi={},Di={},Ni=[];let Vi=void 0;function ji(){return void 0===Vi&&(Vi=new Qt),Vi}function Mi(t,e=null,n=null,r){return new Ui(t,n,e||ji(),r)}class Ui{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Yt(e,n=>this.processProvider(n,t,e)),Yt([t],t=>this.processInjectorType(t,[],s)),this.records.set(jt,Hi(void 0,this));const i=this.records.get(Ii);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:yt(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=Mt,n=it.Default){this.assertNotDestroyed();const r=qt(this);try{if(!(n&it.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Vt)&&ct(t);e=n&&this.injectableDefInScope(n)?Hi(Li(t),Pi):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&it.Self?ji():this.parent).get(t,e=n&it.Optional&&e===Mt?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(yt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Lt]&&s.unshift(e[Lt]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=yt(e);if(Array.isArray(e))s=e.map(yt).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):yt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Ut,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{qt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(yt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=bt(t)))return!1;let r=dt(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=dt(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{Yt(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||Ni))}}this.injectorDefTypes.add(i),this.records.set(i,Hi(r.factory,Pi));const a=r.providers;if(null!=a&&!o){const e=t;Yt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=qi(t=bt(t))?t:bt(t&&t.provide);const s=function(t,e,n){return $i(t)?Hi(void 0,t.useValue):Hi(Fi(t),Pi)}(t);if(qi(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Hi(void 0,Pi,!0),e.factory=()=>Zt(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===Pi&&(e.value=Di,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Li(t){const e=ct(t),n=null!==e?e.factory:ye(t);if(null!==n)return n;const r=dt(t);if(null!==r)return r.factory;if(t instanceof Vt)throw new Error(`Token ${yt(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 Fi(t,e,n){let r=void 0;if(qi(t)){const e=bt(t);return ye(e)||Li(e)}if($i(t))r=()=>bt(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Zt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Wt(bt(t.useExisting));else{const e=bt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ye(e)||Li(e);r=()=>new e(...Zt(t.deps))}var s;return r}function Hi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function $i(t){return null!==t&&"object"==typeof t&&Ft in t}function qi(t){return"function"==typeof t}const zi=function(t,e,n){return function(t,e=null,n=null,r){const s=Mi(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Bi=(()=>{class t{static create(t,e){return Array.isArray(t)?zi(t,e,""):zi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Mt,t.NULL=new Qt,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>Wt(jt)}),t.__NG_ELEMENT_ID__=-1,t})();const Wi=new Vt("AnalyzeForEntryComponents");function Gi(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(null!==e)for(let o=0;o=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=jn(s.hostAttrs,n=jn(n,s.hostAttrs))}}(r)}function Ki(t){return t===oe?{}:t===ae?[]:t}function Ji(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Yi(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Xi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let to=null;function eo(){if(!to){const t=kt.Symbol;if(t&&t.iterator)to=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(qe(t[r.index])).target: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=_o(r,e,i,!1);const t=n.listen(p.name||f,s,i);c.push(i,t),u&&u.push(s,m,g,g+1)}}else i=_o(r,e,i,!0),f.addEventListener(s,i,o),c.push(i),u&&u.push(s,m,g,o)}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)}const wo=[];function bo(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Ds(i):Vs(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Co(t[a],e)&&(l=!0,t[a+1]=r?Ms(n):Ns(n)),a=r?Ds(n):Vs(n)}l&&(t[n+1]=r?Ns(i):Ms(i))}function Co(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&re(t,e)>=0}function So(t,e){return function(t,e,n,r){const s=en(),i=nn(),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 i=s[Sn()],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(i)&&null===e&&!o&&(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=Eo(n=xo(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=xo(s,t,e,n,r),null===i){let n=function(t,e,n){const r=e.classBindings;if(0!==Vs(r))return t[Ds(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=xo(null,t,e,n[1],r),n=Eo(n,e.attrs,r),function(t,e,n,r){t[Ds(e.classBindings)]=r}(t,e,0,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(c=!0)}else u=n;if(s)if(0!==l){const e=Ds(t[a+1]);t[r+1]=Ps(e,a),0!==e&&(t[e+1]=js(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Ps(a,0),0!==a&&(t[a+1]=js(t[a+1],r)),a=r;else t[r+1]=Ps(l,0),0===a?a=r:t[l+1]=js(t[l+1],r),l=r;c&&(t[r+1]=Ns(t[r+1])),bo(t,u,r,!0),bo(t,u,r,!1),function(t,e,n,r,s){const i=t.residualClasses;null!=i&&"string"==typeof e&&re(i,e)>=0&&(n[r+1]=Ms(n[r+1]))}(e,u,t,r),o=Ps(a,l),e.classBindings=o}(s,i,e,n,o)}}(i,t,o,true),e!==As&&so(s,o,e)&&function(t,e,n,r,s,i,o,a){if(!(3&e.type))return;const l=t.data,u=l[a+1];ko(1==(1&u)?To(l,e,n,s,Vs(u),o):void 0)||(ko(i)||function(t){return 2==(2&t)}(u)&&(i=To(l,null,n,s,a,o)),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,ze(Sn(),n),s,i))}(i,i.data[Sn()],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=yt(_r(t))),t}(e),true,o)}(t,e),So}function xo(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,u=null===l;let c=n[s+1];c===As&&(c=u?wo:void 0);let h=u?ne(c,r):l===r?c:void 0;if(i&&!ko(h)&&(h=ne(e,r)),ko(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ds(d):Vs(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=ne(t,r))}return a}function ko(t){return void 0!==t}function Oo(t,e=""){const n=en(),r=nn(),s=t+ve,i=r.firstCreatePass?Fs(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);cs(r,n,o,i),an(i,!1)}function Ao(t){return Ro("",t,""),Ao}function Ro(t,e,n){const r=en(),s=function(t,e,n,r){return so(t,hn(),n)?e+Ae(n)+r:As}(r,t,e,n);return s!==As&&function(t,e,n){const r=ze(e,t);!function(t,e,n){He(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,Sn(),s),Ro}const Io=void 0;var Po=["en",[["a","p"],["AM","PM"],Io],[["AM","PM"],Io,Io],[["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"]],Io,[["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"]],Io,[["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}",Io,"{1} 'at' {0}",Io],[".",",",";","%","+","-","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 Do={};function No(t){return t in Do||(Do[t]=kt.ng&&kt.ng.common&&kt.ng.common.locales&&kt.ng.common.locales[t]),Do[t]}var Vo=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}({});const jo="en-US";let Mo=jo;function Uo(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&&(Mo=t.toLowerCase().replace(/_/g,"-"))}function Lo(t,e,n,r,s){if(t=bt(t),Array.isArray(t))for(let i=0;i>20;if(qi(t)||!t.multi){const r=new Pn(l,s,oo),p=$o(a,e,s?c:c+d,h);-1===p?(Zn(zn(u,o),i,a),Fo(i,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=$o(a,e,c+d,h),f=$o(a,e,c,c+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){Zn(zn(u,o),i,a);const c=function(t,e,n,r,s){const i=new Pn(t,n,oo);return i.multi=[],i.index=e,i.componentProviders=0,Ho(i,s,r&&!n),i}(s?zo:qo,n.length,s,r,l);!s&&m&&(n[f].providerFactory=c),Fo(i,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else Fo(i,t,p>-1?p:f,Ho(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function Fo(t,e,n,r){const s=qi(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 Ho(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function $o(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=nn();if(r.firstCreatePass){const s=Te(t);Lo(n,r.data,r.blueprint,s,!0),Lo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class Go{}class Zo{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${yt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Qo=(()=>{class t{}return t.NULL=new Zo,t})(),Ko=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Jo(t),t})();const Jo=function(t){return ki(t,sn(),en())};class Yo{}var Xo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ea(),t})();const ea=function(){const t=en(),e=Ge(sn().index,t);return function(t){const e=t[11];if(He(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(be(e)?e:t)};let na=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class ra{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sa=new ra("11.0.0");class ia{constructor(){}supports(t){return no(t)}create(t){return new aa(t)}}const oa=(t,e)=>e;class aa{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||oa}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._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):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)):t=this._addAfter(new la(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 ca),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 ca),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 la{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 ua{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 ca{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ua,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 ha(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 fa(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 fa{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}}let ga=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new nt]]}}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=lt({token:t,providedIn:"root",factory:()=>new t([new ia])}),t})(),ma=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new nt]]}}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=lt({token:t,providedIn:"root",factory:()=>new t([new da])}),t})();const ya=[new da],_a=new ga([new ia]),va=new ma(ya);let wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ba(t,Ko),t})();const ba=function(t,e){return function(t,e,n,r){return Ei||(Ei=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ls(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),$s(e,n,t),new bi(n)}}),4&n.type?new Ei(r,n,ki(e,n,r)):null}(t,e,sn(),en())};let Ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(t,Ko),t})();const Sa=function(t,e){return function(t,e,n,r){let s;Ti||(Ti=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return ki(e,this._hostTNode,this._hostView)}get injector(){return new rr(this._hostTNode,this._hostView)}get parentInjector(){const t=Gn(this._hostTNode,this._hostView);if(Un(t)){const e=Fn(t,this._hostView),n=Ln(t);return new rr(e[1].data[n+8],e)}return new rr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-we}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(Kt,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(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ce(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Ti(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=we+r,i=n.length;r>0&&(n[s-1][4]=e),rIe});class Oa extends Go{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Os).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ta(this.componentDef.inputs)}get outputs(){return Ta(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,xa,s);return i!==xa||r===xa?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(Yo,$e),o=s.get(na,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(He(t))return t.selectRootElement(e,n===ie.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):es(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)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:Ie,clean:yi,playerHandler:null,flags:0},d=Qs(0,null,null,1,0,null,null,null,null,null),p=Ls(null,d,h,c,null,null,i,a,o,s);let f,g;yn(p);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=Fs(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Gi(a,l,!0),null!==t&&(Dn(s,t,l),null!==a.classes&&ys(s,t,a.classes),null!==a.styles&&ms(s,t,a.styles)));const u=r.createRenderer(t,e),c=Ls(n,Zs(e),null,e.onPush?64:16,n[20],a,r,u,null,null);return o.firstCreatePass&&(Zn(zn(a,n),o,e.type),ei(o,a),ri(a,n.length,1)),di(n,c),n[20]=c}(u,this.componentDef,p,i,a);if(u)if(n)Dn(a,u,["ng-version",sa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&ys(a,u,e.join(" "))}if(g=We(d,ve),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=sn();e.contentQueries(1,o,t.directiveStart)}const a=sn();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(xn(a.index),Xs(n[1],a,0,a.directiveStart,a.directiveEnd,e),ti(e,o)),o}(t,this.componentDef,p,h,[Zi]),$s(d,p,null)}finally{Cn()}return new Aa(this.componentType,f,ki(Ko,g,p),p,g)}}class Aa extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Ci(r),this.componentType=t}get injector(){return new rr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ra=new Map;class Ia extends Kt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ea(this);const n=_e(t),r=t[Pt]||null;r&&Uo(r),this._bootstrapComponents=Pe(n.bootstrap),this._r3Injector=Mi(t,e,[{provide:Kt,useValue:this},{provide:Qo,useValue:this.componentFactoryResolver}],yt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Bi.THROW_IF_NOT_FOUND,n=it.Default){return t===Bi||t===Kt||t===jt?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 Pa extends Jt{constructor(t){super(),this.moduleType=t,null!==_e(t)&&function(t){const e=new Set;!function t(n){const r=_e(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${yt(e)} vs ${yt(e.name)}`)}(s,Ra.get(s),n),Ra.set(s,n));const i=Pe(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Ia(this.moduleType,t)}}const Da=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,i=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return t instanceof h&&t.add(o),o}},Na=new Vt("Application Initializer");let Va=(()=>{class t{constructor(t){this.appInits=t,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()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Wt(Na,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const ja=new Vt("AppId"),Ma={provide:ja,useFactory:function(){return`${Ua()}${Ua()}${Ua()}`},deps:[]};function Ua(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const La=new Vt("Platform Initializer"),Fa=new Vt("Platform ID"),Ha=new Vt("appBootstrapListener");let $a=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const qa=new Vt("LocaleId"),za=new Vt("DefaultCurrencyCode");class Ba{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wa=function(t){return new Pa(t)},Ga=Wa,Za=function(t){return Promise.resolve(Wa(t))},Qa=function(t){const e=Wa(t),n=Pe(_e(t).declarations).reduce((t,e)=>{const n=me(e);return n&&t.push(new Oa(n)),t},[]);return new Ba(e,n)},Ka=Qa,Ja=function(t){return Promise.resolve(Qa(t))};let Ya=(()=>{class t{constructor(){this.compileModuleSync=Ga,this.compileModuleAsync=Za,this.compileModuleAndAllComponentsSync=Ka,this.compileModuleAndAllComponentsAsync=Ja}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Xa=(()=>Promise.resolve(0))();function tl(t){"undefined"==typeof Zone?Xa.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class el{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Da(!1),this.onMicrotaskEmpty=new Da(!1),this.onStable=new Da(!1),this.onError=new Da(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=kt.requestAnimationFrame,e=kt.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=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(kt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,il(t),sl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),il(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return ol(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),al(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return ol(t),e.invoke(r,s,i,o,a)}finally{al(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,il(t),sl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!el.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(el.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,rl,nl,nl);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)}}function nl(){}const rl={};function sl(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 il(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ol(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function al(t){t._nesting--,sl(t)}class ll{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Da,this.onMicrotaskEmpty=new Da,this.onStable=new Da,this.onError=new Da}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 ul=(()=>{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:()=>{el.assertNotInAngularZone(),tl(()=>{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())tl(()=>{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/dist/task-tracking.js" 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)(Wt(el))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),cl=(()=>{class t{constructor(){this._applications=new Map,pl.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 pl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class hl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let dl,pl=new hl;const fl=new Vt("AllowMultipleToken");class gl{constructor(t,e){this.name=t,this.token=e}}function ml(t,e,n=[]){const r="Platform: "+e,s=new Vt(r);return(e=[])=>{let i=yl();if(!i||i.injector.get(fl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ii,useValue:"platform"});!function(t){if(dl&&!dl.destroyed&&!dl.injector.get(fl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");dl=t.get(_l);const e=t.get(La,null);e&&e.forEach(t=>t())}(Bi.create({providers:t,name:r}))}return function(t){const e=yl();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 yl(){return dl&&!dl.destroyed?dl:null}let _l=(()=>{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 ll:("zone.js"===t?void 0:t)||new el({enableLongStackTrace:Sr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:el,useValue:n}];return n.run(()=>{const e=Bi.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(ur,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>bl(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return fo(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(Va);return t.runInitializers(),t.donePromise.then(()=>(Uo(s.injector.get(qa,jo)||jo),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=vl({},e);return function(t,e,n){const r=new Pa(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(wl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${yt(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)(Wt(Bi))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function vl(t,e){return Array.isArray(e)?e.reduce(vl,t):Object.assign(Object.assign({},t),e)}let wl=(()=>{class t{constructor(t,e,n,r,s,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Sr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{el.assertNotInAngularZone(),tl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{el.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 _?t[0]:q(e)(z(t,n))}(o,a.pipe(t=>{return B()((e=J,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 Go?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Kt),s=n.create(Bi.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(ul,null);return i&&s.injector.get(cl).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Sr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),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();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;bl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ha,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),bl(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Wt(el),Wt($a),Wt(Bi),Wt(ur),Wt(Qo),Wt(Va))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function bl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Cl{}class Sl{}const xl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let El=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||xl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Tl(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("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Tl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ya),Wt(Sl,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Tl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const kl=ml(null,"core",[{provide:Fa,useValue:"unknown"},{provide:_l,deps:[Bi]},{provide:cl,deps:[]},{provide:$a,deps:[]}]),Ol=[{provide:wl,useClass:wl,deps:[el,$a,Bi,ur,Qo,Va]},{provide:ka,deps:[el],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Va,useClass:Va,deps:[[new nt,Na]]},{provide:Ya,useClass:Ya,deps:[]},Ma,{provide:ga,useFactory:function(){return _a},deps:[]},{provide:ma,useFactory:function(){return va},deps:[]},{provide:qa,useFactory:function(t){return Uo(t=t||"undefined"!=typeof $localize&&$localize.locale||jo),t},deps:[[new et(qa),new nt,new st]]},{provide:za,useValue:"USD"}];let Al=(()=>{class t{constructor(t){}}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt(wl))},providers:Ol}),t})(),Rl=null;function Il(){return Rl}const Pl=new Vt("DocumentToken");let Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Nl,token:t,providedIn:"platform"}),t})();function Nl(){return Wt(jl)}const Vl=new Vt("Location Initialized");let jl=(()=>{class t extends Dl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Il().getLocation(),this._history=Il().getHistory()}getBaseHrefFromDOM(){return Il().getBaseHref(this._doc)}onPopState(t){Il().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Il().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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){Ml()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Ml()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Wt(Pl))},t.\u0275prov=lt({factory:Ul,token:t,providedIn:"platform"}),t})();function Ml(){return!!window.history.pushState}function Ul(){return new jl(Wt(Pl))}function Ll(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 Fl(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 Hl(t){return t&&"?"!==t[0]?"?"+t:t}let $l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:ql,token:t,providedIn:"root"}),t})();function ql(t){const e=Wt(Pl).location;return new Bl(Wt(Dl),e&&e.origin||"")}const zl=new Vt("appBaseHref");let Bl=(()=>{class t extends $l{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ll(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Hl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+Hl(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+Hl(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Wt(Dl),Wt(zl,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Wl=(()=>{class t extends $l{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){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=Ll(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+Hl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+Hl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Wt(Dl),Wt(zl,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Gl=(()=>{class t{constructor(t,e){this._subject=new Da,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Fl(Ql(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+Hl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ql(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+Hl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(Wt($l),Wt(Dl))},t.normalizeQueryParams=Hl,t.joinWithSlash=Ll,t.stripTrailingSlash=Fl,t.\u0275prov=lt({factory:Zl,token:t,providedIn:"root"}),t})();function Zl(){return new Gl(Wt($l),Wt(Dl))}function Ql(t){return t.replace(/\/index.html$/,"")}var Kl=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}({});class Jl{}let Yl=(()=>{class t extends Jl{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=No(e);if(n)return n;const r=e.split("-")[0];if(n=No(r),n)return n;if("en"===r)return Po;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Vo.PluralCase]}(e||this.locale)(t)){case Kl.Zero:return"zero";case Kl.One:return"one";case Kl.Two:return"two";case Kl.Few:return"few";case Kl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Wt(qa))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Xl(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 tu{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 eu=(()=>{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){Sr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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 tu(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new nu(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 nu(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)(oo(Ca),oo(wa),oo(ga))},t.\u0275dir=ge({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class nu{constructor(t,e){this.record=t,this.view=e}}let ru=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new su,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){iu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){iu("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(oo(Ca),oo(wa))},t.\u0275dir=ge({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class su{constructor(){this.$implicit=null,this.ngIf=null}}function iu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${yt(e)}'.`)}let ou=(()=>{class t{}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Jl,useClass:Yl}]}),t})(),au=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new lu(Wt(Pl),window,Wt(ur))}),t})();class lu{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=uu(this.window.history)||uu(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function uu(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class cu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new cu,Rl||(Rl=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=du||(du=document.querySelector("base"),du)?du.getAttribute("href"):null;return null==e?null:(n=e,hu||(hu=document.createElement("a")),hu.setAttribute("href",n),"/"===hu.pathname.charAt(0)?hu.pathname:"/"+hu.pathname);var n}resetBaseElement(){du=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Xl(document.cookie,t)}}let hu,du=null;const pu=new Vt("TRANSITION_ID"),fu=[{provide:Na,useFactory:function(t,e,n){return()=>{n.get(Va).donePromise.then(()=>{const n=Il();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[pu,Pl,Bi],multi:!0}];class gu{static init(){var t;t=new gu,pl=t}addToWindow(t){kt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},kt.getAllAngularTestabilities=()=>t.getAllTestabilities(),kt.getAllAngularRootElements=()=>t.getAllRootElements(),kt.frameworkStabilizers||(kt.frameworkStabilizers=[]),kt.frameworkStabilizers.push(t=>{const e=kt.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?Il().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const mu=new Vt("EventManagerPlugins");let yu=(()=>{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=lt({token:t,factory:t.\u0275fac}),t})(),wu=(()=>{class t extends vu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Il().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Pl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const bu={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/"},Cu=/%COMP%/g;function Su(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Eu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Tu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ie.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ku(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case ie.ShadowDom:return new Ou(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Su(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)(Wt(yu),Wt(wu),Wt(ja))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Tu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(bu[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=bu[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=bu[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&Xo.DashCase?t.style.setProperty(e,n,r&Xo.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Xo.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,xu(n)):this.eventManager.addEventListener(t,e,xu(n))}}class ku extends Tu{constructor(t,e,n,r){super(t),this.component=n;const s=Su(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Cu,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Cu,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 Ou extends Tu{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=Su(r.id,r.styles,[]);for(let i=0;i{class t extends _u{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)(Wt(Pl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Ru=["alt","control","meta","shift"],Iu={"\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"},Pu={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"},Du={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Nu=(()=>{class t extends _u{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(()=>Il().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(Ru.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&&Pu.hasOwnProperty(e)&&(e=Pu[e]))}return Iu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ru.forEach(r=>{r!=n&&(0,Du[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)(Wt(Pl))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return Wt(ju)},token:t,providedIn:"root"}),t})(),ju=(()=>{class t extends Vu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Wr.NONE:return e;case Wr.HTML:return vr(e,"HTML")?_r(e):function(t,e){let n=null;try{zr=zr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(hr(""),"text/html")}catch(t){return!1}}()?new xr:new Er(t)}(t);let r=e?String(e):"";n=zr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=zr.getInertBodyElement(r)}while(r!==i);const o=new Fr,a=o.sanitizeChildren(Br(n)||n);return Sr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Br(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case Wr.STYLE:return vr(e,"Style")?_r(e):e;case Wr.SCRIPT:if(vr(e,"Script"))return _r(e);throw new Error("unsafe value used in a script context");case Wr.URL:return wr(e),vr(e,"URL")?_r(e):Or(String(e));case Wr.RESOURCE_URL:if(vr(e,"ResourceURL"))return _r(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new pr(t)}bypassSecurityTrustStyle(t){return new fr(t)}bypassSecurityTrustScript(t){return new gr(t)}bypassSecurityTrustUrl(t){return new mr(t)}bypassSecurityTrustResourceUrl(t){return new yr(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Pl))},t.\u0275prov=lt({factory:function(){return t=Wt(jt),new ju(t.get(Pl));var t},token:t,providedIn:"root"}),t})();const Mu=ml(kl,"browser",[{provide:Fa,useValue:"browser"},{provide:La,useValue:function(){cu.makeCurrent(),gu.init()},multi:!0},{provide:Pl,useFactory:function(){return function(t){Fe=t}(document),document},deps:[]}]),Uu=[[],{provide:Ii,useValue:"root"},{provide:ur,useFactory:function(){return new ur},deps:[]},{provide:mu,useClass:Au,multi:!0,deps:[Pl,el,Fa]},{provide:mu,useClass:Nu,multi:!0,deps:[Pl]},[],{provide:Eu,useClass:Eu,deps:[yu,wu,ja]},{provide:Yo,useExisting:Eu},{provide:vu,useExisting:wu},{provide:wu,useClass:wu,deps:[Pl]},{provide:ul,useClass:ul,deps:[el]},{provide:yu,useClass:yu,deps:[mu,el]},[]];let Lu=(()=>{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:ja,useValue:e.appId},{provide:pu,useExisting:ja},fu]}}}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt(t,12))},providers:Uu,imports:[ou,Al]}),t})();function Fu(t,e){return new _(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{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window;const Hu=new Vt("NgValueAccessor"),$u={provide:Hu,useExisting:wt(()=>qu),multi:!0};let qu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(ta),oo(Ko))},t.\u0275dir=ge({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&mo("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Wo([$u])]}),t})();const zu={provide:Hu,useExisting:wt(()=>Wu),multi:!0},Bu=new Vt("CompositionEventMode");let Wu=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Il()?Il().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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)(oo(ta),oo(Ko),oo(Bu,8))},t.\u0275dir=ge({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&&mo("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:[Wo([zu])]}),t})();function Gu(t){return null==t||0===t.length}function Zu(t){return null!=t&&"number"==typeof t.length}const Qu=new Vt("NgValidators"),Ku=new Vt("NgAsyncValidators"),Ju=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Yu{static min(t){return e=>{if(Gu(e.value)||Gu(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Gu(e.value)||Gu(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Gu(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Gu(t.value)||Ju.test(t.value)?null:{email:!0}}static minLength(t){return e=>Gu(e.value)||!Zu(e.value)?null:e.value.lengthZu(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Yu.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Gu(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Xu);return 0==e.length?null:function(t){return ec(nc(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Xu);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Fu(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Fu(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Fu(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(T(t=>e(...t)))}return Fu(t,null)}(nc(t,e).map(tc)).pipe(T(ec))}}}function Xu(t){return null!=t}function tc(t){const e=fo(t)?j(t):t;return go(e),e}function ec(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 nc(t,e){return e.map(e=>e(t))}function rc(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function sc(t){return null!=t?Yu.compose(rc(t)):null}function ic(t){return null!=t?Yu.composeAsync(rc(t)):null}function oc(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let ac=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[]}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=sc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ic(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}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=ge({type:t}),t})(),lc=(()=>{class t extends ac{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return uc(e||t)},t.\u0275dir=ge({type:t,features:[Qi]}),t})();const uc=ir(lc);class cc extends ac{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let hc=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(cc,2))},t.\u0275dir=ge({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&So("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Qi]}),t})();const dc="VALID",pc="INVALID",fc="PENDING",gc="DISABLED";function mc(t){return(wc(t)?t.validators:t)||null}function yc(t){return Array.isArray(t)?sc(t):t||null}function _c(t,e){return(wc(e)?e.asyncValidators:t)||null}function vc(t){return Array.isArray(t)?ic(t):t||null}function wc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class bc{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=yc(this._rawValidators),this._composedAsyncValidatorFn=vc(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 this.status===dc}get invalid(){return this.status===pc}get pending(){return this.status==fc}get disabled(){return this.status===gc}get enabled(){return this.status!==gc}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=yc(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vc(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=fc,!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=gc,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=dc,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(),this.status!==dc&&this.status!==fc||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()?gc:dc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fc,this._hasOwnPendingAsyncValidator=!0;const e=tc(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 Sc?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof xc&&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 Da,this.statusChanges=new Da}_calculateStatus(){return this._allControlsDisabled()?gc:this.errors?pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fc)?fc:this._anyControlsHaveStatus(pc)?pc:dc}_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){wc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Cc extends bc{constructor(t=null,e,n){super(mc(e),_c(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(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 Sc extends bc{constructor(t,e,n){super(mc(e),_c(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),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={}){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 Cc?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=>t(this.controls[e],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 xc extends bc{constructor(t,e,n){super(mc(e),_c(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),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={}){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 Cc?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_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 Ec={provide:Hu,useExisting:wt(()=>Tc),multi:!0};let Tc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(ta),oo(Ko))},t.\u0275dir=ge({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&mo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Wo([Ec])]}),t})();const kc={provide:Hu,useExisting:wt(()=>Ac),multi:!0};let Oc=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Ac=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(cc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(oo(ta),oo(Ko),oo(Oc),oo(Bi))},t.\u0275dir=ge({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&mo("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Wo([kc])]}),t})();const Rc={provide:Hu,useExisting:wt(()=>Ic),multi:!0};let Ic=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(ta),oo(Ko))},t.\u0275dir=ge({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&mo("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Wo([Rc])]}),t})();const Pc={provide:Hu,useExisting:wt(()=>Nc),multi:!0};function Dc(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Nc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Dc(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_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(e){return new(e||t)(oo(ta),oo(Ko))},t.\u0275dir=ge({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&mo("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Wo([Pc])]}),t})(),Vc=(()=>{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(Dc(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)(oo(Ko),oo(ta),oo(Nc,9))},t.\u0275dir=ge({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const jc={provide:Hu,useExisting:wt(()=>Uc),multi:!0};function Mc(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Uc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},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(Mc(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Mc(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)(oo(Ko),oo(ta),oo(Uc,9))},t.\u0275dir=ge({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function Fc(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Hc(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const $c=[qu,Ic,Tc,Nc,Uc,Ac],qc={provide:cc,useExisting:wt(()=>Bc)},zc=(()=>Promise.resolve(null))();let Bc=(()=>{class t extends cc{constructor(t,e,n,r){super(),this.control=new Cc,this._registered=!1,this.update=new Da,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,r=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===Wu?n=t:(e=t,$c.some(t=>e.constructor===t)?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(){var t,e;(function(t,e,n){const r=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(oc(r,e.validator)):"function"==typeof r&&t.setValidators([r]);const s=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(oc(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]);{const n=()=>t.updateValueAndValidity();Fc(e._rawValidators,n),Fc(e._rawAsyncValidators,n)}})(t=this.control,e=this),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Hc(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Hc(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),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){zc.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;zc.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(oo(lc,9),oo(Qu,10),oo(Ku,10),oo(Hu,10))},t.\u0275dir=ge({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:[Wo([qc]),Qi,Ve]}),t})(),Wc=(()=>{class t{}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Gc=(()=>{class t{}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Oc],imports:[Wc]}),t})();function Zc(...t){let e=t[t.length-1];return E(e)?(t.pop(),V(t,e)):z(t)}class Qc 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 w;return this._value}next(t){super.next(this._value=t)}}class Kc 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 Jc 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 Yc(t,e,n,r,s=new Jc(t,n,r)){if(!s.closed)return e instanceof _?e.subscribe(s):N(e)(s)}const Xc={};class th{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new eh(t,this.resultSelector))}}class eh extends Kc{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Xc),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})(),rh=new _(t=>t.complete());function sh(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):rh}function ih(t){return new _(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?j(n):sh()).subscribe(e)})}function oh(){return q(1)}function ah(t,e){return function(n){return n.lift(new lh(t,e))}}class lh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new uh(t,this.predicate,this.thisArg))}}class uh 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)}}const ch=(()=>{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 hh(t){return function(e){return 0===t?sh():e.lift(new dh(t))}}class dh{constructor(t){if(this.total=t,this.total<0)throw new ch}call(t,e){return e.subscribe(new ph(t,this.total))}}class ph 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 gh(t))}class gh{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new mh(t,this.errorFactory))}}class mh 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 yh(){return new nh}function _h(t=null){return e=>e.lift(new vh(t))}class vh{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new wh(t,this.defaultValue))}}class wh 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 bh(t,e){return"function"==typeof e?n=>n.pipe(bh((n,r)=>j(t(n,r)).pipe(T((t,s)=>e(n,t,r,s))))):e=>e.lift(new Ch(t))}class Ch{constructor(t){this.project=t}call(t,e){return e.subscribe(new Sh(t,this.project))}}class Sh extends U{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 M(this),r=this.destination;r.add(n),this.innerSubscription=L(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)}}function xh(t){return e=>0===t?sh():e.lift(new Eh(t))}class Eh{constructor(t){if(this.total=t,this.total<0)throw new ch}call(t,e){return e.subscribe(new Th(t,this.total))}}class Th 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 kh(...t){return oh()(Zc(...t))}class Oh{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Ah(t,this.accumulator,this.seed,this.hasSeed))}}class Ah 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 Rh(t){return function(e){const n=new Ih(t),r=e.lift(n);return n.caught=r}}class Ih{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ph(t,this.selector,this.caught))}}class Ph extends U{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 M(this);this.add(r);const s=L(n,r);s!==r&&this.add(s)}}}function Dh(t,e){return F(t,e,1)}function Nh(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ah((e,n)=>t(e,n,r)):y,xh(1),n?_h(e):fh(()=>new nh))}function Vh(){}function jh(t,e,n){return function(r){return r.lift(new Mh(t,e,n))}}class Mh{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Uh(t,this.nextOrObserver,this.error,this.complete))}}class Uh extends f{constructor(t,e,n,s){super(t),this._tapNext=Vh,this._tapError=Vh,this._tapComplete=Vh,this._tapError=n||Vh,this._tapComplete=s||Vh,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Vh,this._tapError=e.error||Vh,this._tapComplete=e.complete||Vh)}_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 Lh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Fh(t,this.callback))}}class Fh extends f{constructor(t,e){super(t),this.add(new h(e))}}class Hh{constructor(t,e){this.id=t,this.url=e}}class $h extends Hh{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 qh extends Hh{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zh extends Hh{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bh extends Hh{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Wh extends Hh{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 Gh extends Hh{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 Zh extends Hh{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 Qh extends Hh{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 Kh extends Hh{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 Jh{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Yh{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xh{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class td{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ed{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nd{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rd{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}')`}}const sd="primary";class id{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 od(t){return new id(t)}function ad(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ld(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 hd(t){return Array.prototype.concat.apply([],t)}function dd(t){return t.length>0?t[t.length-1]:null}function pd(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function fd(t){return go(t)?t:fo(t)?j(Promise.resolve(t)):Zc(t)}function gd(t,e,n){return n?function(t,e){return ud(t,e)}(t.queryParams,e.queryParams)&&md(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>cd(t[n],e[n]))}(t.queryParams,e.queryParams)&&yd(t.root,e.root)}function md(t,e){if(!Cd(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!md(t.children[n],e.children[n]))return!1}return!0}function yd(t,e){return _d(t,e,e.segments)}function _d(t,e,n){if(t.segments.length>n.length)return!!Cd(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Cd(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!yd(t.children[n],e.children[n]))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Cd(t.segments,r)&&!!t.children.primary&&_d(t.children.primary,e,s)}}class vd{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return Td.serialize(this)}}class wd{constructor(t,e){this.segments=t,this.children=e,this.parent=null,pd(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kd(this)}}class bd{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=od(this.parameters)),this._parameterMap}toString(){return Nd(this)}}function Cd(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Sd(t,e){let n=[];return pd(t.children,(t,r)=>{r===sd&&(n=n.concat(e(t,r)))}),pd(t.children,(t,r)=>{r!==sd&&(n=n.concat(e(t,r)))}),n}class xd{}class Ed{parse(t){const e=new Ld(t);return new vd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Od(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Rd(e)}=${Rd(t)}`).join("&"):`${Rd(e)}=${Rd(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Td=new Ed;function kd(t){return t.segments.map(t=>Nd(t)).join("/")}function Od(t,e){if(!t.hasChildren())return kd(t);if(e){const e=t.children.primary?Od(t.children.primary,!1):"",n=[];return pd(t.children,(t,e)=>{e!==sd&&n.push(`${e}:${Od(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Sd(t,(e,n)=>n===sd?[Od(t.children.primary,!1)]:[`${n}:${Od(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${kd(t)}/${e[0]}`:`${kd(t)}/(${e.join("//")})`}}function Ad(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rd(t){return Ad(t).replace(/%3B/gi,";")}function Id(t){return Ad(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pd(t){return decodeURIComponent(t)}function Dd(t){return Pd(t.replace(/\+/g,"%20"))}function Nd(t){return`${Id(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Id(t)}=${Id(e[t])}`).join("")}`;var e}const Vd=/^[^\/()?;=#]+/;function jd(t){const e=t.match(Vd);return e?e[0]:""}const Md=/^[^=?&#]+/,Ud=/^[^?&#]+/;class Ld{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wd([],{}):new wd([],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 wd(t,e)),n}parseSegment(){const t=jd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bd(Pd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=jd(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=jd(this.remaining);t&&(n=t,this.capture(n))}t[Pd(e)]=Pd(n)}parseQueryParam(t){const e=function(t){const e=t.match(Md);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(Ud);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Dd(e),s=Dd(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=jd(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=sd);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new wd([],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 Fd{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=Hd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Hd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=$d(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return $d(t,this._root).map(t=>t.value)}}function Hd(t,e){if(t===e.value)return e;for(const n of e.children){const e=Hd(t,n);if(e)return e}return null}function $d(t,e){if(t===e.value)return[e];for(const n of e.children){const r=$d(t,n);if(r.length)return r.unshift(e),r}return[]}class qd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zd(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Bd extends Fd{constructor(t,e){super(t),this.snapshot=e,Jd(this,t)}toString(){return this.snapshot.toString()}}function Wd(t,e){const n=function(t,e){const n=new Qd([],{},{},"",{},sd,e,null,t.root,-1,{});return new Kd("",new qd(n,[]))}(t,e),r=new Qc([new bd("",{})]),s=new Qc({}),i=new Qc({}),o=new Qc({}),a=new Qc(""),l=new Gd(r,s,o,a,i,sd,e,n.root);return l.snapshot=n.root,new Bd(new qd(l,[]),n)}class Gd{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(T(t=>od(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(t=>od(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Zd(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 Qd{constructor(t,e,n,r,s,i,o,a,l,u,c){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=u,this._resolve=c}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=od(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=od(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kd extends Fd{constructor(t,e){super(e),this.url=t,Jd(this,e)}toString(){return Yd(this._root)}}function Jd(t,e){e.value._routerState=t,e.children.forEach(e=>Jd(t,e))}function Yd(t){const e=t.children.length>0?` { ${t.children.map(Yd).join(", ")} } `:"";return`${t.value}${e}`}function Xd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ud(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ud(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nud(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||tp(t.parent,e.parent))}function ep(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 ep(t,e,r);return ep(t,e)})}(t,e,n);return new qd(r,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return np(e,t),t}{const n=new Gd(new Qc((r=e.value).url),new Qc(r.params),new Qc(r.queryParams),new Qc(r.fragment),new Qc(r.data),r.outlet,r.component,r),s=e.children.map(e=>ep(t,e));return new qd(n,s)}}var r}function np(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 vd(n.root===t?e:op(n.root,t,e),i,s)}function op(t,e,n){const r={};return pd(t.children,(t,s)=>{r[s]=t===e?n:op(t,e,n)}),new wd(t.segments,r)}class ap{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&rp(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(sp);if(r&&r!==dd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class lp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function up(t,e,n){if(t||(t=new wd([],{})),0===t.segments.length&&t.hasChildren())return cp(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(sp(o))break;const a=""+o,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!fp(a,l,e))return i;r+=2}else{if(!fp(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{null!==n&&(s[r]=up(t.children[r],e,n))}),pd(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new wd(t.segments,s)}}function hp(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=hp(new wd([],{}),0,t))}),e}function pp(t){const e={};return pd(t,(t,n)=>e[n]=""+t),e}function fp(t,e,n){return t==n.path&&ud(e,n.parameters)}class gp{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),Xd(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=zd(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),pd(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);if(n){const r=zd(t),s=t.value.component?n.children:e;pd(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=zd(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new nd(t.value.snapshot))}),t.children.length&&this.forwardEvent(new td(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Xd(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),mp(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 mp(t){Xd(t.value),t.children.forEach(mp)}class yp{constructor(t,e){this.routes=t,this.module=e}}function _p(t){return"function"==typeof t}function vp(t){return t instanceof vd}const wp=Symbol("INITIAL_VALUE");function bp(){return bh(t=>function(...t){let e=void 0,n=void 0;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]),z(t,n).lift(new th(e))}(...t.map(t=>t.pipe(xh(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>kh(t,n,e)):e=>kh(t,e)}(wp)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Oh(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==wp)return t;if(r===wp&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||vp(r))return r}return t},t)},wp),ah(t=>t!==wp),T(t=>vp(t)?t:!0===t),xh(1)))}let Cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ho(0,"router-outlet")},directives:function(){return[ff]},encapsulation:2}),t})();function Sp(t,e=""){for(let n=0;ne.error(new Op(t)))}function Ip(t){return new _(e=>e.error(new Ap(t)))}function Pp(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Dp{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(Kt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,sd).pipe(T(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Rh(t=>{if(t instanceof Ap)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Op)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,sd).pipe(T(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Rh(t=>{if(t instanceof Op)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 wd([],{[sd]:t}):t;return new vd(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(T(t=>new wd([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Zc({});const n=[],r=[],s={};return pd(t,(t,i)=>{const o=e(i,t).pipe(T(t=>s[i]=t));i===sd?n.push(o):r.push(o)}),Zc.apply(null,n.concat(r)).pipe(oh(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ah((e,n)=>t(e,n,r)):y,hh(1),n?_h(e):fh(()=>new nh))}(),T(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,i){const o=function(t){return t.reduce((t,e)=>{const n=kp(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(s)||o.set(s,[]);const a=n=>j(n).pipe(Dh(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(Rh(t=>{if(t instanceof Op)return Zc(null);throw t}))),Nh(t=>null!==t),Rh(t=>{if(t instanceof nh||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Zc(new wd([],{}));throw new Op(e)}throw t}));return j(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===s?n:n.pipe(T(()=>null),Rh(()=>Zc(null)))})).pipe(t=>t.lift(new th(void 0)),Nh(),T(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return kp(r)!==i&&""!==r.path?Rp(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):Rp(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("/")?Ip(s):this.lineralizeSegments(n,s).pipe(F(n=>{const s=new wd(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:u}=Np(e,r,s);if(!o)return Rp(e);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Ip(c):this.lineralizeSegments(r,c).pipe(F(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(T(t=>(n._loadedConfig=t,new wd(r,{})))):Zc(new wd(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Np(e,n,r);if(!s)return Rp(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe(F(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>jp(t,e,n)&&kp(n)!==sd)}(t,n,r)?{segmentGroup:Vp(new wd(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&kp(r)!==sd&&(n[kp(r)]=new wd([],{}));return n}(r,new wd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>jp(t,e,n))}(t,n,r)?{segmentGroup:Vp(new wd(t.segments,function(t,e,n,r){const s={};for(const i of n)jp(t,e,i)&&!r[kp(i)]&&(s[kp(i)]=new wd([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(T(t=>new wd(i,t))):0===r.length&&0===o.length?Zc(new wd(i,{})):this.expandSegment(n,s,r,o,sd,!0).pipe(T(t=>new wd(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Zc(new yp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Zc(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(F(n=>n?this.configLoader.load(t.injector,e).pipe(T(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error(ad(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Zc(new yp([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Zc(r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&_p(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!_p(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return fd(i)})).pipe(bp(),jh(t=>{if(!vp(t))return;const e=ad(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),T(t=>!0===t)):Zc(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Zc(n);if(r.numberOfChildren>1||!r.children.primary)return Pp(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 vd(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return pd(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 pd(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new wd(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 Np(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||ld)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Vp(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new wd(t.segments.concat(e.segments),e.children)}return t}function jp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class Mp{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Up{constructor(t,e){this.component=t,this.route=e}}function Lp(t,e,n){const r=t._root;return Hp(r,e?e._root:null,n,[r.value])}function Fp(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 Hp(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=zd(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!Cd(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Cd(t.url,e.url)||!ud(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tp(t,e)||!ud(t.queryParams,e.queryParams);case"paramsChange":default:return!tp(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Mp(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Hp(t,e,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Up(a.outlet.component,o))}else o&&$p(e,a,s),s.canActivateChecks.push(new Mp(r)),Hp(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]}),pd(i,(t,e)=>$p(t,n.getContext(e),s)),s}function $p(t,e,n){const r=zd(t),s=t.value;pd(r,(t,r)=>{$p(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Up(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function qp(t,e){return null!==t&&e&&e(new ed(t)),Zc(!0)}function zp(t,e){return null!==t&&e&&e(new Xh(t)),Zc(!0)}function Bp(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Zc(r.map(r=>ih(()=>{const s=Fp(r,e,n);let i;if(function(t){return t&&_p(t.canActivate)}(s))i=fd(s.canActivate(e,t));else{if(!_p(s))throw new Error("Invalid CanActivate guard");i=fd(s(e,t))}return i.pipe(Nh())}))).pipe(bp()):Zc(!0)}function Wp(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=>ih(()=>Zc(e.guards.map(s=>{const i=Fp(s,e.node,n);let o;if(function(t){return t&&_p(t.canActivateChild)}(i))o=fd(i.canActivateChild(r,t));else{if(!_p(i))throw new Error("Invalid CanActivateChild guard");o=fd(i(r,t))}return o.pipe(Nh())})).pipe(bp())));return Zc(s).pipe(bp())}class Gp{}class Zp{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(){try{const t=Jp(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,sd),n=new Qd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},sd,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new qd(n,e),s=new Kd(this.url,r);return this.inheritParamsAndData(s._root),Zc(s)}catch(t){return new _(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Zd(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=Sd(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===sd?-1:e.value.outlet===sd?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Gp))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Gp}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Gp;if((t.outlet||sd)!==r)throw new Gp;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?dd(n).parameters:{};s=new Qd(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tf(t),r,t.component,t,Qp(e),Kp(e)+n.length,ef(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Gp;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||ld)(n,t,e);if(!r)throw new Gp;const s={};pd(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Qd(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tf(t),r,t.component,t,Qp(e),Kp(e)+i.length,ef(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=Jp(e,i,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new qd(s,t)]}if(0===a.length&&0===u.length)return[new qd(s,[])];const c=this.processSegment(a,l,u,sd);return[new qd(s,c)]}}function Qp(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Kp(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 Jp(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>Yp(t,e,n)&&Xp(n)!==sd)}(t,n,r)){const s=new wd(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&&Xp(i)!==sd){const n=new wd([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Xp(i)]=n}return s}(t,e,r,new wd(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=>Yp(t,e,n))}(t,n,r)){const i=new wd(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Yp(t,n,a)&&!s[Xp(a)]){const n=new wd([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Xp(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 wd(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Yp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Xp(t){return t.outlet||sd}function tf(t){return t.data||{}}function ef(t){return t.resolve||{}}function nf(t){return function(e){return e.pipe(bh(e=>{const n=t(e);return n?j(n).pipe(T(()=>e)):j([e])}))}}class rf 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 sf=new Vt("ROUTES");class of{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new yp(hd(r.injector.get(sf)).map(Tp),r)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):fd(t()).pipe(F(t=>t instanceof Jt?Zc(t):j(this.compiler.compileModuleAsync(t))))}}class af{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new lf,this.attachRef=null}}class lf{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 af,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class uf{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function cf(t){throw t}function hf(t,e,n){return e.parse("/")}function df(t,e){return Zc(null)}let pf=(()=>{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.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=cf,this.malformedUriErrorHandler=hf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:df,afterPreactivation:df},this.urlHandlingStrategy=new uf,this.routeReuseStrategy=new rf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(Kt),this.console=s.get($a);const l=s.get(el);this.isNgZoneEnabled=l instanceof el,this.resetConfig(a),this.currentUrlTree=new vd(new wd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new of(i,o,t=>this.triggerEvent(new Jh(t)),t=>this.triggerEvent(new Yh(t))),this.routerState=Wd(this.currentUrlTree,this.rootComponentType),this.transitions=new Qc({id: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(ah(t=>0!==t.id),T(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),bh(t=>{let n=!1,r=!1;return Zc(t).pipe(jh(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}}),bh(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Zc(t).pipe(bh(t=>{const n=this.transitions.getValue();return e.next(new $h(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?rh:[t]}),bh(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,function(t){return t.pipe(bh(t=>function(t,e,n,r,s){return new Dp(t,e,n,r,s).apply()}(r,s,i,t.extractedUrl,o).pipe(T(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),jh(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(F(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Zp(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(T(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),jh(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),jh(t=>{const n=new Wh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new $h(n,this.serializeUrl(r),s,i);e.next(a);const l=Wd(r,this.rootComponentType).snapshot;return Zc(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),rh}),nf(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})}),jh(t=>{const e=new Gh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),T(t=>Object.assign(Object.assign({},t),{guards:Lp(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(F(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Zc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return j(t).pipe(F(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Zc(i.map(i=>{const o=Fp(i,e,s);let a;if(function(t){return t&&_p(t.canDeactivate)}(o))a=fd(o.canDeactivate(t,e,n,r));else{if(!_p(o))throw new Error("Invalid CanDeactivate guard");a=fd(o(t,e,n,r))}return a.pipe(Nh())})).pipe(bp()):Zc(!0)}(t.component,t.route,n,e,r)),Nh(t=>!0!==t,!0))}(o,r,s,t).pipe(F(n=>n&&"boolean"==typeof n?function(t,e,n,r){return j(e).pipe(Dh(e=>j([zp(e.route.parent,r),qp(e.route,r),Wp(t,e.path,n),Bp(t,e.route,n)]).pipe(oh(),Nh(t=>!0!==t,!0))),Nh(t=>!0!==t,!0))}(r,i,t,e):Zc(n)),T(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),jh(t=>{if(vp(t.guardsResult)){const e=ad(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),jh(t=>{const e=new Zh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ah(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new zh(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),nf(t=>{if(t.guards.canActivateChecks.length)return Zc(t).pipe(jh(t=>{const e=new Qh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),bh(t=>{let n=!1;return Zc(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(F(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Zc(t);let i=0;return j(n).pipe(Dh(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Zc({});const i={};return j(s).pipe(F(s=>function(t,e,n,r){const s=Fp(t,e,r);return fd(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(jh(t=>{i[s]=t}))),hh(1),F(()=>Object.keys(i).length===s.length?Zc(i):rh))}(t._resolve,t,e,r).pipe(T(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Zd(t,n).resolve),null)))}(t.route,e,r,s)),jh(()=>i++),hh(1),F(e=>i===n.length?Zc(t):rh))}))}),jh({next:()=>n=!0,complete:()=>{if(!n){const n=new zh(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),jh(t=>{const e=new Kh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),nf(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})}),T(t=>{const e=function(t,e,n){const r=ep(t,e._root,n?n._root:void 0);return new Bd(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),jh(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.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),T(t=>(new gp(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),jh({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new zh(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new Lh(s))),Rh(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=vp(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new zh(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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 Bh(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return rh}));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,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){Sp(t),this.config=t.map(Tp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 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 u=null;switch(i){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return ip(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ap(!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 pd(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 ap(n,e,r)}(n);if(i.toRoot())return ip(e.root,new wd([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new lp(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new lp(t,t===e.root,0)}const r=rp(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 lp(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?cp(o.segmentGroup,o.index,i.commands):up(o.segmentGroup,o.index,i.commands);return ip(o.segmentGroup,a,e,r,s)}(a,this.currentUrlTree,t,u,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=vp(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,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.events.next(new qh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){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,u,c;s?(l=s.resolve,u=s.reject,c=s.promise):c=new Promise((t,e)=>{l=t,u=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}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),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ri),Wt(xd),Wt(lf),Wt(Gl),Wt(Bi),Wt(Cl),Wt(Ya),Wt(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ff=(()=>{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 Da,this.deactivateEvents=new Da,this.name=r||sd,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 gf(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)(oo(lf),oo(Ca),oo(Qo),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let r=0;for(;r{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new of(e,n,e=>t.triggerEvent(new Jh(e)),e=>t.triggerEvent(new Yh(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ah(t=>t instanceof qh),Dh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Kt);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 j(n).pipe(q(),T(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>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)(Wt(pf),Wt(Cl),Wt(Ya),Wt(Bi),Wt(mf))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),vf=(()=>{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 $h?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof qh&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof rd&&(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 rd(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)(Wt(pf),Wt(au),Wt(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const wf=new Vt("ROUTER_CONFIGURATION"),bf=new Vt("ROUTER_FORROOT_GUARD"),Cf=[Gl,{provide:xd,useClass:Ed},{provide:pf,useFactory:function(t,e,n,r,s,i,o,a={},l,u){const c=new pf(null,t,e,n,r,s,i,hd(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing){const t=Il();c.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c},deps:[xd,lf,Gl,Bi,Cl,Ya,sf,wf,[class{},new nt],[class{},new nt]]},lf,{provide:Gd,useFactory:function(t){return t.routerState.root},deps:[pf]},{provide:Cl,useClass:El},_f,yf,class{preload(t,e){return e().pipe(Rh(()=>Zc(null)))}},{provide:wf,useValue:{enableTracing:!1}}];function Sf(){return new gl("Router",pf)}let xf=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Cf,Of(e),{provide:bf,useFactory:kf,deps:[[pf,new nt,new st]]},{provide:wf,useValue:n||{}},{provide:$l,useFactory:Tf,deps:[Dl,[new et(zl),new nt],wf]},{provide:vf,useFactory:Ef,deps:[pf,au,wf]},{provide:mf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:yf},{provide:gl,multi:!0,useFactory:Sf},[Af,{provide:Na,multi:!0,useFactory:Rf,deps:[Af]},{provide:Pf,useFactory:If,deps:[Af]},{provide:Ha,multi:!0,useExisting:Pf}]]}}static forChild(e){return{ngModule:t,providers:[Of(e)]}}}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt(bf,8),Wt(pf,8))}}),t})();function Ef(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new vf(t,e,n)}function Tf(t,e,n={}){return n.useHash?new Wl(t,e):new Bl(t,e)}function kf(t){return"guarded"}function Of(t){return[{provide:Wi,multi:!0,useValue:t},{provide:sf,multi:!0,useValue:t}]}let Af=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Vl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(pf),r=this.injector.get(wf);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Zc(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(wf),n=this.injector.get(_f),r=this.injector.get(vf),s=this.injector.get(pf),i=this.injector.get(wl);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)(Wt(Bi))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Rf(t){return t.appInitializer.bind(t)}function If(t){return t.bootstrapListener.bind(t)}const Pf=new Vt("Router Initializer");class Df{}class Nf{}class Vf{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 Vf?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 Vf;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Vf?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 jf{encodeKey(t){return Mf(t)}encodeValue(t){return Mf(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Mf(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,"/")}class Uf{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jf,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.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"})}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 Uf({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(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(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)}}function Lf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Ff(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Hf(t){return"undefined"!=typeof FormData&&t instanceof FormData}class $f{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.params&&(this.params=s.params)),this.headers||(this.headers=new Vf),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]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new $f(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var qf=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 zf{constructor(t,e=200,n="OK"){this.headers=t.headers||new Vf,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 Bf extends zf{constructor(t={}){super(t),this.type=qf.ResponseHeader}clone(t={}){return new Bf({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 Wf extends zf{constructor(t={}){super(t),this.type=qf.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Wf({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 Gf extends zf{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 Zf(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Qf=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof $f)r=t;else{let s=void 0;s=n.headers instanceof Vf?n.headers:new Vf(n.headers);let i=void 0;n.params&&(i=n.params instanceof Uf?n.params:new Uf({fromObject:n.params})),r=new $f(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Zc(r).pipe(Dh(t=>this.handler.handle(t)));if(t instanceof $f||"events"===n.observe)return s;const i=s.pipe(ah(t=>t instanceof Wf));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(T(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(T(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(T(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(T(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 Uf).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,Zf(n,e))}post(t,e,n={}){return this.request("POST",t,Zf(n,e))}put(t,e,n={}){return this.request("PUT",t,Zf(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Df))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Kf{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Jf=new Vt("HTTP_INTERCEPTORS");let Yf=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Xf=/^\)\]\}',?\n/;class tg{}let eg=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ng=(()=>{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 _(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 Vf(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 Bf({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 u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Xf,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,u&&(u=!1,l={error:c,text:l})}}u?(e.next(new Wf({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Gf({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new Gf({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const u=r=>{l||(e.next(i()),l=!0);let s={type:qf.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:qf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),e.next({type:qf.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Wt(tg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const rg=new Vt("XSRF_COOKIE_NAME"),sg=new Vt("XSRF_HEADER_NAME");class ig{}let og=(()=>{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=Xl(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Wt(Pl),Wt(Fa),Wt(rg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ag=(()=>{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)(Wt(ig),Wt(sg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),lg=(()=>{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(Jf,[]);this.chain=t.reduceRight((t,e)=>new Kf(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Nf),Wt(Bi))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ug=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:ag,useClass:Yf}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:rg,useValue:e.cookieName}:[],e.headerName?{provide:sg,useValue:e.headerName}:[]]}}}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[ag,{provide:Jf,useExisting:ag,multi:!0},{provide:ig,useClass:og},{provide:rg,useValue:"XSRF-TOKEN"},{provide:sg,useValue:"X-XSRF-TOKEN"}]}),t})(),cg=(()=>{class t{}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Qf,{provide:Df,useClass:lg},ng,{provide:Nf,useExisting:ng},eg,{provide:tg,useExisting:eg}],imports:[[ug.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),hg=(()=>{class t{constructor(t){this.httpClient=t,this._queryLimit=500,this.authtoken="",this.apiURL="Prod"}get queryOptionLists(){return this._queryOptionLists}set queryOptionLists(t){this._queryOptionLists=t}getQueryOptionLists(){return this.httpClient.get(this.apiURL+"/getdata",{headers:{authtoken:this.authtoken}})}get queryResult(){return this._queryResult}set queryResult(t){this._queryResult=t}setQuery(t){this.queryResult=null,this._query=t,this._query&&this.httpClient.get(`${this.apiURL}/getdata?limit=${this._queryLimit}&query=${escape(this._query)}`,{headers:{authtoken:this.authtoken}}).subscribe(t=>{this.queryResult=t},t=>{this.errorString="Error fetching query result."})}clearQuery(){this.queryResult=null,this._query=null}getDetails(t){return this.httpClient.get(`${this.apiURL}/getdata?ControlNumber=${t}`,{headers:{authtoken:this.authtoken}})}getDocuments(t){return this.httpClient.get(`${this.apiURL}/getdata?documents=${t}`,{headers:{authtoken:this.authtoken}})}}return t.\u0275fac=function(e){return new(e||t)(Wt(Qf))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n}ngOnInit(){this.router.navigateByUrl("",{replaceUrl:!0})}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-after-login"]],decls:2,vars:0,template:function(t,e){1&t&&(uo(0,"p"),Oo(1,"after-login works!"),co())},styles:[""]}),t})();function pg(t,e){if(1&t&&(uo(0,"tr"),uo(1,"td",12),Oo(2),co(),uo(3,"td",13),Oo(4),co(),co()),2&t){const t=e.$implicit,n=vo();Rs(2),Ao(t.label),Rs(2),Ro(" ",n.detailData[t.field],"")}}function fg(t,e){1&t&&(uo(0,"span"),Oo(1,":"),co())}function gg(t,e){1&t&&(uo(0,"span"),Oo(1,"\xa0"),co())}function mg(t,e){1&t&&(uo(0,"span"),Oo(1,"\xa0"),co())}function yg(t,e){if(1&t&&(uo(0,"tr"),uo(1,"td",12),Oo(2),io(3,fg,2,0,"span",10),io(4,gg,2,0,"span",10),co(),uo(5,"td",13),Oo(6),io(7,mg,2,0,"span",10),co(),co()),2&t){const t=e.$implicit,n=vo();Rs(2),Ao(t.label),Rs(1),ao("ngIf",t.field),Rs(1),ao("ngIf",!t.field),Rs(2),Ro(" ",n.detailData[t.field],""),Rs(1),ao("ngIf",!t.field)}}function _g(t,e){if(1&t&&(uo(0,"tr"),uo(1,"td",12),Oo(2),co(),uo(3,"td",14),Oo(4),co(),co()),2&t){const t=e.$implicit,n=vo();Rs(2),Ao(t.label),Rs(2),Ro(" ",n.detailData[t.field],"")}}function vg(t,e){if(1&t&&(uo(0,"tr"),uo(1,"td",15),Oo(2),co(),uo(3,"td",16),uo(4,"a",17),Oo(5),co(),co(),co()),2&t){const t=e.$implicit,n=e.index,r=vo();Rs(2),Ro("Document #",n+1,""),Rs(2),ao("href",r.sanitization.bypassSecurityTrustUrl(t.Link),Gr),Rs(1),Ao(t.FileName)}}function wg(t,e){1&t&&(uo(0,"tr"),uo(1,"td",15),Oo(2,"Documents"),co(),uo(3,"td",16),Oo(4,"None"),co(),co())}let bg=(()=>{class t{constructor(t,e,n,r){this.router=t,this.route=e,this.apiService=n,this.sanitization=r,this.detailLeft=[{field:"ControlNumber",label:"Control Number"},{field:"Requestor",label:"Requestor"},{field:"ProductCategory",label:"Product Category"},{field:"Product",label:"Product"},{field:"NumberSamples",label:"Number of Samples"},{field:"TestType",label:"Test Type"},{field:"TestRequestType",label:"Test Request Type"}],this.detailRight=[{field:"DateSubmitted",label:"Date Submitted"},{field:"MoldNumber",label:"Mold/Machine Number"},{field:"PartNumber",label:"Part Number"},{field:"returnProductTo",label:"Return Product To"},{field:"FinalBuyOff",label:"Final Buy Off"},{field:"StatusAndDate",label:"Status"},{}],this.detailWide=[{field:"Description",label:"Description"},{field:"SpecialInstructions",label:"Special Instructions"},{field:"AbortConditions",label:"Abort Conditions"},{field:"Results",label:"Results"},{field:"FailureAnalysis",label:"Analysis"}]}get detailData(){return this.apiService.detailData}get detailDocuments(){return this.apiService.detailDocuments}get detailDataFieldNames(){return this.apiService.detailDataFieldNames}ngOnInit(){null!=this.detailData&&JSON.stringify(this.detailData)!=JSON.stringify({})||(this.apiService.errorString=this.detailData,this.router.navigateByUrl("/error-fetching-detail",{skipLocationChange:!0}))}backToQuery(){this.router.navigateByUrl("/query-form",{skipLocationChange:!0})}openXLS(){}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg),oo(Vu))},t.\u0275cmp=ue({type:t,selectors:[["app-detail"]],decls:21,vars:5,consts:[["role","main",1,"content",2,"text-align","center"],[2,"margin-top","20px","margin-bottom","20px"],[1,"mat-raised-button",3,"click"],["width","100%",1,"row"],["width","47%",1,"column",2,"text-align","center"],[1,"detailData"],[4,"ngFor","ngForOf"],["width","47%",1,"column"],[2,"margin-top","25px"],["width","100%",1,"detailData"],[4,"ngIf"],[2,"margin-top","20px"],[1,"detailLabel"],[1,"detailData",2,"text-align","left","max-width","960px","word-wrap","break-word"],[1,"detailData","detailWide",2,"text-align","left","max-width","960px","word-wrap","break-word"],[1,"detailLabel",2,"border-top","double"],[1,"detailData","detailWide",2,"text-align","left","max-width","960px","word-wrap","break-word","border-top","double"],[3,"href"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"h1"),Oo(2,"Test Request Detail"),co(),uo(3,"div",1),uo(4,"button",2),mo("click",function(){return e.backToQuery()}),Oo(5,"Back"),co(),co(),uo(6,"div",3),uo(7,"div",4),uo(8,"table",5),io(9,pg,5,2,"tr",6),co(),co(),uo(10,"div",7),uo(11,"table",5),io(12,yg,8,5,"tr",6),co(),co(),co(),uo(13,"div",8),uo(14,"table",9),io(15,_g,5,2,"tr",6),io(16,vg,6,3,"tr",6),io(17,wg,5,0,"tr",10),co(),co(),uo(18,"div",11),uo(19,"button",2),mo("click",function(){return e.backToQuery()}),Oo(20,"Back"),co(),co(),co()),2&t&&(Rs(9),ao("ngForOf",e.detailLeft),Rs(3),ao("ngForOf",e.detailRight),Rs(3),ao("ngForOf",e.detailWide),Rs(1),ao("ngForOf",e.detailDocuments),Rs(1),ao("ngIf",!e.detailDocuments[0]))},directives:[eu,ru],styles:["table.detailData[_ngcontent-%COMP%]{border-collapse:collapse;border:2px solid #00658a;margin:auto}td.detailData[_ngcontent-%COMP%], th.detailData[_ngcontent-%COMP%]{border:1px solid #d3d3d3;border-left:none;padding:11px;white-space:nowrap}td.detailLabel[_ngcontent-%COMP%]{border:1px solid #d3d3d3;border-right:none;padding:11px;text-align:right;font-weight:700;white-space:nowrap}td.detailWide[_ngcontent-%COMP%]{white-space:normal}"]}),t})(),Cg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n}get errorString(){return null==this.apiService.errorString?"":JSON.stringify(this.apiService.errorString,null,4)}ngOnInit(){}backToQuery(){this.apiService.errorString=null,this.router.navigateByUrl("/query-form",{skipLocationChange:!0})}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-error-fetching-detail"]],decls:8,vars:1,consts:[["role","main",1,"content"],[2,"margin-top","100px"],[2,"margin-top","20px"],[1,"mat-raised-button",3,"click"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"h1",1),Oo(2,"Error loading detail data"),co(),uo(3,"pre"),Oo(4),co(),uo(5,"div",2),uo(6,"button",3),mo("click",function(){return e.backToQuery()}),Oo(7,"Back to Query"),co(),co(),co()),2&t&&(Rs(4),Ao(e.errorString))},styles:[""]}),t})(),Sg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n,this.kindOfData="Currrent"}ngOnInit(){this.apiService.getDetails(this.apiService.controlNumber).subscribe(t=>{t&&""!=t&&"{}"!=t?(this.apiService.detailData=t,this.apiService.detailDataFieldNames=Object.keys(this.apiService.detailData),this.apiService.getDocuments(this.apiService.controlNumber).subscribe(t=>{this.apiService.detailDocuments=t,this.router.navigateByUrl("/detail",{skipLocationChange:!0})},t=>{this.apiService.errorString=t,this.router.navigateByUrl("/error-fetching-detail",{skipLocationChange:!0})})):(this.apiService.errorString=t,this.router.navigateByUrl("/error-fetching-detail",{skipLocationChange:!0}))},t=>{this.apiService.errorString=t,this.router.navigateByUrl("/error-fetching-detail",{skipLocationChange:!0})})}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-loading-data"]],decls:3,vars:0,consts:[["role","main",1,"content"],[2,"margin-top","100px"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"h1",1),Oo(2,"Loading detail data..."),co(),co())},styles:[""]}),t})(),xg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n}ngOnInit(){""==this.apiService.authtoken?this.route.fragment.subscribe(t=>{t?(this.apiService.authtoken=t.replace(/.*id_token=([^&=]*).*/g,"$1"),this.route.fragment=null,this.router.navigateByUrl("/after-login",{replaceUrl:!0})):window.location.href=`https://hunter-internal.auth.us-west-2.amazoncognito.com/login?client_id=5hkkut7sa14k6unth3o8j86ark&redirect_uri=${this.apiService.baseurl}&response_type=token&scope=email`}):this.router.navigateByUrl("/query-form",{skipLocationChange:!0})}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-login-page"]],decls:5,vars:0,consts:[["role","main",1,"content"],[2,"margin-top","100px"]],template:function(t,e){1&t&&(uo(0,"div",0),uo(1,"h1",1),Oo(2,"Login Page"),co(),uo(3,"p"),Oo(4,"Redirecting..."),co(),co())},styles:[""]}),t})();function Eg(t,e){1&t&&(uo(0,"div",1),uo(1,"h1",2),Oo(2,"Loading search form..."),co(),co())}function Tg(t,e){if(1&t&&(uo(0,"div",1),uo(1,"h1",3),Oo(2,"Error loading search form"),co(),uo(3,"pre"),Oo(4),co(),co()),2&t){const t=vo();Rs(4),Ao(t.errorString)}}function kg(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro("",t.Description," ")}}function Og(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro(" ",t.Description,"")}}function Ag(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro("",t.Description," ")}}function Rg(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro("",t.Description," ")}}function Ig(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro("",t.Description," ")}}function Pg(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ro("",t.Description," ")}}function Dg(t,e){if(1&t&&(uo(0,"option",19),Oo(1),co()),2&t){const t=e.$implicit;ao("ngValue",t.ID),Rs(1),Ao(t.Description)}}function Ng(t,e){1&t&&(uo(0,"div"),uo(1,"h3"),Oo(2,"FETCHING DATA. Please wait..."),co(),co())}function Vg(t,e){if(1&t){const t=po();uo(0,"div"),uo(1,"h3"),Oo(2,"ERROR FETCHING QUERY RESULT."),co(),uo(3,"pre",20),Oo(4),co(),uo(5,"div",21),uo(6,"button",16),mo("click",function(){return rn(t),vo(2).backToLogin()}),Oo(7,"Try Login Again"),co(),co(),co()}if(2&t){const t=vo(2);Rs(4),Ao(t.errorString)}}function jg(t,e){1&t&&(uo(0,"div"),Oo(1,'Choose some query options and press "Search"'),co())}function Mg(t,e){1&t&&(uo(0,"p"),Oo(1,"(Max result length. Tune query to limit results.)"),co())}function Ug(t,e){if(1&t){const t=po();uo(0,"tr",26),mo("click",function(){rn(t);const n=e.$implicit;return vo(4).onClickLine(n.ControlNumber)}),uo(1,"td",27),Oo(2),co(),uo(3,"td",27),Oo(4),co(),uo(5,"td",27),Oo(6),co(),uo(7,"td",28),Oo(8),co(),uo(9,"td",27),Oo(10),co(),co()}if(2&t){const t=e.$implicit,n=e.index;Rs(2),Ao(n+1),Rs(2),Ao(t.ControlNumber),Rs(2),Ao(t.SMDescription),Rs(2),Ro("",t.Description," "),Rs(2),Ao(1==t.bitFinalCheckOff?"\u2713":"")}}function Lg(t,e){if(1&t&&(uo(0,"table",23),uo(1,"thead",24),uo(2,"tr"),uo(3,"td"),Oo(4,"#"),co(),uo(5,"td"),Oo(6,"Control Number"),co(),uo(7,"td"),Oo(8,"Product"),co(),uo(9,"td"),Oo(10,"Description"),co(),uo(11,"td"),Oo(12,"Final Buy Off"),co(),co(),co(),uo(13,"tbody"),io(14,Ug,11,5,"tr",25),co(),co()),2&t){const t=vo(3);Rs(14),ao("ngForOf",t.queryResult)}}function Fg(t,e){if(1&t&&(uo(0,"div"),uo(1,"div"),uo(2,"h3"),Oo(3),co(),io(4,Mg,2,0,"p",18),co(),io(5,Lg,15,1,"table",22),co()),2&t){const t=vo(2);Rs(3),Ro("Results returned: ",t.queryResult.length,""),Rs(1),ao("ngIf",t.queryResult.length==t.queryLimit),Rs(1),ao("ngIf",t.queryResult.length>0)}}function Hg(t,e){if(1&t){const t=po();uo(0,"div",1),uo(1,"h1"),Oo(2,"Test Request Search"),co(),uo(3,"div",4),uo(4,"div",5),uo(5,"table"),uo(6,"tr"),uo(7,"td",6),Oo(8," Control Number: "),co(),uo(9,"td"),uo(10,"input",7),mo("ngModelChange",function(e){return rn(t),vo().controlNumber=e}),co(),co(),co(),uo(11,"tr"),uo(12,"td",6),Oo(13," Product Category: "),co(),uo(14,"td"),uo(15,"select",8,9),mo("ngModelChange",function(e){return rn(t),vo().productCategory=e})("change",function(){rn(t);const e=Xe.lFrame.contextLView[36];return vo().productCategoryChanged(e.value)}),ho(17,"option",10),io(18,kg,2,2,"option",11),co(),co(),co(),uo(19,"tr"),uo(20,"td",6),Oo(21," Product: "),co(),uo(22,"td"),uo(23,"select",12),mo("ngModelChange",function(e){return rn(t),vo().product=e}),ho(24,"option",10),io(25,Og,2,2,"option",11),co(),co(),co(),uo(26,"tr"),uo(27,"td",6),Oo(28," Test Type: "),co(),uo(29,"td"),uo(30,"select",12),mo("ngModelChange",function(e){return rn(t),vo().testType=e}),ho(31,"option",10),io(32,Ag,2,2,"option",11),co(),co(),co(),co(),co(),uo(33,"div",5),uo(34,"table"),uo(35,"tr"),uo(36,"td",6),Oo(37," Requestor: "),co(),uo(38,"td"),uo(39,"select",12),mo("ngModelChange",function(e){return rn(t),vo().requestor=e}),ho(40,"option",10),io(41,Rg,2,2,"option",11),co(),co(),co(),uo(42,"tr"),uo(43,"td",6),Oo(44,"Start Date:"),co(),uo(45,"td"),uo(46,"input",13),mo("ngModelChange",function(e){return rn(t),vo().startDate=e}),co(),co(),co(),uo(47,"tr"),uo(48,"td",6),Oo(49,"End Date:"),co(),uo(50,"td"),uo(51,"input",13),mo("ngModelChange",function(e){return rn(t),vo().endDate=e}),co(),co(),co(),uo(52,"tr"),uo(53,"td",6),Oo(54,"Buy Off:"),co(),uo(55,"td"),uo(56,"select",12),mo("ngModelChange",function(e){return rn(t),vo().buyoff=e}),ho(57,"option",10),io(58,Ig,2,2,"option",11),co(),co(),co(),uo(59,"tr"),uo(60,"td",6),Oo(61,"Type:"),co(),uo(62,"td"),uo(63,"select",12),mo("ngModelChange",function(e){return rn(t),vo().requestType=e}),ho(64,"option",10),io(65,Pg,2,2,"option",11),co(),co(),co(),uo(66,"tr"),uo(67,"td",6),Oo(68," Status: "),co(),uo(69,"td"),uo(70,"select",12),mo("ngModelChange",function(e){return rn(t),vo().status=e}),ho(71,"option",10),io(72,Dg,2,2,"option",11),co(),co(),co(),uo(73,"tr"),uo(74,"td",6),Oo(75,"Keyword:"),co(),uo(76,"td"),uo(77,"input",14),mo("ngModelChange",function(e){return rn(t),vo().keyword=e}),co(),co(),co(),co(),co(),co(),uo(78,"div",15),uo(79,"button",16),mo("click",function(){return rn(t),vo().clearQuery()}),Oo(80,"Clear"),co(),Oo(81,"\xa0\xa0\xa0\xa0"),uo(82,"button",16),mo("click",function(){return rn(t),vo().doQuery()}),Oo(83,"Search"),co(),co(),uo(84,"div",17),io(85,Ng,3,0,"div",18),io(86,Vg,8,1,"div",18),io(87,jg,2,0,"div",18),io(88,Fg,6,3,"div",18),co(),co()}if(2&t){const t=vo();Rs(10),ao("ngModel",t.controlNumber),Rs(5),ao("ngModel",t.productCategory),Rs(3),ao("ngForOf",t.queryOptionLists.ProductCategory),Rs(5),ao("ngModel",t.product),Rs(2),ao("ngForOf",t.queryOptionLists.Product[t.productCategory]),Rs(5),ao("ngModel",t.testType),Rs(2),ao("ngForOf",t.queryOptionLists.TestType),Rs(7),ao("ngModel",t.requestor),Rs(2),ao("ngForOf",t.queryOptionLists.Requestor),Rs(5),ao("ngModel",t.startDate),Rs(5),ao("ngModel",t.endDate),Rs(5),ao("ngModel",t.buyoff),Rs(2),ao("ngForOf",t.queryOptionLists.FinalBuyOff),Rs(5),ao("ngModel",t.requestType),Rs(2),ao("ngForOf",t.queryOptionLists.RequestType),Rs(5),ao("ngModel",t.status),Rs(2),ao("ngForOf",t.queryOptionLists.Status),Rs(5),ao("ngModel",t.keyword),Rs(8),ao("ngIf",t.query&&!t.queryResult&&""==t.errorString),Rs(1),ao("ngIf",t.query&&""==!t.errorString),Rs(1),ao("ngIf",!t.query&&!t.queryResult),Rs(1),ao("ngIf",t.queryResult)}}const $g=[{path:"query-form",component:(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n}ngOnInit(){this.clearQuery(),this.apiService.queryOptionLists||this.apiService.getQueryOptionLists().subscribe(t=>{this.apiService.queryOptionLists=t},t=>{setTimeout(()=>{this.ngOnInit()},2e3)})}get queryOptionLists(){return this.apiService.queryOptionLists}get errorString(){return null==this.apiService.errorString?"":JSON.stringify(this.apiService.errorString,null,4)}get queryResult(){return this.apiService.queryResult}backToLogin(){this.apiService.errorString=null,this.apiService.authtoken="",this.router.navigateByUrl("",{skipLocationChange:!0})}productCategoryChanged(t){this.product="unselected"}onClickLine(t){this.apiService.controlNumber=t,this.router.navigateByUrl("/loading-data",{skipLocationChange:!0})}doQuery(){this.apiService.errorString=null;let t="";t=this.setNumericDropdown("ProductCategoryID",this.productCategory,t),t=this.setNumericDropdown("SeriesModel",this.product,t),t=this.setNumericDropdown("TestType",this.testType,t),t=this.setNumericDropdown("Requestor",this.requestor,t),t=this.setNumericDropdown("TRStatus",this.status,t),t=this.setNumericDropdown("bitFinalCheckOff",this.buyoff,t),t=this.setNumeric("ControlNumber",this.controlNumber,t),t=this.setNumericDropdown("intRequestType",this.requestType,t),""!==this.keyword&&(t=this.appendToQuery(t,`Description LIKE "%${this.keyword}%" OR SpecialInstructions LIKE "%${this.keyword}%" OR AbortConditions LIKE "%${this.keyword}%" OR Results LIKE "%${this.keyword}%" OR FailureAnalysis LIKE "%${this.keyword}%"`)),""!==this.startDate&&(t=this.appendToQuery(t,`DateSubmitted >= '${this.startDate}'`)),""!==this.endDate&&(t=this.appendToQuery(t,`DateSubmitted <= '${this.endDate} 23:59:59'`)),""!==t?(this.query=t,this.apiService.setQuery(t)):(this.query=null,this.apiService.clearQuery())}setNumeric(t,e,n){return this.appendPairToQuery(n,"",t,e)}setNumericDropdown(t,e,n){return this.appendPairToQuery(n,"unselected",t,e)}appendPairToQuery(t,e,n,r){return r!==e?this.appendToQuery(t,`${n} IN (${r})`):t}appendToQuery(t,e){return""===t?`(${e})`:`${t} and (${e})`}clearQuery(){this.apiService.errorString=null,this.query=null,this.apiService.clearQuery(),this.controlNumber="",this.productCategory="unselected",this.product="unselected",this.testType="unselected",this.requestor="unselected",this.startDate="",this.endDate="",this.buyoff="unselected",this.requestType="unselected",this.status="unselected",this.keyword="",this.summary=!1,this.pareport="cont"}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-query-form"]],decls:3,vars:3,consts:[["class","content","role","main",4,"ngIf"],["role","main",1,"content"],[2,"margin-top","100px"],[2,"margin-top","25px"],[1,"row",2,"margin-top","40px"],[1,"column"],[2,"text-align","right"],["type","text","min","1","step","1",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange","change"],["selectedCategory",""],["value","unselected"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["type","date",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","ngModelChange"],[2,"margin-top","30px"],[1,"mat-raised-button",3,"click"],[2,"text-align","center","margin","25px 0"],[4,"ngIf"],[3,"ngValue"],[2,"text-align","left"],[2,"margin-top","20px"],["style","text-align: center;",4,"ngIf"],[2,"text-align","center"],[2,"vertical-align","bottom","font-weight","bold"],["class","clickable",3,"click",4,"ngFor","ngForOf"],[1,"clickable",3,"click"],[1,"queryCell"],[1,"queryCell",2,"text-align","left","max-width","960px","word-wrap","break-word"]],template:function(t,e){1&t&&(io(0,Eg,3,0,"div",0),io(1,Tg,5,1,"div",0),io(2,Hg,89,22,"div",0)),2&t&&(ao("ngIf",!e.queryOptionLists&&""==e.errorString),Rs(1),ao("ngIf",!e.queryOptionLists&&""!=e.errorString),Rs(1),ao("ngIf",e.queryOptionLists))},directives:[ru,Wu,hc,Bc,Nc,Vc,Lc,eu],styles:[""]}),t})()},{path:"detail",component:bg},{path:"loading-data",component:Sg},{path:"error-fetching-detail",component:Cg},{path:"after-login",component:dg},{path:"",component:xg},{path:"**",component:xg}];let qg=(()=>{class t{}return t.\u0275mod=pe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[xf.forRoot($g)],xf]}),t})(),zg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.apiService=n,this.title="htd-frontend",this.name=""}ngOnInit(){let t=new URL(window.location.href);this.apiService.baseurl=t.origin}logout(){window.location.href="https://hunter-internal.auth.us-west-2.amazoncognito.com/logout?client_id=5hkkut7sa14k6unth3o8j86ark&logout_uri="+this.apiService.baseurl}}return t.\u0275fac=function(e){return new(e||t)(oo(pf),oo(Gd),oo(hg))},t.\u0275cmp=ue({type:t,selectors:[["app-root"]],decls:14,vars:2,consts:[["role","banner",1,"toolbar"],["alt","Hunter","height","60px","src","assets/images/Hunter-Logo.jpg"],[2,"color","yellow","font-style","italic","margin-right","auto","margin-left","auto"],[2,"margin-right","10px","margin-left","auto"],[1,"mat-raised-button",3,"click"],[1,"footer","div-text-centered"],[1,"container","div-text-centered"],[1,"content","div-text-centered"]],template:function(t,e){1&t&&(uo(0,"div",0),ho(1,"img",1),uo(2,"span"),Oo(3,"Historical Test Database"),co(),uo(4,"div",2),Oo(5),co(),uo(6,"div",3),uo(7,"button",4),mo("click",function(){return e.logout()}),Oo(8,"Logout"),co(),co(),co(),ho(9,"router-outlet"),uo(10,"footer",5),uo(11,"div",6),uo(12,"div",7),Oo(13),co(),co(),co()),2&t&&(Rs(5),Ao(e.name),Rs(8),Ro(" ",e.name," "))},directives:[ff],styles:[""]}),t})(),Bg=(()=>{class t{}return t.\u0275mod=pe({type:t,bootstrap:[zg]}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[Lu,qg,cg,Gc]]}),t})();(function(){if(Cr)throw new Error("Cannot enable prod mode after platform setup.");br=!1})(),Mu().bootstrapModule(Bg).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);