-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es2015.a5913ec6b3807078a6a3.js
1 lines (1 loc) · 271 KB
/
main-es2015.a5913ec6b3807078a6a3.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++a<c&&s[a]||null;if(r(i))try{i.call(this)}catch(d){t=!0,e=d instanceof h?p(d.errors):[d]}if(l(o))for(a=-1,c=o.length;++a<c;){const n=o[a];if(u(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(p(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.concat(t instanceof h?t.errors:t),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,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(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(r((o=Object.create(t)).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(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(){}function v(...e){return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:y}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof g)return e;if(e[f])return e[f]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,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(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:w(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}E.prototype=Object.create(Error.prototype);const S=E;class x extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class T extends g{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(e){const t=new A(this,this);return t.operator=e,t}next(e){if(this.closed)throw new S;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new S;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new S;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new S;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new S;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new b;return e.source=this,e}}return e.create=(e,t)=>new A(e,t),e})();class A extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function R(e){return e&&"function"==typeof e.schedule}class O extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},I=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const V=P(),D=e=>t=>{const n=e[V]();for(;;){const e=n.next();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},M=e=>t=>{const n=e[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},U=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const L=e=>{if(e instanceof b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[_])return M(e);if(U(e))return N(e);if(j(e))return I(e);if(e&&"function"==typeof e[V])return D(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new O(e,n,r)){if(!s.closed)return L(t)(s)}class H extends g{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function $(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new B(e,this.project,this.thisArg))}}class B extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new b(t?n=>{const r=new d;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:N(e))}function G(e,t){if(!t)return e instanceof b?e:new b(L(e));if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[_]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:M(e))}(e,t);if(j(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:I(e))}(e,t);if(U(e))return q(e,t);if(function(e){return e&&"function"==typeof e[V]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[V](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const i=s.next();e=i.value,t=i.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:D(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function W(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(W((n,r)=>G(e(n,r)).pipe($((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new Z(e,n)))}class Z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends H{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new O(this,void 0,void 0);this.destination.add(r),F(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function J(e=Number.POSITIVE_INFINITY){return W(K,e)}function Y(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return Y()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends T{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ue=oe("Self"),ce=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const _e=de({__forward_ref__:de});function ye(e){return e.__forward_ref__=ye,e.toString=function(){return me(this())},e}function ve(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(_e)&&t.__forward_ref__===ye?t():e}const we="undefined"!=typeof globalThis&&globalThis,be="undefined"!=typeof window&&window,Ce="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,Se=we||Ee||be||Ce;class xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new xe("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Re="ngTokenPath",Oe=/\n/gm,Ne="\u0275",Ie="__source",Pe=de({provide:String,useValue:de});let Ve,De=void 0;function Me(e){const t=De;return De=e,t}function Ue(e,t=he.Default){return(Ve||function(e,t=he.Default){if(void 0===De)throw new Error("inject() must be called from an injection context");return null===De?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):De.get(e,t&he.Optional?null:void 0,t)})(e,t)}class je{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function Le(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ne?e.substr(2):e;let s=me(t);if(t instanceof Array)s=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Oe,"\n ")}`}class Fe{}class He{}function $e(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ze(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Be=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),qe=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))(),Ge="ngDebugContext",We="ngOriginalError",Ze="ngErrorLogger";function Qe(e){return e[Ge]}function Ke(e){return e[We]}function Je(e,...t){e.error(...t)}class Ye{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ze]||Je}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Qe(e)?Qe(e):this._findContext(Ke(e)):null}_findOriginalError(e){let t=Ke(e);for(;t&&Ke(t);)t=Ke(t);return t}}let Xe=!0,et=!1;function tt(){return et=!0,Xe}class nt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const rt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,st=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function it(e){return(e=String(e)).match(rt)||e.match(st)?e:(tt()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ot(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function at(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const lt=ot("area,br,col,hr,img,wbr"),ut=ot("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ct=ot("rp,rt"),ht=at(ct,ut),dt=at(lt,at(ut,ot("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),at(ct,ot("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ht),pt=ot("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ft=ot("srcset"),gt=at(pt,ft,ot("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ot("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),mt=ot("script,style,template");class _t{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!dt.hasOwnProperty(t))return this.sanitizedSomething=!0,!mt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!gt.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;pt[i]&&(o=it(o)),ft[i]&&(r=o,o=(r=String(r)).split(",").map(e=>it(e.trim())).join(", ")),this.buf.push(" ",t,'="',wt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();dt.hasOwnProperty(t)&&!lt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(wt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const yt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vt=/([^\#-~ |!])/g;function wt(e){return e.replace(/&/g,"&").replace(yt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(vt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let bt;function Ct(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Et=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class St{}const xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Tt=/^url\(([^)]+)\)$/,kt=/([A-Z])/g;function At(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Rt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ot(),e})();const Ot=(...e)=>{},Nt=new xe("The presence of this token marks an injector as being the root injector."),It=function(e,t,n){return new Lt(e,t,n)};let Pt=(()=>{class e{static create(e,t){return Array.isArray(e)?It(e,t,""):It(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ke,e.NULL=new je,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>Ue(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Vt=function(e){return e},Dt=[],Mt=Vt,Ut=function(){return Array.prototype.slice.call(arguments)},jt="\u0275";class Lt{constructor(e,t=Pt.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Pt,{token:Pt,fn:Vt,deps:Dt,value:this,useNew:!1}),r.set(Te,{token:Te,fn:Vt,deps:Dt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ve(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Ht("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Ht("Unexpected provider",n);{let e=ve(n.provide);const r=function(e){const t=function(e){let t=Dt;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=ve(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof le||n==le?r|=1:n instanceof ce||n==ce?r&=-3:n instanceof ue||n==ue?r&=-5:s=n instanceof ae?n.token:ve(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:ve(e.useExisting),options:6}];else if(!(n||Pe in e))throw Ht("'deps' required",e);return t}(e);let n=Vt,r=Dt,s=!1,i=ve(e.provide);if(Pe in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=ve(e.useClass);else{if("function"!=typeof i)throw Ht("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Ut)throw Ft(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Ut,value:Dt});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Ut)throw Ft(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let a;if(!n||o&he.SkipSelf)o&he.Self||(a=s.get(t,i,he.Default));else{if((a=n.value)==Mt)throw Error(jt+"Circular dependency");if(a===Dt){n.value=Mt;let t=void 0,i=n.useNew,o=n.fn,l=n.deps,u=Dt;if(l.length){u=[];for(let t=0;t<l.length;t++){const n=l[t],i=n.options,o=2&i?r.get(n.token):void 0;u.push(e(n.token,o,r,o||4&i?s:Pt.NULL,1&i?null:Pt.THROW_IF_NOT_FOUND,he.Default))}}n.value=a=i?new o(...u):o.apply(t,u)}}return a}(t,n,r,s,i,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[Ae]=a[Ae]||[]).unshift(t),n&&n.value==Mt&&(n.value=Dt),a}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[Ae];throw t[Ie]&&s.unshift(t[Ie]),e.message=Le("\n"+e.message,s,"StaticInjectorError",r),e[Re]=s,e[Ae]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Ft(e){return Ht("Cannot mix multi providers and regular providers",e)}function Ht(e,t){return new Error(Le(e,t,"StaticInjectorError"))}const $t=new xe("AnalyzeForEntryComponents");let zt=null;function Bt(){if(!zt){const e=Se.Symbol;if(e&&e.iterator)zt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(zt=n)}}}return zt}function qt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Gt(e,t){const n=Zt(e),r=Zt(t);if(n&&r)return function(e,t,n){const r=e[Bt()](),s=t[Bt()]();for(;;){const e=r.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Gt);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||qt(e,t)}}class Wt{constructor(e){this.wrapped=e}static wrap(e){return new Wt(e)}static unwrap(e){return Wt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Wt}}function Zt(e){return!!Qt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Bt()in e)}function Qt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Kt(e){return!!e&&"function"==typeof e.then}function Jt(e){return!!e&&"function"==typeof e.subscribe}class Yt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class Xt{}class en{}function tn(e){const t=Error(`No component factory found for ${me(e)}. Did you add it to @NgModule.entryComponents?`);return t[nn]=e,t}const nn="ngComponent";class rn{resolveComponentFactory(e){throw tn(e)}}let sn=(()=>{class e{}return e.NULL=new rn,e})();class on{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw tn(e);return new an(t,this._ngModule)}}class an extends en{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function ln(...e){}let un=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>cn(e),e})();const cn=ln;class hn{}class dn{}const pn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gn(),e})();const gn=ln;class mn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const _n=new mn("8.2.4");class yn{constructor(){}supports(e){return Zt(e)}create(e){return new wn(e)}}const vn=(e,t)=>t;class wn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||vn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<Sn(n,r,s)?t:n,o=Sn(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Zt(e))throw new Error(`Error trying to diff '${me(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&qt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),qt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Bt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&qt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),qt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(qt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(qt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new bn(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new En),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new En),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bn{constructor(e,t){this.item=e,this.trackById=t,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 Cn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&qt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class En{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Cn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class xn{constructor(){}supports(e){return e instanceof Map||Qt(e)}create(){return new Tn}}class Tn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Qt(e)))throw new Error(`Error trying to diff '${me(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);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 kn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){qt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class kn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let An=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new yn])}),e})(),Rn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new le]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new e([new xn])}),e})();const On=[new xn],Nn=new An([new yn]),In=new Rn(On);let Pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Vn(e,un),e})();const Vn=ln;let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mn(e,un),e})();const Mn=ln;function Un(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return jn(n,t),n}(s,e)}function jn(e,t){e[Ge]=t,e[Ze]=t.logError.bind(t)}function Ln(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Fn(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function Hn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function $n(e,t){return e.nodes[t]}function zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Gn(e,t){return e.nodes[t]}const Wn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zn=()=>{},Qn=new Map;function Kn(e){let t=Qn.get(e);return t||(t=me(e)+"_"+Qn.size,Qn.set(e,t)),t}const Jn="$$undefined",Yn="$$empty";function Xn(e){return{id:Jn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let er=0;function tr(e,t,n,r){return!(!(2&e.state)&&qt(e.oldValues[t.bindingIndex+n],r))}function nr(e,t,n,r){return!!tr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function rr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Gt(s,r)){const i=t.bindings[n].name;throw Un(Wn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function sr(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ir(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function or(e,t,n,r){try{return sr(33554432&e.def.nodes[t].flags?zn(e,t).componentView:e),Wn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function ar(e){return e.parent?zn(e.parent,e.parentNodeDef.nodeIndex):null}function lr(e){return e.parent?e.parentNodeDef.parent:null}function ur(e,t){switch(201347067&t.flags){case 1:return zn(e,t.nodeIndex).renderElement;case 2:return $n(e,t.nodeIndex).renderText}}function cr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function hr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function dr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<<e%32}(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function pr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Ie,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Kn(n)}})}function fr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Be.Native?zn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const gr=new WeakMap;function mr(e){let t=gr.get(e);return t||((t=e(()=>Zn)).factory=e,gr.set(e,t)),t}function _r(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(ur(e,e.def.lastRenderRootNode))),yr(e,t,0,e.def.nodes.length-1,n,r,s)}function yr(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&wr(e,n,t,s,i,o),a+=n.childCount}}function vr(e,t,n,r,s,i){let o=e;for(;o&&!cr(o);)o=o.parent;const a=o.parent,l=lr(o),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&wr(a,e,n,r,s,i),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)br(e,o[t],n,r,s,i)}}function wr(e,t,n,r,s,i){if(8&t.flags)vr(e,t.ngContent.index,n,r,s,i);else{const o=ur(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&br(e,o,n,r,s,i),32&t.bindingFlags&&br(zn(e,t.nodeIndex).componentView,o,n,r,s,i)):br(e,o,n,r,s,i),16777216&t.flags){const o=zn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)_r(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&yr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function br(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const Cr=/^:([^:]+):(.+)$/;function Er(e){if(":"===e[0]){const t=e.match(Cr);return[t[1],t[2]]}return["",e]}function Sr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const xr=new Object,Tr=Kn(Pt),kr=Kn(Te),Ar=Kn(Fe);function Rr(e,t,n,r){return n=ve(n),{index:-1,deps:pr(r,me(t)),flags:e,token:t,value:n}}function Or(e,t,n=Pt.THROW_IF_NOT_FOUND){const r=Me(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Tr:case kr:case Ar:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Nr(e,a)),t===xr?void 0:t}if((l=fe(t.token))&&(s=e,null!=(i=l).providedIn&&(function(e,t){return e._def.modules.indexOf(i.providedIn)>-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=xr,e._providers[n]=Nr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Me(r)}var s,i}function Nr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Or(e,n[0]));case 2:return new t(Or(e,n[0]),Or(e,n[1]));case 3:return new t(Or(e,n[0]),Or(e,n[1]),Or(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=Or(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Or(e,n[0]));case 2:return t(Or(e,n[0]),Or(e,n[1]));case 3:return t(Or(e,n[0]),Or(e,n[1]),Or(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=Or(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=Or(e,t.deps[0]);break;case 256:n=t.value}return n===xr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?xr:n}function Ir(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,ze(n,t),Wn.dirtyParentQueries(r),Vr(r),r}function Pr(e,t,n){const r=t?ur(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);_r(n,2,s,i,void 0)}function Vr(e){_r(e,3,null,null,void 0)}const Dr=new Object;function Mr(e,t,n,r,s,i){return new Ur(e,t,n,r,s,i)}class Ur extends en{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=mr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Wn.createRootView(e,t||[],n,s,r,Dr),a=Bn(o,i).instance;return n&&o.renderer.setAttribute(zn(o,0).renderElement,"ng-version",_n.full),new jr(o,new $r(o),a)}}class jr extends Xt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new un(zn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Lr(e,t,n){return new Fr(e,t,n)}class Fr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new un(this._data.renderElement)}get injector(){return new Gr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=lr(e),e=e.parent;return e?new Gr(e,t):new Gr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Ir(this._data,e);Wn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new $r(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof an||(s=i.get(Fe));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,$e(s,n,r),function(e,t){const n=ar(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),Wn.dirtyParentQueries(r),Pr(t,n>0?s[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const s=e.viewContainer._embeddedViews,i=s[n];ze(s,n),null==r&&(r=s.length),$e(s,r,i),Wn.dirtyParentQueries(i),Vr(i),Pr(e,r>0?s[r-1]:null,i)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Ir(this._data,e);t&&Wn.destroyView(t)}detach(e){const t=Ir(this._data,e);return t?new $r(t):null}}function Hr(e){return new $r(e)}class $r{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return _r(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){sr(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Wn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Wn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Wn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Vr(this._view),Wn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function zr(e,t){return new Br(e,t)}class Br extends Pn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new $r(Wn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new un(zn(this._parentView,this._def.nodeIndex).renderElement)}}function qr(e,t){return new Gr(e,t)}class Gr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Pt.THROW_IF_NOT_FOUND){return Wn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Kn(e)},t)}}function Wr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=zn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return $n(e,n.nodeIndex).renderText;if(20240&n.flags)return Bn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Zr(e){return new Qr(e.renderer)}class Qr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Er(t),s=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,s]=Er(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Kr(e,t,n,r){return new Jr(e,t,n,r)}class Jr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=Nr(e,s))}}(this)}get(e,t=Pt.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),Or(this,{token:e,tokenKey:Kn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(sn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${me(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==xr){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Yr=Kn(hn),Xr=Kn(fn),es=Kn(un),ts=Kn(Dn),ns=Kn(Pn),rs=Kn(Rt),ss=Kn(Pt),is=Kn(Te);function os(e,t,n,r,s,i,o,a){const l=[];if(o)for(let c in o){const[e,t]=o[c];l[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return ls(e,t|=16384,n,r,s,s,i,l,u)}function as(e,t,n,r,s){return ls(-1,e,t,0,n,r,s)}function ls(e,t,n,r,s,i,o,a,l){const{matchedQueries:u,references:c,matchedQueryIds:h}=dr(n);l||(l=[]),a||(a=[]),i=ve(i);const d=pr(o,me(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Sr(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function us(e,t){return ps(e,t)}function cs(e,t){let n=e;for(;n.parent&&!cr(n);)n=n.parent;return fs(n.parent,lr(n),!0,t.provider.value,t.provider.deps)}function hs(e,t){const n=fs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!Jt(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(ds(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function ds(e,t,n){return r=>or(e,t,n,r)}function ps(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return fs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ms(e,t,n,s[0]));case 2:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]));case 3:return r(ms(e,t,n,s[0]),ms(e,t,n,s[1]),ms(e,t,n,s[2]));default:const o=Array(i);for(let r=0;r<i;r++)o[r]=ms(e,t,n,s[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return ms(e,t.parent,n,r.deps[0]);case 256:return r.value}}function fs(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(ms(e,t,n,s[0]));case 2:return new r(ms(e,t,n,s[0]),ms(e,t,n,s[1]));case 3:return new r(ms(e,t,n,s[0]),ms(e,t,n,s[1]),ms(e,t,n,s[2]));default:const o=new Array(i);for(let r=0;r<i;r++)o[r]=ms(e,t,n,s[r]);return new r(...o)}}const gs={};function ms(e,t,n,r,s=Pt.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===rs&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case Yr:return Zr(_s(a,t,n));case Xr:return _s(a,t,n).renderer;case es:return new un(zn(a,t.nodeIndex).renderElement);case ts:return zn(a,t.nodeIndex).viewContainer;case ns:if(t.element.template)return zn(a,t.nodeIndex).template;break;case rs:return Hr(_s(a,t,n));case ss:case is:return qr(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Bn(a,e.nodeIndex);return t||(t={instance:ps(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=cr(a),t=lr(a),a=a.parent,4&r.flags&&(a=null)}const l=i.root.injector.get(r.token,gs);return l!==gs||s===gs?l:i.root.ngModule.injector.get(r.token,s)}function _s(e,t,n){let r;if(n)r=zn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!cr(r);)r=r.parent;return r}function ys(e,t,n,r,s,i){if(32768&n.flags){const t=zn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=Wt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Yt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function vs(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&bs(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=ws(e,o,t,r)),o=o.parent}}function ws(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&bs(e,s,t.flags&n,r++),s+=t.childCount}return r}function bs(e,t,n,r){const s=Bn(e,t);if(!s)return;const i=s.instance;i&&(Wn.setCurrentNode(e,t),1048576&n&&Hn(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Hn(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Cs=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qe}),Es={},Ss=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),xs=void 0;var Ts=["en",[["a","p"],["AM","PM"],xs],[["AM","PM"],xs,xs],[["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"]],xs,[["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"]],xs,[["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}",xs,"{1} 'at' {0}",xs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const ks="en-US";let As=ks;function Rs(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(As=e.toLowerCase().replace(/_/g,"-"))}class Os extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Ns(){return this._results[Bt()]()}class Is{constructor(){this.dirty=!0,this._results=[],this.changes=new Os,this.length=0;const e=Bt(),t=Is.prototype;t[e]||(t[e]=Ns)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),e(s,n)):n!==t&&n.push(s)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Ps=new xe("Application Initializer");class Vs{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Kt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Ds=new xe("AppId");function Ms(){return`${Us()}${Us()}${Us()}`}function Us(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const js=new xe("Platform Initializer"),Ls=new xe("Platform ID"),Fs=new xe("appBootstrapListener");class Hs{log(e){console.log(e)}warn(e){console.warn(e)}}const $s=new xe("LocaleId"),zs=!1;function Bs(){throw new Error("Runtime compiler is not loaded")}const qs=Bs,Gs=Bs,Ws=Bs,Zs=Bs;class Qs{constructor(){this.compileModuleSync=qs,this.compileModuleAsync=Gs,this.compileModuleAndAllComponentsSync=Ws,this.compileModuleAndAllComponentsAsync=Zs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ks{}let Js,Ys;function Xs(){const e=Se.wtf;return!(!e||!(Js=e.trace)||(Ys=Js.events,0))}const ei=Xs(),ti=ei?function(e,t=null){return Ys.createScope(e,t)}:(e,t)=>(function(e,t){return null}),ni=ei?function(e,t){return Js.leaveScope(e,t),t}:(e,t)=>t,ri=(()=>Promise.resolve(0))();function si(e){"undefined"==typeof Zone?ri.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ii{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,s,i,o)=>{try{return ui(t),e.invokeTask(r,s,i,o)}finally{ci(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return ui(t),e.invoke(r,s,i,o,a)}finally{ci(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,li(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ii.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ii.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,ai,oi,oi);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function oi(){}const ai={};function li(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ui(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ci(e){e._nesting--,li(e)}class hi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class di{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{ii.assertNotInAngularZone(),si(()=>{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())si(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class pi{constructor(){this._applications=new Map,mi.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return mi.findTestabilityInTree(this,e,t)}}class fi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let gi,mi=new fi,_i=function(e,t,n){return e.get(Ks).createCompiler([t]).compileModuleAsync(n)},yi=function(e){return e instanceof an};const vi=new xe("AllowMultipleToken");class wi{constructor(e,t){this.name=e,this.token=t}}function bi(e,t,n=[]){const r=`Platform: ${t}`,s=new xe(r);return(t=[])=>{let i=Ci();if(!i||i.injector.get(vi,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(gi&&!gi.destroyed&&!gi.injector.get(vi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gi=e.get(Ei);const t=e.get(js,null);t&&t.forEach(e=>e())}(Pt.create({providers:e,name:r}))}return function(e){const t=Ci();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Ci(){return gi&&!gi.destroyed?gi:null}class Ei{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new hi:("zone.js"===s?void 0:s)||new ii({enableLongStackTrace:tt()}),r=[{provide:ii,useValue:n}];var s;return n.run(()=>{const t=Pt.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Ye,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return zs&&Rs(s.injector.get($s,ks)||ks),s.onDestroy(()=>Ti(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Kt(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Vs);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Si({},t);return _i(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(xi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Si(e,t){return Array.isArray(t)?t.reduce(Si,e):Object.assign({},e,t)}let xi=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,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=tt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ii.assertNotInAngularZone(),si(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ii.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return R(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:J(t)(q(e,n))}(o,a.pipe(e=>Y()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(e))))}bootstrap(e,t){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=e instanceof en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=yi(n)?null:this._injector.get(Fe),s=n.create(Pt.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(di,null);return i&&s.injector.get(pi).registerApplication(s.location.nativeElement,i),this._loadComponent(s),tt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ni(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ti(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Fs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ti(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ti("ApplicationRef#tick()"),e})();function Ti(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ki{}const Ai="#",Ri="NgFactory";class Oi{}const Ni={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Ii{constructor(e,t){this._compiler=e,this._config=t||Ni}load(e){return!zs&&this._compiler instanceof Qs?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split(Ai);return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Pi(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split(Ai),s=Ri;return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Pi(e,t,r))}}function Pi(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Vi{constructor(e,t){this.name=e,this.callback=t}}class Di{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Mi&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Mi extends Di{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Mi&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Mi&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Mi&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Mi)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const Ui=new Map,ji=function(e){return Ui.get(e)||null};function Li(e){Ui.set(e.nativeNode,e)}const Fi=bi(null,"core",[{provide:Ls,useValue:"unknown"},{provide:Ei,deps:[Pt]},{provide:pi,deps:[]},{provide:Hs,deps:[]}]);function Hi(){return Nn}function $i(){return In}function zi(e){return e?(zs&&Rs(e),e):ks}function Bi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class qi{constructor(e){}}function Gi(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=dr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?mr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Zn},provider:null,text:null,query:null,ngContent:null}}function Wi(e,t,n,r,s,i,o=[],a,l,u,c,h){u||(u=Zn);const{matchedQueries:d,references:p,matchedQueryIds:f}=dr(n);let g=null,m=null;i&&([g,m]=Er(i)),a=a||[];const _=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t,n]=a[w],[r,s]=Er(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}_[w]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}l=l||[];const y=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t]=l[w];y[w]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=Er(e);return[n,r,t]});return h=function(e){if(e&&e.id===Jn){const t=null!=e.encapsulation&&e.encapsulation!==Be.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${er++}`:Yn}return e&&e.id===Yn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:_,bindingFlags:Sr(_),outputs:y,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Zn},provider:null,text:null,query:null,ngContent:null}}function Zi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=fr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===Be.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];i.setAttribute(o,t,n,e)}return o}function Qi(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Ki(e,n.nodeIndex,(i=a.eventName,(s=a.target)?`${s}:${i}`:i));let u=a.target,c=e;"component"===a.target&&(u=null,c=t);const h=c.renderer.listen(u||r,a.eventName,l);e.disposables[n.outputIndex+o]=h}var s,i}function Ki(e,t,n){return r=>or(e,t,n,r)}function Ji(e,t,n,r){if(!nr(e,t,n,r))return!1;const s=t.bindings[n],i=zn(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(Et.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function Yi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&hr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Gn(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Gn(e,n).setDirty(),n+=t.childCount}}function Xi(e,t){const n=Gn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=eo(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Bn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=eo(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let a=0;a<i.length;a++){const e=i[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function eo(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(to(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=zn(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(eo(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=ar(i);o&&o===n&&eo(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];eo(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function to(e,t,n){if(null!=n)switch(n){case 1:return zn(e,t.nodeIndex).renderElement;case 0:return new un(zn(e,t.nodeIndex).renderElement);case 2:return zn(e,t.nodeIndex).template;case 3:return zn(e,t.nodeIndex).viewContainer;case 4:return Bn(e,t.nodeIndex).instance}}function no(e,t,n){const r=fr(e,t,n);r&&vr(e,n.ngContent.index,1,r,null,void 0)}function ro(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function so(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=fr(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function io(e,t){return(null!=e?e.toString():"")+t.suffix}function oo(e,t,n,r){let s=0,i=0,o=0,a=0,l=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=s,e.outputIndex=i,e.renderParent=c,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(lo(u,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[Kn(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Kn(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)u=e,ao(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&ao(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Zn,updateRenderer:r||Zn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function ao(e){return 0!=(1&e.flags)&&null===e.element.name}function lo(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function uo(e,t,n,r){const s=po(e.root,e.renderer,e,t,n);return fo(s,e.component,r),go(s),s}function co(e,t,n){const r=po(e,e.renderer,null,null,t);return fo(r,n,n),go(r),r}function ho(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,po(e.root,i,e,t.element.componentProvider,n)}function po(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function fo(e,t,n){e.component=t,e.context=n}function go(e){let t;cr(e)&&(t=zn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(Wn.setCurrentNode(e,s),201347067&i.flags){case 1:const n=Zi(e,t,i);let a=void 0;if(33554432&i.flags){const t=mr(i.element.componentView);a=Wn.createComponentView(e,i,t,n)}Qi(e,a,i,n),o={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?zr(e,i):void 0},16777216&i.flags&&(o.viewContainer=Lr(e,i,o));break;case 2:o=so(e,t,i);break;case 512:case 1024:case 2048:case 256:(o=r[s])||4096&i.flags||(o={instance:us(e,i)});break;case 16:o={instance:cs(e,i)};break;case 16384:(o=r[s])||(o={instance:hs(e,i)}),32768&i.flags&&fo(zn(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Is;break;case 8:no(e,t,i),o=void 0}r[s]=o}So(e,Eo.CreateViewNodes),Ao(e,201326592,268435456,0)}function mo(e){vo(e),Wn.updateDirectives(e,1),xo(e,Eo.CheckNoChanges),Wn.updateRenderer(e,1),So(e,Eo.CheckNoChanges),e.state&=-97}function _o(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Fn(e,0,256),vo(e),Wn.updateDirectives(e,0),xo(e,Eo.CheckAndUpdate),Ao(e,67108864,536870912,0);let t=Fn(e,256,512);vs(e,2097152|(t?1048576:0)),Wn.updateRenderer(e,0),So(e,Eo.CheckAndUpdate),Ao(e,134217728,536870912,0),vs(e,8388608|((t=Fn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Fn(e,768,1024)}function yo(e,t,n,r,s,i,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&Ji(e,t,0,n)&&(p=!0),d>1&&Ji(e,t,1,r)&&(p=!0),d>2&&Ji(e,t,2,s)&&(p=!0),d>3&&Ji(e,t,3,i)&&(p=!0),d>4&&Ji(e,t,4,o)&&(p=!0),d>5&&Ji(e,t,5,a)&&(p=!0),d>6&&Ji(e,t,6,l)&&(p=!0),d>7&&Ji(e,t,7,u)&&(p=!0),d>8&&Ji(e,t,8,c)&&(p=!0),d>9&&Ji(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,a,l,u,c,h);case 2:return function(e,t,n,r,s,i,o,a,l,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&nr(e,t,0,n)&&(d=!0),f>1&&nr(e,t,1,r)&&(d=!0),f>2&&nr(e,t,2,s)&&(d=!0),f>3&&nr(e,t,3,i)&&(d=!0),f>4&&nr(e,t,4,o)&&(d=!0),f>5&&nr(e,t,5,a)&&(d=!0),f>6&&nr(e,t,6,l)&&(d=!0),f>7&&nr(e,t,7,u)&&(d=!0),f>8&&nr(e,t,8,c)&&(d=!0),f>9&&nr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=io(n,p[0])),f>1&&(d+=io(r,p[1])),f>2&&(d+=io(s,p[2])),f>3&&(d+=io(i,p[3])),f>4&&(d+=io(o,p[4])),f>5&&(d+=io(a,p[5])),f>6&&(d+=io(l,p[6])),f>7&&(d+=io(u,p[7])),f>8&&(d+=io(c,p[8])),f>9&&(d+=io(h,p[9]));const g=$n(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,s,i,o,a,l,u,c,h);case 16384:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=Bn(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&tr(e,t,0,n)&&(f=!0,g=ys(e,d,t,0,n,g)),m>1&&tr(e,t,1,r)&&(f=!0,g=ys(e,d,t,1,r,g)),m>2&&tr(e,t,2,s)&&(f=!0,g=ys(e,d,t,2,s,g)),m>3&&tr(e,t,3,i)&&(f=!0,g=ys(e,d,t,3,i,g)),m>4&&tr(e,t,4,o)&&(f=!0,g=ys(e,d,t,4,o,g)),m>5&&tr(e,t,5,a)&&(f=!0,g=ys(e,d,t,5,a,g)),m>6&&tr(e,t,6,l)&&(f=!0,g=ys(e,d,t,6,l,g)),m>7&&tr(e,t,7,u)&&(f=!0,g=ys(e,d,t,7,u,g)),m>8&&tr(e,t,8,c)&&(f=!0,g=ys(e,d,t,8,c,g)),m>9&&tr(e,t,9,h)&&(f=!0,g=ys(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&Hn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,a,l,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&nr(e,t,0,n)&&(p=!0),f>1&&nr(e,t,1,r)&&(p=!0),f>2&&nr(e,t,2,s)&&(p=!0),f>3&&nr(e,t,3,i)&&(p=!0),f>4&&nr(e,t,4,o)&&(p=!0),f>5&&nr(e,t,5,a)&&(p=!0),f>6&&nr(e,t,6,l)&&(p=!0),f>7&&nr(e,t,7,u)&&(p=!0),f>8&&nr(e,t,8,c)&&(p=!0),f>9&&nr(e,t,9,h)&&(p=!0),p){const p=qn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,s);break;case 4:g=e.transform(r,s,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,a);break;case 7:g=e.transform(r,s,i,o,a,l);break;case 8:g=e.transform(r,s,i,o,a,l,u);break;case 9:g=e.transform(r,s,i,o,a,l,u,c);break;case 10:g=e.transform(r,s,i,o,a,l,u,c,h)}}p.value=g}return p}(e,t,n,r,s,i,o,a,l,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)Ji(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)nr(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=io(n[e],r[e]);s=t.text.prefix+s;const i=$n(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=Bn(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let a=0;a<n.length;a++)tr(e,t,a,n[a])&&(i=!0,o=ys(e,r,t,a,n[a],o));return o&&s.ngOnChanges(o),65536&t.flags&&Hn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)nr(e,t,i,n[i])&&(s=!0);if(s){const s=qn(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let t=0;t<n.length;t++)i[r[t].name]=n[t];break;case 128:const e=n[0],s=n.slice(1);i=e.transform(...s)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function vo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=zn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,ir(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function wo(e,t,n,r,s,i,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings.length;d>0&&rr(e,t,0,n),d>1&&rr(e,t,1,r),d>2&&rr(e,t,2,s),d>3&&rr(e,t,3,i),d>4&&rr(e,t,4,o),d>5&&rr(e,t,5,a),d>6&&rr(e,t,6,l),d>7&&rr(e,t,7,u),d>8&&rr(e,t,8,c),d>9&&rr(e,t,9,h)}(e,t,r,s,i,o,a,l,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)rr(e,t,r,n[r])}(e,t,r),!1}function bo(e,t){if(Gn(e,t.nodeIndex).dirty)throw Un(Wn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Co(e){if(!(128&e.state)){if(xo(e,Eo.Destroy),So(e,Eo.Destroy),vs(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ar(e);if(t){const n=t.template._projectedViews;n&&(ze(n,n.indexOf(e)),Wn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(zn(e,n).renderElement):2&t.flags?e.renderer.destroyNode($n(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Gn(e,n).destroy()}}(e),cr(e)&&e.renderer.destroy(),e.state|=128}}const Eo=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function So(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?To(zn(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function xo(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=zn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)To(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function To(e,t){const n=e.state;switch(t){case Eo.CheckNoChanges:0==(128&n)&&(12==(12&n)?mo(e):64&n&&ko(e,Eo.CheckNoChangesProjectedViews));break;case Eo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?mo(e):64&n&&ko(e,t));break;case Eo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?_o(e):64&n&&ko(e,Eo.CheckAndUpdateProjectedViews));break;case Eo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?_o(e):64&n&&ko(e,t));break;case Eo.Destroy:Co(e);break;case Eo.CreateViewNodes:go(e)}}function ko(e,t){xo(e,t),So(e,t)}function Ao(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Wn.setCurrentNode(e,s.nodeIndex),r){case 0:Xi(e,s);break;case 1:bo(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let Ro=!1;function Oo(e,t,n,r,s,i){const o=s.injector.get(dn);return co(Io(e,s,o,t,n),r,i)}function No(e,t,n,r,s,i){const o=s.injector.get(dn),a=Io(e,s,new ca(o),t,n),l=$o(r);return la(Zo.create,co,null,[a,l,i])}function Io(e,t,n,r,s){const i=t.injector.get(St),o=t.injector.get(Ye),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:o}}function Po(e,t,n,r){const s=$o(n);return la(Zo.create,uo,null,[e,t,s,r])}function Vo(e,t,n,r){return n=jo.get(t.element.componentProvider.provider.token)||$o(n),la(Zo.create,ho,null,[e,t,n,r])}function Do(e,t,n,r){return Kr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Mo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=Mo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Uo.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=Mo.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=pr(s.deps),r.value=s.value)}if(Uo.size>0){let t=new Set(e.modules);Uo.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:pr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Kn(s)]=t}})}}(e=e.factory(()=>Zn)),e):e}(r))}const Mo=new Map,Uo=new Map,jo=new Map;function Lo(e){let t;Mo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Uo.set(e.token,e)}function Fo(e,t){const n=mr(t.viewDefFactory),r=mr(n.nodes[0].element.componentView);jo.set(e,r)}function Ho(){Mo.clear(),Uo.clear(),jo.clear()}function $o(e){if(0===Mo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&Mo.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Zn);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Mo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=pr(n.deps),e.value=n.value)}}}}function zo(e,t,n,r,s,i,o,a,l,u,c,h,d){const p=e.def.nodes[t];return yo(e,p,n,r,s,i,o,a,l,u,c,h,d),224&p.flags?qn(e,t).value:void 0}function Bo(e,t,n,r,s,i,o,a,l,u,c,h,d){const p=e.def.nodes[t];return wo(e,p,n,r,s,i,o,a,l,u,c,h,d),224&p.flags?qn(e,t).value:void 0}function qo(e){return la(Zo.detectChanges,_o,null,[e])}function Go(e){return la(Zo.checkNoChanges,mo,null,[e])}function Wo(e){return la(Zo.destroy,Co,null,[e])}const Zo=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let Qo,Ko,Jo;function Yo(e,t){Ko=e,Jo=t}function Xo(e,t,n,r){return Yo(e,t),la(Zo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ea(e,t){if(128&e.state)throw Ln(Zo[Qo]);return Yo(e,sa(e,0)),e.def.updateDirectives(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?na(e,i,r,s):ra(e,i,r,s),16384&i.flags&&Yo(e,sa(e,n)),224&i.flags?qn(e,i.nodeIndex).value:void 0},e)}function ta(e,t){if(128&e.state)throw Ln(Zo[Qo]);return Yo(e,ia(e,0)),e.def.updateRenderer(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?na(e,i,r,s):ra(e,i,r,s),3&i.flags&&Yo(e,ia(e,n)),224&i.flags?qn(e,i.nodeIndex).value:void 0},e)}function na(e,t,n,r){if(yo(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(kt,(...e)=>"-"+e[1].toLowerCase())}`)]=At(a))}const r=t.parent,a=zn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function ra(e,t,n,r){wo(e,t,n,...r)}function sa(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function ia(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class oa{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=lr(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return zn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return qr(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){aa(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&aa(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!cr(e);)e=e.parent;return e.parent?zn(e.parent,lr(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?ur(this.view,this.nodeDef):ur(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>++i===s?e.error.bind(e,...t):Zn),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function aa(e,t,n){for(let r in t.references)n[r]=to(e,t,t.references[r])}function la(e,t,n,r){const s=Qo,i=Ko,o=Jo;try{Qo=e;const l=t.apply(n,r);return Ko=i,Jo=o,Qo=s,l}catch(a){if(Qe(a)||!Ko)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),jn(e,t),e}(a,ua())}}function ua(){return Ko?new oa(Ko,Jo):null}class ca{constructor(e){this.delegate=e}createRenderer(e,t){return new ha(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class ha{constructor(e){this.delegate=e,this.debugContextFactory=ua,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=ji(e);Ui.delete(t.nativeNode),t instanceof Di&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new Mi(n,null,r);t.name=e,Li(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Li(new Di(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Li(new Di(t,null,n)),t}appendChild(e,t){const n=ji(e),r=ji(t);n&&r&&n instanceof Mi&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=ji(e),s=ji(t),i=ji(n);r&&s&&r instanceof Mi&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=ji(e),r=ji(t);n&&r&&n instanceof Mi&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=ua();return r&&Li(new Mi(n,null,r)),n}setAttribute(e,t,n,r){const s=ji(e);s&&s instanceof Mi&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=ji(e);r&&r instanceof Mi&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=ji(e);n&&n instanceof Mi&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=ji(e);n&&n instanceof Mi&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=ji(e);s&&s instanceof Mi&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=ji(e);r&&r instanceof Mi&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=ji(e);r&&r instanceof Mi&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=ji(e);r&&r.listeners.push(new Vi(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function da(e,t,n){return new pa(e,t,n)}class pa extends He{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(Ro)return;Ro=!0;const e=tt()?{setCurrentNode:Yo,createRootView:No,createEmbeddedView:Po,createComponentView:Vo,createNgModuleRef:Do,overrideProvider:Lo,overrideComponentView:Fo,clearOverrides:Ho,checkAndUpdateView:qo,checkNoChangesView:Go,destroyView:Wo,createDebugContext:(e,t)=>new oa(e,t),handleEvent:Xo,updateDirectives:ea,updateRenderer:ta}:{setCurrentNode:()=>{},createRootView:Oo,createEmbeddedView:uo,createComponentView:ho,createNgModuleRef:Kr,overrideProvider:Zn,overrideComponentView:Zn,clearOverrides:Zn,checkAndUpdateView:_o,checkNoChangesView:mo,destroyView:Co,createDebugContext:(e,t)=>new oa(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?zo:Bo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?zo:Bo,e)};Wn.setCurrentNode=e.setCurrentNode,Wn.createRootView=e.createRootView,Wn.createEmbeddedView=e.createEmbeddedView,Wn.createComponentView=e.createComponentView,Wn.createNgModuleRef=e.createNgModuleRef,Wn.overrideProvider=e.overrideProvider,Wn.overrideComponentView=e.overrideComponentView,Wn.clearOverrides=e.clearOverrides,Wn.checkAndUpdateView=e.checkAndUpdateView,Wn.checkNoChangesView=e.checkNoChangesView,Wn.destroyView=e.destroyView,Wn.resolveDep=ms,Wn.createDebugContext=e.createDebugContext,Wn.handleEvent=e.handleEvent,Wn.updateDirectives=e.updateDirectives,Wn.updateRenderer=e.updateRenderer,Wn.dirtyParentQueries=Yi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(mr(this._ngModuleDefFactory));return Wn.createNgModuleRef(this.moduleType,e||Pt.NULL,this._bootstrapComponents,t)}}class fa{}class ga{constructor(){this.title="myapp"}}class ma{}const _a=new xe("Location Initialized");class ya{}const va=new xe("appBaseHref");class wa{constructor(e,t){this._subject=new Os,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=wa.stripTrailingSlash(ba(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+wa.normalizeQueryParams(t))}normalize(e){return wa.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ba(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wa.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wa.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function ba(e){return e.replace(/\/index.html$/,"")}class Ca extends ya{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=wa.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+wa.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+wa.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class Ea extends ya{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return wa.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+wa.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+wa.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+wa.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const Sa=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),xa=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Es[t];if(n)return n;const r=t.split("-")[0];if(n=Es[r])return n;if("en"===r)return Ts;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ss.PluralCase]},Ta=new xe("UseV4Plurals");class ka{}class Aa extends ka{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):xa(t||this.locale)(e)){case Sa.Zero:return"zero";case Sa.One:return"one";case Sa.Two:return"two";case Sa.Few:return"few";case Sa.Many:return"many";default:return"other"}}}function Ra(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class Oa{}class Na{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Zt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let Ia=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Pa extends Ia{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class Va{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,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}}class Da{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){tt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Va(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Ma(e,n);t.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 Ma(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class Ma{constructor(e,t){this.record=e,this.view=t}}class Ua{constructor(e,t){this._viewContainer=e,this._context=new ja,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){La("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){La("ngIfElse",e),this._elseTemplateRef=e,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)))}}class ja{constructor(){this.$implicit=null,this.ngIf=null}}function La(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}class Fa{}const Ha=new xe("DocumentToken"),$a="server";let za=(()=>{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new Ba(Ue(Ha),window,Ue(Ye))}),e})();class Ba{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const qa=new b(e=>e.complete());function Ga(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):qa}function Wa(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Za(...e){let t=e[e.length-1];switch(R(t)?e.pop():t=void 0,e.length){case 0:return Ga(t);case 1:return t?q(e,t):Wa(e[0]);default:return q(e,t)}}class Qa extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(e){super.next(this._value=e)}}function Ka(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ka.prototype=Object.create(Error.prototype);const Ja=Ka,Ya={};class Xa{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new el(e,this.resultSelector))}}class el extends H{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Ya),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(F(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const i=this.values,o=this.toRespond?i[n]===Ya?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function tl(e){return new b(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?G(n):Ga()).subscribe(t)})}function nl(){return J(1)}function rl(e,t){return function(n){return n.lift(new sl(e,t))}}class sl{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new il(e,this.predicate,this.thisArg))}}class il extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function ol(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ol.prototype=Object.create(Error.prototype);const al=ol;function ll(e){return function(t){return 0===e?Ga():t.lift(new ul(e))}}class ul{constructor(e){if(this.total=e,this.total<0)throw new al}call(e,t){return t.subscribe(new cl(e,this.total))}}class cl extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function hl(e,t,n){return function(r){return r.lift(new dl(e,t,n))}}class dl{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new pl(e,this.nextOrObserver,this.error,this.complete))}}class pl extends g{constructor(e,t,n,s){super(e),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=n||y,this._tapComplete=s||y,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||y,this._tapError=t.error||y,this._tapComplete=t.complete||y)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const fl=(e=function(){return new Ja})=>hl({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function gl(e=null){return t=>t.lift(new ml(e))}class ml{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new _l(e,this.defaultValue))}}class _l extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function yl(e,t){const n=arguments.length>=2;return r=>r.pipe(e?rl((t,n)=>e(t,n,r)):K,ll(1),n?gl(t):fl(()=>new Ja))}function vl(e){return function(t){const n=new wl(e),r=t.lift(n);return n.caught=r}}class wl{constructor(e){this.selector=e}call(e,t){return t.subscribe(new bl(e,this.selector,this.caught))}}class bl extends H{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new O(this,void 0,void 0);this.add(r),F(this,n,void 0,void 0,r)}}}function Cl(e){return t=>0===e?Ga():t.lift(new El(e))}class El{constructor(e){if(this.total=e,this.total<0)throw new al}call(e,t){return t.subscribe(new Sl(e,this.total))}}class Sl extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function xl(e,t){const n=arguments.length>=2;return r=>r.pipe(e?rl((t,n)=>e(t,n,r)):K,Cl(1),n?gl(t):fl(()=>new Ja))}class Tl{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new kl(e,this.predicate,this.thisArg,this.source))}}class kl extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Al(e,t){return"function"==typeof t?n=>n.pipe(Al((n,r)=>G(e(n,r)).pipe($((e,s)=>t(n,e,r,s))))):t=>t.lift(new Rl(e))}class Rl{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ol(e,this.project))}}class Ol extends H{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new O(this,void 0,void 0);this.destination.add(s),this.innerSubscription=F(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,s){this.destination.next(t)}}function Nl(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Il(e,t,n))}}class Il{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Pl(e,this.accumulator,this.seed,this.hasSeed))}}class Pl extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Vl(e,t){return W(e,t,1)}class Dl{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Ml(e,this.callback))}}class Ml extends g{constructor(e,t){super(e),this.add(new d(t))}}let Ul=null;function jl(){return Ul}class Ll{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Fl extends Ll{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Hl={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},$l=3,zl={"\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"},Bl={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"},ql=(()=>{if(Se.Node)return Se.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Gl extends Fl{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Gl,Ul||(Ul=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Hl}contains(e,t){return ql.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===$l&&Bl.hasOwnProperty(t)&&(t=Bl[t]))}return zl[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Zl||(Zl=document.querySelector("base"))?Zl.getAttribute("href"):null;return null==t?null:(n=t,Wl||(Wl=document.createElement("a")),Wl.setAttribute("href",n),"/"===Wl.pathname.charAt(0)?Wl.pathname:"/"+Wl.pathname);var n}resetBaseElement(){Zl=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Ra(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Wl,Zl=null;function Ql(){return!!window.history.pushState}const Kl=new xe("TRANSITION_ID"),Jl=[{provide:Ps,useFactory:function(e,t,n){return()=>{n.get(Vs).donePromise.then(()=>{const n=jl();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Kl,Ha,Pt],multi:!0}];class Yl{static init(){var e;e=new Yl,mi=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?jl().isShadowRoot(t)?this.findTestabilityInTree(e,jl().getHost(t),!0):this.findTestabilityInTree(e,jl().parentElement(t),!0):null}}function Xl(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Se.ng=Se.ng||{})[e]=t)}const eu=(()=>({ApplicationRef:xi,NgZone:ii}))();function tu(e){return ji(e)}const nu=new xe("EventManagerPlugins");class ru{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}class su{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=jl().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class iu{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class ou extends iu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>jl().remove(e))}}const au={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/"},lu=/%COMP%/g,uu="_nghost-%COMP%",cu="_ngcontent-%COMP%";function hu(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?hu(e,s,n):(s=s.replace(lu,e),n.push(s))}return n}function du(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class pu{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new fu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Be.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new _u(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Be.Native:case Be.ShadowDom:return new yu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=hu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class fu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(au[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=au[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=au[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&pn.DashCase?e.style.setProperty(t,n,r&pn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&pn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){mu(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return mu(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,du(n)):this.eventManager.addEventListener(e,t,du(n))}}const gu=(()=>"@".charCodeAt(0))();function mu(e,t){if(e.charCodeAt(0)===gu)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class _u extends fu{constructor(e,t,n,r){super(e),this.component=n;const s=hu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=cu.replace(lu,r+"-"+n.id),this.hostAttr=uu.replace(lu,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class yu extends fu{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Be.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=hu(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const vu=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),wu=vu("addEventListener"),bu=vu("removeEventListener"),Cu={},Eu="FALSE",Su="ANGULAR",xu="addEventListener",Tu="removeEventListener",ku="__zone_symbol__propagationStopped",Au="__zone_symbol__stopImmediatePropagation",Ru=(()=>{const e="undefined"!=typeof Zone&&Zone[vu("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Ou=function(e){return!!Ru&&Ru.hasOwnProperty(e)},Nu=function(e){const t=Cu[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[ku];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};class Iu extends su{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return e===$a}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype[Au])return;const e=Event.prototype[Au]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ku]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[wu]||ii.isInAngularZone()&&!Ou(t))e[xu](t,r,!1);else{let n=Cu[t];n||(n=Cu[t]=vu(Su+t+Eu));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=Ou(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[wu](t,Nu,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[bu];if(!r)return e[Tu].apply(e,[t,n,!1]);let s=Cu[t],i=s&&e[s];if(!i)return e[Tu].apply(e,[t,n,!1]);let o=!1;for(let a=0;a<i.length;a++)if(i[a].handler===n){o=!0,i.splice(a,1);break}o?0===i.length&&r.apply(e,[t,Nu,!1]):e[Tu].apply(e,[t,n,!1])}}const Pu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Vu=new xe("HammerGestureConfig"),Du=new xe("HammerLoader");class Mu{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class Uu extends su{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!Pu.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const ju=["alt","control","meta","shift"],Lu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Fu extends su{constructor(e){super(e)}supports(e){return null!=Fu.parseEventName(e)}addEventListener(e,t,n){const r=Fu.parseEventName(t),s=Fu.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jl().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Fu._normalizeKey(t.pop());let s="";if(ju.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s+=e+".")}),s+=r,0!=t.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(e){let t="",n=jl().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ju.forEach(r=>{r!=n&&(0,Lu[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{Fu.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class Hu{}class $u extends Hu{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Et.NONE:return t;case Et.HTML:return t instanceof Bu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{bt=bt||new nt(e);let r=t?String(t):"";n=bt.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=bt.getInertBodyElement(r)}while(r!==i);const o=new _t,a=o.sanitizeChildren(Ct(n)||n);return tt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=Ct(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case Et.STYLE:return t instanceof qu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Tt);return t&&it(t[1])===t[1]||e.match(xt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(tt()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case Et.SCRIPT:if(t instanceof Gu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Et.URL:return t instanceof Zu||t instanceof Wu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),it(String(t)));case Et.RESOURCE_URL:if(t instanceof Zu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof zu)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Bu(e)}bypassSecurityTrustStyle(e){return new qu(e)}bypassSecurityTrustScript(e){return new Gu(e)}bypassSecurityTrustUrl(e){return new Wu(e)}bypassSecurityTrustResourceUrl(e){return new Zu(e)}}class zu{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Bu extends zu{getTypeName(){return"HTML"}}class qu extends zu{getTypeName(){return"Style"}}class Gu extends zu{getTypeName(){return"Script"}}class Wu extends zu{getTypeName(){return"URL"}}class Zu extends zu{getTypeName(){return"ResourceURL"}}const Qu=bi(Fi,"browser",[{provide:Ls,useValue:"browser"},{provide:js,useValue:function(){Gl.makeCurrent(),Yl.init()},multi:!0},{provide:ma,useClass:class extends ma{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=jl().getLocation(),this._history=jl().getHistory()}getBaseHrefFromDOM(){return jl().getBaseHref(this._doc)}onPopState(e){jl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){jl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!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(e){this.location.pathname=e}pushState(e,t,n){Ql()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Ql()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}},deps:[Ha]},{provide:Ha,useFactory:function(){return document},deps:[]}]);function Ku(){return new Ye}class Ju{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:Ju,providers:[{provide:Ds,useValue:e.appId},{provide:Kl,useExisting:Ds},Jl]}}}"undefined"!=typeof window&&window;class Yu{constructor(e,t){this.id=e,this.url=t}}class Xu extends Yu{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ec extends Yu{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tc extends Yu{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nc extends Yu{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rc extends Yu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sc extends Yu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ic extends Yu{constructor(e,t,n,r,s){super(e,t),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 oc extends Yu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ac extends Yu{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lc{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class uc{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cc{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hc{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dc{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pc{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fc{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class gc{}const mc="primary";class _c{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function yc(e){return new _c(e)}const vc="ngNavigationCancelingError";function wc(e){const t=Error("NavigationCancelingError: "+e);return t[vc]=!0,t}function bc(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class Cc{constructor(e,t){this.routes=e,this.module=t}}function Ec(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Sc(r,xc(t,r))}}function Sc(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==mc)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Ec(e.children,t)}function xc(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Tc(e){const t=e.children&&e.children.map(Tc),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==mc&&(n.component=gc),n}function kc(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(e[s=n[i]]!==t[s])return!1;return!0}function Ac(e){return Array.prototype.concat.apply([],e)}function Rc(e){return e.length>0?e[e.length-1]:null}function Oc(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Nc(e){return Jt(e)?e:Kt(e)?G(Promise.resolve(e)):Za(e)}function Ic(e,t,n){return n?function(e,t){return kc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Mc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,s){if(n.segments.length>s.length){return!!Mc(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Mc(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Mc(n.segments,e)&&!!n.children[mc]&&t(n.children[mc],r,i)}}(t,n,n.segments)}(e.root,t.root)}class Pc{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yc(this.queryParams)),this._queryParamMap}toString(){return Fc.serialize(this)}}class Vc{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Oc(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hc(this)}}class Dc{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=yc(this.parameters)),this._parameterMap}toString(){return Wc(this)}}function Mc(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Uc(e,t){let n=[];return Oc(e.children,(e,r)=>{r===mc&&(n=n.concat(t(e,r)))}),Oc(e.children,(e,r)=>{r!==mc&&(n=n.concat(t(e,r)))}),n}class jc{}class Lc{parse(e){const t=new Yc(e);return new Pc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Hc(t);if(n){const n=t.children[mc]?e(t.children[mc],!1):"",r=[];return Oc(t.children,(t,n)=>{n!==mc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Uc(t,(n,r)=>r===mc?[e(t.children[mc],!1)]:[`${r}:${e(n,!1)}`]);return`${Hc(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${zc(t)}=${zc(e)}`).join("&"):`${zc(t)}=${zc(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Fc=new Lc;function Hc(e){return e.segments.map(e=>Wc(e)).join("/")}function $c(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zc(e){return $c(e).replace(/%3B/gi,";")}function Bc(e){return $c(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qc(e){return decodeURIComponent(e)}function Gc(e){return qc(e.replace(/\+/g,"%20"))}function Wc(e){return`${Bc(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Bc(e)}=${Bc(t[e])}`).join("")}`;var t}const Zc=/^[^\/()?;=#]+/;function Qc(e){const t=e.match(Zc);return t?t[0]:""}const Kc=/^[^=?&#]+/,Jc=/^[^?&#]+/;class Yc{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vc([],{}):new Vc([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[mc]=new Vc(e,t)),n}parseSegment(){const e=Qc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Dc(qc(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Qc(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Qc(this.remaining);e&&this.capture(n=e)}e[qc(t)]=qc(n)}parseQueryParam(e){const t=function(e){const t=e.match(Kc);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Jc);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Gc(t),s=Gc(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Qc(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(":")):e&&(s=mc);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[mc]:new Vc([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Xc{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=eh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=eh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=th(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return th(e,this._root).map(e=>e.value)}}function eh(e,t){if(e===t.value)return t;for(const n of t.children){const t=eh(e,n);if(t)return t}return null}function th(e,t){if(e===t.value)return[t];for(const n of t.children){const r=th(e,n);if(r.length)return r.unshift(t),r}return[]}class nh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function rh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class sh extends Xc{constructor(e,t){super(e),this.snapshot=t,ch(this,e)}toString(){return this.snapshot.toString()}}function ih(e,t){const n=function(e,t){const n=new lh([],{},{},"",{},mc,t,null,e.root,-1,{});return new uh("",new nh(n,[]))}(e,t),r=new Qa([new Dc("",{})]),s=new Qa({}),i=new Qa({}),o=new Qa({}),a=new Qa(""),l=new oh(r,s,o,a,i,mc,t,n.root);return l.snapshot=n.root,new sh(new nh(l,[]),n)}class oh{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,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($(e=>yc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>yc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ah(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class lh{constructor(e,t,n,r,s,i,o,a,l,u,c){this.url=e,this.params=t,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=yc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uh extends Xc{constructor(e,t){super(t),this.url=e,ch(this,t)}toString(){return hh(this._root)}}function ch(e,t){t.value._routerState=e,t.children.forEach(t=>ch(e,t))}function hh(e){const t=e.children.length>0?` { ${e.children.map(hh).join(", ")} } `:"";return`${e.value}${t}`}function dh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,kc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),kc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!kc(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),kc(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ph(e,t){var n,r;return kc(e.params,t.params)&&Mc(n=e.url,r=t.url)&&n.every((e,t)=>kc(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||ph(e.parent,t.parent))}function fh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function gh(e,t,n,r,s){let i={};return r&&Oc(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Pc(n.root===e?t:function e(t,n,r){const s={};return Oc(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new Vc(t.segments,s)}(n.root,e,t),i,s)}class mh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&fh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Rc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class _h{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function yh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[mc]:`${e}`}function vh(e,t,n){if(e||(e=new Vc([],{})),0===e.segments.length&&e.hasChildren())return wh(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=yh(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Sh(o,a,t))return i;r+=2}else{if(!Sh(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Vc(e.segments.slice(0,r.pathIndex),{});return t.children[mc]=new Vc(e.segments.slice(r.pathIndex),e.children),wh(t,0,s)}return r.match&&0===s.length?new Vc(e.segments,{}):r.match&&!e.hasChildren()?bh(e,t,n):r.match?wh(e,0,s):bh(e,t,n)}function wh(e,t,n){if(0===n.length)return new Vc(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[mc]:e}:void 0===e[0].outlets?{[mc]:e}:e[0].outlets}(n),s={};return Oc(r,(n,r)=>{null!==n&&(s[r]=vh(e.children[r],t,n))}),Oc(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Vc(e.segments,s)}}function bh(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=Ch(n[s].outlets);return new Vc(r,e)}if(0===s&&fh(n[0])){r.push(new Dc(e.segments[t].path,n[0])),s++;continue}const i=yh(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&fh(o)?(r.push(new Dc(i,Eh(o))),s+=2):(r.push(new Dc(i,{})),s++)}return new Vc(r,{})}function Ch(e){const t={};return Oc(e,(e,n)=>{null!==e&&(t[n]=bh(new Vc([],{}),0,e))}),t}function Eh(e){const t={};return Oc(e,(e,n)=>t[n]=`${e}`),t}function Sh(e,t,n){return e==n.path&&kc(t,n.parameters)}const xh=(e,t,n)=>$(r=>(new Th(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Th{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),dh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=rh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Oc(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=rh(e),s=e.value.component?n.children:t;Oc(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=rh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new pc(e.value.snapshot))}),e.children.length&&this.forwardEvent(new hc(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(dh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),kh(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function kh(e){dh(e.value),e.children.forEach(kh)}function Ah(e){return"function"==typeof e}function Rh(e){return e instanceof Pc}class Oh{constructor(e){this.segmentGroup=e||null}}class Nh{constructor(e){this.urlTree=e}}function Ih(e){return new b(t=>t.error(new Oh(e)))}function Ph(e){return new b(t=>t.error(new Nh(e)))}function Vh(e){return new b(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Dh{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Fe)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,mc).pipe($(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(vl(e=>{if(e instanceof Nh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Oh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,mc).pipe($(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(vl(e=>{if(e instanceof Oh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Vc([],{[mc]:e}):e;return new Pc(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe($(e=>new Vc([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Za({});const n=[],r=[],s={};return Oc(e,(e,i)=>{const o=t(i,e).pipe($(e=>s[i]=e));i===mc?n.push(o):r.push(o)}),Za.apply(null,n.concat(r)).pipe(nl(),yl(),$(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return Za(...n).pipe($(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(vl(e=>{if(e instanceof Oh)return Za(null);throw e}))),nl(),xl(e=>!!e),vl((e,n)=>{if(e instanceof Ja||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return Za(new Vc([],{}));throw new Oh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return Lh(r)!==i?Ih(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Ih(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ph(s):this.lineralizeSegments(n,s).pipe(W(n=>{const s=new Vc(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=Mh(t,r,s);if(!o)return Ih(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?Ph(c):this.lineralizeSegments(r,c).pipe(W(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe($(e=>(n._loadedConfig=e,new Vc(r,{})))):Za(new Vc(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Mh(t,n,r);if(!s)return Ih(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(W(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>jh(e,t,n)&&Lh(n)!==mc)}(e,n)?{segmentGroup:Uh(new Vc(t,function(e,t){const n={};n[mc]=t;for(const r of e)""===r.path&&Lh(r)!==mc&&(n[Lh(r)]=new Vc([],{}));return n}(r,new Vc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>jh(e,t,n))}(e,n)?{segmentGroup:Uh(new Vc(e.segments,function(e,t,n,r){const s={};for(const i of n)jh(e,t,i)&&!r[Lh(i)]&&(s[Lh(i)]=new Vc([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe($(e=>new Vc(i,e))):0===r.length&&0===o.length?Za(new Vc(i,{})):this.expandSegment(n,s,r,o,mc,!0).pipe($(e=>new Vc(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Za(new Cc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Za(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?G(r).pipe($(r=>{const s=e.get(r);let i;if(function(e){return e&&Ah(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!Ah(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return Nc(i)})).pipe(nl(),(s=e=>!0===e,e=>e.lift(new Tl(s,void 0,e)))):Za(!0);var s}(e.injector,t,n).pipe(W(n=>n?this.configLoader.load(e.injector,t).pipe($(e=>(t._loadedConfig=e,e))):function(e){return new b(t=>t.error(wc(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Za(new Cc([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Za(n);if(r.numberOfChildren>1||!r.children[mc])return Vh(e.redirectTo);r=r.children[mc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Pc(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Oc(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return Oc(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Vc(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Mh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||bc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Uh(e){if(1===e.numberOfChildren&&e.children[mc]){const t=e.children[mc];return new Vc(e.segments.concat(t.segments),t.children)}return e}function jh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Lh(e){return e.outlet||mc}class Fh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Hh{constructor(e,t){this.component=e,this.route=t}}function $h(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=rh(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Mc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Mc(e.url,t.url)||!kc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ph(e,t)||!kc(e.queryParams,t.queryParams);case"paramsChange":default:return!ph(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Fh(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),u&&i.canDeactivateChecks.push(new Hh(l&&l.outlet&&l.outlet.component||null,a))}else a&&Bh(n,l,i),i.canActivateChecks.push(new Fh(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),Oc(o,(e,t)=>Bh(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function zh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Bh(e,t,n){const r=rh(e),s=e.value;Oc(r,(e,r)=>{Bh(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Hh(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const qh=Symbol("INITIAL_VALUE");function Gh(){return Al(e=>(function(...e){let t=null,n=null;return R(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),q(e,n).lift(new Xa(t))})(...e.map(e=>e.pipe(Cl(1),function(...e){return t=>{let n=e[e.length-1];R(n)?e.pop():n=null;const r=e.length;return function(...e){return nl()(Za(...e))}(1!==r||n?r>0?q(e,n):Ga(n):Wa(e[0]),t)}}(qh)))).pipe(Nl((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==qh)return e;if(r===qh&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||Rh(r))return r}return e},e)},qh),rl(e=>e!==qh),$(e=>Rh(e)?e:!0===e),Cl(1)))}function Wh(e,t){return null!==e&&t&&t(new dc(e)),Za(!0)}function Zh(e,t){return null!==e&&t&&t(new cc(e)),Za(!0)}function Qh(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Za(r.map(r=>tl(()=>{const s=zh(r,t,n);let i;if(function(e){return e&&Ah(e.canActivate)}(s))i=Nc(s.canActivate(t,e));else{if(!Ah(s))throw new Error("Invalid CanActivate guard");i=Nc(s(t,e))}return i.pipe(xl())}))).pipe(Gh()):Za(!0)}function Kh(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>tl(()=>Za(t.guards.map(s=>{const i=zh(s,t.node,n);let o;if(function(e){return e&&Ah(e.canActivateChild)}(i))o=Nc(i.canActivateChild(r,e));else{if(!Ah(i))throw new Error("Invalid CanActivateChild guard");o=Nc(i(r,e))}return o.pipe(xl())})).pipe(Gh())));return Za(s).pipe(Gh())}class Jh{}class Yh{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=td(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,mc),r=new lh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},mc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new nh(r,n),i=new uh(this.url,s);return this.inheritParamsAndData(i._root),Za(i)}catch(e){return new b(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=ah(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Uc(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===mc?-1:t.value.outlet===mc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Jh))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Jh}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Jh;if((e.outlet||mc)!==r)throw new Jh;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?Rc(n).parameters:{};s=new lh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sd(e),r,e.component,e,Xh(t),ed(t)+n.length,id(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Jh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||bc)(n,e,t);if(!r)throw new Jh;const s={};Oc(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new lh(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sd(e),r,e.component,e,Xh(t),ed(t)+i.length,id(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=td(t,i,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new nh(s,e)]}if(0===a.length&&0===u.length)return[new nh(s,[])];const c=this.processSegment(a,l,u,mc);return[new nh(s,c)]}}function Xh(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function ed(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function td(e,t,n,r,s){if(n.length>0&&function(e,t,n){return r.some(n=>nd(e,t,n)&&rd(n)!==mc)}(e,n)){const s=new Vc(t,function(e,t,n,r){const s={};s[mc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&rd(i)!==mc){const n=new Vc([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[rd(i)]=n}return s}(e,t,r,new Vc(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>nd(e,t,n))}(e,n)){const i=new Vc(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(nd(e,n,a)&&!s[rd(a)]){const n=new Vc([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[rd(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Vc(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function nd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function rd(e){return e.outlet||mc}function sd(e){return e.data||{}}function id(e){return e.resolve||{}}function od(e,t,n,r){const s=zh(e,t,r);return Nc(s.resolve?s.resolve(t,n):s(t,n))}function ad(e){return function(t){return t.pipe(Al(t=>{const n=e(t);return n?G(n).pipe($(()=>t)):G([t])}))}}class ld{}class ud{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const cd=new xe("ROUTES");class hd{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe($(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Cc(Ac(r.injector.get(cd)).map(Tc),r)}))}loadModuleFactory(e){return"string"==typeof e?G(this.loader.load(e)):Nc(e()).pipe(W(e=>e instanceof He?Za(e):G(this.compiler.compileModuleAsync(e))))}}class dd{}class pd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function fd(e){throw e}function gd(e,t,n){return t.parse("/")}function md(e,t){return Za(null)}class _d{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=fd,this.malformedUriErrorHandler=gd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:md,afterPreactivation:md},this.urlHandlingStrategy=new pd,this.routeReuseStrategy=new ud,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Fe),this.console=s.get(Hs);const l=s.get(ii);this.isNgZoneEnabled=l instanceof ii,this.resetConfig(a),this.currentUrlTree=new Pc(new Vc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new hd(i,o,e=>this.triggerEvent(new lc(e)),e=>this.triggerEvent(new uc(e))),this.routerState=ih(this.currentUrlTree,this.rootComponentType),this.transitions=new Qa({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(e){const t=this.events;return e.pipe(rl(e=>0!==e.id),$(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Al(e=>{let n=!1,r=!1;return Za(e).pipe(hl(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Al(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Za(e).pipe(Al(e=>{const n=this.transitions.getValue();return t.next(new Xu(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?qa:[e]}),Al(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(Al(s=>(function(e,t,n,r,i){return new Dh(e,t,n,s.extractedUrl,i).apply()})(e,t,n,0,r).pipe($(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),hl(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(W(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new Yh(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe($(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),hl(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),hl(e=>{const n=new rc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,a=new Xu(n,this.serializeUrl(r),s,i);t.next(a);const l=ih(r,this.rootComponentType).snapshot;return Za(Object.assign({},e,{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),qa}),ad(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),hl(e=>{const t=new sc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),$(e=>Object.assign({},e,{guards:$h(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Za(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return G(o).pipe(W(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?Za(i.map(i=>{const o=zh(i,t,s);let a;if(function(e){return e&&Ah(e.canDeactivate)}(o))a=Nc(o.canDeactivate(e,t,n,r));else{if(!Ah(o))throw new Error("Invalid CanDeactivate guard");a=Nc(o(e,t,n,r))}return a.pipe(xl())})).pipe(Gh()):Za(!0)})(e.component,e.route,n,t,r)),xl(e=>!0!==e,!0))}(0,r,s,e).pipe(W(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return G(i).pipe(Vl(t=>G([Zh(t.route.parent,r),Wh(t.route,r),Kh(e,t.path,n),Qh(e,t.route,n)]).pipe(nl(),xl(e=>!0!==e,!0))),xl(e=>!0!==e,!0))}(r,0,e,t):Za(n)),$(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),hl(e=>{if(Rh(e.guardsResult)){const t=wc(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),hl(e=>{const t=new ic(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),rl(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new tc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),ad(e=>{if(e.guards.canActivateChecks.length)return Za(e).pipe(hl(e=>{const t=new oc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?G(s).pipe(Vl(n=>(function(e,t,n,s){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return Za({});if(1===s.length){const i=s[0];return od(e[i],t,n,r).pipe($(e=>({[i]:e})))}const i={};return G(s).pipe(W(s=>od(e[s],t,n,r).pipe($(e=>(i[s]=e,e))))).pipe(yl(),$(()=>i))}(e._resolve,e,r,s).pipe($(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,ah(e,n).resolve),null)))})(n.route,0,e,t)),function(e,t){return arguments.length>=2?function(n){return v(Nl(e,t),ll(1),gl(t))(n)}:function(t){return v(Nl((t,n,r)=>e(t,n,r+1)),ll(1))(t)}}((e,t)=>e),$(e=>n)):Za(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),hl(e=>{const t=new ac(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),ad(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),$(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new nh(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new oh(new Qa((s=n.value).url),new Qa(s.params),new Qa(s.queryParams),new Qa(s.fragment),new Qa(s.data),s.outlet,s.component,s),i=n.children.map(n=>e(t,n));return new nh(r,i)}}var s}(e,t._root,n?n._root:void 0);return new sh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),hl(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),xh(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),hl({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Dl(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new tc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),vl(n=>{if(r=!0,function(e){return n&&n[vc]}()){const r=Rh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new tc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new nc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return qa}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Ec(e),this.config=e.map(Tc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=t;tt()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=a?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return gh(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new mh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Oc(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new mh(n,t,r)}(n);if(i.toRoot())return gh(t.root,new Vc([],{}),t,r,s);const o=function(e,n,r){if(e.isAbsolute)return new _h(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new _h(r.snapshot._urlSegment,!0,0);const s=fh(e.commands[0])?0:1;return function(t,n,i){let o=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+s,l=e.numberOfDoubleDots;for(;l>a;){if(l-=a,!(o=o.parent))throw new Error("Invalid number of '../'");a=o.segments.length}return new _h(o,!1,a-l)}()}(i,0,e),a=o.processChildren?wh(o.segmentGroup,o.index,i.commands):vh(o.segmentGroup,o.index,i.commands);return gh(o.segmentGroup,a,t,r,s)}(l,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){tt()&&this.isNgZoneEnabled&&!ii.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Rh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Rh(e))return Ic(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Ic(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new ec(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class yd{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof ec&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){tt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:vd(this.skipLocationChange),replaceUrl:vd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:vd(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:vd(this.preserveFragment)})}}function vd(e){return""===e||!!e}class wd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bd,this.attachRef=null}}class bd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new wd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Cd{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Os,this.deactivateEvents=new Os,this.name=r||mc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Ed(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Ed{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===oh?this.route:e===bd?this.childContexts:this.parent.get(e,t)}}class Sd{}class xd{preload(e,t){return t().pipe(vl(()=>Za(null)))}}class Td{preload(e,t){return Za(null)}}class kd{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new hd(t,n,t=>e.triggerEvent(new lc(t)),t=>e.triggerEvent(new uc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(rl(e=>e instanceof ec),Vl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fe);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return G(n).pipe(J(),$(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(W(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Ad{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,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(e=>{e instanceof Xu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ec&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fc&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new fc(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Rd=new xe("ROUTER_CONFIGURATION"),Od=new xe("ROUTER_FORROOT_GUARD"),Nd=[wa,{provide:jc,useClass:Lc},{provide:_d,useFactory:jd,deps:[xi,jc,bd,wa,Pt,ki,Qs,cd,Rd,[dd,new le],[ld,new le]]},bd,{provide:oh,useFactory:Ld,deps:[_d]},{provide:ki,useClass:Ii},kd,Td,xd,{provide:Rd,useValue:{enableTracing:!1}}];function Id(){return new wi("Router",_d)}class Pd{constructor(e,t){}static forRoot(e,t){return{ngModule:Pd,providers:[Nd,Ud(e),{provide:Od,useFactory:Md,deps:[[_d,new le,new ce]]},{provide:Rd,useValue:t||{}},{provide:ya,useFactory:Dd,deps:[ma,[new ae(va),new le],Rd]},{provide:Ad,useFactory:Vd,deps:[_d,za,Rd]},{provide:Sd,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Td},{provide:wi,multi:!0,useFactory:Id},[Fd,{provide:Ps,multi:!0,useFactory:Hd,deps:[Fd]},{provide:zd,useFactory:$d,deps:[Fd]},{provide:Fs,multi:!0,useExisting:zd}]]}}static forChild(e){return{ngModule:Pd,providers:[Ud(e)]}}}function Vd(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ad(e,t,n)}function Dd(e,t,n={}){return n.useHash?new Ca(e,t):new Ea(e,t)}function Md(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ud(e){return[{provide:$t,multi:!0,useValue:e},{provide:cd,multi:!0,useValue:e}]}function jd(e,t,n,r,s,i,o,a,l={},u,c){const h=new _d(null,t,n,r,s,i,o,Ac(a));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=jl();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function Ld(e){return e.routerState.root}class Fd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(_a,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(_d),r=this.injector.get(Rd);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Za(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Rd),n=this.injector.get(kd),r=this.injector.get(Ad),s=this.injector.get(_d),i=this.injector.get(xi);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Hd(e){return e.appInitializer.bind(e)}function $d(e){return e.bootstrapListener.bind(e)}const zd=new xe("Router Initializer");var Bd=Xn({encapsulation:2,styles:[],data:{}});function qd(e){return oo(0,[(e()(),Wi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),os(1,212992,null,0,Cd,[bd,Dn,sn,[8,null],Rt],null,null)],function(e,t){e(t,1,0)},null)}function Gd(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"ng-component",[],null,null,null,qd,Bd)),os(1,49152,null,0,gc,[],null,null)],null,null)}var Wd=Mr("ng-component",gc,Gd,{},{},[]);class Zd extends H{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let r=0;r<n;r++){const e=F(this,t[r],null,r);e&&this.add(e)}}notifyNext(e,t,n,r,s){this.values[n]=t,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,s=r.length;e._hasValue?(this.completed++,this.completed===s&&(n===s&&t.next(r),t.complete())):t.complete()}}const Qd=new xe("NgValueAccessor"),Kd=new xe("CompositionEventMode");class Jd{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=jl()?jl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}class Yd{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}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Xd extends Yd{get formDirective(){return null}get path(){return null}}function ep(){throw new Error("unimplemented")}class tp extends Yd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return ep()}get asyncValidator(){return ep()}}class np{constructor(e){this._cd=e}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}}class rp extends np{constructor(e){super(e)}}function sp(e){return null==e||0===e.length}const ip=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[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 op{static min(e){return t=>{if(sp(t.value)||sp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(sp(t.value)||sp(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return sp(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return sp(e.value)?null:ip.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(sp(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return op.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(sp(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(ap);return 0==t.length?null:function(e){return up(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(ap);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),0===t.length?qa:n?e(t).pipe($(e=>n(...e))):new b(e=>new Zd(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(lp)).pipe($(up))}}}function ap(e){return null!=e}function lp(e){const t=Kt(e)?G(e):e;if(!Jt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function up(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function cp(e){return e.validate?t=>e.validate(t):e}function hp(e){return e.validate?t=>e.validate(t):e}class dp{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}const pp={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '};function fp(e,t){return[...t.path,e]}function gp(e,t){e||_p(t,"Cannot find control with"),t.valueAccessor||_p(t,"No value accessor for form control with"),e.validator=op.compose([e.validator,t.validator]),e.asyncValidator=op.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&mp(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&mp(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function mp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function _p(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function yp(e){return null!=e?op.compose(e.map(cp)):null}function vp(e){return null!=e?op.composeAsync(e.map(hp)):null}const wp=[class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=qt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=qt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),s=this._getOptionValue(r.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(tp),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}],bp="VALID",Cp="INVALID",Ep="PENDING",Sp="DISABLED";function xp(e){const t=kp(e)?e.validators:e;return Array.isArray(t)?yp(t):t||null}function Tp(e,t){const n=kp(t)?t.asyncValidators:e;return Array.isArray(n)?vp(n):n||null}function kp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Ap{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===bp}get invalid(){return this.status===Cp}get pending(){return this.status==Ep}get disabled(){return this.status===Sp}get enabled(){return this.status!==Sp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=xp(e)}setAsyncValidators(e){this.asyncValidator=Tp(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ep,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Sp,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=bp,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==bp&&this.status!==Ep||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Sp:bp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ep;const t=lp(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Op?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Np&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Os,this.statusChanges=new Os}_calculateStatus(){return this._allControlsDisabled()?Sp:this.errors?Cp:this._anyControlsHaveStatus(Ep)?Ep:this._anyControlsHaveStatus(Cp)?Cp:bp}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){kp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Rp extends Ap{constructor(e=null,t,n){super(xp(t),Tp(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Op extends Ap{constructor(e,t,n){super(xp(t),Tp(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Rp?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Np extends Ap{constructor(e,t,n){super(xp(t),Tp(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Rp?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Ip=(()=>Promise.resolve(null))();class Pp extends Xd{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Os,this.form=new Op({},yp(e),vp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ip.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),gp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ip.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this._directives)})}addFormGroup(e){Ip.then(()=>{const t=this._findContainer(e.path),n=new Op({});(function(e,t){null==e&&_p(t,"Cannot find control with"),e.validator=op.compose([e.validator,t.validator]),e.asyncValidator=op.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ip.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ip.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}class Vp{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${pp.formControlName}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${pp.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${pp.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${pp.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${pp.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${pp.ngModelGroup}`)}static ngFormWarning(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")}}const Dp=new xe("NgFormSelectorWarning");class Mp extends Xd{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return fp(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return yp(this._validators)}get asyncValidator(){return vp(this._asyncValidators)}_checkParentType(){}}class Up extends Mp{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof Up||this._parent instanceof Pp||Vp.modelGroupParentException()}}const jp=(()=>Promise.resolve(null))();class Lp extends tp{constructor(e,t,n,r){super(),this.control=new Rp,this._registered=!1,this.update=new Os,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||_p(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return t.forEach(t=>{t.constructor===Jd?n=t:function(e){return wp.some(t=>e.constructor===t)}(t)?(r&&_p(e,"More than one built-in value accessor matches form control with"),r=t):(s&&_p(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(_p(e,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!qt(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?fp(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return yp(this._rawValidators)}get asyncValidator(){return vp(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){gp(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Up)&&this._parent instanceof Mp?Vp.formGroupNameException():this._parent instanceof Up||this._parent instanceof Pp||Vp.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Vp.missingNameException()}_updateValue(e){jp.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;jp.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class Fp{}class Hp{static withConfig(e){return{ngModule:Hp,providers:[{provide:Dp,useValue:e.warnOnDeprecatedNgFormSelector}]}}}class $p{constructor(){this.clickCounter=0,this.name=""}ngOnInit(){}countClick(){this.clickCounter+=1}setClasses(){return{active:this.clickCounter>4,notactive:this.clickCounter<=4}}}var zp=Xn({encapsulation:0,styles:[["span[_ngcontent-%COMP%]{font-weight:700;background:#d3d3d3;padding:.3em .8em;cursor:pointer}.play-container[_ngcontent-%COMP%]{padding:1em;border:3px solid #d3d3d3;margin-bottom:1em}.play-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:1em;margin-bottom:2em}.active[_ngcontent-%COMP%]{background-color:orange;border:3px solid #000}.notactive[_ngcontent-%COMP%]{background-color:green}"]],data:{}});function Bp(e){return oo(0,[(e()(),Wi(0,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),ro(-1,null,["The click counter "])),(e()(),Wi(2,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ro(-1,null,["IS GREATER"])),(e()(),ro(-1,null,[" than 4."]))],null,null)}function qp(e){return oo(0,[(e()(),Wi(0,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),ro(-1,null,["The click counter is "])),(e()(),Wi(2,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ro(-1,null,["less"])),(e()(),ro(-1,null,[" than 4."]))],null,null)}function Gp(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),ro(-1,null,["Welcome!"])),(e()(),Wi(2,0,null,null,5,"div",[["class","play-container"]],null,null,null,null,null)),(e()(),Wi(3,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),ro(-1,null,["You've clicked "])),(e()(),Wi(5,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.countClick()&&r),r},null,null)),(e()(),ro(-1,null,["this"])),(e()(),ro(7,null,[" "," times."])),(e()(),Wi(8,0,null,null,11,"div",[["class","play-container"]],null,null,null,null,null)),(e()(),Wi(9,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),Wi(10,0,null,null,5,"input",[["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,s=e.component;return"input"===t&&(r=!1!==Wr(e,11)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Wr(e,11).onTouched()&&r),"compositionstart"===t&&(r=!1!==Wr(e,11)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Wr(e,11)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(s.name=n)&&r),r},null,null)),os(11,16384,null,0,Jd,[fn,un,[2,Kd]],null,null),as(1024,null,Qd,function(e){return[e]},[Jd]),os(13,671744,null,0,Lp,[[8,null],[8,null],[8,null],[6,Qd]],{model:[0,"model"]},{update:"ngModelChange"}),as(2048,null,tp,null,[Lp]),os(15,16384,null,0,rp,[[4,tp]],null,null),(e()(),Wi(16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Wi(17,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),ro(-1,null,["You said: "])),(e()(),ro(19,null,[" "," "])),(e()(),Wi(20,0,null,null,5,"div",[["class","play-container"]],null,null,null,null,null)),as(512,null,Oa,Na,[An,Rn,un,fn]),os(22,278528,null,0,Pa,[Oa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),Gi(16777216,null,null,1,null,Bp)),os(24,16384,null,0,Ua,[Dn,Pn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Gi(0,[["none",2]],null,0,null,qp))],function(e,t){var n=t.component;e(t,13,0,n.name),e(t,22,0,"play-container",n.setClasses()),e(t,24,0,n.clickCounter>4,Wr(t,25))},function(e,t){var n=t.component;e(t,7,0,n.clickCounter),e(t,10,0,Wr(t,15).ngClassUntouched,Wr(t,15).ngClassTouched,Wr(t,15).ngClassPristine,Wr(t,15).ngClassDirty,Wr(t,15).ngClassValid,Wr(t,15).ngClassInvalid,Wr(t,15).ngClassPending),e(t,19,0,n.name)})}function Wp(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"app-home",[],null,null,null,Gp,zp)),os(1,114688,null,0,$p,[],null,null)],function(e,t){e(t,1,0)},null)}var Zp=Mr("app-home",$p,Wp,{},{},[]);class Qp{constructor(e){this._http=e}ngOnInit(){this._http.getBeer().subscribe(e=>{this.brews=e})}}class Kp{}class Jp{}class Yp{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+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(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Yp?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Yp;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Yp?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===s.indexOf(e))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Xp{encodeKey(e){return ef(e)}encodeValue(e){return ef(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function ef(e){return encodeURIComponent(e).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 tf{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Xp,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new tf({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function nf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function rf(e){return"undefined"!=typeof Blob&&e instanceof Blob}function sf(e){return"undefined"!=typeof FormData&&e instanceof FormData}class of{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){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 Yp),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new tf,this.urlWithParams=t}serializeBody(){return null===this.body?null:nf(this.body)||rf(this.body)||sf(this.body)||"string"==typeof this.body?this.body:this.body instanceof tf?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:sf(this.body)?null:rf(this.body)?this.body.type||null:nf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof tf?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,i=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new of(t,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const af=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class lf{constructor(e,t=200,n="OK"){this.headers=e.headers||new Yp,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class uf extends lf{constructor(e={}){super(e),this.type=af.ResponseHeader}clone(e={}){return new uf({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class cf extends lf{constructor(e={}){super(e),this.type=af.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new cf({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class hf extends lf{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function df(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class pf{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof of)r=e;else{let s=void 0;s=n.headers instanceof Yp?n.headers:new Yp(n.headers);let i=void 0;n.params&&(i=n.params instanceof tf?n.params:new tf({fromObject:n.params})),r=new of(e,t,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Za(r).pipe(Vl(e=>this.handler.handle(e)));if(e instanceof of||"events"===n.observe)return s;const i=s.pipe(rl(e=>e instanceof cf));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe($(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe($(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe($(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe($(e=>e.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new tf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,df(n,t))}post(e,t,n={}){return this.request("POST",e,df(n,t))}put(e,t,n={}){return this.request("PUT",e,df(n,t))}}class ff{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const gf=new xe("HTTP_INTERCEPTORS");class mf{intercept(e,t){return t.handle(e)}}const _f=/^\)\]\}',?\n/;class yf{}class vf{constructor(){}build(){return new XMLHttpRequest}}class wf{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new b(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new Yp(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new uf({headers:i,status:t,statusText:r,url:o})},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"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(_f,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new cf({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new hf({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new hf({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const u=r=>{l||(t.next(i()),l=!0);let s={type:af.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:af.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:af.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}const bf=new xe("XSRF_COOKIE_NAME"),Cf=new xe("XSRF_HEADER_NAME");class Ef{}class Sf{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ra(e,this.cookieName),this.lastCookieString=e),this.lastToken}}class xf{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}class Tf{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(gf,[]);this.chain=e.reduceRight((e,t)=>new ff(e,t),this.backend)}return this.chain.handle(e)}}class kf{static disable(){return{ngModule:kf,providers:[{provide:xf,useClass:mf}]}}static withOptions(e={}){return{ngModule:kf,providers:[e.cookieName?{provide:bf,useValue:e.cookieName}:[],e.headerName?{provide:Cf,useValue:e.headerName}:[]]}}}class Af{}let Rf=(()=>{class e{constructor(e){this.http=e}getBeer(){return this.http.get("https://api.openbrewerydb.org/breweries")}}return e.ngInjectableDef=pe({factory:function(){return new e(Ue(pf))},token:e,providedIn:"root"}),e})();var Of=Xn({encapsulation:0,styles:[["ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;display:flex;flex-wrap:wrap}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{background:#eee;padding:1em;margin-right:10px;width:20%;height:200px;margin-bottom:1em;display:flex;flex-direction:column}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p.name[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p.country[_ngcontent-%COMP%]{text-transform:uppercase;font-size:.9rem;flex-grow:1}"]],data:{}});function Nf(e){return oo(0,[(e()(),Wi(0,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),Wi(1,0,null,null,1,"p",[["class","name"]],null,null,null,null,null)),(e()(),ro(2,null,["",""])),(e()(),Wi(3,0,null,null,1,"p",[["class","country"]],null,null,null,null,null)),(e()(),ro(4,null,["",""])),(e()(),Wi(5,0,null,null,1,"a",[["class","site"]],[[8,"href",4]],null,null,null,null)),(e()(),ro(-1,null,["site"]))],null,function(e,t){var n;e(t,2,0,t.context.$implicit.name),e(t,4,0,t.context.$implicit.country),e(t,5,0,""+(null!=(n=t.context.$implicit.website_url)?n.toString():""))})}function If(e){return oo(0,[(e()(),Wi(0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),Gi(16777216,null,null,1,null,Nf)),os(2,278528,null,0,Da,[Dn,Pn,An],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.brews)},null)}function Pf(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),ro(-1,null,["Breweries"])),(e()(),Gi(16777216,null,null,1,null,If)),os(3,16384,null,0,Ua,[Dn,Pn],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.brews)},null)}function Vf(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"app-list",[],null,null,null,Pf,Of)),os(1,114688,null,0,Qp,[Rf],null,null)],function(e,t){e(t,1,0)},null)}var Df=Mr("app-list",Qp,Vf,{},{},[]),Mf=Xn({encapsulation:0,styles:[["@import url(https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap);body[_ngcontent-%COMP%]{margin:0;font-family:Nunito,sans-serif;font-size:18px}.container[_ngcontent-%COMP%]{width:80%;margin:0 auto}header[_ngcontent-%COMP%]{background:#00f;padding:1em 0}header[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none}header[_ngcontent-%COMP%] a.logo[_ngcontent-%COMP%]{font-weight:700}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{float:right}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;display:flex}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:1em}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:#00c}h1[_ngcontent-%COMP%]{margin-top:2em}"]],data:{}});function Uf(e){return oo(0,[(e()(),Wi(0,0,null,null,14,"header",[],null,null,null,null,null)),(e()(),Wi(1,0,null,null,13,"div",[["class","container"]],null,null,null,null,null)),(e()(),Wi(2,0,null,null,2,"a",[["class","logo"],["routerLink","/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),os(3,671744,null,0,yd,[_d,oh,ya],{routerLink:[0,"routerLink"]},null),(e()(),ro(-1,null,["CoolApp"])),(e()(),Wi(5,0,null,null,9,"nav",[],null,null,null,null,null)),(e()(),Wi(6,0,null,null,8,"ul",[],null,null,null,null,null)),(e()(),Wi(7,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wi(8,0,null,null,2,"a",[["href","#"],["routerLink","/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),os(9,671744,null,0,yd,[_d,oh,ya],{routerLink:[0,"routerLink"]},null),(e()(),ro(-1,null,["Home"])),(e()(),Wi(11,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),Wi(12,0,null,null,2,"a",[["href","#"],["routerLink","/list"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==Wr(e,13).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),os(13,671744,null,0,yd,[_d,oh,ya],{routerLink:[0,"routerLink"]},null),(e()(),ro(-1,null,["Breweries"])),(e()(),Wi(15,0,null,null,2,"div",[["class","container"]],null,null,null,null,null)),(e()(),Wi(16,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),os(17,212992,null,0,Cd,[bd,Dn,sn,[8,null],Rt],null,null)],function(e,t){e(t,3,0,"/"),e(t,9,0,"/"),e(t,13,0,"/list"),e(t,17,0)},function(e,t){e(t,2,0,Wr(t,3).target,Wr(t,3).href),e(t,8,0,Wr(t,9).target,Wr(t,9).href),e(t,12,0,Wr(t,13).target,Wr(t,13).href)})}function jf(e){return oo(0,[(e()(),Wi(0,0,null,null,1,"app-root",[],null,null,null,Uf,Mf)),os(1,49152,null,0,ga,[],null,null)],null,null)}var Lf=Mr("app-root",ga,jf,{},{},[]);class Ff{}var Hf=da(fa,[ga],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===Nt&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[Kn(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Rr(512,sn,on,[[8,[Wd,Zp,Df,Lf]],[3,sn],Fe]),Rr(5120,$s,zi,[[3,$s]]),Rr(4608,ka,Aa,[$s,[2,Ta]]),Rr(5120,Cs,Bi,[ii]),Rr(5120,Ds,Ms,[]),Rr(5120,An,Hi,[]),Rr(5120,Rn,$i,[]),Rr(4608,Hu,$u,[Ha]),Rr(6144,St,null,[Hu]),Rr(4608,Vu,Mu,[]),Rr(5120,nu,function(e,t,n,r,s,i,o,a){return[new Iu(e,t,n),new Fu(r),new Uu(s,i,o,a)]},[Ha,ii,Ls,Ha,Ha,Vu,Hs,[2,Du]]),Rr(4608,ru,ru,[nu,ii]),Rr(135680,ou,ou,[Ha]),Rr(4608,pu,pu,[ru,ou,Ds]),Rr(6144,dn,null,[pu]),Rr(6144,iu,null,[ou]),Rr(4608,di,di,[ii]),Rr(5120,oh,Ld,[_d]),Rr(4608,Td,Td,[]),Rr(6144,Sd,null,[Td]),Rr(135680,kd,kd,[_d,ki,Qs,Pt,Sd]),Rr(4608,xd,xd,[]),Rr(5120,Ad,Vd,[_d,za,Rd]),Rr(5120,zd,$d,[Fd]),Rr(5120,Fs,function(e){return[e]},[zd]),Rr(4608,dp,dp,[]),Rr(4608,Ef,Sf,[Ha,Ls,bf]),Rr(4608,xf,xf,[Ef,Cf]),Rr(5120,gf,function(e){return[e]},[xf]),Rr(4608,vf,vf,[]),Rr(6144,yf,null,[vf]),Rr(4608,wf,wf,[yf]),Rr(6144,Jp,null,[wf]),Rr(4608,Kp,Tf,[Jp,Pt]),Rr(4608,pf,pf,[Kp]),Rr(1073742336,Fa,Fa,[]),Rr(1024,Ye,Ku,[]),Rr(1024,wi,function(){return[Id()]},[]),Rr(512,Fd,Fd,[Pt]),Rr(1024,Ps,function(e,t){return[(n=e,Xl("probe",tu),Xl("coreTokens",Object.assign({},eu,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>tu),Hd(t)];var n},[[2,wi],Fd]),Rr(512,Vs,Vs,[[2,Ps]]),Rr(131584,xi,xi,[ii,Hs,Pt,Ye,sn,Vs]),Rr(1073742336,qi,qi,[xi]),Rr(1073742336,Ju,Ju,[[3,Ju]]),Rr(1024,Od,Md,[[3,_d]]),Rr(512,jc,Lc,[]),Rr(512,bd,bd,[]),Rr(256,Rd,{},[]),Rr(1024,ya,Dd,[ma,[2,va],Rd]),Rr(512,wa,wa,[ya,ma]),Rr(512,Qs,Qs,[]),Rr(512,ki,Ii,[Qs,[2,Oi]]),Rr(1024,cd,function(){return[[{path:"",component:$p},{path:"list",component:Qp}]]},[]),Rr(1024,_d,jd,[xi,jc,bd,wa,Pt,ki,Qs,cd,Rd,[2,dd],[2,ld]]),Rr(1073742336,Pd,Pd,[[2,Od],[2,_d]]),Rr(1073742336,Ff,Ff,[]),Rr(1073742336,Fp,Fp,[]),Rr(1073742336,Hp,Hp,[]),Rr(1073742336,kf,kf,[]),Rr(1073742336,Af,Af,[]),Rr(1073742336,fa,fa,[]),Rr(256,Nt,!0,[]),Rr(256,bf,"XSRF-TOKEN",[]),Rr(256,Cf,"X-XSRF-TOKEN",[])])});(function(){if(et)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1})(),Qu().bootstrapModuleFactory(Hf).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);