-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es2015.5fc0f426f7f746f3eaf6.js
1 lines (1 loc) · 184 KB
/
main-es2015.5fc0f426f7f746f3eaf6.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const d=c,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:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++l<c&&s[l]||null;if(r(i))try{i.call(this)}catch(h){t=!0,e=h instanceof d?f(h.errors):[h]}if(a(o))for(l=-1,c=o.length;++l<c;){const n=o[l];if(u(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=l;break;case 1:if(!e){this.destination=l;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 i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==l&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";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(l)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=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=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function w(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}w.prototype=Object.create(Error.prototype);const b=w;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 T(this,this);return t.operator=e,t}next(e){if(this.closed)throw new b;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 b;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 b;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 b;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new b;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 T(e,t)),e})();class T 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 A 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 S=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},V=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const N=I(),D=e=>t=>{const n=e[N]();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},O=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)},M=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const P=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 O(e);if(M(e))return S(e);if(R(e))return V(e);if(e&&"function"==typeof e[N])return D(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function F(e,t,n,r,s=new A(e,n,r)){if(!s.closed)return P(t)(s)}class j 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 L(e,t))}}class L{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new U(e,this.project,this.thisArg))}}class U 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 $(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}:S(e))}function B(e,t){if(!t)return e instanceof y?e:new y(P(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}:O(e))}(e,t);if(R(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}:V(e))}(e,t);if(M(e))return $(e,t);if(function(e){return e&&"function"==typeof e[N]}(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[N](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const i=s.next();e=i.value,t=i.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:D(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}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 j{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 A(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 q(){return function(e){return e.lift(new W(e))}}class W{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 K=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 q()(this)}}.prototype,Y={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:K._subscribe},_isComplete:{value:K._isComplete,writable:!0},getSubject:{value:K.getSubject},connect:{value:K.connect},refCount:{value:K.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"),ie=te("SkipSelf");var oe=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 le(e){for(let t in e)if(e[t]===le)return t;throw Error("Could not find renamed property on target object.")}function ae(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ue(e){return e&&e.hasOwnProperty(ce)?e[ce]:null}const ce=le({ngInjectableDef:le});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=le({__forward_ref__:le});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 we{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=ae({providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const be="__source",Ce=new Object,Ee=new we("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 Te=(()=>{class e{static create(e,t){return Array.isArray(e)?new Re(e,t):new Re(e.providers,e.parent,e.name||null)}}return e.THROW_IF_NOT_FOUND=Ce,e.NULL=new xe,e.ngInjectableDef=ae({providedIn:"any",factory:()=>(function(e,t=oe.Default){return(_e||function(e,t=oe.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=ue(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&oe.Optional)return null;throw new Error(`Injector: NOT_FOUND [${de(e)}]`)}(e,0,t):ye.get(e,t&oe.Optional?null:void 0,t)})(e,t)})(Ee)}),e.__NG_ELEMENT_ID__=-1,e})(),ke=function(e){return e},Ae=[],Se=ke,Ve=function(){return Array.prototype.slice.call(arguments)},Ie=le({provide:String,useValue:le}),Ne="ngTokenPath",De="ngTempTokenPath",Oe=/\n/gm,Me="\u0275";class Re{constructor(e,t=Te.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Te,{token:Te,fn:ke,deps:Ae,value:this,useNew:!1}),r.set(Ee,{token:Ee,fn:ke,deps:Ae,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 je("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw je("Unexpected provider",n);{let e=pe(n.provide);const r=function(e){const t=function(e){let t=Ae;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 ie||n==ie?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 je("'deps' required",e);return t}(e);let n=ke,r=Ae,s=!1,i=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 i)throw je("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Ve)throw Pe(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Ve,value:Ae});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Ve)throw Pe(e);t.set(e,r)}}}(r,e)}get(e,t,n=oe.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let l;if(!n||o&oe.SkipSelf)o&oe.Self||(l=s.get(t,i,oe.Default));else{if((l=n.value)==Se)throw Error(Me+"Circular dependency");if(l===Ae){n.value=Se;let t=void 0,i=n.useNew,o=n.fn,a=n.deps,u=Ae;if(a.length){u=[];for(let t=0;t<a.length;t++){const n=a[t],i=n.options,o=2&i?r.get(n.token):void 0;u.push(e(n.token,o,r,o||4&i?s:Te.NULL,1&i?null:Te.THROW_IF_NOT_FOUND,oe.Default))}}n.value=l=i?new o(...u):o.apply(t,u)}}return l}(t,n,r,s,i,o)}catch(l){throw l instanceof Error||(l=new Error(l)),(l[De]=l[De]||[]).unshift(t),n&&n.value==Se&&(n.value=Ae),l}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[De];throw t[be]&&s.unshift(t[be]),e.message=Fe("\n"+e.message,s,"StaticInjectorError",r),e[Ne]=s,e[De]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(de(n))),`StaticInjector[${e.join(", ")}]`}}function Pe(e){return je("Cannot mix multi providers and regular providers",e)}function Fe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Me?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(Oe,"\n ")}`}function je(e,t){return new Error(Fe(e,t,"StaticInjectorError"))}const He="ngDebugContext",Le="ngOriginalError",Ue="ngErrorLogger",$e=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}(),Be=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(me))();function ze(e){return e[He]}function Ge(e){return e[Le]}function Ze(e,...t){e.error(...t)}class qe{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ue]||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 We=!0,Qe=!1;function Ke(){return Qe=!0,We}class Ye{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:(Ke()&&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"),it=tt("rp,rt"),ot=nt(it,st),lt=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(it,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")),ot),at=tt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ut=tt("srcset"),ct=nt(at,ut,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(!lt.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,i=t.toLowerCase();if(!ct.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;at[i]&&(o=et(o)),ut[i]&&(r=o,o=(r=String(r)).split(",").map(e=>et(e.trim())).join(", ")),this.buf.push(" ",t,'="',gt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();lt.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 wt=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"),bt=/^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 Tt(e){return!!e&&"function"==typeof e.subscribe}let kt=null;function At(){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 St(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Vt(e,t){const n=Nt(e),r=Nt(t);if(n&&r)return function(e,t,n){const r=e[At()](),s=t[At()]();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,Vt);{const s=e&&("object"==typeof e||"function"==typeof e),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||St(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 Nt(e){return!!Dt(e)&&(Array.isArray(e)||!(e instanceof Map)&&At()in e)}function Dt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class Ot{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}const Mt=new we("The presence of this token marks an injector as being the root injector.");class Rt{}class Pt{}function Ft(e){const t=Error(`No component factory found for ${de(e)}. Did you add it to @NgModule.entryComponents?`);return t[jt]=e,t}const jt="ngComponent";class Ht{resolveComponentFactory(e){throw Ft(e)}}const Lt=(()=>{class e{}return e.NULL=new Ht,e})();class Ut{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 $t(t,this._ngModule)}}class $t extends Pt{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 Bt{}class zt{}function Gt(...e){}const Zt=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=(()=>qt(e)),e})(),qt=Gt;class Wt{}class Qt{}const Kt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Yt=(()=>{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 Nt(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 i=!n||t&&t.currentIndex<an(n,r,s)?t:n,o=an(i,r,s),l=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=l-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==l&&e(i,o,l)}}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=[]),!Nt(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,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&St(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),St(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[At()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&St(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),St(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(St(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(St(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 ln),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 ln),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)&&St(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 ln{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 an(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 un{constructor(){}supports(e){return e instanceof Map||Dt(e)}create(){return new cn}}class cn{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||Dt(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){St(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 ie,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=ae({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 ie,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=ae({providedIn:"root",factory:()=>new e([new un])}),e})(),pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>gn()),e})(),gn=(...e)=>{},mn=[new un],_n=new hn([new tn]),yn=new fn(mn),vn=(()=>{class e{}return e.__NG_ELEMENT_ID__=(()=>wn(e,Zt)),e})(),wn=Gt,bn=(()=>{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[Ue]=t.logError.bind(t)}function Tn(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 An(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Sn(e,t){return e.nodes[t]}function Vn(e,t){return e.nodes[t]}function In(e,t){return e.nodes[t]}function Nn(e,t){return e.nodes[t]}function Dn(e,t){return e.nodes[t]}const On={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},Mn=()=>{},Rn=new Map;function Pn(e){let t=Rn.get(e);return t||(t=de(e)+"_"+Rn.size,Rn.set(e,t)),t}const Fn="$$undefined",jn="$$empty";function Hn(e){return{id:Fn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Ln=0;function Un(e,t,n,r){return!(!(2&e.state)&&St(e.oldValues[t.bindingIndex+n],r))}function $n(e,t,n,r){return!!Un(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Bn(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!Vt(s,r)){const i=t.bindings[n].name;throw En(On.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${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?Vn(e,t).componentView:e),On.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function qn(e){return e.parent?Vn(e.parent,e.parentNodeDef.nodeIndex):null}function Wn(e){return e.parent?e.parentNodeDef.parent:null}function Qn(e,t){switch(201347067&t.flags){case 1:return Vn(e,t.nodeIndex).renderElement;case 2:return Sn(e,t.nodeIndex).renderText}}function Kn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Yn(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,be,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Pn(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===$e.Native?Vn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const tr=new WeakMap;function nr(e){let t=tr.get(e);return t||((t=e(()=>Mn)).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,i,o){for(let l=n;l<=r;l++){const n=e.def.nodes[l];11&n.flags&&or(e,n,t,s,i,o),l+=n.childCount}}function ir(e,t,n,r,s,i){let o=e;for(;o&&!Kn(o);)o=o.parent;const l=o.parent,a=Wn(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&or(l,e,n,r,s,i),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)lr(e,o[t],n,r,s,i)}}function or(e,t,n,r,s,i){if(8&t.flags)ir(e,t.ngContent.index,n,r,s,i);else{const o=Qn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&lr(e,o,n,r,s,i),32&t.bindingFlags&&lr(Vn(e,t.nodeIndex).componentView,o,n,r,s,i)):lr(e,o,n,r,s,i),16777216&t.flags){const o=Vn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)rr(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&sr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function lr(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const ar=/^:([^:]+):(.+)$/;function ur(e){if(":"===e[0]){const t=e.match(ar);return[t[1],t[2]]}return["",e]}function cr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const dr=new Object,hr=Pn(Te),fr=Pn(Ee),pr=Pn(Bt);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=Te.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 o=t.tokenKey;switch(o){case hr:case fr:case pr:return e}const l=e._def.providersByKey[o];let a;if(l){let t=e._providers[l.index];return void 0===t&&(t=e._providers[l.index]=_r(e,l)),t===dr?void 0:t}if((a=ue(t.token))&&(s=e,null!=(i=a).providedIn&&(function(e,t){return e._def.modules.indexOf(i.providedIn)>-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.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,i}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),On.dirtyParentQueries(r),wr(r),r}function vr(e,t,n){const r=t?Qn(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);rr(n,2,s,i,void 0)}function wr(e){rr(e,3,null,null,void 0)}function br(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,i){return new Tr(e,t,n,r,s,i)}class Tr extends Pt{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const s=nr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=On.createRootView(e,t||[],n,s,r,Er),l=In(o,i).instance;return n&&o.renderer.setAttribute(Vn(o,0).renderElement,"ng-version",en.full),new kr(o,new Ir(o),l)}}class kr extends Rt{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(Vn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Mr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Ar(e,t,n){return new Sr(e,t,n)}class Sr{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 Mr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Wn(e),e=e.parent;return e?new Mr(e,t):new Mr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=yr(this._data,e);On.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 i=n||this.parentInjector;s||e instanceof $t||(s=i.get(Bt));const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,br(s,n,r),function(e,t){const n=qn(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),On.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,i=s[n];Cr(s,n),null==r&&(r=s.length),br(s,r,i),On.dirtyParentQueries(i),wr(i),vr(e,r>0?s[r-1]:null,i)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=yr(this._data,e);t&&On.destroyView(t)}detach(e){const t=yr(this._data,e);return t?new Ir(t):null}}function Vr(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{On.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){On.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)),On.destroyView(this._view)}detachFromAppRef(){this._appRef=null,wr(this._view),On.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 Nr(e,t){return new Dr(e,t)}class Dr extends vn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Ir(On.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Zt(Vn(this._parentView,this._def.nodeIndex).renderElement)}}function Or(e,t){return new Mr(e,t)}class Mr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Te.THROW_IF_NOT_FOUND){return On.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Pn(e)},t)}}function Rr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Vn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Sn(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 Pr(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]=ur(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]=ur(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 jr(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=Te.THROW_IF_NOT_FOUND,n=oe.Default){let r=0;return n&oe.SkipSelf?r|=1:n&oe.Self&&(r|=4),mr(this,{token:e,tokenKey:Pn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Lt)}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 Lr=Pn(Wt),Ur=Pn(Yt),$r=Pn(Zt),Br=Pn(bn),zr=Pn(vn),Gr=Pn(pn),Zr=Pn(Te),qr=Pn(Ee);function Wr(e,t,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return Kr(e,t|=16384,n,r,s,s,i,a,u)}function Qr(e,t,n,r,s){return Kr(-1,e,t,0,n,r,s)}function Kr(e,t,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:d}=Jn(n);a||(a=[]),l||(l=[]),i=pe(i);const h=Xn(o,de(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:d,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:cr(l),outputs:a,element:null,provider:{token:s,value:i,deps:h},text:null,query:null,ngContent:null}}function Yr(e,t){return ts(e,t)}function Jr(e,t){let n=e;for(;n.parent&&!Kn(n);)n=n.parent;return ns(n.parent,Wn(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],i=n[s.propName];if(!Tt(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.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 i=s.length;switch(i){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 o=Array(i);for(let r=0;r<i;r++)o[r]=ss(e,t,n,s[r]);return r(...o)}}(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 i=s.length;switch(i){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 o=new Array(i);for(let r=0;r<i;r++)o[r]=ss(e,t,n,s[r]);return new r(...o)}}const rs={};function ss(e,t,n,r,s=Te.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===Gr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let l=e;for(;l;){if(t)switch(o){case Lr:return Pr(is(l,t,n));case Ur:return is(l,t,n).renderer;case $r:return new Zt(Vn(l,t.nodeIndex).renderElement);case Br:return Vn(l,t.nodeIndex).viewContainer;case zr:if(t.element.template)return Vn(l,t.nodeIndex).template;break;case Gr:return Vr(is(l,t,n));case Zr:case qr:return Or(l,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=In(l,e.nodeIndex);return t||(t={instance:ts(l,e)},l.nodes[e.nodeIndex]=t),t.instance}}n=Kn(l),t=Wn(l),l=l.parent,4&r.flags&&(l=null)}const a=i.root.injector.get(r.token,rs);return a!==rs||s===rs?a:i.root.ngModule.injector.get(r.token,s)}function is(e,t,n){let r;if(n)r=Vn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Kn(r);)r=r.parent;return r}function os(e,t,n,r,s,i){if(32768&n.flags){const t=Vn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=It.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Ot(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function ls(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&us(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=as(e,o,t,r)),o=o.parent}}function as(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&&us(e,s,t.flags&n,r++),s+=t.childCount}return r}function us(e,t,n,r){const s=In(e,t);if(!s)return;const i=s.instance;i&&(On.setCurrentNode(e,t),1048576&n&&An(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&An(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const cs=new we("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Be});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,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof h&&e.add(o),o}}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()}[At()](){return this._results[At()]()}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 we("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 we("AppId");function ms(){return`${_s()}${_s()}${_s()}`}function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ys=new we("Platform Initializer"),vs=new we("Platform ID"),ws=new we("appBootstrapListener"),bs=(()=>(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,Ts=Cs,ks=Cs,As=(()=>(class{constructor(){this.compileModuleSync=Es,this.compileModuleAsync=xs,this.compileModuleAndAllComponentsSync=Ts,this.compileModuleAndAllComponentsAsync=ks}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class Ss{}let Vs,Is;function Ns(){const e=me.wtf;return!(!e||!(Vs=e.trace)||(Is=Vs.events,0))}const Ds=Ns(),Os=Ds?function(e,t=null){return Is.createScope(e,t)}:(e,t)=>(function(e,t){return null}),Ms=Ds?function(e,t){return Vs.leaveScope(e,t),t}:(e,t)=>t,Rs=(()=>Promise.resolve(0))();function Ps(e){"undefined"==typeof Zone?Rs.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,i,o)=>{try{return Us(t),e.invokeTask(r,s,i,o)}finally{$s(t)}},onInvoke:(e,n,r,s,i,o,l)=>{try{return Us(t),e.invoke(r,s,i,o,l)}finally{$s(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,Ls(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,i=s.scheduleEventTask("NgZoneEvent: "+r,e,Hs,js,js);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function js(){}const Hs={};function Ls(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 Us(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $s(e){e._nesting--,Ls(e)}class Bs{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(),Ps(()=>{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())Ps(()=>{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,Ws.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 Ws.findTestabilityInTree(this,e,t)}}return e.ctorParameters=(()=>[]),e})();class Zs{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let qs,Ws=new Zs,Qs=function(e){return e instanceof $t};const Ks=new we("AllowMultipleToken");class Ys{constructor(e,t){this.name=e,this.token=t}}function Js(e,t,n=[]){const r=`Platform: ${t}`,s=new we(r);return(t=[])=>{let i=Xs();if(!i||i.injector.get(Ks,!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(qs&&!qs.destroyed&&!qs.injector.get(Ks,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");qs=e.get(ei);const t=e.get(ys,null);t&&t.forEach(e=>e())}(Te.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 qs&&!qs.destroyed?qs:null}const ei=(()=>(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 Bs:("zone.js"===s?void 0:s)||new Fs({enableLongStackTrace:Ke()}),r=[{provide:Fs,useValue:n}];var s;return n.run(()=>{const t=Te.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(qe,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>ri(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.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}}(i,n,()=>{const e=s.injector.get(ps);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=ti({},t);return function(e,t,n){return e.get(Ss).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(ni);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 ti(e,t){return Array.isArray(t)?t.reduce(ti,e):Object.assign({},e,t)}const ni=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ke(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Fs.assertNotInAngularZone(),Ps(()=>{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)=>B(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)($(e,n))}(o,l.pipe(e=>q()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Y);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 Pt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Qs(n)?null:this._injector.get(Bt),s=n.create(Te.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(zs,null);return i&&s.injector.get(Gs).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Ke()&&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,Ms(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ri(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ws,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ri(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=Os("ApplicationRef#tick()"),e})();function ri(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class si{constructor(e,t){this.name=e,this.callback=t}}class ii{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof oi&&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 oi extends ii{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 oi&&(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 oi&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof oi&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof oi)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const li=new Map,ai=function(e){return li.get(e)||null};function ui(e){li.set(e.nativeNode,e)}const ci=Js(null,"core",[{provide:vs,useValue:"unknown"},{provide:ei,deps:[Te]},{provide:Gs,deps:[]},{provide:bs,deps:[]}]),di=new we("LocaleId");function hi(){return _n}function fi(){return yn}function pi(e){return e||"en-US"}function gi(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}const mi=(()=>(class{constructor(e){}}))();function _i(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=Jn(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?nr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Mn},provider:null,text:null,query:null,ngContent:null}}function yi(e,t,n,r,s,i,o=[],l,a,u,c,d){u||(u=Mn);const{matchedQueries:h,references:f,matchedQueryIds:p}=Jn(n);let g=null,m=null;i&&([g,m]=ur(i)),l=l||[];const _=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t,n]=l[w],[r,s]=ur(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}_[w]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}a=a||[];const y=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t]=a[w];y[w]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=ur(e);return[n,r,t]});return d=function(e){if(e&&e.id===Fn){const t=null!=e.encapsulation&&e.encapsulation!==$e.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Ln++}`:jn}return e&&e.id===jn&&(e=null),e||null}(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:s,bindings:_,bindingFlags:cr(_),outputs:y,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:u||Mn},provider:null,text:null,query:null,ngContent:null}}function vi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=er(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===$e.ShadowDom);if(r.attrs)for(let l=0;l<r.attrs.length;l++){const[e,t,n]=r.attrs[l];i.setAttribute(o,t,n,e)}return o}function wi(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const l=n.outputs[o],a=bi(e,n.nodeIndex,(i=l.eventName,(s=l.target)?`${s}:${i}`:i));let u=l.target,c=e;"component"===l.target&&(u=null,c=t);const d=c.renderer.listen(u||r,l.eventName,a);e.disposables[n.outputIndex+o]=d}var s,i}function bi(e,t,n){return r=>Zn(e,t,n,r)}function Ci(e,t,n,r){if(!$n(e,t,n,r))return!1;const s=t.bindings[n],i=Vn(e,t.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=e.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(e,s,o,s.ns,l,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(yt.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,l,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,l,r)}return!0}function Ei(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Yn(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&&Dn(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&&Dn(e,n).setDirty(),n+=t.childCount}}function xi(e,t){const n=Dn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=Ti(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=In(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=Ti(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let l=0;l<i.length;l++){const e=i[l];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function Ti(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(ki(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Vn(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(Ti(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=qn(i);o&&o===n&&Ti(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];Ti(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function ki(e,t,n){if(null!=n)switch(n){case 1:return Vn(e,t.nodeIndex).renderElement;case 0:return new Zt(Vn(e,t.nodeIndex).renderElement);case 2:return Vn(e,t.nodeIndex).template;case 3:return Vn(e,t.nodeIndex).viewContainer;case 4:return In(e,t.nodeIndex).instance}}function Ai(e,t,n){const r=er(e,t,n);r&&ir(e,n.ngContent.index,1,r,null,void 0)}function Si(e,t){const n=Object.keys(t),r=n.length,s=new Array(r);for(let i=0;i<r;i++){const e=n[i];s[t[e]]=e}return function(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:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:cr(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,e,s)}function Vi(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 Ii(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=er(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function Ni(e,t){return(null!=e?e.toString():"")+t.suffix}function Di(e,t,n,r){let s=0,i=0,o=0,l=0,a=0,u=null,c=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=u,e.bindingIndex=s,e.outputIndex=i,e.renderParent=c,o|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,d=!1,h=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(Mi(u,e,t.length),s+=e.bindings.length,i+=e.outputs.length,!c&&3&e.flags&&(f=e),20224&e.flags){d||(d=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[Pn(e.provider.token)]=e:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Pn(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):l|=e.flags,e.childCount>0)u=e,Oi(e)||(c=e);else for(;u&&p===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&Oi(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Mn,updateRenderer:r||Mn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:f}}function Oi(e){return 0!=(1&e.flags)&&null===e.element.name}function Mi(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 Ri(e,t,n,r){const s=ji(e.root,e.renderer,e,t,n);return Hi(s,e.component,r),Li(s),s}function Pi(e,t,n){const r=ji(e,e.renderer,null,null,t);return Hi(r,n,n),Li(r),r}function Fi(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,ji(e.root,i,e,t.element.componentProvider,n)}function ji(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function Hi(e,t,n){e.component=t,e.context=n}function Li(e){let t;Kn(e)&&(t=Vn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(On.setCurrentNode(e,s),201347067&i.flags){case 1:const n=vi(e,t,i);let l=void 0;if(33554432&i.flags){const t=nr(i.element.componentView);l=On.createComponentView(e,i,t,n)}wi(e,l,i,n),o={renderElement:n,componentView:l,viewContainer:null,template:i.element.template?Nr(e,i):void 0},16777216&i.flags&&(o.viewContainer=Ar(e,i,o));break;case 2:o=Ii(e,t,i);break;case 512:case 1024:case 2048:case 256:(o=r[s])||4096&i.flags||(o={instance:Yr(e,i)});break;case 16:o={instance:Jr(e,i)};break;case 16384:(o=r[s])||(o={instance:Xr(e,i)}),32768&i.flags&&Hi(Vn(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new hs;break;case 8:Ai(e,t,i),o=void 0}r[s]=o}Qi(e,Wi.CreateViewNodes),Xi(e,201326592,268435456,0)}function Ui(e){zi(e),On.updateDirectives(e,1),Ki(e,Wi.CheckNoChanges),On.updateRenderer(e,1),Qi(e,Wi.CheckNoChanges),e.state&=-97}function $i(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,kn(e,0,256),zi(e),On.updateDirectives(e,0),Ki(e,Wi.CheckAndUpdate),Xi(e,67108864,536870912,0);let t=kn(e,256,512);ls(e,2097152|(t?1048576:0)),On.updateRenderer(e,0),Qi(e,Wi.CheckAndUpdate),Xi(e,134217728,536870912,0),ls(e,8388608|((t=kn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,kn(e,768,1024)}function Bi(e,t,n,r,s,i,o,l,a,u,c,d,h){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,l,a,u,c,d){const h=t.bindings.length;let f=!1;return h>0&&Ci(e,t,0,n)&&(f=!0),h>1&&Ci(e,t,1,r)&&(f=!0),h>2&&Ci(e,t,2,s)&&(f=!0),h>3&&Ci(e,t,3,i)&&(f=!0),h>4&&Ci(e,t,4,o)&&(f=!0),h>5&&Ci(e,t,5,l)&&(f=!0),h>6&&Ci(e,t,6,a)&&(f=!0),h>7&&Ci(e,t,7,u)&&(f=!0),h>8&&Ci(e,t,8,c)&&(f=!0),h>9&&Ci(e,t,9,d)&&(f=!0),f}(e,t,n,r,s,i,o,l,a,u,c,d);case 2:return function(e,t,n,r,s,i,o,l,a,u,c,d){let h=!1;const f=t.bindings,p=f.length;if(p>0&&$n(e,t,0,n)&&(h=!0),p>1&&$n(e,t,1,r)&&(h=!0),p>2&&$n(e,t,2,s)&&(h=!0),p>3&&$n(e,t,3,i)&&(h=!0),p>4&&$n(e,t,4,o)&&(h=!0),p>5&&$n(e,t,5,l)&&(h=!0),p>6&&$n(e,t,6,a)&&(h=!0),p>7&&$n(e,t,7,u)&&(h=!0),p>8&&$n(e,t,8,c)&&(h=!0),p>9&&$n(e,t,9,d)&&(h=!0),h){let h=t.text.prefix;p>0&&(h+=Ni(n,f[0])),p>1&&(h+=Ni(r,f[1])),p>2&&(h+=Ni(s,f[2])),p>3&&(h+=Ni(i,f[3])),p>4&&(h+=Ni(o,f[4])),p>5&&(h+=Ni(l,f[5])),p>6&&(h+=Ni(a,f[6])),p>7&&(h+=Ni(u,f[7])),p>8&&(h+=Ni(c,f[8])),p>9&&(h+=Ni(d,f[9]));const g=Sn(e,t.nodeIndex).renderText;e.renderer.setValue(g,h)}return h}(e,t,n,r,s,i,o,l,a,u,c,d);case 16384:return function(e,t,n,r,s,i,o,l,a,u,c,d){const h=In(e,t.nodeIndex),f=h.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&Un(e,t,0,n)&&(p=!0,g=os(e,h,t,0,n,g)),m>1&&Un(e,t,1,r)&&(p=!0,g=os(e,h,t,1,r,g)),m>2&&Un(e,t,2,s)&&(p=!0,g=os(e,h,t,2,s,g)),m>3&&Un(e,t,3,i)&&(p=!0,g=os(e,h,t,3,i,g)),m>4&&Un(e,t,4,o)&&(p=!0,g=os(e,h,t,4,o,g)),m>5&&Un(e,t,5,l)&&(p=!0,g=os(e,h,t,5,l,g)),m>6&&Un(e,t,6,a)&&(p=!0,g=os(e,h,t,6,a,g)),m>7&&Un(e,t,7,u)&&(p=!0,g=os(e,h,t,7,u,g)),m>8&&Un(e,t,8,c)&&(p=!0,g=os(e,h,t,8,c,g)),m>9&&Un(e,t,9,d)&&(p=!0,g=os(e,h,t,9,d,g)),g&&f.ngOnChanges(g),65536&t.flags&&An(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,s,i,o,l,a,u,c,d);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,l,a,u,c,d){const h=t.bindings;let f=!1;const p=h.length;if(p>0&&$n(e,t,0,n)&&(f=!0),p>1&&$n(e,t,1,r)&&(f=!0),p>2&&$n(e,t,2,s)&&(f=!0),p>3&&$n(e,t,3,i)&&(f=!0),p>4&&$n(e,t,4,o)&&(f=!0),p>5&&$n(e,t,5,l)&&(f=!0),p>6&&$n(e,t,6,a)&&(f=!0),p>7&&$n(e,t,7,u)&&(f=!0),p>8&&$n(e,t,8,c)&&(f=!0),p>9&&$n(e,t,9,d)&&(f=!0),f){const f=Nn(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]=i),p>4&&(g[4]=o),p>5&&(g[5]=l),p>6&&(g[6]=a),p>7&&(g[7]=u),p>8&&(g[8]=c),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]=i),p>4&&(g[h[4].name]=o),p>5&&(g[h[5].name]=l),p>6&&(g[h[6].name]=a),p>7&&(g[h[7].name]=u),p>8&&(g[h[8].name]=c),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,i);break;case 5:g=e.transform(r,s,i,o);break;case 6:g=e.transform(r,s,i,o,l);break;case 7:g=e.transform(r,s,i,o,l,a);break;case 8:g=e.transform(r,s,i,o,l,a,u);break;case 9:g=e.transform(r,s,i,o,l,a,u,c);break;case 10:g=e.transform(r,s,i,o,l,a,u,c,d)}}f.value=g}return f}(e,t,n,r,s,i,o,l,a,u,c,d);default:throw"unreachable"}}(e,t,r,s,i,o,l,a,u,c,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++)Ci(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)$n(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=Ni(n[e],r[e]);s=t.text.prefix+s;const i=Sn(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=In(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let l=0;l<n.length;l++)Un(e,t,l,n[l])&&(i=!0,o=os(e,r,t,l,n[l],o));return o&&s.ngOnChanges(o),65536&t.flags&&An(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)$n(e,t,i,n[i])&&(s=!0);if(s){const s=Nn(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let t=0;t<n.length;t++)i[r[t].name]=n[t];break;case 128:const e=n[0],s=n.slice(1);i=e.transform(...s)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function zi(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=Vn(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 Gi(e,t,n,r,s,i,o,l,a,u,c,d,h){return 0===n?function(e,t,n,r,s,i,o,l,a,u,c,d){const h=t.bindings.length;h>0&&Bn(e,t,0,n),h>1&&Bn(e,t,1,r),h>2&&Bn(e,t,2,s),h>3&&Bn(e,t,3,i),h>4&&Bn(e,t,4,o),h>5&&Bn(e,t,5,l),h>6&&Bn(e,t,6,a),h>7&&Bn(e,t,7,u),h>8&&Bn(e,t,8,c),h>9&&Bn(e,t,9,d)}(e,t,r,s,i,o,l,a,u,c,d,h):function(e,t,n){for(let r=0;r<n.length;r++)Bn(e,t,r,n[r])}(e,t,r),!1}function Zi(e,t){if(Dn(e,t.nodeIndex).dirty)throw En(On.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function qi(e){if(!(128&e.state)){if(Ki(e,Wi.Destroy),Qi(e,Wi.Destroy),ls(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=qn(e);if(t){const n=t.template._projectedViews;n&&(Cr(n,n.indexOf(e)),On.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(Vn(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Sn(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Dn(e,n).destroy()}}(e),Kn(e)&&e.renderer.destroy(),e.state|=128}}const Wi=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 Qi(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?Yi(Vn(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function Ki(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=Vn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Yi(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function Yi(e,t){const n=e.state;switch(t){case Wi.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ui(e):64&n&&Ji(e,Wi.CheckNoChangesProjectedViews));break;case Wi.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ui(e):64&n&&Ji(e,t));break;case Wi.CheckAndUpdate:0==(128&n)&&(12==(12&n)?$i(e):64&n&&Ji(e,Wi.CheckAndUpdateProjectedViews));break;case Wi.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?$i(e):64&n&&Ji(e,t));break;case Wi.Destroy:qi(e);break;case Wi.CreateViewNodes:Li(e)}}function Ji(e,t){Ki(e,t),Qi(e,t)}function Xi(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(On.setCurrentNode(e,s.nodeIndex),r){case 0:xi(e,s);break;case 1:Zi(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let eo=!1;function to(e,t,n,r,s,i){const o=s.injector.get(Qt);return Pi(ro(e,s,o,t,n),r,i)}function no(e,t,n,r,s,i){const o=s.injector.get(Qt),l=ro(e,s,new Po(o),t,n),a=po(r);return Mo(wo.create,Pi,null,[l,a,i])}function ro(e,t,n,r,s){const i=t.injector.get(vt),o=t.injector.get(qe),l=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:l,errorHandler:o}}function so(e,t,n,r){const s=po(n);return Mo(wo.create,Ri,null,[e,t,s,r])}function io(e,t,n,r){return n=uo.get(t.element.componentProvider.provider.token)||po(n),Mo(wo.create,Fi,null,[e,t,n,r])}function oo(e,t,n,r){return jr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===lo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=lo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{ao.forEach((r,s)=>{ue(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=lo.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=Xn(s.deps),r.value=s.value)}if(ao.size>0){let t=new Set(e.modules);ao.forEach((r,s)=>{if(t.has(ue(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[Pn(s)]=t}})}}(e=e.factory(()=>Mn)),e):e}(r))}const lo=new Map,ao=new Map,uo=new Map;function co(e){let t;lo.set(e.token,e),"function"==typeof e.token&&(t=ue(e.token))&&"function"==typeof t.providedIn&&ao.set(e.token,e)}function ho(e,t){const n=nr(t.viewDefFactory),r=nr(n.nodes[0].element.componentView);uo.set(e,r)}function fo(){lo.clear(),ao.clear(),uo.clear()}function po(e){if(0===lo.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&&lo.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Mn);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=lo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Xn(n.deps),e.value=n.value)}}}}function go(e,t,n,r,s,i,o,l,a,u,c,d,h){const f=e.def.nodes[t];return Bi(e,f,n,r,s,i,o,l,a,u,c,d,h),224&f.flags?Nn(e,t).value:void 0}function mo(e,t,n,r,s,i,o,l,a,u,c,d,h){const f=e.def.nodes[t];return Gi(e,f,n,r,s,i,o,l,a,u,c,d,h),224&f.flags?Nn(e,t).value:void 0}function _o(e){return Mo(wo.detectChanges,$i,null,[e])}function yo(e){return Mo(wo.checkNoChanges,Ui,null,[e])}function vo(e){return Mo(wo.destroy,qi,null,[e])}const wo=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 bo,Co,Eo;function xo(e,t){Co=e,Eo=t}function To(e,t,n,r){return xo(e,t),Mo(wo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ko(e,t){if(128&e.state)throw Tn(wo[bo]);return xo(e,Io(e,0)),e.def.updateDirectives(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?So(e,i,r,s):Vo(e,i,r,s),16384&i.flags&&xo(e,Io(e,n)),224&i.flags?Nn(e,i.nodeIndex).value:void 0},e)}function Ao(e,t){if(128&e.state)throw Tn(wo[bo]);return xo(e,No(e,0)),e.def.updateRenderer(function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?So(e,i,r,s):Vo(e,i,r,s),3&i.flags&&xo(e,No(e,n)),224&i.flags?Nn(e,i.nodeIndex).value:void 0},e)}function So(e,t,n,r){if(Bi(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],l=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(Ct,(...e)=>"-"+e[1].toLowerCase())}`)]=Et(l))}const r=t.parent,l=Vn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(l,t,r):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function Vo(e,t,n,r){Gi(e,t,n,...r)}function Io(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 No(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 Do{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=Wn(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Vn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Or(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){Oo(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&&Oo(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!Kn(e);)e=e.parent;return e.parent?Vn(e.parent,Wn(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 i=-1;n.factory(()=>++i===s?e.error.bind(e,...t):Mn),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function Oo(e,t,n){for(let r in t.references)n[r]=ki(e,t,t.references[r])}function Mo(e,t,n,r){const s=bo,i=Co,o=Eo;try{bo=e;const a=t.apply(n,r);return Co=i,Eo=o,bo=s,a}catch(l){if(ze(l)||!Co)throw l;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),xn(e,t),e}(l,Ro())}}function Ro(){return Co?new Do(Co,Eo):null}class Po{constructor(e){this.delegate=e}createRenderer(e,t){return new Fo(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 Fo{constructor(e){this.delegate=e,this.debugContextFactory=Ro,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){li.delete(e.nativeNode)}(ai(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 oi(n,null,r);t.name=e,ui(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&ui(new ii(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ui(new ii(t,null,n)),t}appendChild(e,t){const n=ai(e),r=ai(t);n&&r&&n instanceof oi&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=ai(e),s=ai(t),i=ai(n);r&&s&&r instanceof oi&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=ai(e),r=ai(t);n&&r&&n instanceof oi&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=Ro();return r&&ui(new oi(n,null,r)),n}setAttribute(e,t,n,r){const s=ai(e);s&&s instanceof oi&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=ai(e);r&&r instanceof oi&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=ai(e);n&&n instanceof oi&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=ai(e);n&&n instanceof oi&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=ai(e);s&&s instanceof oi&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=ai(e);r&&r instanceof oi&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=ai(e);r&&r instanceof oi&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=ai(e);r&&r.listeners.push(new si(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 jo(e,t,n){return new Ho(e,t,n)}class Ho extends zt{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(eo)return;eo=!0;const e=Ke()?{setCurrentNode:xo,createRootView:no,createEmbeddedView:so,createComponentView:io,createNgModuleRef:oo,overrideProvider:co,overrideComponentView:ho,clearOverrides:fo,checkAndUpdateView:_o,checkNoChangesView:yo,destroyView:vo,createDebugContext:(e,t)=>new Do(e,t),handleEvent:To,updateDirectives:ko,updateRenderer:Ao}:{setCurrentNode:()=>{},createRootView:to,createEmbeddedView:Ri,createComponentView:Fi,createNgModuleRef:jr,overrideProvider:Mn,overrideComponentView:Mn,clearOverrides:Mn,checkAndUpdateView:$i,checkNoChangesView:Ui,destroyView:qi,createDebugContext:(e,t)=>new Do(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?go:mo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?go:mo,e)};On.setCurrentNode=e.setCurrentNode,On.createRootView=e.createRootView,On.createEmbeddedView=e.createEmbeddedView,On.createComponentView=e.createComponentView,On.createNgModuleRef=e.createNgModuleRef,On.overrideProvider=e.overrideProvider,On.overrideComponentView=e.overrideComponentView,On.clearOverrides=e.clearOverrides,On.checkAndUpdateView=e.checkAndUpdateView,On.checkNoChangesView=e.checkNoChangesView,On.destroyView=e.destroyView,On.resolveDep=ss,On.createDebugContext=e.createDebugContext,On.handleEvent=e.handleEvent,On.updateDirectives=e.updateDirectives,On.updateRenderer=e.updateRenderer,On.dirtyParentQueries=Ei}();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 On.createNgModuleRef(this.moduleType,e||Te.NULL,this._bootstrapComponents,t)}}class Lo{}class Uo{}const $o=void 0;var Bo=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["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"]],$o,[["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"]],$o,[["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}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","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 zo={},Go=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}(),Zo=new we("UseV4Plurals");class qo{}const Wo=(()=>(class extends qo{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 function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=zo[t];if(n)return n;const r=t.split("-")[0];if(n=zo[r])return n;if("en"===r)return Bo;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[18]}(t||this.locale)(e)){case Go.Zero:return"zero";case Go.One:return"one";case Go.Two:return"two";case Go.Few:return"few";case Go.Many:return"many";default:return"other"}}}))();class Qo{}const Ko=(()=>(class{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Nt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${de(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}))(),Yo=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),Jo=(()=>(class extends Yo{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}))(),Xo=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new el,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){tl("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){tl("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 el{constructor(){this.$implicit=null,this.ngIf=null}}function tl(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${de(t)}'.`)}const nl=(()=>(class{}))(),rl=new we("DocumentToken");let sl=null;function il(){return sl}class ol{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class ll extends ol{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 al={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},ul=3,cl={"\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"},dl={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"},hl=(()=>{if(me.Node)return me.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class fl extends ll{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new fl,sl||(sl=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 al}contains(e,t){return hl.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===ul&&dl.hasOwnProperty(t)&&(t=dl[t]))}return cl[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=gl||(gl=document.querySelector("base"))?gl.getAttribute("href"):null;return null==t?null:(n=t,pl||(pl=document.createElement("a")),pl.setAttribute("href",n),"/"===pl.pathname.charAt(0)?pl.pathname:"/"+pl.pathname);var n}resetBaseElement(){gl=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 pl,gl=null;function ml(){return!!window.history.pushState}const _l=(()=>{class e extends Uo{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=il().getLocation(),this._history=il().getHistory()}getBaseHrefFromDOM(){return il().getBaseHref(this._doc)}onPopState(e){il().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){il().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){ml()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){ml()?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:[rl]}]}]),e})(),yl=new we("TRANSITION_ID"),vl=[{provide:fs,useFactory:function(e,t,n){return()=>{n.get(ps).donePromise.then(()=>{const n=il();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[yl,rl,Te],multi:!0}];class wl{static init(){var e;e=new wl,Ws=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?il().isShadowRoot(t)?this.findTestabilityInTree(e,il().getHost(t),!0):this.findTestabilityInTree(e,il().parentElement(t),!0):null}}function bl(e,t){"undefined"!=typeof COMPILED&&COMPILED||((me.ng=me.ng||{})[e]=t)}const Cl=(()=>({ApplicationRef:ni,NgZone:Fs}))();function El(e){return ai(e)}const xl=new we("EventManagerPlugins"),Tl=(()=>(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 kl{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=il().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}const Al=(()=>(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)}}))(),Sl=(()=>(class extends Al{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=>il().remove(e))}}))(),Vl={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/"},Il=/%COMP%/g,Nl="_nghost-%COMP%",Dl="_ngcontent-%COMP%";function Ol(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?Ol(e,s,n):(s=s.replace(Il,e),n.push(s))}return n}function Ml(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}const Rl=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Pl(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case $e.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Hl(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case $e.Native:case $e.ShadowDom:return new Ll(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=Ol(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class Pl{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Vl[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=Vl[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Vl[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&Kt.DashCase?e.style.setProperty(t,n,r&Kt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Kt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){jl(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return jl(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ml(n)):this.eventManager.addEventListener(e,t,Ml(n))}}const Fl=(()=>"@".charCodeAt(0))();function jl(e,t){if(e.charCodeAt(0)===Fl)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class Hl extends Pl{constructor(e,t,n,r){super(e),this.component=n;const s=Ol(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=Dl.replace(Il,r+"-"+n.id),this.hostAttr=Nl.replace(Il,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 Ll extends Pl{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===$e.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ol(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const Ul=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),$l=Ul("addEventListener"),Bl=Ul("removeEventListener"),zl={},Gl="__zone_symbol__propagationStopped",Zl=(()=>{const e="undefined"!=typeof Zone&&Zone[Ul("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),ql=function(e){return!!Zl&&Zl.hasOwnProperty(e)},Wl=function(e){const t=zl[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[Gl];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}},Ql=(()=>(class extends kl{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[Gl]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[$l]||Fs.isInAngularZone()&&!ql(t))e.addEventListener(t,r,!1);else{let n=zl[t];n||(n=zl[t]=Ul("ANGULAR"+t+"FALSE"));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=ql(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[$l](t,Wl,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Bl];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=zl[t],i=s&&e[s];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let l=0;l<i.length;l++)if(i[l].handler===n){o=!0,i.splice(l,1);break}o?0===i.length&&r.apply(e,[t,Wl,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))(),Kl={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},Yl=new we("HammerGestureConfig"),Jl=new we("HammerLoader"),Xl=(()=>(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}}))(),ea=(()=>(class extends kl{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!Kl.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=(()=>{}));r||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=(()=>{})}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded(function(){n(e)})};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))(),ta=["alt","control","meta","shift"],na={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ra=(()=>{class e extends kl{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>il().onAndCancel(t,s.domEventName,i))}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 i="";if(ta.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=il().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ta.forEach(r=>{r!=n&&(0,na[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 sa{}const ia=(()=>(class extends sa{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 la?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{mt=mt||new Ye(e);let r=t?String(t):"";n=mt.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=mt.getInertBodyElement(r)}while(r!==i);const o=new ht,l=o.sanitizeChildren(_t(n)||n);return Ke()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}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 aa?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(bt);return t&&et(t[1])===t[1]||e.match(wt)&&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:(Ke()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case yt.SCRIPT:if(t instanceof ua)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case yt.URL:return t instanceof da||t instanceof ca?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),et(String(t)));case yt.RESOURCE_URL:if(t instanceof da)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 oa)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new la(e)}bypassSecurityTrustStyle(e){return new aa(e)}bypassSecurityTrustScript(e){return new ua(e)}bypassSecurityTrustUrl(e){return new ca(e)}bypassSecurityTrustResourceUrl(e){return new da(e)}}))();class oa{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class la extends oa{getTypeName(){return"HTML"}}class aa extends oa{getTypeName(){return"Style"}}class ua extends oa{getTypeName(){return"Script"}}class ca extends oa{getTypeName(){return"URL"}}class da extends oa{getTypeName(){return"ResourceURL"}}const ha=Js(ci,"browser",[{provide:vs,useValue:"browser"},{provide:ys,useValue:function(){fl.makeCurrent(),wl.init()},multi:!0},{provide:Uo,useClass:_l,deps:[rl]},{provide:rl,useFactory:function(){return document},deps:[]}]);function fa(){return new qe}const pa=(()=>{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:yl,useExisting:gs},vl]}}}return e})();"undefined"!=typeof window&&window;const ga=new y(e=>e.complete());function ma(e){return e?function(e){return new y(t=>e.schedule(()=>t.complete()))}(e):ga}class _a extends j{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 ya=new we("NgValueAccessor"),va=(()=>(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)}}))(),wa=new we("CompositionEventMode"),ba=(()=>(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=il()?il().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 Ca{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 Ea extends Ca{get formDirective(){return null}get path(){return null}}function xa(){throw new Error("unimplemented")}class Ta extends Ca{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return xa()}get asyncValidator(){return xa()}}class ka{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 Aa=(()=>(class extends ka{constructor(e){super(e)}}))(),Sa=(()=>(class extends ka{constructor(e){super(e)}}))();function Va(e){return null==e||0===e.length}const Ia=/^(?=.{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 Na{static min(e){return t=>{if(Va(t.value)||Va(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(Va(t.value)||Va(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Va(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Va(e.value)?null:Ia.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(Va(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 Na.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(Va(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(Da);return 0==t.length?null:function(e){return Ma(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(Da);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&&a(t[0])&&(t=t[0]),0===t.length?ga:n?e(t).pipe(H(e=>n(...e))):new y(e=>new _a(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(Oa)).pipe(H(Ma))}}}function Da(e){return null!=e}function Oa(e){const t=xt(e)?B(e):e;if(!Tt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Ma(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function Ra(e){return e.validate?t=>e.validate(t):e}function Pa(e){return e.validate?t=>e.validate(t):e}const Fa=(()=>(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)}}))(),ja=(()=>(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}}))(),Ha=(()=>(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(Ta),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 ')}}))(),La={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 '};class Ua{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${La.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${La.formGroupName}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${La.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${La.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${La.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${La.formArrayName}`)}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(e){console.warn(`\n It looks like you're using ngModel on the same form field as ${e}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}function $a(e,t){return[...t.path,e]}function Ba(e,t){e||qa(t,"Cannot find control with"),t.valueAccessor||qa(t,"No value accessor for form control with"),e.validator=Na.compose([e.validator,t.validator]),e.asyncValidator=Na.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&&za(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&&za(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 za(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ga(e,t){null==e&&qa(t,"Cannot find control with"),e.validator=Na.compose([e.validator,t.validator]),e.asyncValidator=Na.composeAsync([e.asyncValidator,t.asyncValidator])}function Za(e){return qa(e,"There is no FormControl instance attached to form control element with")}function qa(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 Wa(e){return null!=e?Na.compose(e.map(Ra)):null}function Qa(e){return null!=e?Na.composeAsync(e.map(Pa)):null}const Ka=[va,(()=>(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)}}))(),Fa,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=(e=>{}),this.onTouched=(()=>{}),this._compareWith=St}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=St}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}}))(),Ha],Ya="VALID",Ja="INVALID",Xa="PENDING",eu="DISABLED";function tu(e){const t=ru(e)?e.validators:e;return Array.isArray(t)?Wa(t):t||null}function nu(e,t){const n=ru(t)?t.asyncValidators:e;return Array.isArray(n)?Qa(n):n||null}function ru(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class su{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===Ya}get invalid(){return this.status===Ja}get pending(){return this.status==Xa}get disabled(){return this.status===eu}get enabled(){return this.status!==eu}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=tu(e)}setAsyncValidators(e){this.asyncValidator=nu(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=Xa,!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=eu,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=Ya,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!==Ya&&this.status!==Xa||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()?eu:Ya}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Xa;const t=Oa(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 ou?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof lu&&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()?eu:this.errors?Ja:this._anyControlsHaveStatus(Xa)?Xa:this._anyControlsHaveStatus(Ja)?Ja:Ya}_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){ru(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class iu extends su{constructor(e=null,t,n){super(tu(t),nu(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 ou extends su{constructor(e,t,n){super(tu(t),nu(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 iu?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 lu extends su{constructor(e,t,n){super(tu(t),nu(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 iu?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)}}class au extends Ea{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $a(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wa(this._validators)}get asyncValidator(){return Qa(this._asyncValidators)}_checkParentType(){}}const uu=(()=>(class{}))(),cu=new we("NgModelWithFormControlWarning"),du=(()=>(class extends Ea{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new ds}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Ba(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){!function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this.directives)}addFormGroup(e){const t=this.form.get(e.path);Ga(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);Ga(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}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}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){t.valueAccessor.registerOnChange(()=>Za(t)),t.valueAccessor.registerOnTouched(()=>Za(t)),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&Ba(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=Wa(this._validators);this.form.validator=Na.compose([this.form.validator,e]);const t=Qa(this._asyncValidators);this.form.asyncValidator=Na.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||Ua.missingFormException()}}))(),hu=(()=>(class extends au{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){pu(this._parent)&&Ua.groupParentException()}}))(),fu=(()=>(class extends Ea{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return $a(this.name,this._parent)}get validator(){return Wa(this._validators)}get asyncValidator(){return Qa(this._asyncValidators)}_checkParentType(){pu(this._parent)&&Ua.arrayParentException()}}))();function pu(e){return!(e instanceof hu||e instanceof du||e instanceof fu)}const gu=(()=>{class e extends Ta{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new ds,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||qa(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===ba?n=t:function(e){return Ka.some(t=>e.constructor===t)}(t)?(r&&qa(e,"More than one built-in value accessor matches form control with"),r=t):(s&&qa(e,"More than one custom value accessor matches form control with"),s=t)}),s||r||n||(qa(e,"No valid value accessor for form control with"),null)}(this,r)}set isDisabled(e){Ua.disabledAttrWarning()}ngOnChanges(t){var n,r;this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!St(t,n.currentValue)}(t,this.viewModel)&&("formControlName",n=e,this,r=this._ngModelWarningConfig,Ke()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(Ua.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $a(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wa(this._rawValidators)}get asyncValidator(){return Qa(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof hu)&&this._parent instanceof au?Ua.ngModelGroupException():this._parent instanceof hu||this._parent instanceof du||this._parent instanceof fu||Ua.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e._ngModelWarningSentOnce=!1,e})(),mu=(()=>(class{}))(),_u=(()=>(class{group(e,t=null){const n=this._reduceControls(e);let r=null,s=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new ou(n,{asyncValidators:s,updateOn:i,validators:r})}control(e,t,n){return new iu(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new lu(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof iu||e instanceof ou||e instanceof lu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}))(),yu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:cu,useValue:t.warnOnNgModelWithFormControl}]}}}return e})();class vu{constructor(e,t){this.fb=e,this.usernameService=t,this.frmAsyncValidator=this.createForm()}ngOnInit(){}hasError(e,t){return"any"===t||""===t?this.frmAsyncValidator.controls[e].dirty&&this.frmAsyncValidator.controls[e].invalid:this.frmAsyncValidator.controls[e].dirty&&this.frmAsyncValidator.controls[e].hasError(t)}createForm(){return this.fb.group({username:[null,[Na.required],[this.usernameService.userValidator()]],username2:[null,{validators:[Na.required],asyncValidators:[this.usernameService.userValidator()],updateOn:"blur"}]})}}function wu(...e){let t=e[e.length-1];switch(k(t)?e.pop():t=void 0,e.length){case 0:return ma(t);case 1:return t?$(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 $(e,t)}}class bu extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class Cu extends bu{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}const Eu=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=(()=>Date.now()),e})();class xu extends Eu{constructor(e,t=Eu.now){super(e,()=>xu.delegate&&xu.delegate!==this?xu.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return xu.delegate&&xu.delegate!==this?xu.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Tu=new xu(Cu),ku=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return wu(this.value);case"E":return e=this.error,new y(t=>t.error(e));case"C":return ma()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class Au{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Su(e,this.delay,this.scheduler))}}class Su extends g{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Su.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new Vu(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ku.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ku.createComplete()),this.unsubscribe()}}class Vu{constructor(e,t){this.time=e,this.notification=t}}const Iu=(()=>{class e{constructor(){this.validUsernames=["hello","world","username"]}lookupUsername(e){return wu(this.validUsernames.includes(e)).pipe(function(e,t=Tu){const n=1e3 instanceof Date&&!isNaN(1e3)?1e3-t.now():Math.abs(1e3);return e=>e.lift(new Au(n,t))}())}userValidator(){return e=>this.lookupUsername(e.value).pipe(H(e=>(console.log(e),e?{usernameExists:!0}:null)))}}return e.ngInjectableDef=ae({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Nu=Hn({encapsulation:0,styles:[[""]],data:{}});function Du(e){return Di(0,[(e()(),yi(0,0,null,null,1,"div",[["class","has-text-danger"]],null,null,null,null,null)),(e()(),Vi(-1,null,[" A valid username is required! "]))],null,null)}function Ou(e){return Di(0,[(e()(),yi(0,0,null,null,1,"div",[["class","has-text-danger"]],null,null,null,null,null)),(e()(),Vi(-1,null,[" This username is already taken! "]))],null,null)}function Mu(e){return Di(0,[(e()(),yi(0,0,null,null,1,"div",[["class","has-text-danger"]],null,null,null,null,null)),(e()(),Vi(-1,null,[" A valid username is required! "]))],null,null)}function Ru(e){return Di(0,[(e()(),yi(0,0,null,null,1,"div",[["class","has-text-danger"]],null,null,null,null,null)),(e()(),Vi(-1,null,[" This username is already taken! "]))],null,null)}function Pu(e){return Di(0,[(e()(),yi(0,0,null,null,53,"section",[["class","hero is-primary is-fullheight"]],null,null,null,null,null)),(e()(),yi(1,0,null,null,52,"div",[["class","hero-body"]],null,null,null,null,null)),(e()(),yi(2,0,null,null,51,"div",[["class","container has-text-left"]],null,null,null,null,null)),(e()(),yi(3,0,null,null,50,"div",[["class","column is-4 is-offset-4 has-text-centered"]],null,null,null,null,null)),(e()(),yi(4,0,null,null,49,"div",[["class","card"]],null,null,null,null,null)),(e()(),yi(5,0,null,null,2,"div",[["class","card-header"]],null,null,null,null,null)),(e()(),yi(6,0,null,null,1,"h3",[["class","card-header-title is-1"]],null,null,null,null,null)),(e()(),Vi(-1,null,["Async Validator"])),(e()(),yi(8,0,null,null,45,"div",[["class","card-content"]],null,null,null,null,null)),(e()(),yi(9,0,null,null,44,"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,"submit"],[null,"reset"]],function(e,t,n){var r=!0;return"submit"===t&&(r=!1!==Rr(e,11).onSubmit(n)&&r),"reset"===t&&(r=!1!==Rr(e,11).onReset()&&r),r},null,null)),Wr(10,16384,null,0,uu,[],null,null),Wr(11,540672,null,0,du,[[8,null],[8,null]],{form:[0,"form"]},null),Qr(2048,null,Ea,null,[du]),Wr(13,16384,null,0,Sa,[[4,Ea]],null,null),(e()(),yi(14,0,null,null,19,"div",[["class","field has-text-left"]],null,null,null,null,null)),(e()(),yi(15,0,null,null,1,"label",[["class","label"]],null,null,null,null,null)),(e()(),Vi(-1,null,["Username "])),(e()(),yi(17,0,null,null,12,"div",[["class","control"]],null,null,null,null,null)),Qr(512,null,Qo,Ko,[hn,fn,Zt,Yt]),Wr(19,278528,null,0,Jo,[Qo],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Si(20,{"is-loading":0}),(e()(),yi(21,0,null,null,8,"input",[["autofocus",""],["class","input is-focused"],["formControlName","username"],["placeholder","Your username"],["type","username"]],[[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==Rr(e,25)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Rr(e,25).onTouched()&&r),"compositionstart"===t&&(r=!1!==Rr(e,25)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Rr(e,25)._compositionEnd(n.target.value)&&r),r},null,null)),Qr(512,null,Qo,Ko,[hn,fn,Zt,Yt]),Wr(23,278528,null,0,Jo,[Qo],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Si(24,{"is-danger":0}),Wr(25,16384,null,0,ba,[Yt,Zt,[2,wa]],null,null),Qr(1024,null,ya,function(e){return[e]},[ba]),Wr(27,671744,null,0,gu,[[3,Ea],[8,null],[8,null],[6,ya],[2,cu]],{name:[0,"name"]},null),Qr(2048,null,Ta,null,[gu]),Wr(29,16384,null,0,Aa,[[4,Ta]],null,null),(e()(),_i(16777216,null,null,1,null,Du)),Wr(31,16384,null,0,Xo,[bn,vn],{ngIf:[0,"ngIf"]},null),(e()(),_i(16777216,null,null,1,null,Ou)),Wr(33,16384,null,0,Xo,[bn,vn],{ngIf:[0,"ngIf"]},null),(e()(),yi(34,0,null,null,19,"div",[["class","field has-text-left"]],null,null,null,null,null)),(e()(),yi(35,0,null,null,1,"label",[["class","label"]],null,null,null,null,null)),(e()(),Vi(-1,null,["Username (Update on Blur) "])),(e()(),yi(37,0,null,null,12,"div",[["class","control"]],null,null,null,null,null)),Qr(512,null,Qo,Ko,[hn,fn,Zt,Yt]),Wr(39,278528,null,0,Jo,[Qo],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Si(40,{"is-loading":0}),(e()(),yi(41,0,null,null,8,"input",[["autofocus",""],["class","input is-focused"],["formControlName","username2"],["placeholder","Your username"],["type","username2"]],[[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==Rr(e,45)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Rr(e,45).onTouched()&&r),"compositionstart"===t&&(r=!1!==Rr(e,45)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Rr(e,45)._compositionEnd(n.target.value)&&r),r},null,null)),Qr(512,null,Qo,Ko,[hn,fn,Zt,Yt]),Wr(43,278528,null,0,Jo,[Qo],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Si(44,{"is-danger":0}),Wr(45,16384,null,0,ba,[Yt,Zt,[2,wa]],null,null),Qr(1024,null,ya,function(e){return[e]},[ba]),Wr(47,671744,null,0,gu,[[3,Ea],[8,null],[8,null],[6,ya],[2,cu]],{name:[0,"name"]},null),Qr(2048,null,Ta,null,[gu]),Wr(49,16384,null,0,Aa,[[4,Ta]],null,null),(e()(),_i(16777216,null,null,1,null,Mu)),Wr(51,16384,null,0,Xo,[bn,vn],{ngIf:[0,"ngIf"]},null),(e()(),_i(16777216,null,null,1,null,Ru)),Wr(53,16384,null,0,Xo,[bn,vn],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,11,0,n.frmAsyncValidator);var r=e(t,20,0,n.frmAsyncValidator.controls.username.pending);e(t,19,0,"control",r);var s=e(t,24,0,n.hasError("username","any"));e(t,23,0,"input is-focused",s),e(t,27,0,"username"),e(t,31,0,n.hasError("username","required")),e(t,33,0,null==n.frmAsyncValidator.controls.username.errors?null:n.frmAsyncValidator.controls.username.errors.usernameExists);var i=e(t,40,0,n.frmAsyncValidator.controls.username2.pending);e(t,39,0,"control",i);var o=e(t,44,0,n.hasError("username2","any"));e(t,43,0,"input is-focused",o),e(t,47,0,"username2"),e(t,51,0,n.hasError("username2","required")),e(t,53,0,null==n.frmAsyncValidator.controls.username2.errors?null:n.frmAsyncValidator.controls.username2.errors.usernameExists)},function(e,t){e(t,9,0,Rr(t,13).ngClassUntouched,Rr(t,13).ngClassTouched,Rr(t,13).ngClassPristine,Rr(t,13).ngClassDirty,Rr(t,13).ngClassValid,Rr(t,13).ngClassInvalid,Rr(t,13).ngClassPending),e(t,21,0,Rr(t,29).ngClassUntouched,Rr(t,29).ngClassTouched,Rr(t,29).ngClassPristine,Rr(t,29).ngClassDirty,Rr(t,29).ngClassValid,Rr(t,29).ngClassInvalid,Rr(t,29).ngClassPending),e(t,41,0,Rr(t,49).ngClassUntouched,Rr(t,49).ngClassTouched,Rr(t,49).ngClassPristine,Rr(t,49).ngClassDirty,Rr(t,49).ngClassValid,Rr(t,49).ngClassInvalid,Rr(t,49).ngClassPending)})}function Fu(e){return Di(0,[(e()(),yi(0,0,null,null,1,"app-root",[],null,null,null,Pu,Nu)),Wr(1,114688,null,0,vu,[_u,Iu],null,null)],function(e,t){e(t,1,0)},null)}var ju=xr("app-root",vu,Fu,{},{},[]),Hu=jo(Lo,[vu],function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===Mt&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[Pn(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([gr(512,Lt,Ut,[[8,[ju]],[3,Lt],Bt]),gr(5120,di,pi,[[3,di]]),gr(4608,qo,Wo,[di,[2,Zo]]),gr(5120,cs,gi,[Fs]),gr(4608,As,As,[]),gr(5120,gs,ms,[]),gr(5120,hn,hi,[]),gr(5120,fn,fi,[]),gr(4608,sa,ia,[rl]),gr(6144,vt,null,[sa]),gr(4608,Yl,Xl,[]),gr(5120,xl,function(e,t,n,r,s,i,o,l){return[new Ql(e,t,n),new ra(r),new ea(s,i,o,l)]},[rl,Fs,vs,rl,rl,Yl,bs,[2,Jl]]),gr(4608,Tl,Tl,[xl,Fs]),gr(135680,Sl,Sl,[rl]),gr(4608,Rl,Rl,[Tl,Sl,gs]),gr(6144,Qt,null,[Rl]),gr(6144,Al,null,[Sl]),gr(4608,zs,zs,[Fs]),gr(4608,_u,_u,[]),gr(4608,ja,ja,[]),gr(1073742336,nl,nl,[]),gr(1024,qe,fa,[]),gr(1024,fs,function(e){return[(t=e,bl("probe",El),bl("coreTokens",Object.assign({},Cl,(t||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>El)];var t},[[2,Ys]]),gr(512,ps,ps,[[2,fs]]),gr(131584,ni,ni,[Fs,bs,Te,qe,Lt,ps]),gr(1073742336,mi,mi,[ni]),gr(1073742336,pa,pa,[[3,pa]]),gr(1073742336,mu,mu,[]),gr(1073742336,yu,yu,[]),gr(1073742336,Lo,Lo,[]),gr(256,Mt,!0,[])])});(function(){if(Qe)throw new Error("Cannot enable prod mode after platform setup.");We=!1})(),ha().bootstrapModuleFactory(Hu).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]]]);