text: (self.webpackChunkng_defer_form_value_changes=self.webpackChunkng_defer_form_value_changes||[]).push([[179],{255:uo=>{function pn(lo){return Promise.resolve().then(()=>{var gn=new Error("Cannot find module '"+lo+"'");throw gn.code="MODULE_NOT_FOUND",gn})}pn.keys=()=>[],pn.resolve=pn,pn.id=255,uo.exports=pn},373:(uo,pn,lo)=>{"use strict";function gn(e){return"function"==typeof e}let Aa=!1;const Et={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Aa&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Aa=e},get useDeprecatedSynchronousErrorHandling(){return Aa}};function rr(e){setTimeout(()=>{throw e},0)}const Mi={closed:!0,next(e){},error(e){if(Et.useDeprecatedSynchronousErrorHandling)throw e;rr(e)},complete(){}},Ta=Array.isArray||(e=>e&&"number"==typeof e.length);function Sa(e){return null!==e&&"object"==typeof e}const Ii=(()=>{function e(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e})();class de{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof de)n.remove(this);else if(null!==n)for(let s=0;s<n.length;++s)n[s].remove(this);if(gn(o)){r&&(this._unsubscribe=void 0);try{o.call(this)}catch(s){t=s instanceof Ii?Ed(s.errors):[s]}}if(Ta(i)){let s=-1,a=i.length;for(;++s<a;){const u=i[s];if(Sa(u))try{u.unsubscribe()}catch(l){t=t||[],l instanceof Ii?t=t.concat(Ed(l.errors)):t.push(l)}}}if(t)throw new Ii(t)}add(t){let n=t;if(!t)return de.EMPTY;switch(typeof t){case"function":n=new de(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof de)){const i=n;n=new de,n._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof de){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}remove(t){const n=this._subscriptions;if(n){const r=n.indexOf(t);-1!==r&&n.splice(r,1)}}}var e;function Ed(e){return e.reduce((t,n)=>t.concat(n instanceof Ii?n.errors:n),[])}de.EMPTY=((e=new de).closed=!0,e);const Ai="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ke extends de{constructor(t,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Mi;break;case 1:if(!t){this.destination=Mi;break}if("object"==typeof t){t instanceof Ke?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new vd(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new vd(this,t,n,r)}}[Ai](){return this}static create(t,n,r){const o=new Ke(t,n,r);return o.syncErrorThrowable=!1,o}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 vd extends Ke{constructor(t,n,r,o){super(),this._parentSubscriber=t;let i,s=this;gn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Mi&&(s=Object.create(n),gn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Et.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Et;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):rr(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;rr(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const n=()=>this._complete.call(this._context);Et.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,n){try{t.call(this._context,n)}catch(r){if(this.unsubscribe(),Et.useDeprecatedSynchronousErrorHandling)throw r;rr(r)}}__tryOrSetError(t,n,r){if(!Et.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Et.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(rr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const co="function"==typeof Symbol&&Symbol.observable||"@@observable";function bd(e){return e}let be=(()=>{class e{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof Ke)return e;if(e[Ai])return e[Ai]()}return e||t||n?new Ke(e,t,n):new Ke(Mi)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Et.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Et.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Et.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof Ke?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=Md(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[co](){return this}pipe(...n){return 0===n.length?this:function(e){return 0===e.length?bd:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Md(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Md(e){if(e||(e=Et.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const fo=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class eC extends de{constructor(t,n){super(),this.subject=t,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,n=t.observers;if(this.subject=null,!n||0===n.length||t.isStopped||t.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Id extends Ke{constructor(t){super(t),this.destination=t}}let Na=(()=>{class e extends be{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ai](){return new Id(this)}lift(n){const r=new Ad(this,this);return r.operator=n,r}next(n){if(this.closed)throw new fo;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].next(n)}}error(n){if(this.closed)throw new fo;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;s<o;s++)i[s].error(n);this.observers.length=0}complete(){if(this.closed)throw new fo;this.isStopped=!0;const{observers:n}=this,r=n.length,o=n.slice();for(let i=0;i<r;i++)o[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new fo;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new fo;return this.hasError?(n.error(this.thrownError),de.EMPTY):this.isStopped?(n.complete(),de.EMPTY):(this.observers.push(n),new eC(this,n))}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Ad(t,n),e})();class Ad extends Na{constructor(t,n){super(),this.destination=t,this.source=n}next(t){const{destination:n}=this;n&&n.next&&n.next(t)}error(t){const{destination:n}=this;n&&n.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:n}=this;return n?this.source.subscribe(t):de.EMPTY}}function xa(e){return e&&"function"==typeof e.schedule}function ho(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new tC(e,t))}}class tC{constructor(t,n){this.project=t,this.thisArg=n}call(t,n){return n.subscribe(new nC(t,this.project,this.thisArg))}}class nC extends Ke{constructor(t,n,r){super(t),this.project=n,this.count=0,this.thisArg=r||this}_next(t){let n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const Td=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()},Ti="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Sd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Nd(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const xd=e=>{if(e&&"function"==typeof e[co])return(e=>t=>{const n=e[co]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(Sd(e))return Td(e);if(Nd(e))return(e=>t=>(e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,rr),t))(e);if(e&&"function"==typeof e[Ti])return(e=>t=>{const n=e[Ti]();for(;;){let r;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const n=`You provided ${Sa(e)?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Fa(e,t){return new be(n=>{const r=new de;let o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Si(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[co]}(e))return function(e,t){return new be(n=>{const r=new de;return r.add(t.schedule(()=>{const o=e[co]();r.add(o.subscribe({next(i){r.add(t.schedule(()=>n.next(i)))},error(i){r.add(t.schedule(()=>n.error(i)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Nd(e))return function(e,t){return new be(n=>{const r=new de;return r.add(t.schedule(()=>e.then(o=>{r.add(t.schedule(()=>{n.next(o),r.add(t.schedule(()=>n.complete()))}))},o=>{r.add(t.schedule(()=>n.error(o)))}))),r})}(e,t);if(Sd(e))return Fa(e,t);if(function(e){return e&&"function"==typeof e[Ti]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{const r=new de;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[Ti](),r.add(t.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof be?e:new be(xd(e))}class hC extends Ke{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class pC extends Ke{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Fd(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Fd((o,i)=>Si(e(o,i)).pipe(ho((s,a)=>t(o,s,i,a))),n)):("number"==typeof t&&(n=t),r=>r.lift(new mC(e,n)))}class mC{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new yC(t,this.project,this.concurrent))}}class yC extends pC{constructor(t,n,r=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let n;const r=this.index++;try{n=this.project(t,r)}catch(o){return void this.destination.error(o)}this.active++,this._innerSub(n)}_innerSub(t){const n=new hC(this),r=this.destination;r.add(n);const o=function(e,t){if(t.closed)return;if(e instanceof be)return e.subscribe(t);let n;try{n=xd(e)(t)}catch(r){t.error(r)}return n}(t,n);o!==n&&r.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Rd(e=Number.POSITIVE_INFINITY){return Fd(bd,e)}function Pd(e,t){return t?Fa(e,t):new be(Td(e))}function Vd(){return function(t){return t.lift(new DC(t))}}class DC{constructor(t){this.connectable=t}call(t,n){const{connectable:r}=this;r._refCount++;const o=new CC(t,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class CC extends Ke{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=t._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class EC extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,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 de,t.add(this.source.subscribe(new bC(this.getSubject(),this))),t.closed&&(this._connection=null,t=de.EMPTY)),t}refCount(){return Vd()(this)}}const vC=(()=>{const e=EC.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class bC extends Id{constructor(t,n){super(t),this.connectable=n}_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 n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}function AC(){return new Na}function G(e){for(let t in e)if(e[t]===G)return t;throw Error("Could not find renamed property on target object.")}function Ra(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function k(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Pa(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const SC=G({__forward_ref__:G});function J(e){return e.__forward_ref__=J,e.toString=function(){return k(this())},e}function w(e){return Od(e)?e():e}function Od(e){return"function"==typeof e&&e.hasOwnProperty(SC)&&e.__forward_ref__===J}class Pn extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function P(e){return"string"==typeof e?e:null==e?"":String(e)}function Oe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():P(e)}function Ni(e,t){const n=t?` in ${t}`:"";throw new Pn("201",`No provider for ${Oe(e)} found${n}`)}function Ze(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function tn(e){return kd(e,xi)||kd(e,Bd)}function kd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ld(e){return e&&(e.hasOwnProperty(Oa)||e.hasOwnProperty(OC))?e[Oa]:null}const xi=G({\u0275prov:G}),Oa=G({\u0275inj:G}),Bd=G({ngInjectableDef:G}),OC=G({ngInjectorDef:G});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let ka;function mn(e){const t=ka;return ka=e,t}function jd(e,t,n){const r=tn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==t?t:void Ni(k(e),"Injector")}function yn(e){return{toString:e}.toString()}var at=(()=>((at=at||{})[at.OnPush=0]="OnPush",at[at.Default=1]="Default",at))(),ye=(()=>((ye=ye||{})[ye.Emulated=0]="Emulated",ye[ye.None=2]="None",ye[ye.ShadowDom=3]="ShadowDom",ye))();const LC="undefined"!=typeof globalThis&&globalThis,BC="undefined"!=typeof window&&window,jC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,HC="undefined"!=typeof global&&global,W=LC||HC||BC||jC,or={},z=[],Fi=G({\u0275cmp:G}),La=G({\u0275dir:G}),Ba=G({\u0275pipe:G}),Hd=G({\u0275mod:G}),$C=G({\u0275loc:G}),nn=G({\u0275fac:G}),po=G({__NG_ELEMENT_ID__:G});let UC=0;function ja(e){return yn(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===at.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||z,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ye.Emulated,id:"c",styles:e.styles||z,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,s=e.pipes;return r.id+=UC++,r.inputs=Wd(e.inputs,n),r.outputs=Wd(e.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map($d):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ud):null,r})}function $d(e){return ke(e)||function(e){return e[La]||null}(e)}function Ud(e){return function(e){return e[Ba]||null}(e)}const Gd={};function rn(e){return yn(()=>{const t={type:e.type,bootstrap:e.bootstrap||z,declarations:e.declarations||z,imports:e.imports||z,exports:e.exports||z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Gd[e.id]=e.type),t})}function Wd(e,t){if(null==e)return or;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const S=ja;function qe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ke(e){return e[Fi]||null}function ut(e,t){const n=e[Hd]||null;if(!n&&!0===t)throw new Error(`Type ${k(e)} does not have '\u0275mod' property.`);return n}const V=11,X=20;function Bt(e){return Array.isArray(e)&&"object"==typeof e[1]}function wt(e){return Array.isArray(e)&&!0===e[1]}function Ua(e){return 0!=(8&e.flags)}function Oi(e){return 2==(2&e.flags)}function ki(e){return 1==(1&e.flags)}function Mt(e){return null!==e.template}function YC(e){return 0!=(512&e[2])}function Bn(e,t){return e.hasOwnProperty(nn)?e[nn]:null}class Qd{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Xe(){return zd}function zd(e){return e.type.prototype.ngOnChanges&&(e.setInput=eE),XC}function XC(){const e=Yd(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===or)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function eE(e,t,n,r){const o=Yd(e)||function(e,t){return e[Kd]=t}(e,{previous:or,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new Qd(u&&u.currentValue,t,s===or),e[r]=t}Xe.ngInherit=!0;const Kd="__ngSimpleChanges__";function Yd(e){return e[Kd]||null}let qa;function ue(e){return!!e.listen}const Xd={createRenderer:(e,t)=>void 0!==qa?qa:"undefined"!=typeof document?document:void 0};function pe(e){for(;Array.isArray(e);)e=e[0];return e}function Li(e,t){return pe(t[e])}function dt(e,t){return pe(t[e.index])}function za(e,t){return e.data[t]}function et(e,t){const n=t[e];return Bt(n)?n:n[0]}function Ka(e){return 128==(128&e[2])}function Dn(e,t){return null==t?null:e[t]}function tf(e){e[18]=0}function Ya(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const N={lFrame:cf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nf(){return N.bindingsEnabled}function _(){return N.lFrame.lView}function $(){return N.lFrame.tView}function _e(){let e=rf();for(;null!==e&&64===e.type;)e=e.parent;return e}function rf(){return N.lFrame.currentTNode}function jt(e,t){const n=N.lFrame;n.currentTNode=e,n.isParent=t}function Za(){return N.lFrame.isParent}function Bi(){return N.isInCheckNoChangesMode}function ji(e){N.isInCheckNoChangesMode=e}function cr(){return N.lFrame.bindingIndex++}function mE(e,t){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xa(t)}function Xa(e){N.lFrame.currentDirectiveIndex=e}function tu(e){N.lFrame.currentQueryIndex=e}function _E(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function uf(e,t,n){if(n&A.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&A.Host||(o=_E(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=N.lFrame=lf();return r.currentTNode=t,r.lView=e,!0}function Hi(e){const t=lf(),n=e[1];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lf(){const e=N.lFrame,t=null===e?null:e.child;return null===t?cf(e):t}function cf(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function df(){const e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ff=df;function $i(){const e=df();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Be(){return N.lFrame.selectedIndex}function Cn(e){N.lFrame.selectedIndex=e}function Ui(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks||(e.viewHooks=[])).push(-n,u),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Gi(e,t,n){hf(e,t,3,n)}function Wi(e,t,n,r){(3&e[2])===n&&hf(e,t,n,r)}function nu(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function hf(e,t,n,r){const i=null!=r?r:-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[18]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[18]+=65536),(a<i||-1==i)&&(AE(e,n,t,u),e[18]=(4294901760&e[18])+u+2),u++}function AE(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class Do{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function qi(e,t,n){const r=ue(e);let o=0;for(;o<n.length;){const i=n[o];if("number"==typeof i){if(0!==i)break;o++;const s=n[o++],a=n[o++],u=n[o++];r?e.setAttribute(t,a,u,s):t.setAttributeNS(s,a,u)}else{const s=i,a=n[++o];ou(s)?r&&e.setProperty(t,s,a):r?e.setAttribute(t,s,a):t.setAttribute(s,a),o++}}return o}function pf(e){return 3===e||4===e||6===e}function ou(e){return 64===e.charCodeAt(0)}function Qi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||gf(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function gf(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}function mf(e){return-1!==e}function dr(e){return 32767&e}function fr(e,t){let n=function(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let iu=!0;function zi(e){const t=iu;return iu=e,t}let RE=0;function Eo(e,t){const n=au(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,su(r.data,e),su(t,null),su(r.blueprint,null));const o=Ki(e,t),i=e.injectorIndex;if(mf(o)){const s=dr(o),a=fr(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function su(e,t){e.push(0,0,0,0,0,0,0,0,t)}function au(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ki(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Yi(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(po)&&(r=n[po]),null==r&&(r=n[po]=RE++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Df(e,t,n){if(n&A.Optional)return e;Ni(t,"NodeInjector")}function Cf(e,t,n,r){if(n&A.Optional&&void 0===r&&(r=null),0==(n&(A.Self|A.Host))){const o=e[9],i=mn(void 0);try{return o?o.get(t,r,n&A.Optional):jd(t,r,n&A.Optional)}finally{mn(i)}}return Df(r,t,n)}function Ef(e,t,n,r=A.Default,o){if(null!==e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(po)?e[po]:void 0;return"number"==typeof t?t>=0?255&t:OE:t}(n);if("function"==typeof i){if(!uf(t,e,r))return r&A.Host?Df(o,n,r):Cf(t,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;Ni(n)}finally{ff()}}else if("number"==typeof i){let s=null,a=au(e,t),u=-1,l=r&A.Host?t[16][6]:null;for((-1===a||r&A.SkipSelf)&&(u=-1===a?Ki(e,t):t[a+8],-1!==u&&wf(r,!1)?(s=t[1],a=dr(u),t=fr(u,t)):a=-1);-1!==a;){const c=t[1];if(bf(i,a,c.data)){const d=kE(a,t,n,s,r,l);if(d!==vf)return d}u=t[a+8],-1!==u&&wf(r,t[1].data[a+8]===l)&&bf(i,a,t)?(s=c,a=dr(u),t=fr(u,t)):a=-1}}}return Cf(t,n,r,o)}const vf={};function OE(){return new hr(_e(),_())}function kE(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Mt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Oi(a)&&iu:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==c?vo(t,s,c,a):vf}function vo(e,t,n,r){let o=e[n];const i=t.data;if(function(e){return e instanceof Do}(o)){const s=o;s.resolving&&function(e,t){throw new Pn("200",`Circular dependency in DI detected for ${e}`)}(Oe(i[n]));const a=zi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?mn(s.injectImpl):null;uf(e,r,A.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=zd(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&mn(u),zi(a),s.resolving=!1,ff()}}return o}function bf(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function wf(e,t){return!(e&A.Self||e&A.Host&&t)}class hr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n){return Ef(this._tNode,this._lView,t,void 0,n)}}function ft(e){return yn(()=>{const t=e.prototype.constructor,n=t[nn]||uu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[nn]||uu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function uu(e){return Od(e)?()=>{const t=uu(w(e));return t&&t()}:Bn(e)}const gr="__parameters__";function jn(e,t,n){return yn(()=>{const r=function(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(gr)?u[gr]:Object.defineProperty(u,gr,{value:[]})[gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class U{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function $t(e,t){e.forEach(n=>Array.isArray(n)?$t(n,t):t(n))}function Xi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function tt(e,t,n){let r=yr(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function fu(e,t){const n=yr(e,t);if(n>=0)return e[1|n]}function yr(e,t){return function(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Io={},pu="__NG_DI_FLAG__",_r="ngTempTokenPath",YE=/\n/gm,gu="__source",mu=G({provide:String,useValue:G});let Ao;function Dr(e){const t=Ao;return Ao=e,t}function JE(e,t=A.Default){if(void 0===Ao)throw new Error("inject() must be called from an injection context");return null===Ao?jd(e,void 0,t):Ao.get(e,t&A.Optional?null:void 0,t)}function H(e,t=A.Default){return(ka||JE)(w(e),t)}function $n(e){const t=[];for(let n=0;n<e.length;n++){const r=w(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,i=A.Default;for(let s=0;s<r.length;s++){const a=r[s],u=XE(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(H(o,i))}else t.push(H(r))}return t}function To(e,t){return e[pu]=t,e.prototype[pu]=t,e}function XE(e){return e[pu]}function Nf(e,t,n,r){const o=e[_r];throw t[gu]&&o.unshift(t[gu]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=k(t);if(Array.isArray(t))o=t.map(k).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):k(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(YE,"\n  ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[_r]=null,e}const So=To(jn("Inject",e=>({token:e})),-1),Ut=To(jn("Optional"),8),Un=To(jn("SkipSelf"),4);const Yf="__ngContext__";function Se(e,t){e[Yf]=t}function Mu(e){const t=function(e){return e[Yf]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ss(e){return e.ngOriginalError}function qv(e,...t){e.error(...t)}class Wn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),o=function(e){return e&&e.ngErrorLogger||qv}(t);o(this._console,"ERROR",t),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?function(e){return e.ngDebugContext}(t)||this._findContext(ss(t)):null}_findOriginalError(t){let n=t&&ss(t);for(;n&&ss(n);)n=ss(n);return n||null}}const ih=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(W))();function qt(e){return e instanceof Function?e():e}var rt=(()=>((rt=rt||{})[rt.Important=1]="Important",rt[rt.DashCase=2]="DashCase",rt))();function Tu(e,t){return undefined(e,t)}function Vo(e){const t=e[3];return wt(t)?t[3]:t}function Su(e){return ch(e[13])}function Nu(e){return ch(e[4])}function ch(e){for(;null!==e&&!wt(e);)e=e[4];return e}function br(e,t,n,r,o){if(null!=r){let i,s=!1;wt(r)?i=r:Bt(r)&&(s=!0,r=r[0]);const a=pe(r);0===e&&null!==n?null==o?mh(t,n,a):qn(t,n,a,o||null,!0):1===e&&null!==n?qn(t,n,a,o||null,!0):2===e?function(e,t,n){const r=us(e,t);r&&function(e,t,n,r){ue(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,o){const i=n[7];i!==pe(n)&&br(t,e,r,i,o);for(let a=10;a<n.length;a++){const u=n[a];Oo(u[1],u,e,t,r,i)}}(t,e,i,n,o)}}function Fu(e,t,n){return ue(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function fh(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,Ya(o,-1)),n.splice(r,1)}function Ru(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&fh(o,r),t>0&&(e[n-1][4]=r[4]);const i=Hn(e,10+t);!function(e,t){Oo(e,t,t[V],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function hh(e,t){if(!(256&t[2])){const n=t[V];ue(n)&&n.destroyNode&&Oo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Pu(e[1],e);for(;t;){let n=null;if(Bt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Bt(t)&&Pu(t[1],t),t=t[3];null===t&&(t=e),Bt(t)&&Pu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Do)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];try{u.call(a)}finally{}}else try{i.call(o)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],a="function"==typeof s?s(t):pe(t[s]),u=r[o=n[i+2]],l=n[i+3];"boolean"==typeof l?a.removeEventListener(n[i],u,l):l>=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&ue(t[V])&&t[V].destroy();const n=t[17];if(null!==n&&wt(t[3])){n!==t[3]&&fh(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function ph(e,t,n){return function(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===ye.None||o===ye.Emulated)return null}return dt(r,n)}(e,t.parent,n)}function qn(e,t,n,r,o){ue(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function mh(e,t,n){ue(e)?e.appendChild(t,n):t.appendChild(n)}function yh(e,t,n,r,o){null!==r?qn(e,t,n,r,o):mh(e,t,n)}function us(e,t){return ue(e)?e.parentNode(t):t.parentNode}let Ch=function(e,t,n){return 40&e.type?dt(e,n):null};function ls(e,t,n,r){const o=ph(e,r,t),i=t[V],a=function(e,t,n){return Ch(e,t,n)}(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)yh(i,o,n[u],a,!1);else yh(i,o,n,a,!1)}function cs(e,t){if(null!==t){const n=t.type;if(3&n)return dt(t,e);if(4&n)return Ou(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return cs(e,r);{const o=e[t.index];return wt(o)?Ou(-1,o):pe(o)}}if(32&n)return Tu(t,e)()||pe(e[t.index]);{const r=vh(e,t);return null!==r?Array.isArray(r)?r[0]:cs(Vo(e[16]),r):cs(e,t.next)}}return null}function vh(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ou(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return cs(r,o)}return t[7]}function ku(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&Se(pe(a),r),n.flags|=4),64!=(64&n.flags))if(8&u)ku(e,t,n.child,r,o,i,!1),br(t,e,o,a,i);else if(32&u){const l=Tu(n,r);let c;for(;c=l();)br(t,e,o,c,i);br(t,e,o,a,i)}else 16&u?wh(e,t,r,n,o,i):br(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Oo(e,t,n,r,o,i){ku(n,r,e.firstChild,t,o,i,!1)}function wh(e,t,n,r,o,i){const s=n[16],u=s[6].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)br(t,e,o,u[l],i);else ku(e,t,u,s[3],o,i,!0)}function Mh(e,t,n){ue(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Lu(e,t,n){ue(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ih(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const Ah="ng-template";function _b(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==Ih(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function Th(e){return 4===e.type&&e.value!==Ah}function Db(e,t,n){return t===(4!==e.type||n?e.value:Ah)}function Cb(e,t,n){let r=4;const o=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(pf(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!Db(e,u,n)||""===u&&1===t.length){if(It(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!_b(e.attrs,l,n)){if(It(r))return!1;s=!0}continue}const d=Eb(8&r?"class":u,o,Th(e),n);if(-1===d){if(It(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Ih(h,l,0)||2&r&&l!==f){if(It(r))return!1;s=!0}}}}else{if(!s&&!It(r)&&!It(u))return!1;if(s&&It(u))continue;s=!1,r=u|1&r}}return It(r)||s}function It(e){return 0==(1&e)}function Eb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Sh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Cb(e,t[r],n))return!0;return!1}function Nh(e,t){return e?":not("+t.trim()+")":t}function Ib(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!It(s)&&(t+=Nh(i,o),o=""),r=s,i=i||!It(r);n++}return""!==o&&(t+=Nh(i,o)),t}const F={};function Qt(e){xh($(),_(),Be()+e,Bi())}function xh(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Gi(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Wi(t,i,0,n)}Cn(n)}function ds(e,t){return e<<17|t<<2}function At(e){return e>>17&32767}function Bu(e){return 2|e}function sn(e){return(131068&e)>>2}function ju(e,t){return-131069&e|t<<2}function Hu(e){return 1|e}function Hh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],i=n[r+1];if(-1!==i){const s=e.data[i];tu(o),s.contentQueries(2,t[i],i)}}}function ko(e,t,n,r,o,i,s,a,u,l){const c=t.blueprint.slice();return c[0]=o,c[2]=140|r,tf(c),c[3]=c[15]=e,c[8]=n,c[10]=s||e&&e[10],c[V]=a||e&&e[V],c[12]=u||e&&e[12]||null,c[9]=l||e&&e[9]||null,c[6]=i,c[16]=2==t.type?e[16]:c,c}function wr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function(e,t,n,r,o){const i=rf(),s=Za(),u=e.data[t]=function(e,t,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u)),u}(e,t,n,r,o),N.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function(){const e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return jt(i,!0),i}function Mr(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Lo(e,t,n){Hi(t);try{const r=e.viewQuery;null!==r&&rl(1,r,n);const o=e.template;null!==o&&$h(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Hh(e,t),e.staticViewQueries&&rl(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)iw(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,$i()}}function Ir(e,t,n,r){const o=t[2];if(256==(256&o))return;Hi(t);const i=Bi();try{tf(t),function(e){N.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&$h(e,t,n,2,r);const s=3==(3&o);if(!i)if(s){const l=e.preOrderCheckHooks;null!==l&&Gi(t,l,null)}else{const l=e.preOrderHooks;null!==l&&Wi(t,l,0,null),nu(t,0)}if(function(e){for(let t=Su(e);null!==t;t=Nu(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],i=o[3];0==(1024&o[2])&&Ya(i,1),o[2]|=1024}}}(t),function(e){for(let t=Su(e);null!==t;t=Nu(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Ka(r)&&Ir(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Hh(e,t),!i)if(s){const l=e.contentCheckHooks;null!==l&&Gi(t,l)}else{const l=e.contentHooks;null!==l&&Wi(t,l,1),nu(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Cn(~o);else{const i=o,s=n[++r],a=n[++r];mE(s,i),a(2,t[i])}}}finally{Cn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)ow(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&rl(2,u,r),!i)if(s){const l=e.viewCheckHooks;null!==l&&Gi(t,l)}else{const l=e.viewHooks;null!==l&&Wi(t,l,2),nu(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ya(t[3],-1))}finally{$i()}}function Bb(e,t,n,r){const o=t[10],i=!Bi(),s=function(e){return 4==(4&e[2])}(t);try{i&&!s&&o.begin&&o.begin(),s&&Lo(e,t,r),Ir(e,t,n,r)}finally{i&&!s&&o.end&&o.end()}}function $h(e,t,n,r,o){const i=Be(),s=2&r;try{Cn(-1),s&&t.length>X&&xh(e,t,X,Bi()),n(r,o)}finally{Cn(i)}}function Ku(e,t,n){!nf()||(function(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Eo(n,t),Se(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],l=Mt(u);l&&Xb(t,n,u);const c=vo(t,e,a,n);Se(c,t),null!==s&&ew(0,a-o,c,u,0,s),l&&(et(n.index,t)[8]=c)}}(e,t,n,dt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,o=n.directiveEnd,s=n.index,a=N.lFrame.currentDirectiveIndex;try{Cn(s);for(let u=r;u<o;u++){const l=e.data[u],c=t[u];Xa(u),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&Zh(l,c)}}finally{Cn(-1),Xa(a)}}(e,t,n))}function Yu(e,t,n=dt){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Gh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ps(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ps(e,t,n,r,o,i,s,a,u,l){const c=X+r,d=c+o,f=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:F);return n}(c,d),h="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:h,incompleteFirstPass:!1}}function zh(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function Zu(e,t,n,r){let o=!1;if(nf()){const i=function(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];Sh(n,s.selectors,!1)&&(o||(o=[]),Yi(Eo(n,t),e,s.type),Mt(s)?(Jh(e,n),o.unshift(s)):o.push(s))}return o}(e,t,n),s=null===r?null:{"":-1};if(null!==i){o=!0,Xh(n,e.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let a=!1,u=!1,l=Mr(e,t,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];n.mergedAttrs=Qi(n.mergedAttrs,d.hostAttrs),ep(e,n,t,l,d),Jb(l,d,s),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),a=!0),!u&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),l++}!function(e,t){const r=t.directiveEnd,o=e.data,i=t.attrs,s=[];let a=null,u=null;for(let l=t.directiveStart;l<r;l++){const c=o[l],d=c.inputs,f=null===i||Th(t)?null:tw(d,i);s.push(f),a=zh(d,l,a),u=zh(c.outputs,l,u)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=u}(e,n)}s&&function(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new Pn("301",`Export of name '${t[o+1]}' not found!`);r.push(t[o],i)}}}(n,r,s)}return n.mergedAttrs=Qi(n.mergedAttrs,n.attrs),o}function Yh(e,t,n,r,o,i){const s=i.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const u=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function Zh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Jh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Jb(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Mt(t)&&(n[""]=e)}}function Xh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ep(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Bn(o.type)),s=new Do(i,Mt(o),null);e.blueprint[r]=s,n[r]=s,Yh(e,t,0,r,Mr(e,n,o.hostVars,F),o)}function Xb(e,t,n){const r=dt(t,e),o=Gh(n),i=e[10],s=gs(e,ko(e,o,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=s}function ew(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u<s.length;){const l=s[u++],c=s[u++],d=s[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function tw(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function tp(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function ow(e,t){const n=et(t,e);if(Ka(n)){const r=n[1];80&n[2]?Ir(r,n,r.template,n[8]):n[5]>0&&Xu(n)}}function Xu(e){for(let r=Su(e);null!==r;r=Nu(r))for(let o=10;o<r.length;o++){const i=r[o];if(1024&i[2]){const s=i[1];Ir(s,i,s.template,i[8])}else i[5]>0&&Xu(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=et(n[r],e);Ka(o)&&o[5]>0&&Xu(o)}}function iw(e,t){const n=et(t,e),r=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Lo(r,n,n[8])}function gs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function el(e){for(;e;){e[2]|=64;const t=Vo(e);if(YC(e)&&!t)return e;e=t}return null}function nl(e,t,n){const r=t[10];r.begin&&r.begin();try{Ir(e,t,e.template,n)}catch(o){throw sp(t,o),o}finally{r.end&&r.end()}}function np(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Mu(n),o=r[1];Bb(o,r,o.template,n)}}(e[8])}function rl(e,t,n){tu(0),t(e,n)}const cw=(()=>Promise.resolve(null))();function rp(e){return e[7]||(e[7]=[])}function op(e){return e.cleanup||(e.cleanup=[])}function sp(e,t){const n=e[9],r=n?n.get(Wn,null):null;r&&r.handleError(t)}function ap(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,o,r,a):u[a]=o}}function un(e,t,n){const r=Li(t,e);!function(e,t,n){ue(e)?e.setValue(t,n):t.textContent=n}(e[V],r,n)}function ms(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Pa(o,a):2==i&&(r=Pa(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}const Ar=new U("INJECTOR",-1);class up{get(t,n=Io){if(n===Io){const r=new Error(`NullInjectorError: No provider for ${k(t)}!`);throw r.name="NullInjectorError",r}return n}}const Bo=new U("Set Injector scope."),jo={},hw={};let ol;function lp(){return void 0===ol&&(ol=new up),ol}function cp(e,t=null,n=null,r){return new gw(e,n,t||lp(),r)}class gw{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&$t(n,a=>this.processProvider(a,t,n)),$t([t],a=>this.processInjectorType(a,[],i)),this.records.set(Ar,Tr(void 0,this));const s=this.records.get(Bo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:k(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,n=Io,r=A.Default){this.assertNotDestroyed();const o=Dr(this),i=mn(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function(e){return"function"==typeof e||"object"==typeof e&&e instanceof U}(t)&&tn(t);a=u&&this.injectableDefInScope(u)?Tr(il(t),jo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&A.Self?lp():this.parent).get(t,n=r&A.Optional&&n===Io?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[_r]=s[_r]||[]).unshift(k(t)),o)throw s;return Nf(s,t,"R3InjectorError",this.source)}throw s}finally{mn(i),Dr(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(k(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=w(t)))return!1;let o=Ld(t);const i=null==o&&t.ngModule||void 0,s=void 0===i?t:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=Ld(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{$t(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];$t(h,p=>this.processProvider(p,f,h||z))}}this.injectorDefTypes.add(s);const u=Bn(s)||(()=>new s);this.records.set(s,Tr(u,jo));const l=o.providers;if(null!=l&&!a){const c=t;$t(l,d=>this.processProvider(d,c,l))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let o=Sr(t=w(t))?t:w(t&&t.provide);const i=function(e,t,n){return fp(e)?Tr(void 0,e.useValue):Tr(dp(e),jo)}(t);if(Sr(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Tr(void 0,jo,!0),s.factory=()=>$n(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,i)}hydrate(t,n){return n.value===jo&&(n.value=hw,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=w(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function il(e){const t=tn(e),n=null!==t?t.factory:Bn(e);if(null!==n)return n;if(e instanceof U)throw new Error(`Token ${k(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?");throw new Error(`Can't resolve all parameters for ${k(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[xi]||e[Bd]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function dp(e,t,n){let r;if(Sr(e)){const o=w(e);return Bn(o)||il(o)}if(fp(e))r=()=>w(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...$n(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>H(w(e.useExisting));else{const o=w(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Bn(o)||il(o);r=()=>new o(...$n(e.deps))}return r}function Tr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function fp(e){return null!==e&&"object"==typeof e&&mu in e}function Sr(e){return"function"==typeof e}const hp=function(e,t,n){return function(e,t=null,n=null,r){const o=cp(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let ne=(()=>{class e{static create(n,r){return Array.isArray(n)?hp(n,r,""):hp(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=Io,e.NULL=new up,e.\u0275prov=Q({token:e,providedIn:"any",factory:()=>H(Ar)}),e.__NG_ELEMENT_ID__=-1,e})();function Ow(e,t){Ui(Mu(e)[1],_e())}function re(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Mt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=dl(e.inputs),s.declaredInputs=dl(e.declaredInputs),s.outputs=dl(e.outputs);const a=o.hostBindings;a&&jw(e,a);const u=o.viewQuery,l=o.contentQueries;if(u&&Lw(e,u),l&&Bw(e,l),Ra(e.inputs,o.inputs),Ra(e.declaredInputs,o.declaredInputs),Ra(e.outputs,o.outputs),Mt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===re&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Qi(o.hostAttrs,n=Qi(n,o.hostAttrs))}}(r)}function dl(e){return e===or?{}:e===z?[]:e}function Lw(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Bw(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function jw(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}let ys=null;function Nr(){if(!ys){const e=W.Symbol;if(e&&e.iterator)ys=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ys=r)}}}return ys}class St{constructor(t){this.wrapped=t}static wrap(t){return new St(t)}static unwrap(t){return St.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof St}}function $o(e){return!!fl(e)&&(Array.isArray(e)||!(e instanceof Map)&&Nr()in e)}function fl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ne(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function jr(e,t,n,r,o,i,s,a){const u=_(),l=$(),c=e+X,d=l.firstCreatePass?function(e,t,n,r,o,i,s,a,u){const l=t.consts,c=wr(t,e,4,s||null,Dn(l,a));Zu(t,n,c,Dn(l,u)),Ui(t,c);const d=c.tViews=ps(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];jt(d,!1);const f=u[V].createComment("");ls(l,u,f,d),Se(f,u),gs(u,u[c]=tp(f,u,f,d)),ki(d)&&Ku(l,u,d),null!=s&&Yu(u,d,a)}function C(e,t=A.Default){const n=_();return null===n?H(e,t):Ef(_e(),n,w(e),t)}function Mn(e,t,n){const r=_();return Ne(r,cr(),t)&&function(e,t,n,r,o,i,s,a){const u=dt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(ap(e,n,c,r,o),Oi(t)&&function(e,t){const n=et(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,ue(i)?i.setProperty(u,r,o):ou(r)||(u.setProperty?u.setProperty(r,o):u[r]=o))}($(),function(){const e=N.lFrame;return za(e.tView,e.selectedIndex)}(),r,e,t,r[V],n,!1),Mn}function yl(e,t,n,r,o){const s=o?"class":"style";ap(e,n,t.inputs[s],s,r)}function K(e,t,n,r){const o=_(),i=$(),s=X+e,a=o[V],u=o[s]=Fu(a,t,N.lFrame.currentNamespace),l=i.firstCreatePass?function(e,t,n,r,o,i,s){const a=t.consts,l=wr(t,e,2,o,Dn(a,i));return Zu(t,n,l,Dn(a,s)),null!==l.attrs&&ms(l,l.attrs,!1),null!==l.mergedAttrs&&ms(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,0,t,n,r):i.data[s];jt(l,!0);const c=l.mergedAttrs;null!==c&&qi(a,u,c);const d=l.classes;null!==d&&Lu(a,u,d);const f=l.styles;null!==f&&Mh(a,u,f),64!=(64&l.flags)&&ls(i,o,u,l),0===N.lFrame.elementDepthCount&&Se(u,o),N.lFrame.elementDepthCount++,ki(l)&&(Ku(i,o,l),function(e,t,n){if(Ua(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i<o;i++){const s=e.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}(i,l,o)),null!==r&&Yu(o,l)}function Y(){let e=_e();Za()?N.lFrame.isParent=!1:(e=e.parent,jt(e,!1));const t=e;N.lFrame.elementDepthCount--;const n=$();n.firstCreatePass&&(Ui(n,e),Ua(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&yl(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&yl(n,t,_(),t.stylesWithoutHost,!1)}function Cs(e){return!!e&&"function"==typeof e.then}function eg(e){return!!e&&"function"==typeof e.subscribe}const _l=eg;function it(e,t,n,r){const o=_(),i=$(),s=_e();return function(e,t,n,r,o,i,s,a){const u=ki(r),c=e.firstCreatePass&&op(e),d=t[8],f=rp(t);let h=!0;if(3&r.type||a){const g=dt(r,t),D=a?a(g):g,y=f.length,b=a?M=>a(pe(M[r.index])):r.index;if(ue(n)){let M=null;if(!a&&u&&(M=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[7],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=i,M.__ngLastListenerFn__=i,h=!1;else{i=Dl(r,t,d,i,!1);const L=n.listen(D,o,i);f.push(i,L),c&&c.push(o,b,y,y+1)}}else i=Dl(r,t,d,i,!0),D.addEventListener(o,i,s),f.push(i),c&&c.push(o,b,y,s)}else i=Dl(r,t,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let D=0;D<g;D+=2){const ve=t[m[D]][m[D+1]].subscribe(i),Ct=f.length;f.push(i,ve),c&&c.push(o,r.index,Ct,-(Ct+1))}}}(i,o,o[V],s,e,t,!!n,r),it}function rg(e,t,n,r){try{return!1!==n(r)}catch(o){return sp(e,o),!1}}function Dl(e,t,n,r,o){return function i(s){if(s===Function)return r;const a=2&e.flags?et(e.index,t):t;0==(32&t[2])&&el(a);let u=rg(t,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=rg(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Cl(e=1){return function(e){return(N.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,N.lFrame.contextLView))[8]}(e)}function hg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?At(i):sn(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];T0(e[a],t)&&(u=!0,e[a+1]=r?Hu(c):Bu(c)),a=r?At(c):sn(c)}u&&(e[n+1]=r?Bu(i):Hu(i))}function T0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&yr(e,t)>=0}function Es(e,t){return function(e,t,n,r){const o=_(),i=$(),s=function(e){const t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Be()],s=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=N.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Go(n=vl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=vl(o,e,t,n,r),null===i){let u=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==sn(r))return e[At(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=vl(null,e,t,u[1],r),u=Go(u,t.attrs,r),function(e,t,n,r){e[At(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=Go(r,e[i].hostAttrs,n);return Go(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=At(s),u=sn(s);e[r]=n;let c,l=!1;if(Array.isArray(n)){const d=n;c=d[1],(null===c||yr(d,c)>0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=At(e[a+1]);e[r+1]=ds(f,a),0!==f&&(e[f+1]=ju(e[f+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ds(a,0),0!==a&&(e[a+1]=ju(e[a+1],r)),a=r;else e[r+1]=ds(u,0),0===a?a=r:e[u+1]=ju(e[u+1],r),u=r;l&&(e[r+1]=Bu(e[r+1])),hg(e,c,r,!0),hg(e,c,r,!1),function(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&yr(i,t)>=0&&(n[r+1]=Hu(n[r+1]))}(t,c,e,r,i),s=ds(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==F&&Ne(o,s,t)&&function(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];vs(function(e){return 1==(1&e)}(l)?Mg(u,t,n,o,sn(l),s):void 0)||(vs(i)||function(e){return 2==(2&e)}(l)&&(i=Mg(u,null,n,o,a,s)),function(e,t,n,r,o){const i=ue(e);if(t)o?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:rt.DashCase;if(null==o)i?e.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=rt.Important),i?e.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Li(Be(),n),o,i))}(i,i.data[Be()],o,o[V],e,o[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=k(function(e){return e instanceof class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Es}function vl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=Go(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Go(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),tt(e,s,!!n||t[++i]))}return void 0===e?null:e}function Mg(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===F&&(f=d?z:void 0);let h=d?fu(f,r):c===r?f:void 0;if(l&&!vs(h)&&(h=fu(u,r)),vs(h)&&(a=h,s))return a;const p=e[o+1];o=s?At(p):sn(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=fu(u,r))}return a}function vs(e){return void 0!==e}function st(e,t=""){const n=_(),r=$(),o=e+X,i=r.firstCreatePass?wr(r,o,1,t,null):r.data[o],s=n[o]=function(e,t){return ue(e)?e.createText(t):e.createTextNode(t)}(n[V],t);ls(r,n,s,i),jt(i,!1)}function Ur(e,t,n){const r=_(),o=function(e,t,n,r){return Ne(e,cr(),n)?t+P(n)+r:F}(r,e,t,n);return o!==F&&un(r,Be(),o),Ur}const zn=void 0;var lM=["en",[["a","p"],["AM","PM"],zn],[["AM","PM"],zn,zn],[["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"]],zn,[["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"]],zn,[["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}",zn,"{1} 'at' {0}",zn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Gr={};function zg(e){return e in Gr||(Gr[e]=W.ng&&W.ng.common&&W.ng.common.locales&&W.ng.common.locales[e]),Gr[e]}var v=(()=>((v=v||{})[v.LocaleId=0]="LocaleId",v[v.DayPeriodsFormat=1]="DayPeriodsFormat",v[v.DayPeriodsStandalone=2]="DayPeriodsStandalone",v[v.DaysFormat=3]="DaysFormat",v[v.DaysStandalone=4]="DaysStandalone",v[v.MonthsFormat=5]="MonthsFormat",v[v.MonthsStandalone=6]="MonthsStandalone",v[v.Eras=7]="Eras",v[v.FirstDayOfWeek=8]="FirstDayOfWeek",v[v.WeekendRange=9]="WeekendRange",v[v.DateFormat=10]="DateFormat",v[v.TimeFormat=11]="TimeFormat",v[v.DateTimeFormat=12]="DateTimeFormat",v[v.NumberSymbols=13]="NumberSymbols",v[v.NumberFormats=14]="NumberFormats",v[v.CurrencyCode=15]="CurrencyCode",v[v.CurrencySymbol=16]="CurrencySymbol",v[v.CurrencyName=17]="CurrencyName",v[v.Currencies=18]="Currencies",v[v.Directionality=19]="Directionality",v[v.PluralCase=20]="PluralCase",v[v.ExtraData=21]="ExtraData",v))();const bs="en-US";let Kg=bs;function bl(e){Ze(e,"Expected localeId to be defined"),"string"==typeof e&&(Kg=e.toLowerCase().replace(/_/g,"-"))}function Il(e,t,n,r,o){if(e=w(e),Array.isArray(e))for(let i=0;i<e.length;i++)Il(e[i],t,n,r,o);else{const i=$(),s=_();let a=Sr(e)?e:w(e.provide),u=dp(e);const l=_e(),c=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(Sr(e)||!e.multi){const h=new Do(u,o,C),p=Tl(a,t,o?c:c+f,d);-1===p?(Yi(Eo(l,s),i,a),Al(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Tl(a,t,c+f,d),p=Tl(a,t,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){Yi(Eo(l,s),i,a);const D=function(e,t,n,r,o){const i=new Do(e,n,C);return i.multi=[],i.index=t,i.componentProviders=0,Dm(i,o,r&&!n),i}(o?sI:iI,n.length,o,r,u);!o&&g&&(n[p].providerFactory=D),Al(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Al(i,e,h>-1?h:p,Dm(n[o?p:h],u,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function Al(e,t,n,r){const o=Sr(t);if(o||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const u=a.indexOf(n);-1===u?a.push(n,[r,s]):a[u+1].push(r,s)}else a.push(n,s)}}}function Dm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Tl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function iI(e,t,n,r){return Sl(this.multi,[])}function sI(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=vo(n,n[1],this.providerFactory.index,r);i=a.slice(0,s),Sl(o,i);for(let u=s;u<a.length;u++)i.push(a[u])}else i=[],Sl(o,i);return i}function Sl(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function ie(e,t=[]){return n=>{n.providersResolver=(r,o)=>function(e,t,n){const r=$();if(r.firstCreatePass){const o=Mt(e);Il(n,r.data,r.blueprint,o,!0),Il(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Cm{}const vm="ngComponent";class lI{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${k(e)}. Did you add it to @NgModule.entryComponents?`);return t[vm]=e,t}(t)}}let qr=(()=>{class e{}return e.NULL=new lI,e})();function Ts(...e){}function Qr(e,t){return new xe(dt(e,t))}const fI=function(){return Qr(_e(),_())};let xe=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=fI,e})();class Ss{}let Kn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>pI(),e})();const pI=function(){const e=_(),n=et(_e().index,e);return function(e){return e[V]}(Bt(n)?n:e)};let xl=(()=>{class e{}return e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>null}),e})();class Ns{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const wm=new Ns("12.2.8");class Mm{constructor(){}supports(t){return $o(t)}create(t){return new _I(t)}}const yI=(e,t)=>t;class _I{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||yI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<Am(r,o,i)?n:r,a=Am(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const l=a-o,c=u-o;if(l!=c){for(let f=0;f<l;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<l&&(i[f]=h+1)}i[s.previousIndex]=c-l}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!$o(t))throw new Error(`Error trying to diff '${k(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Nr()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),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,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new DI(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Im),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Im),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,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class DI{constructor(t,n){this.item=t,this.trackById=n,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 CI{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,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Im{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new CI,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Tm{constructor(){}supports(t){return t instanceof Map||fl(t)}create(){return new EI}}class EI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||fl(t)))throw new Error(`Error trying to diff '${k(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new vI(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class vI{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 Sm(){return new Ko([new Mm])}let Ko=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Sm()),deps:[[e,new Un,new Ut]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Q({token:e,providedIn:"root",factory:Sm}),e})();function Nm(){return new zr([new Tm])}let zr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Nm()),deps:[[e,new Un,new Ut]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Q({token:e,providedIn:"root",factory:Nm}),e})();function xs(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(pe(i)),wt(i))for(let a=10;a<i.length;a++){const u=i[a],l=u[1].firstChild;null!==l&&xs(u[1],u,l,r)}const s=n.type;if(8&s)xs(e,t,n.child,r);else if(32&s){const a=Tu(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=vh(t,n);if(Array.isArray(a))r.push(...a);else{const u=Vo(t[16]);xs(u[1],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class Yo{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return xs(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(wt(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ru(t,r),Hn(n,r))}this._attachedToViewContainer=!1}hh(this._lView[1],this._lView)}onDestroy(t){!function(e,t,n,r){const o=rp(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&op(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){el(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){ji(!0);try{nl(e,t,n)}finally{ji(!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(){this._appRef=null,function(e,t){Oo(e,t,t[V],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class wI extends Yo{constructor(t){super(t),this._view=t}detectChanges(){np(this._view)}checkNoChanges(){!function(e){ji(!0);try{np(e)}finally{ji(!1)}}(this._view)}get context(){return null}}const II=function(e){return function(e,t,n){if(Oi(e)&&!n){const r=et(e.index,t);return new Yo(r,r)}return 47&e.type?new Yo(t[16],t):null}(_e(),_(),16==(16&e))};let AI=(()=>{class e{}return e.__NG_ELEMENT_ID__=II,e})();const NI=[new Tm],FI=new Ko([new Mm]),RI=new zr(NI),VI=function(){return function(e,t){return 4&e.type?new kI(t,e,Qr(e,t)):null}(_e(),_())};let dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=VI,e})();const OI=dn,kI=class extends OI{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=ko(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Lo(n,r,t),new Yo(r)}};class Yn{}const HI=function(){return function(e,t){let n;const r=t[e.index];if(wt(r))n=r;else{let o;if(8&e.type)o=pe(r);else{const i=t[V];o=i.createComment("");const s=dt(e,t);qn(i,us(i,s),o,function(e,t){return ue(e)?e.nextSibling(t):t.nextSibling}(i,s),!1)}t[e.index]=n=tp(r,t,o,e),gs(t,n)}return new xm(n,e,t)}(_e(),_())};let Jt=(()=>{class e{}return e.__NG_ELEMENT_ID__=HI,e})();const UI=Jt,xm=class extends UI{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qr(this._hostTNode,this._hostLView)}get injector(){return new hr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ki(this._hostTNode,this._hostLView);if(mf(t)){const n=fr(t,this._hostLView),r=dr(t);return new hr(n[1].data[r+8],n)}return new hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Fm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==t.ngModule&&s){const u=s.get(Yn,null);u&&(i=u)}const a=t.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,o=r[1];if(function(e){return wt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new xm(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-10?(t[4]=n[o],Xi(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(o,r,s,i);const a=Ou(i,s),u=r[V],l=us(u,s[7]);return null!==l&&function(e,t,n,r,o,i){r[0]=o,r[6]=t,Oo(e,r,n,1,o,i)}(o,s[6],u,r,l,a),t.attachToViewContainerRef(),Xi(Fl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Fm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);r&&(Hn(Fl(this._lContainer),n),hh(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);return r&&null!=Hn(Fl(this._lContainer),n)?new Yo(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Fm(e){return e[8]}function Fl(e){return e[8]||(e[8]=[])}const Jr={};class Xm extends qr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ke(t);return new ty(n,this.ngModule)}}function ey(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const BA=new U("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ih});class ty extends Cm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function(e){return e.map(Ib).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ey(this.componentDef.inputs)}get outputs(){return ey(this.componentDef.outputs)}create(t,n,r,o){const i=(o=o||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const i=e.get(n,Jr,o);return i!==Jr||r===Jr?i:t.get(n,r,o)}}}(t,o.injector):t,s=i.get(Ss,Xd),a=i.get(xl,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function(e,t,n){if(ue(e))return e.selectRootElement(t,n===ye.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Fu(s.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f=function(e,t){return{components:[],scheduler:e||ih,clean:cw,playerHandler:t||null,flags:0}}(),h=ps(0,null,null,1,0,null,null,null,null,null),p=ko(null,h,f,d,null,null,s,u,a,i);let m,g;Hi(p);try{const D=function(e,t,n,r,o,i){const s=n[1];n[20]=e;const u=wr(s,20,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(ms(u,l,!0),null!==e&&(qi(o,e,l),null!==u.classes&&Lu(o,e,u.classes),null!==u.styles&&Mh(o,e,u.styles)));const c=r.createRenderer(e,t),d=ko(n,Gh(t),null,t.onPush?64:16,n[20],u,r,c,i||null,null);return s.firstCreatePass&&(Yi(Eo(u,n),s,t.type),Jh(s,u),Xh(u,n.length,1)),gs(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)qi(u,c,["ng-version",wm.full]);else{const{attrs:y,classes:b}=function(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!It(o))break;o=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);y&&qi(u,c,y),b&&b.length>0&&Lu(u,c,b.join(" "))}if(g=za(h,X),void 0!==n){const y=g.projection=[];for(let b=0;b<this.ngContentSelectors.length;b++){const M=n[b];y.push(null!=M?Array.from(M):null)}}m=function(e,t,n,r,o){const i=n[1],s=function(e,t,n){const r=_e();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ep(e,r,t,Mr(e,t,1,null),n));const o=vo(t,e,r.directiveStart,r);Se(o,t);const i=dt(r,t);return i&&Se(i,t),o}(i,n,t);if(r.components.push(s),e[8]=s,o&&o.forEach(u=>u(s,t)),t.contentQueries){const u=_e();t.contentQueries(1,s,u.directiveStart)}const a=_e();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Cn(a.index),Yh(n[1],a,0,a.directiveStart,a.directiveEnd,t),Zh(t,s)),s}(D,this.componentDef,p,f,[Ow]),Lo(h,p,null)}finally{$i()}return new $A(this.componentType,m,Qr(g,p),p,g)}}class $A extends class{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new wI(o),this.componentType=t}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Xr=new Map;class WA extends Yn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Xm(this);const r=ut(t),o=function(e){return e[$C]||null}(t);o&&bl(o),this._bootstrapComponents=qt(r.bootstrap),this._r3Injector=cp(t,n,[{provide:Yn,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],k(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=ne.THROW_IF_NOT_FOUND,r=A.Default){return t===ne||t===Yn||t===Ar?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Wl extends class{}{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(e){const t=new Set;!function n(r){const o=ut(r,!0),i=o.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${k(t)} vs ${k(t.name)}`)}(i,Xr.get(i),r),Xr.set(i,r));const s=qt(o.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new WA(this.moduleType,t)}}function oy(e,t,n,r,o,i){const s=t+n;return Ne(e,s,o)?function(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function(e,t){const n=e[t];return n===F?void 0:n}(e,s+1)}function ks(e,t){const n=$();let r;const o=e+X;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Pn("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Bn(r.type)),s=mn(C);try{const a=zi(!1),u=i();return zi(a),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),o,u),u}finally{mn(s)}}function Ls(e,t,n){const r=e+X,o=_(),i=function(e,t){return e[t]}(o,r);return function(e,t){St.isWrapped(t)&&(t=St.unwrap(t),e[N.lFrame.bindingIndex]=F);return t}(o,function(e,t){return e[1].data[t].pure}(o,r)?oy(o,function(){const e=N.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n))}function ql(e){return t=>{setTimeout(e,void 0,t)}}const Pe=class extends Na{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,i,s;let a=t,u=n||(()=>null),l=r;if(t&&"object"==typeof t){const d=t;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),u=null===(i=d.error)||void 0===i?void 0:i.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=ql(u),a&&(a=ql(a)),l&&(l=ql(l)));const c=super.subscribe({next:a,error:u,complete:l});return t instanceof de&&t.add(c),c}};Symbol;const $s=new U("Application Initializer");let to=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ts,this.reject=Ts,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Cs(i))n.push(i);else if(_l(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(H($s,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const ui=new U("AppId"),zT={provide:ui,useFactory:function(){return`${rc()}${rc()}${rc()}`},deps:[]};function rc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xy=new U("Platform Initializer"),oc=new U("Platform ID"),KT=new U("appBootstrapListener");let ic=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const An=new U("LocaleId"),Fy=new U("DefaultCurrencyCode");class ZT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const sc=function(e){return new Wl(e)},JT=sc,XT=function(e){return Promise.resolve(sc(e))},Ry=function(e){const t=sc(e),r=qt(ut(e).declarations).reduce((o,i)=>{const s=ke(i);return s&&o.push(new ty(s)),o},[]);return new ZT(t,r)},eS=Ry,tS=function(e){return Promise.resolve(Ry(e))};let Gs=(()=>{class e{constructor(){this.compileModuleSync=JT,this.compileModuleAsync=XT,this.compileModuleAndAllComponentsSync=eS,this.compileModuleAndAllComponentsAsync=tS}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const oS=(()=>Promise.resolve(0))();function ac(e){"undefined"==typeof Zone?oS.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ae{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pe(!1),this.onMicrotaskEmpty=new Pe(!1),this.onStable=new Pe(!1),this.onError=new Pe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let e=W.requestAnimationFrame,t=W.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(W,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,lc(e),e.isCheckStableRunning=!0,uc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),lc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Py(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Vy(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Py(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Vy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,lc(e),uc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,sS,Ts,Ts);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const sS={};function uc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function lc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Py(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vy(e){e._nesting--,uc(e)}class lS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pe,this.onMicrotaskEmpty=new Pe,this.onStable=new Pe,this.onError=new Pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let cc=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{Ae.assertNotInAngularZone(),ac(()=>{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())ac(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(H(Ae))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})(),Oy=(()=>{class e{constructor(){this._applications=new Map,dc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return dc.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();class cS{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let dc=new cS,ky=!0,Ly=!1;let Pt;const jy=new U("AllowMultipleToken");function Hy(e,t,n=[]){const r=`Platform: ${t}`,o=new U(r);return(i=[])=>{let s=$y();if(!s||s.injector.get(jy,!1))if(e)e(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:Bo,useValue:"platform"});!function(e){if(Pt&&!Pt.destroyed&&!Pt.injector.get(jy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pt=e.get(Uy);const t=e.get(xy,null);t&&t.forEach(n=>n())}(ne.create({providers:a,name:r}))}return function(e){const t=$y();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function $y(){return Pt&&!Pt.destroyed?Pt:null}let Uy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new lS:("zone.js"===e?void 0:e)||new Ae({enableLongStackTrace:(Ly=!0,ky),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:Ae,useValue:a}];return a.run(()=>{const l=ne.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(Wn,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{fc(this._modules,c),f.unsubscribe()})}),function(e,t,n){try{const r=n();return Cs(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(to);return f.runInitializers(),f.donePromise.then(()=>(bl(c.injector.get(An,bs)||bs),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=Gy({},r);return function(e,t,n){const r=new Wl(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(li);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${k(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(H(ne))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();function Gy(e,t){return Array.isArray(t)?t.reduce(Gy,e):Object.assign(Object.assign({},e),t)}let li=(()=>{class e{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,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 a=new be(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new be(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),ac(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return xa(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof be?e[0]:Rd(t)(Pd(e,n))}(a,u.pipe(e=>Vd()(function(e,t){return function(r){let o;o="function"==typeof e?e:function(){return e};const i=Object.create(r,vC);return i.source=r,i.subjectFactory=o,i}}(AC)(e))))}bootstrap(n,r){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 o;o=n instanceof Cm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Yn),a=o.create(ne.NULL,[],r||o.selector,i),u=a.location.nativeElement,l=a.injector.get(cc,null),c=l&&a.injector.get(Oy);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),fc(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;fc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(KT,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(H(Ae),H(ne),H(Wn),H(qr),H(to))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();function fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const kS=Hy(null,"core",[{provide:oc,useValue:"unknown"},{provide:Uy,deps:[ne]},{provide:Oy,deps:[]},{provide:ic,deps:[]}]),$S=[{provide:li,useClass:li,deps:[Ae,ne,Wn,qr,to]},{provide:BA,deps:[Ae],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:to,useClass:to,deps:[[new Ut,$s]]},{provide:Gs,useClass:Gs,deps:[]},zT,{provide:Ko,useFactory:function(){return FI},deps:[]},{provide:zr,useFactory:function(){return RI},deps:[]},{provide:An,useFactory:function(e){return bl(e=e||"undefined"!=typeof $localize&&$localize.locale||bs),e},deps:[[new So(An),new Ut,new Un]]},{provide:Fy,useValue:"USD"}];let GS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(H(li))},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({providers:$S}),e})(),ea=null;function tr(){return ea}const Ge=new U("DocumentToken");var ge=(()=>((ge=ge||{})[ge.Zero=0]="Zero",ge[ge.One=1]="One",ge[ge.Two=2]="Two",ge[ge.Few=3]="Few",ge[ge.Many=4]="Many",ge[ge.Other=5]="Other",ge))();const JN=function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=zg(t);if(n)return n;const r=t.split("-")[0];if(n=zg(r),n)return n;if("en"===r)return lM;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[v.PluralCase]};class ca{}let Ax=(()=>{class e extends ca{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(JN(r||this.locale)(n)){case ge.Zero:return"zero";case ge.One:return"one";case ge.Two:return"two";case ge.Few:return"few";case ge.Many:return"many";default:return"other"}}}return e.\u0275fac=function(n){return new(n||e)(H(An))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();class xx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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 T_=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}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(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new xx(null,this._ngForOf,-1,-1),null===s?void 0:s),u=new S_(o,a);r.push(u)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const u=new S_(o,a);r.push(u)}});for(let o=0;o<r.length;o++)this._perViewChange(r[o].view,r[o].record);for(let o=0,i=this._viewContainer.length;o<i;o++){const s=this._viewContainer.get(o);s.context.index=o,s.context.count=i,s.context.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(C(Jt),C(dn),C(Ko))},e.\u0275dir=S({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class S_{constructor(t,n){this.record=t,this.view=n}}let N_=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Rx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){x_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){x_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(C(Jt),C(dn))},e.\u0275dir=S({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Rx{constructor(){this.$implicit=null,this.ngIf=null}}function x_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${k(t)}'.`)}class Bx{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class jx{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}onDestroy(t){}}const Hx=new jx,$x=new Bx;let R_=(()=>{class e{constructor(n){this._ref=n,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Cs(n))return Hx;if(eg(n))return $x;throw function(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${k(e)}'`)}(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(C(AI,16))},e.\u0275pipe=qe({name:"async",type:e,pure:!1}),e})(),V_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({providers:[{provide:ca,useClass:Ax}]}),e})();class Bc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(e){ea||(ea=e)}(new Bc)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=(mi=mi||document.querySelector("base"),mi?mi.getAttribute("href"):null);return null==n?null:function(e){da=da||document.createElement("a"),da.setAttribute("href",e);const t=da.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){mi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let da,mi=null;const L_=new U("TRANSITION_ID"),hF=[{provide:$s,useFactory:function(e,t,n){return()=>{n.get(to).donePromise.then(()=>{const r=tr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[L_,Ge,ne],multi:!0}];class jc{static init(){!function(e){dc=e}(new jc)}addToWindow(t){W.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},W.getAllAngularTestabilities=()=>t.getAllTestabilities(),W.getAllAngularRootElements=()=>t.getAllRootElements(),W.frameworkStabilizers||(W.frameworkStabilizers=[]),W.frameworkStabilizers.push(r=>{const o=W.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const o=t.getTestability(n);return null!=o?o:r?tr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let pF=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const yi=new U("EventManagerPlugins");let ha=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return e.\u0275fac=function(n){return new(n||e)(H(yi),H(Ae))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();class Hc{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const o=tr().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let j_=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})(),_i=(()=>{class e extends j_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(H_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(H_))}}return e.\u0275fac=function(n){return new(n||e)(H(Ge))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();function H_(e){tr().remove(e)}const $c={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/"},Uc=/%COMP%/g;function pa(e,t,n){for(let r=0;r<t.length;r++){let o=t[r];Array.isArray(o)?pa(e,o,n):(o=o.replace(Uc,e),n.push(o))}return n}function G_(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Gc=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Wc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case ye.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new SF(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case ye.ShadowDom:return new NF(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=pa(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(H(ha),H(_i),H(ui))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();class Wc{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,n){return n?document.createElementNS($c[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=$c[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=$c[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(rt.DashCase|rt.Important)?t.style.setProperty(n,r,o&rt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&rt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,G_(r)):this.eventManager.addEventListener(t,n,G_(r))}}class SF extends Wc{constructor(t,n,r,o){super(t),this.component=r;const i=pa(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function(e){return"_ngcontent-%COMP%".replace(Uc,e)}(o+"-"+r.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(Uc,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class NF extends Wc{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=pa(o.id,o.styles,[]);for(let s=0;s<i.length;s++){const a=document.createElement("style");a.textContent=i[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let xF=(()=>{class e extends Hc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(H(Ge))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const Q_=["alt","control","meta","shift"],LF={"\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"},z_={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"},BF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let jF=(()=>{class e extends Hc{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="";if(Q_.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&z_.hasOwnProperty(t)&&(t=z_[t]))}return LF[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Q_.forEach(i=>{i!=o&&BF[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{e.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return e.\u0275fac=function(n){return new(n||e)(H(Ge))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const zF=Hy(kS,"browser",[{provide:oc,useValue:"browser"},{provide:xy,useValue:function(){Bc.makeCurrent(),jc.init()},multi:!0},{provide:Ge,useFactory:function(){return function(e){qa=e}(document),document},deps:[]}]),KF=[[],{provide:Bo,useValue:"root"},{provide:Wn,useFactory:function(){return new Wn},deps:[]},{provide:yi,useClass:xF,multi:!0,deps:[Ge,Ae,oc]},{provide:yi,useClass:jF,multi:!0,deps:[Ge]},[],{provide:Gc,useClass:Gc,deps:[ha,_i,ui]},{provide:Ss,useExisting:Gc},{provide:j_,useExisting:_i},{provide:_i,useClass:_i,deps:[Ge]},{provide:cc,useClass:cc,deps:[Ae]},{provide:ha,useClass:ha,deps:[yi,Ae]},{provide:class{},useClass:pF,deps:[]},[]];let YF=(()=>{class e{constructor(n){if(n)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(n){return{ngModule:e,providers:[{provide:ui,useValue:n.appId},{provide:L_,useExisting:ui},hF]}}}return e.\u0275fac=function(n){return new(n||e)(H(e,12))},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({providers:KF,imports:[V_,GS]}),e})();function ga(e,t){return new be(n=>{const r=e.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a<r;a++){const u=Si(e[a]);let l=!1;n.add(u.subscribe({next:c=>{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(t?t.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Y_=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(C(Kn),C(xe))},e.\u0275dir=S({type:e}),e})(),nr=(()=>{class e extends Y_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,features:[re]}),e})();const Xt=new U("NgValueAccessor"),s1={provide:Xt,useExisting:J(()=>ma),multi:!0},u1=new U("CompositionEventMode");let ma=(()=>{class e extends Y_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=tr()?tr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(C(Kn),C(xe),C(u1,8))},e.\u0275dir=S({type:e,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(n,r){1&n&&it("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ie([s1]),re]}),e})();const Ve=new U("NgValidators"),xn=new U("NgAsyncValidators");function aD(e){return null!=e}function uD(e){const t=Cs(e)?Si(e):e;return _l(t),t}function lD(e){let t={};return e.forEach(n=>{t=null!=n?Object.assign(Object.assign({},t),n):t}),0===Object.keys(t).length?null:t}function cD(e,t){return t.map(n=>n(e))}function dD(e){return e.map(t=>function(e){return!e.validate}(t)?t:n=>t.validate(n))}function Yc(e){return null!=e?function(e){if(!e)return null;const t=e.filter(aD);return 0==t.length?null:function(n){return lD(cD(n,t))}}(dD(e)):null}function Zc(e){return null!=e?function(e){if(!e)return null;const t=e.filter(aD);return 0==t.length?null:function(n){return function(...e){if(1===e.length){const t=e[0];if(Ta(t))return ga(t,null);if(Sa(t)&&Object.getPrototypeOf(t)===Object.prototype){const n=Object.keys(t);return ga(n.map(r=>t[r]),n)}}if("function"==typeof e[e.length-1]){const t=e.pop();return ga(e=1===e.length&&Ta(e[0])?e[0]:e,null).pipe(ho(n=>t(...n)))}return ga(e,null)}(cD(n,t).map(uD)).pipe(ho(lD))}}(dD(e)):null}function pD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function gD(e){return e._rawValidators}function mD(e){return e._rawAsyncValidators}function Jc(e){return e?Array.isArray(e)?e:[e]:[]}function ya(e,t){return Array.isArray(e)?e.includes(t):e===t}function yD(e,t){const n=Jc(t);return Jc(e).forEach(o=>{ya(n,o)||n.push(o)}),n}function _D(e,t){return Jc(t).filter(n=>!ya(e,n))}let DD=(()=>{class e{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(n){this._rawValidators=n||[],this._composedValidatorFn=Yc(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=S({type:e}),e})(),We=(()=>{class e extends DD{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=ft(e)))(r||e)}}(),e.\u0275dir=S({type:e,features:[re]}),e})();class Rn extends DD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CD{constructor(t){this._cd=t}is(t){var n,r,o;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[t])}}let ED=(()=>{class e extends CD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(C(Rn,2))},e.\u0275dir=S({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Es("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[re]}),e})(),vD=(()=>{class e extends CD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(C(We,10))},e.\u0275dir=S({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Es("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[re]}),e})();function Di(e,t){td(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&bD(e,t)})}(e,t),function(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&bD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ca(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),va(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ea(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function td(e,t){const n=gD(e);null!==t.validator?e.setValidators(pD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=mD(e);null!==t.asyncValidator?e.setAsyncValidators(pD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ea(t._rawValidators,o),Ea(t._rawAsyncValidators,o)}function va(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=gD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=mD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Ea(t._rawValidators,r),Ea(t._rawAsyncValidators,r),n}function bD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ba(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ci="VALID",wa="INVALID",oo="PENDING",Ei="DISABLED";function od(e){return(sd(e)?e.validators:e)||null}function ID(e){return Array.isArray(e)?Yc(e):e||null}function id(e,t){return(sd(t)?t.asyncValidators:e)||null}function AD(e){return Array.isArray(e)?Zc(e):e||null}function sd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class ad{constructor(t,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ID(this._rawValidators),this._composedAsyncValidatorFn=AD(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===Ci}get invalid(){return this.status===wa}get pending(){return this.status==oo}get disabled(){return this.status===Ei}get enabled(){return this.status!==Ei}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=ID(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=AD(t)}addValidators(t){this.setValidators(yD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(_D(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(_D(t,this._rawAsyncValidators))}hasValidator(t){return ya(this._rawValidators,t)}hasAsyncValidator(t){return ya(this._rawAsyncValidators,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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=oo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ei,this.errors=null,this._forEachChild(r=>{r.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:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ci,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!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===Ci||this.status===oo)&&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(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ei:Ci}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=oo,this._hasOwnPendingAsyncValidator=!0;const n=uD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let r=e;return t.forEach(o=>{r=r instanceof Ma?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof v1&&r.at(o)||null}),r}(this,t)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}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 Pe,this.statusChanges=new Pe}_calculateStatus(){return this._allControlsDisabled()?Ei:this.errors?wa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(oo)?oo:this._anyControlsHaveStatus(wa)?wa:Ci}_anyControlsHaveStatus(t){return this._anyControls(n=>n.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){sd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class vi extends ad{constructor(t=null,n,r){super(od(n),id(r,n)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=null,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ba(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ba(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 Ma extends ad{constructor(t,n,r){super(od(n),id(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n instanceof vi?n.value:n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);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(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_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((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class v1 extends ad{constructor(t,n,r){super(od(n),id(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){this._checkAllValuesPresent(t),t.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t instanceof vi?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!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((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_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 RD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({}),e})();const ld=new U("NgModelWithFormControlWarning"),F1={provide:We,useExisting:J(()=>Ia)};let Ia=(()=>{class e extends We{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Pe,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(va(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return Di(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Ca(n.control||null,n,!1),ba(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(Ca(r||null,n),o instanceof vi&&(Di(o,n),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function(e,t){td(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function(e,t){return va(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){td(this.form,this),this._oldForm&&va(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(n){return new(n||e)(C(Ve,10),C(xn,10))},e.\u0275dir=S({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&it("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ie([F1]),re,Xe]}),e})();const V1={provide:Rn,useExisting:J(()=>fd)};let fd=(()=>{class e extends Rn{constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Pe,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===ma?n=i:function(e){return Object.getPrototypeOf(e.constructor)===nr}(i)?r=i:o=i}),o||r||n||null}(0,i)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function(e,t){return[...t.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}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 e.\u0275fac=function(n){return new(n||e)(C(We,13),C(Ve,10),C(xn,10),C(Xt,10),C(ld,8))},e.\u0275dir=S({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ie([V1]),re,Xe]}),e._ngModelWarningSentOnce=!1,e})(),KD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({imports:[[RD]]}),e})(),Y1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ld,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rn({type:e}),e.\u0275inj=vt({imports:[KD]}),e})();const Z1=new be(e=>e.complete());function YD(...e){return Rd(1)(function(...e){let t=e[e.length-1];return xa(t)?(e.pop(),Fa(e,t)):Pd(e)}(...e))}function ZD(...e){const t=e[e.length-1];return xa(t)?(e.pop(),n=>YD(e,n,t)):n=>YD(e,n)}function rR(e,t){if(1&e&&(K(0,"li",13),st(1),Y()),2&e){const n=t.$implicit;Qt(1),Ur(" ",n," ")}}function oR(e,t){if(1&e&&(K(0,"li",13),st(1),Y()),2&e){const n=t.$implicit;Qt(1),Ur(" ",n," ")}}function iR(e,t){if(1&e&&(K(0,"div",9),K(1,"div"),st(2,"Search result"),Y(),K(3,"ul",10),jr(4,oR,2,1,"li",11),ks(5,"async"),Y(),Y()),2&e){const n=Cl();Qt(4),Mn("ngForOf",Ls(5,1,n.exampleResult$))}}function sR(e,t){if(1&e&&(K(0,"li",13),st(1),Y()),2&e){const n=t.$implicit;Qt(1),Ur(" ",n," ")}}function aR(e,t){if(1&e&&(K(0,"div",9),K(1,"div"),st(2,"Search result"),Y(),K(3,"ul",10),jr(4,sR,2,1,"li",11),ks(5,"async"),Y(),Y()),2&e){const n=Cl();Qt(4),Mn("ngForOf",Ls(5,1,n.exampleDeferResult$))}}let uR=(()=>{class e{constructor(){this.candidates=["Apple","Apricot","Avocado","Banana","Bell pepper","Bilberry","Blackberry","Blackcurrant","Blood orange","Blueberry","Boysenberry","Breadfruit","Canary melon","Cantaloupe","Cherimoya","Cherry","Chili pepper","Clementine","Cloudberry","Coconut","Cranberry","Cucumber","Currant","Damson","Date","Dragonfruit","Durian","Eggplant","Elderberry","Feijoa","Fig","Goji berry","Gooseberry","Grape","Grapefruit","Guava","Honeydew","Huckleberry","Jackfruit","Jambul","Jujube","Kiwi fruit","Kumquat","Lemon","Lime","Loquat","Lychee","Mandarine","Mango","Mulberry","Nectarine","Nut","Olive","Orange","Papaya","Passionfruit","Peach","Pear","Persimmon","Physalis","Pineapple","Plum","Pomegranate","Pomelo","Quince","Raisin","Rambutan","Raspberry","Redcurrant","Rock melon","Salal berry","Satsuma","Star fruit","Strawberry","Tamarillo","Tangerine","Tomato","Watermelon"],this.form=new Ma({search:new vi("")}),this.isComponentVisible=!1}ngOnInit(){this.exampleResult$=this.form.valueChanges.pipe(ZD(this.form.value),ho(n=>this.candidates.filter(r=>!n.search||r.toLocaleLowerCase().indexOf(n.search.toLocaleLowerCase())>=0))),this.exampleDeferResult$=function(e){return new be(t=>{let n;try{n=e()}catch(o){return void t.error(o)}return(n?Si(n):function(e){return e?function(e){return new be(t=>e.schedule(()=>t.complete()))}(e):Z1}()).subscribe(t)})}(()=>this.form.valueChanges.pipe(ZD(this.form.value),ho(n=>this.candidates.filter(r=>!n.search||r.toLocaleLowerCase().indexOf(n.search.toLocaleLowerCase())>=0)))),setTimeout(()=>{this.form.patchValue({search:"Ap"})},100)}showComponent(){this.isComponentVisible=!0}hideComponent(){this.isComponentVisible=!1}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=ja({type:e,selectors:[["app-root"]],decls:29,vars:6,consts:[[1,"app-container"],[1,"case-input"],[3,"formGroup"],["formControlName","search","placeholder","Enter any text",1,"form-control"],[1,"case-control"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"case-container"],[1,"case-header"],[1,"case-result"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],["class","case-result",4,"ngIf"],[1,"list-group-item"]],template:function(n,r){1&n&&(K(0,"div",0),K(1,"div",1),K(2,"div"),st(3," Text to search "),Y(),K(4,"div",2),function(e,t,n,r){K(e,t,n,r),Y()}(5,"input",3),Y(),Y(),K(6,"div",4),K(7,"button",5),it("click",function(){return r.showComponent()}),st(8," Show Component "),Y(),K(9,"button",6),it("click",function(){return r.hideComponent()}),st(10," Hide Component "),Y(),Y(),K(11,"div",7),K(12,"div"),K(13,"div",8),st(14," Example 1: Subscribing from the beginning "),Y(),K(15,"div",9),K(16,"div"),st(17,"Search result"),Y(),K(18,"ul",10),jr(19,rR,2,1,"li",11),ks(20,"async"),Y(),Y(),Y(),K(21,"div"),K(22,"div",8),st(23," Example 2: Late subscriber "),Y(),jr(24,iR,6,3,"div",12),Y(),K(25,"div"),K(26,"div",8),st(27," Example 3: Late subscriber with defer "),Y(),jr(28,aR,6,3,"div",12),Y(),Y(),Y()),2&n&&(Qt(4),Mn("formGroup",r.form),Qt(15),Mn("ngForOf",Ls(20,4,r.exampleResult$)),Qt(5),Mn("ngIf",r.isComponentVisible),Qt(4),Mn("ngIf",r.isComponentVisible))},directives:[vD,Ia,ma,ED,fd,T_,N_],pipes:[R_],styles:[".app-container[_ngcontent-%COMP%]{padding:1rem}.app-container[_ngcontent-%COMP%]   .case-input[_ngcontent-%COMP%]{text-align:center;display:flex;flex-direction:column;max-width:400px;margin:auto}.app-container[_ngcontent-%COMP%]   .case-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);margin-top:1rem;grid-gap:.5rem;gap:.5rem}.app-container[_ngcontent-%COMP%]   .case-header[_ngcontent-%COMP%]{text-align:center}.app-container[_ngcontent-%COMP%]   .case-result[_ngcontent-%COMP%]{text-align:center}.app-container[_ngcontent-%COMP%]   .case-control[_ngcontent-%COMP%]{text-align:center;margin-top:1rem}"]}),e})(),lR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rn({type:e,bootstrap:[uR]}),e.\u0275inj=vt({providers:[],imports:[[YF,V_,Y1]]}),e})();(function(){if(Ly)throw new Error("Cannot enable prod mode after platform setup.");ky=!1})(),zF().bootstrapModule(lR).catch(e=>console.error(e))}},uo=>{uo(uo.s=373)}]);