-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-es2015.49193a8f5b848179bd4a.js
1 lines (1 loc) · 188 KB
/
main-es2015.49193a8f5b848179bd4a.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 o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function i(e){setTimeout(()=>{throw e})}const a={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}function u(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}u.prototype=Object.create(Error.prototype);const d=u,h=(()=>{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:o,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,u=s?s.length:0;for(;n;)n.remove(this),n=++a<u&&s[a]||null;if(r(o))try{o.call(this)}catch(h){t=!0,e=h instanceof d?f(h.errors):[h]}if(l(i))for(a=-1,u=i.length;++a<u;){const n=i[a];if(c(n))try{n.unsubscribe()}catch(h){t=!0,e=e||[],h instanceof d?e=e.concat(f(h.errors)):e.push(h)}}if(t)throw new d(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 f(e){return e.reduce((e,t)=>e.concat(t instanceof d?t.errors:t),[])}const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends h{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)}}[p](){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 o;super(),this._parentSubscriber=e;let i=this;r(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==a&&(r((i=Object.create(t)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.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}=o;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):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.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(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";const y=(()=>{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[p])return e[p]()}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||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.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=v(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:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:function(){})(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=(t=>new e(t)),e})();function v(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function b(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}b.prototype=Object.create(Error.prototype);const w=b;class C extends h{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 E extends g{constructor(e){super(e),this.destination=e}}const x=(()=>{class e extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;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 w;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 w;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 w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new y;return e.source=this,e}}return e.create=((e,t)=>new S(e,t)),e})();class S extends x{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):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}class T 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()},A=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=I(),V=e=>t=>{const n=e[D]();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)},O=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function P(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e instanceof y)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[_])return M(e);if(O(e))return N(e);if(P(e))return A(e);if(e&&"function"==typeof e[D])return V(e);{const t=c(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 T(e,n,r)){if(!s.closed)return R(t)(s)}class L 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 H(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 j(e,t))}}class j{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}class $ 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 B(e,t){return new y(t?n=>{const r=new h;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 U(e,t){if(!t)return e instanceof y?e:new y(R(e));if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new y(t?n=>{const r=new h;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(P(e))return function(e,t){return new y(t?n=>{const r=new h;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}:A(e))}(e,t);if(O(e))return B(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new y(t?n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const o=s.next();e=o.value,t=o.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:V(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}class z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new G(e,this.project,this.concurrent))}}class G extends L{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 T(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 Z(e){return e}function W(){return function(e){return e.lift(new q(e))}}class q{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Q(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Q 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 Y=class extends y{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 h).add(this.source.subscribe(new J(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e}refCount(){return W()(this)}}.prototype,K={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}};class J extends E{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 X(){return new x}const ee="__parameters__";function te(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(ee)?e[ee]:Object.defineProperty(e,ee,{value:[]})[ee];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 ne=te("Inject",e=>({token:e})),re=te("Optional"),se=te("Self"),oe=te("SkipSelf");var ie=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 ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function le(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return e&&e.hasOwnProperty(ue)?e[ue]:null}const ue=ae({ngInjectableDef:ae});function de(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(de).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 he=ae({__forward_ref__:ae});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return de(this())},e}function pe(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(he)&&t.__forward_ref__===fe?t():e}function ge(){const e="undefined"!=typeof globalThis&&globalThis,t="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r="undefined"!=typeof global&&global;return e||r||t||n}const me=ge();let _e,ye=void 0;function ve(e){const t=ye;return ye=e,t}class be{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=le({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const we="__source",Ce=new Object,Ee=new be("INJECTOR",-1);class xe{get(e,t=Ce){if(t===Ce){const t=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw t.name="NullInjectorError",t}return t}}const Se=(()=>{class e{static create(e,t){return Array.isArray(e)?new Pe(e,t):new Pe(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=Ce,e.NULL=new xe,e.ngInjectableDef=le({providedIn:"any",factory:()=>(function(e,t=ie.Default){return(_e||function(e,t=ie.Default){if(void 0===ye)throw new Error("inject() must be called from an injection context");return null===ye?function(e,t,n){const r=ce(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ie.Optional)return null;throw new Error(`Injector: NOT_FOUND [${de(e)}]`)}(e,0,t):ye.get(e,t&ie.Optional?null:void 0,t)})(e,t)})(Ee)}),e.__NG_ELEMENT_ID__=-1,e})(),ke=function(e){return e},Te=[],Ne=ke,Ae=function(){return Array.prototype.slice.call(arguments)},Ie=ae({provide:String,useValue:ae}),De="ngTokenPath",Ve="ngTempTokenPath",Me=/\n/gm,Oe="\u0275";class Pe{constructor(e,t=Se.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Se,{token:Se,fn:ke,deps:Te,value:this,useNew:!1}),r.set(Ee,{token:Ee,fn:ke,deps:Te,value:this,useNew:!1}),function e(t,n){if(n)if((n=pe(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Le("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Le("Unexpected provider",n);{let e=pe(n.provide);const r=function(e){const t=function(e){let t=Te;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=pe(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof re||n==re?r|=1:n instanceof oe||n==oe?r&=-3:n instanceof se||n==se?r&=-5:s=n instanceof ne?n.token:pe(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:pe(e.useExisting),options:6}];else if(!(n||Ie in e))throw Le("'deps' required",e);return t}(e);let n=ke,r=Te,s=!1,o=pe(e.provide);if(Ie in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=pe(e.useClass);else{if("function"!=typeof o)throw Le("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=o}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Ae)throw Re(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Ae,value:Te});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Ae)throw Re(e);t.set(e,r)}}}(r,e)}get(e,t,n=ie.Default){const r=this._records.get(e);try{return function e(t,n,r,s,o,i){try{return function(t,n,r,s,o,i){let a;if(!n||i&ie.SkipSelf)i&ie.Self||(a=s.get(t,o,ie.Default));else{if((a=n.value)==Ne)throw Error(Oe+"Circular dependency");if(a===Te){n.value=Ne;let t=void 0,o=n.useNew,i=n.fn,l=n.deps,c=Te;if(l.length){c=[];for(let t=0;t<l.length;t++){const n=l[t],o=n.options,i=2&o?r.get(n.token):void 0;c.push(e(n.token,i,r,i||4&o?s:Se.NULL,1&o?null:Se.THROW_IF_NOT_FOUND,ie.Default))}}n.value=a=o?new i(...c):i.apply(t,c)}}return a}(t,n,r,s,o,i)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[Ve]=a[Ve]||[]).unshift(t),n&&n.value==Ne&&(n.value=Te),a}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[Ve];throw t[we]&&s.unshift(t[we]),e.message=Fe("\n"+e.message,s,"StaticInjectorError",r),e[De]=s,e[Ve]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(de(n))),`StaticInjector[${e.join(", ")}]`}}function Re(e){return Le("Cannot mix multi providers and regular providers",e)}function Fe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Oe?e.substr(2):e;let s=de(t);if(t instanceof Array)s=t.map(de).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):de(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Me,"\n ")}`}function Le(e,t){return new Error(Fe(e,t,"StaticInjectorError"))}const He="ngDebugContext",je="ngOriginalError",$e="ngErrorLogger",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}(),Ue=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(me))();function ze(e){return e[He]}function Ge(e){return e[je]}function Ze(e,...t){e.error(...t)}class We{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[$e]||Ze}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?ze(e)?ze(e):this._findContext(Ge(e)):null}_findOriginalError(e){let t=Ge(e);for(;t&&Ge(t);)t=Ge(t);return t}}let qe=!0,Qe=!1;function Ye(){return Qe=!0,qe}class Ke{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 Je=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Xe=/^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 et(e){return(e=String(e)).match(Je)||e.match(Xe)?e:(Ye()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function tt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function nt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const rt=tt("area,br,col,hr,img,wbr"),st=tt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ot=tt("rp,rt"),it=nt(ot,st),at=nt(rt,nt(st,tt("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")),nt(ot,tt("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")),it),lt=tt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ct=tt("srcset"),ut=nt(lt,ct,tt("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"),tt("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")),dt=tt("script,style,template");class ht{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(!at.hasOwnProperty(t))return this.sanitizedSomething=!0,!dt.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,o=t.toLowerCase();if(!ut.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let i=e.value;lt[o]&&(i=et(i)),ct[o]&&(r=i,i=(r=String(r)).split(",").map(e=>et(e.trim())).join(", ")),this.buf.push(" ",t,'="',gt(i),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();at.hasOwnProperty(t)&&!rt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(gt(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 ft=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pt=/([^\#-~ |!])/g;function gt(e){return e.replace(/&/g,"&").replace(ft,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(pt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let mt;function _t(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const yt=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 vt{}const bt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),wt=/^url\(([^)]+)\)$/,Ct=/([A-Z])/g;function Et(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function xt(e){return!!e&&"function"==typeof e.then}function St(e){return!!e&&"function"==typeof e.subscribe}let kt=null;function Tt(){if(!kt){const e=me.Symbol;if(e&&e.iterator)kt=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&&(kt=n)}}}return kt}function Nt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function At(e,t){const n=Dt(e),r=Dt(t);if(n&&r)return function(e,t,n){const r=e[Tt()](),s=t[Tt()]();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,At);{const s=e&&("object"==typeof e||"function"==typeof e),o=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!o)||Nt(e,t)}}class It{constructor(e){this.wrapped=e}static wrap(e){return new It(e)}static unwrap(e){return It.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof It}}function Dt(e){return!!Vt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Tt()in e)}function Vt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class Mt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}const Ot=new be("The presence of this token marks an injector as being the root injector.");class Pt{}class Rt{}function Ft(e){const t=Error(`No component factory found for ${de(e)}. Did you add it to @NgModule.entryComponents?`);return t[Lt]=e,t}const Lt="ngComponent";class Ht{resolveComponentFactory(e){throw Ft(e)}}const jt=(()=>{class e{}return e.NULL=new Ht,e})();class $t{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 Ft(e);return new Bt(t,this._ngModule)}}class Bt extends Rt{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)}}class Ut{}class zt{}function Gt(...e){}const Zt=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>Wt(e)),e})(),Wt=Gt;class qt{}class Qt{}const Yt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Kt=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Jt()),e})(),Jt=Gt;class Xt{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const en=new Xt("8.0.3");class tn{constructor(){}supports(e){return Dt(e)}create(e){return new rn(e)}}const nn=(e,t)=>t;class rn{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||nn}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 o=!n||t&&t.currentIndex<ln(n,r,s)?t:n,i=ln(o,r,s),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const e=i-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,o=r+n;t<=o&&o<e&&(s[n]=r+1)}s[o.previousIndex]=t-e}}i!==a&&e(o,i,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=[]),!Dt(e))throw new Error(`Error trying to diff '${de(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,o=!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&&Nt(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,n,r,t)),Nt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),o=!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[Tt()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Nt(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,e,r,t)),Nt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),o=!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))?(Nt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Nt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new sn(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 an),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 an),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 sn{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 on{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)&&Nt(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 an{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new on,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 ln(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 cn{constructor(){}supports(e){return e instanceof Map||Vt(e)}create(){return new un}}class un{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||Vt(e)))throw new Error(`Error trying to diff '${de(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 dn(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){Nt(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 dn{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}}const hn=(()=>{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 oe,new re]]}}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=le({providedIn:"root",factory:()=>new e([new tn])}),e})(),fn=(()=>{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 oe,new re]]}}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=le({providedIn:"root",factory:()=>new e([new cn])}),e})(),pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>gn()),e})(),gn=(...e)=>{},mn=[new cn],_n=new hn([new tn]),yn=new fn(mn),vn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>bn(e,Zt)),e})(),bn=Gt,wn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>Cn(e,Zt)),e})(),Cn=Gt;function En(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 xn(n,t),n}(s,e)}function xn(e,t){e[He]=t,e[$e]=t.logError.bind(t)}function Sn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function kn(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 Tn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Nn(e,t){return e.nodes[t]}function An(e,t){return e.nodes[t]}function In(e,t){return e.nodes[t]}function Dn(e,t){return e.nodes[t]}function Vn(e,t){return e.nodes[t]}const Mn={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},On=()=>{},Pn=new Map;function Rn(e){let t=Pn.get(e);return t||(t=de(e)+"_"+Pn.size,Pn.set(e,t)),t}const Fn="$$undefined",Ln="$$empty";function Hn(e){return{id:Fn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let jn=0;function $n(e,t,n,r){return!(!(2&e.state)&&Nt(e.oldValues[t.bindingIndex+n],r))}function Bn(e,t,n,r){return!!$n(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Un(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!At(s,r)){const o=t.bindings[n].name;throw En(Mn.createDebugContext(e,t.nodeIndex),`${o}: ${s}`,`${o}: ${r}`,0!=(1&e.state))}}function zn(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Gn(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Zn(e,t,n,r){try{return zn(33554432&e.def.nodes[t].flags?An(e,t).componentView:e),Mn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function Wn(e){return e.parent?An(e.parent,e.parentNodeDef.nodeIndex):null}function qn(e){return e.parent?e.parentNodeDef.parent:null}function Qn(e,t){switch(201347067&t.flags){case 1:return An(e,t.nodeIndex).renderElement;case 2:return Nn(e,t.nodeIndex).renderText}}function Yn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Kn(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Jn(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 Xn(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,we,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Rn(n)}})}function er(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?An(e,n.renderParent.nodeIndex).renderElement:void 0:t}const tr=new WeakMap;function nr(e){let t=tr.get(e);return t||((t=e(()=>On)).factory=e,tr.set(e,t)),t}function rr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(Qn(e,e.def.lastRenderRootNode))),sr(e,t,0,e.def.nodes.length-1,n,r,s)}function sr(e,t,n,r,s,o,i){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&ir(e,n,t,s,o,i),a+=n.childCount}}function or(e,t,n,r,s,o){let i=e;for(;i&&!Yn(i);)i=i.parent;const a=i.parent,l=qn(i),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&ir(a,e,n,r,s,o),u+=e.childCount}if(!a.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t<i.length;t++)ar(e,i[t],n,r,s,o)}}function ir(e,t,n,r,s,o){if(8&t.flags)or(e,t.ngContent.index,n,r,s,o);else{const i=Qn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&ar(e,i,n,r,s,o),32&t.bindingFlags&&ar(An(e,t.nodeIndex).componentView,i,n,r,s,o)):ar(e,i,n,r,s,o),16777216&t.flags){const i=An(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<i.length;e++)rr(i[e],n,r,s,o)}1&t.flags&&!t.element.name&&sr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,o)}}function ar(e,t,n,r,s,o){const i=e.renderer;switch(n){case 1:i.appendChild(r,t);break;case 2:i.insertBefore(r,t,s);break;case 3:i.removeChild(r,t);break;case 0:o.push(t)}}const lr=/^:([^:]+):(.+)$/;function cr(e){if(":"===e[0]){const t=e.match(lr);return[t[1],t[2]]}return["",e]}function ur(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const dr=new Object,hr=Rn(Se),fr=Rn(Ee),pr=Rn(Ut);function gr(e,t,n,r){return n=pe(n),{index:-1,deps:Xn(r,de(t)),flags:e,token:t,value:n}}function mr(e,t,n=Se.THROW_IF_NOT_FOUND){const r=ve(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 i=t.tokenKey;switch(i){case hr:case fr:case pr:return e}const a=e._def.providersByKey[i];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=_r(e,a)),t===dr?void 0:t}if((l=ce(t.token))&&(s=e,null!=(o=l).providedIn&&(function(e,t){return e._def.modules.indexOf(o.providedIn)>-1}(s)||"root"===o.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]=dr,e._providers[n]=_r(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{ve(r)}var s,o}function _r(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(mr(e,n[0]));case 2:return new t(mr(e,n[0]),mr(e,n[1]));case 3:return new t(mr(e,n[0]),mr(e,n[1]),mr(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=mr(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(mr(e,n[0]));case 2:return t(mr(e,n[0]),mr(e,n[1]));case 3:return t(mr(e,n[0]),mr(e,n[1]),mr(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=mr(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=mr(e,t.deps[0]);break;case 256:n=t.value}return n===dr||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?dr:n}function yr(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,Cr(n,t),Mn.dirtyParentQueries(r),br(r),r}function vr(e,t,n){const r=t?Qn(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);rr(n,2,s,o,void 0)}function br(e){rr(e,3,null,null,void 0)}function wr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Cr(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const Er=new Object;function xr(e,t,n,r,s,o){return new Sr(e,t,n,r,s,o)}class Sr extends Rt{constructor(e,t,n,r,s,o){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=o,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=nr(this.viewDefFactory),o=s.nodes[0].element.componentProvider.nodeIndex,i=Mn.createRootView(e,t||[],n,s,r,Er),a=In(i,o).instance;return n&&i.renderer.setAttribute(An(i,0).renderElement,"ng-version",en.full),new kr(i,new Ir(i),a)}}class kr extends Pt{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 Zt(An(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Or(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Tr(e,t,n){return new Nr(e,t,n)}class Nr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Zt(this._data.renderElement)}get injector(){return new Or(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=qn(e),e=e.parent;return e?new Or(e,t):new Or(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=yr(this._data,e);Mn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Ir(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 o=n||this.parentInjector;s||e instanceof Bt||(s=o.get(Ut));const i=e.create(o,r,void 0,s);return this.insert(i.hostView,t),i}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,wr(s,n,r),function(e,t){const n=Wn(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),Mn.dirtyParentQueries(r),vr(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,o=s[n];Cr(s,n),null==r&&(r=s.length),wr(s,r,o),Mn.dirtyParentQueries(o),br(o),vr(e,r>0?s[r-1]:null,o)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=yr(this._data,e);t&&Mn.destroyView(t)}detach(e){const t=yr(this._data,e);return t?new Ir(t):null}}function Ar(e){return new Ir(e)}class Ir{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return rr(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(){zn(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Mn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Mn.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)),Mn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,br(this._view),Mn.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 Dr(e,t){return new Vr(e,t)}class Vr extends vn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Ir(Mn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Zt(An(this._parentView,this._def.nodeIndex).renderElement)}}function Mr(e,t){return new Or(e,t)}class Or{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Se.THROW_IF_NOT_FOUND){return Mn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Rn(e)},t)}}function Pr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=An(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Nn(e,n.nodeIndex).renderText;if(20240&n.flags)return In(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Rr(e){return new Fr(e.renderer)}class Fr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=cr(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]=cr(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 Lr(e,t,n,r){return new Hr(e,t,n,r)}class Hr{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]=_r(e,s))}}(this)}get(e,t=Se.THROW_IF_NOT_FOUND,n=ie.Default){let r=0;return n&ie.SkipSelf?r|=1:n&ie.Self&&(r|=4),mr(this,{token:e,tokenKey:Rn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(jt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${de(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!==dr){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 jr=Rn(qt),$r=Rn(Kt),Br=Rn(Zt),Ur=Rn(wn),zr=Rn(vn),Gr=Rn(pn),Zr=Rn(Se),Wr=Rn(Ee);function qr(e,t,n,r,s,o,i,a){const l=[];if(i)for(let u in i){const[e,t]=i[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return Yr(e,t|=16384,n,r,s,s,o,l,c)}function Qr(e,t,n,r,s){return Yr(-1,e,t,0,n,r,s)}function Yr(e,t,n,r,s,o,i,a,l){const{matchedQueries:c,references:u,matchedQueryIds:d}=Jn(n);l||(l=[]),a||(a=[]),o=pe(o);const h=Xn(i,de(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:ur(a),outputs:l,element:null,provider:{token:s,value:o,deps:h},text:null,query:null,ngContent:null}}function Kr(e,t){return ts(e,t)}function Jr(e,t){let n=e;for(;n.parent&&!Yn(n);)n=n.parent;return ns(n.parent,qn(n),!0,t.provider.value,t.provider.deps)}function Xr(e,t){const n=ns(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],o=n[s.propName];if(!St(o))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(es(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function es(e,t,n){return r=>Zn(e,t,n,r)}function ts(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return ns(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const o=s.length;switch(o){case 0:return r();case 1:return r(ss(e,t,n,s[0]));case 2:return r(ss(e,t,n,s[0]),ss(e,t,n,s[1]));case 3:return r(ss(e,t,n,s[0]),ss(e,t,n,s[1]),ss(e,t,n,s[2]));default:const i=Array(o);for(let r=0;r<o;r++)i[r]=ss(e,t,n,s[r]);return r(...i)}}(e,t.parent,n,r.value,r.deps);case 2048:return ss(e,t.parent,n,r.deps[0]);case 256:return r.value}}function ns(e,t,n,r,s){const o=s.length;switch(o){case 0:return new r;case 1:return new r(ss(e,t,n,s[0]));case 2:return new r(ss(e,t,n,s[0]),ss(e,t,n,s[1]));case 3:return new r(ss(e,t,n,s[0]),ss(e,t,n,s[1]),ss(e,t,n,s[2]));default:const i=new Array(o);for(let r=0;r<o;r++)i[r]=ss(e,t,n,s[r]);return new r(...i)}}const rs={};function ss(e,t,n,r,s=Se.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const o=e;2&r.flags&&(s=null);const i=r.tokenKey;i===Gr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(i){case jr:return Rr(os(a,t,n));case $r:return os(a,t,n).renderer;case Br:return new Zt(An(a,t.nodeIndex).renderElement);case Ur:return An(a,t.nodeIndex).viewContainer;case zr:if(t.element.template)return An(a,t.nodeIndex).template;break;case Gr:return Ar(os(a,t,n));case Zr:case Wr:return Mr(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[i];if(e){let t=In(a,e.nodeIndex);return t||(t={instance:ts(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=Yn(a),t=qn(a),a=a.parent,4&r.flags&&(a=null)}const l=o.root.injector.get(r.token,rs);return l!==rs||s===rs?l:o.root.ngModule.injector.get(r.token,s)}function os(e,t,n){let r;if(n)r=An(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Yn(r);)r=r.parent;return r}function is(e,t,n,r,s,o){if(32768&n.flags){const t=An(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){o=o||{};const t=It.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Mt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,o}function as(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 o=n[s];let i=o.parent;for(!i&&o.flags&t&&cs(e,s,o.flags&t,r++),0==(o.childFlags&t)&&(s+=o.childCount);i&&1&i.flags&&s===i.nodeIndex+i.childCount;)i.directChildFlags&t&&(r=ls(e,i,t,r)),i=i.parent}}function ls(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&&cs(e,s,t.flags&n,r++),s+=t.childCount}return r}function cs(e,t,n,r){const s=In(e,t);if(!s)return;const o=s.instance;o&&(Mn.setCurrentNode(e,t),1048576&n&&Tn(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Tn(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}const us=new be("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ue});class ds extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>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&&(o=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&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return e instanceof h&&e.add(i),i}}class hs{constructor(){this.dirty=!0,this._results=[],this.changes=new ds,this.length=0}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()}[Tt()](){return this._results[Tt()]()}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 fs=new be("Application Initializer"),ps=(()=>(class{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]();xt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))(),gs=new be("AppId");function ms(){return`${_s()}${_s()}${_s()}`}function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ys=new be("Platform Initializer"),vs=new be("Platform ID"),bs=new be("appBootstrapListener"),ws=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();function Cs(){throw new Error("Runtime compiler is not loaded")}const Es=Cs,xs=Cs,Ss=Cs,ks=Cs,Ts=(()=>(class{constructor(){this.compileModuleSync=Es,this.compileModuleAsync=xs,this.compileModuleAndAllComponentsSync=Ss,this.compileModuleAndAllComponentsAsync=ks}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class Ns{}let As,Is;function Ds(){const e=me.wtf;return!(!e||!(As=e.trace)||(Is=As.events,0))}const Vs=Ds(),Ms=Vs?function(e,t=null){return Is.createScope(e,t)}:(e,t)=>(function(e,t){return null}),Os=Vs?function(e,t){return As.leaveScope(e,t),t}:(e,t)=>t,Ps=(()=>Promise.resolve(0))();function Rs(e){"undefined"==typeof Zone?Ps.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fs{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ds(!1),this.onMicrotaskEmpty=new ds(!1),this.onStable=new ds(!1),this.onError=new ds(!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,o,i)=>{try{return $s(t),e.invokeTask(r,s,o,i)}finally{Bs(t)}},onInvoke:(e,n,r,s,o,i,a)=>{try{return $s(t),e.invoke(r,s,o,i,a)}finally{Bs(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,js(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(!Fs.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fs.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,o=s.scheduleEventTask("NgZoneEvent: "+r,e,Hs,Ls,Ls);try{return s.runTask(o,t,n)}finally{s.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Ls(){}const Hs={};function js(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 $s(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bs(e){e._nesting--,js(e)}class Us{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ds,this.onMicrotaskEmpty=new ds,this.onStable=new ds,this.onError=new ds}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}const zs=(()=>(class{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:()=>{Fs.assertNotInAngularZone(),Rs(()=>{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())Rs(()=>{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[]}}))(),Gs=(()=>{class e{constructor(){this._applications=new Map,qs.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 qs.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class Zs{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Ws,qs=new Zs,Qs=function(e){return e instanceof Bt};const Ys=new be("AllowMultipleToken");class Ks{constructor(e,t){this.name=e,this.token=t}}function Js(e,t,n=[]){const r=`Platform: ${t}`,s=new be(r);return(t=[])=>{let o=Xs();if(!o||o.injector.get(Ys,!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(Ws&&!Ws.destroyed&&!Ws.injector.get(Ys,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ws=e.get(eo);const t=e.get(ys,null);t&&t.forEach(e=>e())}(Se.create({providers:e,name:r}))}return function(e){const t=Xs();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 Xs(){return Ws&&!Ws.destroyed?Ws:null}const eo=(()=>(class{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 Us:("zone.js"===s?void 0:s)||new Fs({enableLongStackTrace:Ye()}),r=[{provide:Fs,useValue:n}];var s;return n.run(()=>{const t=Se.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),o=s.injector.get(We,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>ro(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return xt(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=s.injector.get(ps);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=to({},t);return function(e,t,n){return e.get(Ns).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(no);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${de(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 to(e,t){return Array.isArray(t)?t.reduce(to,e):Object.assign({},e,t)}const no=(()=>{class e{constructor(e,t,n,r,s,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ye(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Fs.assertNotInAngularZone(),Rs(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Fs.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 k(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 y?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?s=>s.pipe(e((e,r)=>U(t(e,r)).pipe(H((t,s)=>n(e,t,r,s))),r)):("number"==typeof n&&(r=n),e=>e.lift(new z(t,r)))}(Z,e)}(t)(B(e,n))}(i,a.pipe(e=>W()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,K);return r.source=t,r.subjectFactory=n,r}}(X)(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 Rt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Qs(n)?null:this._injector.get(Ut),s=n.create(Se.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(zs,null);return o&&s.injector.get(Gs).registerApplication(s.location.nativeElement,o),this._loadComponent(s),Ye()&&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,Os(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ro(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ro(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Ms("ApplicationRef#tick()"),e})();function ro(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class so{constructor(e,t){this.name=e,this.callback=t}}class oo{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof io&&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 io extends oo{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 io&&(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 io&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof io&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof io)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const ao=new Map,lo=function(e){return ao.get(e)||null};function co(e){ao.set(e.nativeNode,e)}const uo=Js(null,"core",[{provide:vs,useValue:"unknown"},{provide:eo,deps:[Se]},{provide:Gs,deps:[]},{provide:ws,deps:[]}]),ho=new be("LocaleId");function fo(){return _n}function po(){return yn}function go(e){return e||"en-US"}function mo(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const _o=(()=>(class{constructor(e){}}))();function yo(e,t,n,r,s,o){e|=1;const{matchedQueries:i,references:a,matchedQueryIds:l}=Jn(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?nr(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||On},provider:null,text:null,query:null,ngContent:null}}function vo(e,t,n,r,s,o,i=[],a,l,c,u,d){c||(c=On);const{matchedQueries:h,references:f,matchedQueryIds:p}=Jn(n);let g=null,m=null;o&&([g,m]=cr(o)),a=a||[];const _=new Array(a.length);for(let b=0;b<a.length;b++){const[e,t,n]=a[b],[r,s]=cr(t);let o=void 0,i=void 0;switch(15&e){case 4:i=n;break;case 1:case 8:o=n}_[b]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:o,suffix:i}}l=l||[];const y=new Array(l.length);for(let b=0;b<l.length;b++){const[e,t]=l[b];y[b]={type:0,target:e,eventName:t,propName:null}}const v=(i=i||[]).map(([e,t])=>{const[n,r]=cr(e);return[n,r,t]});return d=function(e){if(e&&e.id===Fn){const t=null!=e.encapsulation&&e.encapsulation!==Be.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${jn++}`:Ln}return e&&e.id===Ln&&(e=null),e||null}(d),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:s,bindings:_,bindingFlags:ur(_),outputs:y,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:u||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:c||On},provider:null,text:null,query:null,ngContent:null}}function bo(e,t,n){const r=n.element,s=e.root.selectorOrNode,o=e.renderer;let i;if(e.parent||!s){i=r.name?o.createElement(r.name,r.ns):o.createComment("");const s=er(e,t,n);s&&o.appendChild(s,i)}else i=o.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];o.setAttribute(i,t,n,e)}return i}function wo(e,t,n,r){for(let i=0;i<n.outputs.length;i++){const a=n.outputs[i],l=Co(e,n.nodeIndex,(o=a.eventName,(s=a.target)?`${s}:${o}`:o));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const d=u.renderer.listen(c||r,a.eventName,l);e.disposables[n.outputIndex+i]=d}var s,o}function Co(e,t,n){return r=>Zn(e,t,n,r)}function Eo(e,t,n,r){if(!Bn(e,t,n,r))return!1;const s=t.bindings[n],o=An(e,t.nodeIndex),i=o.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,o){const i=t.securityContext;let a=i?e.root.sanitizer.sanitize(i,o):o;a=null!=a?a.toString():null;const l=e.renderer;null!=o?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,i,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,i,a,r);break;case 4:!function(e,t,n,r,s){let o=e.root.sanitizer.sanitize(yt.STYLE,s);if(null!=o){o=o.toString();const e=t.suffix;null!=e&&(o+=e)}else o=null;const i=e.renderer;null!=o?i.setStyle(n,r,o):i.removeStyle(n,r)}(e,s,i,a,r);break;case 8:!function(e,t,n,r,s){const o=t.securityContext;let i=o?e.root.sanitizer.sanitize(o,s):s;e.renderer.setProperty(n,r,i)}(33554432&t.flags&&32&s.flags?o.componentView:e,s,i,a,r)}return!0}function xo(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Kn(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&&Vn(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&&Vn(e,n).setDirty(),n+=t.childCount}}function So(e,t){const n=Vn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=ko(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=In(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=ko(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const o=t.query.bindings;let i=!1;for(let a=0;a<o.length;a++){const e=o[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,i=!0}r[e.propName]=t}i&&n.notifyOnChanges()}function ko(e,t,n,r,s){for(let o=t;o<=n;o++){const t=e.def.nodes[o],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=An(e,o);if((t.childMatchedQueries&r.filterId)===r.filterId&&(ko(e,o+1,o+t.childCount,r,s),o+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const o=e[t],i=Wn(o);i&&i===n&&ko(o,0,o.def.nodes.length-1,r,s)}}const i=n.template._projectedViews;if(i)for(let e=0;e<i.length;e++){const t=i[e];ko(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(o+=t.childCount)}return s}function To(e,t,n){if(null!=n)switch(n){case 1:return An(e,t.nodeIndex).renderElement;case 0:return new Zt(An(e,t.nodeIndex).renderElement);case 2:return An(e,t.nodeIndex).template;case 3:return An(e,t.nodeIndex).viewContainer;case 4:return In(e,t.nodeIndex).instance}}function No(e,t,n){const r=er(e,t,n);r&&or(e,n.ngContent.index,1,r,null,void 0)}function Ao(e,t,n){const r=new Array(n.length);for(let s=0;s<n.length;s++){const e=n[s];r[s]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ur(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Io(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 Do(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const o=er(e,t,n);return o&&s.appendChild(o,r),{renderText:r}}function Vo(e,t){return(null!=e?e.toString():"")+t.suffix}function Mo(e,t,n,r){let s=0,o=0,i=0,a=0,l=0,c=null,u=null,d=!1,h=!1,f=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=c,e.bindingIndex=s,e.outputIndex=o,e.renderParent=u,i|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,d=!1,h=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(Po(c,e,t.length),s+=e.bindings.length,o+=e.outputs.length,!u&&3&e.flags&&(f=e),20224&e.flags){d||(d=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[Rn(e.provider.token)]=e:(h||(h=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Rn(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,Oo(e)||(u=e);else for(;c&&p===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),u=(c=e)&&Oo(c)?c.renderParent:c}}return{factory:null,nodeFlags:i,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||On,updateRenderer:r||On,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:o,lastRenderRootNode:f}}function Oo(e){return 0!=(1&e.flags)&&null===e.element.name}function Po(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 Ro(e,t,n,r){const s=Ho(e.root,e.renderer,e,t,n);return jo(s,e.component,r),$o(s),s}function Fo(e,t,n){const r=Ho(e,e.renderer,null,null,t);return jo(r,n,n),$o(r),r}function Lo(e,t,n,r){const s=t.element.componentRendererType;let o;return o=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,Ho(e.root,o,e,t.element.componentProvider,n)}function Ho(e,t,n,r,s){const o=new Array(s.nodes.length),i=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:i,initIndex:-1}}function jo(e,t,n){e.component=t,e.context=n}function $o(e){let t;Yn(e)&&(t=An(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const o=n.nodes[s];let i;switch(Mn.setCurrentNode(e,s),201347067&o.flags){case 1:const n=bo(e,t,o);let a=void 0;if(33554432&o.flags){const t=nr(o.element.componentView);a=Mn.createComponentView(e,o,t,n)}wo(e,a,o,n),i={renderElement:n,componentView:a,viewContainer:null,template:o.element.template?Dr(e,o):void 0},16777216&o.flags&&(i.viewContainer=Tr(e,o,i));break;case 2:i=Do(e,t,o);break;case 512:case 1024:case 2048:case 256:(i=r[s])||4096&o.flags||(i={instance:Kr(e,o)});break;case 16:i={instance:Jr(e,o)};break;case 16384:(i=r[s])||(i={instance:Xr(e,o)}),32768&o.flags&&jo(An(e,o.parent.nodeIndex).componentView,i.instance,i.instance);break;case 32:case 64:case 128:i={value:void 0};break;case 67108864:case 134217728:i=new hs;break;case 8:No(e,t,o),i=void 0}r[s]=i}Yo(e,Qo.CreateViewNodes),ei(e,201326592,268435456,0)}function Bo(e){Go(e),Mn.updateDirectives(e,1),Ko(e,Qo.CheckNoChanges),Mn.updateRenderer(e,1),Yo(e,Qo.CheckNoChanges),e.state&=-97}function Uo(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,kn(e,0,256),Go(e),Mn.updateDirectives(e,0),Ko(e,Qo.CheckAndUpdate),ei(e,67108864,536870912,0);let t=kn(e,256,512);as(e,2097152|(t?1048576:0)),Mn.updateRenderer(e,0),Yo(e,Qo.CheckAndUpdate),ei(e,134217728,536870912,0),as(e,8388608|((t=kn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,kn(e,768,1024)}function zo(e,t,n,r,s,o,i,a,l,c,u,d,h){return 0===n?function(e,t,n,r,s,o,i,a,l,c,u,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,o,i,a,l,c,u,d){const h=t.bindings.length;let f=!1;return h>0&&Eo(e,t,0,n)&&(f=!0),h>1&&Eo(e,t,1,r)&&(f=!0),h>2&&Eo(e,t,2,s)&&(f=!0),h>3&&Eo(e,t,3,o)&&(f=!0),h>4&&Eo(e,t,4,i)&&(f=!0),h>5&&Eo(e,t,5,a)&&(f=!0),h>6&&Eo(e,t,6,l)&&(f=!0),h>7&&Eo(e,t,7,c)&&(f=!0),h>8&&Eo(e,t,8,u)&&(f=!0),h>9&&Eo(e,t,9,d)&&(f=!0),f}(e,t,n,r,s,o,i,a,l,c,u,d);case 2:return function(e,t,n,r,s,o,i,a,l,c,u,d){let h=!1;const f=t.bindings,p=f.length;if(p>0&&Bn(e,t,0,n)&&(h=!0),p>1&&Bn(e,t,1,r)&&(h=!0),p>2&&Bn(e,t,2,s)&&(h=!0),p>3&&Bn(e,t,3,o)&&(h=!0),p>4&&Bn(e,t,4,i)&&(h=!0),p>5&&Bn(e,t,5,a)&&(h=!0),p>6&&Bn(e,t,6,l)&&(h=!0),p>7&&Bn(e,t,7,c)&&(h=!0),p>8&&Bn(e,t,8,u)&&(h=!0),p>9&&Bn(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;p>0&&(h+=Vo(n,f[0])),p>1&&(h+=Vo(r,f[1])),p>2&&(h+=Vo(s,f[2])),p>3&&(h+=Vo(o,f[3])),p>4&&(h+=Vo(i,f[4])),p>5&&(h+=Vo(a,f[5])),p>6&&(h+=Vo(l,f[6])),p>7&&(h+=Vo(c,f[7])),p>8&&(h+=Vo(u,f[8])),p>9&&(h+=Vo(d,f[9]));const g=Nn(e,t.nodeIndex).renderText;e.renderer.setValue(g,h)}return h}(e,t,n,r,s,o,i,a,l,c,u,d);case 16384:return function(e,t,n,r,s,o,i,a,l,c,u,d){const h=In(e,t.nodeIndex),f=h.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&$n(e,t,0,n)&&(p=!0,g=is(e,h,t,0,n,g)),m>1&&$n(e,t,1,r)&&(p=!0,g=is(e,h,t,1,r,g)),m>2&&$n(e,t,2,s)&&(p=!0,g=is(e,h,t,2,s,g)),m>3&&$n(e,t,3,o)&&(p=!0,g=is(e,h,t,3,o,g)),m>4&&$n(e,t,4,i)&&(p=!0,g=is(e,h,t,4,i,g)),m>5&&$n(e,t,5,a)&&(p=!0,g=is(e,h,t,5,a,g)),m>6&&$n(e,t,6,l)&&(p=!0,g=is(e,h,t,6,l,g)),m>7&&$n(e,t,7,c)&&(p=!0,g=is(e,h,t,7,c,g)),m>8&&$n(e,t,8,u)&&(p=!0,g=is(e,h,t,8,u,g)),m>9&&$n(e,t,9,d)&&(p=!0,g=is(e,h,t,9,d,g)),g&&f.ngOnChanges(g),65536&t.flags&&Tn(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,s,o,i,a,l,c,u,d);case 32:case 64:case 128:return function(e,t,n,r,s,o,i,a,l,c,u,d){const h=t.bindings;let f=!1;const p=h.length;if(p>0&&Bn(e,t,0,n)&&(f=!0),p>1&&Bn(e,t,1,r)&&(f=!0),p>2&&Bn(e,t,2,s)&&(f=!0),p>3&&Bn(e,t,3,o)&&(f=!0),p>4&&Bn(e,t,4,i)&&(f=!0),p>5&&Bn(e,t,5,a)&&(f=!0),p>6&&Bn(e,t,6,l)&&(f=!0),p>7&&Bn(e,t,7,c)&&(f=!0),p>8&&Bn(e,t,8,u)&&(f=!0),p>9&&Bn(e,t,9,d)&&(f=!0),f){const f=Dn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(h.length),p>0&&(g[0]=n),p>1&&(g[1]=r),p>2&&(g[2]=s),p>3&&(g[3]=o),p>4&&(g[4]=i),p>5&&(g[5]=a),p>6&&(g[6]=l),p>7&&(g[7]=c),p>8&&(g[8]=u),p>9&&(g[9]=d);break;case 64:g={},p>0&&(g[h[0].name]=n),p>1&&(g[h[1].name]=r),p>2&&(g[h[2].name]=s),p>3&&(g[h[3].name]=o),p>4&&(g[h[4].name]=i),p>5&&(g[h[5].name]=a),p>6&&(g[h[6].name]=l),p>7&&(g[h[7].name]=c),p>8&&(g[h[8].name]=u),p>9&&(g[h[9].name]=d);break;case 128:const e=n;switch(p){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,o);break;case 5:g=e.transform(r,s,o,i);break;case 6:g=e.transform(r,s,o,i,a);break;case 7:g=e.transform(r,s,o,i,a,l);break;case 8:g=e.transform(r,s,o,i,a,l,c);break;case 9:g=e.transform(r,s,o,i,a,l,c,u);break;case 10:g=e.transform(r,s,o,i,a,l,c,u,d)}}f.value=g}return f}(e,t,n,r,s,o,i,a,l,c,u,d);default:throw"unreachable"}}(e,t,r,s,o,i,a,l,c,u,d,h):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++)Eo(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 o=0;o<n.length;o++)Bn(e,t,o,n[o])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=Vo(n[e],r[e]);s=t.text.prefix+s;const o=Nn(e,t.nodeIndex).renderText;e.renderer.setValue(o,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=In(e,t.nodeIndex),s=r.instance;let o=!1,i=void 0;for(let a=0;a<n.length;a++)$n(e,t,a,n[a])&&(o=!0,i=is(e,r,t,a,n[a],i));return i&&s.ngOnChanges(i),65536&t.flags&&Tn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let o=0;o<n.length;o++)Bn(e,t,o,n[o])&&(s=!0);if(s){const s=Dn(e,t.nodeIndex);let o;switch(201347067&t.flags){case 32:o=n;break;case 64:o={};for(let t=0;t<n.length;t++)o[r[t].name]=n[t];break;case 128:const e=n[0],s=n.slice(1);o=e.transform(...s)}s.value=o}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Go(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=An(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,Gn(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Zo(e,t,n,r,s,o,i,a,l,c,u,d,h){return 0===n?function(e,t,n,r,s,o,i,a,l,c,u,d){const h=t.bindings.length;h>0&&Un(e,t,0,n),h>1&&Un(e,t,1,r),h>2&&Un(e,t,2,s),h>3&&Un(e,t,3,o),h>4&&Un(e,t,4,i),h>5&&Un(e,t,5,a),h>6&&Un(e,t,6,l),h>7&&Un(e,t,7,c),h>8&&Un(e,t,8,u),h>9&&Un(e,t,9,d)}(e,t,r,s,o,i,a,l,c,u,d,h):function(e,t,n){for(let r=0;r<n.length;r++)Un(e,t,r,n[r])}(e,t,r),!1}function Wo(e,t){if(Vn(e,t.nodeIndex).dirty)throw En(Mn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function qo(e){if(!(128&e.state)){if(Ko(e,Qo.Destroy),Yo(e,Qo.Destroy),as(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=Wn(e);if(t){const n=t.template._projectedViews;n&&(Cr(n,n.indexOf(e)),Mn.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(An(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Nn(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Vn(e,n).destroy()}}(e),Yn(e)&&e.renderer.destroy(),e.state|=128}}const Qo=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 Yo(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?Jo(An(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function Ko(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=An(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Jo(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function Jo(e,t){const n=e.state;switch(t){case Qo.CheckNoChanges:0==(128&n)&&(12==(12&n)?Bo(e):64&n&&Xo(e,Qo.CheckNoChangesProjectedViews));break;case Qo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Bo(e):64&n&&Xo(e,t));break;case Qo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Uo(e):64&n&&Xo(e,Qo.CheckAndUpdateProjectedViews));break;case Qo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Uo(e):64&n&&Xo(e,t));break;case Qo.Destroy:qo(e);break;case Qo.CreateViewNodes:$o(e)}}function Xo(e,t){Ko(e,t),Yo(e,t)}function ei(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let o=0;o<s;o++){const s=e.def.nodes[o];if(s.flags&t&&s.flags&n)switch(Mn.setCurrentNode(e,s.nodeIndex),r){case 0:So(e,s);break;case 1:Wo(e,s)}s.childFlags&t&&s.childFlags&n||(o+=s.childCount)}}let ti=!1;function ni(e,t,n,r,s,o){const i=s.injector.get(Qt);return Fo(si(e,s,i,t,n),r,o)}function ri(e,t,n,r,s,o){const i=s.injector.get(Qt),a=si(e,s,new Ri(i),t,n),l=pi(r);return Oi(bi.create,Fo,null,[a,l,o])}function si(e,t,n,r,s){const o=t.injector.get(vt),i=t.injector.get(We),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:i}}function oi(e,t,n,r){const s=pi(n);return Oi(bi.create,Ro,null,[e,t,s,r])}function ii(e,t,n,r){return n=ui.get(t.element.componentProvider.provider.token)||pi(n),Oi(bi.create,Lo,null,[e,t,n,r])}function ai(e,t,n,r){return Lr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===li.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=li.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{ci.forEach((r,s)=>{ce(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=li.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=Xn(s.deps),r.value=s.value)}if(ci.size>0){let t=new Set(e.modules);ci.forEach((r,s)=>{if(t.has(ce(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:Xn(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Rn(s)]=t}})}}(e=e.factory(()=>On)),e):e}(r))}const li=new Map,ci=new Map,ui=new Map;function di(e){let t;li.set(e.token,e),"function"==typeof e.token&&(t=ce(e.token))&&"function"==typeof t.providedIn&&ci.set(e.token,e)}function hi(e,t){const n=nr(t.viewDefFactory),r=nr(n.nodes[0].element.componentView);ui.set(e,r)}function fi(){li.clear(),ci.clear(),ui.clear()}function pi(e){if(0===li.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&&li.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>On);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=li.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Xn(n.deps),e.value=n.value)}}}}function gi(e,t,n,r,s,o,i,a,l,c,u,d,h){const f=e.def.nodes[t];return zo(e,f,n,r,s,o,i,a,l,c,u,d,h),224&f.flags?Dn(e,t).value:void 0}function mi(e,t,n,r,s,o,i,a,l,c,u,d,h){const f=e.def.nodes[t];return Zo(e,f,n,r,s,o,i,a,l,c,u,d,h),224&f.flags?Dn(e,t).value:void 0}function _i(e){return Oi(bi.detectChanges,Uo,null,[e])}function yi(e){return Oi(bi.checkNoChanges,Bo,null,[e])}function vi(e){return Oi(bi.destroy,qo,null,[e])}const bi=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 wi,Ci,Ei;function xi(e,t){Ci=e,Ei=t}function Si(e,t,n,r){return xi(e,t),Oi(bi.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ki(e,t){if(128&e.state)throw Sn(bi[wi]);return xi(e,Ii(e,0)),e.def.updateDirectives(function(e,n,r,...s){const o=e.def.nodes[n];return 0===t?Ni(e,o,r,s):Ai(e,o,r,s),16384&o.flags&&xi(e,Ii(e,n)),224&o.flags?Dn(e,o.nodeIndex).value:void 0},e)}function Ti(e,t){if(128&e.state)throw Sn(bi[wi]);return xi(e,Di(e,0)),e.def.updateRenderer(function(e,n,r,...s){const o=e.def.nodes[n];return 0===t?Ni(e,o,r,s):Ai(e,o,r,s),3&o.flags&&xi(e,Di(e,n)),224&o.flags?Dn(e,o.nodeIndex).value:void 0},e)}function Ni(e,t,n,r){if(zo(e,t,n,...r)){const i=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=i[e];8&r.flags&&(n[(s=r.nonMinifiedName,o=void 0,o=s.replace(/[$@]/g,"_"),`ng-reflect-${s=o.replace(Ct,(...e)=>"-"+e[1].toLowerCase())}`)]=Et(a))}const r=t.parent,a=An(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,o}function Ai(e,t,n,r){Zo(e,t,n,...r)}function Ii(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 Di(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 Vi{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=qn(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return An(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Mr(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){Mi(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&&Mi(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Yn(e);)e=e.parent;return e.parent?An(e.parent,qn(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Qn(this.view,this.nodeDef):Qn(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 o=-1;n.factory(()=>++o===s?e.error.bind(e,...t):On),o<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Mi(e,t,n){for(let r in t.references)n[r]=To(e,t,t.references[r])}function Oi(e,t,n,r){const s=wi,o=Ci,i=Ei;try{wi=e;const l=t.apply(n,r);return Ci=o,Ei=i,wi=s,l}catch(a){if(ze(a)||!Ci)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),xn(e,t),e}(a,Pi())}}function Pi(){return Ci?new Vi(Ci,Ei):null}class Ri{constructor(e){this.delegate=e}createRenderer(e,t){return new Fi(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 Fi{constructor(e){this.delegate=e,this.debugContextFactory=Pi,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){ao.delete(e.nativeNode)}(lo(e)),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 io(n,null,r);t.name=e,co(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&co(new oo(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&co(new oo(t,null,n)),t}appendChild(e,t){const n=lo(e),r=lo(t);n&&r&&n instanceof io&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=lo(e),s=lo(t),o=lo(n);r&&s&&r instanceof io&&r.insertBefore(o,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=lo(e),r=lo(t);n&&r&&n instanceof io&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Pi();return r&&co(new io(n,null,r)),n}setAttribute(e,t,n,r){const s=lo(e);s&&s instanceof io&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=lo(e);r&&r instanceof io&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=lo(e);n&&n instanceof io&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=lo(e);n&&n instanceof io&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=lo(e);s&&s instanceof io&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=lo(e);r&&r instanceof io&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=lo(e);r&&r instanceof io&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=lo(e);r&&r.listeners.push(new so(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 Li(e,t,n){return new Hi(e,t,n)}class Hi extends zt{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(ti)return;ti=!0;const e=Ye()?{setCurrentNode:xi,createRootView:ri,createEmbeddedView:oi,createComponentView:ii,createNgModuleRef:ai,overrideProvider:di,overrideComponentView:hi,clearOverrides:fi,checkAndUpdateView:_i,checkNoChangesView:yi,destroyView:vi,createDebugContext:(e,t)=>new Vi(e,t),handleEvent:Si,updateDirectives:ki,updateRenderer:Ti}:{setCurrentNode:()=>{},createRootView:ni,createEmbeddedView:Ro,createComponentView:Lo,createNgModuleRef:Lr,overrideProvider:On,overrideComponentView:On,clearOverrides:On,checkAndUpdateView:Uo,checkNoChangesView:Bo,destroyView:qo,createDebugContext:(e,t)=>new Vi(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?gi:mi,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?gi:mi,e)};Mn.setCurrentNode=e.setCurrentNode,Mn.createRootView=e.createRootView,Mn.createEmbeddedView=e.createEmbeddedView,Mn.createComponentView=e.createComponentView,Mn.createNgModuleRef=e.createNgModuleRef,Mn.overrideProvider=e.overrideProvider,Mn.overrideComponentView=e.overrideComponentView,Mn.clearOverrides=e.clearOverrides,Mn.checkAndUpdateView=e.checkAndUpdateView,Mn.checkNoChangesView=e.checkNoChangesView,Mn.destroyView=e.destroyView,Mn.resolveDep=ss,Mn.createDebugContext=e.createDebugContext,Mn.handleEvent=e.handleEvent,Mn.updateDirectives=e.updateDirectives,Mn.updateRenderer=e.updateRenderer,Mn.dirtyParentQueries=xo}();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}}(nr(this._ngModuleDefFactory));return Mn.createNgModuleRef(this.moduleType,e||Se.NULL,this._bootstrapComponents,t)}}class ji{}class $i{constructor(){this.title="devlogger"}}class Bi{constructor(){}ngOnInit(){}}var Ui=Hn({encapsulation:0,styles:[[""]],data:{}});function zi(e){return Mo(0,[(e()(),vo(0,0,null,null,2,"nav",[["class","navbar navbar-dark bg-dark mb-3"]],null,null,null,null,null)),(e()(),vo(1,0,null,null,1,"a",[["class","navbar-brand"],["href","/"]],null,null,null,null,null)),(e()(),Io(-1,null,["DevLogger"]))],null,null)}class Gi{}const Zi=void 0;var Wi=["en",[["a","p"],["AM","PM"],Zi],[["AM","PM"],Zi,Zi],[["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"]],Zi,[["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"]],Zi,[["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}",Zi,"{1} 'at' {0}",Zi],[".",",",";","%","+","-","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 qi={},Qi=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}(),Yi=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Ki=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Ji=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),Xi=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function ea(e,t){return oa(aa(e)[10],t)}function ta(e,t){return oa(aa(e)[11],t)}function na(e,t){return oa(aa(e)[12],t)}function ra(e,t){const n=aa(e),r=n[13][t];if(void 0===r){if(t===Xi.CurrencyDecimal)return n[13][Xi.Decimal];if(t===Xi.CurrencyGroup)return n[13][Xi.Group]}return r}function sa(e){if(!e[19])throw new Error(`Missing extra locale data for the locale "${e[0]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oa(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function ia(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}function aa(e){const t=e.toLowerCase().replace(/_/g,"-");let n=qi[t];if(n)return n;const r=t.split("-")[0];if(n=qi[r])return n;if("en"===r)return Wi;throw new Error(`Missing locale data for the locale "${e}".`)}const la=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ca={},ua=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,da=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),ha=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),fa=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function pa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function ga(e,t,n="-",r,s){let o="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,o=n));let i=String(e);for(;i.length<t;)i="0"+i;return r&&(i=i.substr(i.length-t)),o+i}function ma(e,t,n=0,r=!1,s=!1){return function(o,i){let a=function(e,t){switch(e){case ha.FullYear:return t.getFullYear();case ha.Month:return t.getMonth();case ha.Date:return t.getDate();case ha.Hours:return t.getHours();case ha.Minutes:return t.getMinutes();case ha.Seconds:return t.getSeconds();case ha.FractionalSeconds:return t.getMilliseconds();case ha.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),e===ha.Hours)0===a&&-12===n&&(a=12);else if(e===ha.FractionalSeconds)return l=t,ga(a,3).substr(0,l);var l;const c=ra(i,Xi.MinusSign);return ga(a,t,c,r,s)}}function _a(e,t,n=Yi.Format,r=!1){return function(s,o){return function(e,t,n,r,s,o){switch(n){case fa.Months:return function(e,t,n){const r=aa(e),s=oa([r[5],r[6]],t);return oa(s,n)}(t,s,r)[e.getMonth()];case fa.Days:return function(e,t,n){const r=aa(e),s=oa([r[3],r[4]],t);return oa(s,n)}(t,s,r)[e.getDay()];case fa.DayPeriods:const i=e.getHours(),a=e.getMinutes();if(o){const e=function(e){const t=aa(e);return sa(t),(t[19][2]||[]).map(e=>"string"==typeof e?ia(e):[ia(e[0]),ia(e[1])])}(t),n=function(e,t,n){const r=aa(e);sa(r);const s=oa([r[19][0],r[19][1]],t)||[];return oa(s,n)||[]}(t,s,r);let o;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:s}=e[0],{hours:l,minutes:c}=e[1];i>=r&&a>=s&&(i<l||i===l&&a<c)&&(o=n[t])}else{const{hours:r,minutes:s}=e;r===i&&s===a&&(o=n[t])}}),o)return o}return function(e,t,n){const r=aa(e),s=oa([r[1],r[2]],t);return oa(s,n)}(t,s,r)[i<12?0:1];case fa.Eras:return function(e,t){return oa(aa(e)[7],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,o,e,t,n,r)}}function ya(e){return function(t,n,r){const s=-1*r,o=ra(n,Xi.MinusSign),i=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case da.Short:return(s>=0?"+":"")+ga(i,2,o)+ga(Math.abs(s%60),2,o);case da.ShortGMT:return"GMT"+(s>=0?"+":"")+ga(i,1,o);case da.Long:return"GMT"+(s>=0?"+":"")+ga(i,2,o)+":"+ga(Math.abs(s%60),2,o);case da.Extended:return 0===r?"Z":(s>=0?"+":"")+ga(i,2,o)+":"+ga(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const va=0,ba=4;function wa(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,va,1).getDay();return new Date(e,0,1+(t<=ba?ba:ba+7)-t)}(n.getFullYear()),t=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(ba-o.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var o;return ga(s,e,ra(r,Xi.MinusSign))}}const Ca={};function Ea(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function xa(e){return e instanceof Date&&!isNaN(e.valueOf())}const Sa=new be("UseV4Plurals");class ka{}const Ta=(()=>(class extends ka{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return aa(e)[18]}(t||this.locale)(e)){case Qi.Zero:return"zero";case Qi.One:return"one";case Qi.Two:return"two";case Qi.Few:return"few";case Qi.Many:return"many";default:return"other"}}}))();class Na{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}}const Aa=(()=>(class{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){Ye()&&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 Na(null,this._ngForOf,-1,-1),r),s=new Ia(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Ia(e,s);t.push(o)}});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 Ia{constructor(e,t){this.record=e,this.view=t}}const Da=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new Va,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){Ma("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ma("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)))}static ngTemplateGuard_ngIf(e,t){return!0}}))();class Va{constructor(){this.$implicit=null,this.ngIf=null}}function Ma(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${de(t)}'.`)}const Oa=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",r,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,r){let s=function(e){if(xa(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match(la))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,i,a,l,c),t}(n)}const t=new Date(e);if(!xa(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const r=function(e){return aa(e)[0]}(t);if(ca[r]=ca[r]||{},ca[r][n])return ca[r][n];let s="";switch(n){case"shortDate":s=ea(t,Ji.Short);break;case"mediumDate":s=ea(t,Ji.Medium);break;case"longDate":s=ea(t,Ji.Long);break;case"fullDate":s=ea(t,Ji.Full);break;case"shortTime":s=ta(t,Ji.Short);break;case"mediumTime":s=ta(t,Ji.Medium);break;case"longTime":s=ta(t,Ji.Long);break;case"fullTime":s=ta(t,Ji.Full);break;case"short":const r=e(t,"shortTime"),o=e(t,"shortDate");s=pa(na(t,Ji.Short),[r,o]);break;case"medium":const i=e(t,"mediumTime"),a=e(t,"mediumDate");s=pa(na(t,Ji.Medium),[i,a]);break;case"long":const l=e(t,"longTime"),c=e(t,"longDate");s=pa(na(t,Ji.Long),[l,c]);break;case"full":const u=e(t,"fullTime"),d=e(t,"fullDate");s=pa(na(t,Ji.Full),[u,d])}return s&&(ca[r][n]=s),s}(n,t)||t;let o,i=[];for(;t;){if(!(o=ua.exec(t))){i.push(t);break}{const e=(i=i.concat(o.slice(1))).pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();r&&(a=Ea(r,a),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Ea(t,r)-r))}(s,r));let l="";return i.forEach(e=>{const t=function(e){if(Ca[e])return Ca[e];let t;switch(e){case"G":case"GG":case"GGG":t=_a(fa.Eras,Ki.Abbreviated);break;case"GGGG":t=_a(fa.Eras,Ki.Wide);break;case"GGGGG":t=_a(fa.Eras,Ki.Narrow);break;case"y":t=ma(ha.FullYear,1,0,!1,!0);break;case"yy":t=ma(ha.FullYear,2,0,!0,!0);break;case"yyy":t=ma(ha.FullYear,3,0,!1,!0);break;case"yyyy":t=ma(ha.FullYear,4,0,!1,!0);break;case"M":case"L":t=ma(ha.Month,1,1);break;case"MM":case"LL":t=ma(ha.Month,2,1);break;case"MMM":t=_a(fa.Months,Ki.Abbreviated);break;case"MMMM":t=_a(fa.Months,Ki.Wide);break;case"MMMMM":t=_a(fa.Months,Ki.Narrow);break;case"LLL":t=_a(fa.Months,Ki.Abbreviated,Yi.Standalone);break;case"LLLL":t=_a(fa.Months,Ki.Wide,Yi.Standalone);break;case"LLLLL":t=_a(fa.Months,Ki.Narrow,Yi.Standalone);break;case"w":t=wa(1);break;case"ww":t=wa(2);break;case"W":t=wa(1,!0);break;case"d":t=ma(ha.Date,1);break;case"dd":t=ma(ha.Date,2);break;case"E":case"EE":case"EEE":t=_a(fa.Days,Ki.Abbreviated);break;case"EEEE":t=_a(fa.Days,Ki.Wide);break;case"EEEEE":t=_a(fa.Days,Ki.Narrow);break;case"EEEEEE":t=_a(fa.Days,Ki.Short);break;case"a":case"aa":case"aaa":t=_a(fa.DayPeriods,Ki.Abbreviated);break;case"aaaa":t=_a(fa.DayPeriods,Ki.Wide);break;case"aaaaa":t=_a(fa.DayPeriods,Ki.Narrow);break;case"b":case"bb":case"bbb":t=_a(fa.DayPeriods,Ki.Abbreviated,Yi.Standalone,!0);break;case"bbbb":t=_a(fa.DayPeriods,Ki.Wide,Yi.Standalone,!0);break;case"bbbbb":t=_a(fa.DayPeriods,Ki.Narrow,Yi.Standalone,!0);break;case"B":case"BB":case"BBB":t=_a(fa.DayPeriods,Ki.Abbreviated,Yi.Format,!0);break;case"BBBB":t=_a(fa.DayPeriods,Ki.Wide,Yi.Format,!0);break;case"BBBBB":t=_a(fa.DayPeriods,Ki.Narrow,Yi.Format,!0);break;case"h":t=ma(ha.Hours,1,-12);break;case"hh":t=ma(ha.Hours,2,-12);break;case"H":t=ma(ha.Hours,1);break;case"HH":t=ma(ha.Hours,2);break;case"m":t=ma(ha.Minutes,1);break;case"mm":t=ma(ha.Minutes,2);break;case"s":t=ma(ha.Seconds,1);break;case"ss":t=ma(ha.Seconds,2);break;case"S":t=ma(ha.FractionalSeconds,1);break;case"SS":t=ma(ha.FractionalSeconds,2);break;case"SSS":t=ma(ha.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ya(da.Short);break;case"ZZZZZ":t=ya(da.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ya(da.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ya(da.Long);break;default:return null}return Ca[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(t,n,s||this.locale,r)}catch(o){throw Error(`InvalidPipeArgument: '${o.message}' for pipe '${de(e)}'`)}}}return e})(),Pa=(()=>(class{}))(),Ra=new be("DocumentToken");let Fa=null;function La(){return Fa}class Ha{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class ja extends Ha{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 $a={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ba=3,Ua={"\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"},za={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"},Ga=(()=>{if(me.Node)return me.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Za extends ja{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Za,Fa||(Fa=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 $a}contains(e,t){return Ga.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===Ba&&za.hasOwnProperty(t)&&(t=za[t]))}return Ua[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=qa||(qa=document.querySelector("base"))?qa.getAttribute("href"):null;return null==t?null:(n=t,Wa||(Wa=document.createElement("a")),Wa.setAttribute("href",n),"/"===Wa.pathname.charAt(0)?Wa.pathname:"/"+Wa.pathname);var n}resetBaseElement(){qa=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 function(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}(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Wa,qa=null;function Qa(){return!!window.history.pushState}const Ya=(()=>{class e extends Gi{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=La().getLocation(),this._history=La().getHistory()}getBaseHrefFromDOM(){return La().getBaseHref(this._doc)}onPopState(e){La().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){La().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){Qa()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Qa()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=(()=>[{type:void 0,decorators:[{type:ne,args:[Ra]}]}]),e})(),Ka=new be("TRANSITION_ID"),Ja=[{provide:fs,useFactory:function(e,t,n){return()=>{n.get(ps).donePromise.then(()=>{const n=La();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Ka,Ra,Se],multi:!0}];class Xa{static init(){var e;e=new Xa,qs=e}addToWindow(e){me.getAngularTestability=((t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r}),me.getAllAngularTestabilities=(()=>e.getAllTestabilities()),me.getAllAngularRootElements=(()=>e.getAllRootElements()),me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push(e=>{const t=me.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?La().isShadowRoot(t)?this.findTestabilityInTree(e,La().getHost(t),!0):this.findTestabilityInTree(e,La().parentElement(t),!0):null}}function el(e,t){"undefined"!=typeof COMPILED&&COMPILED||((me.ng=me.ng||{})[e]=t)}const tl=(()=>({ApplicationRef:no,NgZone:Fs}))();function nl(e){return lo(e)}const rl=new be("EventManagerPlugins"),sl=(()=>(class{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 ol{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=La().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}const il=(()=>(class{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)}}))(),al=(()=>(class extends il{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=>La().remove(e))}}))(),ll={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/"},cl=/%COMP%/g,ul="_nghost-%COMP%",dl="_ngcontent-%COMP%";function hl(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?hl(e,s,n):(s=s.replace(cl,e),n.push(s))}return n}function fl(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const pl=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new gl(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 yl(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 vl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=hl(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class gl{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ll[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=ll[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=ll[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&Yt.DashCase?e.style.setProperty(t,n,r&Yt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Yt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){_l(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return _l(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,fl(n)):this.eventManager.addEventListener(e,t,fl(n))}}const ml=(()=>"@".charCodeAt(0))();function _l(e,t){if(e.charCodeAt(0)===ml)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class yl extends gl{constructor(e,t,n,r){super(e),this.component=n;const s=hl(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=dl.replace(cl,r+"-"+n.id),this.hostAttr=ul.replace(cl,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 vl extends gl{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=hl(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const e=document.createElement("style");e.textContent=s[o],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 bl=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),wl=bl("addEventListener"),Cl=bl("removeEventListener"),El={},xl="__zone_symbol__propagationStopped",Sl=(()=>{const e="undefined"!=typeof Zone&&Zone[bl("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),kl=function(e){return!!Sl&&Sl.hasOwnProperty(e)},Tl=function(e){const t=El[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[xl];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}},Nl=(()=>(class extends ol{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[xl]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[wl]||Fs.isInAngularZone()&&!kl(t))e.addEventListener(t,r,!1);else{let n=El[t];n||(n=El[t]=bl("ANGULAR"+t+"FALSE"));let s=e[n];const o=s&&s.length>0;s||(s=e[n]=[]);const i=kl(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:i,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:i,handler:r})}o||e[wl](t,Tl,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Cl];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=El[t],o=s&&e[s];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);let i=!1;for(let a=0;a<o.length;a++)if(o[a].handler===n){i=!0,o.splice(a,1);break}i?0===o.length&&r.apply(e,[t,Tl,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),Al={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},Il=new be("HammerGestureConfig"),Dl=new be("HammerLoader"),Vl=(()=>(class{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}}))(),Ml=(()=>(class extends ol{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!Al.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),o=function(e){r.runGuarded(function(){n(e)})};return s.on(t,o),()=>{s.off(t,o),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),Ol=["alt","control","meta","shift"],Pl={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Rl=(()=>{class e extends ol{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),o=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>La().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let o="";if(Ol.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(e){let t="",n=La().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ol.forEach(r=>{r!=n&&(0,Pl[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class Fl{}const Ll=(()=>(class extends Fl{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case yt.NONE:return t;case yt.HTML:return t instanceof jl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{mt=mt||new Ke(e);let r=t?String(t):"";n=mt.getInertBodyElement(r);let s=5,o=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=o,o=n.innerHTML,n=mt.getInertBodyElement(r)}while(r!==o);const i=new ht,a=i.sanitizeChildren(_t(n)||n);return Ye()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=_t(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case yt.STYLE:return t instanceof $l?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(wt);return t&&et(t[1])===t[1]||e.match(bt)&&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:(Ye()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case yt.SCRIPT:if(t instanceof Bl)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case yt.URL:return t instanceof zl||t instanceof Ul?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),et(String(t)));case yt.RESOURCE_URL:if(t instanceof zl)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 Hl)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new jl(e)}bypassSecurityTrustStyle(e){return new $l(e)}bypassSecurityTrustScript(e){return new Bl(e)}bypassSecurityTrustUrl(e){return new Ul(e)}bypassSecurityTrustResourceUrl(e){return new zl(e)}}))();class Hl{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class jl extends Hl{getTypeName(){return"HTML"}}class $l extends Hl{getTypeName(){return"Style"}}class Bl extends Hl{getTypeName(){return"Script"}}class Ul extends Hl{getTypeName(){return"URL"}}class zl extends Hl{getTypeName(){return"ResourceURL"}}const Gl=Js(uo,"browser",[{provide:vs,useValue:"browser"},{provide:ys,useValue:function(){Za.makeCurrent(),Xa.init()},multi:!0},{provide:Gi,useClass:Ya,deps:[Ra]},{provide:Ra,useFactory:function(){return document},deps:[]}]);function Zl(){return new We}const Wl=(()=>{class e{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(t){return{ngModule:e,providers:[{provide:gs,useValue:t.appId},{provide:Ka,useExisting:gs},Ja]}}}return e})();"undefined"!=typeof window&&window;const ql=new y(e=>e.complete());class Ql extends L{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 Yl=new be("NgValueAccessor"),Kl=(()=>(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)}}))(),Jl=new be("CompositionEventMode"),Xl=(()=>(class{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=La()?La().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 ec{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 tc extends ec{get formDirective(){return null}get path(){return null}}function nc(){throw new Error("unimplemented")}class rc extends ec{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return nc()}get asyncValidator(){return nc()}}class sc{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}}const oc=(()=>(class extends sc{constructor(e){super(e)}}))(),ic=(()=>(class extends sc{constructor(e){super(e)}}))();function ac(e){return null==e||0===e.length}const lc=/^(?=.{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 cc{static min(e){return t=>{if(ac(t.value)||ac(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(ac(t.value)||ac(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return ac(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return ac(e.value)?null:lc.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(ac(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 cc.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(ac(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(uc);return 0==t.length?null:function(e){return hc(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(uc);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?ql:n?e(t).pipe(H(e=>n(...e))):new y(e=>new Ql(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(dc)).pipe(H(hc))}}}function uc(e){return null!=e}function dc(e){const t=xt(e)?U(e):e;if(!St(t))throw new Error("Expected validator to return Promise or Observable.");return t}function hc(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function fc(e){return e.validate?t=>e.validate(t):e}function pc(e){return e.validate?t=>e.validate(t):e}const gc=(()=>(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)}}))(),mc=(()=>(class{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}}))(),_c=(()=>(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(rc),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 ')}}))(),yc={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 vc(e,t){return[...t.path,e]}function bc(e,t){e||Cc(t,"Cannot find control with"),t.valueAccessor||Cc(t,"No value accessor for form control with"),e.validator=cc.compose([e.validator,t.validator]),e.asyncValidator=cc.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&&wc(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&&wc(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 wc(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Cc(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 Ec(e){return null!=e?cc.compose(e.map(fc)):null}function xc(e){return null!=e?cc.composeAsync(e.map(pc)):null}const Sc=[Kl,(()=>(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)}}))(),gc,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=Nt}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=Nt}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}}))(),_c],kc="VALID",Tc="INVALID",Nc="PENDING",Ac="DISABLED";function Ic(e){const t=Vc(e)?e.validators:e;return Array.isArray(t)?Ec(t):t||null}function Dc(e,t){const n=Vc(t)?t.asyncValidators:e;return Array.isArray(n)?xc(n):n||null}function Vc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Mc{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===kc}get invalid(){return this.status===Tc}get pending(){return this.status==Nc}get disabled(){return this.status===Ac}get enabled(){return this.status!==Ac}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=Ic(e)}setAsyncValidators(e){this.asyncValidator=Dc(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=Nc,!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=Ac,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=kc,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!==kc&&this.status!==Nc||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()?Ac:kc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Nc;const t=dc(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 Pc?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Rc&&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 ds,this.statusChanges=new ds}_calculateStatus(){return this._allControlsDisabled()?Ac:this.errors?Tc:this._anyControlsHaveStatus(Nc)?Nc:this._anyControlsHaveStatus(Tc)?Tc:kc}_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){Vc(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Oc extends Mc{constructor(e=null,t,n){super(Ic(t),Dc(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 Pc extends Mc{constructor(e,t,n){super(Ic(t),Dc(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 Oc?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 Rc extends Mc{constructor(e,t,n){super(Ic(t),Dc(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 Oc?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 Fc=(()=>Promise.resolve(null))(),Lc=(()=>(class extends tc{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ds,this.form=new Pc({},Ec(e),xc(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Fc.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),bc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Fc.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){Fc.then(()=>{const t=this._findContainer(e.path),n=new Pc({});(function(e,t){null==e&&Cc(t,"Cannot find control with"),e.validator=cc.compose([e.validator,t.validator]),e.asyncValidator=cc.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Fc.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Fc.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 Hc{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 ${yc.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 ${yc.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 ${yc.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${yc.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 ${yc.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${yc.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 jc=new be("NgFormSelectorWarning");class $c extends tc{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return vc(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Ec(this._validators)}get asyncValidator(){return xc(this._asyncValidators)}_checkParentType(){}}const Bc=(()=>{class e extends $c{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Lc||Hc.modelGroupParentException()}}return e})(),Uc=(()=>Promise.resolve(null))(),zc=(()=>(class extends rc{constructor(e,t,n,r){super(),this.control=new Oc,this._registered=!1,this.update=new ds,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Cc(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===Xl?n=t:function(e){return Sc.some(t=>e.constructor===t)}(t)?(r&&Cc(e,"More than one built-in value accessor matches form control with"),r=t):(s&&Cc(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(Cc(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()||!Nt(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?vc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Ec(this._rawValidators)}get asyncValidator(){return xc(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(){bc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Bc)&&this._parent instanceof $c?Hc.formGroupNameException():this._parent instanceof Bc||this._parent instanceof Lc||Hc.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Hc.missingNameException()}_updateValue(e){Uc.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Uc.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),Gc=(()=>(class{}))(),Zc=(()=>(class{}))(),Wc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:jc,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})();class qc extends x{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 w;return this._value}next(e){super.next(this._value=e)}}const Qc=(()=>{class e{constructor(){this.logSource=new qc({id:null,text:null,date:null}),this.selectedLog=this.logSource.asObservable(),this.stateSource=new qc(!0),this.stateClear=this.stateSource.asObservable(),this.logs=[]}getLogs(){return null!==localStorage.getItem("logs")&&(this.logs=JSON.parse(localStorage.getItem("logs"))),function(...e){let t=e[e.length-1];switch(k(t)?e.pop():t=void 0,e.length){case 0:return function(e){return e?function(e){return new y(t=>e.schedule(()=>t.complete()))}(e):ql}(t);case 1:return t?B(e,t):function(e){const t=new y(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}(e[0]);default:return B(e,t)}}(this.logs.sort((e,t)=>t.date-e.date))}setFormLog(e){this.logSource.next(e)}addLog(e){this.logs.unshift(e),localStorage.setItem("logs",JSON.stringify(this.logs))}updateLog(e){this.logs.forEach((t,n)=>{e.id===t.id&&this.logs.splice(n,1)}),this.logs.unshift(e),localStorage.setItem("logs",JSON.stringify(this.logs))}deleteLog(e){this.logs.forEach((t,n)=>{e.id===t.id&&this.logs.splice(n,1)}),localStorage.setItem("logs",JSON.stringify(this.logs))}clearState(){this.stateSource.next(!0)}}return e.ngInjectableDef=le({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Yc{constructor(e){this.logService=e,this.isNew=!0}ngOnInit(){this.logService.selectedLog.subscribe(e=>{e.id&&(this.isNew=!1,this.id=e.id,this.text=e.text,this.date=e.date)})}onSubmit(){if(this.isNew){const e={id:this.generateId(),text:this.text,date:new Date};this.logService.addLog(e)}else{const e={id:this.id,text:this.text,date:new Date};this.logService.updateLog(e)}this.clearState()}clearState(){this.isNew=!0,this.id="",this.text="",this.date="",this.logService.clearState()}generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}}var Kc=Hn({encapsulation:0,styles:[[""]],data:{}});function Jc(e){return Mo(0,[(e()(),vo(0,0,null,null,15,"div",[["class","card card-body mb-3"]],null,null,null,null,null)),(e()(),vo(1,0,null,null,14,"form",[["novalidate",""]],[[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,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0,s=e.component;return"submit"===t&&(r=!1!==Pr(e,3).onSubmit(n)&&r),"reset"===t&&(r=!1!==Pr(e,3).onReset()&&r),"ngSubmit"===t&&(r=!1!==s.onSubmit()&&r),r},null,null)),qr(2,16384,null,0,Gc,[],null,null),qr(3,4210688,null,0,Lc,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),Qr(2048,null,tc,null,[Lc]),qr(5,16384,null,0,ic,[[4,tc]],null,null),(e()(),vo(6,0,null,null,6,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),vo(7,0,null,null,5,"input",[["class","form-control"],["name","text"],["placeholder","Add a log..."],["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!==Pr(e,8)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Pr(e,8).onTouched()&&r),"compositionstart"===t&&(r=!1!==Pr(e,8)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Pr(e,8)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(s.text=n)&&r),r},null,null)),qr(8,16384,null,0,Xl,[Kt,Zt,[2,Jl]],null,null),Qr(1024,null,Yl,function(e){return[e]},[Xl]),qr(10,671744,null,0,zc,[[2,tc],[8,null],[8,null],[6,Yl]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Qr(2048,null,rc,null,[zc]),qr(12,16384,null,0,oc,[[4,rc]],null,null),(e()(),vo(13,0,null,null,0,"input",[["class","btn btn-light"],["type","submit"],["value","Add Log"]],[[8,"disabled",0]],null,null,null,null)),(e()(),vo(14,0,null,null,1,"button",[["class","btn btn-warning"],["type","button"]],[[8,"hidden",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clearState()&&r),r},null,null)),(e()(),Io(-1,null,[" Clear "]))],function(e,t){e(t,10,0,"text",t.component.text)},function(e,t){var n=t.component;e(t,1,0,Pr(t,5).ngClassUntouched,Pr(t,5).ngClassTouched,Pr(t,5).ngClassPristine,Pr(t,5).ngClassDirty,Pr(t,5).ngClassValid,Pr(t,5).ngClassInvalid,Pr(t,5).ngClassPending),e(t,7,0,Pr(t,12).ngClassUntouched,Pr(t,12).ngClassTouched,Pr(t,12).ngClassPristine,Pr(t,12).ngClassDirty,Pr(t,12).ngClassValid,Pr(t,12).ngClassInvalid,Pr(t,12).ngClassPending),e(t,13,0,!n.text),e(t,14,0,!n.text)})}class Xc{constructor(e){this.logService=e,this.loaded=!1}ngOnInit(){this.logService.stateClear.subscribe(e=>{e&&(this.selectedLog={id:"",text:"",date:""})}),this.logService.getLogs().subscribe(e=>{this.logs=e,this.loaded=!0})}onSelect(e){this.logService.setFormLog(e),this.selectedLog=e}onDelete(e){confirm("Are you sure?")&&this.logService.deleteLog(e)}}var eu=Hn({encapsulation:0,styles:[[".log-date[_ngcontent-%COMP%]{color:#777}"]],data:{}});function tu(e){return Mo(0,[(e()(),vo(0,0,null,null,6,"li",[["class","list-group-item d-flex justify-content-between align-utems-center"]],[[2,"list-group-item-secondary",null]],null,null,null,null)),(e()(),vo(1,0,null,null,1,"a",[["href","#"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onSelect(e.context.$implicit)&&r),r},null,null)),(e()(),Io(2,null,["",""])),(e()(),vo(3,0,null,null,2,"span",[["class","log-date"]],null,null,null,null,null)),(e()(),Io(4,null,["",""])),Ao(128,5,new Array(3)),(e()(),vo(6,0,null,null,0,"i",[["class","fa fa-remove"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onDelete(e.context.$implicit)&&r),r},null,null))],null,function(e,t){e(t,0,0,t.component.selectedLog===t.context.$implicit),e(t,2,0,t.context.$implicit.text);var n=function(e,t,n,r){if(It.isWrapped(r)){r=It.unwrap(r);const t=e.def.nodes[4].bindingIndex+0,n=It.unwrap(e.oldValues[t]);e.oldValues[t]=new It(n)}return r}(t,0,0,e(t,5,0,Pr(t.parent.parent,0),t.context.$implicit.date,"short"));e(t,4,0,n)})}function nu(e){return Mo(0,[(e()(),vo(0,0,null,null,2,"ul",[["class","list-group"]],null,null,null,null,null)),(e()(),yo(16777216,null,null,1,null,tu)),qr(2,278528,null,0,Aa,[wn,vn,hn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.logs)},null)}function ru(e){return Mo(0,[(e()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),vo(1,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),Io(-1,null,["There are no logs in the system"]))],null,null)}function su(e){return Mo(0,[(e()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),vo(1,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),Io(-1,null,["Loading..."]))],null,null)}function ou(e){return Mo(0,[(t=0,n=Oa,r=[ho],Yr(-1,t|=16,null,0,n,n,r)),(e()(),yo(16777216,null,null,1,null,nu)),qr(2,16384,null,0,Da,[wn,vn],{ngIf:[0,"ngIf"]},null),(e()(),yo(16777216,null,null,1,null,ru)),qr(4,16384,null,0,Da,[wn,vn],{ngIf:[0,"ngIf"]},null),(e()(),yo(16777216,null,null,1,null,su)),qr(6,16384,null,0,Da,[wn,vn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,2,0,n.loaded&&(null==n.logs?null:n.logs.length)>0),e(t,4,0,n.loaded&&0==n.logs.length),e(t,6,0,!n.loaded)},null);var t,n,r}var iu=Hn({encapsulation:0,styles:[[""]],data:{}});function au(e){return Mo(0,[(e()(),vo(0,0,null,null,1,"app-navbar",[],null,null,null,zi,Ui)),qr(1,114688,null,0,Bi,[],null,null),(e()(),vo(2,0,null,null,4,"div",[["class","container"]],null,null,null,null,null)),(e()(),vo(3,0,null,null,1,"app-log-form",[],null,null,null,Jc,Kc)),qr(4,114688,null,0,Yc,[Qc],null,null),(e()(),vo(5,0,null,null,1,"app-logs",[],null,null,null,ou,eu)),qr(6,114688,null,0,Xc,[Qc],null,null)],function(e,t){e(t,1,0),e(t,4,0),e(t,6,0)},null)}function lu(e){return Mo(0,[(e()(),vo(0,0,null,null,1,"app-root",[],null,null,null,au,iu)),qr(1,49152,null,0,$i,[],null,null)],null,null)}var cu=xr("app-root",$i,lu,{},{},[]),uu=Li(ji,[$i],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const o=e[s];o.token===Ot&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=s,t[Rn(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([gr(512,jt,$t,[[8,[cu]],[3,jt],Ut]),gr(5120,ho,go,[[3,ho]]),gr(4608,ka,Ta,[ho,[2,Sa]]),gr(5120,us,mo,[Fs]),gr(4608,Ts,Ts,[]),gr(5120,gs,ms,[]),gr(5120,hn,fo,[]),gr(5120,fn,po,[]),gr(4608,Fl,Ll,[Ra]),gr(6144,vt,null,[Fl]),gr(4608,Il,Vl,[]),gr(5120,rl,function(e,t,n,r,s,o,i,a){return[new Nl(e,t,n),new Rl(r),new Ml(s,o,i,a)]},[Ra,Fs,vs,Ra,Ra,Il,ws,[2,Dl]]),gr(4608,sl,sl,[rl,Fs]),gr(135680,al,al,[Ra]),gr(4608,pl,pl,[sl,al,gs]),gr(6144,Qt,null,[pl]),gr(6144,il,null,[al]),gr(4608,zs,zs,[Fs]),gr(4608,mc,mc,[]),gr(4608,Qc,Qc,[]),gr(1073742336,Pa,Pa,[]),gr(1024,We,Zl,[]),gr(1024,fs,function(e){return[(t=e,el("probe",nl),el("coreTokens",Object.assign({},tl,(t||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>nl)];var t},[[2,Ks]]),gr(512,ps,ps,[[2,fs]]),gr(131584,no,no,[Fs,ws,Se,We,jt,ps]),gr(1073742336,_o,_o,[no]),gr(1073742336,Wl,Wl,[[3,Wl]]),gr(1073742336,Zc,Zc,[]),gr(1073742336,Wc,Wc,[]),gr(1073742336,ji,ji,[]),gr(256,Ot,!0,[])])});(function(){if(Qe)throw new Error("Cannot enable prod mode after platform setup.");qe=!1})(),Gl().bootstrapModuleFactory(uu).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]]]);