@drayman/elements 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calendar/favicon.ico +0 -0
- package/dist/checkbox/main.js +1 -1
- package/dist/grid/main.js +1 -1
- package/dist/menu/main.js +1 -1
- package/dist/nebula/main.js +1 -1
- package/dist/ngx-graph/favicon.ico +0 -0
- package/dist/radio-group/main.js +1 -1
- package/dist/select/main.js +1 -1
- package/dist/table/main.js +1 -1
- package/dist/textarea-field/main.js +1 -1
- package/dist/timepicker/main.js +1 -1
- package/dist/types/grid/src/app/models/grid-options.d.ts +2 -0
- package/dist/types/nebula/src/app/models/nebula-options.d.ts +15 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,(function(t){return e[t]}).bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof u?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof u?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new u(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof e){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof p?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const s=new p(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends p{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let g=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof p)return e;if(e[f])return e[f]()}return e||t||n?new p(e,t,n):new p(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof p?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const v=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends p{constructor(e){super(e),this.destination=e}}let E=(()=>{class e extends g{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new v;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].next(e)}}error(e){if(this.closed)throw new v;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new v;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new v;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const e=new g;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends E{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function x(e){return e&&"function"==typeof e.schedule}function k(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends p{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const V=O(),D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const P=e=>{if(e&&"function"==typeof e[_])return s=e,e=>{const t=s[_]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(D(e))return I(e);if(N(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[V])return t=e,e=>{const n=t[V]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new g(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function R(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new g(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[_]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(N(e))return function(e,t){return new g(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(D(e))return F(e,t);if(function(e){return e&&"function"==typeof e[V]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new g(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[V](),s.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())})))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof g?e:new g(P(e))}class M extends p{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends p{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function L(e,t){if(!t.closed)return e instanceof g?e.subscribe(t):P(e)(t)}class B{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new M(this),n=this.destination;n.add(t);const s=L(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>R(t(e,s)).pipe(k((t,r)=>n(e,t,s,r))),s)):("number"==typeof n&&(s=n),e=>e.lift(new B(t,s)))}(y,e)}function z(e,t){return t?F(e,t):new g(I(e))}function $(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return x(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof g?e[0]:q(t)(z(e,n))}function Q(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new W(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class W extends p{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class U extends g{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new G(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return Q()(this)}}const K=(()=>{const e=U.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 G extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Y(){return new E}function J(e){return{toString:e}.toString()}const X="__parameters__";function ee(e,t,n){return J(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(X)?e[X]:Object.defineProperty(e,X,{value:[]})[X];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const te=ee("Inject",e=>({token:e})),ne=ee("Optional"),se=ee("Self"),re=ee("SkipSelf");var ie=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("Could not find renamed property on target object.")}function ae(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ue(e){return he(e,e[fe])||he(e,e[_e])}function he(e,t){return t&&t.token===e?t:null}function de(e){return e&&(e.hasOwnProperty(pe)||e.hasOwnProperty(ye))?e[pe]:null}const fe=oe({"\u0275prov":oe}),pe=oe({"\u0275inj":oe}),me=oe({"\u0275provFallback":oe}),_e=oe({ngInjectableDef:oe}),ye=oe({ngInjectorDef:oe});function ge(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ge).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 be(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ve=oe({__forward_ref__:oe});function we(e){return e.__forward_ref__=we,e.toString=function(){return ge(this())},e}function Ce(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(ve)&&e.__forward_ref__===we}const Se="undefined"!=typeof globalThis&&globalThis,xe="undefined"!=typeof window&&window,ke="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Te="undefined"!=typeof global&&global,Ae=Se||Te||xe||ke,Ie=oe({"\u0275cmp":oe}),Oe=oe({"\u0275dir":oe}),Ve=oe({"\u0275pipe":oe}),De=oe({"\u0275mod":oe}),Ne=oe({"\u0275loc":oe}),Pe=oe({"\u0275fac":oe}),Fe=oe({__NG_ELEMENT_ID__:oe});class Re{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=le({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Me=new Re("INJECTOR",-1),je={},Le=/\n/gm,Be="__source",He=oe({provide:String,useValue:oe});let qe,ze=void 0;function $e(e){const t=ze;return ze=e,t}function Qe(e){const t=qe;return qe=e,t}function Ze(e,t=ie.Default){if(void 0===ze)throw new Error("inject() must be called from an injection context");return null===ze?Ke(e,void 0,t):ze.get(e,t&ie.Optional?null:void 0,t)}function We(e,t=ie.Default){return(qe||Ze)(Ce(e),t)}const Ue=We;function Ke(e,t,n){const s=ue(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&ie.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${ge(e)}]`)}function Ge(e){const t=[];for(let n=0;n<e.length;n++){const s=Ce(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=ie.Default;for(let t=0;t<s.length;t++){const r=s[t];r instanceof ne||"Optional"===r.ngMetadataName||r===ne?n|=ie.Optional:r instanceof re||"SkipSelf"===r.ngMetadataName||r===re?n|=ie.SkipSelf:r instanceof se||"Self"===r.ngMetadataName||r===se?n|=ie.Self:e=r instanceof te||r===te?r.token:r}t.push(We(e,n))}else t.push(We(s))}return t}class Ye{get(e,t=je){if(t===je){const t=new Error(`NullInjectorError: No provider for ${ge(e)}!`);throw t.name="NullInjectorError",t}return t}}class Je{}function Xe(e,t){e.forEach(e=>Array.isArray(e)?Xe(e,t):t(e))}function et(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function nt(e,t){const n=[];for(let s=0;s<e;s++)n.push(t);return n}function st(e,t,n){let s=it(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function rt(e,t){const n=it(e,t);if(n>=0)return e[1|n]}function it(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}var ot=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),at=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const lt={},ct=[];let ut=0;function ht(e){return J(()=>{const t={},n={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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ct,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c",styles:e.styles||ct,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=ut++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(dt):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(ft):null,n})}function dt(e){return gt(e)||function(e){return e[Oe]||null}(e)}function ft(e){return function(e){return e[Ve]||null}(e)}const pt={};function mt(e){const t={type:e.type,bootstrap:e.bootstrap||ct,declarations:e.declarations||ct,imports:e.imports||ct,exports:e.exports||ct,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&J(()=>{pt[e.id]=e.type}),t}function _t(e,t){if(null==e)return lt;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const yt=ht;function gt(e){return e[Ie]||null}function bt(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}function vt(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${ge(e)} does not have '\u0275mod' property.`);return n}const wt=20,Ct=10;function Et(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function xt(e){return 0!=(8&e.flags)}function kt(e){return 2==(2&e.flags)}function Tt(e){return 1==(1&e.flags)}function At(e){return null!==e.template}function It(e){return 0!=(512&e[2])}class Ot{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Vt(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pt),Nt}function Nt(){const e=Ft(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===lt)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Pt(e,t,n,s){const r=Ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:lt,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Ot(l&&l.currentValue,t,o===lt),e[s]=t}function Ft(e){return e.__ngSimpleChanges__||null}Vt.ngInherit=!0;let Rt=void 0;function Mt(e){return!!e.listen}const jt={createRenderer:(e,t)=>void 0!==Rt?Rt:"undefined"!=typeof document?document:void 0};function Lt(e){for(;Array.isArray(e);)e=e[0];return e}function Bt(e,t){return Lt(t[e+wt])}function Ht(e,t){return Lt(t[e.index])}function qt(e,t){return e.data[t+wt]}function zt(e,t){const n=t[e];return Et(n)?n:n[0]}function $t(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Qt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Wt(e,t){return null===e||null==t?null:e[t]}function Ut(e){e[18]=0}function Kt(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Gt={lFrame:mn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Yt(){return Gt.bindingsEnabled}function Jt(){return Gt.lFrame.lView}function Xt(){return Gt.lFrame.tView}function en(){return Gt.lFrame.previousOrParentTNode}function tn(e,t){Gt.lFrame.previousOrParentTNode=e,Gt.lFrame.isParent=t}function nn(){return Gt.lFrame.isParent}function sn(){Gt.lFrame.isParent=!1}function rn(){return Gt.checkNoChangesMode}function on(e){Gt.checkNoChangesMode=e}function an(){return Gt.lFrame.bindingIndex++}function ln(e,t){const n=Gt.lFrame;n.bindingIndex=n.bindingRootIndex=e,cn(t)}function cn(e){Gt.lFrame.currentDirectiveIndex=e}function un(){return Gt.lFrame.currentQueryIndex}function hn(e){Gt.lFrame.currentQueryIndex=e}function dn(e,t){const n=pn();Gt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function fn(e,t){const n=pn(),s=e[1];Gt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function pn(){const e=Gt.lFrame,t=null===e?null:e.child;return null===t?mn(e):t}function mn(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function _n(){const e=Gt.lFrame;return Gt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const yn=_n;function gn(){const e=_n();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Gt.lFrame.selectedIndex}function vn(e){Gt.lFrame.selectedIndex=e}function wn(){const e=Gt.lFrame;return qt(e.tView,e.selectedIndex)}function Cn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function En(e,t,n){kn(e,t,3,n)}function Sn(e,t,n,s){(3&e[2])===n&&kn(e,t,n,s)}function xn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function kn(e,t,n,s){const r=null!=s?s:-1;let i=0;for(let o=void 0!==s?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=s&&i>=s)break}else t[o]<0&&(e[18]+=65536),(i<r||-1==r)&&(Tn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Tn(e,t,n,s){const r=n[s]<0,i=n[s+1],o=e[r?-n[s]:n[s]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class An{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function In(e,t,n){const s=Mt(e);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];On(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function On(e){return 64===e.charCodeAt(0)}function Vn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const r=t[s];"number"==typeof r?n=r:0===n||Dn(e,n,r,null,-1===n||2===n?t[++s]:null)}}return e}function Dn(e,t,n,s,r){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==r&&(e[i+1]=r));if(s===e[i+1])return void(e[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==s&&e.splice(i++,0,s),null!==r&&e.splice(i++,0,r)}function Nn(e){return-1!==e}function Pn(e){return 32767&e}function Fn(e){return e>>16}function Rn(e,t){let n=Fn(e),s=t;for(;n>0;)s=s[15],n--;return s}function Mn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mn(e)}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ae))();function Bn(e){return e instanceof Function?e():e}let Hn=!0;function qn(e){const t=Hn;return Hn=e,t}let zn=0;function $n(e,t){const n=Zn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Qn(s.data,e),Qn(t,null),Qn(s.blueprint,null));const r=Wn(e,t),i=e.injectorIndex;if(Nn(r)){const e=Pn(r),n=Rn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Qn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Zn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Wn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Un(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Fe)&&(s=n[Fe]),null==s&&(s=n[Fe]=zn++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=t.data;128&r?o?a?l[e+7]|=i:l[e+6]|=i:a?l[e+5]|=i:l[e+4]|=i:o?a?l[e+3]|=i:l[e+2]|=i:a?l[e+1]|=i:l[e]|=i}(e,t,n)}function Kn(e,t,n,s=ie.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Fe)?e[Fe]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){dn(t,e);try{const e=r();if(null!=e||s&ie.Optional)return e;throw new Error(`No provider for ${jn(n)}!`)}finally{yn()}}else if("number"==typeof r){if(-1===r)return new ns(e,t);let i=null,o=Zn(e,t),a=-1,l=s&ie.Host?t[16][6]:null;for((-1===o||s&ie.SkipSelf)&&(a=-1===o?Wn(e,t):t[o+8],ts(s,!1)?(i=t[1],o=Pn(a),t=Rn(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(es(r,o,e.data)){const e=Yn(o,t,n,i,s,l);if(e!==Gn)return e}ts(s,t[1].data[o+8]===l)&&es(r,o,t)?(i=e,o=Pn(a),t=Rn(a,t)):o=-1}}}if(s&ie.Optional&&void 0===r&&(r=null),0==(s&(ie.Self|ie.Host))){const e=t[9],i=Qe(void 0);try{return e?e.get(n,r,s&ie.Optional):Ke(n,r,s&ie.Optional)}finally{Qe(i)}}if(s&ie.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${jn(n)}]`)}const Gn={};function Yn(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Jn(a,o,n,null==s?kt(a)&&Hn:s!=o&&3===a.type,r&ie.Host&&i===a);return null!==l?Xn(t,o,l,a):Gn}function Jn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h<u;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(r){const e=o[l];if(e&&At(e)&&e.type===n)return l}return null}function Xn(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof An){const o=r;if(o.resolving)throw new Error("Circular dep for "+jn(i[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qe(o.injectImpl)),dn(e,s);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{o.injectImpl&&Qe(l),qn(a),o.resolving=!1,yn()}}return r}function es(e,t,n){const s=64&e,r=32&e;let i;return i=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(i&1<<e)}function ts(e,t){return!(e&ie.Self||e&ie.Host&&t)}class ns{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Kn(this._tNode,this._lView,e,void 0,t)}}function ss(e){const t=e;if(Ee(e))return()=>{const e=ss(Ce(t));return e?e():null};let n=bt(t);if(null===n){const e=de(t);n=e&&e.factory}return n||null}function rs(e){return J(()=>{const t=e.prototype.constructor,n=t[Pe]||ss(t),s=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==s;){const e=r[Pe]||ss(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function is(e){return e.ngDebugContext}function os(e){return e.ngOriginalError}function as(e,...t){e.error(...t)}class ls{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||as}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?is(e)?is(e):this._findContext(os(e)):null}_findOriginalError(e){let t=os(e);for(;t&&os(t);)t=os(t);return t}}let cs=!0,us=!1;function hs(){return us=!0,cs}function ds(e,t){e.__ngContext__=t}function fs(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function ps(){throw new Error("Cannot mix multi providers and regular providers")}function ms(e,t,n){let s=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===s||e.charCodeAt(r+n)<=32)return r}n=r+1}}const _s="ng-template";function ys(e,t,n){let s=0;for(;s<e.length;){let r=e[s++];if(n&&"class"===r){if(r=e[s],-1!==ms(r.toLowerCase(),t,0))return!0}else if(1===r){for(;s<e.length&&"string"==typeof(r=e[s++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function gs(e){return 0===e.type&&e.tagName!==_s}function bs(e,t,n){return t===(0!==e.type||n?e.tagName:_s)}function vs(e,t,n){let s=4;const r=e.attrs||[],i=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!bs(e,l,n)||""===l&&1===t.length){if(ws(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!ys(e.attrs,c,n)){if(ws(s))return!1;o=!0}continue}const u=Cs(8&s?"class":l,r,gs(e),n);if(-1===u){if(ws(s))return!1;o=!0;continue}if(""!==c){let e;e=u>i?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==ms(t,c,0)||2&s&&c!==e){if(ws(s))return!1;o=!0}}}}else{if(!o&&!ws(s)&&!ws(l))return!1;if(o&&ws(l))continue;o=!1,s=l|1&s}}return ws(s)||o}function ws(e){return 0==(1&e)}function Cs(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function Es(e,t,n=!1){for(let s=0;s<t.length;s++)if(vs(e,t[s],n))return!0;return!1}function Ss(e,t){e:for(let n=0;n<t.length;n++){const s=t[n];if(e.length===s.length){for(let t=0;t<e.length;t++)if(e[t]!==s[t])continue e;return!0}}return!1}function xs(e,t){return e?":not("+t.trim()+")":t}function ks(e){let t=e[0],n=1,s=2,r="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||ws(o)||(t+=xs(i,r),r=""),s=o,i=i||!ws(s);n++}return""!==r&&(t+=xs(i,r)),t}const Ts={};function As(e){const t=e[3];return St(t)?t[3]:t}function Is(e){return Vs(e[13])}function Os(e){return Vs(e[4])}function Vs(e){for(;null!==e&&!St(e);)e=e[4];return e}function Ds(e){Ns(Xt(),Jt(),bn()+e,rn())}function Ns(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&En(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Sn(t,s,0,n)}vn(n)}function Ps(e,t){return e<<17|t<<2}function Fs(e){return e>>17&32767}function Rs(e){return 2|e}function Ms(e){return(131068&e)>>2}function js(e,t){return-131069&e|t<<2}function Ls(e){return 1|e}function Bs(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=e.data[i];hn(r),n.contentQueries(2,t[i],i)}}}function Hs(e,t,n){return Mt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function qs(e,t,n,s,r,i,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|s,Ut(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=i,u[16]=2==t.type?e[16]:u,u}function zs(e,t,n,s,r,i){const o=n+wt,a=e.data[o]||function(e,t,n,s,r,i){const o=en(),a=nn(),l=a?o:o&&o.parent,c=e.data[n]=er(0,l&&l!==t?l:null,s,n,r,i);return null===e.firstChild&&(e.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(e,t,o,s,r,i);return tn(a,!0),a}function $s(e,t,n){fn(t,t[6]);try{const s=e.viewQuery;null!==s&&Cr(1,s,n);const r=e.template;null!==r&&Ws(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Bs(e,t),e.staticViewQueries&&Cr(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)yr(e,t[n])}(t,i)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,gn()}}function Qs(e,t,n,s){const r=t[2];if(256==(256&r))return;fn(t,t[6]);const i=rn();try{Ut(t),Gt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Ws(e,t,n,2,s);const o=3==(3&r);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&En(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Sn(t,n,0,null),xn(t,0)}if(function(e){for(let t=Is(e);null!==t;t=Os(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&Kt(s,1),n[2]|=1024}}}(t),function(e){for(let t=Is(e);null!==t;t=Os(t))for(let e=Ct;e<t.length;e++){const n=t[e],s=n[1];Zt(n)&&Qs(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Bs(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&En(t,n)}else{const n=e.contentHooks;null!==n&&Sn(t,n,1),xn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let s=e.expandoStartIndex,r=-1,i=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(i=0-o,vn(i),s+=9+n[++e],r=s):s+=o:(null!==o&&(ln(s,r),o(2,t[r])),r++)}}}finally{vn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)_r(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Cr(2,l,s),!i)if(o){const n=e.viewCheckHooks;null!==n&&En(t,n)}else{const n=e.viewHooks;null!==n&&Sn(t,n,2),xn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Kt(t[3],-1))}finally{gn()}}function Zs(e,t,n,s){const r=t[10],i=!rn(),o=Qt(t);try{i&&!o&&r.begin&&r.begin(),o&&$s(e,t,s),Qs(e,t,n,s)}finally{i&&!o&&r.end&&r.end()}}function Ws(e,t,n,s,r){const i=bn();try{vn(-1),2&s&&t.length>wt&&Ns(e,t,0,rn()),n(s,r)}finally{vn(i)}}function Us(e,t,n){if(xt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r<s;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function Ks(e,t,n){Yt()&&(function(e,t,n,s){const r=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||$n(n,t),ds(s,t);const o=n.initialInputs;for(let a=r;a<i;a++){const s=e.data[a],i=At(s);i&&dr(t,n,s);const l=Xn(t,e,a,n);ds(l,t),null!==o&&fr(0,a-r,l,s,0,o),i&&(zt(n.index,t)[8]=l)}}(e,t,n,Ht(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,r=n.directiveEnd,i=e.expandoInstructions,o=e.firstCreatePass,a=n.index-wt,l=Gt.lFrame.currentDirectiveIndex;try{vn(a);for(let n=s;n<r;n++){const s=e.data[n],r=t[n];cn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?or(s,r):o&&i.push(null)}}finally{vn(-1),cn(l)}}(e,t,n))}function Gs(e,t,n=Ht){const s=t.localNames;if(null!==s){let r=t.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function Ys(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Js(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Js(e,t,n,s,r,i,o,a,l,c){const u=wt+s,h=u+r,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:Ts);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Xs(e,t,n,s){const r=Sr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(s,r.length-1)}function er(e,t,n,s,r,i){return{type:n,index:s,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,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}}function tr(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){const r=e[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(t,r):n[s]=[t,r]}return n}function nr(e,t,n,s,r,i,o,a){const l=Ht(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[s])?(kr(e,n,c,s,r),kt(t)&&function(e,t){const n=zt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,t.tagName||"",s):r,Mt(i)?i.setProperty(l,s,r):On(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}function sr(e,t,n,s){let r=!1;if(Yt()){const i=function(e,t,n){const s=e.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];Es(n,o.selectors,!1)&&(r||(r=[]),Un($n(n,t),e,o.type),At(o)?(2&n.flags&&fs(n),lr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===s?null:{"":-1};if(null!==i){let s=0;r=!0,ur(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}ar(e,n,i.length);let a=!1,l=!1;for(let r=0;r<i.length;r++){const c=i[r];n.mergedAttrs=Vn(n.mergedAttrs,c.hostAttrs),hr(e,t,c),cr(e.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-wt),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-wt),l=!0),rr(e,c),s+=c.hostVars}!function(e,t){const n=t.directiveEnd,s=e.data,r=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=s[l],n=e.inputs,c=null===r||gs(t)?null:pr(n,r);i.push(c),o=tr(n,l,o),a=tr(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n),ir(e,t,s)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);s.push(t[e],r)}}}(n,s,o)}return n.mergedAttrs=Vn(n.mergedAttrs,n.attrs),r}function rr(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function ir(e,t,n){for(let s=0;s<n;s++)t.push(Ts),e.blueprint.push(Ts),e.data.push(null)}function or(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ar(e,t,n){const s=wt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(s,r,n)}function lr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function cr(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;At(t)&&(n[""]=e)}}function ur(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function hr(e,t,n){e.data.push(n);const s=n.factory||(n.factory=bt(n.type)),r=new An(s,At(n),null);e.blueprint.push(r),t.push(r)}function dr(e,t,n){const s=Ht(t,e),r=Ys(n),i=e[10],o=gr(e,qs(e,r,null,n.onPush?64:16,s,t,i,i.createRenderer(s,n)));e[t.index]=o}function fr(e,t,n,s,r,i){const o=i[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const r=o[t++],i=o[t++],a=o[t++];null!==e?s.setInput(n,a,r,i):n[i]=a}}}function pr(e,t){let n=null,s=0;for(;s<t.length;){const r=t[s];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[s+1])),s+=2}else s+=2;else s+=4}return n}function mr(e,t,n,s){return new Array(e,!0,!1,t,null,0,s,n,null,null)}function _r(e,t){const n=zt(t,e);if(Zt(n)){const e=n[1];80&n[2]?Qs(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let s=Is(t);null!==s;s=Os(s))for(let t=Ct;t<s.length;t++){const n=s[t];if(1024&n[2]){const e=n[1];Qs(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let s=0;s<n.length;s++){const r=zt(n[s],t);Zt(r)&&r[5]>0&&e(r)}}(n)}}function yr(e,t){const n=zt(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),$s(s,n,n[8])}function gr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function br(e){for(;e;){e[2]|=64;const t=As(e);if(It(e)&&!t)return e;e=t}return null}function vr(e,t,n){const s=t[10];s.begin&&s.begin();try{Qs(e,t,e.template,n)}catch(r){throw xr(t,r),r}finally{s.end&&s.end()}}function wr(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=$t(n),r=s[1];Zs(r,s,r.template,n)}}(e[8])}function Cr(e,t,n){hn(0),t(e,n)}const Er=(()=>Promise.resolve(null))();function Sr(e){return e[7]||(e[7]=[])}function xr(e,t){const n=e[9],s=n?n.get(ls,null):null;s&&s.handleError(t)}function kr(e,t,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,s,a):l[a]=r}}function Tr(e,t){const n=t[3];return-1===e.index?St(n)?n:null:n}function Ar(e,t){const n=Tr(e,t);return n?Br(t[11],n[7]):null}function Ir(e,t,n,s,r){if(null!=s){let i,o=!1;St(s)?i=s:Et(s)&&(o=!0,s=s[0]);const a=Lt(s);0===e&&null!==n?null==r?jr(t,n,a):Mr(t,n,a,r||null):1===e&&null!==n?Mr(t,n,a,r||null):2===e?function(e,t,n){const s=Br(e,t);s&&function(e,t,n,s){Mt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==Lt(n)&&Ir(t,e,s,i,r);for(let o=Ct;o<n.length;o++){const r=n[o];Qr(r[1],r,e,t,s,i)}}(t,e,i,n,r)}}function Or(e,t,n,s){const r=Ar(e.node,t);r&&Qr(e,t,t[11],n?1:2,r,s)}function Vr(e,t){const n=e[9],s=n.indexOf(t);1024&t[2]&&Kt(t[3],-1),n.splice(s,1)}function Dr(e,t){if(e.length<=Ct)return;const n=Ct+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&Vr(r,s),t>0&&(e[n-1][4]=s[4]);const i=tt(e,Ct+t);Or(s[1],s,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function Nr(e,t){if(!(256&t[2])){const n=t[11];Mt(n)&&n.destroyNode&&Qr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Fr(e[1],e);for(;t;){let n=null;if(Et(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Et(t)&&Fr(t[1],t),t=Pr(t,e);null===t&&(t=e),Et(t)&&Fr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pr(e,t){let n;return Et(e)&&(n=e[6])&&2===n.type?Tr(n,e):e[3]===t?null:e[3]}function Fr(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 s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof An)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const r=n[s+1],i="function"==typeof r?r(t):Lt(t[r]),o=e[n[s+2]],a=n[s+3];"boolean"==typeof a?i.removeEventListener(n[s],o,a):a>=0?e[a]():e[-a].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Mt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&St(t[3])){s!==t[3]&&Vr(s,t);const n=t[19];null!==n&&n.detachView(e)}}}function Rr(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?Ar(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Ht(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==at.ShadowDom&&n!==at.Native)return null}return Ht(s,n)}function Mr(e,t,n,s){Mt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function jr(e,t,n){Mt(e)?e.appendChild(t,n):t.appendChild(n)}function Lr(e,t,n,s){null!==s?Mr(e,t,n,s):jr(e,t,n)}function Br(e,t){return Mt(e)?e.parentNode(t):t.parentNode}function Hr(e,t){if(2===e.type){const n=Tr(e,t);return null===n?null:zr(n.indexOf(t,Ct)-Ct,n)}return 4===e.type||5===e.type?Ht(e,t):null}function qr(e,t,n,s){const r=Rr(e,s,t);if(null!=r){const e=t[11],i=Hr(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Lr(e,r,n[t],i);else Lr(e,r,n,i)}}function zr(e,t){const n=Ct+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return function e(t,n){if(null!==n){const s=n.type;if(3===s)return Ht(n,t);if(0===s)return zr(-1,t[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return e(t,s);{const e=t[n.index];return St(e)?zr(-1,e):Lt(e)}}{const s=t[16],r=s[6],i=As(s),o=r.projection[n.projection];return null!=o?e(i,o):e(t,n.next)}}return null}(e,s)}return t[7]}function $r(e,t,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===t&&(a&&ds(Lt(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?($r(e,t,n.child,s,r,i,!1),Ir(t,e,r,a,i)):1===l?Zr(e,t,s,n,r,i):Ir(t,e,r,a,i)),n=o?n.projectionNext:n.next}}function Qr(e,t,n,s,r,i){$r(n,s,e.node.child,t,r,i,!1)}function Zr(e,t,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ir(t,e,r,a[l],i);else $r(e,t,a,o[3],r,i,!0)}function Wr(e,t,n){Mt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ur(e,t,n){Mt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class Kr{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,s,r,i=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&r.push(Lt(o)),St(o))for(let t=Ct;t<o.length;t++){const n=o[t],s=n[1].firstChild;null!==s&&e(n[1],n,s,r)}const a=s.type;if(4===a||5===a)e(t,n,s.child,r);else if(1===a){const t=n[16],i=t[6].projection[s.projection];if(Array.isArray(i))r.push(...i);else{const n=As(t);e(n[1],n,i,r,!0)}}s=i?s.projectionNext:s.next}return r}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Nr(this._lView[1],this._lView)}onDestroy(e){Xs(this._lView[1],this._lView,null,e)}markForCheck(){br(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){vr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){on(!0);try{vr(e,t,n)}finally{on(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Qr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Gr extends Kr{constructor(e){super(e),this._view=e}detectChanges(){wr(this._view)}checkNoChanges(){!function(e){on(!0);try{wr(e)}finally{on(!1)}}(this._view)}get context(){return null}}let Yr,Jr,Xr;function ei(e,t,n){return Yr||(Yr=class extends e{}),new Yr(Ht(t,n))}function ti(e,t,n,s){return Jr||(Jr=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=qs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),$s(t,n,e),new Kr(n)}}),0===n.type?new Jr(s,n,ei(t,n,s)):null}function ni(e,t,n,s){let r;Xr||(Xr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return ei(t,this._hostTNode,this._hostView)}get injector(){return new ns(this._hostTNode,this._hostView)}get parentInjector(){const e=Wn(this._hostTNode,this._hostView),t=Rn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=Fn(e),r=t,i=t[6];for(;s>1;)r=r[15],i=r[6],s--;return i}(e,this._hostView,this._hostTNode);return Nn(e)&&null!=n?new ns(n,t):new ns(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-Ct}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(Je,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),St(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Xr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=Ct+s,i=n.length;s>0&&(n[r-1][4]=t),s<i-Ct?(t[4]=n[r],et(n,Ct+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(s,n,this._lContainer,r),Or(s,n,!0,zr(r,this._lContainer)),e.attachToViewContainerRef(this),et(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Dr(this._lContainer,t);n&&(tt(this._lContainer[8],t),Nr(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Dr(this._lContainer,t);return n&&null!=tt(this._lContainer[8],t)?new Kr(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=s[n.index];if(St(i))r=i;else{let e;if(4===n.type)e=Lt(i);else if(e=s[11].createComment(""),It(s)){const t=s[11],r=Ht(n,s);Mr(t,Br(t,r),e,function(e,t){return Mt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else qr(s[1],s,e,n);s[n.index]=r=mr(i,s,e,n),gr(s,r)}return new Xr(r,n,s)}let si=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ri(),e})();const ri=function(e=!1){return function(e,t,n){if(!n&&kt(e)){const n=zt(e.index,t);return new Kr(n,n)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Kr(t[16],t):null}(en(),Jt(),e)},ii=new Re("Set Injector scope."),oi={},ai={},li=[];let ci=void 0;function ui(){return void 0===ci&&(ci=new Ye),ci}function hi(e,t=null,n=null,s){return new di(e,n,t||ui(),s)}class di{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Xe(t,n=>this.processProvider(n,e,t)),Xe([e],e=>this.processInjectorType(e,[],r)),this.records.set(Me,mi(void 0,this));const i=this.records.get(ii);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:ge(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=je,n=ie.Default){this.assertNotDestroyed();const s=$e(this);try{if(!(n&ie.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Re)&&ue(e);t=n&&this.injectableDefInScope(n)?mi(fi(e),oi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ie.Self?ui():this.parent).get(e,t=n&ie.Optional&&t===je?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(ge(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[Be]&&r.unshift(t[Be]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=ge(t);if(Array.isArray(t))r=t.map(ge).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):ge(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(Le,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{$e(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ge(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=Ce(e)))return!1;let s=de(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=de(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Xe(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];Xe(s,e=>this.processProvider(e,n,s||li))}}this.injectorDefTypes.add(i),this.records.set(i,mi(s.factory,oi));const a=s.providers;if(null!=a&&!o){const t=e;Xe(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=yi(e=Ce(e))?e:Ce(e&&e.provide);const r=function(e,t,n){return _i(e)?mi(void 0,e.useValue):mi(pi(e,t,n),oi)}(e,t,n);if(yi(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&ps()}else{let t=this.records.get(s);t?void 0===t.multi&&ps():(t=mi(void 0,oi,!0),t.factory=()=>Ge(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===ai?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(ge(e)):t.value===oi&&(t.value=ai,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function fi(e){const t=ue(e),n=null!==t?t.factory:bt(e);if(null!==n)return n;const s=de(e);if(null!==s)return s.factory;if(e instanceof Re)throw new Error(`Token ${ge(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=nt(t,"?");throw new Error(`Can't resolve all parameters for ${ge(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[fe]||e[_e]||e[me]&&e[me]());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 pi(e,t,n){let s=void 0;if(yi(e)){const t=Ce(e);return bt(t)||fi(t)}if(_i(e))s=()=>Ce(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Ge(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>We(Ce(e.useExisting));else{const r=Ce(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${ge(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return bt(r)||fi(r);s=()=>new r(...Ge(e.deps))}var r;return s}function mi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _i(e){return null!==e&&"object"==typeof e&&He in e}function yi(e){return"function"==typeof e}const gi=function(e,t,n){return function(e,t=null,n=null,s){const r=hi(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let bi=(()=>{class e{static create(e,t){return Array.isArray(e)?gi(e,t,""):gi(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=je,e.NULL=new Ye,e.\u0275prov=le({token:e,providedIn:"any",factory:()=>We(Me)}),e.__NG_ELEMENT_ID__=-1,e})();function vi(e,t,n){let s=n?e.styles:null,r=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?r=be(r,e):2==i&&(s=be(s,e+": "+t[++o]+";"))}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=r:e.classesWithoutHost=r}let wi=null;function Ci(){if(!wi){const e=Ae.Symbol;if(e&&e.iterator)wi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(wi=n)}}}return wi}function Ei(e){return!!Si(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ci()in e)}function Si(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ki(e,t,n,s){const r=Jt();return xi(r,an(),t)&&(Xt(),function(e,t,n,s,r,i){const o=Ht(e,t),a=t[11];if(null==s)Mt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const t=null==r?Mn(s):r(s,e.tagName||"",n);Mt(a)?a.setAttribute(o,n,t,i):i?o.setAttributeNS(i,n,t):o.setAttribute(n,t)}}(wn(),r,e,t,n,s)),ki}function Ti(e,t,n,s,r,i,o,a){const l=Jt(),c=Xt(),u=e+wt,h=c.firstCreatePass?function(e,t,n,s,r,i,o,a,l){const c=t.consts,u=zs(t,n[6],e,0,o||null,Wt(c,a));sr(t,n,u,Wt(c,l)),Cn(t,u);const h=u.tViews=Js(2,-1,s,r,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),d=er(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(e,c,l,t,n,s,r,i,o):c.data[u];tn(h,!1);const d=l[11].createComment("");qr(c,l,d,h),ds(d,l),gr(l,l[u]=mr(d,l,d,h)),Tt(h)&&Ks(c,l,h),null!=o&&Gs(l,h,a)}function Ai(e,t=ie.Default){const n=Jt();return null==n?We(e,t):Kn(en(),n,Ce(e),t)}function Ii(e,t,n){const s=Jt();return xi(s,an(),t)&&nr(Xt(),wn(),s,e,t,s[11],n,!1),Ii}function Oi(e,t,n,s,r){const i=r?"class":"style";kr(e,n,t.inputs[i],i,s)}function Vi(e,t,n,s){const r=Jt(),i=Xt(),o=wt+e,a=r[11],l=r[o]=Hs(t,a,Gt.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,s,r,i,o){const a=t.consts,l=Wt(a,i),c=zs(t,n[6],e,3,r,l);return sr(t,n,c,Wt(a,o)),null!==c.attrs&&vi(c,c.attrs,!1),null!==c.mergedAttrs&&vi(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,i,r,0,t,n,s):i.data[o];tn(c,!0);const u=c.mergedAttrs;null!==u&&In(a,l,u);const h=c.classes;null!==h&&Ur(a,l,h);const d=c.styles;null!==d&&Wr(a,l,d),qr(i,r,l,c),0===Gt.lFrame.elementDepthCount&&ds(l,r),Gt.lFrame.elementDepthCount++,Tt(c)&&(Ks(i,r,c),Us(i,c,r)),null!==s&&Gs(r,c)}function Di(){let e=en();nn()?sn():(e=e.parent,tn(e,!1));const t=e;Gt.lFrame.elementDepthCount--;const n=Xt();n.firstCreatePass&&(Cn(n,e),xt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Oi(n,t,Jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Oi(n,t,Jt(),t.stylesWithoutHost,!1)}function Ni(e,t,n,s){Vi(e,t,n,s),Di()}function Pi(e,t,n){const s=Jt(),r=Xt(),i=e+wt,o=r.firstCreatePass?function(e,t,n,s,r){const i=t.consts,o=Wt(i,s),a=zs(t,n[6],e,4,"ng-container",o);return null!==o&&vi(a,o,!0),sr(t,n,a,Wt(i,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,r,s,t,n):r.data[i];tn(o,!0);const a=s[i]=s[11].createComment("");qr(r,s,a,o),ds(a,s),Tt(o)&&(Ks(r,s,o),Us(r,o,s)),null!=n&&Gs(s,o)}function Fi(){let e=en();const t=Xt();nn()?sn():(e=e.parent,tn(e,!1)),t.firstCreatePass&&(Cn(t,e),xt(e)&&t.queries.elementEnd(e))}function Ri(e){return!!e&&"function"==typeof e.then}function Mi(e,t,n=!1,s){const r=Jt(),i=Xt(),o=en();return function(e,t,n,s,r,i,o=!1,a){const l=Tt(s),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=Sr(t);let h=!0;if(3===s.type){const d=Ht(s,t),f=a?a(d):lt,p=f.target||d,m=u.length,_=a?e=>a(Lt(e[s.index])).target:s.index;if(Mt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const e=r[i];if(e===n&&r[i+1]===s){const e=t[7],n=r[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Li(s,t,i,!1);const e=n.listen(f.name||p,r,i);u.push(i,e),c&&c.push(r,_,m,m+1)}}else i=Li(s,t,i,!0),p.addEventListener(r,i,o),u.push(i),c&&c.push(r,_,m,o)}const d=s.outputs;let f;if(h&&null!==d&&(f=d[r])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=t[f[n]][f[n+1]].subscribe(i),o=u.length;u.push(i,e),c&&c.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,e,t,n,s),Mi}function ji(e,t,n){try{return!1!==t(n)}catch(s){return xr(e,s),!1}}function Li(e,t,n,s){return function r(i){if(i===Function)return n;const o=2&e.flags?zt(e.index,t):t;0==(32&t[2])&&br(o);let a=ji(t,n,i),l=r.__ngNextListenerFn__;for(;l;)a=ji(t,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function Bi(e=1){return function(e){return(Gt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Gt.lFrame.contextLView))[8]}(e)}function Hi(e,t){let n=null;const s=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const i=t[r];if("*"!==i){if(null===s?Es(e,i,!0):Ss(s,i))return r}else n=r}return n}function qi(e,t=0,n){const s=Jt(),r=Xt(),i=zs(r,s[6],e,1,null,n||null);null===i.projection&&(i.projection=t),sn(),function(e,t,n){Zr(t[11],0,t,n,Rr(e,n,t),Hr(n.parent||t[6],t))}(r,s,i)}const zi=[];function $i(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?Fs(i):Ms(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Qi(e[a],t)&&(l=!0,e[a+1]=s?Ls(n):Rs(n)),a=s?Fs(n):Ms(n)}l&&(e[n+1]=s?Rs(i):Ls(i))}function Qi(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&it(e,t)>=0}function Zi(e,t){return function(e,t,n,s){const r=Jt(),i=Xt(),o=function(e){const t=Gt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();i.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[bn()+wt],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(i)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Gt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=t.residualClasses;if(null===r)0===t.classBindings&&(n=Ui(n=Wi(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Wi(r,e,t,n,s),null===i){let n=function(e,t,n){const s=t.classBindings;if(0!==Ms(s))return e[Fs(s)]}(e,t);void 0!==n&&Array.isArray(n)&&(n=Wi(null,e,t,n[1],s),n=Ui(n,t.attrs,s),function(e,t,n,s){e[Fs(t.classBindings)]=s}(e,t,0,n))}else i=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<r;i++)s=Ui(s,e[i].hostAttrs,true);return Ui(s,t.attrs,true)}(e,t)}return void 0!==i&&(t.residualClasses=i),n}(r,i,t,s),function(e,t,n,s,r,i){let o=t.classBindings,a=Fs(o),l=Ms(o);e[s]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||it(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Fs(e[a+1]);e[s+1]=Ps(t,a),0!==t&&(e[t+1]=js(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=Ps(a,0),0!==a&&(e[a+1]=js(e[a+1],s)),a=s;else e[s+1]=Ps(l,0),0===a?a=s:e[l+1]=js(e[l+1],s),l=s;u&&(e[s+1]=Rs(e[s+1])),$i(e,c,s,!0),$i(e,c,s,!1),function(e,t,n,s,r){const i=e.residualClasses;null!=i&&"string"==typeof t&&it(i,t)>=0&&(n[s+1]=Ls(n[s+1]))}(t,c,e,s),o=Ps(a,l),t.classBindings=o}(r,i,t,n,o)}}(i,e,o,true),t!==Ts&&xi(r,o,t)&&function(e,t,n,s,r,i,o,a){if(3!==t.type)return;const l=e.data,c=l[a+1];Gi(1==(1&c)?Ki(l,t,n,r,Ms(c),o):void 0)||(Gi(i)||function(e){return 2==(2&e)}(c)&&(i=Ki(l,null,n,r,a,o)),function(e,t,n,s,r){const i=Mt(e);r?i?e.addClass(n,s):n.classList.add(s):i?e.removeClass(n,s):n.classList.remove(s)}(s,0,Bt(bn(),n),r,i))}(i,i.data[bn()+wt],r,r[11],e,r[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=ge(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e))),e}(t),true,o)}(e,t),Zi}function Wi(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=t[a],s=Ui(s,i.hostAttrs,r),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),s}function Ui(e,t,n){const s=n?1:2;let r=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?r=o:r===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),st(e,o,!!n||t[++i]))}return void 0===e?null:e}function Ki(e,t,n,s,r,i){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===Ts&&(u=c?zi:void 0);let h=c?rt(u,s):l===s?u:void 0;if(i&&!Gi(h)&&(h=rt(t,s)),Gi(h)&&(a=h,o))return a;const d=e[r+1];r=o?Fs(d):Ms(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=rt(e,s))}return a}function Gi(e){return void 0!==e}function Yi(e,t=""){const n=Jt(),s=Xt(),r=e+wt,i=s.firstCreatePass?zs(s,n[6],e,3,null,null):s.data[r],o=n[r]=function(e,t){return Mt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);qr(s,n,o,i),tn(i,!1)}function Ji(e){return Xi("",e,""),Ji}function Xi(e,t,n){const s=Jt(),r=function(e,t,n,s){return xi(e,an(),n)?t+Mn(n)+s:Ts}(s,e,t,n);return r!==Ts&&function(e,t,n){const s=Bt(t,e),r=e[11];Mt(r)?r.setValue(s,n):s.textContent=n}(s,bn(),r),Xi}function eo(e,t,n){const s=Jt();return xi(s,an(),t)&&nr(Xt(),wn(),s,e,t,s[11],n,!0),eo}function to(e,t){const n=$t(e)[1],s=n.data.length-1;Cn(n,{directiveStart:s,directiveEnd:s+1})}function no(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(At(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=so(e.inputs),t.declaredInputs=so(e.declaredInputs),t.outputs=so(e.outputs);const n=r.hostBindings;n&&oo(e,n);const i=r.viewQuery,o=r.contentQueries;if(i&&ro(e,i),o&&io(e,o),ae(e.inputs,r.inputs),ae(e.declaredInputs,r.declaredInputs),ae(e.outputs,r.outputs),At(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let s=0;s<t.length;s++){const r=t[s];r&&r.ngInherit&&r(e),r===no&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let s=e.length-1;s>=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=Vn(r.hostAttrs,n=Vn(n,r.hostAttrs))}}(s)}function so(e){return e===lt?{}:e===ct?[]:e}function ro(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function io(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function oo(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}function ao(e,t,n,s,r){if(e=Ce(e),Array.isArray(e))for(let i=0;i<e.length;i++)ao(e[i],t,n,s,r);else{const i=Xt(),o=Jt();let a=yi(e)?e:Ce(e.provide),l=pi(e);const c=en(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(yi(e)||!e.multi){const s=new An(l,r,Ai),f=uo(a,t,r?u:u+d,h);-1===f?(Un($n(c,o),i,a),lo(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[f]=s,o[f]=s)}else{const f=uo(a,t,u+d,h),p=uo(a,t,u,u+d),m=f>=0&&n[f],_=p>=0&&n[p];if(r&&!_||!r&&!m){Un($n(c,o),i,a);const u=function(e,t,n,s,r){const i=new An(e,n,Ai);return i.multi=[],i.index=t,i.componentProviders=0,co(i,r,s&&!n),i}(r?fo:ho,n.length,r,s,l);!r&&_&&(n[p].providerFactory=u),lo(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else lo(i,e,f>-1?f:p,co(n[r?p:f],l,!r&&s));!r&&s&&_&&n[p].componentProviders++}}}function lo(e,t,n,s){const r=yi(t);if(r||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[s,i]):o[e+1].push(s,i)}else o.push(n,i)}}}function co(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uo(e,t,n,s){for(let r=n;r<s;r++)if(t[r]===e)return r;return-1}function ho(e,t,n,s){return po(this.multi,[])}function fo(e,t,n,s){const r=this.multi;let i;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Xn(n,n[1],this.providerFactory.index,s);i=t.slice(0,e),po(r,i);for(let n=e;n<t.length;n++)i.push(t[n])}else i=[],po(r,i);return i}function po(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function mo(e,t=[]){return n=>{n.providersResolver=(n,s)=>function(e,t,n){const s=Xt();if(s.firstCreatePass){const r=At(e);ao(n,s.data,s.blueprint,r,!0),ao(t,s.data,s.blueprint,r,!1)}}(n,s?s(e):e,t)}}class _o{}class yo{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ge(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let go=(()=>{class e{}return e.NULL=new yo,e})(),bo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>vo(e),e})();const vo=function(e){return ei(e,en(),Jt())};class wo{}var Co=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Eo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>So(),e})();const So=function(){const e=Jt(),t=zt(en().index,e);return function(e){const t=e[11];if(Mt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Et(t)?t:e)};let xo=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>null}),e})();class ko{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const To=new ko("10.1.0");class Ao{constructor(){}supports(e){return Ei(e)}create(e){return new Oo(e)}}const Io=(e,t)=>t;class Oo{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Io}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<Po(n,s,r)?t:n,o=Po(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;t<=i&&i<e&&(r[n]=s+1)}r[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ei(e))throw new Error(`Error trying to diff '${ge(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,r=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,t),i=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ci()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new Vo(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new No),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new No),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Vo{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Do{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class No{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Do,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Po(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+t+r}class Fo{constructor(){}supports(e){return e instanceof Map||Si(e)}create(){return new Ro}}class Ro{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Si(e)))throw new Error(`Error trying to diff '${ge(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Mo(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Mo{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let jo=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new e([new Ao])}),e})(),Lo=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new e([new Fo])}),e})();const Bo=[new Fo],Ho=new jo([new Ao]),qo=new Lo(Bo);let zo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$o(e,bo),e})();const $o=function(e,t){return ti(e,t,en(),Jt())};let Qo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Zo(e,bo),e})();const Zo=function(e,t){return ni(e,t,en(),Jt())},Wo={};class Uo extends go{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=gt(e);return new Yo(t,this.ngModule)}}function Ko(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Go=new Re("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ln});class Yo extends _o{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ks).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ko(this.componentDef.inputs)}get outputs(){return Ko(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,Wo,r);return i!==Wo||s===Wo?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(wo,jt),o=r.get(xo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Mt(e))return e.selectRootElement(t,n===at.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Hs(l,i.createRenderer(null,this.componentDef),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)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:Er,playerHandler:null,flags:0},d=Js(0,-1,null,1,0,null,null,null,null,null),f=qs(null,d,h,u,null,null,i,a,o,r);let p,m;fn(f,null);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=zs(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(vi(a,l,!0),null!==e&&(In(r,e,l),null!==a.classes&&Ur(r,e,a.classes),null!==a.styles&&Wr(r,e,a.styles)));const c=s.createRenderer(e,t),u=qs(n,Ys(t),null,t.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(Un($n(a,n),o,t.type),lr(o,a),ur(a,n.length,1)),gr(n,u),n[20]=u}(c,this.componentDef,f,i,a);if(c)if(n)In(a,c,["ng-version",To.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s<e.length;){let i=e[s];if("string"==typeof i)2===r?""!==i&&t.push(i,e[++s]):8===r&&n.push(i);else{if(!ws(r))break;r=i}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&In(a,c,e),t&&t.length>0&&Ur(a,c,t.join(" "))}if(m=qt(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}p=function(e,t,n,s,r){const i=n[1],o=function(e,t,n){const s=en();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ar(e,s,1),hr(e,t,n));const r=Xn(t,e,t.length-1,s);ds(r,t);const i=Ht(s,t);return i&&ds(i,t),r}(i,n,t);s.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=en();if(i.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){vn(a.index-wt);const e=n[1];rr(e,t),ir(e,n,t.hostVars),or(t,o)}return o}(e,this.componentDef,f,h,[to]),$s(d,f,null)}finally{gn()}const _=new Jo(this.componentType,p,ei(bo,m,f),f,m);return d.node.child=m,_}}class Jo extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new Gr(s),function(e,t,n,s){let r=e.node;null==r&&(e.node=r=er(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new ns(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Xo=void 0;var ea=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ta={};function na(e){return e in ta||(ta[e]=Ae.ng&&Ae.ng.common&&Ae.ng.common.locales&&Ae.ng.common.locales[e]),ta[e]}var sa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const ra="en-US";let ia=ra;function oa(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(ia=e.toLowerCase().replace(/_/g,"-"))}const aa=new Map;class la extends Je{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Uo(this);const n=vt(e),s=e[Ne]||null;s&&oa(s),this._bootstrapComponents=Bn(n.bootstrap),this._r3Injector=hi(e,t,[{provide:Je,useValue:this},{provide:go,useValue:this.componentFactoryResolver}],ge(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=bi.THROW_IF_NOT_FOUND,n=ie.Default){return e===bi||e===Je||e===Me?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ca extends class{}{constructor(e){super(),this.moduleType=e,null!==vt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ge(t)} vs ${ge(t.name)}`)})(e,aa.get(e),t),aa.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new la(this.moduleType,e)}}const ua=class extends E{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,i=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return e instanceof h&&e.add(o),o}};function ha(){return this._results[Ci()]()}class da{constructor(){this.dirty=!0,this._results=[],this.changes=new ua,this.length=0;const e=Ci(),t=da.prototype;t[e]||(t[e]=ha)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?(n===t&&(n=t.slice(0,s)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fa{constructor(e){this.queryList=e,this.matches=null}clone(){return new fa(this.queryList)}setDirty(){this.queryList.setDirty()}}class pa{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);s.push(this.queries[n.indexInDeclarationView].clone())}return new pa(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Oa(e,t).matches&&this.queries[t].setDirty()}}class ma{constructor(e,t,n,s=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=s}}class _a{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,s);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new _a(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class ya{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new ya(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(e,t,ga(t,r)),this.matchTNodeWithReadOption(e,t,Jn(t,e,r,!1,!1))}else n===zo?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Jn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===bo||s===Qo||s===zo&&0===t.type)this.addMatch(t.index,-2);else{const n=Jn(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function ga(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function ba(e,t,n,s){return-1===n?function(e,t){return 3===e.type||4===e.type?ei(bo,e,t):0===e.type?ti(zo,bo,e,t):null}(t,e):-2===n?function(e,t,n){return n===bo?ei(bo,t,e):n===zo?ti(zo,bo,t,e):n===Qo?ni(Qo,bo,t,e):void 0}(e,t,s):Xn(e,e[1],n,t)}function va(e,t,n,s){const r=t[19].queries[s];if(null===r.matches){const s=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const r=i[e];o.push(r<0?null:ba(t,s[r],i[e+1],n.metadata.read))}r.matches=o}return r.matches}function wa(e){const t=Jt(),n=Xt(),s=un();hn(s+1);const r=Oa(n,s);if(e.dirty&&Qt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const i=r.crossesNgTemplate?function e(t,n,s,r){const i=t.queries.getByIndex(s),o=i.matches;if(null!==o){const a=va(t,n,i,s);for(let t=0;t<o.length;t+=2){const s=o[t];if(s>0)r.push(a[t/2]);else{const i=o[t+1],a=n[-s];for(let t=Ct;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,i,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const s=t[n];e(s[1],s,i,r)}}}}}return r}(n,t,s,[]):va(n,t,r,s);e.reset(i),e.notifyOnChanges()}return!0}return!1}function Ca(e,t,n){Ea(Xt(),Jt(),e,t,n,!1)}function Ea(e,t,n,s,r,i){e.firstCreatePass&&(Ia(e,new ma(n,s,i,r),-1),i&&(e.staticViewQueries=!0)),Aa(e,t)}function Sa(e,t,n,s){ka(Xt(),Jt(),t,n,s,!1,en(),e)}function xa(e,t,n,s){ka(Xt(),Jt(),t,n,s,!0,en(),e)}function ka(e,t,n,s,r,i,o,a){e.firstCreatePass&&(Ia(e,new ma(n,s,i,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,a),i&&(e.staticContentQueries=!0)),Aa(e,t)}function Ta(){return e=Jt(),t=un(),e[19].queries[t].queryList;var e,t}function Aa(e,t){const n=new da;Xs(e,t,n,n.destroy),null===t[19]&&(t[19]=new pa),t[19].queries.push(new fa(n))}function Ia(e,t,n){null===e.queries&&(e.queries=new _a),e.queries.track(new ya(t,n))}function Oa(e,t){return e.queries.getByIndex(t)}const Va=new Re("Application Initializer");let Da=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ri(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(We(Va,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Na=new Re("AppId"),Pa={provide:Na,useFactory:function(){return`${Fa()}${Fa()}${Fa()}`},deps:[]};function Fa(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ra=new Re("Platform Initializer"),Ma=new Re("Platform ID"),ja=new Re("appBootstrapListener");let La=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ba=new Re("LocaleId"),Ha=new Re("DefaultCurrencyCode");class qa{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const za=function(e){return new ca(e)},$a=za,Qa=function(e){return Promise.resolve(za(e))},Za=function(e){const t=za(e),n=Bn(vt(e).declarations).reduce((e,t)=>{const n=gt(t);return n&&e.push(new Yo(n)),e},[]);return new qa(t,n)},Wa=Za,Ua=function(e){return Promise.resolve(Za(e))};let Ka=(()=>{class e{constructor(){this.compileModuleSync=$a,this.compileModuleAsync=Qa,this.compileModuleAndAllComponentsSync=Wa,this.compileModuleAndAllComponentsAsync=Ua}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ga=(()=>Promise.resolve(0))();function Ya(e){"undefined"==typeof Zone?Ga.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ja{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ua(!1),this.onMicrotaskEmpty=new ua(!1),this.onStable=new ua(!1),this.onError=new ua(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Ae.requestAnimationFrame,t=Ae.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nl(e),tl(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nl(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,i,o,a)=>{try{return sl(e),n.invokeTask(r,i,o,a)}finally{t&&"eventTask"===i.type&&t(),rl(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return sl(e),t.invoke(s,r,i,o,a)}finally{rl(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,nl(e),tl(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ja.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ja.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,el,Xa,Xa);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Xa(){}const el={};function tl(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 nl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function sl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function rl(e){e._nesting--,tl(e)}class il{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ua,this.onMicrotaskEmpty=new ua,this.onStable=new ua,this.onError=new ua}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let ol=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ja.assertNotInAngularZone(),Ya(()=>{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())Ya(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),al=(()=>{class e{constructor(){this._applications=new Map,ul.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return ul.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class ll{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let cl,ul=new ll;const hl=new Re("AllowMultipleToken");function dl(e,t,n=[]){const s="Platform: "+t,r=new Re(s);return(t=[])=>{let i=fl();if(!i||i.injector.get(hl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:ii,useValue:"platform"});!function(e){if(cl&&!cl.destroyed&&!cl.injector.get(hl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cl=e.get(pl);const t=e.get(Ra,null);t&&t.forEach(e=>e())}(bi.create({providers:e,name:s}))}return function(e){const t=fl();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}(r)}}function fl(){return cl&&!cl.destroyed?cl:null}let pl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new il:("zone.js"===e?void 0:e)||new Ja({enableLongStackTrace:hs(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Ja,useValue:n}];return n.run(()=>{const t=bi.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ls,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>yl(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Ri(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(Da);return e.runInitializers(),e.donePromise.then(()=>(oa(r.injector.get(Ba,ra)||ra),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=ml({},t);return function(e,t,n){const s=new ca(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(_l);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ge(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(We(bi))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function ml(e,t){return Array.isArray(t)?t.reduce(ml,e):Object.assign(Object.assign({},e),t)}let _l=(()=>{class e{constructor(e,t,n,s,r,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=hs(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new g(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new g(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ja.assertNotInAngularZone(),Ya(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ja.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(e=>{return Q()((t=Y,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,K);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof _o?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Je),r=n.create(bi.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get(ol,null);return i&&r.injector.get(al).registerApplication(r.location.nativeElement,i),this._loadComponent(r),hs()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;yl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ja,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),yl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(We(Ja),We(La),We(bi),We(ls),We(go),We(Da))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function yl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const gl=dl(null,"core",[{provide:Ma,useValue:"unknown"},{provide:pl,deps:[bi]},{provide:al,deps:[]},{provide:La,deps:[]}]),bl=[{provide:_l,useClass:_l,deps:[Ja,La,bi,ls,go,Da]},{provide:Go,deps:[Ja],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Da,useClass:Da,deps:[[new ne,Va]]},{provide:Ka,useClass:Ka,deps:[]},Pa,{provide:jo,useFactory:function(){return Ho},deps:[]},{provide:Lo,useFactory:function(){return qo},deps:[]},{provide:Ba,useFactory:function(e){return oa(e=e||"undefined"!=typeof $localize&&$localize.locale||ra),e},deps:[[new te(Ba),new ne,new re]]},{provide:Ha,useValue:"USD"}];let vl=(()=>{class e{constructor(e){}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(_l))},providers:bl}),e})();function wl(e){return null!=e&&""+e!="false"}function Cl(e){return e instanceof bo?e.nativeElement:e}function El(...e){let t=e[e.length-1];return x(t)?(e.pop(),F(e,t)):z(e)}class Sl extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class xl extends Sl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let kl=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Tl extends kl{constructor(e,t=kl.now){super(e,()=>Tl.delegate&&Tl.delegate!==this?Tl.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Tl.delegate&&Tl.delegate!==this?Tl.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Al=new Tl(xl);class Il{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ol(e,this.predicate,this.thisArg))}}class Ol extends p{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Vl(e){return t=>t.lift(new Dl(e))}class Dl{constructor(e){this.notifier=e}call(e,t){const n=new Nl(e),s=L(this.notifier,new M(n));return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class Nl extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Pl(...e){return q(1)(El(...e))}function Fl(...e){const t=e[e.length-1];return x(t)?(e.pop(),n=>Pl(e,n,t)):t=>Pl(e,t)}class Rl{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ml(e,this.project))}}class Ml extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=L(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class jl extends xl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class Ll extends Tl{}const Bl=new Ll(jl),Hl=new g(e=>e.complete());function ql(e){return e?function(e){return new g(t=>e.schedule(()=>t.complete()))}(e):Hl}let zl=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return El(this.value);case"E":return e=this.error,new g(t=>t.error(e));case"C":return ql()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class $l extends p{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule($l.dispatch,this.delay,new Ql(e,this.destination)))}_next(e){this.scheduleMessage(zl.createNext(e))}_error(e){this.scheduleMessage(zl.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zl.createComplete()),this.unsubscribe()}}class Ql{constructor(e,t){this.notification=e,this.destination=t}}class Zl extends E{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Wl(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new v;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new w(this,e)),s&&e.add(e=new $l(e,s)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),i}_getNow(){return(this.scheduler||Bl).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(e-s[i].time<n);)i++;return r>t&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class Wl{constructor(e,t){this.time=e,this.value=t}}let Ul=null;function Kl(){return Ul}const Gl=new Re("DocumentToken");var Yl=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class Jl{}let Xl=(()=>{class e extends Jl{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=na(t);if(n)return n;const s=t.split("-")[0];if(n=na(s),n)return n;if("en"===s)return ea;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[sa.PluralCase]}(t||this.locale)(e)){case Yl.Zero:return"zero";case Yl.One:return"one";case Yl.Two:return"two";case Yl.Few:return"few";case Yl.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(We(Ba))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),ec=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new tc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){nc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){nc("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ai(Qo),Ai(zo))},e.\u0275dir=yt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class tc{constructor(){this.$implicit=null,this.ngIf=null}}function nc(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ge(t)}'.`)}class sc{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let rc,ic=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),oc=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new sc(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Ai(Qo),Ai(zo),Ai(ic,1))},e.\u0275dir=yt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),ac=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[{provide:Jl,useClass:Xl}]}),e})();try{rc="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(vm){rc=!1}let lc,cc=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!rc)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(We(Ma))},e.\u0275prov=le({factory:function(){return new e(We(Ma))},token:e,providedIn:"root"}),e})(),uc=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})();const hc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dc(){if(lc)return lc;if("object"!=typeof document||!document)return lc=new Set(hc),lc;let e=document.createElement("input");return lc=new Set(hc.filter(t=>(e.setAttribute("type",t),e.type===t))),lc}let fc;function pc(e){return function(){if(null==fc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fc=!0}))}finally{fc=fc||!1}return fc}()?e:!!e.capture}const mc=new Re("cdk-dir-doc",{providedIn:"root",factory:function(){return Ue(Gl)}});let _c=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new ua,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(We(mc,8))},e.\u0275prov=le({factory:function(){return new e(We(mc,8))},token:e,providedIn:"root"}),e})(),yc=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})();const gc=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();class bc{constructor(e){if(this.total=e,this.total<0)throw new gc}call(e,t){return t.subscribe(new vc(e,this.total))}}class vc extends p{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}const wc=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Cc=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||wc){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const n=this._document.createElement("div");n.classList.add(t),wc?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return e.\u0275fac=function(t){return new(t||e)(We(Gl),We(cc))},e.\u0275prov=le({factory:function(){return new e(We(Gl),We(cc))},token:e,providedIn:"root"}),e})();const Ec=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),Sc={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return Sc.schedule(e,0);if(void 0===window.requestAnimationFrame)return Sc.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function xc(e,t,n){let s=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return Ec.call(e,t)}(e,t)||(s=n,0))),s}class kc{constructor(e,t){this.componentFactory=t.get(go).resolveComponentFactory(e)}create(e){return new Tc(this.componentFactory,e)}}class Tc{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Zl(1),this.events=this.eventEmitters.pipe(function e(t,n){return"function"==typeof n?s=>s.pipe(e((e,s)=>R(t(e,s)).pipe(k((t,r)=>n(e,t,s,r))))):e=>e.lift(new Rl(t))}(e=>$(...e))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Ja),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Sc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=t)!==(s=this.getInputValue(e))&&(n==n||s==s)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=bi.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,s=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let i=0,o=n.length;i<o;++i){const e=n[i],o=xc(e,t,r);-1!==o&&s[o].push(e)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(_l).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(k(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Sc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const s=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=s?void 0:this.getInputValue(e);this.inputChanges[e]=new Ot(r,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Ac extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ic(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}function Oc(e,t){return new g(n=>{const s=e.length;if(0===s)return void n.complete();const r=new Array(s);let i=0,o=0;for(let a=0;a<s;a++){const l=R(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==s&&c||(o===s&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}const Vc=new Re("NgValueAccessor"),Dc={provide:Vc,useExisting:we(()=>Nc),multi:!0};let Nc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[mo([Dc])]}),e})();const Pc={provide:Vc,useExisting:we(()=>Rc),multi:!0},Fc=new Re("CompositionEventMode");let Rc=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Kl()?Kl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo),Ai(Fc,8))},e.\u0275dir=yt({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(e,t){1&e&&Mi("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[mo([Pc])]}),e})(),Mc=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e})(),jc=(()=>{class e extends Mc{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return Lc(t||e)},e.\u0275dir=yt({type:e,features:[no]}),e})();const Lc=rs(jc);class Bc extends Mc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let Hc=(()=>{class e extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Bc,2))},e.\u0275dir=yt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Zi("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[no]}),e})();function qc(e){return null==e||0===e.length}function zc(e){return null!=e&&"number"==typeof e.length}const $c=new Re("NgValidators"),Qc=new Re("NgAsyncValidators"),Zc=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wc{static min(e){return t=>{if(qc(t.value)||qc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(qc(t.value)||qc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return qc(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return qc(e.value)||Zc.test(e.value)?null:{email:!0}}static minLength(e){return t=>qc(t.value)||!zc(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>zc(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return Wc.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(qc(e.value))return null;const s=e.value;return t.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Uc);return 0==t.length?null:function(e){return Gc(Yc(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(Uc);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return Oc(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Oc(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Oc(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(k(e=>t(...e)))}return Oc(e,null)}(Yc(e,t).map(Kc)).pipe(k(Gc))}}}function Uc(e){return null!=e}function Kc(e){const t=Ri(e)?R(e):e;return t}function Gc(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Yc(e,t){return t.map(t=>t(e))}function Jc(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const Xc={provide:Vc,useExisting:we(()=>eu),multi:!0};let eu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[mo([Xc])]}),e})();const tu={provide:Vc,useExisting:we(()=>su),multi:!0};let nu=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),su=(()=>{class e{constructor(e,t,n,s){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Bc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo),Ai(nu),Ai(bi))},e.\u0275dir=yt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[mo([tu])]}),e})();const ru={provide:Vc,useExisting:we(()=>iu),multi:!0};let iu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[mo([ru])]}),e})();const ou={provide:Vc,useExisting:we(()=>au),multi:!0};let au=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[mo([ou])]}),e})();const lu={provide:Vc,useExisting:we(()=>cu),multi:!0};let cu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const s=e.item(t),r=this._getOptionValue(s.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const s=e.item(t);if(s.selected){const e=this._getOptionValue(s.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[mo([lu])]}),e})();function uu(e,t){e.validator=Wc.compose([e.validator,t.validator]),e.asyncValidator=Wc.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&hu(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&hu(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function hu(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function du(e,t){e.validator=Wc.compose([e.validator,t.validator]),e.asyncValidator=Wc.composeAsync([e.asyncValidator,t.asyncValidator])}function fu(e){return null!=e?Wc.compose(Jc(e)):null}function pu(e){return null!=e?Wc.composeAsync(Jc(e)):null}const mu=[Nc,iu,eu,au,cu,su];function _u(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const gu="VALID",bu="INVALID",vu="PENDING",wu="DISABLED";function Cu(e){return(ku(e)?e.validators:e)||null}function Eu(e){return Array.isArray(e)?fu(e):e||null}function Su(e,t){return(ku(t)?t.asyncValidators:e)||null}function xu(e){return Array.isArray(e)?pu(e):e||null}function ku(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Tu{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Eu(this._rawValidators),this._composedAsyncValidatorFn=xu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===gu}get invalid(){return this.status===bu}get pending(){return this.status==vu}get disabled(){return this.status===wu}get enabled(){return this.status!==wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Eu(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=xu(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=vu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=wu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=gu,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==gu&&this.status!==vu||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wu:gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=vu,this._hasOwnPendingAsyncValidator=!0;const t=Kc(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let s=e;return t.forEach(e=>{s=s instanceof Iu?s.controls.hasOwnProperty(e)?s.controls[e]:null:s instanceof Ou&&s.at(e)||null}),s}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ua,this.statusChanges=new ua}_calculateStatus(){return this._allControlsDisabled()?wu:this.errors?bu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vu)?vu:this._anyControlsHaveStatus(bu)?bu:gu}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ku(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Au extends Tu{constructor(e=null,t,n){super(Cu(t),Su(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Iu extends Tu{constructor(e,t,n){super(Cu(t),Su(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Au?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,s)=>{n=t(n,e,s)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ou extends Tu{constructor(e,t,n){super(Cu(t),Su(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Au?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Vu={provide:jc,useExisting:we(()=>Nu)},Du=(()=>Promise.resolve(null))();let Nu=(()=>{class e extends jc{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ua,this.form=new Iu({},fu(e),pu(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Du.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),uu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Du.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),yu(this._directives,e)})}addFormGroup(e){Du.then(()=>{const t=this._findContainer(e.path),n=new Iu({});du(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Du.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Du.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_u(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10))},e.\u0275dir=yt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Mi("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Vu]),no]}),e})();const Pu=new Re("NgModelWithFormControlWarning"),Fu={provide:Bc,useExisting:we(()=>Ru)};let Ru=(()=>{class e extends Bc{constructor(e,t,n,s){super(),this._ngModelWarningConfig=s,this.update=new ua,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);let n=void 0,s=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===Rc?n=e:(t=e,mu.some(e=>t.constructor===e)?s=e:r=e)}),r||s||n||null}(0,n)}set isDisabled(e){}ngOnChanges(t){var n,s;this._isControlChanged(t)&&(uu(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(t,this.viewModel)&&(n=e,this,s=this._ngModelWarningConfig,hs()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fu(this._rawValidators)}get asyncValidator(){return pu(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10),Ai(Vc,10),Ai(Pu,8))},e.\u0275dir=yt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[mo([Fu]),no,Vt]}),e._ngModelWarningSentOnce=!1,e})();const Mu={provide:jc,useExisting:we(()=>ju)};let ju=(()=>{class e extends jc{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new ua}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return uu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){yu(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);du(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);du(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,_u(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&uu(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=fu(this._validators);this.form.validator=Wc.compose([this.form.validator,e]);const t=pu(this._asyncValidators);this.form.asyncValidator=Wc.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10))},e.\u0275dir=yt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Mi("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Mu]),no,Vt]}),e})(),Lu=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})(),Bu=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let s=null,r=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(s=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(s=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Iu(n,{asyncValidators:r,updateOn:i,validators:s})}control(e,t,n){return new Au(e,t,n)}array(e,t,n){const s=e.map(e=>this._createControl(e));return new Ou(s,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Au||e instanceof Iu||e instanceof Ou?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Hu=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[nu],imports:[Lu]}),e})(),qu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Pu,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[Bu,nu],imports:[Lu]}),e})();class zu{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new $u(e,this.dueTime,this.scheduler))}}class $u extends p{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Qu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Qu(e){e.debouncedNext()}let Zu=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Wu=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Cl(e);return new g(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new E,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(We(Zu))},e.\u0275prov=le({factory:function(){return new e(We(Zu))},token:e,providedIn:"root"}),e})(),Uu=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new ua,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=wl(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=function(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(function(e,t=Al){return n=>n.lift(new zu(e,t))}(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Ai(Wu),Ai(bo),Ai(Ja))},e.\u0275dir=yt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),Ku=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[Zu]}),e})();"undefined"!=typeof Element&∈const Gu="cdk-high-contrast-black-on-white",Yu="cdk-high-contrast-white-on-black",Ju="cdk-high-contrast-active";let Xu=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Ju),e.remove(Gu),e.remove(Yu);const t=this.getHighContrastMode();1===t?(e.add(Ju),e.add(Gu)):2===t&&(e.add(Ju),e.add(Yu))}}}return e.\u0275fac=function(t){return new(t||e)(We(cc),We(Gl))},e.\u0275prov=le({factory:function(){return new e(We(cc),We(Gl))},token:e,providedIn:"root"}),e})();const eh=new ko("10.2.0");class th extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new th,Ul||(Ul=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=sh||(sh=document.querySelector("base"),sh)?sh.getAttribute("href"):null;return null==t?null:(n=t,nh||(nh=document.createElement("a")),nh.setAttribute("href",n),"/"===nh.pathname.charAt(0)?nh.pathname:"/"+nh.pathname);var n}resetBaseElement(){sh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let nh,sh=null;const rh=new Re("TRANSITION_ID"),ih=[{provide:Va,useFactory:function(e,t,n){return()=>{n.get(Da).donePromise.then(()=>{const n=Kl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[rh,Gl,bi],multi:!0}];class oh{static init(){var e;e=new oh,ul=e}addToWindow(e){Ae.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ae.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ae.getAllAngularRootElements=()=>e.getAllRootElements(),Ae.frameworkStabilizers||(Ae.frameworkStabilizers=[]),Ae.frameworkStabilizers.push(e=>{const t=Ae.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Kl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const ah=new Re("EventManagerPlugins");let lh=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(We(ah),We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class ch{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Kl().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}let uh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),hh=(()=>{class e extends uh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Kl().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const dh={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/"},fh=/%COMP%/g;function ph(e,t,n){for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?ph(e,r,n):(r=r.replace(fh,e),n.push(r))}return n}function mh(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _h=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new yh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case at.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new gh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case at.Native:case at.ShadowDom:return new bh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=ph(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(We(lh),We(hh),We(Na))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class yh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(dh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=dh[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=dh[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&Co.DashCase?e.style.setProperty(t,n,s&Co.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Co.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,mh(n)):this.eventManager.addEventListener(e,t,mh(n))}}class gh extends yh{constructor(e,t,n,s){super(e),this.component=n;const r=ph(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(fh,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(fh,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class bh extends yh{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===at.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=ph(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const e=document.createElement("style");e.textContent=r[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let vh=(()=>{class e extends ch{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const wh=["alt","control","meta","shift"],Ch={"\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"},Eh={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"},Sh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let xh=(()=>{class e extends ch{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kl().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(wh.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=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&&Eh.hasOwnProperty(t)&&(t=Eh[t]))}return Ch[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),wh.forEach(s=>{s!=n&&(0,Sh[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const kh=dl(gl,"browser",[{provide:Ma,useValue:"browser"},{provide:Ra,useValue:function(){th.makeCurrent(),oh.init()},multi:!0},{provide:Gl,useFactory:function(){return function(e){Rt=e}(document),document},deps:[]}]),Th=[[],{provide:ii,useValue:"root"},{provide:ls,useFactory:function(){return new ls},deps:[]},{provide:ah,useClass:vh,multi:!0,deps:[Gl,Ja,Ma]},{provide:ah,useClass:xh,multi:!0,deps:[Gl]},[],{provide:_h,useClass:_h,deps:[lh,hh,Na]},{provide:wo,useExisting:_h},{provide:uh,useExisting:hh},{provide:hh,useClass:hh,deps:[Gl]},{provide:ol,useClass:ol,deps:[Ja]},{provide:lh,useClass:lh,deps:[ah,Ja]},[]];let Ah=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Na,useValue:t.appId},{provide:rh,useExisting:Na},ih]}}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(e,12))},providers:Th,imports:[ac,vl]}),e})();"undefined"!=typeof window&&window;class Ih{}const Oh="*";function Vh(e,t){return{type:7,name:e,definitions:t,options:{}}}function Dh(e,t=null){return{type:4,styles:t,timings:e}}function Nh(e,t=null){return{type:2,steps:e,options:t}}function Ph(e){return{type:6,styles:e,offset:null}}function Fh(e,t,n){return{type:0,name:e,styles:t,options:n}}function Rh(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function Mh(e){Promise.resolve(null).then(e)}class jh{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Mh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Lh{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?Mh(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function Bh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hh(e){switch(e.length){case 0:return new jh;case 1:return e[0];default:return new Lh(e)}}function qh(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case Oh:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function zh(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&$h(n,"start",e)));break;case"done":e.onDone(()=>s(n&&$h(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&$h(n,"destroy",e)))}}function $h(e,t,n){const s=n.totalTime,r=Qh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function Qh(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function Zh(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function Wh(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Uh=(e,t)=>!1,Kh=(e,t)=>!1,Gh=(e,t,n)=>[];const Yh=Bh();(Yh||"undefined"!=typeof Element)&&(Uh=(e,t)=>e.contains(t),Kh=(()=>{if(Yh||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):Kh}})(),Gh=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let Jh=null,Xh=!1;function ed(e){Jh||(Jh=("undefined"!=typeof document?document.body:null)||{},Xh=!!Jh.style&&"WebkitAppearance"in Jh.style);let t=!0;return Jh.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Jh.style,!t&&Xh)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jh.style),t}const td=Kh,nd=Uh,sd=Gh;function rd(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let id=(()=>{class e{validateStyleProperty(e){return ed(e)}matchesElement(e,t){return td(e,t)}containsElement(e,t){return nd(e,t)}query(e,t,n){return sd(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new jh(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),od=(()=>{class e{}return e.NOOP=new id,e})();const ad="ng-enter",ld="ng-leave",cd="ng-trigger",ud=".ng-trigger",hd="ng-animating",dd=".ng-animating";function fd(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:pd(parseFloat(t[1]),t[2])}function pd(e,t){switch(t){case"s":return 1e3*e;default:return e}}function md(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=pd(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=pd(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function _d(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function yd(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else _d(e,n);return n}function gd(e,t,n){return n?t+":"+n+";":""}function bd(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=gd(0,s,e.style.getPropertyValue(s))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=gd(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function vd(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const r=Ad(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),Bh()&&bd(e))}function wd(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Ad(t);e.style[n]=""}),Bh()&&bd(e))}function Cd(e){return Array.isArray(e)?1==e.length?e[0]:Nh(e):e}const Ed=new RegExp("{{\\s*(.+?)\\s*}}","g");function Sd(e){let t=[];if("string"==typeof e){let n;for(;n=Ed.exec(e);)t.push(n[1]);Ed.lastIndex=0}return t}function xd(e,t,n){const s=e.toString(),r=s.replace(Ed,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?e:r}function kd(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Td=/-+([a-z0-9])/g;function Ad(e){return e.replace(Td,(...e)=>e[1].toUpperCase())}function Id(e,t){return 0===e||0===t}function Od(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach((function(t){n[t]=Dd(e,t)}))}}return t}function Vd(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Dd(e,t){return window.getComputedStyle(e)[t]}const Nd="*";function Pd(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(Md(r,o)),"<"!=i[0]||r==Nd&&o==Nd||t.push(Md(o,r))}(e,n,t)):n.push(e),n}const Fd=new Set(["true","1"]),Rd=new Set(["false","0"]);function Md(e,t){const n=Fd.has(e)||Rd.has(e),s=Fd.has(t)||Rd.has(t);return(r,i)=>{let o=e==Nd||e==r,a=t==Nd||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?Fd.has(e):Rd.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?Fd.has(t):Rd.has(t)),o&&a}}const jd=new RegExp("s*:selfs*,?","g");function Ld(e,t,n){return new Bd(e).build(t,n)}class Bd{constructor(e){this._driver=e}build(e,t){const n=new Hd(t);return this._resetContextStyleTimingState(n),Vd(this,Cd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(qd(e)){const t=e;Object.keys(t).forEach(e=>{Sd(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=kd(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Vd(this,Cd(e.animation),t);return{type:1,matchers:Pd(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:zd(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Vd(this,e,t)),options:zd(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Vd(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:zd(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return $d(md(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=$d(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||md(s,t),$d(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:Ph({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=Ph(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Oh?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(qd(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=Sd(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(qd(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(qd(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,f=t.currentAnimateTimings,p=f.duration;return l.forEach((e,s)=>{const i=u>0?s==h?1:u*s:r[s],o=i*p;t.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Vd(this,Cd(e.animation),t),options:zd(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:zd(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:zd(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(jd,"")),[e=e.replace(/@\*/g,ud).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,dd),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,Zh(t.collectedStyles,t.currentQuerySelector,{});const o=Vd(this,Cd(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:zd(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:md(e.timings,t.errors,!0);return{type:12,animation:Vd(this,Cd(e.animation),t),timings:n,options:null}}}class Hd{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function qd(e){return!Array.isArray(e)&&"object"==typeof e}function zd(e){var t;return e?(e=_d(e)).params&&(e.params=(t=e.params)?_d(t):null):e={},e}function $d(e,t,n){return{duration:e,delay:t,easing:n}}function Qd(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class Zd{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Wd=new RegExp(":enter","g"),Ud=new RegExp(":leave","g");function Kd(e,t,n,s,r,i={},o={},a,l,c=[]){return(new Gd).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class Gd{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new Zd;const u=new Jd(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Vd(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Qd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?fd(n.duration):null,i=null!=n.delay?fd(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Vd(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Yd);const e=fd(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Vd(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?fd(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Vd(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return md(t.params?xd(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?fd(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Yd);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Vd(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Vd(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Yd={};class Jd{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Xd(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=fd(n.duration)),null!=n.delay&&(s.delay=fd(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=xd(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new Jd(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Yd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new ef(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(Wd,"."+this._enterClassName)).replace(Ud,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Xd{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Xd(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Oh,this._currentKeyframe[e]=Oh}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=Oh})):yd(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=xd(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Oh),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=yd(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==Oh&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?kd(e.values()):[],i=t.size?kd(t.values()):[];if(n){const e=s[0],t=_d(e);e.offset=0,t.offset=1,s=[e,t]}return Qd(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class ef extends Xd{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=yd(e[0],!1);a.offset=0,r.push(a);const l=yd(e[0],!1);l.offset=tf(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=yd(e[s],!1);o.offset=tf((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return Qd(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function tf(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class nf{}class sf extends nf{normalizePropertyName(e,t){return Ad(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(rf[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const rf=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function of(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const af={};class lf{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||af,d=this.buildStyles(n,o&&o.params||af,u),f=a&&a.params||af,p=this.buildStyles(s,f,u),m=new Set,_=new Map,y=new Map,g="void"===s,b={params:Object.assign(Object.assign({},h),f)},v=c?[]:Kd(e,t,this.ast.animation,r,i,d,p,b,l,u);let w=0;if(v.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return of(t,this._triggerName,n,s,g,d,p,[],[],_,y,w,u);v.forEach(e=>{const n=e.element,s=Zh(_,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=Zh(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=kd(m.values());return of(t,this._triggerName,n,s,g,d,p,v,C,_,y,w)}}class cf{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=_d(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=xd(i,s,t)),n[e]=i})}}),n}}class uf{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new cf(e.style,e.options&&e.options.params||{})}),hf(this.states,"true","1"),hf(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new lf(e,t,this.states))}),this.fallbackTransition=new lf(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function hf(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const df=new Zd;class ff{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=Ld(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=qh(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=Kd(this._driver,t,r,ad,ld,{},{},n,df,s),i.forEach(e=>{const t=Zh(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Oh)})});const a=Hh(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,s){const r=Qh(t,"","","");return zh(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const pf="ng-animate-queued",mf="ng-animate-disabled",_f=".ng-animate-disabled",yf=[],gf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class vf{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=_d(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const wf="void",Cf=new vf(wf);class Ef{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Of(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=Zh(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=Zh(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Of(e,cd),Of(e,"ng-trigger-"+t),a[t]=Cf),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new xf(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Of(e,cd),Of(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new vf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Cf),l.value!==wf&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),s=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{wd(e,n),vd(e,s)})}return}const c=Zh(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Of(e,pf),i.onStart(()=>{Vf(e,pf)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,ud,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,wf,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Hh(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(e)[s]||Cf,o=new vf(wf),a=new xf(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==gf||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Of(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=Qh(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,zh(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Sf{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Ef(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const r=n[e[s]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(kf(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!kf(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Of(e,mf)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Vf(e,mf))}removeNode(e,t,n,s){if(kf(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return kf(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ud,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,dd,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Hh(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=gf,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,_f)&&this.markElementAsDisabled(e,!1),this.driver.query(e,_f,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Of(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Hh(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new Zd,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=If(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((e,t)=>{const n=ad+p++;f.set(t,n),e.forEach(e=>Of(e,n))});const m=[],_=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),_.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>_.add(e)):y.add(e))}const g=new Map,b=If(h,Array.from(_));b.forEach((e,t)=>{const n=ld+p++;g.set(t,n),e.forEach(e=>Of(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=f.get(t);e.forEach(e=>Vf(e,n))}),b.forEach((e,t)=>{const n=g.get(t);e.forEach(e=>Vf(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(v.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=g.get(r),d=f.get(r),p=this._buildInstruction(e,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return t.onStart(()=>wd(r,p.fromStyles)),t.onDestroy(()=>vd(r,p.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>wd(r,p.fromStyles)),t.onDestroy(()=>vd(r,p.toStyles)),void s.push(t);p.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,p.timelines),i.push({instruction:p,player:t,element:r}),p.queriedElements.forEach(e=>Zh(o,e,[]).push(t)),p.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),p.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),v.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,E=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Zh(C,t,[]).push(e),e.destroy()})});const S=m.filter(e=>Nf(e,a,l)),x=new Map;Af(x,this.driver,y,l,Oh).forEach(e=>{Nf(e,a,l)&&S.push(e)});const k=new Map;d.forEach((e,t)=>{Af(k,this.driver,new Set(e),a,"!")}),S.forEach(e=>{const t=x.get(e),n=k.get(e);x.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>vd(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(E.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>E.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,C,r,k,x);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Hh(t)),s.push(i)}}else wd(t,o.fromStyles),i.onDestroy(()=>vd(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Hh(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<m.length;O++){const e=m[O],t=e.__ng_removed;if(Vf(e,ld),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,dd,!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?Df(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==wf;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=Zh(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}wd(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new jh(t.duration,t.delay);const f=h!==a,p=function(e){const t=[];return function e(t,n){for(let s=0;s<t.length;s++){const r=t[s];r instanceof Lh?e(r.players,n):n.push(r)}}(e,t),t}((n.get(h)||yf).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),_=i.get(h),y=qh(0,this._normalizer,0,t.keyframes,m,_),g=this._buildPlayer(t,y,p);if(t.subTimeline&&s&&u.add(h),f){const t=new xf(e,o,h);t.setRealPlayer(g),l.push(t)}return g});l.forEach(e=>{Zh(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Of(e,hd));const d=Hh(h);return d.onDestroy(()=>{c.forEach(e=>Vf(e,hd)),vd(a,t.toStyles)}),u.forEach(e=>{Zh(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new jh(e.duration,e.delay)}}class xf{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new jh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>zh(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Zh(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function kf(e){return e&&1===e.nodeType}function Tf(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Af(e,t,n,s,r){const i=[];n.forEach(e=>i.push(Tf(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=bf,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>Tf(e,i[a++])),o}function If(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=r.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:s.has(o)?1:e(o),r.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function Of(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Vf(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Df(e,t,n){Hh(n).onDone(()=>e.processLeaveNode(t))}function Nf(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class Pf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Sf(e,t,n),this._timelineEngine=new ff(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=Ld(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new uf(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=Wh(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=Wh(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ff(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Mf(t[0]),t.length>1&&(s=Mf(t[t.length-1]))):t&&(n=Mf(t)),n||s?new Rf(e,n,s):null}let Rf=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&vd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vd(this._element,this._initialStyles),this._endStyles&&(vd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(wd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wd(this._element,this._endStyles),this._endStyles=null),vd(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Mf(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const r=n[s];jf(r)&&(t=t||{},t[r]=e[r])}return t}function jf(e){return"display"===e||"position"===e}const Lf="animation",Bf="animationend";class Hf{constructor(e,t,n,s,r,i,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=Wf(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s<e.length;s++)","===e.charAt(s)&&n++}(n),t=`${n}, ${t}`),Zf(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){qf(this._element,this._name,"paused")}resume(){qf(this._element,this._name,"running")}setPosition(e){const t=zf(this._element,this._name);this._position=e*this._duration,Zf(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Qf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Wf(e,"").split(","),s=$f(n,t);s>=0&&(n.splice(s,1),Zf(e,"",n.join(",")))}(this._element,this._name))}}function qf(e,t,n){Zf(e,"PlayState",n,zf(e,t))}function zf(e,t){const n=Wf(e,"");return n.indexOf(",")>0?$f(n.split(","),t):$f([n],t)}function $f(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Qf(e,t,n){n?e.removeEventListener(Bf,t):e.addEventListener(Bf,t)}function Zf(e,t,n,s){const r=Lf+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function Wf(e,t){return e.style[Lf+t]}class Uf{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Hf(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Dd(this.element,n))})}this.currentSnapshot=e}}class Kf extends jh{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=rd(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class Gf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return ed(e)}matchesElement(e,t){return td(e,t)}containsElement(e,t){return nd(e,t)}query(e,t,n){return sd(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>rd(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(e,t,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof Uf),l={};Id(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Od(e,t,l));if(0==n)return new Kf(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Ff(e,t),f=new Uf(e,t,u,n,s,r,c,d);return f.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Yf{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Dd(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Jf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Xf().toString()),this._cssKeyframesDriver=new Gf}validateStyleProperty(e){return ed(e)}matchesElement(e,t){return td(e,t)}containsElement(e,t){return nd(e,t)}query(e,t,n){return sd(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof Yf);Id(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Ff(e,t=Od(e,t=t.map(e=>yd(e,!1)),l));return new Yf(e,t,a,u)}}function Xf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let ep=(()=>{class e extends Ih{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:at.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Nh(e):e;return sp(this._renderer,null,t,"register",[n]),new tp(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(We(wo),We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class tp extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new np(this._id,e,t||{},this._renderer)}}class np{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return sp(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function sp(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const rp="@",ip="@.disabled";let op=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new ap("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new lp(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(We(wo),We(Pf),We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class ap{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==rp&&t==ip?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class lp extends ap{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==rp?"."==t.charAt(1)&&t==ip?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==rp){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=rp&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let cp=(()=>{class e extends Pf{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(We(Gl),We(od),We(nf))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const up=new Re("AnimationModuleType"),hp=[{provide:od,useFactory:function(){return"function"==typeof Xf()?new Jf:new Gf}},{provide:up,useValue:"BrowserAnimations"},{provide:Ih,useClass:ep},{provide:nf,useFactory:function(){return new sf}},{provide:Pf,useClass:cp},{provide:wo,useFactory:function(e,t,n){return new op(e,t,n)},deps:[_h,Pf,Ja]}];let dp=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:hp,imports:[Ah]}),e})();const fp=new ko("10.2.0"),pp=new Re("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let mp,_p=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const e=this._document||document;return"object"==typeof e&&e?e:null}_getWindow(){const e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return hs()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){const e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(e||!t||!t.body||"function"!=typeof getComputedStyle)return;const n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&fp.full!==eh.full&&console.warn("The Angular Material version ("+fp.full+") does not match the Angular CDK version ("+eh.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(Xu),We(pp,8),We(Gl,8))},imports:[[yc],yc]}),e})();function yp(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function gp(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new E}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}try{mp="undefined"!=typeof Intl}catch(vm){mp=!1}let bp=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:function(){return new e},token:e,providedIn:"root"}),e})();const vp=new Re("mat-label-global-options"),wp=["underline"],Cp=["connectionContainer"],Ep=["inputContainer"],Sp=["label"];function xp(e,t){1&e&&(Pi(0),Vi(1,"div",14),Ni(2,"div",15),Ni(3,"div",16),Ni(4,"div",17),Di(),Vi(5,"div",18),Ni(6,"div",15),Ni(7,"div",16),Ni(8,"div",17),Di(),Fi())}function kp(e,t){1&e&&(Vi(0,"div",19),qi(1,1),Di())}function Tp(e,t){if(1&e&&(Pi(0),qi(1,2),Vi(2,"span"),Yi(3),Di(),Fi()),2&e){const e=Bi(2);Ds(3),Ji(e._control.placeholder)}}function Ap(e,t){1&e&&qi(0,3,["*ngSwitchCase","true"])}function Ip(e,t){1&e&&(Vi(0,"span",23),Yi(1," *"),Di())}function Op(e,t){if(1&e){const e=Jt();Vi(0,"label",20,21),Mi("cdkObserveContent",(function(){return Gt.lFrame.contextLView=e,Bi().updateOutlineGap()})),Ti(2,Tp,4,1,"ng-container",12),Ti(3,Ap,1,0,"ng-content",12),Ti(4,Ip,2,0,"span",22),Di()}if(2&e){const e=Bi();Zi("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Ii("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ki("for",e._control.id)("aria-owns",e._control.id),Ds(2),Ii("ngSwitchCase",!1),Ds(1),Ii("ngSwitchCase",!0),Ds(1),Ii("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Vp(e,t){1&e&&(Vi(0,"div",24),qi(1,4),Di())}function Dp(e,t){if(1&e&&(Vi(0,"div",25,26),Ni(2,"span",27),Di()),2&e){const e=Bi();Ds(2),Zi("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Np(e,t){1&e&&(Vi(0,"div"),qi(1,5),Di()),2&e&&Ii("@transitionMessages",Bi()._subscriptAnimationState)}function Pp(e,t){if(1&e&&(Vi(0,"div",31),Yi(1),Di()),2&e){const e=Bi(2);Ii("id",e._hintLabelId),Ds(1),Ji(e.hintLabel)}}function Fp(e,t){if(1&e&&(Vi(0,"div",28),Ti(1,Pp,2,2,"div",29),qi(2,6),Ni(3,"div",30),qi(4,7),Di()),2&e){const e=Bi();Ii("@transitionMessages",e._subscriptAnimationState),Ds(1),Ii("ngIf",e.hintLabel)}}const Rp=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Mp=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let jp=0;const Lp=new Re("MatError");let Bp=(()=>{class e{constructor(){this.id="mat-error-"+jp++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&ki("id",t.id)},inputs:{id:"id"},features:[mo([{provide:Lp,useExisting:e}])]}),e})();const Hp={transitionMessages:Vh("transitionMessages",[Fh("enter",Ph({opacity:1,transform:"translateY(0%)"})),Rh("void => enter",[Ph({opacity:0,transform:"translateY(-100%)"}),Dh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let qp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e})(),zp=0;const $p=new Re("MatHint");let Qp=(()=>{class e{constructor(){this.align="start",this.id="mat-hint-"+zp++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(ki("id",t.id)("align",null),Zi("mat-right","end"==t.align))},inputs:{align:"align",id:"id"},features:[mo([{provide:$p,useExisting:e}])]}),e})(),Zp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-label"]]}),e})(),Wp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-placeholder"]]}),e})();const Up=new Re("MatPrefix"),Kp=new Re("MatSuffix");let Gp=0;class Yp{constructor(e){this._elementRef=e}}const Jp=yp(Yp,"primary"),Xp=new Re("MAT_FORM_FIELD_DEFAULT_OPTIONS"),em=new Re("MatFormField");let tm=(()=>{class e extends Jp{constructor(e,t,n,s,r,i,o,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=s,this._defaults=r,this._platform=i,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Gp++,this._labelId="mat-form-field-label-"+Gp++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=wl(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Fl(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Vl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Vl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),$(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Fl(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Fl(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Vl(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,function e(t,n,r,i){return s(r)&&(i=r,r=void 0),i?e(t,n,r).pipe(k(e=>l(e)?i(...e):i(e))):new g(e=>{!function e(t,n,s,r,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,s,i),o=()=>e.removeEventListener(n,s,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,s),o=()=>e.off(n,s)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,s),o=()=>e.removeListener(n,s)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,s,r,i)}r.add(o)}(t,n,(function(t){e.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),e,r)})}(this._label.nativeElement,"transitionend").pipe((1,e=>e.lift(new bc(1)))).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const s=this._connectionContainerRef.nativeElement,r=s.querySelectorAll(".mat-form-field-outline-start"),i=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=s.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const i=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e<o.length;e++)l+=o[e].offsetWidth;t=Math.abs(a-i)-5,n=l>0?.75*l+10:0}for(let o=0;o<r.length;o++)r[o].style.width=t+"px";for(let o=0;o<i.length;o++)i[o].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(bo),Ai(si),Ai(vp,8),Ai(_c,8),Ai(Xp,8),Ai(cc),Ai(Ja),Ai(up,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var s;1&e&&(Sa(n,qp,!0),xa(n,qp,!0),Sa(n,Zp,!0),xa(n,Zp,!0),Sa(n,Wp,!0),Sa(n,Lp,!0),Sa(n,$p,!0),Sa(n,Up,!0),Sa(n,Kp,!0)),2&e&&(wa(s=Ta())&&(t._controlNonStatic=s.first),wa(s=Ta())&&(t._controlStatic=s.first),wa(s=Ta())&&(t._labelChildNonStatic=s.first),wa(s=Ta())&&(t._labelChildStatic=s.first),wa(s=Ta())&&(t._placeholderChild=s.first),wa(s=Ta())&&(t._errorChildren=s),wa(s=Ta())&&(t._hintChildren=s),wa(s=Ta())&&(t._prefixChildren=s),wa(s=Ta())&&(t._suffixChildren=s))},viewQuery:function(e,t){var n,s;1&e&&(Ca(wp,!0),s=Cp,!0,Ea(Xt(),Jt(),s,true,undefined,!0),Ca(Ep,!0),Ca(Sp,!0)),2&e&&(wa(n=Ta())&&(t.underlineRef=n.first),wa(n=Ta())&&(t._connectionContainerRef=n.first),wa(n=Ta())&&(t._inputContainerRef=n.first),wa(n=Ta())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Zi("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[mo([{provide:em,useExisting:e}]),no],ngContentSelectors:Mp,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(function(e){const t=Jt()[16][6];if(!t.projection){const n=t.projection=nt(e?e.length:1,null),s=n.slice();let r=t.child;for(;null!==r;){const t=e?Hi(r,e):0;null!==t&&(s[t]?s[t].projectionNext=r:n[t]=r,s[t]=r),r=r.next}}}(Rp),Vi(0,"div",0),Vi(1,"div",1,2),Mi("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),Ti(3,xp,9,0,"ng-container",3),Ti(4,kp,2,0,"div",4),Vi(5,"div",5,6),qi(7),Vi(8,"span",7),Ti(9,Op,5,16,"label",8),Di(),Di(),Ti(10,Vp,2,0,"div",9),Di(),Ti(11,Dp,3,4,"div",10),Vi(12,"div",11),Ti(13,Np,2,1,"div",12),Ti(14,Fp,5,2,"div",13),Di(),Di()),2&e&&(Ds(3),Ii("ngIf","outline"==t.appearance),Ds(1),Ii("ngIf",t._prefixChildren.length),Ds(5),Ii("ngIf",t._hasFloatingLabel()),Ds(1),Ii("ngIf",t._suffixChildren.length),Ds(1),Ii("ngIf","outline"!=t.appearance),Ds(1),Ii("ngSwitch",t._getDisplayedMessages()),Ds(1),Ii("ngSwitchCase","error"),Ds(1),Ii("ngSwitchCase","hint"))},directives:[ec,ic,oc,Uu],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Hp.transitionMessages]},changeDetection:0}),e})(),nm=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},imports:[[ac,_p,Ku],_p]}),e})();const sm=pc({passive:!0});let rm=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Hl;const t=Cl(e),n=this._monitoredElements.get(t);if(n)return n.subject;const s=new E,r="cdk-text-field-autofilled",i=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>s.next({target:e.target,isAutofilled:!1}))):(t.classList.add(r),this._ngZone.run(()=>s.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",i,sm),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:s,unlisten:()=>{t.removeEventListener("animationstart",i,sm)}}),s}stopMonitoring(e){const t=Cl(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(We(cc),We(Ja))},e.\u0275prov=le({factory:function(){return new e(We(cc),We(Ja))},token:e,providedIn:"root"}),e})(),im=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},imports:[[uc]]}),e})();const om=new Re("MAT_INPUT_VALUE_ACCESSOR"),am=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let lm=0;class cm{constructor(e,t,n,s){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=s}}const um=gp(cm);let hm=(()=>{class e extends um{constructor(e,t,n,s,r,i,o,a,l,c){super(i,s,r,n),this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+lm++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>dc().has(e));const u=this._elementRef.nativeElement,h=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=wl(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=wl(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=wl(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=n,n?e.setAttribute("placeholder",n):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){am.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(Ai(bo),Ai(cc),Ai(Bc,10),Ai(Nu,8),Ai(ju,8),Ai(bp),Ai(om,10),Ai(rm),Ai(Ja),Ai(em,8))},e.\u0275dir=yt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Mi("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&(eo("disabled",t.disabled)("required",t.required),ki("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Zi("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[mo([{provide:qp,useExisting:e}]),no,Vt]}),e})(),dm=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[bp],imports:[[im,nm],im,nm]}),e})(),fm=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",t=this._document.querySelectorAll("."+e);if(null==t?void 0:t.length)this._containerElement=t[0];else{const t=this._document.createElement("div");t.classList.add(e),this._document.body.appendChild(t),this._containerElement=t}}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),pm=(()=>{class e{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Au(""),this.valueCanBeChanged=!1}ngOnInit(){var e;this.valueChanges$=this.formControl.valueChanges.pipe((e=e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged),function(t){return t.lift(new Il(e,undefined))})).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e)})}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var t;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(t=this.input)||void 0===t?void 0:t.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function mm(e,t){if(1&e&&(Vi(0,"mat-label"),Yi(1),Di()),2&e){const e=Bi();Ds(1),Ji(e.label)}}function _m(e,t){if(1&e&&(Vi(0,"mat-error"),Yi(1),Di()),2&e){const e=Bi();Ds(1),Xi(" ",e.error," ")}}let ym=(()=>{class e extends pm{}return e.\u0275fac=function(t){return gm(t||e)},e.\u0275cmp=ht({type:e,selectors:[["drayman-textarea-field-internal"]],viewQuery:function(e,t){var n;1&e&&Ca(hm,!0),2&e&&wa(n=Ta())&&(t.input=n.first)},inputs:{rows:"rows",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[no],decls:6,vars:9,consts:[[3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","type","text","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","rows","blur"]],template:function(e,t){1&e&&(Vi(0,"mat-form-field",0),Ti(1,mm,2,1,"mat-label",1),Vi(2,"textarea",2),Mi("blur",(function(){return t.onBlur()})),Di(),Vi(3,"mat-hint"),Yi(4),Di(),Ti(5,_m,2,1,"mat-error",1),Di()),2&e&&(Ii("appearance",t.appearance||"outline")("floatLabel","auto"),Ds(1),Ii("ngIf",t.label),Ds(1),Ii("placeholder",t.placeholder||t.label)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("rows",t.rows),Ds(2),Ji(t.helpText),Ds(1),Ii("ngIf",t.error))},directives:[tm,ec,hm,Rc,Hc,Ru,Qp,Zp,Bp],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),e})();const gm=rs(ym);let bm=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(go).resolveComponentFactory(e).inputs}(e,t.injector),s=t.strategyFactory||new kc(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var s;t[(s=n,s.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class i extends Ac{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=s.create(this.injector||t.injector),r=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof i?r.forEach(([e])=>delete this[e]):Ic(n,this),r.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,s){this.ngElementStrategy.setInputValue(r[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const s=e.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,n),s}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return i.observedAttributes=Object.keys(r),Object.defineProperty(i.prototype,"ngElementStrategy",{enumerable:!0}),Ic(n,i.prototype),i}(ym,{injector:this.injector});customElements.define("drayman-textarea-field",e)}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(bi))},providers:[{provide:Cc,useClass:fm}],imports:[[Ah,dp,Hu,qu,nm,dm]]}),e})();(function(){if(us)throw new Error("Cannot enable prod mode after platform setup.");cs=!1})(),kh().bootstrapModule(bm).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});
|
|
1
|
+
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,(function(t){return e[t]}).bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof u?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof u?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new u(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof e){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof u?t.errors:t),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof p?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const s=new p(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends p{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let g=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof p)return e;if(e[f])return e[f]()}return e||t||n?new p(e,t,n):new p(a)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof p?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const v=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends p{constructor(e){super(e),this.destination=e}}let E=(()=>{class e extends g{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new v;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].next(e)}}error(e){if(this.closed)throw new v;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;r<n;r++)s[r].error(e);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new v;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new v;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new w(this,e))}asObservable(){const e=new g;return e.source=this,e}}return e.create=(e,t)=>new S(e,t),e})();class S extends E{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function x(e){return e&&"function"==typeof e.schedule}function k(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends p{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const V=O(),D=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const P=e=>{if(e&&"function"==typeof e[_])return s=e,e=>{const t=s[_]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(D(e))return I(e);if(N(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[V])return t=e,e=>{const n=t[V]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new g(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function R(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new g(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[_]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(N(e))return function(e,t){return new g(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(D(e))return F(e,t);if(function(e){return e&&"function"==typeof e[V]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new g(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[V](),s.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())})))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof g?e:new g(P(e))}class M extends p{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends p{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function L(e,t){if(!t.closed)return e instanceof g?e.subscribe(t):P(e)(t)}class B{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new M(this),n=this.destination;n.add(t);const s=L(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>R(t(e,s)).pipe(k((t,r)=>n(e,t,s,r))),s)):("number"==typeof n&&(s=n),e=>e.lift(new B(t,s)))}(y,e)}function z(e,t){return t?F(e,t):new g(I(e))}function $(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return x(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof g?e[0]:q(t)(z(e,n))}function Q(){return function(e){return e.lift(new Z(e))}}class Z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new W(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class W extends p{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class U extends g{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new G(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return Q()(this)}}const K=(()=>{const e=U.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 G extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Y(){return new E}function J(e){return{toString:e}.toString()}const X="__parameters__";function ee(e,t,n){return J(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(X)?e[X]:Object.defineProperty(e,X,{value:[]})[X];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const te=ee("Inject",e=>({token:e})),ne=ee("Optional"),se=ee("Self"),re=ee("SkipSelf");var ie=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("Could not find renamed property on target object.")}function ae(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ce(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ue(e){return he(e,e[fe])||he(e,e[_e])}function he(e,t){return t&&t.token===e?t:null}function de(e){return e&&(e.hasOwnProperty(pe)||e.hasOwnProperty(ye))?e[pe]:null}const fe=oe({"\u0275prov":oe}),pe=oe({"\u0275inj":oe}),me=oe({"\u0275provFallback":oe}),_e=oe({ngInjectableDef:oe}),ye=oe({ngInjectorDef:oe});function ge(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ge).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 be(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ve=oe({__forward_ref__:oe});function we(e){return e.__forward_ref__=we,e.toString=function(){return ge(this())},e}function Ce(e){return Ee(e)?e():e}function Ee(e){return"function"==typeof e&&e.hasOwnProperty(ve)&&e.__forward_ref__===we}const Se="undefined"!=typeof globalThis&&globalThis,xe="undefined"!=typeof window&&window,ke="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Te="undefined"!=typeof global&&global,Ae=Se||Te||xe||ke,Ie=oe({"\u0275cmp":oe}),Oe=oe({"\u0275dir":oe}),Ve=oe({"\u0275pipe":oe}),De=oe({"\u0275mod":oe}),Ne=oe({"\u0275loc":oe}),Pe=oe({"\u0275fac":oe}),Fe=oe({__NG_ELEMENT_ID__:oe});class Re{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=le({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Me=new Re("INJECTOR",-1),je={},Le=/\n/gm,Be="__source",He=oe({provide:String,useValue:oe});let qe,ze=void 0;function $e(e){const t=ze;return ze=e,t}function Qe(e){const t=qe;return qe=e,t}function Ze(e,t=ie.Default){if(void 0===ze)throw new Error("inject() must be called from an injection context");return null===ze?Ke(e,void 0,t):ze.get(e,t&ie.Optional?null:void 0,t)}function We(e,t=ie.Default){return(qe||Ze)(Ce(e),t)}const Ue=We;function Ke(e,t,n){const s=ue(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&ie.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${ge(e)}]`)}function Ge(e){const t=[];for(let n=0;n<e.length;n++){const s=Ce(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=ie.Default;for(let t=0;t<s.length;t++){const r=s[t];r instanceof ne||"Optional"===r.ngMetadataName||r===ne?n|=ie.Optional:r instanceof re||"SkipSelf"===r.ngMetadataName||r===re?n|=ie.SkipSelf:r instanceof se||"Self"===r.ngMetadataName||r===se?n|=ie.Self:e=r instanceof te||r===te?r.token:r}t.push(We(e,n))}else t.push(We(s))}return t}class Ye{get(e,t=je){if(t===je){const t=new Error(`NullInjectorError: No provider for ${ge(e)}!`);throw t.name="NullInjectorError",t}return t}}class Je{}function Xe(e,t){e.forEach(e=>Array.isArray(e)?Xe(e,t):t(e))}function et(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function tt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function nt(e,t){const n=[];for(let s=0;s<e;s++)n.push(t);return n}function st(e,t,n){let s=it(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function rt(e,t){const n=it(e,t);if(n>=0)return e[1|n]}function it(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}var ot=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),at=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const lt={},ct=[];let ut=0;function ht(e){return J(()=>{const t={},n={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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ct,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c",styles:e.styles||ct,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=ut++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(dt):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(ft):null,n})}function dt(e){return gt(e)||function(e){return e[Oe]||null}(e)}function ft(e){return function(e){return e[Ve]||null}(e)}const pt={};function mt(e){const t={type:e.type,bootstrap:e.bootstrap||ct,declarations:e.declarations||ct,imports:e.imports||ct,exports:e.exports||ct,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&J(()=>{pt[e.id]=e.type}),t}function _t(e,t){if(null==e)return lt;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const yt=ht;function gt(e){return e[Ie]||null}function bt(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}function vt(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${ge(e)} does not have '\u0275mod' property.`);return n}const wt=20,Ct=10;function Et(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function xt(e){return 0!=(8&e.flags)}function kt(e){return 2==(2&e.flags)}function Tt(e){return 1==(1&e.flags)}function At(e){return null!==e.template}function It(e){return 0!=(512&e[2])}class Ot{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Vt(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pt),Nt}function Nt(){const e=Ft(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===lt)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Pt(e,t,n,s){const r=Ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:lt,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Ot(l&&l.currentValue,t,o===lt),e[s]=t}function Ft(e){return e.__ngSimpleChanges__||null}Vt.ngInherit=!0;let Rt=void 0;function Mt(e){return!!e.listen}const jt={createRenderer:(e,t)=>void 0!==Rt?Rt:"undefined"!=typeof document?document:void 0};function Lt(e){for(;Array.isArray(e);)e=e[0];return e}function Bt(e,t){return Lt(t[e+wt])}function Ht(e,t){return Lt(t[e.index])}function qt(e,t){return e.data[t+wt]}function zt(e,t){const n=t[e];return Et(n)?n:n[0]}function $t(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Qt(e){return 4==(4&e[2])}function Zt(e){return 128==(128&e[2])}function Wt(e,t){return null===e||null==t?null:e[t]}function Ut(e){e[18]=0}function Kt(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const Gt={lFrame:mn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Yt(){return Gt.bindingsEnabled}function Jt(){return Gt.lFrame.lView}function Xt(){return Gt.lFrame.tView}function en(){return Gt.lFrame.previousOrParentTNode}function tn(e,t){Gt.lFrame.previousOrParentTNode=e,Gt.lFrame.isParent=t}function nn(){return Gt.lFrame.isParent}function sn(){Gt.lFrame.isParent=!1}function rn(){return Gt.checkNoChangesMode}function on(e){Gt.checkNoChangesMode=e}function an(){return Gt.lFrame.bindingIndex++}function ln(e,t){const n=Gt.lFrame;n.bindingIndex=n.bindingRootIndex=e,cn(t)}function cn(e){Gt.lFrame.currentDirectiveIndex=e}function un(){return Gt.lFrame.currentQueryIndex}function hn(e){Gt.lFrame.currentQueryIndex=e}function dn(e,t){const n=pn();Gt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function fn(e,t){const n=pn(),s=e[1];Gt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function pn(){const e=Gt.lFrame,t=null===e?null:e.child;return null===t?mn(e):t}function mn(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function _n(){const e=Gt.lFrame;return Gt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const yn=_n;function gn(){const e=_n();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Gt.lFrame.selectedIndex}function vn(e){Gt.lFrame.selectedIndex=e}function wn(){const e=Gt.lFrame;return qt(e.tView,e.selectedIndex)}function Cn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function En(e,t,n){kn(e,t,3,n)}function Sn(e,t,n,s){(3&e[2])===n&&kn(e,t,n,s)}function xn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function kn(e,t,n,s){const r=null!=s?s:-1;let i=0;for(let o=void 0!==s?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(i=t[o],null!=s&&i>=s)break}else t[o]<0&&(e[18]+=65536),(i<r||-1==r)&&(Tn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function Tn(e,t,n,s){const r=n[s]<0,i=n[s+1],o=e[r?-n[s]:n[s]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class An{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function In(e,t,n){const s=Mt(e);let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],a=n[r++],l=n[r++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++r];On(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function On(e){return 64===e.charCodeAt(0)}function Vn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const r=t[s];"number"==typeof r?n=r:0===n||Dn(e,n,r,null,-1===n||2===n?t[++s]:null)}}return e}function Dn(e,t,n,s,r){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==r&&(e[i+1]=r));if(s===e[i+1])return void(e[i+2]=r)}i++,null!==s&&i++,null!==r&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==s&&e.splice(i++,0,s),null!==r&&e.splice(i++,0,r)}function Nn(e){return-1!==e}function Pn(e){return 32767&e}function Fn(e){return e>>16}function Rn(e,t){let n=Fn(e),s=t;for(;n>0;)s=s[15],n--;return s}function Mn(e){return"string"==typeof e?e:null==e?"":""+e}function jn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mn(e)}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ae))();function Bn(e){return e instanceof Function?e():e}let Hn=!0;function qn(e){const t=Hn;return Hn=e,t}let zn=0;function $n(e,t){const n=Zn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Qn(s.data,e),Qn(t,null),Qn(s.blueprint,null));const r=Wn(e,t),i=e.injectorIndex;if(Nn(r)){const e=Pn(r),n=Rn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function Qn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Zn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Wn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Un(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Fe)&&(s=n[Fe]),null==s&&(s=n[Fe]=zn++);const r=255&s,i=1<<r,o=64&r,a=32&r,l=t.data;128&r?o?a?l[e+7]|=i:l[e+6]|=i:a?l[e+5]|=i:l[e+4]|=i:o?a?l[e+3]|=i:l[e+2]|=i:a?l[e+1]|=i:l[e]|=i}(e,t,n)}function Kn(e,t,n,s=ie.Default,r){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Fe)?e[Fe]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof r){dn(t,e);try{const e=r();if(null!=e||s&ie.Optional)return e;throw new Error(`No provider for ${jn(n)}!`)}finally{yn()}}else if("number"==typeof r){if(-1===r)return new ns(e,t);let i=null,o=Zn(e,t),a=-1,l=s&ie.Host?t[16][6]:null;for((-1===o||s&ie.SkipSelf)&&(a=-1===o?Wn(e,t):t[o+8],ts(s,!1)?(i=t[1],o=Pn(a),t=Rn(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(es(r,o,e.data)){const e=Yn(o,t,n,i,s,l);if(e!==Gn)return e}ts(s,t[1].data[o+8]===l)&&es(r,o,t)?(i=e,o=Pn(a),t=Rn(a,t)):o=-1}}}if(s&ie.Optional&&void 0===r&&(r=null),0==(s&(ie.Self|ie.Host))){const e=t[9],i=Qe(void 0);try{return e?e.get(n,r,s&ie.Optional):Ke(n,r,s&ie.Optional)}finally{Qe(i)}}if(s&ie.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${jn(n)}]`)}const Gn={};function Yn(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Jn(a,o,n,null==s?kt(a)&&Hn:s!=o&&3===a.type,r&ie.Host&&i===a);return null!==l?Xn(t,o,l,a):Gn}function Jn(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h<u;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(r){const e=o[l];if(e&&At(e)&&e.type===n)return l}return null}function Xn(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof An){const o=r;if(o.resolving)throw new Error("Circular dep for "+jn(i[n]));const a=qn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qe(o.injectImpl)),dn(e,s);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{o.injectImpl&&Qe(l),qn(a),o.resolving=!1,yn()}}return r}function es(e,t,n){const s=64&e,r=32&e;let i;return i=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(i&1<<e)}function ts(e,t){return!(e&ie.Self||e&ie.Host&&t)}class ns{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Kn(this._tNode,this._lView,e,void 0,t)}}function ss(e){const t=e;if(Ee(e))return()=>{const e=ss(Ce(t));return e?e():null};let n=bt(t);if(null===n){const e=de(t);n=e&&e.factory}return n||null}function rs(e){return J(()=>{const t=e.prototype.constructor,n=t[Pe]||ss(t),s=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==s;){const e=r[Pe]||ss(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function is(e){return e.ngDebugContext}function os(e){return e.ngOriginalError}function as(e,...t){e.error(...t)}class ls{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||as}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?is(e)?is(e):this._findContext(os(e)):null}_findOriginalError(e){let t=os(e);for(;t&&os(t);)t=os(t);return t}}let cs=!0,us=!1;function hs(){return us=!0,cs}function ds(e,t){e.__ngContext__=t}function fs(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function ps(){throw new Error("Cannot mix multi providers and regular providers")}function ms(e,t,n){let s=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const n=t.length;if(r+n===s||e.charCodeAt(r+n)<=32)return r}n=r+1}}const _s="ng-template";function ys(e,t,n){let s=0;for(;s<e.length;){let r=e[s++];if(n&&"class"===r){if(r=e[s],-1!==ms(r.toLowerCase(),t,0))return!0}else if(1===r){for(;s<e.length&&"string"==typeof(r=e[s++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function gs(e){return 0===e.type&&e.tagName!==_s}function bs(e,t,n){return t===(0!==e.type||n?e.tagName:_s)}function vs(e,t,n){let s=4;const r=e.attrs||[],i=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!bs(e,l,n)||""===l&&1===t.length){if(ws(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!ys(e.attrs,c,n)){if(ws(s))return!1;o=!0}continue}const u=Cs(8&s?"class":l,r,gs(e),n);if(-1===u){if(ws(s))return!1;o=!0;continue}if(""!==c){let e;e=u>i?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==ms(t,c,0)||2&s&&c!==e){if(ws(s))return!1;o=!0}}}}else{if(!o&&!ws(s)&&!ws(l))return!1;if(o&&ws(l))continue;o=!1,s=l|1&s}}return ws(s)||o}function ws(e){return 0==(1&e)}function Cs(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++r];for(;"string"==typeof e;)e=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function Es(e,t,n=!1){for(let s=0;s<t.length;s++)if(vs(e,t[s],n))return!0;return!1}function Ss(e,t){e:for(let n=0;n<t.length;n++){const s=t[n];if(e.length===s.length){for(let t=0;t<e.length;t++)if(e[t]!==s[t])continue e;return!0}}return!1}function xs(e,t){return e?":not("+t.trim()+")":t}function ks(e){let t=e[0],n=1,s=2,r="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];r+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||ws(o)||(t+=xs(i,r),r=""),s=o,i=i||!ws(s);n++}return""!==r&&(t+=xs(i,r)),t}const Ts={};function As(e){const t=e[3];return St(t)?t[3]:t}function Is(e){return Vs(e[13])}function Os(e){return Vs(e[4])}function Vs(e){for(;null!==e&&!St(e);)e=e[4];return e}function Ds(e){Ns(Xt(),Jt(),bn()+e,rn())}function Ns(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&En(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Sn(t,s,0,n)}vn(n)}function Ps(e,t){return e<<17|t<<2}function Fs(e){return e>>17&32767}function Rs(e){return 2|e}function Ms(e){return(131068&e)>>2}function js(e,t){return-131069&e|t<<2}function Ls(e){return 1|e}function Bs(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const r=n[s],i=n[s+1];if(-1!==i){const n=e.data[i];hn(r),n.contentQueries(2,t[i],i)}}}function Hs(e,t,n){return Mt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function qs(e,t,n,s,r,i,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|s,Ut(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=i,u[16]=2==t.type?e[16]:u,u}function zs(e,t,n,s,r,i){const o=n+wt,a=e.data[o]||function(e,t,n,s,r,i){const o=en(),a=nn(),l=a?o:o&&o.parent,c=e.data[n]=er(0,l&&l!==t?l:null,s,n,r,i);return null===e.firstChild&&(e.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(e,t,o,s,r,i);return tn(a,!0),a}function $s(e,t,n){fn(t,t[6]);try{const s=e.viewQuery;null!==s&&Cr(1,s,n);const r=e.template;null!==r&&Ws(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Bs(e,t),e.staticViewQueries&&Cr(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)yr(e,t[n])}(t,i)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,gn()}}function Qs(e,t,n,s){const r=t[2];if(256==(256&r))return;fn(t,t[6]);const i=rn();try{Ut(t),Gt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Ws(e,t,n,2,s);const o=3==(3&r);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&En(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Sn(t,n,0,null),xn(t,0)}if(function(e){for(let t=Is(e);null!==t;t=Os(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&Kt(s,1),n[2]|=1024}}}(t),function(e){for(let t=Is(e);null!==t;t=Os(t))for(let e=Ct;e<t.length;e++){const n=t[e],s=n[1];Zt(n)&&Qs(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Bs(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&En(t,n)}else{const n=e.contentHooks;null!==n&&Sn(t,n,1),xn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let s=e.expandoStartIndex,r=-1,i=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(i=0-o,vn(i),s+=9+n[++e],r=s):s+=o:(null!==o&&(ln(s,r),o(2,t[r])),r++)}}}finally{vn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)_r(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Cr(2,l,s),!i)if(o){const n=e.viewCheckHooks;null!==n&&En(t,n)}else{const n=e.viewHooks;null!==n&&Sn(t,n,2),xn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Kt(t[3],-1))}finally{gn()}}function Zs(e,t,n,s){const r=t[10],i=!rn(),o=Qt(t);try{i&&!o&&r.begin&&r.begin(),o&&$s(e,t,s),Qs(e,t,n,s)}finally{i&&!o&&r.end&&r.end()}}function Ws(e,t,n,s,r){const i=bn();try{vn(-1),2&s&&t.length>wt&&Ns(e,t,0,rn()),n(s,r)}finally{vn(i)}}function Us(e,t,n){if(xt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r<s;r++){const t=e.data[r];t.contentQueries&&t.contentQueries(1,n[r],r)}}}function Ks(e,t,n){Yt()&&(function(e,t,n,s){const r=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||$n(n,t),ds(s,t);const o=n.initialInputs;for(let a=r;a<i;a++){const s=e.data[a],i=At(s);i&&dr(t,n,s);const l=Xn(t,e,a,n);ds(l,t),null!==o&&fr(0,a-r,l,s,0,o),i&&(zt(n.index,t)[8]=l)}}(e,t,n,Ht(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,r=n.directiveEnd,i=e.expandoInstructions,o=e.firstCreatePass,a=n.index-wt,l=Gt.lFrame.currentDirectiveIndex;try{vn(a);for(let n=s;n<r;n++){const s=e.data[n],r=t[n];cn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?or(s,r):o&&i.push(null)}}finally{vn(-1),cn(l)}}(e,t,n))}function Gs(e,t,n=Ht){const s=t.localNames;if(null!==s){let r=t.index+1;for(let i=0;i<s.length;i+=2){const o=s[i+1],a=-1===o?n(t,e):e[o];e[r++]=a}}}function Ys(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Js(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Js(e,t,n,s,r,i,o,a,l,c){const u=wt+s,h=u+r,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:Ts);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Xs(e,t,n,s){const r=Sr(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(s,r.length-1)}function er(e,t,n,s,r,i){return{type:n,index:s,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,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}}function tr(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){const r=e[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(t,r):n[s]=[t,r]}return n}function nr(e,t,n,s,r,i,o,a){const l=Ht(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[s])?(kr(e,n,c,s,r),kt(t)&&function(e,t){const n=zt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,t.tagName||"",s):r,Mt(i)?i.setProperty(l,s,r):On(s)||(l.setProperty?l.setProperty(s,r):l[s]=r))}function sr(e,t,n,s){let r=!1;if(Yt()){const i=function(e,t,n){const s=e.directiveRegistry;let r=null;if(s)for(let i=0;i<s.length;i++){const o=s[i];Es(n,o.selectors,!1)&&(r||(r=[]),Un($n(n,t),e,o.type),At(o)?(2&n.flags&&fs(n),lr(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===s?null:{"":-1};if(null!==i){let s=0;r=!0,ur(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}ar(e,n,i.length);let a=!1,l=!1;for(let r=0;r<i.length;r++){const c=i[r];n.mergedAttrs=Vn(n.mergedAttrs,c.hostAttrs),hr(e,t,c),cr(e.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-wt),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-wt),l=!0),rr(e,c),s+=c.hostVars}!function(e,t){const n=t.directiveEnd,s=e.data,r=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=s[l],n=e.inputs,c=null===r||gs(t)?null:pr(n,r);i.push(c),o=tr(n,l,o),a=tr(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n),ir(e,t,s)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const r=n[t[e+1]];if(null==r)throw new Error(`Export of name '${t[e+1]}' not found!`);s.push(t[e],r)}}}(n,s,o)}return n.mergedAttrs=Vn(n.mergedAttrs,n.attrs),r}function rr(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function ir(e,t,n){for(let s=0;s<n;s++)t.push(Ts),e.blueprint.push(Ts),e.data.push(null)}function or(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ar(e,t,n){const s=wt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(s,r,n)}function lr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function cr(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;At(t)&&(n[""]=e)}}function ur(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function hr(e,t,n){e.data.push(n);const s=n.factory||(n.factory=bt(n.type)),r=new An(s,At(n),null);e.blueprint.push(r),t.push(r)}function dr(e,t,n){const s=Ht(t,e),r=Ys(n),i=e[10],o=gr(e,qs(e,r,null,n.onPush?64:16,s,t,i,i.createRenderer(s,n)));e[t.index]=o}function fr(e,t,n,s,r,i){const o=i[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const r=o[t++],i=o[t++],a=o[t++];null!==e?s.setInput(n,a,r,i):n[i]=a}}}function pr(e,t){let n=null,s=0;for(;s<t.length;){const r=t[s];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[s+1])),s+=2}else s+=2;else s+=4}return n}function mr(e,t,n,s){return new Array(e,!0,!1,t,null,0,s,n,null,null)}function _r(e,t){const n=zt(t,e);if(Zt(n)){const e=n[1];80&n[2]?Qs(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let s=Is(t);null!==s;s=Os(s))for(let t=Ct;t<s.length;t++){const n=s[t];if(1024&n[2]){const e=n[1];Qs(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let s=0;s<n.length;s++){const r=zt(n[s],t);Zt(r)&&r[5]>0&&e(r)}}(n)}}function yr(e,t){const n=zt(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),$s(s,n,n[8])}function gr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function br(e){for(;e;){e[2]|=64;const t=As(e);if(It(e)&&!t)return e;e=t}return null}function vr(e,t,n){const s=t[10];s.begin&&s.begin();try{Qs(e,t,e.template,n)}catch(r){throw xr(t,r),r}finally{s.end&&s.end()}}function wr(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=$t(n),r=s[1];Zs(r,s,r.template,n)}}(e[8])}function Cr(e,t,n){hn(0),t(e,n)}const Er=(()=>Promise.resolve(null))();function Sr(e){return e[7]||(e[7]=[])}function xr(e,t){const n=e[9],s=n?n.get(ls,null):null;s&&s.handleError(t)}function kr(e,t,n,s,r){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,s,a):l[a]=r}}function Tr(e,t){const n=t[3];return-1===e.index?St(n)?n:null:n}function Ar(e,t){const n=Tr(e,t);return n?Br(t[11],n[7]):null}function Ir(e,t,n,s,r){if(null!=s){let i,o=!1;St(s)?i=s:Et(s)&&(o=!0,s=s[0]);const a=Lt(s);0===e&&null!==n?null==r?jr(t,n,a):Mr(t,n,a,r||null):1===e&&null!==n?Mr(t,n,a,r||null):2===e?function(e,t,n){const s=Br(e,t);s&&function(e,t,n,s){Mt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==Lt(n)&&Ir(t,e,s,i,r);for(let o=Ct;o<n.length;o++){const r=n[o];Qr(r[1],r,e,t,s,i)}}(t,e,i,n,r)}}function Or(e,t,n,s){const r=Ar(e.node,t);r&&Qr(e,t,t[11],n?1:2,r,s)}function Vr(e,t){const n=e[9],s=n.indexOf(t);1024&t[2]&&Kt(t[3],-1),n.splice(s,1)}function Dr(e,t){if(e.length<=Ct)return;const n=Ct+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&Vr(r,s),t>0&&(e[n-1][4]=s[4]);const i=tt(e,Ct+t);Or(s[1],s,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function Nr(e,t){if(!(256&t[2])){const n=t[11];Mt(n)&&n.destroyNode&&Qr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Fr(e[1],e);for(;t;){let n=null;if(Et(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Et(t)&&Fr(t[1],t),t=Pr(t,e);null===t&&(t=e),Et(t)&&Fr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Pr(e,t){let n;return Et(e)&&(n=e[6])&&2===n.type?Tr(n,e):e[3]===t?null:e[3]}function Fr(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 s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof An)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const r=n[s+1],i="function"==typeof r?r(t):Lt(t[r]),o=e[n[s+2]],a=n[s+3];"boolean"==typeof a?i.removeEventListener(n[s],o,a):a>=0?e[a]():e[-a].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Mt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&St(t[3])){s!==t[3]&&Vr(s,t);const n=t[19];null!==n&&n.detachView(e)}}}function Rr(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?Ar(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Ht(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==at.ShadowDom&&n!==at.Native)return null}return Ht(s,n)}function Mr(e,t,n,s){Mt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function jr(e,t,n){Mt(e)?e.appendChild(t,n):t.appendChild(n)}function Lr(e,t,n,s){null!==s?Mr(e,t,n,s):jr(e,t,n)}function Br(e,t){return Mt(e)?e.parentNode(t):t.parentNode}function Hr(e,t){if(2===e.type){const n=Tr(e,t);return null===n?null:zr(n.indexOf(t,Ct)-Ct,n)}return 4===e.type||5===e.type?Ht(e,t):null}function qr(e,t,n,s){const r=Rr(e,s,t);if(null!=r){const e=t[11],i=Hr(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)Lr(e,r,n[t],i);else Lr(e,r,n,i)}}function zr(e,t){const n=Ct+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return function e(t,n){if(null!==n){const s=n.type;if(3===s)return Ht(n,t);if(0===s)return zr(-1,t[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return e(t,s);{const e=t[n.index];return St(e)?zr(-1,e):Lt(e)}}{const s=t[16],r=s[6],i=As(s),o=r.projection[n.projection];return null!=o?e(i,o):e(t,n.next)}}return null}(e,s)}return t[7]}function $r(e,t,n,s,r,i,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===t&&(a&&ds(Lt(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?($r(e,t,n.child,s,r,i,!1),Ir(t,e,r,a,i)):1===l?Zr(e,t,s,n,r,i):Ir(t,e,r,a,i)),n=o?n.projectionNext:n.next}}function Qr(e,t,n,s,r,i){$r(n,s,e.node.child,t,r,i,!1)}function Zr(e,t,n,s,r,i){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ir(t,e,r,a[l],i);else $r(e,t,a,o[3],r,i,!0)}function Wr(e,t,n){Mt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ur(e,t,n){Mt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class Kr{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,s,r,i=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&r.push(Lt(o)),St(o))for(let t=Ct;t<o.length;t++){const n=o[t],s=n[1].firstChild;null!==s&&e(n[1],n,s,r)}const a=s.type;if(4===a||5===a)e(t,n,s.child,r);else if(1===a){const t=n[16],i=t[6].projection[s.projection];if(Array.isArray(i))r.push(...i);else{const n=As(t);e(n[1],n,i,r,!0)}}s=i?s.projectionNext:s.next}return r}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Nr(this._lView[1],this._lView)}onDestroy(e){Xs(this._lView[1],this._lView,null,e)}markForCheck(){br(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){vr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){on(!0);try{vr(e,t,n)}finally{on(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,Qr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Gr extends Kr{constructor(e){super(e),this._view=e}detectChanges(){wr(this._view)}checkNoChanges(){!function(e){on(!0);try{wr(e)}finally{on(!1)}}(this._view)}get context(){return null}}let Yr,Jr,Xr;function ei(e,t,n){return Yr||(Yr=class extends e{}),new Yr(Ht(t,n))}function ti(e,t,n,s){return Jr||(Jr=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=qs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),$s(t,n,e),new Kr(n)}}),0===n.type?new Jr(s,n,ei(t,n,s)):null}function ni(e,t,n,s){let r;Xr||(Xr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return ei(t,this._hostTNode,this._hostView)}get injector(){return new ns(this._hostTNode,this._hostView)}get parentInjector(){const e=Wn(this._hostTNode,this._hostView),t=Rn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=Fn(e),r=t,i=t[6];for(;s>1;)r=r[15],i=r[6],s--;return i}(e,this._hostView,this._hostTNode);return Nn(e)&&null!=n?new ns(n,t):new ns(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-Ct}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(Je,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),St(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Xr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=Ct+s,i=n.length;s>0&&(n[r-1][4]=t),s<i-Ct?(t[4]=n[r],et(n,Ct+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(s,n,this._lContainer,r),Or(s,n,!0,zr(r,this._lContainer)),e.attachToViewContainerRef(this),et(this._lContainer[8],r,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Dr(this._lContainer,t);n&&(tt(this._lContainer[8],t),Nr(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=Dr(this._lContainer,t);return n&&null!=tt(this._lContainer[8],t)?new Kr(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=s[n.index];if(St(i))r=i;else{let e;if(4===n.type)e=Lt(i);else if(e=s[11].createComment(""),It(s)){const t=s[11],r=Ht(n,s);Mr(t,Br(t,r),e,function(e,t){return Mt(e)?e.nextSibling(t):t.nextSibling}(t,r))}else qr(s[1],s,e,n);s[n.index]=r=mr(i,s,e,n),gr(s,r)}return new Xr(r,n,s)}let si=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ri(),e})();const ri=function(e=!1){return function(e,t,n){if(!n&&kt(e)){const n=zt(e.index,t);return new Kr(n,n)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Kr(t[16],t):null}(en(),Jt(),e)},ii=new Re("Set Injector scope."),oi={},ai={},li=[];let ci=void 0;function ui(){return void 0===ci&&(ci=new Ye),ci}function hi(e,t=null,n=null,s){return new di(e,n,t||ui(),s)}class di{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Xe(t,n=>this.processProvider(n,e,t)),Xe([e],e=>this.processInjectorType(e,[],r)),this.records.set(Me,mi(void 0,this));const i=this.records.get(ii);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:ge(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=je,n=ie.Default){this.assertNotDestroyed();const s=$e(this);try{if(!(n&ie.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Re)&&ue(e);t=n&&this.injectableDefInScope(n)?mi(fi(e),oi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ie.Self?ui():this.parent).get(e,t=n&ie.Optional&&t===je?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(ge(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[Be]&&r.unshift(t[Be]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=ge(t);if(Array.isArray(t))r=t.map(ge).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):ge(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(Le,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{$e(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ge(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=Ce(e)))return!1;let s=de(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=de(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Xe(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];Xe(s,e=>this.processProvider(e,n,s||li))}}this.injectorDefTypes.add(i),this.records.set(i,mi(s.factory,oi));const a=s.providers;if(null!=a&&!o){const t=e;Xe(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=yi(e=Ce(e))?e:Ce(e&&e.provide);const r=function(e,t,n){return _i(e)?mi(void 0,e.useValue):mi(pi(e,t,n),oi)}(e,t,n);if(yi(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&ps()}else{let t=this.records.get(s);t?void 0===t.multi&&ps():(t=mi(void 0,oi,!0),t.factory=()=>Ge(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===ai?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(ge(e)):t.value===oi&&(t.value=ai,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function fi(e){const t=ue(e),n=null!==t?t.factory:bt(e);if(null!==n)return n;const s=de(e);if(null!==s)return s.factory;if(e instanceof Re)throw new Error(`Token ${ge(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=nt(t,"?");throw new Error(`Can't resolve all parameters for ${ge(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[fe]||e[_e]||e[me]&&e[me]());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 pi(e,t,n){let s=void 0;if(yi(e)){const t=Ce(e);return bt(t)||fi(t)}if(_i(e))s=()=>Ce(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Ge(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>We(Ce(e.useExisting));else{const r=Ce(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${ge(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return bt(r)||fi(r);s=()=>new r(...Ge(e.deps))}var r;return s}function mi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _i(e){return null!==e&&"object"==typeof e&&He in e}function yi(e){return"function"==typeof e}const gi=function(e,t,n){return function(e,t=null,n=null,s){const r=hi(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let bi=(()=>{class e{static create(e,t){return Array.isArray(e)?gi(e,t,""):gi(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=je,e.NULL=new Ye,e.\u0275prov=le({token:e,providedIn:"any",factory:()=>We(Me)}),e.__NG_ELEMENT_ID__=-1,e})();function vi(e,t,n){let s=n?e.styles:null,r=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?r=be(r,e):2==i&&(s=be(s,e+": "+t[++o]+";"))}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=r:e.classesWithoutHost=r}let wi=null;function Ci(){if(!wi){const e=Ae.Symbol;if(e&&e.iterator)wi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(wi=n)}}}return wi}function Ei(e){return!!Si(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ci()in e)}function Si(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ki(e,t,n,s){const r=Jt();return xi(r,an(),t)&&(Xt(),function(e,t,n,s,r,i){const o=Ht(e,t),a=t[11];if(null==s)Mt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const t=null==r?Mn(s):r(s,e.tagName||"",n);Mt(a)?a.setAttribute(o,n,t,i):i?o.setAttributeNS(i,n,t):o.setAttribute(n,t)}}(wn(),r,e,t,n,s)),ki}function Ti(e,t,n,s,r,i,o,a){const l=Jt(),c=Xt(),u=e+wt,h=c.firstCreatePass?function(e,t,n,s,r,i,o,a,l){const c=t.consts,u=zs(t,n[6],e,0,o||null,Wt(c,a));sr(t,n,u,Wt(c,l)),Cn(t,u);const h=u.tViews=Js(2,-1,s,r,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),d=er(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(e,c,l,t,n,s,r,i,o):c.data[u];tn(h,!1);const d=l[11].createComment("");qr(c,l,d,h),ds(d,l),gr(l,l[u]=mr(d,l,d,h)),Tt(h)&&Ks(c,l,h),null!=o&&Gs(l,h,a)}function Ai(e,t=ie.Default){const n=Jt();return null==n?We(e,t):Kn(en(),n,Ce(e),t)}function Ii(e,t,n){const s=Jt();return xi(s,an(),t)&&nr(Xt(),wn(),s,e,t,s[11],n,!1),Ii}function Oi(e,t,n,s,r){const i=r?"class":"style";kr(e,n,t.inputs[i],i,s)}function Vi(e,t,n,s){const r=Jt(),i=Xt(),o=wt+e,a=r[11],l=r[o]=Hs(t,a,Gt.lFrame.currentNamespace),c=i.firstCreatePass?function(e,t,n,s,r,i,o){const a=t.consts,l=Wt(a,i),c=zs(t,n[6],e,3,r,l);return sr(t,n,c,Wt(a,o)),null!==c.attrs&&vi(c,c.attrs,!1),null!==c.mergedAttrs&&vi(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,i,r,0,t,n,s):i.data[o];tn(c,!0);const u=c.mergedAttrs;null!==u&&In(a,l,u);const h=c.classes;null!==h&&Ur(a,l,h);const d=c.styles;null!==d&&Wr(a,l,d),qr(i,r,l,c),0===Gt.lFrame.elementDepthCount&&ds(l,r),Gt.lFrame.elementDepthCount++,Tt(c)&&(Ks(i,r,c),Us(i,c,r)),null!==s&&Gs(r,c)}function Di(){let e=en();nn()?sn():(e=e.parent,tn(e,!1));const t=e;Gt.lFrame.elementDepthCount--;const n=Xt();n.firstCreatePass&&(Cn(n,e),xt(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Oi(n,t,Jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Oi(n,t,Jt(),t.stylesWithoutHost,!1)}function Ni(e,t,n,s){Vi(e,t,n,s),Di()}function Pi(e,t,n){const s=Jt(),r=Xt(),i=e+wt,o=r.firstCreatePass?function(e,t,n,s,r){const i=t.consts,o=Wt(i,s),a=zs(t,n[6],e,4,"ng-container",o);return null!==o&&vi(a,o,!0),sr(t,n,a,Wt(i,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,r,s,t,n):r.data[i];tn(o,!0);const a=s[i]=s[11].createComment("");qr(r,s,a,o),ds(a,s),Tt(o)&&(Ks(r,s,o),Us(r,o,s)),null!=n&&Gs(s,o)}function Fi(){let e=en();const t=Xt();nn()?sn():(e=e.parent,tn(e,!1)),t.firstCreatePass&&(Cn(t,e),xt(e)&&t.queries.elementEnd(e))}function Ri(e){return!!e&&"function"==typeof e.then}function Mi(e,t,n=!1,s){const r=Jt(),i=Xt(),o=en();return function(e,t,n,s,r,i,o=!1,a){const l=Tt(s),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=Sr(t);let h=!0;if(3===s.type){const d=Ht(s,t),f=a?a(d):lt,p=f.target||d,m=u.length,_=a?e=>a(Lt(e[s.index])).target:s.index;if(Mt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;i<r.length-1;i+=2){const e=r[i];if(e===n&&r[i+1]===s){const e=t[7],n=r[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Li(s,t,i,!1);const e=n.listen(f.name||p,r,i);u.push(i,e),c&&c.push(r,_,m,m+1)}}else i=Li(s,t,i,!0),p.addEventListener(r,i,o),u.push(i),c&&c.push(r,_,m,o)}const d=s.outputs;let f;if(h&&null!==d&&(f=d[r])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=t[f[n]][f[n+1]].subscribe(i),o=u.length;u.push(i,e),c&&c.push(r,s.index,o,-(o+1))}}}(i,r,r[11],o,e,t,n,s),Mi}function ji(e,t,n){try{return!1!==t(n)}catch(s){return xr(e,s),!1}}function Li(e,t,n,s){return function r(i){if(i===Function)return n;const o=2&e.flags?zt(e.index,t):t;0==(32&t[2])&&br(o);let a=ji(t,n,i),l=r.__ngNextListenerFn__;for(;l;)a=ji(t,l,i)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function Bi(e=1){return function(e){return(Gt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Gt.lFrame.contextLView))[8]}(e)}function Hi(e,t){let n=null;const s=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r<t.length;r++){const i=t[r];if("*"!==i){if(null===s?Es(e,i,!0):Ss(s,i))return r}else n=r}return n}function qi(e,t=0,n){const s=Jt(),r=Xt(),i=zs(r,s[6],e,1,null,n||null);null===i.projection&&(i.projection=t),sn(),function(e,t,n){Zr(t[11],0,t,n,Rr(e,n,t),Hr(n.parent||t[6],t))}(r,s,i)}const zi=[];function $i(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?Fs(i):Ms(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Qi(e[a],t)&&(l=!0,e[a+1]=s?Ls(n):Rs(n)),a=s?Fs(n):Ms(n)}l&&(e[n+1]=s?Rs(i):Ls(i))}function Qi(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&it(e,t)>=0}function Zi(e,t){return function(e,t,n,s){const r=Jt(),i=Xt(),o=function(e){const t=Gt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();i.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[bn()+wt],o=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(i)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Gt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=t.residualClasses;if(null===r)0===t.classBindings&&(n=Ui(n=Wi(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Wi(r,e,t,n,s),null===i){let n=function(e,t,n){const s=t.classBindings;if(0!==Ms(s))return e[Fs(s)]}(e,t);void 0!==n&&Array.isArray(n)&&(n=Wi(null,e,t,n[1],s),n=Ui(n,t.attrs,s),function(e,t,n,s){e[Fs(t.classBindings)]=s}(e,t,0,n))}else i=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<r;i++)s=Ui(s,e[i].hostAttrs,true);return Ui(s,t.attrs,true)}(e,t)}return void 0!==i&&(t.residualClasses=i),n}(r,i,t,s),function(e,t,n,s,r,i){let o=t.classBindings,a=Fs(o),l=Ms(o);e[s]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||it(e,c)>0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Fs(e[a+1]);e[s+1]=Ps(t,a),0!==t&&(e[t+1]=js(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=Ps(a,0),0!==a&&(e[a+1]=js(e[a+1],s)),a=s;else e[s+1]=Ps(l,0),0===a?a=s:e[l+1]=js(e[l+1],s),l=s;u&&(e[s+1]=Rs(e[s+1])),$i(e,c,s,!0),$i(e,c,s,!1),function(e,t,n,s,r){const i=e.residualClasses;null!=i&&"string"==typeof t&&it(i,t)>=0&&(n[s+1]=Ls(n[s+1]))}(t,c,e,s),o=Ps(a,l),t.classBindings=o}(r,i,t,n,o)}}(i,e,o,true),t!==Ts&&xi(r,o,t)&&function(e,t,n,s,r,i,o,a){if(3!==t.type)return;const l=e.data,c=l[a+1];Gi(1==(1&c)?Ki(l,t,n,r,Ms(c),o):void 0)||(Gi(i)||function(e){return 2==(2&e)}(c)&&(i=Ki(l,null,n,r,a,o)),function(e,t,n,s,r){const i=Mt(e);r?i?e.addClass(n,s):n.classList.add(s):i?e.removeClass(n,s):n.classList.remove(s)}(s,0,Bt(bn(),n),r,i))}(i,i.data[bn()+wt],r,r[11],e,r[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=ge(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e))),e}(t),true,o)}(e,t),Zi}function Wi(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=t[a],s=Ui(s,i.hostAttrs,r),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),s}function Ui(e,t,n){const s=n?1:2;let r=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?r=o:r===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),st(e,o,!!n||t[++i]))}return void 0===e?null:e}function Ki(e,t,n,s,r,i){const o=null===t;let a=void 0;for(;r>0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===Ts&&(u=c?zi:void 0);let h=c?rt(u,s):l===s?u:void 0;if(i&&!Gi(h)&&(h=rt(t,s)),Gi(h)&&(a=h,o))return a;const d=e[r+1];r=o?Fs(d):Ms(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=rt(e,s))}return a}function Gi(e){return void 0!==e}function Yi(e,t=""){const n=Jt(),s=Xt(),r=e+wt,i=s.firstCreatePass?zs(s,n[6],e,3,null,null):s.data[r],o=n[r]=function(e,t){return Mt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);qr(s,n,o,i),tn(i,!1)}function Ji(e){return Xi("",e,""),Ji}function Xi(e,t,n){const s=Jt(),r=function(e,t,n,s){return xi(e,an(),n)?t+Mn(n)+s:Ts}(s,e,t,n);return r!==Ts&&function(e,t,n){const s=Bt(t,e),r=e[11];Mt(r)?r.setValue(s,n):s.textContent=n}(s,bn(),r),Xi}function eo(e,t,n){const s=Jt();return xi(s,an(),t)&&nr(Xt(),wn(),s,e,t,s[11],n,!0),eo}function to(e,t){const n=$t(e)[1],s=n.data.length-1;Cn(n,{directiveStart:s,directiveEnd:s+1})}function no(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(At(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=so(e.inputs),t.declaredInputs=so(e.declaredInputs),t.outputs=so(e.outputs);const n=r.hostBindings;n&&oo(e,n);const i=r.viewQuery,o=r.contentQueries;if(i&&ro(e,i),o&&io(e,o),ae(e.inputs,r.inputs),ae(e.declaredInputs,r.declaredInputs),ae(e.outputs,r.outputs),At(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let s=0;s<t.length;s++){const r=t[s];r&&r.ngInherit&&r(e),r===no&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let s=e.length-1;s>=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=Vn(r.hostAttrs,n=Vn(n,r.hostAttrs))}}(s)}function so(e){return e===lt?{}:e===ct?[]:e}function ro(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function io(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function oo(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}function ao(e,t,n,s,r){if(e=Ce(e),Array.isArray(e))for(let i=0;i<e.length;i++)ao(e[i],t,n,s,r);else{const i=Xt(),o=Jt();let a=yi(e)?e:Ce(e.provide),l=pi(e);const c=en(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(yi(e)||!e.multi){const s=new An(l,r,Ai),f=uo(a,t,r?u:u+d,h);-1===f?(Un($n(c,o),i,a),lo(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[f]=s,o[f]=s)}else{const f=uo(a,t,u+d,h),p=uo(a,t,u,u+d),m=f>=0&&n[f],_=p>=0&&n[p];if(r&&!_||!r&&!m){Un($n(c,o),i,a);const u=function(e,t,n,s,r){const i=new An(e,n,Ai);return i.multi=[],i.index=t,i.componentProviders=0,co(i,r,s&&!n),i}(r?fo:ho,n.length,r,s,l);!r&&_&&(n[p].providerFactory=u),lo(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else lo(i,e,f>-1?f:p,co(n[r?p:f],l,!r&&s));!r&&s&&_&&n[p].componentProviders++}}}function lo(e,t,n,s){const r=yi(t);if(r||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[s,i]):o[e+1].push(s,i)}else o.push(n,i)}}}function co(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uo(e,t,n,s){for(let r=n;r<s;r++)if(t[r]===e)return r;return-1}function ho(e,t,n,s){return po(this.multi,[])}function fo(e,t,n,s){const r=this.multi;let i;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Xn(n,n[1],this.providerFactory.index,s);i=t.slice(0,e),po(r,i);for(let n=e;n<t.length;n++)i.push(t[n])}else i=[],po(r,i);return i}function po(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function mo(e,t=[]){return n=>{n.providersResolver=(n,s)=>function(e,t,n){const s=Xt();if(s.firstCreatePass){const r=At(e);ao(n,s.data,s.blueprint,r,!0),ao(t,s.data,s.blueprint,r,!1)}}(n,s?s(e):e,t)}}class _o{}class yo{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ge(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let go=(()=>{class e{}return e.NULL=new yo,e})(),bo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>vo(e),e})();const vo=function(e){return ei(e,en(),Jt())};class wo{}var Co=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let Eo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>So(),e})();const So=function(){const e=Jt(),t=zt(en().index,e);return function(e){const t=e[11];if(Mt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Et(t)?t:e)};let xo=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>null}),e})();class ko{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const To=new ko("10.1.0");class Ao{constructor(){}supports(e){return Ei(e)}create(e){return new Oo(e)}}const Io=(e,t)=>t;class Oo{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Io}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex<Po(n,s,r)?t:n,o=Po(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)s++;else{r||(r=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;t<=i&&i<e&&(r[n]=s+1)}r[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Ei(e))throw new Error(`Error trying to diff '${ge(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,r=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,t)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,t),i=!0),r=r._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ci()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new Vo(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new No),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new No),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Vo{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Do{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class No{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Do,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Po(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+t+r}class Fo{constructor(){}supports(e){return e instanceof Map||Si(e)}create(){return new Ro}}class Ro{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Si(e)))throw new Error(`Error trying to diff '${ge(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Mo(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Mo{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let jo=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new e([new Ao])}),e})(),Lo=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new ne]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new e([new Fo])}),e})();const Bo=[new Fo],Ho=new jo([new Ao]),qo=new Lo(Bo);let zo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>$o(e,bo),e})();const $o=function(e,t){return ti(e,t,en(),Jt())};let Qo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Zo(e,bo),e})();const Zo=function(e,t){return ni(e,t,en(),Jt())},Wo={};class Uo extends go{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=gt(e);return new Yo(t,this.ngModule)}}function Ko(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Go=new Re("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ln});class Yo extends _o{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ks).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ko(this.componentDef.inputs)}get outputs(){return Ko(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,Wo,r);return i!==Wo||s===Wo?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(wo,jt),o=r.get(xo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(Mt(e))return e.selectRootElement(t,n===at.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Hs(l,i.createRenderer(null,this.componentDef),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)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:Er,playerHandler:null,flags:0},d=Js(0,-1,null,1,0,null,null,null,null,null),f=qs(null,d,h,u,null,null,i,a,o,r);let p,m;fn(f,null);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=zs(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(vi(a,l,!0),null!==e&&(In(r,e,l),null!==a.classes&&Ur(r,e,a.classes),null!==a.styles&&Wr(r,e,a.styles)));const c=s.createRenderer(e,t),u=qs(n,Ys(t),null,t.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(Un($n(a,n),o,t.type),lr(o,a),ur(a,n.length,1)),gr(n,u),n[20]=u}(c,this.componentDef,f,i,a);if(c)if(n)In(a,c,["ng-version",To.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s<e.length;){let i=e[s];if("string"==typeof i)2===r?""!==i&&t.push(i,e[++s]):8===r&&n.push(i);else{if(!ws(r))break;r=i}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&In(a,c,e),t&&t.length>0&&Ur(a,c,t.join(" "))}if(m=qt(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}p=function(e,t,n,s,r){const i=n[1],o=function(e,t,n){const s=en();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ar(e,s,1),hr(e,t,n));const r=Xn(t,e,t.length-1,s);ds(r,t);const i=Ht(s,t);return i&&ds(i,t),r}(i,n,t);s.components.push(o),e[8]=o,r&&r.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=en();if(i.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){vn(a.index-wt);const e=n[1];rr(e,t),ir(e,n,t.hostVars),or(t,o)}return o}(e,this.componentDef,f,h,[to]),$s(d,f,null)}finally{gn()}const _=new Jo(this.componentType,p,ei(bo,m,f),f,m);return d.node.child=m,_}}class Jo extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new Gr(s),function(e,t,n,s){let r=e.node;null==r&&(e.node=r=er(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new ns(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Xo=void 0;var ea=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ta={};function na(e){return e in ta||(ta[e]=Ae.ng&&Ae.ng.common&&Ae.ng.common.locales&&Ae.ng.common.locales[e]),ta[e]}var sa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const ra="en-US";let ia=ra;function oa(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(ia=e.toLowerCase().replace(/_/g,"-"))}const aa=new Map;class la extends Je{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Uo(this);const n=vt(e),s=e[Ne]||null;s&&oa(s),this._bootstrapComponents=Bn(n.bootstrap),this._r3Injector=hi(e,t,[{provide:Je,useValue:this},{provide:go,useValue:this.componentFactoryResolver}],ge(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=bi.THROW_IF_NOT_FOUND,n=ie.Default){return e===bi||e===Je||e===Me?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ca extends class{}{constructor(e){super(),this.moduleType=e,null!==vt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ge(t)} vs ${ge(t.name)}`)})(e,aa.get(e),t),aa.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new la(this.moduleType,e)}}const ua=class extends E{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,i=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return e instanceof h&&e.add(o),o}};function ha(){return this._results[Ci()]()}class da{constructor(){this.dirty=!0,this._results=[],this.changes=new ua,this.length=0;const e=Ci(),t=da.prototype;t[e]||(t[e]=ha)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?(n===t&&(n=t.slice(0,s)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class fa{constructor(e){this.queryList=e,this.matches=null}clone(){return new fa(this.queryList)}setDirty(){this.queryList.setDirty()}}class pa{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);s.push(this.queries[n.indexInDeclarationView].clone())}return new pa(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Oa(e,t).matches&&this.queries[t].setDirty()}}class ma{constructor(e,t,n,s=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=s}}class _a{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,r=this.getByIndex(n).embeddedTView(e,s);r&&(r.indexInDeclarationView=n,null!==t?t.push(r):t=[r])}return null!==t?new _a(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class ya{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new ya(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=n[s];this.matchTNodeWithReadOption(e,t,ga(t,r)),this.matchTNodeWithReadOption(e,t,Jn(t,e,r,!1,!1))}else n===zo?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Jn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===bo||s===Qo||s===zo&&0===t.type)this.addMatch(t.index,-2);else{const n=Jn(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function ga(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function ba(e,t,n,s){return-1===n?function(e,t){return 3===e.type||4===e.type?ei(bo,e,t):0===e.type?ti(zo,bo,e,t):null}(t,e):-2===n?function(e,t,n){return n===bo?ei(bo,t,e):n===zo?ti(zo,bo,t,e):n===Qo?ni(Qo,bo,t,e):void 0}(e,t,s):Xn(e,e[1],n,t)}function va(e,t,n,s){const r=t[19].queries[s];if(null===r.matches){const s=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const r=i[e];o.push(r<0?null:ba(t,s[r],i[e+1],n.metadata.read))}r.matches=o}return r.matches}function wa(e){const t=Jt(),n=Xt(),s=un();hn(s+1);const r=Oa(n,s);if(e.dirty&&Qt(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{const i=r.crossesNgTemplate?function e(t,n,s,r){const i=t.queries.getByIndex(s),o=i.matches;if(null!==o){const a=va(t,n,i,s);for(let t=0;t<o.length;t+=2){const s=o[t];if(s>0)r.push(a[t/2]);else{const i=o[t+1],a=n[-s];for(let t=Ct;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,i,r)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const s=t[n];e(s[1],s,i,r)}}}}}return r}(n,t,s,[]):va(n,t,r,s);e.reset(i),e.notifyOnChanges()}return!0}return!1}function Ca(e,t,n){Ea(Xt(),Jt(),e,t,n,!1)}function Ea(e,t,n,s,r,i){e.firstCreatePass&&(Ia(e,new ma(n,s,i,r),-1),i&&(e.staticViewQueries=!0)),Aa(e,t)}function Sa(e,t,n,s){ka(Xt(),Jt(),t,n,s,!1,en(),e)}function xa(e,t,n,s){ka(Xt(),Jt(),t,n,s,!0,en(),e)}function ka(e,t,n,s,r,i,o,a){e.firstCreatePass&&(Ia(e,new ma(n,s,i,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,a),i&&(e.staticContentQueries=!0)),Aa(e,t)}function Ta(){return e=Jt(),t=un(),e[19].queries[t].queryList;var e,t}function Aa(e,t){const n=new da;Xs(e,t,n,n.destroy),null===t[19]&&(t[19]=new pa),t[19].queries.push(new fa(n))}function Ia(e,t,n){null===e.queries&&(e.queries=new _a),e.queries.track(new ya(t,n))}function Oa(e,t){return e.queries.getByIndex(t)}const Va=new Re("Application Initializer");let Da=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Ri(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(We(Va,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Na=new Re("AppId"),Pa={provide:Na,useFactory:function(){return`${Fa()}${Fa()}${Fa()}`},deps:[]};function Fa(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ra=new Re("Platform Initializer"),Ma=new Re("Platform ID"),ja=new Re("appBootstrapListener");let La=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ba=new Re("LocaleId"),Ha=new Re("DefaultCurrencyCode");class qa{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const za=function(e){return new ca(e)},$a=za,Qa=function(e){return Promise.resolve(za(e))},Za=function(e){const t=za(e),n=Bn(vt(e).declarations).reduce((e,t)=>{const n=gt(t);return n&&e.push(new Yo(n)),e},[]);return new qa(t,n)},Wa=Za,Ua=function(e){return Promise.resolve(Za(e))};let Ka=(()=>{class e{constructor(){this.compileModuleSync=$a,this.compileModuleAsync=Qa,this.compileModuleAndAllComponentsSync=Wa,this.compileModuleAndAllComponentsAsync=Ua}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ga=(()=>Promise.resolve(0))();function Ya(e){"undefined"==typeof Zone?Ga.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ja{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ua(!1),this.onMicrotaskEmpty=new ua(!1),this.onStable=new ua(!1),this.onError=new ua(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Ae.requestAnimationFrame,t=Ae.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nl(e),tl(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nl(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,i,o,a)=>{try{return sl(e),n.invokeTask(r,i,o,a)}finally{t&&"eventTask"===i.type&&t(),rl(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return sl(e),t.invoke(s,r,i,o,a)}finally{rl(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,nl(e),tl(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ja.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ja.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,el,Xa,Xa);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Xa(){}const el={};function tl(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 nl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function sl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function rl(e){e._nesting--,tl(e)}class il{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ua,this.onMicrotaskEmpty=new ua,this.onStable=new ua,this.onError=new ua}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let ol=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ja.assertNotInAngularZone(),Ya(()=>{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())Ya(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),al=(()=>{class e{constructor(){this._applications=new Map,ul.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return ul.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class ll{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let cl,ul=new ll;const hl=new Re("AllowMultipleToken");function dl(e,t,n=[]){const s="Platform: "+t,r=new Re(s);return(t=[])=>{let i=fl();if(!i||i.injector.get(hl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:ii,useValue:"platform"});!function(e){if(cl&&!cl.destroyed&&!cl.injector.get(hl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");cl=e.get(pl);const t=e.get(Ra,null);t&&t.forEach(e=>e())}(bi.create({providers:e,name:s}))}return function(e){const t=fl();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}(r)}}function fl(){return cl&&!cl.destroyed?cl:null}let pl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new il:("zone.js"===e?void 0:e)||new Ja({enableLongStackTrace:hs(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Ja,useValue:n}];return n.run(()=>{const t=bi.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ls,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>yl(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const s=n();return Ri(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(Da);return e.runInitializers(),e.donePromise.then(()=>(oa(r.injector.get(Ba,ra)||ra),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=ml({},t);return function(e,t,n){const s=new ca(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(_l);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ge(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(We(bi))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function ml(e,t){return Array.isArray(t)?t.reduce(ml,e):Object.assign(Object.assign({},e),t)}let _l=(()=>{class e{constructor(e,t,n,s,r,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=hs(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new g(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new g(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ja.assertNotInAngularZone(),Ya(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ja.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=$(o,a.pipe(e=>{return Q()((t=Y,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,K);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof _o?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Je),r=n.create(bi.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get(ol,null);return i&&r.injector.get(al).registerApplication(r.location.nativeElement,i),this._loadComponent(r),hs()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;yl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ja,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),yl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(We(Ja),We(La),We(bi),We(ls),We(go),We(Da))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function yl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const gl=dl(null,"core",[{provide:Ma,useValue:"unknown"},{provide:pl,deps:[bi]},{provide:al,deps:[]},{provide:La,deps:[]}]),bl=[{provide:_l,useClass:_l,deps:[Ja,La,bi,ls,go,Da]},{provide:Go,deps:[Ja],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Da,useClass:Da,deps:[[new ne,Va]]},{provide:Ka,useClass:Ka,deps:[]},Pa,{provide:jo,useFactory:function(){return Ho},deps:[]},{provide:Lo,useFactory:function(){return qo},deps:[]},{provide:Ba,useFactory:function(e){return oa(e=e||"undefined"!=typeof $localize&&$localize.locale||ra),e},deps:[[new te(Ba),new ne,new re]]},{provide:Ha,useValue:"USD"}];let vl=(()=>{class e{constructor(e){}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(_l))},providers:bl}),e})();function wl(e){return null!=e&&""+e!="false"}function Cl(e){return e instanceof bo?e.nativeElement:e}function El(...e){let t=e[e.length-1];return x(t)?(e.pop(),F(e,t)):z(e)}class Sl extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class xl extends Sl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let kl=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Tl extends kl{constructor(e,t=kl.now){super(e,()=>Tl.delegate&&Tl.delegate!==this?Tl.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Tl.delegate&&Tl.delegate!==this?Tl.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Al=new Tl(xl);class Il{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ol(e,this.predicate,this.thisArg))}}class Ol extends p{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Vl(e){return t=>t.lift(new Dl(e))}class Dl{constructor(e){this.notifier=e}call(e,t){const n=new Nl(e),s=L(this.notifier,new M(n));return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class Nl extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Pl(...e){return q(1)(El(...e))}function Fl(...e){const t=e[e.length-1];return x(t)?(e.pop(),n=>Pl(e,n,t)):t=>Pl(e,t)}class Rl{constructor(e){this.project=e}call(e,t){return t.subscribe(new Ml(e,this.project))}}class Ml extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=L(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}class jl extends xl{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}class Ll extends Tl{}const Bl=new Ll(jl),Hl=new g(e=>e.complete());function ql(e){return e?function(e){return new g(t=>e.schedule(()=>t.complete()))}(e):Hl}let zl=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return El(this.value);case"E":return e=this.error,new g(t=>t.error(e));case"C":return ql()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class $l extends p{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule($l.dispatch,this.delay,new Ql(e,this.destination)))}_next(e){this.scheduleMessage(zl.createNext(e))}_error(e){this.scheduleMessage(zl.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zl.createComplete()),this.unsubscribe()}}class Ql{constructor(e,t){this.notification=e,this.destination=t}}class Zl extends E{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Wl(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new v;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new w(this,e)),s&&e.add(e=new $l(e,s)),t)for(let o=0;o<r&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<r&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),i}_getNow(){return(this.scheduler||Bl).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,r=s.length;let i=0;for(;i<r&&!(e-s[i].time<n);)i++;return r>t&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class Wl{constructor(e,t){this.time=e,this.value=t}}let Ul=null;function Kl(){return Ul}const Gl=new Re("DocumentToken");var Yl=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class Jl{}let Xl=(()=>{class e extends Jl{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=na(t);if(n)return n;const s=t.split("-")[0];if(n=na(s),n)return n;if("en"===s)return ea;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[sa.PluralCase]}(t||this.locale)(e)){case Yl.Zero:return"zero";case Yl.One:return"one";case Yl.Two:return"two";case Yl.Few:return"few";case Yl.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(We(Ba))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),ec=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new tc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){nc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){nc("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ai(Qo),Ai(zo))},e.\u0275dir=yt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class tc{constructor(){this.$implicit=null,this.ngIf=null}}function nc(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ge(t)}'.`)}class sc{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let rc,ic=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),oc=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new sc(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(Ai(Qo),Ai(zo),Ai(ic,1))},e.\u0275dir=yt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),ac=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[{provide:Jl,useClass:Xl}]}),e})();try{rc="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(wm){rc=!1}let lc,cc=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!rc)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(We(Ma))},e.\u0275prov=le({factory:function(){return new e(We(Ma))},token:e,providedIn:"root"}),e})(),uc=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})();const hc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dc(){if(lc)return lc;if("object"!=typeof document||!document)return lc=new Set(hc),lc;let e=document.createElement("input");return lc=new Set(hc.filter(t=>(e.setAttribute("type",t),e.type===t))),lc}let fc;function pc(e){return function(){if(null==fc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fc=!0}))}finally{fc=fc||!1}return fc}()?e:!!e.capture}const mc=new Re("cdk-dir-doc",{providedIn:"root",factory:function(){return Ue(Gl)}});let _c=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new ua,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(We(mc,8))},e.\u0275prov=le({factory:function(){return new e(We(mc,8))},token:e,providedIn:"root"}),e})(),yc=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})();const gc=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();class bc{constructor(e){if(this.total=e,this.total<0)throw new gc}call(e,t){return t.subscribe(new vc(e,this.total))}}class vc extends p{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}const wc=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Cc=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||wc){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const n=this._document.createElement("div");n.classList.add(t),wc?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return e.\u0275fac=function(t){return new(t||e)(We(Gl),We(cc))},e.\u0275prov=le({factory:function(){return new e(We(Gl),We(cc))},token:e,providedIn:"root"}),e})();const Ec=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),Sc={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return Sc.schedule(e,0);if(void 0===window.requestAnimationFrame)return Sc.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function xc(e,t,n){let s=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return Ec.call(e,t)}(e,t)||(s=n,0))),s}class kc{constructor(e,t){this.componentFactory=t.get(go).resolveComponentFactory(e)}create(e){return new Tc(this.componentFactory,e)}}class Tc{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Zl(1),this.events=this.eventEmitters.pipe(function e(t,n){return"function"==typeof n?s=>s.pipe(e((e,s)=>R(t(e,s)).pipe(k((t,r)=>n(e,t,s,r))))):e=>e.lift(new Rl(t))}(e=>$(...e))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Ja),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Sc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=t)!==(s=this.getInputValue(e))&&(n==n||s==s)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=bi.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,s=t.map(()=>[]);let r=-1;t.some((e,t)=>"*"===e&&(r=t,!0));for(let i=0,o=n.length;i<o;++i){const e=n[i],o=xc(e,t,r);-1!==o&&s[o].push(e)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(_l).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(k(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Sc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const s=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const r=s?void 0:this.getInputValue(e);this.inputChanges[e]=new Ot(r,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class Ac extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Ic(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}function Oc(e,t){return new g(n=>{const s=e.length;if(0===s)return void n.complete();const r=new Array(s);let i=0,o=0;for(let a=0;a<s;a++){const l=R(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),r[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==s&&c||(o===s&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}const Vc=new Re("NgValueAccessor"),Dc={provide:Vc,useExisting:we(()=>Nc),multi:!0};let Nc=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[mo([Dc])]}),e})();const Pc={provide:Vc,useExisting:we(()=>Rc),multi:!0},Fc=new Re("CompositionEventMode");let Rc=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Kl()?Kl().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo),Ai(Fc,8))},e.\u0275dir=yt({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(e,t){1&e&&Mi("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[mo([Pc])]}),e})(),Mc=(()=>{class e{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e})(),jc=(()=>{class e extends Mc{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return Lc(t||e)},e.\u0275dir=yt({type:e,features:[no]}),e})();const Lc=rs(jc);class Bc extends Mc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let Hc=(()=>{class e extends class{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Bc,2))},e.\u0275dir=yt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Zi("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[no]}),e})();function qc(e){return null==e||0===e.length}function zc(e){return null!=e&&"number"==typeof e.length}const $c=new Re("NgValidators"),Qc=new Re("NgAsyncValidators"),Zc=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wc{static min(e){return t=>{if(qc(t.value)||qc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(qc(t.value)||qc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return qc(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return qc(e.value)||Zc.test(e.value)?null:{email:!0}}static minLength(e){return t=>qc(t.value)||!zc(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>zc(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return Wc.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(qc(e.value))return null;const s=e.value;return t.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Uc);return 0==t.length?null:function(e){return Gc(Yc(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(Uc);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return Oc(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Oc(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Oc(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(k(e=>t(...e)))}return Oc(e,null)}(Yc(e,t).map(Kc)).pipe(k(Gc))}}}function Uc(e){return null!=e}function Kc(e){const t=Ri(e)?R(e):e;return t}function Gc(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Yc(e,t){return t.map(t=>t(e))}function Jc(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}const Xc={provide:Vc,useExisting:we(()=>eu),multi:!0};let eu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[mo([Xc])]}),e})();const tu={provide:Vc,useExisting:we(()=>su),multi:!0};let nu=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),su=(()=>{class e{constructor(e,t,n,s){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Bc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo),Ai(nu),Ai(bi))},e.\u0275dir=yt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[mo([tu])]}),e})();const ru={provide:Vc,useExisting:we(()=>iu),multi:!0};let iu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[mo([ru])]}),e})();const ou={provide:Vc,useExisting:we(()=>au),multi:!0};let au=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[mo([ou])]}),e})();const lu={provide:Vc,useExisting:we(()=>cu),multi:!0};let cu=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const s=e.item(t),r=this._getOptionValue(s.value);n.push(r)}}else{const e=t.options;for(let t=0;t<e.length;t++){const s=e.item(t);if(s.selected){const e=this._getOptionValue(s.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(Ai(Eo),Ai(bo))},e.\u0275dir=yt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Mi("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[mo([lu])]}),e})();function uu(e,t){e.validator=Wc.compose([e.validator,t.validator]),e.asyncValidator=Wc.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&hu(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&hu(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function hu(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function du(e,t){e.validator=Wc.compose([e.validator,t.validator]),e.asyncValidator=Wc.composeAsync([e.asyncValidator,t.asyncValidator])}function fu(e){return null!=e?Wc.compose(Jc(e)):null}function pu(e){return null!=e?Wc.composeAsync(Jc(e)):null}const mu=[Nc,iu,eu,au,cu,su];function _u(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const gu="VALID",bu="INVALID",vu="PENDING",wu="DISABLED";function Cu(e){return(ku(e)?e.validators:e)||null}function Eu(e){return Array.isArray(e)?fu(e):e||null}function Su(e,t){return(ku(t)?t.asyncValidators:e)||null}function xu(e){return Array.isArray(e)?pu(e):e||null}function ku(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Tu{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Eu(this._rawValidators),this._composedAsyncValidatorFn=xu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===gu}get invalid(){return this.status===bu}get pending(){return this.status==vu}get disabled(){return this.status===wu}get enabled(){return this.status!==wu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Eu(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=xu(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=vu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=wu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=gu,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==gu&&this.status!==vu||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wu:gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=vu,this._hasOwnPendingAsyncValidator=!0;const t=Kc(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let s=e;return t.forEach(e=>{s=s instanceof Iu?s.controls.hasOwnProperty(e)?s.controls[e]:null:s instanceof Ou&&s.at(e)||null}),s}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ua,this.statusChanges=new ua}_calculateStatus(){return this._allControlsDisabled()?wu:this.errors?bu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vu)?vu:this._anyControlsHaveStatus(bu)?bu:gu}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ku(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Au extends Tu{constructor(e=null,t,n){super(Cu(t),Su(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Iu extends Tu{constructor(e,t,n){super(Cu(t),Su(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Au?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,s)=>{n=t(n,e,s)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ou extends Tu{constructor(e,t,n){super(Cu(t),Su(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Au?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Vu={provide:jc,useExisting:we(()=>Nu)},Du=(()=>Promise.resolve(null))();let Nu=(()=>{class e extends jc{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ua,this.form=new Iu({},fu(e),pu(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Du.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),uu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Du.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),yu(this._directives,e)})}addFormGroup(e){Du.then(()=>{const t=this._findContainer(e.path),n=new Iu({});du(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Du.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Du.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,_u(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10))},e.\u0275dir=yt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Mi("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Vu]),no]}),e})();const Pu=new Re("NgModelWithFormControlWarning"),Fu={provide:Bc,useExisting:we(()=>Ru)};let Ru=(()=>{class e extends Bc{constructor(e,t,n,s){super(),this._ngModelWarningConfig=s,this.update=new ua,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t);let n=void 0,s=void 0,r=void 0;return t.forEach(e=>{var t;e.constructor===Rc?n=e:(t=e,mu.some(e=>t.constructor===e)?s=e:r=e)}),r||s||n||null}(0,n)}set isDisabled(e){}ngOnChanges(t){var n,s;this._isControlChanged(t)&&(uu(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(t,this.viewModel)&&(n=e,this,s=this._ngModelWarningConfig,hs()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fu(this._rawValidators)}get asyncValidator(){return pu(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10),Ai(Vc,10),Ai(Pu,8))},e.\u0275dir=yt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[mo([Fu]),no,Vt]}),e._ngModelWarningSentOnce=!1,e})();const Mu={provide:jc,useExisting:we(()=>ju)};let ju=(()=>{class e extends jc{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new ua}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return uu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){yu(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);du(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);du(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,_u(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){const n=()=>{};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&uu(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=fu(this._validators);this.form.validator=Wc.compose([this.form.validator,e]);const t=pu(this._asyncValidators);this.form.asyncValidator=Wc.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(Ai($c,10),Ai(Qc,10))},e.\u0275dir=yt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Mi("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mo([Mu]),no,Vt]}),e})(),Lu=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)}}),e})(),Bu=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let s=null,r=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(s=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(s=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Iu(n,{asyncValidators:r,updateOn:i,validators:s})}control(e,t,n){return new Au(e,t,n)}array(e,t,n){const s=e.map(e=>this._createControl(e));return new Ou(s,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Au||e instanceof Iu||e instanceof Ou?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Hu=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[nu],imports:[Lu]}),e})(),qu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Pu,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[Bu,nu],imports:[Lu]}),e})();function zu(e,t=Al){return n=>n.lift(new $u(e,t))}class $u{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new Qu(e,this.dueTime,this.scheduler))}}class Qu extends p{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Zu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function Zu(e){e.debouncedNext()}let Wu=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Uu=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Cl(e);return new g(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new E,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(We(Wu))},e.\u0275prov=le({factory:function(){return new e(We(Wu))},token:e,providedIn:"root"}),e})(),Ku=(()=>{class e{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new ua,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=wl(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=function(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(zu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(Ai(Uu),Ai(bo),Ai(Ja))},e.\u0275dir=yt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e})(),Gu=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[Wu]}),e})();"undefined"!=typeof Element&∈const Yu="cdk-high-contrast-black-on-white",Ju="cdk-high-contrast-white-on-black",Xu="cdk-high-contrast-active";let eh=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Xu),e.remove(Yu),e.remove(Ju);const t=this.getHighContrastMode();1===t?(e.add(Xu),e.add(Yu)):2===t&&(e.add(Xu),e.add(Ju))}}}return e.\u0275fac=function(t){return new(t||e)(We(cc),We(Gl))},e.\u0275prov=le({factory:function(){return new e(We(cc),We(Gl))},token:e,providedIn:"root"}),e})();const th=new ko("10.2.0");class nh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new nh,Ul||(Ul=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=rh||(rh=document.querySelector("base"),rh)?rh.getAttribute("href"):null;return null==t?null:(n=t,sh||(sh=document.createElement("a")),sh.setAttribute("href",n),"/"===sh.pathname.charAt(0)?sh.pathname:"/"+sh.pathname);var n}resetBaseElement(){rh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let sh,rh=null;const ih=new Re("TRANSITION_ID"),oh=[{provide:Va,useFactory:function(e,t,n){return()=>{n.get(Da).donePromise.then(()=>{const n=Kl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[ih,Gl,bi],multi:!0}];class ah{static init(){var e;e=new ah,ul=e}addToWindow(e){Ae.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ae.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ae.getAllAngularRootElements=()=>e.getAllRootElements(),Ae.frameworkStabilizers||(Ae.frameworkStabilizers=[]),Ae.frameworkStabilizers.push(e=>{const t=Ae.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Kl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const lh=new Re("EventManagerPlugins");let ch=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(We(lh),We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class uh{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Kl().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}let hh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),dh=(()=>{class e extends hh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Kl().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const fh={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/"},ph=/%COMP%/g;function mh(e,t,n){for(let s=0;s<t.length;s++){let r=t[s];Array.isArray(r)?mh(e,r,n):(r=r.replace(ph,e),n.push(r))}return n}function _h(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let yh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new gh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case at.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new bh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case at.Native:case at.ShadowDom:return new vh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=mh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(We(ch),We(dh),We(Na))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class gh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(fh[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=fh[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=fh[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&Co.DashCase?e.style.setProperty(t,n,s&Co.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Co.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,_h(n)):this.eventManager.addEventListener(e,t,_h(n))}}class bh extends gh{constructor(e,t,n,s){super(e),this.component=n;const r=mh(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(ph,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ph,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class vh extends gh{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===at.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=mh(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const e=document.createElement("style");e.textContent=r[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let wh=(()=>{class e extends uh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ch=["alt","control","meta","shift"],Eh={"\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"},Sh={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"},xh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kh=(()=>{class e extends uh{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kl().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(Ch.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=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&&Sh.hasOwnProperty(t)&&(t=Sh[t]))}return Eh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ch.forEach(s=>{s!=n&&(0,xh[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Th=dl(gl,"browser",[{provide:Ma,useValue:"browser"},{provide:Ra,useValue:function(){nh.makeCurrent(),ah.init()},multi:!0},{provide:Gl,useFactory:function(){return function(e){Rt=e}(document),document},deps:[]}]),Ah=[[],{provide:ii,useValue:"root"},{provide:ls,useFactory:function(){return new ls},deps:[]},{provide:lh,useClass:wh,multi:!0,deps:[Gl,Ja,Ma]},{provide:lh,useClass:kh,multi:!0,deps:[Gl]},[],{provide:yh,useClass:yh,deps:[ch,dh,Na]},{provide:wo,useExisting:yh},{provide:hh,useExisting:dh},{provide:dh,useClass:dh,deps:[Gl]},{provide:ol,useClass:ol,deps:[Ja]},{provide:ch,useClass:ch,deps:[lh,Ja]},[]];let Ih=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Na,useValue:t.appId},{provide:ih,useExisting:Na},oh]}}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(e,12))},providers:Ah,imports:[ac,vl]}),e})();"undefined"!=typeof window&&window;class Oh{}const Vh="*";function Dh(e,t){return{type:7,name:e,definitions:t,options:{}}}function Nh(e,t=null){return{type:4,styles:t,timings:e}}function Ph(e,t=null){return{type:2,steps:e,options:t}}function Fh(e){return{type:6,styles:e,offset:null}}function Rh(e,t,n){return{type:0,name:e,styles:t,options:n}}function Mh(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function jh(e){Promise.resolve(null).then(e)}class Lh{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){jh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Bh{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?jh(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function Hh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function qh(e){switch(e.length){case 0:return new Lh;case 1:return e[0];default:return new Bh(e)}}function zh(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case Vh:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function $h(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&Qh(n,"start",e)));break;case"done":e.onDone(()=>s(n&&Qh(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&Qh(n,"destroy",e)))}}function Qh(e,t,n){const s=n.totalTime,r=Zh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function Zh(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function Wh(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function Uh(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Kh=(e,t)=>!1,Gh=(e,t)=>!1,Yh=(e,t,n)=>[];const Jh=Hh();(Jh||"undefined"!=typeof Element)&&(Kh=(e,t)=>e.contains(t),Gh=(()=>{if(Jh||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):Gh}})(),Yh=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let Xh=null,ed=!1;function td(e){Xh||(Xh=("undefined"!=typeof document?document.body:null)||{},ed=!!Xh.style&&"WebkitAppearance"in Xh.style);let t=!0;return Xh.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Xh.style,!t&&ed)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Xh.style),t}const nd=Gh,sd=Kh,rd=Yh;function id(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let od=(()=>{class e{validateStyleProperty(e){return td(e)}matchesElement(e,t){return nd(e,t)}containsElement(e,t){return sd(e,t)}query(e,t,n){return rd(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new Lh(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),ad=(()=>{class e{}return e.NOOP=new od,e})();const ld="ng-enter",cd="ng-leave",ud="ng-trigger",hd=".ng-trigger",dd="ng-animating",fd=".ng-animating";function pd(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:md(parseFloat(t[1]),t[2])}function md(e,t){switch(t){case"s":return 1e3*e;default:return e}}function _d(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=md(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=md(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function yd(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function gd(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else yd(e,n);return n}function bd(e,t,n){return n?t+":"+n+";":""}function vd(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=bd(0,s,e.style.getPropertyValue(s))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=bd(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function wd(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const r=Id(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),Hh()&&vd(e))}function Cd(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Id(t);e.style[n]=""}),Hh()&&vd(e))}function Ed(e){return Array.isArray(e)?1==e.length?e[0]:Ph(e):e}const Sd=new RegExp("{{\\s*(.+?)\\s*}}","g");function xd(e){let t=[];if("string"==typeof e){let n;for(;n=Sd.exec(e);)t.push(n[1]);Sd.lastIndex=0}return t}function kd(e,t,n){const s=e.toString(),r=s.replace(Sd,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),r=""),r.toString()});return r==s?e:r}function Td(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Ad=/-+([a-z0-9])/g;function Id(e){return e.replace(Ad,(...e)=>e[1].toUpperCase())}function Od(e,t){return 0===e||0===t}function Vd(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;r<t.length;r++){let n=t[r];o.forEach((function(t){n[t]=Nd(e,t)}))}}return t}function Dd(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Nd(e,t){return window.getComputedStyle(e)[t]}const Pd="*";function Fd(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(jd(r,o)),"<"!=i[0]||r==Pd&&o==Pd||t.push(jd(o,r))}(e,n,t)):n.push(e),n}const Rd=new Set(["true","1"]),Md=new Set(["false","0"]);function jd(e,t){const n=Rd.has(e)||Md.has(e),s=Rd.has(t)||Md.has(t);return(r,i)=>{let o=e==Pd||e==r,a=t==Pd||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?Rd.has(e):Md.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?Rd.has(t):Md.has(t)),o&&a}}const Ld=new RegExp("s*:selfs*,?","g");function Bd(e,t,n){return new Hd(e).build(t,n)}class Hd{constructor(e){this._driver=e}build(e,t){const n=new qd(t);return this._resetContextStyleTimingState(n),Dd(this,Ed(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(zd(e)){const t=e;Object.keys(t).forEach(e=>{xd(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Td(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Dd(this,Ed(e.animation),t);return{type:1,matchers:Fd(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:$d(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Dd(this,e,t)),options:$d(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Dd(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:$d(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Qd(_d(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Qd(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||_d(s,t),Qd(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:Fh({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=Fh(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Vh?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(zd(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=xd(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(zd(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(zd(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c<a,a=c,r.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,f=t.currentAnimateTimings,p=f.duration;return l.forEach((e,s)=>{const i=u>0?s==h?1:u*s:r[s],o=i*p;t.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Dd(this,Ed(e.animation),t),options:$d(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:$d(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:$d(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Ld,"")),[e=e.replace(/@\*/g,hd).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,fd),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,Wh(t.collectedStyles,t.currentQuerySelector,{});const o=Dd(this,Ed(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:$d(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:_d(e.timings,t.errors,!0);return{type:12,animation:Dd(this,Ed(e.animation),t),timings:n,options:null}}}class qd{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function zd(e){return!Array.isArray(e)&&"object"==typeof e}function $d(e){var t;return e?(e=yd(e)).params&&(e.params=(t=e.params)?yd(t):null):e={},e}function Qd(e,t,n){return{duration:e,delay:t,easing:n}}function Zd(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class Wd{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Ud=new RegExp(":enter","g"),Kd=new RegExp(":leave","g");function Gd(e,t,n,s,r,i={},o={},a,l,c=[]){return(new Yd).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class Yd{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new Wd;const u=new Xd(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),Dd(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Zd(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?pd(n.duration):null,i=null!=n.delay?pd(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Dd(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Jd);const e=pd(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Dd(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?pd(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),Dd(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return _d(t.params?kd(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?pd(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Jd);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),Dd(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Dd(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Jd={};class Xd{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Jd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ef(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=pd(n.duration)),null!=n.delay&&(s.delay=pd(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=kd(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new Xd(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Jd,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new tf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(Ud,"."+this._enterClassName)).replace(Kd,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class ef{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new ef(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Vh,this._currentKeyframe[e]=Vh}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=Vh})):gd(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=kd(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Vh),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=gd(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==Vh&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?Td(e.values()):[],i=t.size?Td(t.values()):[];if(n){const e=s[0],t=yd(e);e.offset=0,t.offset=1,s=[e,t]}return Zd(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class tf extends ef{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=gd(e[0],!1);a.offset=0,r.push(a);const l=gd(e[0],!1);l.offset=nf(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=gd(e[s],!1);o.offset=nf((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return Zd(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function nf(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class sf{}class rf extends sf{normalizePropertyName(e,t){return Id(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(of[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const of=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function af(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const lf={};class cf{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||lf,d=this.buildStyles(n,o&&o.params||lf,u),f=a&&a.params||lf,p=this.buildStyles(s,f,u),m=new Set,_=new Map,y=new Map,g="void"===s,b={params:Object.assign(Object.assign({},h),f)},v=c?[]:Gd(e,t,this.ast.animation,r,i,d,p,b,l,u);let w=0;if(v.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return af(t,this._triggerName,n,s,g,d,p,[],[],_,y,w,u);v.forEach(e=>{const n=e.element,s=Wh(_,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=Wh(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=Td(m.values());return af(t,this._triggerName,n,s,g,d,p,v,C,_,y,w)}}class uf{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=yd(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=kd(i,s,t)),n[e]=i})}}),n}}class hf{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new uf(e.style,e.options&&e.options.params||{})}),df(this.states,"true","1"),df(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new cf(e,t,this.states))}),this.fallbackTransition=new cf(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function df(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const ff=new Wd;class pf{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=Bd(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=zh(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=Gd(this._driver,t,r,ld,cd,{},{},n,ff,s),i.forEach(e=>{const t=Wh(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Vh)})});const a=qh(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,s){const r=Zh(t,"","","");return $h(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const mf="ng-animate-queued",_f="ng-animate-disabled",yf=".ng-animate-disabled",gf=[],bf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class wf{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=yd(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Cf="void",Ef=new wf(Cf);class Sf{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Vf(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=Wh(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=Wh(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Vf(e,ud),Vf(e,"ng-trigger-"+t),a[t]=Ef),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new kf(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Vf(e,ud),Vf(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new wf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Ef),l.value!==Cf&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=r.matchStyles(a.value,a.params,t),s=r.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Cd(e,n),wd(e,s)})}return}const c=Wh(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Vf(e,mf),i.onStart(()=>{Df(e,mf)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,hd,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Cf,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&qh(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(e)[s]||Ef,o=new wf(Cf),a=new kf(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==bf||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Vf(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=Zh(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,$h(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class xf{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Sf(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const r=n[e[s]].namespaceId;if(r){const e=this._fetchNamespace(r);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(Tf(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!Tf(t))return;const r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Vf(e,_f)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Df(e,_f))}removeNode(e,t,n,s){if(Tf(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return Tf(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,hd,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,fd,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return qh(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=bf,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,yf)&&this.markElementAsDisabled(e,!1),this.driver.query(e,yf,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Vf(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?qh(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new Wd,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Of(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((e,t)=>{const n=ld+p++;f.set(t,n),e.forEach(e=>Vf(e,n))});const m=[],_=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const e=this.collectedLeaveElements[O],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),_.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>_.add(e)):y.add(e))}const g=new Map,b=Of(h,Array.from(_));b.forEach((e,t)=>{const n=cd+p++;g.set(t,n),e.forEach(e=>Vf(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=f.get(t);e.forEach(e=>Df(e,n))}),b.forEach((e,t)=>{const n=g.get(t);e.forEach(e=>Df(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(v.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=g.get(r),d=f.get(r),p=this._buildInstruction(e,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return t.onStart(()=>Cd(r,p.fromStyles)),t.onDestroy(()=>wd(r,p.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>Cd(r,p.fromStyles)),t.onDestroy(()=>wd(r,p.toStyles)),void s.push(t);p.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,p.timelines),i.push({instruction:p,player:t,element:r}),p.queriedElements.forEach(e=>Wh(o,e,[]).push(t)),p.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),p.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),v.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,E=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(E.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Wh(C,t,[]).push(e),e.destroy()})});const S=m.filter(e=>Pf(e,a,l)),x=new Map;If(x,this.driver,y,l,Vh).forEach(e=>{Pf(e,a,l)&&S.push(e)});const k=new Map;d.forEach((e,t)=>{If(k,this.driver,new Set(e),a,"!")}),S.forEach(e=>{const t=x.get(e),n=k.get(e);x.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>wd(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(E.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=E.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>E.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,C,r,k,x);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=qh(t)),s.push(i)}}else Cd(t,o.fromStyles),i.onDestroy(()=>wd(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=qh(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O<m.length;O++){const e=m[O],t=e.__ng_removed;if(Df(e,cd),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,fd,!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?Nf(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==Cf;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=Wh(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Cd(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Lh(t.duration,t.delay);const f=h!==a,p=function(e){const t=[];return function e(t,n){for(let s=0;s<t.length;s++){const r=t[s];r instanceof Bh?e(r.players,n):n.push(r)}}(e,t),t}((n.get(h)||gf).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),_=i.get(h),y=zh(0,this._normalizer,0,t.keyframes,m,_),g=this._buildPlayer(t,y,p);if(t.subTimeline&&s&&u.add(h),f){const t=new kf(e,o,h);t.setRealPlayer(g),l.push(t)}return g});l.forEach(e=>{Wh(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Vf(e,dd));const d=qh(h);return d.onDestroy(()=>{c.forEach(e=>Df(e,dd)),wd(a,t.toStyles)}),u.forEach(e=>{Wh(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Lh(e.duration,e.delay)}}class kf{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Lh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>$h(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Wh(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Tf(e){return e&&1===e.nodeType}function Af(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function If(e,t,n,s,r){const i=[];n.forEach(e=>i.push(Af(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=vf,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>Af(e,i[a++])),o}function Of(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=r.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:s.has(o)?1:e(o),r.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}function Vf(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Df(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Nf(e,t,n){qh(n).onDone(()=>e.processLeaveNode(t))}function Pf(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class Ff{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new xf(e,t,n),this._timelineEngine=new pf(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=Bd(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new hf(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=Uh(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=Uh(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Rf(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=jf(t[0]),t.length>1&&(s=jf(t[t.length-1]))):t&&(n=jf(t)),n||s?new Mf(e,n,s):null}let Mf=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&wd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wd(this._element,this._initialStyles),this._endStyles&&(wd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Cd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Cd(this._element,this._endStyles),this._endStyles=null),wd(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function jf(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const r=n[s];Lf(r)&&(t=t||{},t[r]=e[r])}return t}function Lf(e){return"display"===e||"position"===e}const Bf="animation",Hf="animationend";class qf{constructor(e,t,n,s,r,i,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=Uf(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s<e.length;s++)","===e.charAt(s)&&n++}(n),t=`${n}, ${t}`),Wf(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Zf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){zf(this._element,this._name,"paused")}resume(){zf(this._element,this._name,"running")}setPosition(e){const t=$f(this._element,this._name);this._position=e*this._duration,Wf(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Uf(e,"").split(","),s=Qf(n,t);s>=0&&(n.splice(s,1),Wf(e,"",n.join(",")))}(this._element,this._name))}}function zf(e,t,n){Wf(e,"PlayState",n,$f(e,t))}function $f(e,t){const n=Uf(e,"");return n.indexOf(",")>0?Qf(n.split(","),t):Qf([n],t)}function Qf(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Zf(e,t,n){n?e.removeEventListener(Hf,t):e.addEventListener(Hf,t)}function Wf(e,t,n,s){const r=Bf+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function Uf(e,t){return e.style[Bf+t]}class Kf{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new qf(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Nd(this.element,n))})}this.currentSnapshot=e}}class Gf extends Lh{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=id(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class Yf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return td(e)}matchesElement(e,t){return nd(e,t)}containsElement(e,t){return sd(e,t)}query(e,t,n){return rd(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>id(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=r+"}\n"}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(e,t,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof Kf),l={};Od(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Vd(e,t,l));if(0==n)return new Gf(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Rf(e,t),f=new Kf(e,t,u,n,s,r,c,d);return f.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Jf{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Nd(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Xf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ep().toString()),this._cssKeyframesDriver=new Yf}validateStyleProperty(e){return td(e)}matchesElement(e,t){return nd(e,t)}containsElement(e,t){return sd(e,t)}query(e,t,n){return rd(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof Jf);Od(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Rf(e,t=Vd(e,t=t.map(e=>gd(e,!1)),l));return new Jf(e,t,a,u)}}function ep(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let tp=(()=>{class e extends Oh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:at.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Ph(e):e;return rp(this._renderer,null,t,"register",[n]),new np(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(We(wo),We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class np extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new sp(this._id,e,t||{},this._renderer)}}class sp{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return rp(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function rp(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const ip="@",op="@.disabled";let ap=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new lp("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new cp(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(We(wo),We(Ff),We(Ja))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class lp{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==ip&&t==op?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class cp extends lp{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==ip?"."==t.charAt(1)&&t==op?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==ip){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=ip&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let up=(()=>{class e extends Ff{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(We(Gl),We(ad),We(sf))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const hp=new Re("AnimationModuleType"),dp=[{provide:ad,useFactory:function(){return"function"==typeof ep()?new Xf:new Yf}},{provide:hp,useValue:"BrowserAnimations"},{provide:Oh,useClass:tp},{provide:sf,useFactory:function(){return new rf}},{provide:Ff,useClass:up},{provide:wo,useFactory:function(e,t,n){return new ap(e,t,n)},deps:[yh,Ff,Ja]}];let fp=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:dp,imports:[Ih]}),e})();const pp=new ko("10.2.0"),mp=new Re("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let _p,yp=(()=>{class e{constructor(e,t,n){this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=t,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const e=this._document||document;return"object"==typeof e&&e?e:null}_getWindow(){const e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return hs()&&!this._isTestEnv()}_isTestEnv(){const e=this._getWindow();return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){const e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(e||!t||!t.body||"function"!=typeof getComputedStyle)return;const n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&pp.full!==th.full&&console.warn("The Angular Material version ("+pp.full+") does not match the Angular CDK version ("+th.full+").\nPlease ensure the versions of these two packages exactly match.")}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(eh),We(mp,8),We(Gl,8))},imports:[[yc],yc]}),e})();function gp(e,t){return class extends e{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-"+t),this._color=t)}}}function bp(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new E}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}try{_p="undefined"!=typeof Intl}catch(wm){_p=!1}let vp=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:function(){return new e},token:e,providedIn:"root"}),e})();const wp=new Re("mat-label-global-options"),Cp=["underline"],Ep=["connectionContainer"],Sp=["inputContainer"],xp=["label"];function kp(e,t){1&e&&(Pi(0),Vi(1,"div",14),Ni(2,"div",15),Ni(3,"div",16),Ni(4,"div",17),Di(),Vi(5,"div",18),Ni(6,"div",15),Ni(7,"div",16),Ni(8,"div",17),Di(),Fi())}function Tp(e,t){1&e&&(Vi(0,"div",19),qi(1,1),Di())}function Ap(e,t){if(1&e&&(Pi(0),qi(1,2),Vi(2,"span"),Yi(3),Di(),Fi()),2&e){const e=Bi(2);Ds(3),Ji(e._control.placeholder)}}function Ip(e,t){1&e&&qi(0,3,["*ngSwitchCase","true"])}function Op(e,t){1&e&&(Vi(0,"span",23),Yi(1," *"),Di())}function Vp(e,t){if(1&e){const e=Jt();Vi(0,"label",20,21),Mi("cdkObserveContent",(function(){return Gt.lFrame.contextLView=e,Bi().updateOutlineGap()})),Ti(2,Ap,4,1,"ng-container",12),Ti(3,Ip,1,0,"ng-content",12),Ti(4,Op,2,0,"span",22),Di()}if(2&e){const e=Bi();Zi("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),Ii("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ki("for",e._control.id)("aria-owns",e._control.id),Ds(2),Ii("ngSwitchCase",!1),Ds(1),Ii("ngSwitchCase",!0),Ds(1),Ii("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Dp(e,t){1&e&&(Vi(0,"div",24),qi(1,4),Di())}function Np(e,t){if(1&e&&(Vi(0,"div",25,26),Ni(2,"span",27),Di()),2&e){const e=Bi();Ds(2),Zi("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Pp(e,t){1&e&&(Vi(0,"div"),qi(1,5),Di()),2&e&&Ii("@transitionMessages",Bi()._subscriptAnimationState)}function Fp(e,t){if(1&e&&(Vi(0,"div",31),Yi(1),Di()),2&e){const e=Bi(2);Ii("id",e._hintLabelId),Ds(1),Ji(e.hintLabel)}}function Rp(e,t){if(1&e&&(Vi(0,"div",28),Ti(1,Fp,2,2,"div",29),qi(2,6),Ni(3,"div",30),qi(4,7),Di()),2&e){const e=Bi();Ii("@transitionMessages",e._subscriptAnimationState),Ds(1),Ii("ngIf",e.hintLabel)}}const Mp=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jp=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Lp=0;const Bp=new Re("MatError");let Hp=(()=>{class e{constructor(){this.id="mat-error-"+Lp++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&ki("id",t.id)},inputs:{id:"id"},features:[mo([{provide:Bp,useExisting:e}])]}),e})();const qp={transitionMessages:Dh("transitionMessages",[Rh("enter",Fh({opacity:1,transform:"translateY(0%)"})),Mh("void => enter",[Fh({opacity:0,transform:"translateY(-100%)"}),Nh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let zp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e}),e})(),$p=0;const Qp=new Re("MatHint");let Zp=(()=>{class e{constructor(){this.align="start",this.id="mat-hint-"+$p++}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(ki("id",t.id)("align",null),Zi("mat-right","end"==t.align))},inputs:{align:"align",id:"id"},features:[mo([{provide:Qp,useExisting:e}])]}),e})(),Wp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-label"]]}),e})(),Up=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=yt({type:e,selectors:[["mat-placeholder"]]}),e})();const Kp=new Re("MatPrefix"),Gp=new Re("MatSuffix");let Yp=0;class Jp{constructor(e){this._elementRef=e}}const Xp=gp(Jp,"primary"),em=new Re("MAT_FORM_FIELD_DEFAULT_OPTIONS"),tm=new Re("MatFormField");let nm=(()=>{class e extends Xp{constructor(e,t,n,s,r,i,o,a){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=s,this._defaults=r,this._platform=i,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Yp++,this._labelId="mat-form-field-label-"+Yp++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=wl(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Fl(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Vl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Vl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),$(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Fl(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Fl(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Vl(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,function e(t,n,r,i){return s(r)&&(i=r,r=void 0),i?e(t,n,r).pipe(k(e=>l(e)?i(...e):i(e))):new g(e=>{!function e(t,n,s,r,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,s,i),o=()=>e.removeEventListener(n,s,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,s),o=()=>e.off(n,s)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,s),o=()=>e.removeListener(n,s)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,s,r,i)}r.add(o)}(t,n,(function(t){e.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),e,r)})}(this._label.nativeElement,"transitionend").pipe((1,e=>e.lift(new bc(1)))).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const s=this._connectionContainerRef.nativeElement,r=s.querySelectorAll(".mat-form-field-outline-start"),i=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=s.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const i=this._getStartEnd(r),o=e.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let e=0;e<o.length;e++)l+=o[e].offsetWidth;t=Math.abs(a-i)-5,n=l>0?.75*l+10:0}for(let o=0;o<r.length;o++)r[o].style.width=t+"px";for(let o=0;o<i.length;o++)i[o].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}return e.\u0275fac=function(t){return new(t||e)(Ai(bo),Ai(si),Ai(wp,8),Ai(_c,8),Ai(em,8),Ai(cc),Ai(Ja),Ai(hp,8))},e.\u0275cmp=ht({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var s;1&e&&(Sa(n,zp,!0),xa(n,zp,!0),Sa(n,Wp,!0),xa(n,Wp,!0),Sa(n,Up,!0),Sa(n,Bp,!0),Sa(n,Qp,!0),Sa(n,Kp,!0),Sa(n,Gp,!0)),2&e&&(wa(s=Ta())&&(t._controlNonStatic=s.first),wa(s=Ta())&&(t._controlStatic=s.first),wa(s=Ta())&&(t._labelChildNonStatic=s.first),wa(s=Ta())&&(t._labelChildStatic=s.first),wa(s=Ta())&&(t._placeholderChild=s.first),wa(s=Ta())&&(t._errorChildren=s),wa(s=Ta())&&(t._hintChildren=s),wa(s=Ta())&&(t._prefixChildren=s),wa(s=Ta())&&(t._suffixChildren=s))},viewQuery:function(e,t){var n,s;1&e&&(Ca(Cp,!0),s=Ep,!0,Ea(Xt(),Jt(),s,true,undefined,!0),Ca(Sp,!0),Ca(xp,!0)),2&e&&(wa(n=Ta())&&(t.underlineRef=n.first),wa(n=Ta())&&(t._connectionContainerRef=n.first),wa(n=Ta())&&(t._inputContainerRef=n.first),wa(n=Ta())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Zi("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[mo([{provide:tm,useExisting:e}]),no],ngContentSelectors:jp,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(function(e){const t=Jt()[16][6];if(!t.projection){const n=t.projection=nt(e?e.length:1,null),s=n.slice();let r=t.child;for(;null!==r;){const t=e?Hi(r,e):0;null!==t&&(s[t]?s[t].projectionNext=r:n[t]=r,s[t]=r),r=r.next}}}(Mp),Vi(0,"div",0),Vi(1,"div",1,2),Mi("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),Ti(3,kp,9,0,"ng-container",3),Ti(4,Tp,2,0,"div",4),Vi(5,"div",5,6),qi(7),Vi(8,"span",7),Ti(9,Vp,5,16,"label",8),Di(),Di(),Ti(10,Dp,2,0,"div",9),Di(),Ti(11,Np,3,4,"div",10),Vi(12,"div",11),Ti(13,Pp,2,1,"div",12),Ti(14,Rp,5,2,"div",13),Di(),Di()),2&e&&(Ds(3),Ii("ngIf","outline"==t.appearance),Ds(1),Ii("ngIf",t._prefixChildren.length),Ds(5),Ii("ngIf",t._hasFloatingLabel()),Ds(1),Ii("ngIf",t._suffixChildren.length),Ds(1),Ii("ngIf","outline"!=t.appearance),Ds(1),Ii("ngSwitch",t._getDisplayedMessages()),Ds(1),Ii("ngSwitchCase","error"),Ds(1),Ii("ngSwitchCase","hint"))},directives:[ec,ic,oc,Ku],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[qp.transitionMessages]},changeDetection:0}),e})(),sm=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},imports:[[ac,yp,Gu],yp]}),e})();const rm=pc({passive:!0});let im=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Hl;const t=Cl(e),n=this._monitoredElements.get(t);if(n)return n.subject;const s=new E,r="cdk-text-field-autofilled",i=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(r)&&(t.classList.remove(r),this._ngZone.run(()=>s.next({target:e.target,isAutofilled:!1}))):(t.classList.add(r),this._ngZone.run(()=>s.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",i,rm),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:s,unlisten:()=>{t.removeEventListener("animationstart",i,rm)}}),s}stopMonitoring(e){const t=Cl(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.\u0275fac=function(t){return new(t||e)(We(cc),We(Ja))},e.\u0275prov=le({factory:function(){return new e(We(cc),We(Ja))},token:e,providedIn:"root"}),e})(),om=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},imports:[[uc]]}),e})();const am=new Re("MAT_INPUT_VALUE_ACCESSOR"),lm=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let cm=0;class um{constructor(e,t,n,s){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=s}}const hm=bp(um);let dm=(()=>{class e extends hm{constructor(e,t,n,s,r,i,o,a,l,c){super(i,s,r,n),this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+cm++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>dc().has(e));const u=this._elementRef.nativeElement,h=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=wl(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=wl(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=wl(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){const e=this._elementRef.nativeElement;this._previousPlaceholder=n,n?e.setAttribute("placeholder",n):e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){lm.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return e.\u0275fac=function(t){return new(t||e)(Ai(bo),Ai(cc),Ai(Bc,10),Ai(Nu,8),Ai(ju,8),Ai(vp),Ai(am,10),Ai(im),Ai(Ja),Ai(tm,8))},e.\u0275dir=yt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&Mi("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&(eo("disabled",t.disabled)("required",t.required),ki("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Zi("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[mo([{provide:zp,useExisting:e}]),no,Vt]}),e})(),fm=(()=>{class e{}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)},providers:[vp],imports:[[om,sm],om,sm]}),e})(),pm=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container",t=this._document.querySelectorAll("."+e);if(null==t?void 0:t.length)this._containerElement=t[0];else{const t=this._document.createElement("div");t.classList.add(e),this._document.body.appendChild(t),this._containerElement=t}}}return e.\u0275fac=function(t){return new(t||e)(We(Gl))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),mm=(()=>{class e{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Au(""),this.onEnter$=new E,this.valueCanBeChanged=!1}ngOnInit(){var e;this.onEnter$.pipe(zu(100)).subscribe(()=>{var e;this.shouldValueChange(this.formControl.value)&&(null===(e=this.onEnter)||void 0===e||e.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe((e=e=>(this.valueCanBeChanged=this.shouldValueChange(e),this.valueCanBeChanged),function(t){return t.lift(new Il(e,undefined))})).subscribe(e=>{this.updateOnBlur||this.triggerValueChange(e)})}triggerValueChange(e){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(e)})}onEnterKeydown(e){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(e){var t;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),e.value&&!(null===(t=this.input)||void 0===t?void 0:t.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(e){return e}shouldValueChange(e){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function _m(e,t){if(1&e&&(Vi(0,"mat-label"),Yi(1),Di()),2&e){const e=Bi();Ds(1),Ji(e.label)}}function ym(e,t){if(1&e&&(Vi(0,"mat-error"),Yi(1),Di()),2&e){const e=Bi();Ds(1),Xi(" ",e.error," ")}}let gm=(()=>{class e extends mm{}return e.\u0275fac=function(t){return bm(t||e)},e.\u0275cmp=ht({type:e,selectors:[["drayman-textarea-field-internal"]],viewQuery:function(e,t){var n;1&e&&Ca(dm,!0),2&e&&wa(n=Ta())&&(t.input=n.first)},inputs:{rows:"rows",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[no],decls:6,vars:9,consts:[[3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","type","text","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","rows","blur"]],template:function(e,t){1&e&&(Vi(0,"mat-form-field",0),Ti(1,_m,2,1,"mat-label",1),Vi(2,"textarea",2),Mi("blur",(function(){return t.onBlur()})),Di(),Vi(3,"mat-hint"),Yi(4),Di(),Ti(5,ym,2,1,"mat-error",1),Di()),2&e&&(Ii("appearance",t.appearance||"outline")("floatLabel","auto"),Ds(1),Ii("ngIf",t.label),Ds(1),Ii("placeholder",t.placeholder||t.label)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("rows",t.rows),Ds(2),Ji(t.helpText),Ds(1),Ii("ngIf",t.error))},directives:[nm,ec,dm,Rc,Hc,Ru,Zp,Wp,Hp],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),e})();const bm=rs(gm);let vm=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(go).resolveComponentFactory(e).inputs}(e,t.injector),s=t.strategyFactory||new kc(e,t.injector),r=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var s;t[(s=n,s.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class i extends Ac{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=s.create(this.injector||t.injector),r=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof i?r.forEach(([e])=>delete this[e]):Ic(n,this),r.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,s){this.ngElementStrategy.setInputValue(r[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const s=e.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,n),s}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return i.observedAttributes=Object.keys(r),Object.defineProperty(i.prototype,"ngElementStrategy",{enumerable:!0}),Ic(n,i.prototype),i}(gm,{injector:this.injector});customElements.define("drayman-textarea-field",e)}}return e.\u0275mod=mt({type:e}),e.\u0275inj=ce({factory:function(t){return new(t||e)(We(bi))},providers:[{provide:Cc,useClass:pm}],imports:[[Ih,fp,Hu,qu,sm,fm]]}),e})();(function(){if(us)throw new Error("Cannot enable prod mode after platform setup.");cs=!1})(),Th().bootstrapModule(vm).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});
|