(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("AgYS")},AgYS:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function i(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete(){}},a=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof c?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new p(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let i=this;r(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==l&&(i=Object.create(e),r(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(l)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends p{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(t){const e=new A(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew A(t,e),t})();class A extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}class T extends p{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const k=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function I(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const D=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(V(t))return k(t);if(I(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();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};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};class P extends p{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function N(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new j(t,e))}}class j{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new F(t,this.project,this.thisArg))}}class F extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function R(t,e){return new _(n=>{const r=new h;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function M(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(I(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(V(t))return R(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[O](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(D(t))}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(H((n,r)=>M(t(n,r)).pipe(N((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new L(t,n)))}class L{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new U(t,this.project,this.concurrent))}}class U extends P{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t,e){return e?R(t,e):new _(k(t))}function z(){return function(t){return t.lift(new $(t))}}class ${constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Z(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Z extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class q extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new G(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return z()(this)}}const W=(()=>{const t=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class G extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function K(){return new E}function Q(t){for(let e in t)if(t[e]===Q)return e;throw Error("Could not find renamed property on target object.")}function J(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Y(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Y).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function X(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const tt=Q({__forward_ref__:Q});function et(t){return t.__forward_ref__=et,t.toString=function(){return Y(this())},t}function nt(t){return rt(t)?t():t}function rt(t){return"function"==typeof t&&t.hasOwnProperty(tt)&&t.__forward_ref__===et}function st(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ot(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function it(t){return lt(t,ut)||lt(t,ht)}function lt(t,e){return t.hasOwnProperty(e)?t[e]:null}function at(t){return t&&(t.hasOwnProperty(ct)||t.hasOwnProperty(dt))?t[ct]:null}const ut=Q({"\u0275prov":Q}),ct=Q({"\u0275inj":Q}),ht=Q({ngInjectableDef:Q}),dt=Q({ngInjectorDef:Q});var ft=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let pt;function gt(t){const e=pt;return pt=t,e}function mt(t,e,n){const r=it(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ft.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${Y(t)}]`)}function yt(t){return{toString:t}.toString()}var _t=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),vt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const bt="undefined"!=typeof globalThis&&globalThis,wt="undefined"!=typeof window&&window,Ct="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,At=bt||Et||wt||Ct,xt={},Tt=[],kt=Q({"\u0275cmp":Q}),St=Q({"\u0275dir":Q}),Ot=Q({"\u0275pipe":Q}),Vt=Q({"\u0275mod":Q}),It=Q({"\u0275loc":Q}),Dt=Q({"\u0275fac":Q}),Pt=Q({__NG_ELEMENT_ID__:Q});let Nt=0;function jt(t){return yt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===_t.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Tt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vt.Emulated,id:"c",styles:t.styles||Tt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return n.id+=Nt++,n.inputs=Lt(t.inputs,e),n.outputs=Lt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ft):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Rt):null,n})}function Ft(t){return Bt(t)||function(t){return t[St]||null}(t)}function Rt(t){return function(t){return t[Ot]||null}(t)}const Mt={};function Ht(t){const e={type:t.type,bootstrap:t.bootstrap||Tt,declarations:t.declarations||Tt,imports:t.imports||Tt,exports:t.exports||Tt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&yt(()=>{Mt[t.id]=t.type}),e}function Lt(t,e){if(null==t)return xt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,e&&(e[s]=o)}return n}const Ut=jt;function Bt(t){return t[kt]||null}function zt(t,e){const n=t[Vt]||null;if(!n&&!0===e)throw new Error(`Type ${Y(t)} does not have '\u0275mod' property.`);return n}const $t=20,Zt=10;function qt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Wt(t){return Array.isArray(t)&&!0===t[1]}function Gt(t){return 0!=(8&t.flags)}function Kt(t){return 2==(2&t.flags)}function Qt(t){return 1==(1&t.flags)}function Jt(t){return null!==t.template}function Yt(t,e){return t.hasOwnProperty(Dt)?t[Dt]:null}class Xt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function te(t){return"string"==typeof t?t:null==t?"":String(t)}function ee(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():te(t)}function ne(t,e){const n=e?` in ${e}`:"";throw new Xt("201",`No provider for ${ee(t)} found${n}`)}class re{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function se(){return oe}function oe(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ie}function ie(){const t=ae(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===xt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,n,r){const s=ae(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:xt,current:null}),o=s.current||(s.current={}),i=s.previous,l=this.declaredInputs[n],a=i[l];o[l]=new re(a&&a.currentValue,e,i===xt),t[r]=e}function ae(t){return t.__ngSimpleChanges__||null}let ue;function ce(t){return!!t.listen}se.ngInherit=!0;const he={createRenderer:(t,e)=>void 0!==ue?ue:"undefined"!=typeof document?document:void 0};function de(t){for(;Array.isArray(t);)t=t[0];return t}function fe(t,e){return de(e[t])}function pe(t,e){return de(e[t.index])}function ge(t,e){return t.data[e]}function me(t,e){const n=e[t];return qt(n)?n:n[0]}function ye(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function _e(t){return 128==(128&t[2])}function ve(t,e){return null==e?null:t[e]}function be(t){t[18]=0}function we(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ce={lFrame:Le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ee(){return Ce.bindingsEnabled}function Ae(){return Ce.lFrame.lView}function xe(){return Ce.lFrame.tView}function Te(){let t=ke();for(;null!==t&&64===t.type;)t=t.parent;return t}function ke(){return Ce.lFrame.currentTNode}function Se(t,e){const n=Ce.lFrame;n.currentTNode=t,n.isParent=e}function Oe(){return Ce.lFrame.isParent}function Ve(){return Ce.isInCheckNoChangesMode}function Ie(t){Ce.isInCheckNoChangesMode=t}function De(){return Ce.lFrame.bindingIndex++}function Pe(t,e){const n=Ce.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ne(e)}function Ne(t){Ce.lFrame.currentDirectiveIndex=t}function je(t){Ce.lFrame.currentQueryIndex=t}function Fe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Re(t,e,n){if(n&ft.SkipSelf){let r=e,s=t;for(;r=r.parent,!(null!==r||n&ft.Host||(r=Fe(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;e=r,t=s}const r=Ce.lFrame=He();return r.currentTNode=e,r.lView=t,!0}function Me(t){const e=He(),n=t[1];Ce.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function He(){const t=Ce.lFrame,e=null===t?null:t.child;return null===e?Le(t):e}function Le(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ue(){const t=Ce.lFrame;return Ce.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Be=Ue;function ze(){const t=Ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $e(){return Ce.lFrame.selectedIndex}function Ze(t){Ce.lFrame.selectedIndex=t}function qe(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[l]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(i)):o.call(i)}const Ye=-1;class Xe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function tn(t,e,n){const r=ce(t);let s=0;for(;se){i=o-1;break}}}for(;o>16,r=e;for(;n>0;)r=r[15],n--;return r}let an=!0;function un(t){const e=an;return an=t,e}let cn=0;function hn(t,e){const n=fn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,dn(r.data,t),dn(e,null),dn(r.blueprint,null));const s=pn(t,e),o=t.injectorIndex;if(sn(s)){const t=on(s),n=ln(s,e),r=n[1].data;for(let s=0;s<8;s++)e[o+s]=n[t+s]|r[t+s]}return e[o+8]=s,o}function dn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function pn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return Ye;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Ye}function gn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pt)&&(r=n[Pt]),null==r&&(r=n[Pt]=cn++);const s=255&r;e.data[t+(s>>5)]|=1<=0?255&e:bn:e}(n);if("function"==typeof o){if(!Re(e,t,r))return r&ft.Host?mn(s,n,r):yn(e,n,r,s);try{const t=o();if(null!=t||r&ft.Optional)return t;ne(n)}finally{Be()}}else if("number"==typeof o){let s=null,i=fn(t,e),l=Ye,a=r&ft.Host?e[16][6]:null;for((-1===i||r&ft.SkipSelf)&&(l=-1===i?pn(t,e):e[i+8],l!==Ye&&An(r,!1)?(s=e[1],i=on(l),e=ln(l,e)):i=-1);-1!==i;){const t=e[1];if(En(o,i,t.data)){const t=wn(i,e,n,s,r,a);if(t!==vn)return t}l=e[i+8],l!==Ye&&An(r,e[1].data[i+8]===a)&&En(o,i,e)?(s=t,i=on(l),e=ln(l,e)):i=-1}}}return yn(e,n,r,s)}const vn={};function bn(){return new xn(Te(),Ae())}function wn(t,e,n,r,s,o){const i=e[1],l=i.data[t+8],a=function(t,e,n,r,s){const o=t.providerIndexes,i=e.data,l=1048575&o,a=t.directiveStart,u=o>>20,c=s?l+u:t.directiveEnd;for(let h=r?l:l+u;h=a&&t.type===n)return h}if(s){const t=i[a];if(t&&Jt(t)&&t.type===n)return a}return null}(l,i,n,null==r?Kt(l)&&an:r!=i&&0!=(3&l.type),s&ft.Host&&o===l);return null!==a?Cn(e,i,a,l):vn}function Cn(t,e,n,r){let s=t[n];const o=e.data;if(s instanceof Xe){const i=s;i.resolving&&function(t,e){throw new Xt("200",`Circular dependency in DI detected for ${t}`)}(ee(o[n]));const l=un(i.canSeeViewProviders);i.resolving=!0;const a=i.injectImpl?gt(i.injectImpl):null;Re(t,r,ft.Default);try{s=t[n]=i.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(r){const r=oe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==a&>(a),un(l),i.resolving=!1,Be()}}return s}function En(t,e,n){return!!(n[e+(t>>5)]&1<{const t=Tn(nt(e));return t?t():null};let n=Yt(e);if(null===n){const t=at(e);n=t&&t.factory}return n||null}function kn(t){return yt(()=>{const e=t.prototype.constructor,n=e[Dt]||Tn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Dt]||Tn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}const Sn="__parameters__";function On(t,e,n){return yt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(Sn)?t[Sn]:Object.defineProperty(t,Sn,{value:[]})[Sn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Vn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=st({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function In(t,e){t.forEach(t=>Array.isArray(t)?In(t,e):e(t))}function Dn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Pn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Nn(t,e,n){let r=Fn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function jn(t,e){const n=Fn(t,e);if(n>=0)return t[1|n]}function Fn(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?s=n:r=n+1}return~(s<<1)}(t,e)}const Rn={},Mn=/\n/gm,Hn="__source",Ln=Q({provide:String,useValue:Q});let Un;function Bn(t){const e=Un;return Un=t,e}function zn(t,e=ft.Default){if(void 0===Un)throw new Error("inject() must be called from an injection context");return null===Un?mt(t,void 0,e):Un.get(t,e&ft.Optional?null:void 0,e)}function $n(t,e=ft.Default){return(pt||zn)(nt(t),e)}function Zn(t){const e=[];for(let n=0;n({token:t})),-1),Gn=qn(On("Optional"),8),Kn=qn(On("SkipSelf"),4);function Qn(t){return t.ngDebugContext}function Jn(t){return t.ngOriginalError}function Yn(t,...e){t.error(...e)}class Xn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Yn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Qn(t)?Qn(t):this._findContext(Jn(t)):null}_findOriginalError(t){let e=Jn(t);for(;e&&Jn(e);)e=Jn(e);return e}}function tr(t,e){t.__ngContext__=e}const er=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function nr(t){return t instanceof Function?t():t}var rr=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function sr(t,e){return(void 0)(t,e)}function or(t){const e=t[3];return Wt(e)?e[3]:e}function ir(t){return ar(t[13])}function lr(t){return ar(t[4])}function ar(t){for(;null!==t&&!Wt(t);)t=t[4];return t}function ur(t,e,n,r,s){if(null!=r){let o,i=!1;Wt(r)?o=r:qt(r)&&(i=!0,r=r[0]);const l=de(r);0===t&&null!==n?null==s?mr(e,n,l):gr(e,n,l,s||null,!0):1===t&&null!==n?gr(e,n,l,s||null,!0):2===t?function(t,e,n){const r=_r(t,e);r&&function(t,e,n,r){ce(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,l,i):3===t&&e.destroyNode(l),null!=o&&function(t,e,n,r,s){const o=n[7];o!==de(n)&&ur(e,t,r,o,s);for(let i=Zt;i0&&(t[n-1][4]=r[4]);const i=Pn(t,Zt+e);Er(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const l=i[19];null!==l&&l.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function fr(t,e){if(!(256&e[2])){const n=e[11];ce(n)&&n.destroyNode&&Er(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return pr(t[1],t);for(;e;){let n=null;if(qt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)qt(e)&&pr(e[1],e),e=e[3];null===e&&(e=t),qt(e)&&pr(e[1],e),n=e&&e[4]}e=n}}(e)}}function pr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[s=a]():r[s=-a].unsubscribe(),o+=2}else{const t=r[s=n[o+1]];n[o].call(t)}if(null!==r){for(let t=s+1;to?"":s[c+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==kr(e,u,0)||2&r&&u!==t){if(Pr(r))return!1;i=!0}}}}else{if(!i&&!Pr(r)&&!Pr(a))return!1;if(i&&Pr(a))continue;i=!1,r=a|1&r}}return Pr(r)||i}function Pr(t){return 0==(1&t)}function Nr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+i:4&r&&(s+=" "+i);else""===s||Pr(i)||(e+=Fr(o,s),s=""),r=i,o=o||!Pr(r);n++}return""!==s&&(e+=Fr(o,s)),e}const Mr={};function Hr(t){Lr(xe(),Ae(),$e()+t,Ve())}function Lr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&We(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Ge(e,r,0,n)}Ze(n)}function Ur(t,e){return t<<17|e<<2}function Br(t){return t>>17&32767}function zr(t){return 2|t}function $r(t){return(131068&t)>>2}function Zr(t,e){return-131069&t|e<<2}function qr(t){return 1|t}function Wr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r$t&&Lr(t,e,$t,Ve()),n(r,s)}finally{Ze(o)}}function es(t,e,n){Ee()&&(function(t,e,n,r){const s=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||hn(n,e),tr(r,e);const i=n.initialInputs;for(let l=s;l0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,s,i)}}function as(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function us(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function cs(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&_s(n)}}function _s(t){for(let n=ir(t);null!==n;n=lr(n))for(let t=Zt;t0&&_s(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&_s(r)}}function vs(t,e){const n=me(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Ts(t){return t[7]||(t[7]=[])}function ks(t){return t.cleanup||(t.cleanup=[])}function Ss(t,e){const n=t[9],r=n?n.get(Xn,null):null;r&&r.handleError(e)}function Os(t,e,n,r,s){for(let o=0;othis.processProvider(n,t,e)),In([t],t=>this.processInjectorType(t,[],s)),this.records.set(Is,zs(void 0,this));const o=this.records.get(Ps);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:Y(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Rn,n=ft.Default){this.assertNotDestroyed();const r=Bn(this);try{if(!(n&ft.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Vn)&&it(t);e=n&&this.injectableDefInScope(n)?zs(Us(t),Ns):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ft.Self?Ms():this.parent).get(t,e=n&ft.Optional&&e===Rn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(Y(t)),r)throw o;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Hn]&&s.unshift(e[Hn]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Y(e);if(Array.isArray(e))s=e.map(Y).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):Y(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Mn,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{Bn(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(Y(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=nt(t)))return!1;let r=at(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=at(s)),null==r)return!1;if(null!=r.imports&&!i){let t;n.push(o);try{In(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Fs))}}this.injectorDefTypes.add(o),this.records.set(o,zs(r.factory,Ns));const l=r.providers;if(null!=l&&!i){const e=t;In(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Zs(t=nt(t))?t:nt(t&&t.provide);const s=function(t,e,n){return $s(t)?zs(void 0,t.useValue):zs(Bs(t),Ns)}(t);if(Zs(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=zs(void 0,Ns,!0),e.factory=()=>Zn(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Ns&&(e.value=js,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Us(t){const e=it(t),n=null!==e?e.factory:Yt(t);if(null!==n)return n;const r=at(t);if(null!==r)return r.factory;if(t instanceof Vn)throw new Error(`Token ${Y(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new Error("unreachable")}function Bs(t,e,n){let r;if(Zs(t)){const e=nt(t);return Yt(e)||Us(e)}if($s(t))r=()=>nt(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Zn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>$n(nt(t.useExisting));else{const e=nt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Yt(e)||Us(e);r=()=>new e(...Zn(t.deps))}var s;return r}function zs(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function $s(t){return null!==t&&"object"==typeof t&&Ln in t}function Zs(t){return"function"==typeof t}const qs=function(t,e,n){return function(t,e=null,n=null,r){const s=Hs(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ws=(()=>{class t{static create(t,e){return Array.isArray(t)?qs(t,e,""):qs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Rn,t.NULL=new Ds,t.\u0275prov=st({token:t,providedIn:"any",factory:()=>$n(Is)}),t.__NG_ELEMENT_ID__=-1,t})();function Gs(t,e){qe(ye(t)[1],Te())}function Ks(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s;if(Jt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Qs(t.inputs),e.declaredInputs=Qs(t.declaredInputs),e.outputs=Qs(t.outputs);const n=s.hostBindings;n&&Xs(t,n);const o=s.viewQuery,i=s.contentQueries;if(o&&Js(t,o),i&&Ys(t,i),J(t.inputs,s.inputs),J(t.declaredInputs,s.declaredInputs),J(t.outputs,s.outputs),Jt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=nn(s.hostAttrs,n=nn(n,s.hostAttrs))}}(r)}function Qs(t){return t===xt?{}:t===Tt?[]:t}function Js(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Ys(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function Xs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let to=null;function eo(){if(!to){const t=At.Symbol;if(t&&t.iterator)to=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;el(de(t[r.index])).target:r.index;if(ce(n)){let i=null;if(!l&&a&&(i=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let o=0;on?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=go(r,e,o,!1);const t=n.listen(f.name||p,s,o);c.push(o,t),u&&u.push(s,m,g,g+1)}}else o=go(r,e,o,!0),p.addEventListener(s,o,i),c.push(o),u&&u.push(s,m,g,i)}else o=go(r,e,o,!1);const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n=0}function vo(t,e){return function(t,e,n,r){const s=Ae(),o=xe(),i=function(t){const e=Ce.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();o.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const o=s[$e()],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=Ce.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=e.residualClasses;if(null===s)0===e.classBindings&&(n=wo(n=bo(null,t,e,n,r),e.attrs,r),o=null);else{const i=e.directiveStylingLast;if(-1===i||t[i]!==s)if(n=bo(s,t,e,n,r),null===o){let n=function(t,e,n){const r=e.classBindings;if(0!==$r(r))return t[Br(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=bo(null,t,e,n[1],r),n=wo(n,e.attrs,r),function(t,e,n,r){t[Br(e.classBindings)]=r}(t,e,0,n))}else o=function(t,e,n){let r;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(c=!0)}else u=n;if(s)if(0!==a){const e=Br(t[l+1]);t[r+1]=Ur(e,l),0!==e&&(t[e+1]=Zr(t[e+1],r)),t[l+1]=131071&t[l+1]|r<<17}else t[r+1]=Ur(l,0),0!==l&&(t[l+1]=Zr(t[l+1],r)),l=r;else t[r+1]=Ur(a,0),0===l?l=r:t[a+1]=Zr(t[a+1],r),a=r;c&&(t[r+1]=zr(t[r+1])),yo(t,u,r,!0),yo(t,u,r,!1),function(t,e,n,r,s){const o=t.residualClasses;null!=o&&"string"==typeof e&&Fn(o,e)>=0&&(n[r+1]=qr(n[r+1]))}(e,u,t,r),i=Ur(l,a),e.classBindings=i}(s,o,e,n,i)}}(o,t,i,true),e!==Mr&&so(s,i,e)&&function(t,e,n,r,s,o,i,l){if(!(3&e.type))return;const a=t.data,u=a[l+1];Eo(1==(1&u)?Co(a,e,n,s,$r(u),i):void 0)||(Eo(o)||function(t){return 2==(2&t)}(u)&&(o=Co(a,null,n,s,l,i)),function(t,e,n,r,s){const o=ce(t);s?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,fe($e(),n),s,o))}(o,o.data[$e()],s,s[11],t,s[i+1]=function(t,e){return null==t||"object"==typeof t&&(t=Y(function(t){return t instanceof class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?t.changingThisBreaksApplicationSecurity:t}(t))),t}(e),true,i)}(t,e),vo}function bo(t,e,n,r,s){let o=null;const i=n.directiveEnd;let l=n.directiveStylingLast;for(-1===l?l=n.directiveStart:l++;l0;){const e=t[s],o=Array.isArray(e),a=o?e[1]:e,u=null===a;let c=n[s+1];c===Mr&&(c=u?mo:void 0);let h=u?jn(c,r):a===r?c:void 0;if(o&&!Eo(h)&&(h=jn(e,r)),Eo(h)&&(l=h,i))return l;const d=t[s+1];s=i?Br(d):$r(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(l=jn(t,r))}return l}function Eo(t){return void 0!==t}function Ao(t,e=""){const n=Ae(),r=xe(),s=t+$t,o=r.firstCreatePass?Kr(r,s,1,e,null):r.data[s],i=n[s]=function(t,e){return ce(t)?t.createText(e):t.createTextNode(e)}(n[11],e);vr(r,n,i,o),Se(o,!1)}function xo(t){return To("",t,""),xo}function To(t,e,n){const r=Ae(),s=function(t,e,n,r){return so(t,De(),n)?e+te(n)+r:Mr}(r,t,e,n);return s!==Mr&&function(t,e,n){const r=fe(e,t);!function(t,e,n){ce(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,$e(),s),To}const ko=void 0;var So=["en",[["a","p"],["AM","PM"],ko],[["AM","PM"],ko,ko],[["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"]],ko,[["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"]],ko,[["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}",ko,"{1} 'at' {0}",ko],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Oo={};function Vo(t){return t in Oo||(Oo[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),Oo[t]}var Io=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Do="en-US";let Po=Do;function No(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Po=t.toLowerCase().replace(/_/g,"-"))}function jo(t,e,n,r,s){if(t=nt(t),Array.isArray(t))for(let o=0;o>20;if(Zs(t)||!t.multi){const r=new Xe(a,s,oo),f=Mo(l,e,s?c:c+d,h);-1===f?(gn(hn(u,i),o,l),Fo(o,t,e.length),e.push(l),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(r),i.push(r)):(n[f]=r,i[f]=r)}else{const f=Mo(l,e,c+d,h),p=Mo(l,e,c,c+d),g=f>=0&&n[f],m=p>=0&&n[p];if(s&&!m||!s&&!g){gn(hn(u,i),o,l);const c=function(t,e,n,r,s){const o=new Xe(t,n,oo);return o.multi=[],o.index=e,o.componentProviders=0,Ro(o,s,r&&!n),o}(s?Lo:Ho,n.length,s,r,a);!s&&m&&(n[p].providerFactory=c),Fo(o,t,e.length,0),e.push(l),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),i.push(c)}else Fo(o,t,f>-1?f:p,Ro(n[s?p:f],a,!s&&r));!s&&r&&m&&n[p].componentProviders++}}}function Fo(t,e,n,r){const s=Zs(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const i=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=i.indexOf(n);-1===t?i.push(n,[r,o]):i[t+1].push(r,o)}else i.push(n,o)}}}function Ro(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Mo(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=xe();if(r.firstCreatePass){const s=Jt(t);jo(n,r.data,r.blueprint,s,!0),jo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class zo{}class $o{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${Y(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Zo=(()=>{class t{}return t.NULL=new $o,t})();function qo(...t){}function Wo(t,e){return new Ko(pe(t,e))}const Go=function(){return Wo(Te(),Ae())};let Ko=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Go,t})();class Qo{}let Jo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Yo(),t})();const Yo=function(){const t=Ae(),e=me(Te().index,t);return function(t){return t[11]}(qt(e)?e:t)};let Xo=(()=>{class t{}return t.\u0275prov=st({token:t,providedIn:"root",factory:()=>null}),t})();class ti{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ei=new ti("11.1.2");class ni{constructor(){}supports(t){return no(t)}create(t){return new si(t)}}const ri=(t,e)=>e;class si{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ri}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new oi(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new li),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new li),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class oi{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ii{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class li{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ii,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ai(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new hi(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class hi{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function di(){return new fi([new ni])}let fi=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||di()),deps:[[t,new Kn,new Gn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=st({token:t,providedIn:"root",factory:di}),t})();function pi(){return new gi([new ui])}let gi=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||pi()),deps:[[t,new Kn,new Gn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=st({token:t,providedIn:"root",factory:pi}),t})();function mi(t,e,n,r,s=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(de(o)),Wt(o))for(let t=Zt;t-1&&(dr(t,n),Pn(e,n))}this._attachedToViewContainer=!1}fr(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const s=Ts(e);s.push(r)}(0,this._lView,0,t)}markForCheck(){ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Cs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ie(!0);try{Cs(t,e,n)}finally{Ie(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Er(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class _i extends yi{constructor(t){super(t),this._view=t}detectChanges(){Es(this._view)}checkNoChanges(){!function(t){Ie(!0);try{Es(t)}finally{Ie(!1)}}(this._view)}get context(){return null}}const vi=[new ui],bi=new fi([new ni]),wi=new gi(vi),Ci=function(){return t=Te(),e=Ae(),4&t.type?new xi(e,t,Wo(t,e)):null;var t,e};let Ei=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ci,t})();const Ai=Ei,xi=class extends Ai{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Gr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Jr(e,n,t),new yi(n)}};class Ti{}const ki=function(){return function(t,e){let n;const r=e[t.index];if(Wt(r))n=r;else{let s;if(8&t.type)s=de(r);else{const n=e[11];s=n.createComment("");const r=pe(t,e);gr(n,_r(n,r),s,function(t,e){return ce(t)?t.nextSibling(e):e.nextSibling}(n,r),!1)}e[t.index]=n=ms(r,e,s,t),bs(e,n)}return new Vi(n,t,e)}(Te(),Ae())};let Si=(()=>{class t{}return t.__NG_ELEMENT_ID__=ki,t})();const Oi=Si,Vi=class extends Oi{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Wo(this._hostTNode,this._hostLView)}get injector(){return new xn(this._hostTNode,this._hostLView)}get parentInjector(){const t=pn(this._hostTNode,this._hostLView);if(sn(t)){const e=ln(t,this._hostLView),n=on(t);return new xn(e[1].data[n+8],e)}return new xn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ii(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Zt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=n||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Ti,null);t&&(s=t)}const i=t.create(o,r,void 0,s);return this.insert(i.hostView,e),i}insert(t,e){const n=t._lView,r=n[1];if(Wt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Vi(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const s=Zt+r,o=n.length;r>0&&(n[s-1][4]=e),rer});class Ri extends zo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Rr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ji(this.componentDef.inputs)}get outputs(){return ji(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const o=t.get(n,Pi,s);return o!==Pi||r===Pi?o:e.get(n,r,s)}}}(t,r.injector):t,o=s.get(Qo,he),i=s.get(Xo,null),l=o.createRenderer(null,this.componentDef),a=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(ce(t))return t.selectRootElement(e,n===vt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,n,this.componentDef.encapsulation):cr(o.createRenderer(null,this.componentDef),a,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(a)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:er,clean:xs,playerHandler:null,flags:0},d=ss(0,null,null,1,0,null,null,null,null,null),f=Gr(null,d,h,c,null,null,o,l,i,s);let p,g;Me(f);try{const t=function(t,e,n,r,s,o){const i=n[1];n[20]=t;const l=Kr(i,20,2,"#host",null),a=l.mergedAttrs=e.hostAttrs;null!==a&&(Vs(l,a,!0),null!==t&&(tn(s,t,a),null!==l.classes&&Tr(s,t,l.classes),null!==l.styles&&xr(s,t,l.styles)));const u=r.createRenderer(t,e),c=Gr(n,rs(e),null,e.onPush?64:16,n[20],l,r,u,null,null);return i.firstCreatePass&&(gn(hn(l,n),i,e.type),us(i,l),hs(l,n.length,1)),bs(n,c),n[20]=c}(u,this.componentDef,f,o,l);if(u)if(n)tn(l,u,["ng-version",ei.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&Tr(l,u,e.join(" "))}if(g=ge(d,$t),void 0!==e){const t=g.projection=[];for(let n=0;nt(i,e)),e.contentQueries){const t=Te();e.contentQueries(1,i,t.directiveStart)}const l=Te();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ze(l.index),ls(n[1],l,0,l.directiveStart,l.directiveEnd,e),as(e,i)),i}(t,this.componentDef,f,h,[Gs]),Jr(d,f,null)}finally{ze()}return new Mi(this.componentType,p,Wo(g,f),f,g)}}class Mi extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new _i(r),this.componentType=t}get injector(){return new xn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Hi=new Map;class Li extends Ti{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ni(this);const n=zt(t),r=t[It]||null;r&&No(r),this._bootstrapComponents=nr(n.bootstrap),this._r3Injector=Hs(t,e,[{provide:Ti,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],Y(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ws.THROW_IF_NOT_FOUND,n=ft.Default){return t===Ws||t===Ti||t===Is?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ui extends class{}{constructor(t){super(),this.moduleType=t,null!==zt(t)&&function(t){const e=new Set;!function t(n){const r=zt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Y(e)} vs ${Y(e.name)}`)}(s,Hi.get(s),n),Hi.set(s,n));const o=nr(r.imports);for(const i of o)e.has(i)||(e.add(i),t(i))}(t)}(t)}create(t){return new Li(this.moduleType,t)}}const Bi=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return t instanceof h&&t.add(i),i}},zi=new Vn("Application Initializer");let $i=(()=>{class t{constructor(t){this.appInits=t,this.resolve=qo,this.reject=qo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)($n(zi,8))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const Zi=new Vn("AppId"),qi={provide:Zi,useFactory:function(){return`${Wi()}${Wi()}${Wi()}`},deps:[]};function Wi(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gi=new Vn("Platform Initializer"),Ki=new Vn("Platform ID"),Qi=new Vn("appBootstrapListener");let Ji=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const Yi=new Vn("LocaleId"),Xi=new Vn("DefaultCurrencyCode");class tl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const el=function(t){return new Ui(t)},nl=el,rl=function(t){return Promise.resolve(el(t))},sl=function(t){const e=el(t),n=nr(zt(t).declarations).reduce((t,e)=>{const n=Bt(e);return n&&t.push(new Ri(n)),t},[]);return new tl(e,n)},ol=sl,il=function(t){return Promise.resolve(sl(t))};let ll=(()=>{class t{constructor(){this.compileModuleSync=nl,this.compileModuleAsync=rl,this.compileModuleAndAllComponentsSync=ol,this.compileModuleAndAllComponentsAsync=il}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const al=(()=>Promise.resolve(0))();function ul(t){"undefined"==typeof Zone?al.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class cl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bi(!1),this.onMicrotaskEmpty=new Bi(!1),this.onStable=new Bi(!1),this.onError=new Bi(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,fl(t),dl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),fl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,o,i,l)=>{try{return pl(t),n.invokeTask(s,o,i,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),gl(t)}},onInvoke:(n,r,s,o,i,l,a)=>{try{return pl(t),n.invoke(s,o,i,l,a)}finally{t.shouldCoalesceRunChangeDetection&&e(),gl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,fl(t),dl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(cl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,hl,qo,qo);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const hl={};function dl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function fl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function pl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function gl(t){t._nesting--,dl(t)}class ml{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bi,this.onMicrotaskEmpty=new Bi,this.onStable=new Bi,this.onError=new Bi}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let yl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cl.assertNotInAngularZone(),ul(()=>{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())ul(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)($n(cl))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),_l=(()=>{class t{constructor(){this._applications=new Map,wl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return wl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();class vl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let bl,wl=new vl,Cl=!0,El=!1;function Al(){return El=!0,Cl}const xl=new Vn("AllowMultipleToken");function Tl(t,e,n=[]){const r=`Platform: ${e}`,s=new Vn(r);return(e=[])=>{let o=kl();if(!o||o.injector.get(xl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ps,useValue:"platform"});!function(t){if(bl&&!bl.destroyed&&!bl.injector.get(xl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bl=t.get(Sl);const e=t.get(Gi,null);e&&e.forEach(t=>t())}(Ws.create({providers:t,name:r}))}return function(t){const e=kl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function kl(){return bl&&!bl.destroyed?bl:null}let Sl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ml:("zone.js"===t?void 0:t)||new cl({enableLongStackTrace:Al(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:cl,useValue:n}];return n.run(()=>{const e=Ws.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Xn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Il(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const r=n();return ho(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=s.injector.get($i);return t.runInitializers(),t.donePromise.then(()=>(No(s.injector.get(Yi,Do)||Do),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Ol({},e);return function(t,e,n){const r=new Ui(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Vl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${Y(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)($n(Ws))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();function Ol(t,e){return Array.isArray(e)?e.reduce(Ol,t):Object.assign(Object.assign({},t),e)}let Vl=(()=>{class t{constructor(t,e,n,r,s,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{cl.assertNotInAngularZone(),ul(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{cl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return x(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:function(t=Number.POSITIVE_INFINITY){return H(y,t)}(e)(B(t,n))}(i,l.pipe(t=>{return z()((e=K,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,W);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof zo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Ti),s=n.create(Ws.NULL,[],e||n.selector,r),o=s.location.nativeElement,i=s.injector.get(yl,null),l=i&&s.injector.get(_l);return i&&l&&l.registerApplication(o,i),s.onDestroy(()=>{this.detachView(s.hostView),Il(this.components,s),l&&l.unregisterApplication(o)}),this._loadComponent(s),Al()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Il(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Qi,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)($n(cl),$n(Ji),$n(Ws),$n(Xn),$n(Zo),$n($i))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();function Il(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Dl=Tl(null,"core",[{provide:Ki,useValue:"unknown"},{provide:Sl,deps:[Ws]},{provide:_l,deps:[]},{provide:Ji,deps:[]}]),Pl=[{provide:Vl,useClass:Vl,deps:[cl,Ji,Ws,Xn,Zo,$i]},{provide:Fi,deps:[cl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:$i,useClass:$i,deps:[[new Gn,zi]]},{provide:ll,useClass:ll,deps:[]},qi,{provide:fi,useFactory:function(){return bi},deps:[]},{provide:gi,useFactory:function(){return wi},deps:[]},{provide:Yi,useFactory:function(t){return No(t=t||"undefined"!=typeof $localize&&$localize.locale||Do),t},deps:[[new Wn(Yi),new Gn,new Kn]]},{provide:Xi,useValue:"USD"}];let Nl=(()=>{class t{constructor(t){}}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)($n(Vl))},providers:Pl}),t})(),jl=null;function Fl(){return jl}const Rl=new Vn("DocumentToken");var Ml=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Hl{}let Ll=(()=>{class t extends Hl{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Vo(e);if(n)return n;const r=e.split("-")[0];if(n=Vo(r),n)return n;if("en"===r)return So;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Io.PluralCase]}(e||this.locale)(t)){case Ml.Zero:return"zero";case Ml.One:return"one";case Ml.Two:return"two";case Ml.Few:return"few";case Ml.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)($n(Yi))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();function Ul(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class Bl{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zl=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Bl(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new $l(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new $l(t,s);e.push(o)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(oo(Si),oo(Ei),oo(fi))},t.\u0275dir=Ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class $l{constructor(t,e){this.record=t,this.view=e}}let Zl=(()=>{class t{}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[{provide:Hl,useClass:Ll}]}),t})();class ql extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new ql,jl||(jl=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Gl||(Gl=document.querySelector("base"),Gl)?Gl.getAttribute("href"):null;return null==e?null:(n=e,Wl||(Wl=document.createElement("a")),Wl.setAttribute("href",n),"/"===Wl.pathname.charAt(0)?Wl.pathname:"/"+Wl.pathname);var n}resetBaseElement(){Gl=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Ul(document.cookie,t)}}let Wl,Gl=null;const Kl=new Vn("TRANSITION_ID"),Ql=[{provide:zi,useFactory:function(t,e,n){return()=>{n.get($i).donePromise.then(()=>{const n=Fl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Kl,Rl,Ws],multi:!0}];class Jl{static init(){var t;t=new Jl,wl=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Fl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Yl=new Vn("EventManagerPlugins");let Xl=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),na=(()=>{class t extends ea{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Fl().remove(t))}}return t.\u0275fac=function(e){return new(e||t)($n(Rl))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const ra={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/"},sa=/%COMP%/g;function oa(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let la=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new aa(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case vt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ua(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case vt.ShadowDom:return new ca(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=oa(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)($n(Xl),$n(na),$n(Zi))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();class aa{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ra[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=ra[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=ra[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(rr.DashCase|rr.Important)?t.style.setProperty(e,n,r&rr.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&rr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ia(n)):this.eventManager.addEventListener(t,e,ia(n))}}class ua extends aa{constructor(t,e,n,r){super(t),this.component=n;const s=oa(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(sa,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(sa,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class ca extends aa{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=oa(r.id,r.styles,[]);for(let o=0;o{class t extends ta{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)($n(Rl))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const da=["alt","control","meta","shift"],fa={"\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"},pa={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ga={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let ma=(()=>{class t extends ta{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fl().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let o="";if(da.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&pa.hasOwnProperty(e)&&(e=pa[e]))}return fa[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),da.forEach(r=>{r!=n&&(0,ga[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)($n(Rl))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const ya=Tl(Dl,"browser",[{provide:Ki,useValue:"browser"},{provide:Gi,useValue:function(){ql.makeCurrent(),Jl.init()},multi:!0},{provide:Rl,useFactory:function(){return function(t){ue=t}(document),document},deps:[]}]),_a=[[],{provide:Ps,useValue:"root"},{provide:Xn,useFactory:function(){return new Xn},deps:[]},{provide:Yl,useClass:ha,multi:!0,deps:[Rl,cl,Ki]},{provide:Yl,useClass:ma,multi:!0,deps:[Rl]},[],{provide:la,useClass:la,deps:[Xl,na,Zi]},{provide:Qo,useExisting:la},{provide:ea,useExisting:na},{provide:na,useClass:na,deps:[Rl]},{provide:yl,useClass:yl,deps:[cl]},{provide:Xl,useClass:Xl,deps:[Yl,cl]},[]];let va=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Zi,useValue:e.appId},{provide:Kl,useExisting:Zi},Ql]}}}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)($n(t,12))},providers:_a,imports:[Zl,Nl]}),t})();function ba(t,e){return new _(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let o=0,i=0;for(let l=0;l{u||(u=!0,i++),s[l]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&u||(i===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window;const wa=new Vn("NgValueAccessor"),Ca={provide:wa,useExisting:et(()=>Ea),multi:!0};let Ea=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko))},t.\u0275dir=Ut({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&fo("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Bo([Ca])]}),t})();const Aa={provide:wa,useExisting:et(()=>Ta),multi:!0},xa=new Vn("CompositionEventMode");let Ta=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Fl()?Fl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko),oo(xa,8))},t.\u0275dir=Ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&fo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Bo([Aa])]}),t})();function ka(t){return null==t||0===t.length}function Sa(t){return null!=t&&"number"==typeof t.length}const Oa=new Vn("NgValidators"),Va=new Vn("NgAsyncValidators"),Ia=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Da{static min(t){return e=>{if(ka(e.value)||ka(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(ka(e.value)||ka(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return ka(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return ka(t.value)||Ia.test(t.value)?null:{email:!0}}static minLength(t){return e=>ka(e.value)||!Sa(e.value)?null:e.value.lengthSa(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Da.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(ka(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Pa);return 0==e.length?null:function(t){return ja(Fa(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Pa);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(a(e))return ba(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ba(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return ba(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(N(t=>e(...t)))}return ba(t,null)}(Fa(t,e).map(Na)).pipe(N(ja))}}}function Pa(t){return null!=t}function Na(t){const e=ho(t)?M(t):t;return e,e}function ja(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Fa(t,e){return e.map(e=>e(t))}function Ra(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Ma(t){return null!=t?Da.compose(Ra(t)):null}function Ha(t){return null!=t?Da.composeAsync(Ra(t)):null}function La(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Ua(t){return t._rawValidators}function Ba(t){return t._rawAsyncValidators}let za=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ma(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ha(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ut({type:t}),t})(),$a=(()=>{class t extends za{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Za(e||t)},t.\u0275dir=Ut({type:t,features:[Ks]}),t})();const Za=kn($a);class qa extends za{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Wa{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let Ga=(()=>{class t extends Wa{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(oo(qa,2))},t.\u0275dir=Ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&vo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Ks]}),t})(),Ka=(()=>{class t extends Wa{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(oo($a,10))},t.\u0275dir=Ut({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&vo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Ks]}),t})();const Qa={provide:wa,useExisting:et(()=>Ja),multi:!0};let Ja=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko))},t.\u0275dir=Ut({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&fo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Bo([Qa])]}),t})();const Ya={provide:wa,useExisting:et(()=>tu),multi:!0};let Xa=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),tu=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(qa),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko),oo(Xa),oo(Ws))},t.\u0275dir=Ut({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&fo("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Bo([Ya])]}),t})();const eu={provide:wa,useExisting:et(()=>nu),multi:!0};let nu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko))},t.\u0275dir=Ut({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&fo("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Bo([eu])]}),t})();const ru={provide:wa,useExisting:et(()=>su),multi:!0};let su=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(oo(Jo),oo(Ko))},t.\u0275dir=Ut({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&fo("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Bo([ru])]}),t})();const ou={provide:wa,useExisting:et(()=>iu),multi:!0};let iu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&du(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&du(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function au(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),hu(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function uu(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function cu(t,e,n){const r=Ua(t);null!==e.validator?t.setValidators(La(r,e.validator)):"function"==typeof r&&t.setValidators([r]);const s=Ba(t);if(null!==e.asyncValidator?t.setAsyncValidators(La(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();uu(e._rawValidators,n),uu(e._rawAsyncValidators,n)}}function hu(t,e,n){let r=!1;if(null!==t){if(null!==e.validator){const n=Ua(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(r=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=Ba(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(r=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};uu(e._rawValidators,t),uu(e._rawAsyncValidators,t)}return r}function du(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const fu=[Ea,nu,Ja,su,iu,tu];function pu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const gu="VALID",mu="INVALID",yu="PENDING",_u="DISABLED";function vu(t){return(Eu(t)?t.validators:t)||null}function bu(t){return Array.isArray(t)?Ma(t):t||null}function wu(t,e){return(Eu(e)?e.asyncValidators:t)||null}function Cu(t){return Array.isArray(t)?Ha(t):t||null}function Eu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Au{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=bu(this._rawValidators),this._composedAsyncValidatorFn=Cu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===gu}get invalid(){return this.status===mu}get pending(){return this.status==yu}get disabled(){return this.status===_u}get enabled(){return this.status!==_u}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=bu(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Cu(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=yu,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=_u,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=gu,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==gu&&this.status!==yu||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_u:gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=yu,this._hasOwnPendingAsyncValidator=!0;const e=Na(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Tu?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof ku&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Bi,this.statusChanges=new Bi}_calculateStatus(){return this._allControlsDisabled()?_u:this.errors?mu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yu)?yu:this._anyControlsHaveStatus(mu)?mu:gu}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Eu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class xu extends Au{constructor(t=null,e,n){super(vu(e),wu(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){pu(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){pu(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Tu extends Au{constructor(t,e,n){super(vu(e),wu(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof xu?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ku extends Au{constructor(t,e,n){super(vu(e),wu(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof xu?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let Su=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ut({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ou=new Vn("NgModelWithFormControlWarning"),Vu={provide:$a,useExisting:et(()=>Iu)};let Iu=(()=>{class t extends $a{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Bi,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hu(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return lu(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){au(t.control||null,t,!1),pu(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(au(t.control||null,t),e&&lu(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){cu(t,e,!1)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return hu(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){cu(this.form,this,!1),this._oldForm&&hu(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(oo(Oa,10),oo(Va,10))},t.\u0275dir=Ut({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&fo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Bo([Vu]),Ks,se]}),t})();const Du={provide:qa,useExisting:et(()=>Pu)};let Pu=(()=>{class t extends qa{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Bi,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,r,s;return Array.isArray(e),e.forEach(t=>{var e;t.constructor===Ta?n=t:(e=t,fu.some(t=>e.constructor===t)?r=t:s=t)}),s||r||n||null}(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return t=null==this.name?this.name:this.name.toString(),[...this._parent.path,t];var t}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(oo($a,13),oo(Oa,10),oo(Va,10),oo(wa,10),oo(Ou,8))},t.\u0275dir=Ut({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Bo([Du]),Ks,se]}),t._ngModelWarningSentOnce=!1,t})(),Nu=(()=>{class t{}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)}}),t})(),ju=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Tu(n,{asyncValidators:o,updateOn:r,validators:s})}control(t,e,n){return new xu(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new ku(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof xu||t instanceof Tu||t instanceof ku?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),Fu=(()=>{class t{}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[Xa],imports:[Nu]}),t})(),Ru=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ou,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[ju,Xa],imports:[Nu]}),t})();class Mu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Hu(t,this.predicate,this.thisArg))}}class Hu extends p{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Lu{}class Uu{}class Bu{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Bu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Bu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Bu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class zu{encodeKey(t){return $u(t)}encodeValue(t){return $u(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function $u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Zu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new zu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],i=n.get(s)||[];i.push(o),n.set(s,i)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Zu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function qu(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Wu(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Gu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Ku{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Bu),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(a=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),a)),new Ku(e,n,s,{params:a,headers:l,reportProgress:i,responseType:r,withCredentials:o})}}var Qu=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Ju{constructor(t,e=200,n="OK"){this.headers=t.headers||new Bu,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Yu extends Ju{constructor(t={}){super(t),this.type=Qu.ResponseHeader}clone(t={}){return new Yu({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Xu extends Ju{constructor(t={}){super(t),this.type=Qu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Xu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class tc extends Ju{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function ec(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let nc=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof Ku)r=t;else{let s,o;s=n.headers instanceof Bu?n.headers:new Bu(n.headers),n.params&&(o=n.params instanceof Zu?n.params:new Zu({fromObject:n.params})),r=new Ku(t,e,void 0!==n.body?n.body:null,{headers:s,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=function(...t){let e=t[t.length-1];return x(e)?(t.pop(),R(t,e)):B(t)}(r).pipe(H(t=>this.handler.handle(t),void 0,1));if(t instanceof Ku||"events"===n.observe)return s;const o=s.pipe((i=t=>t instanceof Xu,function(t){return t.lift(new Mu(i,void 0))}));var i;switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(N(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(N(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(N(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Zu).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,ec(n,e))}post(t,e,n={}){return this.request("POST",t,ec(n,e))}put(t,e,n={}){return this.request("PUT",t,ec(n,e))}}return t.\u0275fac=function(e){return new(e||t)($n(Lu))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();class rc{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const sc=new Vn("HTTP_INTERCEPTORS");let oc=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const ic=/^\)\]\}',?\n/;class lc{}let ac=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),uc=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new Bu(n.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Yu({headers:o,status:e,statusText:r,url:i}),s},i=()=>{let{headers:r,status:s,statusText:i,url:l}=o(),a=null;204!==s&&(a=void 0===n.response?n.responseText:n.response),0===s&&(s=a?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof a){const t=a;a=a.replace(ic,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=t,u&&(u=!1,a={error:c,text:a})}}u?(e.next(new Xu({body:a,headers:r,status:s,statusText:i,url:l||void 0})),e.complete()):e.error(new tc({error:a,headers:r,status:s,statusText:i,url:l||void 0}))},l=t=>{const{url:r}=o(),s=new tc({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let a=!1;const u=r=>{a||(e.next(o()),a=!0);let s={type:Qu.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},c=t=>{let n={type:Qu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",i),n.addEventListener("error",l),t.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),e.next({type:Qu.Sent}),()=>{n.removeEventListener("error",l),n.removeEventListener("load",i),t.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)($n(lc))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();const cc=new Vn("XSRF_COOKIE_NAME"),hc=new Vn("XSRF_HEADER_NAME");class dc{}let fc=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ul(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)($n(Rl),$n(Ki),$n(cc))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),pc=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)($n(dc),$n(hc))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),gc=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(sc,[]);this.chain=t.reduceRight((t,e)=>new rc(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)($n(Uu),$n(Ws))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})(),mc=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:pc,useClass:oc}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:cc,useValue:e.cookieName}:[],e.headerName?{provide:hc,useValue:e.headerName}:[]]}}}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[pc,{provide:sc,useExisting:pc,multi:!0},{provide:dc,useClass:fc},{provide:cc,useValue:"XSRF-TOKEN"},{provide:hc,useValue:"X-XSRF-TOKEN"}]}),t})(),yc=(()=>{class t{}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[nc,{provide:Lu,useClass:gc},uc,{provide:Uu,useExisting:uc},ac,{provide:lc,useExisting:ac}],imports:[[mc.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const _c=new Vn("basePath");class vc{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials}selectHeaderContentType(t){if(0==t.length)return;let e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0==t.length)return;let e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!=t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let bc=(()=>{class t{constructor(t,e,n){this.httpClient=t,this.basePath="/",this.defaultHeaders=new Bu({Authorization:"Basic "+btoa("admin:admin")}),this.configuration=new vc,e&&(this.basePath=e),n&&(this.configuration=n,this.basePath=e||n.basePath||this.basePath)}canConsumeForm(t){for(const e of t)if("multipart/form-data"===e)return!0;return!1}deleteUsingDELETE(t,e="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteUsingDELETE.");let r=this.defaultHeaders;this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization));const s=this.configuration.selectHeaderAccept(["*/*"]);return null!=s&&(r=r.set("Accept",s)),this.httpClient.delete(`${this.basePath}/billing/${encodeURIComponent(String(t))}`,{withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:n})}getUsingGET(t,e="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUsingGET.");let r=this.defaultHeaders;this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization));const s=this.configuration.selectHeaderAccept(["*/*"]);return null!=s&&(r=r.set("Accept",s)),this.httpClient.get(`${this.basePath}/billing/${encodeURIComponent(String(t))}`,{withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:n})}listUsingGET(t="body",e=!1){let n=this.defaultHeaders;this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization));const r=this.configuration.selectHeaderAccept(["*/*"]);return null!=r&&(n=n.set("Accept",r)),this.httpClient.get(`${this.basePath}/billing`,{withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:e})}postUsingPOST(t,e="body",n=!1){if(null==t)throw new Error("Required parameter input was null or undefined when calling postUsingPOST.");let r=this.defaultHeaders;this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization));const s=this.configuration.selectHeaderAccept(["*/*"]);null!=s&&(r=r.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return null!=o&&(r=r.set("Content-Type",o)),this.httpClient.post(`${this.basePath}/billing`,t,{withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:n})}putUsingPUT(t,e,n="body",r=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling putUsingPUT.");if(null==e)throw new Error("Required parameter input was null or undefined when calling putUsingPUT.");let s=this.defaultHeaders;this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization));const o=this.configuration.selectHeaderAccept(["*/*"]);null!=o&&(s=s.set("Accept",o));const i=this.configuration.selectHeaderContentType(["application/json"]);return null!=i&&(s=s.set("Content-Type",i)),this.httpClient.put(`${this.basePath}/billing/${encodeURIComponent(String(t))}`,e,{withCredentials:this.configuration.withCredentials,headers:s,observe:n,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)($n(nc),$n(_c,8),$n(vc,8))},t.\u0275prov=st({token:t,factory:t.\u0275fac}),t})();function wc(t,e){if(1&t&&(ao(0,"tr"),ao(1,"th"),Ao(2),uo(),ao(3,"td"),Ao(4),uo(),ao(5,"td"),Ao(6),uo(),ao(7,"td"),Ao(8),uo(),uo()),2&t){const t=e.$implicit;Hr(2),xo(t.number),Hr(2),xo(t.customer),Hr(2),xo(t.detail),Hr(2),xo(t.amount)}}let Cc=(()=>{class t{constructor(t,e){this.formBuilder=t,this.billingService=e,this.title="billingApp"}ngOnInit(){this.billingForm=this.formBuilder.group({number:new xu(""),customer:new xu(""),amount:new xu(""),detail:new xu("")}),this.billingService.listUsingGET().subscribe(t=>{console.log(t),this.bills=t})}get f(){return this.billingForm.controls}onSubmit(){let t={number:this.f.number.value,customer:this.f.customer.value,amount:this.f.amount.value,detail:this.f.detail.value};console.log("Your form data : ",t),this.billingService.postUsingPOST(t).subscribe(t=>{console.log(t),this.ngOnInit()},t=>{console.log(t.error.mensaje)})}}return t.\u0275fac=function(e){return new(e||t)(oo(ju),oo(bc))},t.\u0275cmp=jt({type:t,selectors:[["app-root"]],decls:32,vars:2,consts:[[1,"container",2,"margin-top","70px"],[1,"invoice"],[1,"invoice-header"],[1,"invoice-body"],[3,"formGroup","ngSubmit"],[1,"form-group"],["type","text","formControlName","number","placeholder","N\xfamero",1,"form-control"],["type","text","formControlName","customer","placeholder","Cliente",1,"form-control"],["type","text","formControlName","detail","placeholder","Detalle",1,"form-control"],["type","text","formControlName","amount","placeholder","Monto",1,"form-control"],[1,"btn","btn-primary"],[1,"table","table-hover"],[1,"black","white-text"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(ao(0,"div",0),ao(1,"div",1),ao(2,"h4",2),Ao(3,"Datos de la factura"),uo(),ao(4,"div",3),ao(5,"form",4),fo("ngSubmit",function(){return e.onSubmit()}),ao(6,"div",5),co(7,"input",6),uo(),ao(8,"div",5),co(9,"input",7),uo(),ao(10,"div",5),co(11,"input",8),uo(),ao(12,"div",5),co(13,"input",9),uo(),ao(14,"button",10),Ao(15," Crear "),uo(),uo(),uo(),uo(),ao(16,"div"),ao(17,"h1"),Ao(18,"Listado de facturas"),uo(),ao(19,"table",11),ao(20,"thead",12),ao(21,"tr"),ao(22,"th"),Ao(23,"N\xfamero"),uo(),ao(24,"th"),Ao(25,"Cliente"),uo(),ao(26,"th"),Ao(27,"Detalle"),uo(),ao(28,"th"),Ao(29,"Monto"),uo(),uo(),uo(),ao(30,"tbody"),function(t,e,n,r,s,o,i,l){const a=Ae(),u=xe(),c=u.firstCreatePass?function(t,e,n,r,s,o,i,l,a){const u=e.consts,c=Kr(e,51,4,"tr",ve(u,13));is(e,n,c,ve(u,undefined)),qe(e,c);const h=c.tViews=ss(2,c,r,9,4,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),h.queries=e.queries.embeddedTView(c)),c}(0,u,a,e):u.data[51];Se(c,!1);const h=a[11].createComment("");vr(u,a,h,c),tr(h,a),bs(a,a[51]=ms(h,a,h,c)),Qt(c)&&es(u,a,c)}(0,wc),uo(),uo(),uo(),uo()),2&t&&(Hr(5),io("formGroup",e.billingForm),Hr(26),io("ngForOf",e.bills))},directives:[Su,Ka,Iu,Ta,Ga,Pu,zl],styles:[""]}),t})(),Ec=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:t,providers:[{provide:vc,useFactory:e}]}}}return t.\u0275mod=Ht({type:t}),t.\u0275inj=ot({factory:function(e){return new(e||t)($n(t,12),$n(nc,8))},providers:[bc],imports:[[]]}),t})(),Ac=(()=>{class t{}return t.\u0275mod=Ht({type:t,bootstrap:[Cc]}),t.\u0275inj=ot({factory:function(e){return new(e||t)},providers:[{provide:_c,useValue:"http://localhost:8080"}],imports:[[va,yc,Ec,Fu,Ru]]}),t})();(function(){if(El)throw new Error("Cannot enable prod mode after platform setup.");Cl=!1})(),ya().bootstrapModule(Ac).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);