text: (self.webpackChunkangular_frontend=self.webpackChunkangular_frontend||[]).push([[179],{255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=255,t.exports=e},431:(t,e,n)=>{"use strict";function i(t){return"function"==typeof t}let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class u{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof u)e.remove(this);else if(null!==e)for(let i=0;i<e.length;++i)e[i].remove(this);if(i(s)){n&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){t=o instanceof h?d(o.errors):[o]}}if(l(r)){let e=-1,n=r.length;for(;++e<n;){const n=r[e];if(c(n))try{n.unsubscribe()}catch(o){t=t||[],o instanceof h?t=t.concat(d(o.errors)):t.push(o)}}}if(t)throw new h(t)}add(t){let e=t;if(!t)return u.EMPTY;switch(typeof t){case"function":e=new u(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof u)){const t=e;e=new u,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof u){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}u.EMPTY=function(t){return t.closed=!0,t}(new u);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends u{constructor(t,e,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(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new f(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,s){let r;super(),this._parentSubscriber=t;let o=this;i(e)?r=e:e&&(r=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=v(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=v(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function v(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const b=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class S extends f{constructor(t){super(t),this.destination=t}}let C=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new b;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new b;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new b;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new b;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new b;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new x(t,e),t})();class x extends C{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}function E(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new I(t,this.project,this.thisArg))}}class I extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const O=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()},A="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[g])return n=t,t=>{const e=n[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return O(t);if(P(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e))(t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n};function L(t,e){return new _(n=>{const i=new u;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function D(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new _(n=>{const i=new u;return i.add(e.schedule(()=>{const s=t[g]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(P(t))return function(t,e){return new _(n=>{const i=new u;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(R(t))return L(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[A](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(N(t))}class F extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class M extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function j(t,e){if(e.closed)return;if(t instanceof _)return t.subscribe(e);let n;try{n=N(t)(e)}catch(i){e.error(i)}return n}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(H((n,i)=>D(t(n,i)).pipe(E((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends M{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new F(this),n=this.destination;n.add(e);const i=j(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function V(t=Number.POSITIVE_INFINITY){return H(y,t)}function U(t,e){return e?L(t,e):new _(O(t))}function $(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return k(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:V(e)(U(t,n))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new G(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class G extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Q extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new K(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return q()(this)}}const Z=(()=>{const t=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class K extends S{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Y(){return new C}function X(t){for(let e in t)if(t[e]===X)return e;throw Error("Could not find renamed property on target object.")}function J(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=X({__forward_ref__:X});function it(t){return t.__forward_ref__=it,t.toString=function(){return tt(this())},t}function st(t){return"function"==typeof(e=t)&&e.hasOwnProperty(nt)&&e.__forward_ref__===it?t():t;var e}class rt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ot(t){return"string"==typeof t?t:null==t?"":String(t)}function at(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ot(t)}function lt(t,e){const n=e?` in ${e}`:"";throw new rt("201",`No provider for ${at(t)} found${n}`)}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function ut(t){return dt(t,ft)||dt(t,gt)}function dt(t,e){return t.hasOwnProperty(e)?t[e]:null}function pt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(yt))?t[mt]:null}const ft=X({"\u0275prov":X}),mt=X({"\u0275inj":X}),gt=X({ngInjectableDef:X}),yt=X({ngInjectorDef:X});var _t=(()=>((_t=_t||{})[_t.Default=0]="Default",_t[_t.Host=1]="Host",_t[_t.Self=2]="Self",_t[_t.SkipSelf=4]="SkipSelf",_t[_t.Optional=8]="Optional",_t))();let vt;function bt(t){const e=vt;return vt=t,e}function wt(t,e,n){const i=ut(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&_t.Optional?null:void 0!==e?e:void lt(tt(t),"Injector")}function St(t){return{toString:t}.toString()}var Ct=(()=>((Ct=Ct||{})[Ct.OnPush=0]="OnPush",Ct[Ct.Default=1]="Default",Ct))(),xt=(()=>((xt=xt||{})[xt.Emulated=0]="Emulated",xt[xt.None=2]="None",xt[xt.ShadowDom=3]="ShadowDom",xt))();const kt="undefined"!=typeof globalThis&&globalThis,Et="undefined"!=typeof window&&window,Tt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Ot=kt||It||Et||Tt,At={},Rt=[],Pt=X({"\u0275cmp":X}),Nt=X({"\u0275dir":X}),Lt=X({"\u0275pipe":X}),Dt=X({"\u0275mod":X}),Ft=X({"\u0275loc":X}),Mt=X({"\u0275fac":X}),jt=X({__NG_ELEMENT_ID__:X});let Ht=0;function Bt(t){return St(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Rt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||xt.Emulated,id:"c",styles:t.styles||Rt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=Ht++,n.inputs=qt(t.inputs,e),n.outputs=qt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(zt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(Vt):null,n})}function zt(t){return Gt(t)||function(t){return t[Nt]||null}(t)}function Vt(t){return function(t){return t[Lt]||null}(t)}const Ut={};function $t(t){return St(()=>{const e={type:t.type,bootstrap:t.bootstrap||Rt,declarations:t.declarations||Rt,imports:t.imports||Rt,exports:t.exports||Rt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Ut[t.id]=t.type),e})}function qt(t,e){if(null==t)return At;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const Wt=Bt;function Gt(t){return t[Pt]||null}function Qt(t,e){const n=t[Dt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}const Zt=20,Kt=10;function Yt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Xt(t){return Array.isArray(t)&&!0===t[1]}function Jt(t){return 0!=(8&t.flags)}function te(t){return 2==(2&t.flags)}function ee(t){return 1==(1&t.flags)}function ne(t){return null!==t.template}function ie(t,e){return t.hasOwnProperty(Mt)?t[Mt]:null}class se{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function re(){return oe}function oe(t){return t.type.prototype.ngOnChanges&&(t.setInput=le),ae}function ae(){const t=ce(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===At)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function le(t,e,n,i){const s=ce(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:At,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new se(l&&l.currentValue,e,o===At),t[i]=e}function ce(t){return t.__ngSimpleChanges__||null}let he;function ue(){return void 0!==he?he:"undefined"!=typeof document?document:void 0}function de(t){return!!t.listen}re.ngInherit=!0;const pe={createRenderer:(t,e)=>ue()};function fe(t){for(;Array.isArray(t);)t=t[0];return t}function me(t,e){return fe(e[t])}function ge(t,e){return fe(e[t.index])}function ye(t,e){return t.data[e]}function _e(t,e){const n=e[t];return Yt(n)?n:n[0]}function ve(t){return 4==(4&t[2])}function be(t){return 128==(128&t[2])}function we(t,e){return null==e?null:t[e]}function Se(t){t[18]=0}function Ce(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const xe={lFrame:Qe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ke(){return xe.bindingsEnabled}function Ee(){return xe.lFrame.lView}function Te(){return xe.lFrame.tView}function Ie(t){return xe.lFrame.contextLView=t,t[8]}function Oe(){let t=Ae();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ae(){return xe.lFrame.currentTNode}function Re(t,e){const n=xe.lFrame;n.currentTNode=t,n.isParent=e}function Pe(){return xe.lFrame.isParent}function Ne(){xe.lFrame.isParent=!1}function Le(){return xe.isInCheckNoChangesMode}function De(t){xe.isInCheckNoChangesMode=t}function Fe(){const t=xe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Me(){return xe.lFrame.bindingIndex++}function je(t){const e=xe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function He(t,e){const n=xe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Be(e)}function Be(t){xe.lFrame.currentDirectiveIndex=t}function ze(t){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ve(){return xe.lFrame.currentQueryIndex}function Ue(t){xe.lFrame.currentQueryIndex=t}function $e(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function qe(t,e,n){if(n&_t.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&_t.Host||(i=$e(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=xe.lFrame=Ge();return i.currentTNode=e,i.lView=t,!0}function We(t){const e=Ge(),n=t[1];xe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ge(){const t=xe.lFrame,e=null===t?null:t.child;return null===e?Qe(t):e}function Qe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ze(){const t=xe.lFrame;return xe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ke=Ze;function Ye(){const t=Ze();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Xe(){return xe.lFrame.selectedIndex}function Je(t){xe.lFrame.selectedIndex=t}function tn(){const t=xe.lFrame;return ye(t.tView,t.selectedIndex)}function en(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function nn(t,e,n){on(t,e,3,n)}function sn(t,e,n,i){(3&t[2])===n&&on(t,e,n,i)}function rn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function on(t,e,n,i){const s=null!=i?i:-1,r=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<r;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<s||-1==s)&&(an(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function an(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const ln=-1;class cn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function hn(t,e,n){const i=de(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];dn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function un(t){return 3===t||4===t||6===t}function dn(t){return 64===t.charCodeAt(0)}function pn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||fn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function fn(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function mn(t){return t!==ln}function gn(t){return 32767&t}function yn(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let _n=!0;function vn(t){const e=_n;return _n=t,e}let bn=0;function wn(t,e){const n=Cn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Sn(i.data,t),Sn(e,null),Sn(i.blueprint,null));const s=xn(t,e),r=t.injectorIndex;if(mn(s)){const t=gn(s),n=yn(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Sn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Cn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function xn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return ln;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return ln}function kn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(i=n[jt]),null==i&&(i=n[jt]=bn++);const s=255&i;e.data[t+(s>>5)]|=1<<s}(t,e,n)}function En(t,e,n){if(n&_t.Optional)return t;lt(e,"NodeInjector")}function Tn(t,e,n,i){if(n&_t.Optional&&void 0===i&&(i=null),0==(n&(_t.Self|_t.Host))){const s=t[9],r=bt(void 0);try{return s?s.get(e,i,n&_t.Optional):wt(e,i,n&_t.Optional)}finally{bt(r)}}return En(i,e,n)}function In(t,e,n,i=_t.Default,s){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(jt)?t[jt]:void 0;return"number"==typeof e?e>=0?255&e:An:e}(n);if("function"==typeof r){if(!qe(e,t,i))return i&_t.Host?En(s,n,i):Tn(e,n,i,s);try{const t=r(i);if(null!=t||i&_t.Optional)return t;lt(n)}finally{Ke()}}else if("number"==typeof r){let s=null,o=Cn(t,e),a=ln,l=i&_t.Host?e[16][6]:null;for((-1===o||i&_t.SkipSelf)&&(a=-1===o?xn(t,e):e[o+8],a!==ln&&Dn(i,!1)?(s=e[1],o=gn(a),e=yn(a,e)):o=-1);-1!==o;){const t=e[1];if(Ln(r,o,t.data)){const t=Rn(o,e,n,s,i,l);if(t!==On)return t}a=e[o+8],a!==ln&&Dn(i,e[1].data[o+8]===l)&&Ln(r,o,e)?(s=t,o=gn(a),e=yn(a,e)):o=-1}}}return Tn(e,n,i,s)}const On={};function An(){return new Fn(Oe(),Ee())}function Rn(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Pn(a,o,n,null==i?te(a)&&_n:i!=o&&0!=(3&a.type),s&_t.Host&&r===a);return null!==l?Nn(e,o,l,a):On}function Pn(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=s?a+c:t.directiveEnd;for(let u=i?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(s){const t=o[l];if(t&&ne(t)&&t.type===n)return l}return null}function Nn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof cn){const o=s;o.resolving&&function(t,e){throw new rt("200",`Circular dependency in DI detected for ${t}`)}(at(r[n]));const a=vn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?bt(o.injectImpl):null;qe(t,i,_t.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=oe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&bt(l),vn(a),o.resolving=!1,Ke()}}return s}function Ln(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Dn(t,e){return!(t&_t.Self||t&_t.Host&&e)}class Fn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return In(this._tNode,this._lView,t,void 0,e)}}function Mn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const s=n[i];if(un(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(Oe(),t)}const jn="__parameters__";function Hn(t,e,n){return St(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(jn)?t[jn]:Object.defineProperty(t,jn,{value:[]})[jn];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class Bn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const zn=new Bn("AnalyzeForEntryComponents"),Vn=Function;function Un(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),Un(i,e)):e!==t&&e.push(i)}return e}function $n(t,e){t.forEach(t=>Array.isArray(t)?$n(t,e):e(t))}function qn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Wn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Gn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function Qn(t,e,n){let i=Kn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function Zn(t,e){const n=Kn(t,e);if(n>=0)return t[1|n]}function Kn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const Yn={},Xn=/\n/gm,Jn="__source",ti=X({provide:String,useValue:X});let ei;function ni(t){const e=ei;return ei=t,e}function ii(t,e=_t.Default){if(void 0===ei)throw new Error("inject() must be called from an injection context");return null===ei?wt(t,void 0,e):ei.get(t,e&_t.Optional?null:void 0,e)}function si(t,e=_t.Default){return(vt||ii)(st(t),e)}const ri=si;function oi(t){const e=[];for(let n=0;n<t.length;n++){const i=st(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=_t.Default;for(let e=0;e<i.length;e++){const s=i[e],r=s.__NG_DI_FLAG__;"number"==typeof r?-1===r?t=s.token:n|=r:t=s}e.push(si(t,n))}else e.push(si(i))}return e}function ai(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const li=ai(Hn("Inject",t=>({token:t})),-1),ci=ai(Hn("Optional"),8),hi=ai(Hn("SkipSelf"),4);let ui,di;function pi(t){var e;return(null===(e=function(){if(void 0===ui&&(ui=null,Ot.trustedTypes))try{ui=Ot.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ui}())||void 0===e?void 0:e.createHTML(t))||t}function fi(t){var e;return(null===(e=function(){if(void 0===di&&(di=null,Ot.trustedTypes))try{di=Ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return di}())||void 0===e?void 0:e.createHTML(t))||t}class mi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class gi extends mi{getTypeName(){return"HTML"}}class yi extends mi{getTypeName(){return"Style"}}class _i extends mi{getTypeName(){return"Script"}}class vi extends mi{getTypeName(){return"URL"}}class bi extends mi{getTypeName(){return"ResourceURL"}}function wi(t){return t instanceof mi?t.changingThisBreaksApplicationSecurity:t}function Si(t,e){const n=Ci(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Ci(t){return t instanceof mi&&t.getTypeName()||null}class xi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(pi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ki{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=pi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=pi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Ei=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ti=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ii(t){return(t=String(t)).match(Ei)||t.match(Ti)?t:"unsafe:"+t}function Oi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ai(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ri=Oi("area,br,col,hr,img,wbr"),Pi=Oi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ni=Oi("rp,rt"),Li=Ai(Ni,Pi),Di=Ai(Ri,Ai(Pi,Oi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ai(Ni,Oi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Li),Fi=Oi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mi=Oi("srcset"),ji=Ai(Fi,Mi,Oi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Hi=Oi("script,style,template");class Bi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Di.hasOwnProperty(e))return this.sanitizedSomething=!0,!Hi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!ji.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Fi[r]&&(o=Ii(o)),Mi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Ii(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ui(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Di.hasOwnProperty(e)&&!Ri.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ui(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const zi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function Ui(t){return t.replace(/&/g,"&amp;").replace(zi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let $i;function qi(t,e){let n=null;try{$i=$i||function(t){const e=new ki(t);return function(){try{return!!(new window.DOMParser).parseFromString(pi(""),"text/html")}catch(t){return!1}}()?new xi(e):e}(t);let i=e?String(e):"";n=$i.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=$i.getInertBodyElement(i)}while(i!==r);return pi((new Bi).sanitizeChildren(Wi(n)||n))}finally{if(n){const t=Wi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Wi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Gi=(()=>((Gi=Gi||{})[Gi.NONE=0]="NONE",Gi[Gi.HTML=1]="HTML",Gi[Gi.STYLE=2]="STYLE",Gi[Gi.SCRIPT=3]="SCRIPT",Gi[Gi.URL=4]="URL",Gi[Gi.RESOURCE_URL=5]="RESOURCE_URL",Gi))();function Qi(t){const e=Ki();return e?fi(e.sanitize(Gi.HTML,t)||""):Si(t,"HTML")?fi(wi(t)):qi(ue(),ot(t))}function Zi(t){const e=Ki();return e?e.sanitize(Gi.URL,t)||"":Si(t,"URL")?wi(t):Ii(ot(t))}function Ki(){const t=Ee();return t&&t[12]}function Yi(t,e){t.__ngContext__=e}function Xi(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ji(t){return t.ngOriginalError}function ts(t,...e){t.error(...e)}class es{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ts}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Ji(t)):null}_findOriginalError(t){let e=Ji(t);for(;e&&Ji(e);)e=Ji(e);return e}}const ns=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function is(t){return t instanceof Function?t():t}var ss=(()=>((ss=ss||{})[ss.Important=1]="Important",ss[ss.DashCase=2]="DashCase",ss))();function rs(t,e){return(void 0)(t,e)}function os(t){const e=t[3];return Xt(e)?e[3]:e}function as(t){return cs(t[13])}function ls(t){return cs(t[4])}function cs(t){for(;null!==t&&!Xt(t);)t=t[4];return t}function hs(t,e,n,i,s){if(null!=i){let r,o=!1;Xt(i)?r=i:Yt(i)&&(o=!0,i=i[0]);const a=fe(i);0===t&&null!==n?null==s?_s(e,n,a):ys(e,n,a,s||null,!0):1===t&&null!==n?ys(e,n,a,s||null,!0):2===t?function(t,e,n){const i=bs(t,e);i&&function(t,e,n,i){de(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==fe(n)&&hs(e,t,i,r,s);for(let o=Kt;o<n.length;o++){const s=n[o];Is(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function us(t,e,n){return de(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function ds(t,e){const n=t[9],i=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,Ce(s,-1)),n.splice(i,1)}function ps(t,e){if(t.length<=Kt)return;const n=Kt+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&ds(r,i),e>0&&(t[n-1][4]=i[4]);const o=Wn(t,Kt+e);Is(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function fs(t,e){if(!(256&e[2])){const n=e[11];de(n)&&n.destroyNode&&Is(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ms(t[1],t);for(;e;){let n=null;if(Yt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Yt(e)&&ms(e[1],e),e=e[3];null===e&&(e=t),Yt(e)&&ms(e[1],e),n=e&&e[4]}e=n}}(e)}}function ms(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof cn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const i=t[e[n]],s=e[n+1];try{s.call(i)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let s=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],o="function"==typeof t?t(e):fe(e[t]),a=i[s=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&de(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Xt(e[3])){n!==e[3]&&ds(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function gs(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===xt.None||e===xt.Emulated)return null}return ge(i,n)}(t,e.parent,n)}function ys(t,e,n,i,s){de(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function _s(t,e,n){de(t)?t.appendChild(e,n):e.appendChild(n)}function vs(t,e,n,i,s){null!==i?ys(t,e,n,i,s):_s(t,e,n)}function bs(t,e){return de(t)?t.parentNode(e):e.parentNode}function ws(t,e,n){return Ss(t,e,n)}let Ss=function(t,e,n){return 40&t.type?ge(t,n):null};function Cs(t,e,n,i){const s=gs(t,i,e),r=e[11],o=ws(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)vs(r,s,n[a],o,!1);else vs(r,s,n,o,!1)}function xs(t,e){if(null!==e){const n=e.type;if(3&n)return ge(e,t);if(4&n)return Es(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return xs(t,n);{const n=t[e.index];return Xt(n)?Es(-1,n):fe(n)}}if(32&n)return rs(e,t)()||fe(t[e.index]);{const n=ks(t,e);return null!==n?Array.isArray(n)?n[0]:xs(os(t[16]),n):xs(t,e.next)}}return null}function ks(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Es(t,e){const n=Kt+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return xs(t,i)}return e[7]}function Ts(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&Yi(fe(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Ts(t,e,n.child,i,s,r,!1),hs(e,t,s,a,r);else if(32&l){const o=rs(n,i);let l;for(;l=o();)hs(e,t,s,l,r);hs(e,t,s,a,r)}else 16&l?Os(t,e,i,n,s,r):hs(e,t,s,a,r);n=o?n.projectionNext:n.next}}function Is(t,e,n,i,s,r){Ts(n,i,t.firstChild,e,s,r,!1)}function Os(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)hs(e,t,s,a[l],r);else Ts(t,e,a,o[3],s,r,!0)}function As(t,e,n){de(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rs(t,e,n){de(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Ps(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}const Ns="ng-template";function Ls(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==Ps(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function Ds(t){return 4===t.type&&t.value!==Ns}function Fs(t,e,n){return e===(4!==t.type||n?t.value:Ns)}function Ms(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(un(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Fs(t,l,n)||""===l&&1===e.length){if(js(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!Ls(t.attrs,c,n)){if(js(i))return!1;o=!0}continue}const h=Hs(8&i?"class":l,s,Ds(t),n);if(-1===h){if(js(i))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Ps(e,c,0)||2&i&&c!==t){if(js(i))return!1;o=!0}}}}else{if(!o&&!js(i)&&!js(l))return!1;if(o&&js(l))continue;o=!1,i=l|1&i}}return js(i)||o}function js(t){return 0==(1&t)}function Hs(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Bs(t,e,n=!1){for(let i=0;i<e.length;i++)if(Ms(t,e[i],n))return!0;return!1}function zs(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Vs(t,e){return t?":not("+e.trim()+")":e}function Us(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||js(o)||(e+=Vs(r,s),s=""),i=o,r=r||!js(i);n++}return""!==s&&(e+=Vs(r,s)),e}const $s={};function qs(t){Ws(Te(),Ee(),Xe()+t,Le())}function Ws(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&nn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&sn(e,i,0,n)}Je(n)}function Gs(t,e){return t<<17|e<<2}function Qs(t){return t>>17&32767}function Zs(t){return 2|t}function Ks(t){return(131068&t)>>2}function Ys(t,e){return-131069&t|e<<2}function Xs(t){return 1|t}function Js(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];Ue(s),n.contentQueries(2,e[r],r)}}}function tr(t,e,n,i,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|i,Se(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function er(t,e,n,i,s){let r=t.data[e];if(null===r)r=function(t,e,n,i,s){const r=Ae(),o=Pe(),a=t.data[e]=function(t,e,n,i,s,r){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,n,e,i,s);return null===t.firstChild&&(t.firstChild=a),null!==r&&(o?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(t,e,n,i,s),xe.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const t=function(){const t=xe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return Re(r,!0),r}function nr(t,e,n,i){if(0===n)return-1;const s=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return s}function ir(t,e,n){We(e);try{const i=t.viewQuery;null!==i&&Nr(1,i,n);const s=t.template;null!==s&&or(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Js(t,e),t.staticViewQueries&&Nr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)Ir(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Ye()}}function sr(t,e,n,i){const s=e[2];if(256==(256&s))return;We(e);const r=Le();try{Se(e),xe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&or(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&nn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&sn(e,n,0,null),rn(e,0)}if(function(t){for(let e=as(t);null!==e;e=ls(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Ce(i,1),n[2]|=1024}}}(e),function(t){for(let e=as(t);null!==e;e=ls(e))for(let t=Kt;t<e.length;t++){const n=e[t],i=n[1];be(n)&&sr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Js(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&nn(e,n)}else{const n=t.contentHooks;null!==n&&sn(e,n,1),rn(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)Je(~i);else{const s=i,r=n[++t],o=n[++t];He(r,s),o(2,e[s])}}}finally{Je(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Er(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Nr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&nn(e,n)}else{const n=t.viewHooks;null!==n&&sn(e,n,2),rn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ce(e[3],-1))}finally{Ye()}}function rr(t,e,n,i){const s=e[10],r=!Le(),o=ve(e);try{r&&!o&&s.begin&&s.begin(),o&&ir(t,e,i),sr(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function or(t,e,n,i,s){const r=Xe(),o=2&i;try{Je(-1),o&&e.length>Zt&&Ws(t,e,Zt,Le()),n(i,s)}finally{Je(r)}}function ar(t,e,n){if(Jt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function lr(t,e,n){ke()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||wn(n,e),Yi(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ne(i);r&&Sr(e,n,i);const l=Nn(e,t,a,n);Yi(l,e),null!==o&&Cr(0,a-s,l,i,0,o),r&&(_e(n.index,e)[8]=l)}}(t,e,n,ge(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=n.index,o=xe.lFrame.currentDirectiveIndex;try{Je(r);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];Be(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||yr(i,s)}}finally{Je(-1),Be(o)}}(t,e,n))}function cr(t,e,n=ge){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function hr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=ur(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function ur(t,e,n,i,s,r,o,a,l,c){const h=Zt+i,u=h+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:$s);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function dr(t,e,n,i){const s=Dr(e);null===n?s.push(i):(s.push(n),t.firstCreatePass&&Fr(t).push(i,s.length-1))}function pr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function fr(t,e,n,i,s,r,o,a){const l=ge(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[i])?(Hr(t,n,c,i,s),te(e)&&function(t,e){const n=_e(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,s=null!=o?o(s,e.value||"",i):s,de(r)?r.setProperty(l,i,s):dn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function mr(t,e,n,i){let s=!1;if(ke()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];Bs(n,o.selectors,!1)&&(s||(s=[]),kn(wn(n,e),t,o.type),ne(o)?(_r(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){s=!0,br(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,l=nr(t,e,r.length,null);for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=pn(n.mergedAttrs,c.hostAttrs),wr(t,n,e,l,c),vr(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!i&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||Ds(e)?null:xr(n,s);r.push(c),o=pr(n,l,o),a=pr(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new rt("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=pn(n.mergedAttrs,n.attrs),s}function gr(t,e,n,i,s,r){const o=r.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const r=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function yr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function _r(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function vr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ne(e)&&(n[""]=t)}}function br(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function wr(t,e,n,i,s){t.data[i]=s;const r=s.factory||(s.factory=ie(s.type)),o=new cn(r,ne(s),null);t.blueprint[i]=o,n[i]=o,gr(t,e,0,i,nr(t,n,s.hostVars,$s),s)}function Sr(t,e,n){const i=ge(e,t),s=hr(n),r=t[10],o=Or(t,tr(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=o}function Cr(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function xr(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function kr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Er(t,e){const n=_e(e,t);if(be(n)){const t=n[1];80&n[2]?sr(t,n,t.template,n[8]):n[5]>0&&Tr(n)}}function Tr(t){for(let n=as(t);null!==n;n=ls(n))for(let t=Kt;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];sr(t,e,t.template,e[8])}else e[5]>0&&Tr(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=_e(e[n],t);be(i)&&i[5]>0&&Tr(i)}}function Ir(t,e){const n=_e(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),ir(i,n,n[8])}function Or(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ar(t){for(;t;){t[2]|=64;const e=os(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Rr(t,e,n){const i=e[10];i.begin&&i.begin();try{sr(t,e,t.template,n)}catch(s){throw jr(e,s),s}finally{i.end&&i.end()}}function Pr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Xi(n),s=i[1];rr(s,i,s.template,n)}}(t[8])}function Nr(t,e,n){Ue(0),e(t,n)}const Lr=(()=>Promise.resolve(null))();function Dr(t){return t[7]||(t[7]=[])}function Fr(t){return t.cleanup||(t.cleanup=[])}function Mr(t,e,n){return(null===t||ne(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function jr(t,e){const n=t[9],i=n?n.get(es,null):null;i&&i.handleError(e)}function Hr(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function Br(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=et(s,t):2==r&&(i=et(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}const zr=new Bn("INJECTOR",-1);class Vr{get(t,e=Yn){if(e===Yn){const e=new Error(`NullInjectorError: No provider for ${tt(t)}!`);throw e.name="NullInjectorError",e}return e}}const Ur=new Bn("Set Injector scope."),$r={},qr={};let Wr;function Gr(){return void 0===Wr&&(Wr=new Vr),Wr}function Qr(t,e=null,n=null,i){return new Zr(t,n,e||Gr(),i)}class Zr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&$n(e,n=>this.processProvider(n,t,e)),$n([t],t=>this.processInjectorType(t,[],s)),this.records.set(zr,Xr(void 0,this));const r=this.records.get(Ur);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Yn,n=_t.Default){this.assertNotDestroyed();const i=ni(this),s=bt(void 0);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Bn)&&ut(t);e=n&&this.injectableDefInScope(n)?Xr(Kr(t),$r):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?Gr():this.parent).get(t,e=n&_t.Optional&&e===Yn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(tt(t)),i)throw o;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[Jn]&&s.unshift(e[Jn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=tt(e);if(Array.isArray(e))s=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):tt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Xn,"\n  ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{bt(s),ni(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=st(t)))return!1;let i=pt(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=pt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{$n(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];$n(i,t=>this.processProvider(t,n,i||Rt))}}this.injectorDefTypes.add(r);const a=ie(r)||(()=>new r);this.records.set(r,Xr(a,$r));const l=i.providers;if(null!=l&&!o){const e=t;$n(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=to(t=st(t))?t:st(t&&t.provide);const s=function(t,e,n){return Jr(t)?Xr(void 0,t.useValue):Xr(Yr(t),$r)}(t);if(to(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Xr(void 0,$r,!0),e.factory=()=>oi(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===$r&&(e.value=qr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=st(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Kr(t){const e=ut(t),n=null!==e?e.factory:ie(t);if(null!==n)return n;if(t instanceof Bn)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Gn(e,"?");throw new Error(`Can't resolve all parameters for ${tt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[ft]||t[gt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Yr(t,e,n){let i;if(to(t)){const e=st(t);return ie(e)||Kr(e)}if(Jr(t))i=()=>st(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...oi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>si(st(t.useExisting));else{const e=st(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ie(e)||Kr(e);i=()=>new e(...oi(t.deps))}var s;return i}function Xr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Jr(t){return null!==t&&"object"==typeof t&&ti in t}function to(t){return"function"==typeof t}const eo=function(t,e,n){return function(t,e=null,n=null,i){const s=Qr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class no{static create(t,e){return Array.isArray(t)?eo(t,e,""):eo(t.providers,t.parent,t.name||"")}}function io(t,e){en(Xi(t)[1],Oe())}function so(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(ne(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=ro(t.inputs),e.declaredInputs=ro(t.declaredInputs),e.outputs=ro(t.outputs);const n=s.hostBindings;n&&lo(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&oo(t,r),o&&ao(t,o),J(t.inputs,s.inputs),J(t.declaredInputs,s.declaredInputs),J(t.outputs,s.outputs),ne(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===so&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=pn(s.hostAttrs,n=pn(n,s.hostAttrs))}}(i)}function ro(t){return t===At?{}:t===Rt?[]:t}function oo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ao(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function lo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}no.THROW_IF_NOT_FOUND=Yn,no.NULL=new Vr,no.\u0275prov=ct({token:no,providedIn:"any",factory:()=>si(zr)}),no.__NG_ELEMENT_ID__=-1;let co=null;function ho(){if(!co){const t=Ot.Symbol;if(t&&t.iterator)co=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(co=n)}}}return co}function uo(t){return!!po(t)&&(Array.isArray(t)||!(t instanceof Map)&&ho()in t)}function po(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function fo(t,e,n){return t[e]=n}function mo(t,e){return t[e]}function go(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function yo(t,e,n,i){const s=go(t,e,n);return go(t,e+1,i)||s}function _o(t,e,n,i,s,r){const o=yo(t,e,n,i);return yo(t,e+2,s,r)||o}function vo(t,e,n,i){const s=Ee();return go(s,Me(),e)&&(Te(),function(t,e,n,i,s,r){const o=ge(t,e);!function(t,e,n,i,s,r,o){if(null==r)de(t)?t.removeAttribute(e,s,n):e.removeAttribute(s);else{const a=null==o?ot(r):o(r,i||"",s);de(t)?t.setAttribute(e,s,a,n):n?e.setAttributeNS(n,s,a):e.setAttribute(s,a)}}(e[11],o,r,t.value,n,i,s)}(tn(),s,t,e,n,i)),vo}function bo(t,e,n,i){return go(t,Me(),n)?e+ot(n)+i:$s}function wo(t,e,n,i,s,r,o,a){const l=Ee(),c=Te(),h=t+Zt,u=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,h=er(e,t,4,o||null,we(c,a));mr(e,n,h,we(c,l)),en(e,h);const u=h.tViews=ur(2,h,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(h,c,l,e,n,i,s,r,o):c.data[h];Re(u,!1);const d=l[11].createComment("");Cs(c,l,d,u),Yi(d,l),Or(l,l[h]=kr(d,l,d,u)),ee(u)&&lr(c,l,u),null!=o&&cr(l,u,a)}function So(t){return function(t,e){return t[e]}(xe.lFrame.contextLView,Zt+t)}function Co(t,e=_t.Default){const n=Ee();return null===n?si(t,e):In(Oe(),n,st(t),e)}function xo(t,e,n){const i=Ee();return go(i,Me(),e)&&fr(Te(),tn(),i,t,e,i[11],n,!1),xo}function ko(t,e,n,i,s){const r=s?"class":"style";Hr(t,n,e.inputs[r],r,i)}function Eo(t,e,n,i){const s=Ee(),r=Te(),o=Zt+t,a=s[11],l=s[o]=us(a,e,xe.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=er(e,t,2,s,we(a,r));return mr(e,n,l,we(a,o)),null!==l.attrs&&Br(l,l.attrs,!1),null!==l.mergedAttrs&&Br(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,r,s,0,e,n,i):r.data[o];Re(c,!0);const h=c.mergedAttrs;null!==h&&hn(a,l,h);const u=c.classes;null!==u&&Rs(a,l,u);const d=c.styles;null!==d&&As(a,l,d),64!=(64&c.flags)&&Cs(r,s,l,c),0===xe.lFrame.elementDepthCount&&Yi(l,s),xe.lFrame.elementDepthCount++,ee(c)&&(lr(r,s,c),ar(r,c,s)),null!==i&&cr(s,c)}function To(){let t=Oe();Pe()?Ne():(t=t.parent,Re(t,!1));const e=t;xe.lFrame.elementDepthCount--;const n=Te();n.firstCreatePass&&(en(n,t),Jt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ko(n,e,Ee(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ko(n,e,Ee(),e.stylesWithoutHost,!1)}function Io(t,e,n,i){Eo(t,e,n,i),To()}function Oo(t,e,n){const i=Ee(),s=Te(),r=t+Zt,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=we(r,i),a=er(e,t,8,"ng-container",o);return null!==o&&Br(a,o,!0),mr(e,n,a,we(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,s,i,e,n):s.data[r];Re(o,!0);const a=i[r]=i[11].createComment("");Cs(s,i,a,o),Yi(a,i),ee(o)&&(lr(s,i,o),ar(s,o,i)),null!=n&&cr(i,o)}function Ao(){let t=Oe();const e=Te();Pe()?Ne():(t=t.parent,Re(t,!1)),e.firstCreatePass&&(en(e,t),Jt(t)&&e.queries.elementEnd(t))}function Ro(t,e,n){Oo(t,e,n),Ao()}function Po(){return Ee()}function No(t){return!!t&&"function"==typeof t.then}const Lo=function(t){return!!t&&"function"==typeof t.subscribe};function Do(t,e,n,i){const s=Ee(),r=Te(),o=Oe();return Mo(r,s,s[11],o,t,e,!!n,i),Do}function Fo(t,e){const n=Oe(),i=Ee(),s=Te();return Mo(s,i,Mr(ze(s.data),n,i),n,t,e,!1),Fo}function Mo(t,e,n,i,s,r,o,a){const l=ee(i),c=t.firstCreatePass&&Fr(t),h=Dr(e);let u=!0;if(3&i.type||a){const d=ge(i,e),p=a?a(d):d,f=h.length,m=a?t=>a(fe(t[i.index])):i.index;if(de(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Ho(i,e,0,r,!1);const t=n.listen(p,s,r);h.push(r,t),c&&c.push(s,m,f,f+1)}}else r=Ho(i,e,0,r,!0),p.addEventListener(s,r,o),h.push(r),c&&c.push(s,m,f,o)}else r=Ho(i,e,0,r,!1);const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}function jo(t,e,n,i){try{return!1!==n(i)}catch(s){return jr(t,s),!1}}function Ho(t,e,n,i,s){return function n(r){if(r===Function)return i;const o=2&t.flags?_e(t.index,e):e;0==(32&e[2])&&Ar(o);let a=jo(e,0,i,r),l=n.__ngNextListenerFn__;for(;l;)a=jo(e,0,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Bo(t=1){return function(t){return(xe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,xe.lFrame.contextLView))[8]}(t)}function zo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?Bs(t,r,!0):zs(i,r))return s}else n=s}return n}function Vo(t){const e=Ee()[16][6];if(!e.projection){const n=e.projection=Gn(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?zo(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function Uo(t,e=0,n){const i=Ee(),s=Te(),r=er(s,Zt+t,16,null,n||null);null===r.projection&&(r.projection=e),Ne(),64!=(64&r.flags)&&function(t,e,n){Os(e[11],0,e,n,gs(t,n,e),ws(n.parent||e[6],n,e))}(s,i,r)}function $o(t,e,n){return qo(t,"",e,"",n),$o}function qo(t,e,n,i,s){const r=Ee(),o=bo(r,e,n,i);return o!==$s&&fr(Te(),tn(),r,t,o,r[11],s,!1),qo}function Wo(t,e,n,i,s,r,o){const a=Ee(),l=function(t,e,n,i,s,r){const o=yo(t,xe.lFrame.bindingIndex,n,s);return je(2),o?e+ot(n)+i+ot(s)+r:$s}(a,e,n,i,s,r);return l!==$s&&fr(Te(),tn(),a,t,l,a[11],o,!1),Wo}function Go(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?Qs(r):Ks(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Qo(t[a],e)&&(l=!0,t[a+1]=i?Xs(n):Zs(n)),a=i?Qs(n):Ks(n)}l&&(t[n+1]=i?Zs(r):Xs(r))}function Qo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Kn(t,e)>=0}const Zo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ko(t){return t.substring(Zo.key,Zo.keyEnd)}function Yo(t){return t.substring(Zo.value,Zo.valueEnd)}function Xo(t,e){const n=Zo.textEnd;return n===e?-1:(e=Zo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Zo.key=e,n),ea(t,e,n))}function Jo(t,e){const n=Zo.textEnd;let i=Zo.key=ea(t,e,n);return n===i?-1:(i=Zo.keyEnd=function(t,e,n){let i;for(;e<n&&(45===(i=t.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=na(t,i,n),i=Zo.value=ea(t,i,n),i=Zo.valueEnd=function(t,e,n){let i=-1,s=-1,r=-1,o=e,a=o;for(;o<n;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=ia(t,l,o,n):e===o-4&&85===r&&82===s&&76===i&&40===l?a=o=ia(t,41,o,n):l>32&&(a=o),r=s,s=i,i=-33&l}return a}(t,i,n),na(t,i,n))}function ta(t){Zo.key=0,Zo.keyEnd=0,Zo.value=0,Zo.valueEnd=0,Zo.textEnd=t.length}function ea(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function na(t,e,n,i){return(e=ea(t,e,n))<n&&e++,e}function ia(t,e,n,i){let s=-1,r=n;for(;r<i;){const n=t.charCodeAt(r++);if(n==e&&92!==s)return r;s=92==n&&92===s?0:n}throw new Error}function sa(t,e){return function(t,e,n,i){const s=Ee(),r=Te(),o=je(2);r.firstUpdatePass&&ha(r,t,o,true),e!==$s&&go(s,o,e)&&fa(r,r.data[Xe()],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=tt(wi(t))),t}(e),true,o)}(t,e),sa}function ra(t,e){for(let n=function(t){return ta(t),Jo(t,ea(t,0,Zo.textEnd))}(e);n>=0;n=Jo(e,n))pa(t,Ko(e),Yo(e))}function oa(t){la(Qn,aa,t,!0)}function aa(t,e){for(let n=function(t){return ta(t),Xo(t,ea(t,0,Zo.textEnd))}(e);n>=0;n=Xo(e,n))Qn(t,Ko(e),!0)}function la(t,e,n,i){const s=Te(),r=je(2);s.firstUpdatePass&&ha(s,null,r,i);const o=Ee();if(n!==$s&&go(o,r,n)){const a=s.data[Xe()];if(ya(a,i)&&!ca(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=et(t,n||"")),ko(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===$s&&(s=Rt);let l=0,c=0,h=0<s.length?s[0]:null,u=0<r.length?r[0]:null;for(;null!==h||null!==u;){const d=l<s.length?s[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let f,m=null;h===u?(l+=2,c+=2,d!==p&&(m=u,f=p)):null===u||null!==h&&h<u?(l+=2,m=h):(c+=2,m=u,f=p),null!==m&&fa(t,e,n,i,m,f,o,a),h=l<s.length?s[l]:null,u=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return Rt;const i=[],s=wi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function ca(t,e){return e>=t.expandoStartIndex}function ha(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[Xe()],o=ca(t,n);ya(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ze(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=da(n=ua(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=ua(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ks(i))return t[Qs(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ua(null,t,e,n[1],i),n=da(n,e.attrs,i),function(t,e,n,i){t[Qs(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=da(i,t[r].hostAttrs,n);return da(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=Qs(o),l=Ks(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||Kn(t,c)>0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=Qs(t[a+1]);t[i+1]=Gs(e,a),0!==e&&(t[e+1]=Ys(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Gs(a,0),0!==a&&(t[a+1]=Ys(t[a+1],i)),a=i;else t[i+1]=Gs(l,0),0===a?a=i:t[l+1]=Ys(t[l+1],i),l=i;h&&(t[i+1]=Zs(t[i+1])),Go(t,c,i,!0),Go(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Kn(r,e)>=0&&(n[i+1]=Xs(n[i+1]))}(e,c,t,i,r),o=Gs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function ua(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=da(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function da(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Qn(t,o,!!n||e[++r]))}return void 0===t?null:t}function pa(t,e,n){Qn(t,e,wi(n))}function fa(t,e,n,i,s,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];ga(1==(1&c)?ma(l,e,n,s,Ks(c),o):void 0)||(ga(r)||2==(2&c)&&(r=ma(l,null,n,s,a,o)),function(t,e,n,i,s){const r=de(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:ss.DashCase;if(null==s)r?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof s&&s.endsWith("!important");o&&(s=s.slice(0,-10),e|=ss.Important),r?t.setStyle(n,i,s,e):n.style.setProperty(i,s,o?"important":"")}}}(i,o,me(Xe(),n),s,r))}function ma(t,e,n,i,s,r){const o=null===e;let a;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[s+1];h===$s&&(h=c?Rt:void 0);let u=c?Zn(h,i):l===i?h:void 0;if(r&&!ga(u)&&(u=Zn(e,i)),ga(u)&&(a=u,o))return a;const d=t[s+1];s=o?Qs(d):Ks(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=Zn(t,i))}return a}function ga(t){return void 0!==t}function ya(t,e){return 0!=(t.flags&(e?16:32))}function _a(t,e=""){const n=Ee(),i=Te(),s=t+Zt,r=i.firstCreatePass?er(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return de(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Cs(i,n,o,r),Re(r,!1)}function va(t){return ba("",t,""),va}function ba(t,e,n){const i=Ee(),s=bo(i,t,e,n);return s!==$s&&function(t,e,n){const i=me(e,t);!function(t,e,n){de(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}(i,Xe(),s),ba}function wa(t,e,n){const i=Ee();return go(i,Me(),e)&&fr(Te(),tn(),i,t,e,i[11],n,!0),wa}function Sa(t,e,n){const i=Ee();if(go(i,Me(),e)){const s=Te(),r=tn();fr(s,r,i,t,e,Mr(ze(s.data),r,i),n,!0)}return Sa}const Ca=void 0;var xa=["en",[["a","p"],["AM","PM"],Ca],[["AM","PM"],Ca,Ca],[["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"]],Ca,[["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"]],Ca,[["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}",Ca,"{1} 'at' {0}",Ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ka={};function Ea(t){return t in ka||(ka[t]=Ot.ng&&Ot.ng.common&&Ot.ng.common.locales&&Ot.ng.common.locales[t]),ka[t]}var Ta=(()=>((Ta=Ta||{})[Ta.LocaleId=0]="LocaleId",Ta[Ta.DayPeriodsFormat=1]="DayPeriodsFormat",Ta[Ta.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ta[Ta.DaysFormat=3]="DaysFormat",Ta[Ta.DaysStandalone=4]="DaysStandalone",Ta[Ta.MonthsFormat=5]="MonthsFormat",Ta[Ta.MonthsStandalone=6]="MonthsStandalone",Ta[Ta.Eras=7]="Eras",Ta[Ta.FirstDayOfWeek=8]="FirstDayOfWeek",Ta[Ta.WeekendRange=9]="WeekendRange",Ta[Ta.DateFormat=10]="DateFormat",Ta[Ta.TimeFormat=11]="TimeFormat",Ta[Ta.DateTimeFormat=12]="DateTimeFormat",Ta[Ta.NumberSymbols=13]="NumberSymbols",Ta[Ta.NumberFormats=14]="NumberFormats",Ta[Ta.CurrencyCode=15]="CurrencyCode",Ta[Ta.CurrencySymbol=16]="CurrencySymbol",Ta[Ta.CurrencyName=17]="CurrencyName",Ta[Ta.Currencies=18]="Currencies",Ta[Ta.Directionality=19]="Directionality",Ta[Ta.PluralCase=20]="PluralCase",Ta[Ta.ExtraData=21]="ExtraData",Ta))();const Ia="en-US";let Oa=Ia;function Aa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Oa=t.toLowerCase().replace(/_/g,"-"))}function Ra(t,e,n,i,s){if(t=st(t),Array.isArray(t))for(let r=0;r<t.length;r++)Ra(t[r],e,n,i,s);else{const r=Te(),o=Ee();let a=to(t)?t:st(t.provide),l=Yr(t);const c=Oe(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(to(t)||!t.multi){const i=new cn(l,s,Co),p=La(a,e,s?h:h+d,u);-1===p?(kn(wn(c,o),r,a),Pa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=La(a,e,h+d,u),f=La(a,e,h,h+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){kn(wn(c,o),r,a);const h=function(t,e,n,i,s){const r=new cn(t,n,Co);return r.multi=[],r.index=e,r.componentProviders=0,Na(r,s,i&&!n),r}(s?Fa:Da,n.length,s,i,l);!s&&g&&(n[f].providerFactory=h),Pa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else Pa(r,t,p>-1?p:f,Na(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function Pa(t,e,n,i){const s=to(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function Na(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function La(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function Da(t,e,n,i){return Ma(this.multi,[])}function Fa(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Nn(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),Ma(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Ma(s,r);return r}function Ma(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ja(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Te();if(i.firstCreatePass){const s=ne(t);Ra(n,i.data,i.blueprint,s,!0),Ra(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ha{}class Ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class za{}function Va(...t){}function Ua(t,e){return new qa(ge(t,e))}za.NULL=new Ba;const $a=function(){return Ua(Oe(),Ee())};let qa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=$a,t})();function Wa(t){return t instanceof qa?t.nativeElement:t}class Ga{}let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Za(),t})();const Za=function(){const t=Ee(),e=_e(Oe().index,t);return function(t){return t[11]}(Yt(e)?e:t)};let Ka=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class Ya{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Xa=new Ya("12.1.3");class Ja{constructor(){}supports(t){return uo(t)}create(t){return new el(t)}}const tl=(t,e)=>e;class el{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||tl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<rl(n,i,s)?e:n,o=rl(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!uo(t))throw new Error(`Error trying to diff '${tt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ho()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new nl(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new sl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class nl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class il{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class sl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new il,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rl(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class ol{constructor(){}supports(t){return t instanceof Map||po(t)}create(){return new al}}class al{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||po(t)))throw new Error(`Error trying to diff '${tt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new ll(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ll{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function cl(){return new hl([new Ja])}let hl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||cl()),deps:[[t,new hi,new ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:cl}),t})();function ul(){return new dl([new ol])}let dl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ul()),deps:[[t,new hi,new ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:ul}),t})();function pl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(fe(r)),Xt(r))for(let t=Kt;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&pl(e[1],e,n,i)}const o=n.type;if(8&o)pl(t,e,n.child,i);else if(32&o){const t=rs(n,e);let s;for(;s=t();)i.push(s)}else if(16&o){const t=ks(e,n);if(Array.isArray(t))i.push(...t);else{const n=os(e[16]);pl(n[1],n,t,i,!0)}}n=s?n.projectionNext:n.next}return i}class fl{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return pl(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Xt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(ps(t,n),Wn(e,n))}this._attachedToViewContainer=!1}fs(this._lView[1],this._lView)}onDestroy(t){dr(this._lView[1],this._lView,null,t)}markForCheck(){Ar(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Rr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){De(!0);try{Rr(t,e,n)}finally{De(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Is(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ml extends fl{constructor(t){super(t),this._view=t}detectChanges(){Pr(this._view)}checkNoChanges(){!function(t){De(!0);try{Pr(t)}finally{De(!1)}}(this._view)}get context(){return null}}const gl=function(t){return function(t,e,n){if(te(t)&&!n){const n=_e(t.index,e);return new fl(n,n)}return 47&t.type?new fl(e[16],e):null}(Oe(),Ee(),16==(16&t))};let yl=(()=>{class t{}return t.__NG_ELEMENT_ID__=gl,t})();const _l=[new ol],vl=new hl([new Ja]),bl=new dl(_l),wl=function(){return kl(Oe(),Ee())};let Sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=wl,t})();const Cl=Sl,xl=class extends Cl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=tr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),ir(e,n,t),new fl(n)}};function kl(t,e){return 4&t.type?new xl(e,t,Ua(t,e)):null}class El{}class Tl{}const Il=function(){return Ll(Oe(),Ee())};let Ol=(()=>{class t{}return t.__NG_ELEMENT_ID__=Il,t})();const Al=Ol,Rl=class extends Al{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ua(this._hostTNode,this._hostLView)}get injector(){return new Fn(this._hostTNode,this._hostLView)}get parentInjector(){const t=xn(this._hostTNode,this._hostLView);if(mn(t)){const e=yn(t,this._hostLView),n=gn(t);return new Fn(e[1].data[n+8],e)}return new Fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Pl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Kt}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(El,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(Xt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Rl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=Kt+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-Kt?(e[4]=n[s],qn(n,Kt+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,r,s);const o=Es(s,r),a=n[11],l=bs(a,r[7]);return null!==l&&function(t,e,n,i,s,r){i[0]=s,i[6]=e,Is(t,i,n,1,s,r)}(i,r[6],a,n,l,o),t.attachToViewContainerRef(),qn(Nl(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Pl(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=ps(this._lContainer,e);n&&(Wn(Nl(this._lContainer),e),fs(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=ps(this._lContainer,e);return n&&null!=Wn(Nl(this._lContainer),e)?new fl(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Pl(t){return t[8]}function Nl(t){return t[8]||(t[8]=[])}function Ll(t,e){let n;const i=e[t.index];if(Xt(i))n=i;else{let s;if(8&t.type)s=fe(i);else{const n=e[11];s=n.createComment("");const i=ge(t,e);ys(n,bs(n,i),s,function(t,e){return de(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=kr(i,e,s,t),Or(e,n)}return new Rl(n,t,e)}const Dl={};class Fl extends za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Gt(t);return new Hl(e,this.ngModule)}}function Ml(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const jl=new Bn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ns});class Hl extends Ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Us).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ml(this.componentDef.inputs)}get outputs(){return Ml(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Dl,s);return r!==Dl||i===Dl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Ga,pe),o=s.get(Ka,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(de(t))return t.selectRootElement(e,n===xt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):us(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:ns,clean:Lr,playerHandler:null,flags:0},d=ur(0,null,null,1,0,null,null,null,null,null),p=tr(null,d,u,h,null,null,r,a,o,s);let f,m;We(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=er(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Br(a,l,!0),null!==t&&(hn(s,t,l),null!==a.classes&&Rs(s,t,a.classes),null!==a.styles&&As(s,t,a.styles)));const c=i.createRenderer(t,e),h=tr(n,hr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(kn(wn(a,n),o,e.type),_r(o,a),br(a,n.length,1)),Or(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)hn(a,c,["ng-version",Xa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!js(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&hn(a,c,t),e&&e.length>0&&Rs(a,c,e.join(" "))}if(m=ye(d,Zt),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Oe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),wr(t,i,e,nr(t,e,1,null),n));const s=Nn(e,t,i.directiveStart,i);Yi(s,e);const r=ge(i,e);return r&&Yi(r,e),s}(r,n,e);if(i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries){const t=Oe();e.contentQueries(1,o,t.directiveStart)}const a=Oe();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Je(a.index),gr(n[1],a,0,a.directiveStart,a.directiveEnd,e),yr(e,o)),o}(t,this.componentDef,p,u,[io]),ir(d,p,null)}finally{Ye()}return new Bl(this.componentType,f,Ua(m,p),p,m)}}class Bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new ml(i),this.componentType=t}get injector(){return new Fn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const zl=new Map;class Vl extends El{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fl(this);const n=Qt(t),i=t[Ft]||null;i&&Aa(i),this._bootstrapComponents=is(n.bootstrap),this._r3Injector=Qr(t,e,[{provide:El,useValue:this},{provide:za,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=no.THROW_IF_NOT_FOUND,n=_t.Default){return t===no||t===El||t===zr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ul extends Tl{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(n){const i=Qt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(s,zl.get(s),n),zl.set(s,n));const r=is(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Vl(this.moduleType,t)}}function $l(t,e,n){const i=Fe()+t,s=Ee();return s[i]===$s?fo(s,i,n?e.call(n):e()):mo(s,i)}function ql(t,e,n,i){return function(t,e,n,i,s,r){const o=e+n;return go(t,o,s)?fo(t,o+1,r?i.call(r,s):i(s)):Ql(t,o+1)}(Ee(),Fe(),t,e,n,i)}function Wl(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return yo(t,a,s,r)?fo(t,a+2,o?i.call(o,s,r):i(s,r)):Ql(t,a+2)}(Ee(),Fe(),t,e,n,i,s)}function Gl(t,e,n,i,s,r,o){return function(t,e,n,i,s,r,o,a,l){const c=e+n;return _o(t,c,s,r,o,a)?fo(t,c+4,l?i.call(l,s,r,o,a):i(s,r,o,a)):Ql(t,c+4)}(Ee(),Fe(),t,e,n,i,s,r,o)}function Ql(t,e){const n=t[e];return n===$s?void 0:n}function Zl(t){return e=>{setTimeout(t,void 0,e)}}const Kl=class extends C{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,s,r;let o=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;o=null===(i=e.next)||void 0===i?void 0:i.bind(e),a=null===(s=e.error)||void 0===s?void 0:s.bind(e),l=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(a=Zl(a),o&&(o=Zl(o)),l&&(l=Zl(l)));const c=super.subscribe({next:o,error:a,complete:l});return t instanceof u&&t.add(c),c}};function Yl(){return this._results[ho()]()}class Xl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ho(),n=Xl.prototype;n[e]||(n[e]=Yl)}get changes(){return this._changes||(this._changes=new Kl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=Un(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=e[i];if(n&&(s=n(s),r=n(r)),r!==s)return!1}return!0}(n._results,i,e))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Jl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jl(this.queryList)}setDirty(){this.queryList.setDirty()}}class tc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new tc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==fc(t,e).matches&&this.queries[e].setDirty()}}class ec{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class nc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new nc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class ic{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new ic(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,sc(e,s)),this.matchTNodeWithReadOption(t,e,Pn(e,t,s,!1,!1))}else n===Sl?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Pn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===qa||i===Ol||i===Sl&&4&e.type)this.addMatch(e.index,-2);else{const n=Pn(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function sc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function rc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?Ua(t,e):4&t.type?kl(t,e):null}(e,t):-2===n?function(t,e,n){return n===qa?Ua(e,t):n===Sl?kl(e,t):n===Ol?Ll(e,t):void 0}(t,e,i):Nn(t,t[1],n,e)}function oc(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:rc(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function ac(t,e,n,i){const s=t.queries.getByIndex(n),r=s.matches;if(null!==r){const o=oc(t,e,s,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=Kt;t<o.length;t++){const e=o[t];e[17]===e[3]&&ac(e[1],e,s,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];ac(n[1],n,s,i)}}}}}return i}function lc(t){const e=Ee(),n=Te(),i=Ve();Ue(i+1);const s=fc(n,i);if(t.dirty&&ve(e)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?ac(n,e,i,[]):oc(n,e,s,i);t.reset(r,Wa),t.notifyOnChanges()}return!0}return!1}function cc(t,e,n){const i=Te();i.firstCreatePass&&(pc(i,new ec(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),dc(i,Ee(),e)}function hc(t,e,n,i){const s=Te();if(s.firstCreatePass){const r=Oe();pc(s,new ec(e,n,i),r.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(s,t),2==(2&n)&&(s.staticContentQueries=!0)}dc(s,Ee(),n)}function uc(){return t=Ee(),e=Ve(),t[19].queries[e].queryList;var t,e}function dc(t,e,n){const i=new Xl(4==(4&n));dr(t,e,i,i.destroy),null===e[19]&&(e[19]=new tc),e[19].queries.push(new Jl(i))}function pc(t,e,n){null===t.queries&&(t.queries=new nc),t.queries.track(new ic(e,n))}function fc(t,e){return t.queries.getByIndex(e)}function mc(t,e){return kl(t,e)}const gc=new Bn("Application Initializer");let yc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Va,this.reject=Va,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(No(e))t.push(e);else if(Lo(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(si(gc,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const _c=new Bn("AppId"),vc={provide:_c,useFactory:function(){return`${bc()}${bc()}${bc()}`},deps:[]};function bc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const wc=new Bn("Platform Initializer"),Sc=new Bn("Platform ID"),Cc=new Bn("appBootstrapListener");let xc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const kc=new Bn("LocaleId"),Ec=new Bn("DefaultCurrencyCode");class Tc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ic=function(t){return new Ul(t)},Oc=Ic,Ac=function(t){return Promise.resolve(Ic(t))},Rc=function(t){const e=Ic(t),n=is(Qt(t).declarations).reduce((t,e)=>{const n=Gt(e);return n&&t.push(new Hl(n)),t},[]);return new Tc(e,n)},Pc=Rc,Nc=function(t){return Promise.resolve(Rc(t))};let Lc=(()=>{class t{constructor(){this.compileModuleSync=Oc,this.compileModuleAsync=Ac,this.compileModuleAndAllComponentsSync=Pc,this.compileModuleAndAllComponentsAsync=Nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Dc=(()=>Promise.resolve(0))();function Fc(t){"undefined"==typeof Zone?Dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Mc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Kl(!1),this.onMicrotaskEmpty=new Kl(!1),this.onStable=new Kl(!1),this.onError=new Kl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ot,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Bc(t),t.isCheckStableRunning=!0,Hc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Bc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return zc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),Vc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return zc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Vc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Bc(t),Hc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Mc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Mc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,jc,Va,Va);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const jc={};function Hc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Bc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function zc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Vc(t){t._nesting--,Hc(t)}class Uc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Kl,this.onMicrotaskEmpty=new Kl,this.onStable=new Kl,this.onError=new Kl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let $c=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Mc.assertNotInAngularZone(),Fc(()=>{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())Fc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(si(Mc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),qc=(()=>{class t{constructor(){this._applications=new Map,Qc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Qc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Wc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Gc,Qc=new Wc,Zc=!0,Kc=!1;function Yc(){return Kc=!0,Zc}const Xc=new Bn("AllowMultipleToken");class Jc{constructor(t,e){this.name=t,this.token=e}}function th(t,e,n=[]){const i=`Platform: ${e}`,s=new Bn(i);return(e=[])=>{let r=eh();if(!r||r.injector.get(Xc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ur,useValue:"platform"});!function(t){if(Gc&&!Gc.destroyed&&!Gc.injector.get(Xc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Gc=t.get(nh);const e=t.get(wc,null);e&&e.forEach(t=>t())}(no.create({providers:t,name:i}))}return function(t){const e=eh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function eh(){return Gc&&!Gc.destroyed?Gc:null}let nh=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Uc:("zone.js"===t?void 0:t)||new Mc({enableLongStackTrace:Yc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:Mc,useValue:n}];return n.run(()=>{const e=no.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(es,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{rh(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return No(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(yc);return t.runInitializers(),t.donePromise.then(()=>(Aa(s.injector.get(kc,Ia)||Ia),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=ih({},e);return function(t,e,n){const i=new Ul(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(sh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(si(no))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function ih(t,e){return Array.isArray(e)?e.reduce(ih,t):Object.assign(Object.assign({},t),e)}let sh=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Mc.assertNotInAngularZone(),Fc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Mc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=$(r,o.pipe(t=>{return q()((e=Y,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,Z);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(El),s=n.create(no.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get($c,null),a=o&&s.injector.get(qc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),rh(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;rh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Cc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(si(Mc),si(no),si(es),si(za),si(yc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function rh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class oh{}class ah{}const lh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let ch=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||lh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(255)(e).then(t=>t[i]).then(t=>hh(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>hh(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(si(Lc),si(ah,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function hh(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const uh=th(null,"core",[{provide:Sc,useValue:"unknown"},{provide:nh,deps:[no]},{provide:qc,deps:[]},{provide:xc,deps:[]}]),dh=[{provide:sh,useClass:sh,deps:[Mc,no,es,za,yc]},{provide:jl,deps:[Mc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:yc,useClass:yc,deps:[[new ci,gc]]},{provide:Lc,useClass:Lc,deps:[]},vc,{provide:hl,useFactory:function(){return vl},deps:[]},{provide:dl,useFactory:function(){return bl},deps:[]},{provide:kc,useFactory:function(t){return Aa(t=t||"undefined"!=typeof $localize&&$localize.locale||Ia),t},deps:[[new li(kc),new ci,new hi]]},{provide:Ec,useValue:"USD"}];let ph=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(si(sh))},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:dh}),t})(),fh=null;function mh(){return fh}const gh=new Bn("DocumentToken");let yh=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:_h,token:t,providedIn:"platform"}),t})();function _h(){return si(bh)}const vh=new Bn("Location Initialized");let bh=(()=>{class t extends yh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mh().getBaseHref(this._doc)}onPopState(t){const e=mh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=mh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){wh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){wh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({factory:Sh,token:t,providedIn:"platform"}),t})();function wh(){return!!window.history.pushState}function Sh(){return new bh(si(gh))}function Ch(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function xh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function kh(t){return t&&"?"!==t[0]?"?"+t:t}let Eh=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:Th,token:t,providedIn:"root"}),t})();function Th(t){const e=si(gh).location;return new Oh(si(yh),e&&e.origin||"")}const Ih=new Bn("appBaseHref");let Oh=(()=>{class t extends Eh{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ch(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+kh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+kh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+kh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(si(yh),si(Ih,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ah=(()=>{class t extends Eh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Ch(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+kh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+kh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(si(yh),si(Ih,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Rh=(()=>{class t{constructor(t,e){this._subject=new Kl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=xh(Nh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+kh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Nh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(si(Eh),si(yh))},t.normalizeQueryParams=kh,t.joinWithSlash=Ch,t.stripTrailingSlash=xh,t.\u0275prov=ct({factory:Ph,token:t,providedIn:"root"}),t})();function Ph(){return new Rh(si(Eh),si(yh))}function Nh(t){return t.replace(/\/index.html$/,"")}var Lh=(()=>((Lh=Lh||{})[Lh.Zero=0]="Zero",Lh[Lh.One=1]="One",Lh[Lh.Two=2]="Two",Lh[Lh.Few=3]="Few",Lh[Lh.Many=4]="Many",Lh[Lh.Other=5]="Other",Lh))();class Dh{}let Fh=(()=>{class t extends Dh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ea(e);if(n)return n;const i=e.split("-")[0];if(n=Ea(i),n)return n;if("en"===i)return xa;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Ta.PluralCase]}(e||this.locale)(t)){case Lh.Zero:return"zero";case Lh.One:return"one";case Lh.Two:return"two";case Lh.Few:return"few";case Lh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(si(kc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Mh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let jh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(uo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${tt(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Co(hl),Co(dl),Co(qa),Co(Qa))},t.\u0275dir=Wt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Hh{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Hh(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new zh(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new zh(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Ol),Co(Sl),Co(hl))},t.\u0275dir=Wt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class zh{constructor(t,e){this.record=t,this.view=e}}let Vh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Uh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){$h("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){$h("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Ol),Co(Sl))},t.\u0275dir=Wt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Uh{constructor(){this.$implicit=null,this.ngIf=null}}function $h(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${tt(e)}'.`)}let qh=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(dl),Co(Qa))},t.\u0275dir=Wt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Wh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ol))},t.\u0275dir=Wt({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[re]}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:[{provide:Dh,useClass:Fh}]}),t})(),Qh=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new Zh(si(gh),window)}),t})();class Zh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Kh(this.window.history)||Kh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Kh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Yh{}class Xh extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Xh,fh||(fh=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(tu=tu||document.querySelector("base"),tu?tu.getAttribute("href"):null);return null==e?null:function(t){Jh=Jh||document.createElement("a"),Jh.setAttribute("href",t);const e=Jh.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){tu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Mh(document.cookie,t)}}let Jh,tu=null;const eu=new Bn("TRANSITION_ID"),nu=[{provide:gc,useFactory:function(t,e,n){return()=>{n.get(yc).donePromise.then(()=>{const n=mh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[eu,gh,no],multi:!0}];class iu{static init(){var t;t=new iu,Qc=t}addToWindow(t){Ot.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(t=>{const e=Ot.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?mh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let su=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const ru=new Bn("EventManagerPlugins");let ou=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(si(ru),si(Mc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class au{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=mh().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let lu=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),cu=(()=>{class t extends lu{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(hu),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(hu))}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function hu(t){mh().remove(t)}const uu={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/"},du=/%COMP%/g;function pu(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?pu(t,s,n):(s=s.replace(du,t),n.push(s))}return n}function fu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let mu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new gu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case xt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new yu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case xt.ShadowDom:return new _u(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=pu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(si(ou),si(cu),si(_c))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class gu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(uu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=uu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=uu[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(ss.DashCase|ss.Important)?t.style.setProperty(e,n,i&ss.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ss.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,fu(n)):this.eventManager.addEventListener(t,e,fu(n))}}class yu extends gu{constructor(t,e,n,i){super(t),this.component=n;const s=pu(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(du,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(du,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class _u extends gu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=pu(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let vu=(()=>{class t extends au{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const bu=["alt","control","meta","shift"],wu={"\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"},Su={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"},Cu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let xu=(()=>{class t extends au{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mh().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(bu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Su.hasOwnProperty(e)&&(e=Su[e]))}return wu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),bu.forEach(i=>{i!=n&&(0,Cu[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),ku=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return si(Tu)},token:t,providedIn:"root"}),t})();function Eu(t){return new Tu(t.get(gh))}let Tu=(()=>{class t extends ku{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Gi.NONE:return e;case Gi.HTML:return Si(e,"HTML")?wi(e):qi(this._doc,String(e)).toString();case Gi.STYLE:return Si(e,"Style")?wi(e):e;case Gi.SCRIPT:if(Si(e,"Script"))return wi(e);throw new Error("unsafe value used in a script context");case Gi.URL:return Ci(e),Si(e,"URL")?wi(e):Ii(String(e));case Gi.RESOURCE_URL:if(Si(e,"ResourceURL"))return wi(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new gi(t)}bypassSecurityTrustStyle(t){return new yi(t)}bypassSecurityTrustScript(t){return new _i(t)}bypassSecurityTrustUrl(t){return new vi(t)}bypassSecurityTrustResourceUrl(t){return new bi(t)}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({factory:function(){return Eu(si(zr))},token:t,providedIn:"root"}),t})();const Iu=th(uh,"browser",[{provide:Sc,useValue:"browser"},{provide:wc,useValue:function(){Xh.makeCurrent(),iu.init()},multi:!0},{provide:gh,useFactory:function(){return function(t){he=t}(document),document},deps:[]}]),Ou=[[],{provide:Ur,useValue:"root"},{provide:es,useFactory:function(){return new es},deps:[]},{provide:ru,useClass:vu,multi:!0,deps:[gh,Mc,Sc]},{provide:ru,useClass:xu,multi:!0,deps:[gh]},[],{provide:mu,useClass:mu,deps:[ou,cu,_c]},{provide:Ga,useExisting:mu},{provide:lu,useExisting:cu},{provide:cu,useClass:cu,deps:[gh]},{provide:$c,useClass:$c,deps:[Mc]},{provide:ou,useClass:ou,deps:[ru,Mc]},{provide:Yh,useClass:su,deps:[]},[]];let Au=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:_c,useValue:e.appId},{provide:eu,useExisting:_c},nu]}}}return t.\u0275fac=function(e){return new(e||t)(si(t,12))},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:Ou,imports:[Gh,ph]}),t})();function Ru(...t){let e=t[t.length-1];return k(e)?(t.pop(),L(t,e)):U(t)}function Pu(t,e){return H(t,e,1)}function Nu(t,e){return function(n){return n.lift(new Lu(t,e))}}"undefined"!=typeof window&&window;class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Du(t,this.predicate,this.thisArg))}}class Du extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Fu{}class Mu{}class ju{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ju?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ju;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ju?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Hu{encodeKey(t){return Bu(t)}encodeValue(t){return Bu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Bu(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function zu(t){return`${t}`}class Vu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Hu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Vu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(zu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(zu(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Uu{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function $u(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qu(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Wu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Gu{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new ju),this.context||(this.context=new Uu),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Vu,this.urlWithParams=e}serializeBody(){return null===this.body?null:$u(this.body)||qu(this.body)||Wu(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Vu?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Wu(this.body)?null:qu(this.body)?this.body.type||null:$u(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Vu?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,i=t.url||this.url,s=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new Gu(n,i,r,{params:c,headers:l,context:h,reportProgress:a,responseType:s,withCredentials:o})}}var Qu=(()=>((Qu=Qu||{})[Qu.Sent=0]="Sent",Qu[Qu.UploadProgress=1]="UploadProgress",Qu[Qu.ResponseHeader=2]="ResponseHeader",Qu[Qu.DownloadProgress=3]="DownloadProgress",Qu[Qu.Response=4]="Response",Qu[Qu.User=5]="User",Qu))();class Zu{constructor(t,e=200,n="OK"){this.headers=t.headers||new ju,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ku extends Zu{constructor(t={}){super(t),this.type=Qu.ResponseHeader}clone(t={}){return new Ku({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Yu extends Zu{constructor(t={}){super(t),this.type=Qu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Yu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Xu extends Zu{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ju(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let td=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Gu)i=t;else{let s,r;s=n.headers instanceof ju?n.headers:new ju(n.headers),n.params&&(r=n.params instanceof Vu?n.params:new Vu({fromObject:n.params})),i=new Gu(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Ru(i).pipe(Pu(t=>this.handler.handle(t)));if(t instanceof Gu||"events"===n.observe)return s;const r=s.pipe(Nu(t=>t instanceof Yu));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(E(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(E(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Vu).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Ju(n,e))}post(t,e,n={}){return this.request("POST",t,Ju(n,e))}put(t,e,n={}){return this.request("PUT",t,Ju(n,e))}}return t.\u0275fac=function(e){return new(e||t)(si(Fu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class ed{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const nd=new Bn("HTTP_INTERCEPTORS");let id=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const sd=/^\)\]\}',?\n/;let rd=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new ju(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Ku({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(sd,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Yu({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Xu({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Xu({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:Qu.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=t=>{let n={type:Qu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:Qu.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(si(Yh))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const od=new Bn("XSRF_COOKIE_NAME"),ad=new Bn("XSRF_HEADER_NAME");class ld{}let cd=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(si(gh),si(Sc),si(od))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),hd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(si(ld),si(ad))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),ud=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(nd,[]);this.chain=t.reduceRight((t,e)=>new ed(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(si(Mu),si(no))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),dd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:hd,useClass:id}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:od,useValue:e.cookieName}:[],e.headerName?{provide:ad,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:[hd,{provide:nd,useExisting:hd,multi:!0},{provide:ld,useClass:cd},{provide:od,useValue:"XSRF-TOKEN"},{provide:ad,useValue:"X-XSRF-TOKEN"}]}),t})(),pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:[td,{provide:Fu,useClass:ud},rd,{provide:Mu,useExisting:rd}],imports:[[dd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),fd=(()=>{class t{static addClass(t,e){t.classList?t.classList.add(e):t.className+=" "+e}static addMultipleClasses(t,e){if(t.classList){let n=e.trim().split(" ");for(let e=0;e<n.length;e++)t.classList.add(n[e])}else{let n=e.split(" ");for(let e=0;e<n.length;e++)t.className+=" "+n[e]}}static removeClass(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}static siblings(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})}static find(t,e){return Array.from(t.querySelectorAll(e))}static findSingle(t,e){return t?t.querySelector(e):null}static index(t){let e=t.parentNode.childNodes,n=0;for(var i=0;i<e.length;i++){if(e[i]==t)return n;1==e[i].nodeType&&n++}return-1}static indexWithinGroup(t,e){let n=t.parentNode?t.parentNode.childNodes:[],i=0;for(var s=0;s<n.length;s++){if(n[s]==t)return i;n[s].attributes&&n[s].attributes[e]&&1==n[s].nodeType&&i++}return-1}static relativePosition(t,e){let n=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t);const i=e.offsetHeight,s=e.getBoundingClientRect(),r=this.getViewport();let o,a;s.top+i+n.height>r.height?(o=-1*n.height,t.style.transformOrigin="bottom",s.top+o<0&&(o=-1*s.top)):(o=i,t.style.transformOrigin="top"),a=n.width>r.width?-1*s.left:s.left+n.width>r.width?-1*(s.left+n.width-r.width):0,t.style.top=o+"px",t.style.left=a+"px"}static absolutePosition(t,e){let n,i,s=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),r=s.height,o=s.width,a=e.offsetHeight,l=e.offsetWidth,c=e.getBoundingClientRect(),h=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),d=this.getViewport();c.top+a+r>d.height?(n=c.top+h-r,t.style.transformOrigin="bottom",n<0&&(n=h)):(n=a+c.top+h,t.style.transformOrigin="top"),i=c.left+o>d.width?Math.max(0,c.left+u+l-o):c.left+u,t.style.top=n+"px",t.style.left=i+"px"}static getParents(t,e=[]){return null===t.parentNode?e:this.getParents(t.parentNode,e.concat([t.parentNode]))}static getScrollableParents(t){let e=[];if(t){let n=this.getParents(t);const i=/(auto|scroll)/,s=t=>{let e=window.getComputedStyle(t,null);return i.test(e.getPropertyValue("overflow"))||i.test(e.getPropertyValue("overflowX"))||i.test(e.getPropertyValue("overflowY"))};for(let t of n){let n=1===t.nodeType&&t.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(t,n);i&&s(i)&&e.push(i)}}9!==t.nodeType&&s(t)&&e.push(t)}}return e}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let e=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",e}static getHiddenElementDimensions(t){let e={};return t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",e}static scrollInView(t,e){let n=getComputedStyle(t).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,s=getComputedStyle(t).getPropertyValue("paddingTop"),r=s?parseFloat(s):0,o=t.getBoundingClientRect(),a=e.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-r,l=t.scrollTop,c=t.clientHeight,h=this.getOuterHeight(e);a<0?t.scrollTop=l+a:a+h>c&&(t.scrollTop=l+a-c+h)}static fadeIn(t,e){t.style.opacity=0;let n=+new Date,i=0,s=function(){i=+t.style.opacity.replace(",",".")+((new Date).getTime()-n)/e,t.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(t,e){var n=1,i=50/e;let s=setInterval(()=>{(n-=i)<=0&&(n=0,clearInterval(s)),t.style.opacity=n},50)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,e){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)}).call(t,e)}static getOuterWidth(t,e){let n=t.offsetWidth;if(e){let e=getComputedStyle(t);n+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)}return n}static getHorizontalPadding(t){let e=getComputedStyle(t);return parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}static getHorizontalMargin(t){let e=getComputedStyle(t);return parseFloat(e.marginLeft)+parseFloat(e.marginRight)}static innerWidth(t){let e=t.offsetWidth,n=getComputedStyle(t);return e+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}static width(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e}static getInnerHeight(t){let e=t.offsetHeight,n=getComputedStyle(t);return e+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),e}static getOuterHeight(t,e){let n=t.offsetHeight;if(e){let e=getComputedStyle(t);n+=parseFloat(e.marginTop)+parseFloat(e.marginBottom)}return n}static getHeight(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}static getWidth(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}static getViewport(){let t=window,e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0];return{width:t.innerWidth||n.clientWidth||i.clientWidth,height:t.innerHeight||n.clientHeight||i.clientHeight}}static getOffset(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,e){let n=t.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(e,t)}static getUserAgent(){return navigator.userAgent}static isIE(){var t=window.navigator.userAgent;return t.indexOf("MSIE ")>0||(t.indexOf("Trident/")>0?(t.indexOf("rv:"),!0):t.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static appendChild(t,e){if(this.isElement(e))e.appendChild(t);else{if(!e.el||!e.el.nativeElement)throw"Cannot append "+e+" to "+t;e.el.nativeElement.appendChild(t)}}static removeChild(t,e){if(this.isElement(e))e.removeChild(t);else{if(!e.el||!e.el.nativeElement)throw"Cannot remove "+t+" from "+e;e.el.nativeElement.removeChild(t)}}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}static calculateScrollbarWidth(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let e=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=e,e}static invokeElementMethod(t,e,n){t[e].apply(t,n)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(t){}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return null===t.offsetParent}static getFocusableElements(e){let n=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'),i=[];for(let t of n)"none"!=getComputedStyle(t).display&&"hidden"!=getComputedStyle(t).visibility&&i.push(t);return i}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();const md=["*"];let gd=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),yd=(()=>{class t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[gd.STARTS_WITH,gd.CONTAINS,gd.NOT_CONTAINS,gd.ENDS_WITH,gd.EQUALS,gd.NOT_EQUALS],numeric:[gd.EQUALS,gd.NOT_EQUALS,gd.LESS_THAN,gd.LESS_THAN_OR_EQUAL_TO,gd.GREATER_THAN,gd.GREATER_THAN_OR_EQUAL_TO],date:[gd.DATE_IS,gd.DATE_IS_NOT,gd.DATE_BEFORE,gd.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.translationSource=new C,this.translationObserver=this.translationSource.asObservable()}getTranslation(t){return this.translation[t]}setTranslation(t){this.translation=Object.assign(Object.assign({},this.translation),t),this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-header"]],ngContentSelectors:md,decls:1,vars:0,template:function(t,e){1&t&&(Vo(),Uo(0))},encapsulation:2}),t})(),vd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-footer"]],ngContentSelectors:md,decls:1,vars:0,template:function(t,e){1&t&&(Vo(),Uo(0))},encapsulation:2}),t})(),bd=(()=>{class t{constructor(t){this.template=t}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(Co(Sl))},t.\u0275dir=Wt({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh]]}),t})(),Sd=(()=>{class t{constructor(t,e,n){this.el=t,this.zone=e,this.config=n}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(t){let e=this.getInk();if(!e||"none"===getComputedStyle(e,null).display)return;if(fd.removeClass(e,"p-ink-active"),!fd.getHeight(e)&&!fd.getWidth(e)){let t=Math.max(fd.getOuterWidth(this.el.nativeElement),fd.getOuterHeight(this.el.nativeElement));e.style.height=t+"px",e.style.width=t+"px"}let n=fd.getOffset(this.el.nativeElement),i=t.pageX-n.left+document.body.scrollTop-fd.getWidth(e)/2,s=t.pageY-n.top+document.body.scrollLeft-fd.getHeight(e)/2;e.style.top=s+"px",e.style.left=i+"px",fd.addClass(e,"p-ink-active")}getInk(){for(let t=0;t<this.el.nativeElement.children.length;t++)if(-1!==this.el.nativeElement.children[t].className.indexOf("p-ink"))return this.el.nativeElement.children[t];return null}resetInk(){let t=this.getInk();t&&fd.removeClass(t,"p-ink-active")}onAnimationEnd(t){fd.removeClass(t.currentTarget,"p-ink-active")}create(){let t=document.createElement("span");t.className="p-ink",this.el.nativeElement.appendChild(t),this.animationListener=this.onAnimationEnd.bind(this),t.addEventListener("animationend",this.animationListener)}remove(){let t=this.getInk();t&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),t.removeEventListener("animationend",this.animationListener),fd.removeElement(t))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(Mc),Co(yd,8))},t.\u0275dir=Wt({type:t,selectors:[["","pRipple",""]],hostVars:2,hostBindings:function(t,e){2&t&&sa("p-ripple",!0)}}),t})(),Cd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh]]}),t})();function xd(t,e){1&t&&Ro(0)}const kd=function(t,e,n,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":e,"p-button-icon-top":n,"p-button-icon-bottom":i}};function Ed(t,e){if(1&t&&Io(0,"span",4),2&t){const t=Bo();oa(t.loading?"p-button-loading-icon "+t.loadingIcon:t.icon),xo("ngClass",Gl(4,kd,"left"===t.iconPos&&t.label,"right"===t.iconPos&&t.label,"top"===t.iconPos&&t.label,"bottom"===t.iconPos&&t.label)),vo("aria-hidden",!0)}}function Td(t,e){if(1&t&&(Eo(0,"span",5),_a(1),To()),2&t){const t=Bo();vo("aria-hidden",t.icon&&!t.label),qs(1),va(t.label||"\xa0")}}function Id(t,e){if(1&t&&(Eo(0,"span",4),_a(1),To()),2&t){const t=Bo();oa(t.badgeClass),xo("ngClass",t.badgeStyleClass()),qs(1),va(t.badge)}}const Od=function(t,e,n,i,s){return{"p-button p-component":!0,"p-button-icon-only":t,"p-button-vertical":e,"p-disabled":n,"p-button-loading":i,"p-button-loading-label-only":s}},Ad=["*"];let Rd=(()=>{class t{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new Kl,this.onFocus=new Kl,this.onBlur=new Kl}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":default:this.contentTemplate=t.template}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-button"]],contentQueries:function(t,e,n){if(1&t&&hc(n,bd,4),2&t){let t;lc(t=uc())&&(e.templates=t)}},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:Ad,decls:6,vars:16,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(t,e){1&t&&(Vo(),Eo(0,"button",0),Do("click",function(t){return e.onClick.emit(t)})("focus",function(t){return e.onFocus.emit(t)})("blur",function(t){return e.onBlur.emit(t)}),Uo(1),wo(2,xd,1,0,"ng-container",1),wo(3,Ed,1,9,"span",2),wo(4,Td,2,2,"span",3),wo(5,Id,2,4,"span",2),To()),2&t&&(oa(e.styleClass),xo("ngStyle",e.style)("disabled",e.disabled||e.loading)("ngClass",function(t,e,n,i,s,r,o,a){const l=Fe()+10,c=Ee(),h=_o(c,l,n,i,s,r);return go(c,l+4,o)||h?fo(c,l+5,e(n,i,s,r,o)):mo(c,l+5)}(0,Od,e.icon&&!e.label,("top"===e.iconPos||"bottom"===e.iconPos)&&e.label,e.disabled||e.loading,e.loading,e.loading&&!e.icon&&e.label)),vo("type",e.type),qs(2),xo("ngTemplateOutlet",e.contentTemplate),qs(1),xo("ngIf",!e.contentTemplate&&(e.icon||e.loading)),qs(1),xo("ngIf",!e.contentTemplate),qs(1),xo("ngIf",!e.contentTemplate&&e.badge))},directives:[Sd,qh,jh,Wh,Vh],encapsulation:2,changeDetection:0}),t})(),Pd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh,Cd]]}),t})();function Nd(t,e){1&t&&Ro(0)}function Ld(t,e){if(1&t&&(Eo(0,"div",8),Uo(1,1),wo(2,Nd,1,0,"ng-container",6),To()),2&t){const t=Bo();qs(2),xo("ngTemplateOutlet",t.headerTemplate)}}function Dd(t,e){1&t&&Ro(0)}function Fd(t,e){if(1&t&&(Eo(0,"div",9),_a(1),wo(2,Dd,1,0,"ng-container",6),To()),2&t){const t=Bo();qs(1),ba(" ",t.header," "),qs(1),xo("ngTemplateOutlet",t.titleTemplate)}}function Md(t,e){1&t&&Ro(0)}function jd(t,e){if(1&t&&(Eo(0,"div",10),_a(1),wo(2,Md,1,0,"ng-container",6),To()),2&t){const t=Bo();qs(1),ba(" ",t.subheader," "),qs(1),xo("ngTemplateOutlet",t.subtitleTemplate)}}function Hd(t,e){1&t&&Ro(0)}function Bd(t,e){1&t&&Ro(0)}function zd(t,e){if(1&t&&(Eo(0,"div",11),Uo(1,2),wo(2,Bd,1,0,"ng-container",6),To()),2&t){const t=Bo();qs(2),xo("ngTemplateOutlet",t.footerTemplate)}}const Vd=["*",[["p-header"]],[["p-footer"]]],Ud=["*","p-header","p-footer"];let $d=(()=>{class t{constructor(t){this.el=t}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerTemplate=t.template;break;case"title":this.titleTemplate=t.template;break;case"subtitle":this.subtitleTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;default:this.contentTemplate=t.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return t.\u0275fac=function(e){return new(e||t)(Co(qa))},t.\u0275cmp=Bt({type:t,selectors:[["p-card"]],contentQueries:function(t,e,n){if(1&t&&(hc(n,_d,5),hc(n,vd,5),hc(n,bd,4)),2&t){let t;lc(t=uc())&&(e.headerFacet=t.first),lc(t=uc())&&(e.footerFacet=t.first),lc(t=uc())&&(e.templates=t)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:Ud,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(t,e){1&t&&(Vo(Vd),Eo(0,"div",0),wo(1,Ld,3,1,"div",1),Eo(2,"div",2),wo(3,Fd,3,2,"div",3),wo(4,jd,3,2,"div",4),Eo(5,"div",5),Uo(6),wo(7,Hd,1,0,"ng-container",6),To(),wo(8,zd,3,1,"div",7),To(),To()),2&t&&(oa(e.styleClass),xo("ngClass","p-card p-component")("ngStyle",e.style),qs(1),xo("ngIf",e.headerFacet||e.headerTemplate),qs(2),xo("ngIf",e.header||e.titleTemplate),qs(1),xo("ngIf",e.subheader||e.subtitleTemplate),qs(3),xo("ngTemplateOutlet",e.contentTemplate),qs(1),xo("ngIf",e.footerFacet||e.footerTemplate))},directives:[jh,qh,Vh,Wh],styles:[".p-card-header img{width:100%}"],encapsulation:2,changeDetection:0}),t})(),qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh],wd]}),t})();var Wd=0;const Gd=["mask"],Qd=function(t){return{"p-galleria-mask p-component-overlay":!0,"p-galleria-visible":t}},Zd=function(t){return{zIndex:t}};function Kd(t,e){if(1&t){const t=Po();Eo(0,"div",3,4),Eo(2,"p-galleriaContent",5),Do("maskHide",function(){return Ie(t),Bo(2).onMaskHide()})("activeItemChange",function(e){return Ie(t),Bo(2).onActiveItemChange(e)}),To(),To()}if(2&t){const t=Bo(2);oa(t.maskClass),xo("ngClass",ql(7,Qd,t.visible))("ngStyle",ql(9,Zd,t.zIndex)),qs(2),xo("value",t.value)("activeIndex",t.activeIndex)("ngStyle",t.containerStyle)}}function Yd(t,e){if(1&t&&(Eo(0,"div"),wo(1,Kd,3,11,"div",2),To()),2&t){const t=Bo();qs(1),xo("ngIf",t.visible)}}function Xd(t,e){if(1&t){const t=Po();Eo(0,"p-galleriaContent",6),Do("activeItemChange",function(e){return Ie(t),Bo().onActiveItemChange(e)}),To()}if(2&t){const t=Bo();xo("value",t.value)("activeIndex",t.activeIndex)}}function Jd(t,e){if(1&t){const t=Po();Eo(0,"button",8),Do("click",function(){return Ie(t),Bo(2).maskHide.emit()}),Io(1,"span",9),To()}}function tp(t,e){if(1&t&&(Eo(0,"div",10),Io(1,"p-galleriaItemSlot",11),To()),2&t){const t=Bo(2);qs(1),xo("templates",t.galleria.templates)}}function ep(t,e){if(1&t){const t=Po();Eo(0,"p-galleriaThumbnails",12),Do("onActiveIndexChange",function(e){return Ie(t),Bo(2).onActiveIndexChange(e)})("stopSlideShow",function(){return Ie(t),Bo(2).stopSlideShow()}),To()}if(2&t){const t=Bo(2);xo("containerId",t.id)("value",t.value)("activeIndex",t.activeIndex)("templates",t.galleria.templates)("numVisible",t.galleria.numVisible)("responsiveOptions",t.galleria.responsiveOptions)("circular",t.galleria.circular)("isVertical",t.isVertical())("contentHeight",t.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",t.galleria.showThumbnailNavigators)("slideShowActive",t.slideShowActive)}}function np(t,e){if(1&t&&(Eo(0,"div",13),Io(1,"p-galleriaItemSlot",14),To()),2&t){const t=Bo(2);qs(1),xo("templates",t.galleria.templates)}}const ip=function(t,e,n){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":e,"p-galleria-item-nav-onhover":n}},sp=function(){return{}};function rp(t,e){if(1&t){const t=Po();Eo(0,"div",1),wo(1,Jd,2,0,"button",2),wo(2,tp,2,1,"div",3),Eo(3,"div",4),Eo(4,"p-galleriaItem",5),Do("onActiveIndexChange",function(e){return Ie(t),Bo().onActiveIndexChange(e)})("startSlideShow",function(){return Ie(t),Bo().startSlideShow()})("stopSlideShow",function(){return Ie(t),Bo().stopSlideShow()}),To(),wo(5,ep,1,11,"p-galleriaThumbnails",6),To(),wo(6,np,2,1,"div",7),To()}if(2&t){const t=Bo();oa(t.galleriaClass()),xo("ngClass",(n=20,i=ip,s=t.galleria.fullScreen,r=t.galleria.showIndicatorsOnItem,o=t.galleria.showItemNavigatorsOnHover&&!t.galleria.fullScreen,function(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=yo(t,e,n,i);return go(t,e+2,s)||r}(t,l,s,r,o)?fo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):Ql(t,l+3)}(Ee(),Fe(),n,i,s,r,o,a)))("ngStyle",t.galleria.fullScreen?$l(24,sp):t.galleria.containerStyle),vo("id",t.id),qs(1),xo("ngIf",t.galleria.fullScreen),qs(1),xo("ngIf",t.galleria.templates&&t.galleria.headerFacet),qs(2),xo("value",t.value)("activeIndex",t.activeIndex)("circular",t.galleria.circular)("templates",t.galleria.templates)("showIndicators",t.galleria.showIndicators)("changeItemOnIndicatorHover",t.galleria.changeItemOnIndicatorHover)("indicatorFacet",t.galleria.indicatorFacet)("captionFacet",t.galleria.captionFacet)("showItemNavigators",t.galleria.showItemNavigators)("autoPlay",t.galleria.autoPlay)("slideShowActive",t.slideShowActive),qs(1),xo("ngIf",t.galleria.showThumbnails),qs(1),xo("ngIf",t.galleria.templates&&t.galleria.footerFacet)}var n,i,s,r,o,a}function op(t,e){1&t&&Ro(0)}function ap(t,e){if(1&t&&(Oo(0),wo(1,op,1,0,"ng-container",1),Ao()),2&t){const t=Bo();qs(1),xo("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",t.context)}}const lp=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function cp(t,e){if(1&t){const t=Po();Eo(0,"button",6),Do("click",function(e){return Ie(t),Bo().navBackward(e)}),Io(1,"span",7),To()}if(2&t){const t=Bo();xo("ngClass",ql(2,lp,t.isNavBackwardDisabled()))("disabled",t.isNavBackwardDisabled())}}const hp=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function up(t,e){if(1&t){const t=Po();Eo(0,"button",6),Do("click",function(e){return Ie(t),Bo().navForward(e)}),Io(1,"span",8),To()}if(2&t){const t=Bo();xo("ngClass",ql(2,hp,t.isNavForwardDisabled()))("disabled",t.isNavForwardDisabled())}}function dp(t,e){if(1&t&&(Eo(0,"div",9),Io(1,"p-galleriaItemSlot",10),To()),2&t){const t=Bo();qs(1),xo("item",t.activeItem)("templates",t.templates)}}function pp(t,e){1&t&&Io(0,"button",16)}const fp=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function mp(t,e){if(1&t){const t=Po();Eo(0,"li",13),Do("click",function(){const e=Ie(t).index;return Bo(2).onIndicatorClick(e)})("mouseenter",function(){const e=Ie(t).index;return Bo(2).onIndicatorMouseEnter(e)})("keydown.enter",function(){const e=Ie(t).index;return Bo(2).onIndicatorKeyDown(e)}),wo(1,pp,1,0,"button",14),Io(2,"p-galleriaItemSlot",15),To()}if(2&t){const t=e.index,n=Bo(2);xo("ngClass",ql(4,fp,n.isIndicatorItemActive(t))),qs(1),xo("ngIf",!n.indicatorFacet),qs(1),xo("index",t)("templates",n.templates)}}function gp(t,e){if(1&t&&(Eo(0,"ul",11),wo(1,mp,3,6,"li",12),To()),2&t){const t=Bo();qs(1),xo("ngForOf",t.value)}}const yp=["itemsContainer"],_p=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}},vp=function(t,e){return{"p-galleria-thumbnail-prev-icon pi":!0,"pi-chevron-left":t,"pi-chevron-up":e}};function bp(t,e){if(1&t){const t=Po();Eo(0,"button",7),Do("click",function(e){return Ie(t),Bo().navBackward(e)}),Io(1,"span",8),To()}if(2&t){const t=Bo();xo("ngClass",ql(3,_p,t.isNavBackwardDisabled()))("disabled",t.isNavBackwardDisabled()),qs(1),xo("ngClass",Wl(5,vp,!t.isVertical,t.isVertical))}}const wp=function(t,e,n,i){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":e,"p-galleria-thumbnail-item-start":n,"p-galleria-thumbnail-item-end":i}};function Sp(t,e){if(1&t){const t=Po();Eo(0,"div",8),Eo(1,"div",9),Do("click",function(){const e=Ie(t).index;return Bo().onItemClick(e)})("keydown.enter",function(){const e=Ie(t).index;return Bo().onItemClick(e)}),Io(2,"p-galleriaItemSlot",10),To(),To()}if(2&t){const t=e.$implicit,n=e.index,i=Bo();xo("ngClass",Gl(4,wp,i.activeIndex===n,i.isItemActive(n),i.firstItemAciveIndex()===n,i.lastItemActiveIndex()===n)),qs(1),vo("tabindex",i.getTabIndex(n)),qs(1),xo("item",t)("templates",i.templates)}}const Cp=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}},xp=function(t,e){return{"p-galleria-thumbnail-next-icon pi":!0,"pi-chevron-right":t,"pi-chevron-down":e}};function kp(t,e){if(1&t){const t=Po();Eo(0,"button",7),Do("click",function(e){return Ie(t),Bo().navForward(e)}),Io(1,"span",8),To()}if(2&t){const t=Bo();xo("ngClass",ql(3,Cp,t.isNavForwardDisabled()))("disabled",t.isNavForwardDisabled()),qs(1),xo("ngClass",Wl(5,xp,!t.isVertical,t.isVertical))}}const Ep=function(t){return{height:t}};let Tp=(()=>{class t{constructor(t,e){this.element=t,this.cd=e,this.fullScreen=!1,this.numVisible=3,this.showItemNavigators=!1,this.showThumbnailNavigators=!0,this.showItemNavigatorsOnHover=!1,this.changeItemOnIndicatorHover=!1,this.circular=!1,this.autoPlay=!1,this.transitionInterval=4e3,this.showThumbnails=!0,this.thumbnailsPosition="bottom",this.verticalThumbnailViewPortHeight="300px",this.showIndicators=!1,this.showIndicatorsOnItem=!1,this.indicatorsPosition="bottom",this.baseZIndex=0,this.activeIndexChange=new Kl,this.visibleChange=new Kl,this._visible=!1,this._activeIndex=0}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t}get visible(){return this._visible}set visible(t){this._visible=t}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerFacet=t.template;break;case"footer":this.footerFacet=t.template;break;case"indicator":this.indicatorFacet=t.template;break;case"caption":this.captionFacet=t.template}})}ngOnChanges(t){this.fullScreen&&t.visible&&(t.visible.currentValue?(fd.addClass(document.body,"p-overflow-hidden"),this.zIndex=String(this.baseZIndex+ ++fd.zindex)):fd.removeClass(document.body,"p-overflow-hidden"))}onMaskHide(){this.visible=!1,this.visibleChange.emit(!1)}onActiveItemChange(t){this.activeIndex!==t&&(this.activeIndex=t,this.activeIndexChange.emit(t))}ngOnDestroy(){this.fullScreen&&fd.removeClass(document.body,"p-overflow-hidden")}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(yl))},t.\u0275cmp=Bt({type:t,selectors:[["p-galleria"]],contentQueries:function(t,e,n){if(1&t&&hc(n,bd,4),2&t){let t;lc(t=uc())&&(e.templates=t)}},viewQuery:function(t,e){if(1&t&&cc(Gd,5),2&t){let t;lc(t=uc())&&(e.mask=t.first)}},inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[re],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["mask",""],[3,"value","activeIndex","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","activeItemChange"]],template:function(t,e){if(1&t&&(wo(0,Yd,2,1,"div",0),wo(1,Xd,1,2,"ng-template",null,1,mc)),2&t){const t=So(2);xo("ngIf",e.fullScreen)("ngIfElse",t)}},directives:function(){return[Vh,jh,qh,Ip]},styles:[".p-galleria-content,.p-galleria-item-wrapper{display:flex;flex-direction:column}.p-galleria-item-wrapper{position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-next,.p-galleria-thumbnail-prev{align-self:center;flex:0 0 auto;overflow:hidden;position:relative}.p-galleria-thumbnail-next,.p-galleria-thumbnail-next span,.p-galleria-thumbnail-prev,.p-galleria-thumbnail-prev span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;left:0;width:100%;height:100%;background-color:transparent;transition-property:background-color}.p-galleria-close,.p-galleria-mask{top:0;display:flex;align-items:center;justify-content:center}.p-galleria-close{position:absolute;right:0;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}"],encapsulation:2,changeDetection:0}),t})(),Ip=(()=>{class t{constructor(t,e){this.galleria=t,this.cd=e,this.value=[],this.maskHide=new Kl,this.activeItemChange=new Kl,this.id=this.galleria.id||"pr_id_"+ ++Wd,this.slideShowActicve=!1,this._activeIndex=0,this.slideShowActive=!0}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t}galleriaClass(){const t=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),e=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(t?t+" ":"")+(e?e+" ":"")}startSlideShow(){this.interval=setInterval(()=>{let t=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(t),this.activeIndex=t},this.galleria.transitionInterval),this.slideShowActive=!0}stopSlideShow(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1}getPositionClass(t,e){const n=["top","left","bottom","right"].find(t=>t===e);return n?`${t}-${n}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(t){this.activeIndex!==t&&(this.activeIndex=t,this.activeItemChange.emit(this.activeIndex))}}return t.\u0275fac=function(e){return new(e||t)(Co(Tp),Co(yl))},t.\u0275cmp=Bt({type:t,selectors:[["p-galleriaContent"]],inputs:{activeIndex:"activeIndex",value:"value"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[1,"p-galleria-close-icon","pi","pi-times"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(t,e){1&t&&wo(0,rp,7,25,"div",0),2&t&&xo("ngIf",e.value&&e.value.length>0)},directives:function(){return[Vh,jh,qh,Ap,Sd,Op,Rp]},encapsulation:2,changeDetection:0}),t})(),Op=(()=>{class t{get item(){return this._item}set item(t){this._item=t,this.templates&&this.templates.forEach(t=>{if(t.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=t.template}})}ngAfterContentInit(){this.templates.forEach(t=>{if(t.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=t.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=t.template;break;default:this.context={},this.contentTemplate=t.template}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&wo(0,ap,2,2,"ng-container",0),2&t&&xo("ngIf",e.contentTemplate)},directives:[Vh,Wh],encapsulation:2,changeDetection:0}),t})(),Ap=(()=>{class t{constructor(){this.circular=!1,this.showItemNavigators=!1,this.showIndicators=!0,this.slideShowActive=!0,this.changeItemOnIndicatorHover=!0,this.autoPlay=!1,this.startSlideShow=new Kl,this.stopSlideShow=new Kl,this.onActiveIndexChange=new Kl,this._activeIndex=0}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t,this.activeItem=this.value[this._activeIndex]}ngOnInit(){this.autoPlay&&this.startSlideShow.emit()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(t){this.stopTheSlideShow(),this.next(),t&&t.cancelable&&t.preventDefault()}navBackward(t){this.stopTheSlideShow(),this.prev(),t&&t.cancelable&&t.preventDefault()}onIndicatorClick(t){this.stopTheSlideShow(),this.onActiveIndexChange.emit(t)}onIndicatorMouseEnter(t){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(t))}onIndicatorKeyDown(t){this.stopTheSlideShow(),this.onActiveIndexChange.emit(t)}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(t){return this.activeIndex===t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-galleriaItem"]],inputs:{circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},decls:7,vars:6,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["type","item",1,"p-galleria-item",3,"item","templates"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[1,"p-galleria-item-prev-icon","pi","pi-chevron-left"],[1,"p-galleria-item-next-icon","pi","pi-chevron-right"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown.enter",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown.enter"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"div",1),wo(2,cp,2,4,"button",2),Io(3,"p-galleriaItemSlot",3),wo(4,up,2,4,"button",2),wo(5,dp,2,2,"div",4),To(),wo(6,gp,2,1,"ul",5),To()),2&t&&(qs(2),xo("ngIf",e.showItemNavigators),qs(1),xo("item",e.activeItem)("templates",e.templates),qs(1),xo("ngIf",e.showItemNavigators),qs(1),xo("ngIf",e.captionFacet),qs(1),xo("ngIf",e.showIndicators))},directives:[Vh,Op,Sd,jh,Bh],encapsulation:2,changeDetection:0}),t})(),Rp=(()=>{class t{constructor(t){this.cd=t,this.isVertical=!1,this.slideShowActive=!1,this.circular=!1,this.contentHeight="300px",this.showThumbnailNavigators=!0,this.onActiveIndexChange=new Kl,this.stopSlideShow=new Kl,this.startPos=null,this.thumbnailsStyle=null,this.sortedResponsiveOptions=null,this.totalShiftedItems=0,this.page=0,this._numVisible=0,this.d_numVisible=0,this._oldNumVisible=0,this._activeIndex=0,this._oldactiveIndex=0}get numVisible(){return this._numVisible}set numVisible(t){this._numVisible=t,this._oldNumVisible=this.d_numVisible,this.d_numVisible=t}get activeIndex(){return this._activeIndex}set activeIndex(t){this._oldactiveIndex=this._activeIndex,this._activeIndex=t}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let t=this.totalShiftedItems;this._oldNumVisible===this.d_numVisible&&this._oldactiveIndex===this._activeIndex||!this.itemsContainer||(t=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex()<this._activeIndex?this.d_numVisible-this.value.length:this.value.length-this.d_numVisible<this._activeIndex&&this.d_numVisible%2==0?-1*this._activeIndex+this.getMedianItemIndex()+1:-1*this._activeIndex+this.getMedianItemIndex(),t!==this.totalShiftedItems&&(this.totalShiftedItems=t),this.itemsContainer&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${t*(100/this.d_numVisible)}%, 0)`:`translate3d(${t*(100/this.d_numVisible)}%, 0, 0)`),this._oldactiveIndex!==this._activeIndex&&(fd.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this._oldactiveIndex=this._activeIndex,this._oldNumVisible=this.d_numVisible)}ngAfterViewInit(){this.calculatePosition()}createStyle(){this.thumbnailsStyle||(this.thumbnailsStyle=document.createElement("style"),this.thumbnailsStyle.type="text/css",document.body.appendChild(this.thumbnailsStyle));let t=`\n            #${this.containerId} .p-galleria-thumbnail-item {\n                flex: 1 0 ${100/this.d_numVisible}%\n            }\n        `;if(this.responsiveOptions){this.sortedResponsiveOptions=[...this.responsiveOptions],this.sortedResponsiveOptions.sort((t,e)=>{const n=t.breakpoint,i=e.breakpoint;let s=null;return s=null==n&&null!=i?-1:null!=n&&null==i?1:null==n&&null==i?0:"string"==typeof n&&"string"==typeof i?n.localeCompare(i,void 0,{numeric:!0}):n<i?-1:n>i?1:0,-1*s});for(let e=0;e<this.sortedResponsiveOptions.length;e++){let n=this.sortedResponsiveOptions[e];t+=`\n                    @media screen and (max-width: ${n.breakpoint}) {\n                        #${this.containerId} .p-galleria-thumbnail-item {\n                            flex: 1 0 ${100/n.numVisible}%\n                        }\n                    }\n                `}}this.thumbnailsStyle.innerHTML=t}calculatePosition(){if(this.itemsContainer&&this.sortedResponsiveOptions){let t=window.innerWidth,e={numVisible:this._numVisible};for(let n=0;n<this.sortedResponsiveOptions.length;n++){let i=this.sortedResponsiveOptions[n];parseInt(i.breakpoint,10)>=t&&(e=i)}this.d_numVisible!==e.numVisible&&(this.d_numVisible=e.numVisible,this.cd.markForCheck())}}getTabIndex(t){return this.isItemActive(t)?0:null}navForward(t){this.stopTheSlideShow();let e=this._activeIndex+1;e+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItems<this.getTotalPageNumber()-1||this.circular)&&this.step(-1),this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this._activeIndex?0:e),t.cancelable&&t.preventDefault()}navBackward(t){this.stopTheSlideShow();let e=0!==this._activeIndex?this._activeIndex-1:0;this.d_numVisible-(e+this.totalShiftedItems)-1>this.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:e),t.cancelable&&t.preventDefault()}onItemClick(t){this.stopTheSlideShow();let e=t;if(e!==this._activeIndex){const t=e+this.totalShiftedItems;let n=0;e<this._activeIndex?(n=this.d_numVisible-t-1-this.getMedianItemIndex(),n>0&&-1*this.totalShiftedItems!=0&&this.step(n)):(n=this.getMedianItemIndex()-t,n<0&&-1*this.totalShiftedItems<this.getTotalPageNumber()-1&&this.step(n)),this.activeIndex=e,this.onActiveIndexChange.emit(this.activeIndex)}}step(t){let e=this.totalShiftedItems+t;t<0&&-1*e+this.d_numVisible>this.value.length-1?e=this.d_numVisible-this.value.length:t>0&&e>0&&(e=0),this.circular&&(t<0&&this.value.length-1===this._activeIndex?e=0:t>0&&0===this._activeIndex&&(e=this.d_numVisible-this.value.length)),this.itemsContainer&&(fd.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${e*(100/this.d_numVisible)}%, 0)`:`translate3d(${e*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=e}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(t,e){e<0?this.navForward(t):this.navBackward(t)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let t=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?t:t-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(fd.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(t){let e=t.changedTouches[0];this.changePageOnTouch(t,this.isVertical?e.pageY-this.startPos.y:e.pageX-this.startPos.x)}onTouchMove(t){t.cancelable&&t.preventDefault()}onTouchStart(t){let e=t.changedTouches[0];this.startPos={x:e.pageX,y:e.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(t){return this.firstItemAciveIndex()<=t&&this.lastItemActiveIndex()>=t}bindDocumentListeners(){this.documentResizeListener||(this.documentResizeListener=()=>{this.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))}unbindDocumentListeners(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle)}}return t.\u0275fac=function(e){return new(e||t)(Co(yl))},t.\u0275cmp=Bt({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(t,e){if(1&t&&cc(yp,5),2&t){let t;lc(t=uc())&&(e.itemsContainer=t.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],[1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove","touchend"],["itemsContainer",""],[3,"ngClass",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[3,"ngClass"],[1,"p-galleria-thumbnail-item-content",3,"click","keydown.enter"],["type","thumbnail",3,"item","templates"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"div",1),wo(2,bp,2,8,"button",2),Eo(3,"div",3),Eo(4,"div",4,5),Do("transitionend",function(){return e.onTransitionEnd()})("touchstart",function(t){return e.onTouchStart(t)})("touchmove",function(t){return e.onTouchMove(t)})("touchend",function(t){return e.onTouchEnd(t)}),wo(6,Sp,3,9,"div",6),To(),To(),wo(7,kp,2,8,"button",2),To(),To()),2&t&&(qs(2),xo("ngIf",e.showThumbnailNavigators),qs(1),xo("ngStyle",ql(4,Ep,e.isVertical?e.contentHeight:"")),qs(3),xo("ngForOf",e.value),qs(1),xo("ngIf",e.showThumbnailNavigators))},directives:[Vh,qh,Bh,Sd,jh,Op],encapsulation:2,changeDetection:0}),t})(),Pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh,wd,Cd],Gh,wd]}),t})();class Np extends C{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b;return this._value}next(t){super.next(this._value=t)}}class Lp extends f{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Dp extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Fp(t,e,n,i,s=new Dp(t,n,i)){if(!s.closed)return e instanceof _?e.subscribe(s):N(e)(s)}const Mp={};function jp(...t){let e,n;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),U(t,n).lift(new Hp(e))}class Hp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Bp(t,this.resultSelector))}}class Bp extends Lp{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Mp),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(Fp(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=this.toRespond?i[n]===Mp?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const zp=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Vp(...t){return V(1)(Ru(...t))}const Up=new _(t=>t.complete());function $p(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):Up}function qp(t){return new _(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?D(n):$p()).subscribe(e)})}function Wp(t,e){return"function"==typeof e?n=>n.pipe(Wp((n,i)=>D(t(n,i)).pipe(E((t,s)=>e(n,t,i,s))))):e=>e.lift(new Gp(t))}class Gp{constructor(t){this.project=t}call(t,e){return e.subscribe(new Qp(t,this.project))}}class Qp extends M{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new F(this),i=this.destination;i.add(n),this.innerSubscription=j(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Zp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Kp(t){return e=>0===t?$p():e.lift(new Yp(t))}class Yp{constructor(t){if(this.total=t,this.total<0)throw new Zp}call(t,e){return e.subscribe(new Xp(t,this.total))}}class Xp extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Jp(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>Vp(t,n,e)):e=>Vp(t,e)}function tf(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new ef(t,e,n))}}class ef{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new nf(t,this.accumulator,this.seed,this.hasSeed))}}class nf extends f{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sf(t){return function(e){const n=new rf(t),i=e.lift(n);return n.caught=i}}class rf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new of(t,this.selector,this.caught))}}class of extends M{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new F(this);this.add(i);const s=j(n,i);s!==i&&this.add(s)}}}function af(t){return function(e){return 0===t?$p():e.lift(new lf(t))}}class lf{constructor(t){if(this.total=t,this.total<0)throw new Zp}call(t,e){return e.subscribe(new cf(t,this.total))}}class cf extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}function hf(t=pf){return e=>e.lift(new uf(t))}class uf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new df(t,this.errorFactory))}}class df extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function pf(){return new zp}function ff(t=null){return e=>e.lift(new mf(t))}class mf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new gf(t,this.defaultValue))}}class gf extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function yf(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Nu((e,n)=>t(e,n,i)):y,Kp(1),n?ff(e):hf(()=>new zp))}function _f(){}function vf(t,e,n){return function(i){return i.lift(new bf(t,e,n))}}class bf{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new wf(t,this.nextOrObserver,this.error,this.complete))}}class wf extends f{constructor(t,e,n,s){super(t),this._tapNext=_f,this._tapError=_f,this._tapComplete=_f,this._tapError=n||_f,this._tapComplete=s||_f,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_f,this._tapError=e.error||_f,this._tapComplete=e.complete||_f)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Sf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Cf(t,this.callback))}}class Cf extends f{constructor(t,e){super(t),this.add(new u(e))}}class xf{constructor(t,e){this.id=t,this.url=e}}class kf extends xf{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ef extends xf{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tf extends xf{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class If extends xf{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Of extends xf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Af extends xf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rf extends xf{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Pf extends xf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nf extends xf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lf{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Df{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ff{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bf{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const zf="primary";class Vf{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Uf(t){return new Vf(t)}function $f(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function qf(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}function Wf(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!Gf(t[s],e[s]))return!1;return!0}function Gf(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function Qf(t){return Array.prototype.concat.apply([],t)}function Zf(t){return t.length>0?t[t.length-1]:null}function Kf(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Yf(t){return Lo(t)?t:No(t)?D(Promise.resolve(t)):Ru(t)}const Xf={exact:function t(e,n,i){if(!am(e.segments,n.segments))return!1;if(!im(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s],i))return!1}return!0},subset:em},Jf={exact:function(t,e){return Wf(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Gf(t[n],e[n]))},ignored:()=>!0};function tm(t,e,n){return Xf[n.paths](t.root,e.root,n.matrixParams)&&Jf[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function em(t,e,n){return nm(t,e,e.segments,n)}function nm(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!!am(s,n)&&!e.hasChildren()&&!!im(s,n,i)}if(t.segments.length===n.length){if(!am(t.segments,n))return!1;if(!im(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!em(t.children[n],e.children[n],i))return!1}return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!am(t.segments,s)&&!!im(t.segments,s,i)&&!!t.children.primary&&nm(t.children.primary,e,r,i)}}function im(t,e,n){return e.every((e,i)=>Jf[n](t[i].parameters,e.parameters))}class sm{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uf(this.queryParams)),this._queryParamMap}toString(){return hm.serialize(this)}}class rm{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Kf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return um(this)}}class om{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Uf(this.parameters)),this._parameterMap}toString(){return _m(this)}}function am(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class lm{}class cm{parse(t){const e=new Cm(t);return new sm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${dm(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${fm(e)}=${fm(t)}`).join("&"):`${fm(e)}=${fm(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const hm=new cm;function um(t){return t.segments.map(t=>_m(t)).join("/")}function dm(t,e){if(!t.hasChildren())return um(t);if(e){const e=t.children.primary?dm(t.children.primary,!1):"",n=[];return Kf(t.children,(t,e)=>{e!==zf&&n.push(`${e}:${dm(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Kf(t.children,(t,i)=>{i===zf&&(n=n.concat(e(t,i)))}),Kf(t.children,(t,i)=>{i!==zf&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===zf?[dm(t.children.primary,!1)]:[`${n}:${dm(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${um(t)}/${e[0]}`:`${um(t)}/(${e.join("//")})`}}function pm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fm(t){return pm(t).replace(/%3B/gi,";")}function mm(t){return pm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gm(t){return decodeURIComponent(t)}function ym(t){return gm(t.replace(/\+/g,"%20"))}function _m(t){return`${mm(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${mm(t)}=${mm(e[t])}`).join("")}`;var e}const vm=/^[^\/()?;=#]+/;function bm(t){const e=t.match(vm);return e?e[0]:""}const wm=/^[^=?&#]+/,Sm=/^[^?&#]+/;class Cm{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rm([],{}):new rm([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new rm(t,e)),n}parseSegment(){const t=bm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new om(gm(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=bm(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=bm(this.remaining);t&&(n=t,this.capture(n))}t[gm(e)]=gm(n)}parseQueryParam(t){const e=function(t){const e=t.match(wm);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Sm);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=ym(e),s=ym(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=bm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=zf);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new rm([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class xm{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=km(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=km(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Em(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Em(t,this._root).map(t=>t.value)}}function km(t,e){if(t===e.value)return e;for(const n of e.children){const e=km(t,n);if(e)return e}return null}function Em(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Em(t,n);if(i.length)return i.unshift(e),i}return[]}class Tm{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Im(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Om extends xm{constructor(t,e){super(t),this.snapshot=e,Dm(this,t)}toString(){return this.snapshot.toString()}}function Am(t,e){const n=function(t,e){const n=new Nm([],{},{},"",{},zf,e,null,t.root,-1,{});return new Lm("",new Tm(n,[]))}(t,e),i=new Np([new om("",{})]),s=new Np({}),r=new Np({}),o=new Np({}),a=new Np(""),l=new Rm(i,s,o,a,r,zf,e,n.root);return l.snapshot=n.root,new Om(new Tm(l,[]),n)}class Rm{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>Uf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>Uf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pm(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Nm{constructor(t,e,n,i,s,r,o,a,l,c,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Uf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lm extends xm{constructor(t,e){super(e),this.url=t,Dm(this,e)}toString(){return Fm(this._root)}}function Dm(t,e){e.value._routerState=t,e.children.forEach(e=>Dm(t,e))}function Fm(t){const e=t.children.length>0?` { ${t.children.map(Fm).join(", ")} } `:"";return`${t.value}${e}`}function Mm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Wf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Wf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Wf(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Wf(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function jm(t,e){var n,i;return Wf(t.params,e.params)&&am(n=t.url,i=e.url)&&n.every((t,e)=>Wf(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||jm(t.parent,e.parent))}function Hm(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Hm(t,e,i);return Hm(t,e)})}(t,e,n);return new Tm(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Bm(e,t),t}}const n=new Rm(new Np((i=e.value).url),new Np(i.params),new Np(i.queryParams),new Np(i.fragment),new Np(i.data),i.outlet,i.component,i),s=e.children.map(e=>Hm(t,e));return new Tm(n,s)}var i}function Bm(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)Bm(t.children[n],e.children[n])}function zm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Vm(t){return"object"==typeof t&&null!=t&&t.outlets}function Um(t,e,n,i,s){let r={};return i&&Kf(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new sm(n.root===t?e:$m(n.root,t,e),r,s)}function $m(t,e,n){const i={};return Kf(t.children,(t,s)=>{i[s]=t===e?n:$m(t,e,n)}),new rm(t.segments,i)}class qm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&zm(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Vm);if(i&&i!==Zf(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wm{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Gm(t,e,n){if(t||(t=new rm([],{})),0===t.segments.length&&t.hasChildren())return Qm(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],o=n[i];if(Vm(o))break;const a=`${o}`,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Xm(a,l,e))return r;i+=2}else{if(!Xm(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new rm(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new rm(t.segments.slice(i.pathIndex),t.children),Qm(e,0,s)}return i.match&&0===s.length?new rm(t.segments,{}):i.match&&!t.hasChildren()?Zm(t,e,n):i.match?Qm(t,0,s):Zm(t,e,n)}function Qm(t,e,n){if(0===n.length)return new rm(t.segments,{});{const i=function(t){return Vm(t[0])?t[0].outlets:{[zf]:t}}(n),s={};return Kf(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=Gm(t.children[i],e,n))}),Kf(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new rm(t.segments,s)}}function Zm(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){const r=n[s];if(Vm(r)){const t=Km(r.outlets);return new rm(i,t)}if(0===s&&zm(n[0])){i.push(new om(t.segments[e].path,Ym(n[0]))),s++;continue}const o=Vm(r)?r.outlets.primary:`${r}`,a=s<n.length-1?n[s+1]:null;o&&a&&zm(a)?(i.push(new om(o,Ym(a))),s+=2):(i.push(new om(o,{})),s++)}return new rm(i,{})}function Km(t){const e={};return Kf(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Zm(new rm([],{}),0,t))}),e}function Ym(t){const e={};return Kf(t,(t,n)=>e[n]=`${t}`),e}function Xm(t,e,n){return t==n.path&&Wf(e,n.parameters)}class Jm{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Mm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Im(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Kf(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Im(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Im(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Hf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Mf(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Mm(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),tg(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function tg(t){Mm(t.value),t.children.forEach(tg)}class eg{constructor(t,e){this.routes=t,this.module=e}}function ng(t){return"function"==typeof t}function ig(t){return t instanceof sm}const sg=Symbol("INITIAL_VALUE");function rg(){return Wp(t=>jp(t.map(t=>t.pipe(Kp(1),Jp(sg)))).pipe(tf((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==sg)return t;if(i===sg&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||ig(i))return i}return t},t)},sg),Nu(t=>t!==sg),E(t=>ig(t)?t:!0===t),Kp(1)))}let og=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Io(0,"router-outlet")},directives:function(){return[sy]},encapsulation:2}),t})();function ag(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];lg(i,cg(e,i))}}function lg(t,e){t.children&&ag(t.children,e)}function cg(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function hg(t){const e=t.children&&t.children.map(hg),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==zf&&(n.component=og),n}function ug(t){return t.outlet||zf}function dg(t,e){const n=t.filter(t=>ug(t)===e);return n.push(...t.filter(t=>ug(t)!==e)),n}const pg={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function fg(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},pg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||qf)(n,t,e);if(!s)return Object.assign({},pg);const r={};Kf(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function mg(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>gg(t,e,n)&&ug(n)!==zf)}(t,n,i)){const s=new rm(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&ug(r)!==zf){const n=new rm([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[ug(r)]=n}return s}(t,e,i,new rm(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>gg(t,e,n))}(t,n,i)){const r=new rm(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(gg(t,n,a)&&!s[ug(a)]){const n=new rm([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[ug(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new rm(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function gg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function yg(t,e,n,i){return!!(ug(t)===i||i!==zf&&gg(e,n,t))&&("**"===t.path||fg(e,t,n).matched)}function _g(t,e,n){return 0===e.length&&!t.children[n]}class vg{constructor(t){this.segmentGroup=t||null}}class bg{constructor(t){this.urlTree=t}}function wg(t){return new _(e=>e.error(new vg(t)))}function Sg(t){return new _(e=>e.error(new bg(t)))}function Cg(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class xg{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(El)}apply(){const t=mg(this.urlTree.root,[],[],this.config).segmentGroup,e=new rm(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,zf).pipe(E(t=>this.createUrlTree(kg(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(sf(t=>{if(t instanceof bg)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof vg)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,zf).pipe(E(e=>this.createUrlTree(kg(e),t.queryParams,t.fragment))).pipe(sf(t=>{if(t instanceof vg)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new rm([],{[zf]:t}):t;return new sm(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(E(t=>new rm([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return D(i).pipe(Pu(i=>{const s=n.children[i],r=dg(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(E(t=>({segment:t,outlet:i})))}),tf((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Nu((e,n)=>t(e,n,i)):y,af(1),n?ff(e):hf(()=>new zp))}())}expandSegment(t,e,n,i,s,r){return D(n).pipe(Pu(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(sf(t=>{if(t instanceof vg)return Ru(null);throw t}))),yf(t=>!!t),sf((t,n)=>{if(t instanceof zp||"EmptyError"===t.name){if(_g(e,i,s))return Ru(new rm([],{}));throw new vg(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return yg(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):wg(e):wg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Sg(s):this.lineralizeSegments(n,s).pipe(H(n=>{const s=new rm(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=fg(e,i,s);if(!o)return wg(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Sg(h):this.lineralizeSegments(i,h).pipe(H(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Ru(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(E(t=>(n._loadedConfig=t,new rm(i,{})))):Ru(new rm(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=fg(e,n,i);if(!r)return wg(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(H(t=>{const i=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=mg(e,o,l,r),h=new rm(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe(E(t=>new rm(o,t)));if(0===r.length&&0===c.length)return Ru(new rm(o,{}));const u=ug(n)===s;return this.expandSegment(i,h,r,c,u?zf:s,!0).pipe(E(t=>new rm(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ru(new eg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ru(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(H(n=>n?this.configLoader.load(t.injector,e).pipe(E(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error($f(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ru(new eg([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Ru(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&ng(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!ng(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return Yf(r)})).pipe(rg(),vf(t=>{if(!ig(t))return;const e=$f(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),E(t=>!0===t)):Ru(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ru(n);if(i.numberOfChildren>1||!i.children.primary)return Cg(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new sm(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Kf(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Kf(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new rm(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function kg(t){const e={};for(const n of Object.keys(t.children)){const i=kg(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new rm(t.segments.concat(e.segments),e.children)}return t}(new rm(t.segments,e))}class Eg{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Tg{constructor(t,e){this.component=t,this.route=e}}function Ig(t,e,n){const i=t._root;return Ag(i,e?e._root:null,n,[i.value])}function Og(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ag(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Im(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!am(t.url,e.url);case"pathParamsOrQueryParamsChange":return!am(t.url,e.url)||!Wf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jm(t,e)||!Wf(t.queryParams,e.queryParams);case"paramsChange":default:return!jm(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Eg(i)):(r.data=o.data,r._resolvedData=o._resolvedData),Ag(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Tg(a.outlet.component,o))}else o&&Rg(e,a,s),s.canActivateChecks.push(new Eg(i)),Ag(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Kf(r,(t,e)=>Rg(t,n.getContext(e),s)),s}function Rg(t,e,n){const i=Im(t),s=t.value;Kf(i,(t,i)=>{Rg(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Tg(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Pg{}function Ng(t){return new _(e=>e.error(t))}class Lg{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=mg(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,zf);if(null===e)return null;const n=new Nm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},zf,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Tm(n,e),s=new Lm(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Pm(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=dg(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=Fg(n);return i.sort((t,e)=>t.value.outlet===zf?-1:e.value.outlet===zf?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return _g(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!yg(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Zf(n).parameters:{};s=new Nm(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hg(t),ug(t),t.component,t,Mg(e),jg(e)+n.length,Bg(t))}else{const i=fg(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new Nm(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Hg(t),ug(t),t.component,t,Mg(e),jg(e)+r.length,Bg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=mg(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Tm(s,t)]}if(0===a.length&&0===c.length)return[new Tm(s,[])];const h=ug(t)===i,u=this.processSegment(a,l,c,h?zf:i);return null===u?null:[new Tm(s,u)]}}function Dg(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Fg(t){const e=[],n=new Set;for(const i of t){if(!Dg(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Fg(i.children);e.push(new Tm(i.value,t))}return e.filter(t=>!n.has(t))}function Mg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function jg(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Hg(t){return t.data||{}}function Bg(t){return t.resolve||{}}function zg(t){return Wp(e=>{const n=t(e);return n?D(n).pipe(E(()=>e)):Ru(e)})}class Vg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Ug=new Bn("ROUTES");class $g{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new eg(Qf(i.injector.get(Ug,void 0,_t.Self|_t.Optional)).map(hg),i)}),sf(t=>{throw e._loader$=void 0,t}));return e._loader$=new Q(n,()=>new C).pipe(q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?D(this.loader.load(t)):Yf(t()).pipe(H(t=>t instanceof Tl?Ru(t):D(this.compiler.compileModuleAsync(t))))}}class qg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Wg,this.attachRef=null}}class Wg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new qg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Gg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Qg(t){throw t}function Zg(t,e,n){return e.parse("/")}function Kg(t,e){return Ru(null)}const Yg={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xg={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Jg=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=Qg,this.malformedUriErrorHandler=Zg,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Kg,afterPreactivation:Kg},this.urlHandlingStrategy=new Gg,this.routeReuseStrategy=new Vg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(El),this.console=s.get(xc);const l=s.get(Mc);this.isNgZoneEnabled=l instanceof Mc&&Mc.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new sm(new rm([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new $g(r,o,t=>this.triggerEvent(new Lf(t)),t=>this.triggerEvent(new Df(t))),this.routerState=Am(this.currentUrlTree,this.rootComponentType),this.transitions=new Np({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Nu(t=>0!==t.id),E(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Wp(t=>{let n=!1,i=!1;return Ru(t).pipe(vf(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Wp(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ru(t).pipe(Wp(t=>{const n=this.transitions.getValue();return e.next(new kf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Up:Promise.resolve(t)}),function(t,e,n,i){return Wp(s=>function(t,e,n,i,s){return new xg(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe(E(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),vf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return H(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new Lg(t,e,n,i,s,r).recognize();return null===o?Ng(new Pg):Ru(o)}catch(o){return Ng(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(E(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),vf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Of(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new kf(n,this.serializeUrl(i),s,r);e.next(a);const l=Am(i,this.rootComponentType).snapshot;return Ru(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Up}),zg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),vf(t=>{const e=new Af(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),E(t=>Object.assign(Object.assign({},t),{guards:Ig(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return H(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Ru(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return D(t).pipe(H(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Ru(r.map(r=>{const o=Og(r,e,s);let a;if(function(t){return t&&ng(t.canDeactivate)}(o))a=Yf(o.canDeactivate(t,e,n,i));else{if(!ng(o))throw new Error("Invalid CanDeactivate guard");a=Yf(o(t,e,n,i))}return a.pipe(yf())})).pipe(rg()):Ru(!0)}(t.component,t.route,n,e,i)),yf(t=>!0!==t,!0))}(o,i,s,t).pipe(H(n=>n&&"boolean"==typeof n?function(t,e,n,i){return D(e).pipe(Pu(e=>Vp(function(t,e){return null!==t&&e&&e(new Ff(t)),Ru(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new jf(t)),Ru(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>qp(()=>Ru(e.guards.map(s=>{const r=Og(s,e.node,n);let o;if(function(t){return t&&ng(t.canActivateChild)}(r))o=Yf(r.canActivateChild(i,t));else{if(!ng(r))throw new Error("Invalid CanActivateChild guard");o=Yf(r(i,t))}return o.pipe(yf())})).pipe(rg())));return Ru(s).pipe(rg())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Ru(i.map(i=>qp(()=>{const s=Og(i,e,n);let r;if(function(t){return t&&ng(t.canActivate)}(s))r=Yf(s.canActivate(e,t));else{if(!ng(s))throw new Error("Invalid CanActivate guard");r=Yf(s(e,t))}return r.pipe(yf())}))).pipe(rg()):Ru(!0)}(t,e.route,n))),yf(t=>!0!==t,!0))}(i,r,t,e):Ru(n)),E(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),vf(t=>{if(ig(t.guardsResult)){const e=$f(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Rf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Nu(t=>!!t.guardsResult||(this.cancelNavigationTransitionRestoreHistory(t,""),!1)),zg(t=>{if(t.guards.canActivateChecks.length)return Ru(t).pipe(vf(t=>{const e=new Pf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Wp(t=>{let e=!1;return Ru(t).pipe((n=this.paramsInheritanceStrategy,i=this.ngModule.injector,H(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return Ru(t);let r=0;return D(s).pipe(Pu(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Ru({});const r={};return D(s).pipe(H(s=>function(t,e,n,i){const s=Og(t,e,i);return Yf(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(vf(t=>{r[s]=t}))),af(1),H(()=>Object.keys(r).length===s.length?Ru(r):Up))}(t._resolve,t,e,i).pipe(E(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Pm(t,n).resolve),null)))}(t.route,e,n,i)),vf(()=>r++),af(1),H(e=>r===s.length?Ru(t):Up))})),vf({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransitionRestoreHistory(t,"At least one route resolver didn't emit any value.")}}));var n,i}),vf(t=>{const e=new Nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),zg(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),E(t=>{const e=function(t,e,n){const i=Hm(t,e._root,n?n._root:void 0);return new Om(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),vf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),E(t=>(new Jm(o,t.targetRouterState,t.currentRouterState,a).activate(r),t))),vf({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?this.cancelNavigationTransitionRestoreHistory(t,e):this.cancelNavigationTransition(t,e)}this.currentNavigation=null},t=>t.lift(new Sf(s))),sf(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=ig(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Tf(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new If(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return Up}));var s,r,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ag(t),this.config=t.map(hg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return Um(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new qm(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Kf(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new qm(n,e,i)}(n);if(r.toRoot())return Um(e.root,new rm([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Wm(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Wm(t,t===e.root,0)}const i=zm(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Wm(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Qm(o.segmentGroup,o.index,r.commands):Gm(o.segmentGroup,o.index,r.commands);return Um(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=ig(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},Yg):!1===e?Object.assign({},Xg):e,ig(t))return tm(this.currentUrlTree,t,n);const i=this.parseUrl(t);return tm(this.currentUrlTree,i,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ef(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let h,u,d;s?(h=s.resolve,u=s.reject,d=s.promise):d=new Promise((t,e)=>{h=t,u=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:h,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransitionRestoreHistory(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree(),this.cancelNavigationTransition(t,e)}cancelNavigationTransition(t,e){const n=new Tf(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(si(Vn),si(lm),si(Wg),si(Rh),si(no),si(oh),si(Lc),si(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),ty=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new C,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:ny(this.skipLocationChange),replaceUrl:ny(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ny(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(Rm),Mn("tabindex"),Co(Qa),Co(qa))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Do("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[re]}),t})(),ey=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new C,this.subscription=t.events.subscribe(t=>{t instanceof Ef&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:ny(this.skipLocationChange),replaceUrl:ny(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ny(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(Rm),Co(Eh))},t.\u0275dir=Wt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Do("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(wa("href",e.href,Zi),vo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[re]}),t})();function ny(t){return""===t||!!t}let iy=(()=>{class t{constructor(t,e,n,i,s,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Ef&&this.update()})}ngAfterContentInit(){Ru(this.links.changes,this.linksWithHrefs.changes,Ru(null)).pipe(V()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=D(e).pipe(V()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(qa),Co(Qa),Co(yl),Co(ty,8),Co(ey,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(hc(n,ty,5),hc(n,ey,5)),2&t){let t;lc(t=uc())&&(e.links=t),lc(t=uc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[re]}),t})(),sy=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Kl,this.deactivateEvents=new Kl,this.name=i||zf,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new ry(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Co(Wg),Co(Ol),Co(za),Mn("name"),Co(yl))},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class ry{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Rm?this.route:t===Wg?this.childContexts:this.parent.get(t,e)}}class oy{}class ay{preload(t,e){return Ru(null)}}let ly=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new $g(e,n,e=>t.triggerEvent(new Lf(e)),e=>t.triggerEvent(new Df(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Nu(t=>t instanceof Ef),Pu(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(El);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return D(n).pipe(V(),E(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Ru(e._loadedConfig):this.loader.load(t.injector,e)).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(si(Jg),si(oh),si(Lc),si(no),si(oy))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),cy=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof kf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ef&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Bf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Bf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(si(Jg),si(Qh),si(void 0))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const hy=new Bn("ROUTER_CONFIGURATION"),uy=new Bn("ROUTER_FORROOT_GUARD"),dy=[Rh,{provide:lm,useClass:cm},{provide:Jg,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Jg(null,t,e,n,i,s,r,Qf(o));return l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),h},deps:[lm,Wg,Rh,no,oh,Lc,Ug,hy,[class{},new ci],[class{},new ci]]},Wg,{provide:Rm,useFactory:function(t){return t.routerState.root},deps:[Jg]},{provide:oh,useClass:ch},ly,ay,class{preload(t,e){return e().pipe(sf(()=>Ru(null)))}},{provide:hy,useValue:{enableTracing:!1}}];function py(){return new Jc("Router",Jg)}let fy=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[dy,_y(e),{provide:uy,useFactory:yy,deps:[[Jg,new ci,new hi]]},{provide:hy,useValue:n||{}},{provide:Eh,useFactory:gy,deps:[yh,[new li(Ih),new ci],hy]},{provide:cy,useFactory:my,deps:[Jg,Qh,hy]},{provide:oy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:ay},{provide:Jc,multi:!0,useFactory:py},[vy,{provide:gc,multi:!0,useFactory:by,deps:[vy]},{provide:Sy,useFactory:wy,deps:[vy]},{provide:Cc,multi:!0,useExisting:Sy}]]}}static forChild(e){return{ngModule:t,providers:[_y(e)]}}}return t.\u0275fac=function(e){return new(e||t)(si(uy,8),si(Jg,8))},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})();function my(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new cy(t,e,n)}function gy(t,e,n={}){return n.useHash?new Ah(t,e):new Oh(t,e)}function yy(t){return"guarded"}function _y(t){return[{provide:zn,multi:!0,useValue:t},{provide:Ug,multi:!0,useValue:t}]}let vy=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get(vh,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Jg),i=this.injector.get(hy);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Ru(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(hy),n=this.injector.get(ly),i=this.injector.get(cy),s=this.injector.get(Jg),r=this.injector.get(sh);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(si(no))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function by(t){return t.appInitializer.bind(t)}function wy(t){return t.bootstrapListener.bind(t)}const Sy=new Bn("Router Initializer");function Cy(t,e){1&t&&Io(0,"span",10),2&t&&xo("ngClass",Bo(3).home.icon||"pi pi-home")}function xy(t,e){if(1&t&&(Eo(0,"span",13),_a(1),To()),2&t){const t=Bo(4);qs(1),va(t.home.label)}}function ky(t,e){1&t&&Io(0,"span",14),2&t&&xo("innerHTML",Bo(4).home.label,Qi)}function Ey(t,e){if(1&t&&(Oo(0),wo(1,xy,2,1,"span",11),wo(2,ky,1,1,"ng-template",null,12,mc),Ao()),2&t){const t=So(3),e=Bo(3);qs(1),xo("ngIf",!1!==e.home.escape)("ngIfElse",t)}}function Ty(t,e){if(1&t){const t=Po();Eo(0,"a",7),Do("click",function(e){Ie(t);const n=Bo(2);return n.itemClick(e,n.home)}),wo(1,Cy,1,1,"span",8),wo(2,Ey,4,2,"ng-container",9),To()}if(2&t){const t=Bo(2);xo("href",t.home.url?t.home.url:null,Zi),vo("target",t.home.target)("title",t.home.title)("id",t.home.id)("tabindex",t.home.disabled?null:"0"),qs(1),xo("ngIf",t.home.icon),qs(1),xo("ngIf",t.home.label)}}function Iy(t,e){1&t&&Io(0,"span",10),2&t&&xo("ngClass",Bo(3).home.icon||"pi pi-home")}function Oy(t,e){if(1&t&&(Eo(0,"span",13),_a(1),To()),2&t){const t=Bo(4);qs(1),va(t.home.label)}}function Ay(t,e){1&t&&Io(0,"span",14),2&t&&xo("innerHTML",Bo(4).home.label,Qi)}function Ry(t,e){if(1&t&&(Oo(0),wo(1,Oy,2,1,"span",11),wo(2,Ay,1,1,"ng-template",null,16,mc),Ao()),2&t){const t=So(3),e=Bo(3);qs(1),xo("ngIf",!1!==e.home.escape)("ngIfElse",t)}}const Py=function(){return{exact:!1}};function Ny(t,e){if(1&t){const t=Po();Eo(0,"a",15),Do("click",function(e){Ie(t);const n=Bo(2);return n.itemClick(e,n.home)}),wo(1,Iy,1,1,"span",8),wo(2,Ry,4,2,"ng-container",9),To()}if(2&t){const t=Bo(2);xo("routerLink",t.home.routerLink)("queryParams",t.home.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",t.home.routerLinkActiveOptions||$l(16,Py))("fragment",t.home.fragment)("queryParamsHandling",t.home.queryParamsHandling)("preserveFragment",t.home.preserveFragment)("skipLocationChange",t.home.skipLocationChange)("replaceUrl",t.home.replaceUrl)("state",t.home.state),vo("target",t.home.target)("title",t.home.title)("id",t.home.id)("tabindex",t.home.disabled?null:"0"),qs(1),xo("ngIf",t.home.icon),qs(1),xo("ngIf",t.home.label)}}const Ly=function(t){return{"p-breadcrumb-home":!0,"p-disabled":t}};function Dy(t,e){if(1&t&&(Eo(0,"li",4),wo(1,Ty,3,7,"a",5),wo(2,Ny,3,17,"a",6),To()),2&t){const t=Bo();oa(t.home.styleClass),xo("ngClass",ql(6,Ly,t.home.disabled))("ngStyle",t.home.style),qs(1),xo("ngIf",!t.home.routerLink),qs(1),xo("ngIf",t.home.routerLink)}}function Fy(t,e){1&t&&Io(0,"li",17)}function My(t,e){1&t&&Io(0,"span",10),2&t&&xo("ngClass",Bo(2).$implicit.icon)}function jy(t,e){if(1&t&&(Eo(0,"span",13),_a(1),To()),2&t){const t=Bo(3).$implicit;qs(1),va(t.label)}}function Hy(t,e){1&t&&Io(0,"span",14),2&t&&xo("innerHTML",Bo(3).$implicit.label,Qi)}function By(t,e){if(1&t&&(Oo(0),wo(1,jy,2,1,"span",11),wo(2,Hy,1,1,"ng-template",null,20,mc),Ao()),2&t){const t=So(3),e=Bo(2).$implicit;qs(1),xo("ngIf",!1!==e.escape)("ngIfElse",t)}}function zy(t,e){if(1&t){const t=Po();Eo(0,"a",19),Do("click",function(e){Ie(t);const n=Bo().$implicit;return Bo().itemClick(e,n)}),wo(1,My,1,1,"span",8),wo(2,By,4,2,"ng-container",9),To()}if(2&t){const t=Bo().$implicit;vo("href",t.url?t.url:null,Zi)("target",t.target)("title",t.title)("id",t.id)("tabindex",t.disabled?null:"0"),qs(1),xo("ngIf",t.icon),qs(1),xo("ngIf",t.label)}}function Vy(t,e){1&t&&Io(0,"span",10),2&t&&xo("ngClass",Bo(2).$implicit.icon)}function Uy(t,e){if(1&t&&(Eo(0,"span",13),_a(1),To()),2&t){const t=Bo(3).$implicit;qs(1),va(t.label)}}function $y(t,e){1&t&&Io(0,"span",14),2&t&&xo("innerHTML",Bo(3).$implicit.label,Qi)}function qy(t,e){if(1&t&&(Oo(0),wo(1,Uy,2,1,"span",11),wo(2,$y,1,1,"ng-template",null,21,mc),Ao()),2&t){const t=So(3),e=Bo(2).$implicit;qs(1),xo("ngIf",!1!==e.escape)("ngIfElse",t)}}function Wy(t,e){if(1&t){const t=Po();Eo(0,"a",15),Do("click",function(e){Ie(t);const n=Bo().$implicit;return Bo().itemClick(e,n)}),wo(1,Vy,1,1,"span",8),wo(2,qy,4,2,"ng-container",9),To()}if(2&t){const t=Bo().$implicit;xo("routerLink",t.routerLink)("queryParams",t.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",t.routerLinkActiveOptions||$l(16,Py))("fragment",t.fragment)("queryParamsHandling",t.queryParamsHandling)("preserveFragment",t.preserveFragment)("skipLocationChange",t.skipLocationChange)("replaceUrl",t.replaceUrl)("state",t.state),vo("target",t.target)("title",t.title)("id",t.id)("tabindex",t.disabled?null:"0"),qs(1),xo("ngIf",t.icon),qs(1),xo("ngIf",t.label)}}function Gy(t,e){1&t&&Io(0,"li",17)}const Qy=function(t){return{"p-disabled":t}};function Zy(t,e){if(1&t&&(Eo(0,"li",0),wo(1,zy,3,7,"a",18),wo(2,Wy,3,17,"a",6),To(),wo(3,Gy,1,0,"li",2)),2&t){const t=e.$implicit,n=e.last;oa(t.styleClass),xo("ngStyle",t.style)("ngClass",ql(7,Qy,t.disabled)),qs(1),xo("ngIf",!t.routerLink),qs(1),xo("ngIf",t.routerLink),qs(1),xo("ngIf",!n)}}let Ky,Yy=(()=>{class t{constructor(){this.onItemClick=new Kl}itemClick(t,e){e.disabled?t.preventDefault():(e.url||t.preventDefault(),e.command&&e.command({originalEvent:t,item:e}),this.onItemClick.emit({originalEvent:t,item:e}))}onHomeClick(t){this.home&&this.itemClick(t,this.home)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["p-breadcrumb"]],inputs:{model:"model",style:"style",styleClass:"styleClass",home:"home"},outputs:{onItemClick:"onItemClick"},decls:5,vars:7,consts:[[3,"ngStyle","ngClass"],[3,"class","ngClass","ngStyle",4,"ngIf"],["class","p-breadcrumb-chevron pi pi-chevron-right",4,"ngIf"],["ngFor","",3,"ngForOf"],[3,"ngClass","ngStyle"],["class","p-menuitem-link",3,"href","click",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click",4,"ngIf"],[1,"p-menuitem-link",3,"href","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlHomeLabel",""],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click"],["htmlHomeRouteLabel",""],[1,"p-breadcrumb-chevron","pi","pi-chevron-right"],["class","p-menuitem-link",3,"click",4,"ngIf"],[1,"p-menuitem-link",3,"click"],["htmlLabel",""],["htmlRouteLabel",""]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"ul"),wo(2,Dy,3,8,"li",1),wo(3,Fy,1,0,"li",2),wo(4,Zy,4,9,"ng-template",3),To(),To()),2&t&&(oa(e.styleClass),xo("ngStyle",e.style)("ngClass","p-breadcrumb p-component"),qs(2),xo("ngIf",e.home),qs(1),xo("ngIf",e.model&&e.home),qs(1),xo("ngForOf",e.model))},directives:[qh,jh,Vh,Bh,ey,iy],styles:[".p-breadcrumb{overflow-x:auto}.p-breadcrumb ul{margin:0;padding:0;list-style-type:none;display:flex;align-items:center;flex-wrap:nowrap}.p-breadcrumb .p-menuitem-text{line-height:1}.p-breadcrumb .p-menuitem-link{text-decoration:none}"],encapsulation:2,changeDetection:0}),t})(),Xy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh,fy],fy]}),t})();function Jy(t){return e=>e.lift(new t_(t))}class t_{constructor(t){this.total=t}call(t,e){return e.subscribe(new e_(t,this.total))}}class e_ extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}class n_{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new i_(t,this.compare,this.keySelector))}}class i_ extends f{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function s_(t){return e=>e.lift(new r_(t))}class r_{constructor(t){this.notifier=t}call(t,e){const n=new o_(t),i=j(this.notifier,new F(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class o_ extends M{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function a_(t){return null!=t&&"false"!=`${t}`}function l_(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function c_(t){return Array.isArray(t)?t:[t]}function h_(t){return null==t?"":"string"==typeof t?t:`${t}px`}function u_(t){return t instanceof qa?t.nativeElement:t}try{Ky="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fE){Ky=!1}let d_,p_,f_,m_=(()=>{class t{constructor(t){this._platformId=t,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&&!Ky)&&"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 t.\u0275fac=function(e){return new(e||t)(si(Sc))},t.\u0275prov=ct({factory:function(){return new t(si(Sc))},token:t,providedIn:"root"}),t})(),g_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})();function y_(t){return function(){if(null==d_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>d_=!0}))}finally{d_=d_||!1}return d_}()?t:!!t.capture}function __(){if(null==p_){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p_=!1,p_;if("scrollBehavior"in document.documentElement.style)p_=!0;else{const t=Element.prototype.scrollTo;p_=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p_}function v_(t){return t.composedPath?t.composedPath()[0]:t.target}class b_ extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class w_ extends b_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let S_=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class C_ extends S_{constructor(t,e=S_.now){super(t,()=>C_.delegate&&C_.delegate!==this?C_.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return C_.delegate&&C_.delegate!==this?C_.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const x_=new C_(w_);function k_(t,e=x_){return n=>n.lift(new E_(t,e))}class E_{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new T_(t,this.dueTime,this.scheduler))}}class T_ extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(I_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function I_(t){t.debouncedNext()}let O_=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})(),A_=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=u_(t);return new _(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new C,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(si(O_))},t.\u0275prov=ct({factory:function(){return new t(si(O_))},token:t,providedIn:"root"}),t})(),R_=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Kl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=a_(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=l_(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(k_(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Co(A_),Co(qa),Co(Mc))},t.\u0275dir=Wt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),P_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:[O_]}),t})();function N_(t){return 0===t.offsetX&&0===t.offsetY}function L_(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&&Element;const D_=new Bn("cdk-input-modality-detector-options"),F_={ignoreKeys:[18,17,224,91,16]},M_=y_({passive:!0,capture:!0});let j_=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new Np(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=v_(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(N_(t)?"keyboard":"mouse"),this._mostRecentTarget=v_(t))},this._onTouchstart=t=>{L_(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=v_(t))},this._options=Object.assign(Object.assign({},F_),i),this.modalityDetected=this._modality.pipe(Jy(1)),this.modalityChanged=this.modalityDetected.pipe(t=>t.lift(new n_(void 0,void 0))),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,M_),n.addEventListener("mousedown",this._onMousedown,M_),n.addEventListener("touchstart",this._onTouchstart,M_)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,M_),document.removeEventListener("mousedown",this._onMousedown,M_),document.removeEventListener("touchstart",this._onTouchstart,M_))}}return t.\u0275fac=function(e){return new(e||t)(si(m_),si(Mc),si(gh),si(D_,8))},t.\u0275prov=ct({factory:function(){return new t(si(m_),si(Mc),si(gh),si(D_,8))},token:t,providedIn:"root"}),t})();const H_=new Bn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),B_=new Bn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let z_=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);return n.classList.add(t),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}return t.\u0275fac=function(e){return new(e||t)(si(H_,8),si(Mc),si(gh),si(B_,8))},t.\u0275prov=ct({factory:function(){return new t(si(H_,8),si(Mc),si(gh),si(B_,8))},token:t,providedIn:"root"}),t})();const V_=new Bn("cdk-focus-monitor-default-options"),U_=y_({passive:!0,capture:!0});let $_=(()=>{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new C,this._rootNodeFocusAndBlurListener=t=>{const e=v_(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=u_(t);if(!this._platform.isBrowser||1!==n.nodeType)return Ru(null);const i=function(t){if(function(){if(null==f_){const t="undefined"!=typeof document?document.head:null;f_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f_}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new C,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=u_(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=u_(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=v_(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,U_),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,U_)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(s_(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,U_),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,U_),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(si(Mc),si(m_),si(j_),si(gh,8),si(V_,8))},t.\u0275prov=ct({factory:function(){return new t(si(Mc),si(m_),si(j_),si(gh,8),si(V_,8))},token:t,providedIn:"root"}),t})();const q_="cdk-high-contrast-black-on-white",W_="cdk-high-contrast-white-on-black",G_="cdk-high-contrast-active";let Q_=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(G_),t.remove(q_),t.remove(W_),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(G_),t.add(q_)):2===e&&(t.add(G_),t.add(W_))}}}return t.\u0275fac=function(e){return new(e||t)(si(m_),si(gh))},t.\u0275prov=ct({factory:function(){return new t(si(m_),si(gh))},token:t,providedIn:"root"}),t})();const Z_=new Bn("cdk-dir-doc",{providedIn:"root",factory:function(){return ri(gh)}});let K_=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Kl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(si(Z_,8))},t.\u0275prov=ct({factory:function(){return new t(si(Z_,8))},token:t,providedIn:"root"}),t})(),Y_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})();const X_=new Ya("12.1.4");class J_{}const tv="*";function ev(t,e){return{type:7,name:t,definitions:e,options:{}}}function nv(t,e=null){return{type:4,styles:e,timings:t}}function iv(t,e=null){return{type:2,steps:t,options:e}}function sv(t){return{type:6,styles:t,offset:null}}function rv(t,e,n){return{type:0,name:t,styles:e,options:n}}function ov(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function av(t){Promise.resolve(null).then(t)}class lv{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){av(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class cv{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?av(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function hv(){return"undefined"!=typeof window&&void 0!==window.document}function uv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function dv(t){switch(t.length){case 0:return new lv;case 1:return t[0];default:return new cv(t)}}function pv(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case tv:a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}h[i]=a}),i||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function fv(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&mv(n,"start",t)));break;case"done":t.onDone(()=>i(n&&mv(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&mv(n,"destroy",t)))}}function mv(t,e,n){const i=n.totalTime,s=gv(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function gv(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function yv(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function _v(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let vv=(t,e)=>!1,bv=(t,e)=>!1,wv=(t,e,n)=>[];const Sv=uv();(Sv||"undefined"!=typeof Element)&&(vv=hv()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),bv=(()=>{if(Sv||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):bv}})(),wv=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let Cv=null,xv=!1;function kv(t){Cv||(Cv=("undefined"!=typeof document?document.body:null)||{},xv=!!Cv.style&&"WebkitAppearance"in Cv.style);let e=!0;return Cv.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Cv.style,!e&&xv)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Cv.style),e}const Ev=bv,Tv=vv,Iv=wv;function Ov(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let Av=(()=>{class t{validateStyleProperty(t){return kv(t)}matchesElement(t,e){return Ev(t,e)}containsElement(t,e){return Tv(t,e)}query(t,e,n){return Iv(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new lv(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Rv{}Rv.NOOP=new Av;const Pv="ng-enter",Nv="ng-leave",Lv="ng-trigger",Dv=".ng-trigger",Fv="ng-animating",Mv=".ng-animating";function jv(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Hv(parseFloat(e[1]),e[2])}function Hv(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Bv(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Hv(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Hv(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function zv(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Vv(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else zv(t,n);return n}function Uv(t,e,n){return n?e+":"+n+";":""}function $v(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Uv(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Uv(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function qv(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Jv(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),uv()&&$v(t))}function Wv(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Jv(e);t.style[n]=""}),uv()&&$v(t))}function Gv(t){return Array.isArray(t)?1==t.length?t[0]:iv(t):t}const Qv=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zv(t){let e=[];if("string"==typeof t){let n;for(;n=Qv.exec(t);)e.push(n[1]);Qv.lastIndex=0}return e}function Kv(t,e,n){const i=t.toString(),s=i.replace(Qv,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function Yv(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Xv=/-+([a-z0-9])/g;function Jv(t){return t.replace(Xv,(...t)=>t[1].toUpperCase())}function tb(t,e){return 0===t||0===e}function eb(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach(function(e){n[e]=ib(t,e)})}}return e}function nb(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function ib(t,e){return window.getComputedStyle(t)[e]}const sb="*";function rb(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(lb(s,o)),"<"!=r[0]||s==sb&&o==sb||e.push(lb(o,s))}(t,n,e)):n.push(t),n}const ob=new Set(["true","1"]),ab=new Set(["false","0"]);function lb(t,e){const n=ob.has(t)||ab.has(t),i=ob.has(e)||ab.has(e);return(s,r)=>{let o=t==sb||t==s,a=e==sb||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?ob.has(t):ab.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?ob.has(e):ab.has(e)),o&&a}}const cb=new RegExp("s*:selfs*,?","g");function hb(t,e,n){return new ub(t).build(e,n)}class ub{constructor(t){this._driver=t}build(t,e){const n=new db(e);return this._resetContextStyleTimingState(n),nb(this,Gv(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(pb(t)){const e=t;Object.keys(e).forEach(t=>{Zv(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Yv(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=nb(this,Gv(t.animation),e);return{type:1,matchers:rb(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:fb(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>nb(this,t,e)),options:fb(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=nb(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:fb(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return mb(Bv(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=mb(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Bv(i,e),mb(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:sv({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=sv(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==tv?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(pb(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.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 "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Zv(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(pb(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(pb(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,i)=>{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:nb(this,Gv(t.animation),e),options:fb(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:fb(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:fb(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(cb,"")),[t=t.replace(/@\*/g,Dv).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Mv),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,yv(e.collectedStyles,e.currentQuerySelector,{});const o=nb(this,Gv(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:fb(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Bv(t.timings,e.errors,!0);return{type:12,animation:nb(this,Gv(t.animation),e),timings:n,options:null}}}class db{constructor(t){this.errors=t,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 pb(t){return!Array.isArray(t)&&"object"==typeof t}function fb(t){var e;return t?(t=zv(t)).params&&(t.params=(e=t.params)?zv(e):null):t={},t}function mb(t,e,n){return{duration:t,delay:e,easing:n}}function gb(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class yb{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const _b=new RegExp(":enter","g"),vb=new RegExp(":leave","g");function bb(t,e,n,i,s,r={},o={},a,l,c=[]){return(new wb).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class wb{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new yb;const h=new Cb(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),nb(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[gb(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?jv(n.duration):null,r=null!=n.delay?jv(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),nb(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Sb);const t=jv(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>nb(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?jv(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),nb(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Bv(e.params?Kv(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?jv(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Sb);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),nb(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;nb(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Sb={};class Cb{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Sb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new xb(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=jv(n.duration)),null!=n.delay&&(i.delay=jv(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Kv(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new Cb(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Sb,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new kb(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(_b,"."+this._enterClassName)).replace(vb,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class xb{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new xb(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||tv,this._currentKeyframe[t]=tv}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=tv})):Vv(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Kv(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:tv),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=Vv(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==tv&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Yv(t.values()):[],r=e.size?Yv(e.values()):[];if(n){const t=i[0],e=zv(t);t.offset=0,e.offset=1,i=[t,e]}return gb(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class kb extends xb{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=Vv(t[0],!1);a.offset=0,s.push(a);const l=Vv(t[0],!1);l.offset=Eb(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Vv(t[i],!1);o.offset=Eb((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return gb(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Eb(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Tb{}class Ib extends Tb{normalizePropertyName(t,e){return Jv(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Ob[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const Ob=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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 Ab(t,e,n,i,s,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Rb={};class Pb{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Rb,d=this.buildStyles(n,o&&o.params||Rb,h),p=a&&a.params||Rb,f=this.buildStyles(i,p,h),m=new Set,g=new Map,y=new Map,_="void"===i,v={params:Object.assign(Object.assign({},u),p)},b=c?[]:bb(t,e,this.ast.animation,s,r,d,f,v,l,h);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Ab(e,this._triggerName,n,i,_,d,f,[],[],g,y,w,h);b.forEach(t=>{const n=t.element,i=yv(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=yv(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const S=Yv(m.values());return Ab(e,this._triggerName,n,i,_,d,f,b,S,g,y,w)}}class Nb{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=zv(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Kv(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Lb{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Nb(t.style,t.options&&t.options.params||{},n)}),Db(this.states,"true","1"),Db(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Pb(t,e,this.states))}),this.fallbackTransition=new Pb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Db(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Fb=new yb;class Mb{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=hb(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=pv(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=bb(this._driver,e,s,Pv,Nv,{},{},n,Fb,i),r.forEach(t=>{const e=yv(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,tv)})});const a=dv(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=gv(e,"","","");return fv(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const jb="ng-animate-queued",Hb="ng-animate-disabled",Bb=".ng-animate-disabled",zb=[],Vb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ub={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class $b{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=zv(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const qb="void",Wb=new $b(qb);class Gb{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,tw(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=yv(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=yv(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(tw(t,Lv),tw(t,"ng-trigger-"+e),a[e]=Wb),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Zb(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(tw(t,Lv),tw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new $b(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Wb),l.value!==qb&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Wv(t,n),qv(t,i)})}return}const c=yv(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(tw(t,jb),r.onStart(()=>{ew(t,jb)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,Dv,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,qb,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&dv(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Wb,a=new $b(qb),l=new Zb(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Vb||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){tw(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=gv(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,fv(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Qb{constructor(t,e,n){this.bodyNode=t,this.driver=e,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Gb(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Kb(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Kb(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),tw(t,Hb)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ew(t,Hb))}removeNode(t,e,n,i){if(Kb(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Kb(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Dv,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Mv,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return dv(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Vb,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Bb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Bb,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)tw(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}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(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?dv(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new yb,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=Jb(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=Pv+f++;p.set(e,n),t.forEach(t=>tw(t,n))});const m=[],g=new Set,y=new Set;for(let A=0;A<this.collectedLeaveElements.length;A++){const t=this.collectedLeaveElements[A],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):y.add(t))}const _=new Map,v=Jb(u,Array.from(g));v.forEach((t,e)=>{const n=Nv+f++;_.set(e,n),t.forEach(t=>tw(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>ew(t,n))}),v.forEach((t,e)=>{const n=_.get(e);t.forEach(t=>ew(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),u=_.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Wv(s,f.fromStyles)),e.onDestroy(()=>qv(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Wv(s,f.fromStyles)),e.onDestroy(()=>qv(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>yv(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,C=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{yv(S,e,[]).push(t),t.destroy()})});const x=m.filter(t=>sw(t,a,l)),k=new Map;Xb(k,this.driver,y,l,tv).forEach(t=>{sw(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{Xb(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>qv(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=O;if(C.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>C.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,S,s,E,k);if(r.setRealPlayer(n),t===O)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=dv(e)),i.push(r)}}else Wv(e,o.fromStyles),r.onDestroy(()=>qv(e,o.toStyles)),I.push(r),c.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=dv(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A<m.length;A++){const t=m[A],e=t.__ng_removed;if(ew(t,Nv),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,Mv,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?nw(this,t,i):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==qb;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=yv(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Wv(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new lv(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return iw(t,e),e}((n.get(u)||zb).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=s.get(u),g=r.get(u),y=pv(0,this._normalizer,0,e.keyframes,m,g),_=this._buildPlayer(e,y,f);if(e.subTimeline&&i&&h.add(u),p){const e=new Zb(t,o,u);e.setRealPlayer(_),l.push(e)}return _});l.forEach(t=>{yv(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>tw(t,Fv));const d=dv(u);return d.onDestroy(()=>{c.forEach(t=>ew(t,Fv)),qv(a,e.toStyles)}),h.forEach(t=>{yv(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new lv(t.duration,t.delay)}}class Zb{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new lv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>fv(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){yv(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Kb(t){return t&&1===t.nodeType}function Yb(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xb(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Yb(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=Ub,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Yb(t,r[a++])),o}function Jb(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function tw(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function ew(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function nw(t,e,n){dv(n).onDone(()=>t.processLeaveNode(e))}function iw(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof cv?iw(i.players,e):e.push(i)}}function sw(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class rw{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Qb(t,e,n),this._timelineEngine=new Mb(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=hb(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Lb(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=_v(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=_v(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ow(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=lw(e[0]),e.length>1&&(i=lw(e[e.length-1]))):e&&(n=lw(e)),n||i?new aw(t,n,i):null}class aw{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=aw.initialStylesByElement.get(t);i||aw.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&qv(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(qv(this._element,this._initialStyles),this._endStyles&&(qv(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(aw.initialStylesByElement.delete(this._element),this._startStyles&&(Wv(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wv(this._element,this._endStyles),this._endStyles=null),qv(this._element,this._initialStyles),this._state=3)}}function lw(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];cw(s)&&(e=e||{},e[s]=t[s])}return e}function cw(t){return"display"===t||"position"===t}aw.initialStylesByElement=new WeakMap;const hw="animation",uw="animationend";class dw{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=_w(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),yw(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),gw(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){pw(this._element,this._name,"paused")}resume(){pw(this._element,this._name,"running")}setPosition(t){const e=fw(this._element,this._name);this._position=t*this._duration,yw(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),gw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=_w(t,"").split(","),i=mw(n,e);i>=0&&(n.splice(i,1),yw(t,"",n.join(",")))}(this._element,this._name))}}function pw(t,e,n){yw(t,"PlayState",n,fw(t,e))}function fw(t,e){const n=_w(t,"");return n.indexOf(",")>0?mw(n.split(","),e):mw([n],e)}function mw(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function gw(t,e,n){n?t.removeEventListener(uw,e):t.addEventListener(uw,e)}function yw(t,e,n,i){const s=hw+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function _w(t,e){return t.style[hw+e]||""}class vw{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new dw(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:ib(this.element,n))})}this.currentSnapshot=t}}class bw extends lv{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Ov(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ww{constructor(){this._count=0}validateStyleProperty(t){return kv(t)}matchesElement(t,e){return Ev(t,e)}containsElement(t,e){return Tv(t,e)}query(t,e,n){return Iv(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Ov(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof vw),l={};tb(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=eb(t,e,l));if(0==n)return new bw(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(u);const d=ow(t,e),p=new vw(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class Sw{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:ib(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Cw{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xw().toString()),this._cssKeyframesDriver=new ww}validateStyleProperty(t){return kv(t)}matchesElement(t,e){return Ev(t,e)}containsElement(t,e){return Tv(t,e)}query(t,e,n){return Iv(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof Sw);tb(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ow(t,e=eb(t,e=e.map(t=>Vv(t,!1)),l));return new Sw(t,e,a,h)}}function xw(){return hv()&&Element.prototype.animate||{}}let kw=(()=>{class t extends J_{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:xt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?iv(t):t;return Iw(this._renderer,null,e,"register",[n]),new Ew(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(si(Ga),si(gh))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Ew extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Tw(this._id,t,e||{},this._renderer)}}class Tw{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Iw(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Iw(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Ow="@",Aw="@.disabled";let Rw=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pw("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Nw(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,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 t.\u0275fac=function(e){return new(e||t)(si(Ga),si(rw),si(Mc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Pw{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Ow&&e==Aw?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Nw extends Pw{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ow?"."==e.charAt(1)&&e==Aw?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Ow){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return s.charAt(0)!=Ow&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Lw=(()=>{class t extends rw{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(si(gh),si(Rv),si(Tb))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Dw=new Bn("AnimationModuleType"),Fw=[{provide:J_,useClass:kw},{provide:Tb,useFactory:function(){return new Ib}},{provide:rw,useClass:Lw},{provide:Ga,useFactory:function(t,e,n){return new Rw(t,e,n)},deps:[mu,rw,Mc]}],Mw=[{provide:Rv,useFactory:function(){return"function"==typeof xw()?new Cw:new ww}},{provide:Dw,useValue:"BrowserAnimations"},...Fw],jw=[{provide:Rv,useClass:Av},{provide:Dw,useValue:"NoopAnimations"},...Fw];let Hw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?jw:Mw}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:Mw,imports:[Au]}),t})();const Bw=new Ya("12.1.4"),zw=new Bn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Vw,Uw=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Yc()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Bw.full!==X_.full&&console.warn("The Angular Material version ("+Bw.full+") does not match the Angular CDK version ("+X_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(si(Q_),si(zw,8),si(gh))},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Y_],Y_]}),t})();function $w(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=a_(t)}}}function qw(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function Ww(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=a_(t)}}}function Gw(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?l_(t):this.defaultTabIndex}}}try{Vw="undefined"!=typeof Intl}catch(fE){Vw=!1}let Qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Uw],Uw]}),t})();class Zw{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Kw={enterDuration:225,exitDuration:150},Yw=y_({passive:!0}),Xw=["mousedown","touchstart"],Jw=["mouseup","mouseleave","touchend","touchcancel"];class tS{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=u_(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Kw),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Zw(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},Kw),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=u_(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Xw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Jw),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=N_(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!L_(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Yw)})})}_removeTriggerEvents(){this._triggerElement&&(Xw.forEach(t=>{this._triggerElement.removeEventListener(t,this,Yw)}),this._pointerUpEventsRegistered&&Jw.forEach(t=>{this._triggerElement.removeEventListener(t,this,Yw)}))}}const eS=new Bn("mat-ripple-global-options");let nS=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new tS(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(Mc),Co(m_),Co(eS,8),Co(Dw,8))},t.\u0275dir=Wt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&sa("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),iS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Uw,g_],Uw]}),t})();const sS=["*"],rS=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n";class oS{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new aS(this.rowIndex,e)}_findMatchingGap(t){let e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)))}while(n-e<t||0==n);return Math.max(e,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)}_findGapEndIndex(t){for(let e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length}_markTilePosition(t,e){for(let n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan}}class aS{constructor(t,e){this.row=t,this.col=e}}const lS=new Bn("MAT_GRID_LIST");let cS=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(l_(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(l_(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(lS,8))},t.\u0275cmp=Bt({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&vo("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:sS,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(t,e){1&t&&(Vo(),Eo(0,"div",0),Uo(1),To())},styles:[rS],encapsulation:2,changeDetection:0}),t})();const hS=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class uS{constructor(){this._rows=0,this._rowspan=0}init(t,e,n,i){this._gutterSize=gS(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=i}getBaseTileSize(t,e){return`(${t}% - (${this._gutterSize} * ${e}))`}getTilePosition(t,e){return 0===e?"0":mS(`(${t} + ${this._gutterSize}) * ${e}`)}getTileSize(t,e){return`(${t} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(t,e,n){let i=100/this._cols,s=(this._cols-1)/this._cols;this.setColStyles(t,n,i,s),this.setRowStyles(t,e,i,s)}setColStyles(t,e,n,i){let s=this.getBaseTileSize(n,i);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(s,e)),t._setStyle("width",mS(this.getTileSize(s,t.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(t){return`${this._rowspan} * ${this.getTileSize(t,1)}`}getComputedHeight(){return null}}class dS extends uS{constructor(t){super(),this.fixedRowHeight=t}init(t,e,n,i){super.init(t,e,n,i),this.fixedRowHeight=gS(this.fixedRowHeight),hS.test(this.fixedRowHeight)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",mS(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",mS(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class pS extends uS{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",mS(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",mS(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class fS extends uS{setRowStyles(t,e){let n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",mS(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function mS(t){return`calc(${t})`}function gS(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let yS=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(l_(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new fS:t&&t.indexOf(":")>-1?new pS(t):new dS(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new oS);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,n),e.forEach((e,n)=>{const i=t.positions[n];this._tileStyler.setStyle(e,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co(K_,8))},t.\u0275cmp=Bt({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){if(1&t&&hc(n,cS,5),2&t){let t;lc(t=uc())&&(e._tiles=t)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&vo("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[ja([{provide:lS,useExisting:t}])],ngContentSelectors:sS,decls:2,vars:0,template:function(t,e){1&t&&(Vo(),Eo(0,"div"),Uo(1),To())},styles:[rS],encapsulation:2,changeDetection:0}),t})(),_S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Qw,Uw],Qw,Uw]}),t})();const vS=new Bn("NgValueAccessor"),bS=["thumbContainer"],wS=["toggleBar"],SS=["input"],CS=function(t){return{enterDuration:t}},xS=["*"],kS=new Bn("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let ES=0;const TS={provide:vS,useExisting:it(()=>AS),multi:!0};class IS{constructor(t,e){this.source=t,this.checked=e}}const OS=Gw(qw(Ww($w(class{constructor(t){this._elementRef=t}}))));let AS=(()=>{class t extends OS{constructor(t,e,n,i,s,r){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=s,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++ES,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new Kl,this.toggleChange=new Kl,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===r}get required(){return this._required}set required(t){this._required=a_(t)}get checked(){return this._checked}set checked(t){this._checked=a_(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new IS(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co($_),Co(yl),Mn("tabindex"),Co(kS),Co(Dw,8))},t.\u0275cmp=Bt({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(cc(bS,5),cc(wS,5),cc(SS,5)),2&t){let t;lc(t=uc())&&(e._thumbEl=t.first),lc(t=uc())&&(e._thumbBarEl=t.first),lc(t=uc())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(wa("id",e.id),vo("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),sa("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[ja([TS]),so],ngContentSelectors:xS,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Vo(),Eo(0,"label",0,1),Eo(2,"div",2,3),Eo(4,"input",4,5),Do("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),To(),Eo(6,"div",6,7),Io(8,"div",8),Eo(9,"div",9),Io(10,"div",10),To(),To(),To(),Eo(11,"span",11,12),Do("cdkObserveContent",function(){return e._onLabelTextChange()}),Eo(13,"span",13),_a(14,"\xa0"),To(),Uo(15),To(),To()),2&t){const t=So(1),n=So(12);vo("for",e.inputId),qs(2),sa("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),qs(2),xo("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),vo("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),qs(5),xo("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",ql(17,CS,e._noopAnimations?0:150))}},directives:[nS,R_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),RS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})(),PS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[RS,iS,Uw,P_],RS,Uw]}),t})();function NS(t,e,n,s){return i(n)&&(s=n,n=void 0),s?NS(t,e,n).pipe(E(t=>l(t)?s(...t):s(t))):new _(i=>{LS(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function LS(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r<o;r++)LS(t[r],e,n,i,s)}i.add(r)}new class extends C_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends w_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let DS=1;const FS=Promise.resolve(),MS={};function jS(t){return t in MS&&(delete MS[t],!0)}const HS={setImmediate(t){const e=DS++;return MS[e]=!0,FS.then(()=>jS(e)&&t()),e},clearImmediate(t){jS(t)}};new class extends C_{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends w_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=HS.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(HS.clearImmediate(e),t.scheduled=void 0)}});class BS{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new zS(t,this.durationSelector))}}class zS extends M{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=j(n,new F(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function VS(t){return!l(t)&&t-parseFloat(t)+1>=0}function US(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function $S(t,e=x_){return n=()=>function(t=0,e,n){let i=-1;return VS(e)?i=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=x_),new _(e=>{const s=VS(t)?t:+t-n.now();return n.schedule(US,s,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new BS(n))};var n}new class extends C_{}(class extends w_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}});class qS{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Ru(this.value);case"E":return t=this.error,new _(e=>e.error(t));case"C":return $p()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new qS("N",t):qS.undefinedValueNotification}static createError(t){return new qS("E",void 0,t)}static createComplete(){return qS.completeNotification}}qS.completeNotification=new qS("C"),qS.undefinedValueNotification=new qS("N",void 0);let WS=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe($S(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ru()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Nu(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=u_(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>NS(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(si(Mc),si(m_),si(gh,8))},t.\u0275prov=ct({factory:function(){return new t(si(Mc),si(m_),si(gh,8))},token:t,providedIn:"root"}),t})(),GS=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new C,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe($S(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(si(m_),si(Mc),si(gh,8))},t.\u0275prov=ct({factory:function(){return new t(si(m_),si(Mc),si(gh,8))},token:t,providedIn:"root"}),t})(),QS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})(),ZS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Y_,g_,QS],Y_,QS]}),t})();class KS{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class YS extends KS{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class XS extends KS{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class JS extends KS{constructor(t){super(),this.element=t instanceof qa?t.nativeElement:t}}class tC{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof YS?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof XS?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof JS?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class eC extends tC{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let nC=(()=>{class t extends tC{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Kl,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Co(za),Co(Ol),Co(gh))},t.\u0275dir=Wt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[so]}),t})(),iC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})();const sC=__();class rC{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=h_(-this._previousScrollPosition.left),t.style.top=h_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),sC&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sC&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class oC{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class aC{enable(){}disable(){}attach(){}}function lC(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function cC(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class hC{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();lC(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let uC=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new aC,this.close=t=>new oC(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new rC(this._viewportRuler,this._document),this.reposition=t=>new hC(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(si(WS),si(GS),si(Mc),si(gh))},t.\u0275prov=ct({factory:function(){return new t(si(WS),si(GS),si(Mc),si(gh))},token:t,providedIn:"root"}),t})();class dC{constructor(t){if(this.scrollStrategy=new aC,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class pC{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class fC{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let mC=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({factory:function(){return new t(si(gh))},token:t,providedIn:"root"}),t})(),gC=(()=>{class t extends mC{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(si(gh))},t.\u0275prov=ct({factory:function(){return new t(si(gh))},token:t,providedIn:"root"}),t})(),yC=(()=>{class t extends mC{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=v_(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(si(gh),si(m_))},t.\u0275prov=ct({factory:function(){return new t(si(gh),si(m_))},token:t,providedIn:"root"}),t})();const _C="undefined"!=typeof window?window:{},vC=void 0!==_C.__karma__&&!!_C.__karma__||void 0!==_C.jasmine&&!!_C.jasmine||void 0!==_C.jest&&!!_C.jest||void 0!==_C.Mocha&&!!_C.Mocha;let bC=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||vC){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 e=this._document.createElement("div");e.classList.add(t),vC?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(si(gh),si(m_))},t.\u0275prov=ct({factory:function(){return new t(si(gh),si(m_))},token:t,providedIn:"root"}),t})();class wC{constructor(t,e,n,i,s,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new C,this._attachments=new C,this._detachments=new C,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new C,this._outsidePointerEvents=new C,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Kp(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=h_(this._config.width),t.height=h_(this._config.height),t.minWidth=h_(this._config.minWidth),t.minHeight=h_(this._config.minHeight),t.maxWidth=h_(this._config.maxWidth),t.maxHeight=h_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;c_(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(s_($(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const SC="cdk-overlay-connected-position-bounding-box",CC=/([A-Za-z%]+)$/;class xC{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(SC),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&kC(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(SC),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=TC(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,h=o+s.height-n.height,u=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,h),p=u*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:u==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=EC(this._overlayRef.getConfig().minHeight),o=EC(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=TC(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,h=0;return c=i.width<=s.width?l||-r:t.x<this._viewportMargin?s.left-n.left-t.x:0,h=i.height<=s.height?a||-o:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:c,y:h},{x:t.x+c,y:t.y+h}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new fC(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=h_(n.height),i.top=h_(n.top),i.bottom=h_(n.bottom),i.width=h_(n.width),i.left=h_(n.left),i.right=h_(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=h_(t)),s&&(i.maxWidth=h_(s))}this._lastBoundingBoxSize=n,kC(this._boundingBox.style,i)}_resetBoundingBoxStyles(){kC(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){kC(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();kC(n,this._getExactOverlayY(e,t,i)),kC(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=h_(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=h_(r.maxWidth):s&&(n.maxWidth="")),kC(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=h_(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=h_(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:cC(t,n),isOriginOutsideView:lC(t,n),isOverlayClipped:cC(e,n),isOverlayOutsideView:lC(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&c_(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof qa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function kC(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function EC(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(CC);return n&&"px"!==n?null:parseFloat(e)}return t||null}function TC(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class IC{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new xC(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new pC(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const OC="cdk-global-overlay-wrapper";class AC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(OC),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(OC),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let RC=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new AC}connectedTo(t,e,n){return new IC(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new xC(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(si(GS),si(gh),si(m_),si(bC))},t.\u0275prov=ct({factory:function(){return new t(si(GS),si(gh),si(m_),si(bC))},token:t,providedIn:"root"}),t})(),PC=0,NC=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new dC(t);return s.direction=s.direction||this._directionality.value,new wC(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+PC++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(sh)),new eC(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(si(uC),si(bC),si(za),si(RC),si(gC),si(no),si(Mc),si(gh),si(K_),si(Rh),si(yC))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const LC={provide:new Bn("cdk-connected-overlay-scroll-strategy"),deps:[NC],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let DC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({providers:[NC,LC],imports:[[Y_,iC,ZS],ZS]}),t})();const FC=["mat-button",""],MC=["*"],jC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],HC=qw($w(Ww(class{constructor(t){this._elementRef=t}})));let BC=(()=>{class t extends HC{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of jC)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(Co(qa),Co($_),Co(Dw,8))},t.\u0275cmp=Bt({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&cc(nS,5),2&t){let t;lc(t=uc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("disabled",e.disabled||null),sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[so],attrs:FC,ngContentSelectors:MC,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Vo(),Eo(0,"span",0),Uo(1),To(),Io(2,"span",1),Io(3,"span",2)),2&t&&(qs(2),sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),xo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[nS],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),zC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[iS,Uw],Uw]}),t})();const VC=new Set;let UC,$C=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qC}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!VC.has(t))try{UC||(UC=document.createElement("style"),UC.setAttribute("type","text/css"),document.head.appendChild(UC)),UC.sheet&&(UC.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),VC.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(si(m_))},t.\u0275prov=ct({factory:function(){return new t(si(m_))},token:t,providedIn:"root"}),t})();function qC(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let WC=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new C}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return GC(c_(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=jp(GC(c_(t)).map(t=>this._registerQuery(t).observable));return e=Vp(e.pipe(Kp(1)),e.pipe(Jy(1),k_(0))),e.pipe(E(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new _(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Jp(e),E(({matches:e})=>({query:t,matches:e})),s_(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(si($C),si(Mc))},t.\u0275prov=ct({factory:function(){return new t(si($C),si(Mc))},token:t,providedIn:"root"}),t})();function GC(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function QC(t,e){if(1&t){const t=Po();Eo(0,"div",1),Eo(1,"button",2),Do("click",function(){return Ie(t),Bo().action()}),_a(2),To(),To()}if(2&t){const t=Bo();qs(2),va(t.data.action)}}function ZC(t,e){}const KC=new Bn("MatSnackBarData");class YC{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const XC=Math.pow(2,31)-1;class JC{constructor(t,e){this._overlayRef=e,this._afterDismissed=new C,this._afterOpened=new C,this._onAction=new C,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,XC))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let tx=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(Co(JC),Co(KC))},t.\u0275cmp=Bt({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(Eo(0,"span"),_a(1),To(),wo(2,QC,3,1,"div",0)),2&t&&(qs(1),va(e.data.message),qs(1),xo("ngIf",e.hasAction))},directives:[Vh,BC],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const ex={snackBarState:ev("state",[rv("void, hidden",sv({transform:"scale(0.8)",opacity:0})),rv("visible",sv({transform:"scale(1)",opacity:1})),ov("* => visible",nv("150ms cubic-bezier(0, 0, 0.2, 1)")),ov("* => void, * => hidden",nv("75ms cubic-bezier(0.4, 0.0, 1, 1)",sv({opacity:0})))])};let nx=(()=>{class t extends tC{constructor(t,e,n,i,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C,this._onExit=new C,this._onEnter=new C,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Kp(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Mc),Co(qa),Co(yl),Co(m_),Co(YC))},t.\u0275cmp=Bt({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&cc(nC,7),2&t){let t;lc(t=uc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&Fo("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&Sa("@state",e._animationState)},features:[so],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(Eo(0,"div",0),wo(1,ZC,0,0,"ng-template",1),To(),Io(2,"div")),2&t&&(qs(2),vo("aria-live",e._live)("role",e._role))},directives:[nC],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[ex.snackBarState]}}),t})(),ix=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[DC,iC,Gh,zC,Uw],Uw]}),t})();const sx=new Bn("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new YC}});let rx=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=tx,this.snackBarContainerComponent=nx,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=no.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:YC,useValue:e}]}),i=new YS(this.snackBarContainerComponent,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new YC),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),r=new JC(s,i);if(t instanceof Sl){const e=new XS(t,null,{$implicit:n.data,snackBarRef:r});r.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(n,r),i=new YS(t,void 0,e),o=s.attachComponentPortal(i);r.instance=o.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(s_(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(r,n),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){const e=new dC;e.direction=t.direction;let n=this._overlay.position().global();const i="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return no.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:JC,useValue:e},{provide:KC,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(si(NC),si(z_),si(no),si(WC),si(t,12),si(sx))},t.\u0275prov=ct({factory:function(){return new t(si(NC),si(z_),si(zr),si(WC),si(t,12),si(sx))},token:t,providedIn:ix}),t})();function ox(t){return(ox="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ax(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){ax(t,e,n[e])})}return t}function cx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(l){s=!0,r=l}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var hx={},ux={};try{"undefined"!=typeof window&&(hx=window),"undefined"!=typeof document&&(ux=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(mE){}var dx=(hx.navigator||{}).userAgent,px=void 0===dx?"":dx,fx=hx,mx=ux,gx=!!mx.documentElement&&!!mx.head&&"function"==typeof mx.addEventListener&&"function"==typeof mx.createElement,yx=(~px.indexOf("MSIE")||px.indexOf("Trident/"),"svg-inline--fa"),_x=[1,2,3,4,5,6,7,8,9,10],vx=_x.concat([11,12,13,14,15,16,17,18,19,20]),bx={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},wx=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",bx.GROUP,bx.SWAP_OPACITY,bx.PRIMARY,bx.SECONDARY].concat(_x.map(function(t){return"".concat(t,"x")})).concat(vx.map(function(t){return"w-".concat(t)})),fx.FontAwesomeConfig||{});mx&&"function"==typeof mx.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=cx(t,2),n=e[1],i=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=mx.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e[0]));null!=i&&(wx[n]=i)});var Sx=lx({},{familyPrefix:"fa",replacementClass:yx,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},wx);Sx.autoReplaceSvg||(Sx.observeMutations=!1);var Cx=lx({},Sx);fx.FontAwesomeConfig=Cx;var xx=fx||{};xx.___FONT_AWESOME___||(xx.___FONT_AWESOME___={}),xx.___FONT_AWESOME___.styles||(xx.___FONT_AWESOME___.styles={}),xx.___FONT_AWESOME___.hooks||(xx.___FONT_AWESOME___.hooks={}),xx.___FONT_AWESOME___.shims||(xx.___FONT_AWESOME___.shims=[]);var kx=xx.___FONT_AWESOME___,Ex=[];gx&&((mx.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(mx.readyState)||mx.addEventListener("DOMContentLoaded",function t(){mx.removeEventListener("DOMContentLoaded",t),Ex.map(function(t){return t()})}));var Tx,Ix="pending",Ox="settled",Ax="fulfilled",Rx="rejected",Px=function(){},Nx="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,Lx="undefined"==typeof setImmediate?setTimeout:setImmediate,Dx=[];function Fx(){for(var t=0;t<Dx.length;t++)Dx[t][0](Dx[t][1]);Dx=[],Tx=!1}function Mx(t,e){Dx.push([t,e]),Tx||(Tx=!0,Lx(Fx,0))}function jx(t){var e=t.owner,n=e._state,i=e._data,s=t[n],r=t.then;if("function"==typeof s){n=Ax;try{i=s(i)}catch(mE){Vx(r,mE)}}Hx(r,i)||(n===Ax&&Bx(r,i),n===Rx&&Vx(r,i))}function Hx(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===ox(e))){var i=e.then;if("function"==typeof i)return i.call(e,function(i){n||(n=!0,e===i?zx(t,i):Bx(t,i))},function(e){n||(n=!0,Vx(t,e))}),!0}}catch(mE){return n||Vx(t,mE),!0}return!1}function Bx(t,e){t!==e&&Hx(t,e)||zx(t,e)}function zx(t,e){t._state===Ix&&(t._state=Ox,t._data=e,Mx($x,t))}function Vx(t,e){t._state===Ix&&(t._state=Ox,t._data=e,Mx(qx,t))}function Ux(t){t._then=t._then.forEach(jx)}function $x(t){t._state=Ax,Ux(t)}function qx(t){t._state=Rx,Ux(t),!t._handled&&Nx&&global.process.emit("unhandledRejection",t._data,t)}function Wx(t){global.process.emit("rejectionHandled",t)}function Gx(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof Gx==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){Vx(e,t)}try{t(function(t){Bx(e,t)},n)}catch(mE){n(mE)}}(t,this)}Gx.prototype={constructor:Gx,_state:Ix,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(Px),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===Rx&&Nx&&Mx(Wx,this)),this._state===Ax||this._state===Rx?Mx(jx,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},Gx.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new Gx(function(e,n){var i=[],s=0;function r(t){return s++,function(n){i[t]=n,--s||e(i)}}for(var o,a=0;a<t.length;a++)(o=t[a])&&"function"==typeof o.then?o.then(r(a),n):i[a]=o;s||e(i)})},Gx.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new Gx(function(e,n){for(var i,s=0;s<t.length;s++)(i=t[s])&&"function"==typeof i.then?i.then(e,n):e(i)})},Gx.resolve=function(t){return t&&"object"===ox(t)&&t.constructor===Gx?t:new Gx(function(e){e(t)})},Gx.reject=function(t){return new Gx(function(e,n){n(t)})};var Qx={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Zx(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Kx(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Yx(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function Xx(t){return t.size!==Qx.size||t.x!==Qx.x||t.y!==Qx.y||t.rotate!==Qx.rotate||t.flipX||t.flipY}function Jx(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},s="translate(".concat(32*e.x,", ").concat(32*e.y,") "),r="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(s," ").concat(r," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var tk={x:0,y:0,width:"100%",height:"100%"};function ek(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function nk(t){var e=t.icons,n=e.main,i=e.mask,s=t.prefix,r=t.iconName,o=t.transform,a=t.symbol,l=t.title,c=t.maskId,h=t.titleId,u=t.extra,d=t.watchable,p=void 0!==d&&d,f=i.found?i:n,m=f.width,g=f.height,y="fak"===s,_=y?"":"fa-w-".concat(Math.ceil(m/g*16)),v=[Cx.replacementClass,r?"".concat(Cx.familyPrefix,"-").concat(r):"",_].filter(function(t){return-1===u.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(u.classes).join(" "),b={children:[],attributes:lx({},u.attributes,{"data-prefix":s,"data-icon":r,class:v,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~u.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};p&&(b.attributes["data-fa-i2svg"]=""),l&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(h||Zx())},children:[l]});var S=lx({},b,{prefix:s,iconName:r,main:n,mask:i,maskId:c,transform:o,symbol:a,styles:lx({},w,u.styles)}),C=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,s=t.main,r=t.mask,o=t.maskId,a=s.icon,l=r.icon,c=Jx({transform:t.transform,containerWidth:r.width,iconWidth:s.width}),h={tag:"rect",attributes:lx({},tk,{fill:"white"})},u=a.children?{children:a.children.map(ek)}:{},d={tag:"g",attributes:lx({},c.inner),children:[ek(lx({tag:a.tag,attributes:lx({},a.attributes,c.path)},u))]},p={tag:"g",attributes:lx({},c.outer),children:[d]},f="mask-".concat(o||Zx()),m="clip-".concat(o||Zx()),g={tag:"mask",attributes:lx({},tk,{id:f,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,p]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:(e=l,"g"===e.tag?e.children:[e])},g]};return n.push(y,{tag:"rect",attributes:lx({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(f,")")},tk)}),{children:n,attributes:i}}(S):function(t){var e=t.children,n=t.attributes,i=t.main,s=t.transform,r=Yx(t.styles);if(r.length>0&&(n.style=r),Xx(s)){var o=Jx({transform:s,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:lx({},o.outer),children:[{tag:"g",attributes:lx({},o.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:lx({},i.icon.attributes,o.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(S),x=C.attributes;return S.children=C.children,S.attributes=x,a?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:lx({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(Cx.familyPrefix,"-").concat(e):i}),children:n}]}]}(S):function(t){var e=t.children,n=t.main,i=t.mask,s=t.attributes,r=t.styles,o=t.transform;if(Xx(o)&&n.found&&!i.found){var a={x:n.width/n.height/2,y:.5};s.style=Yx(lx({},r,{"transform-origin":"".concat(a.x+o.x/16,"em ").concat(a.y+o.y/16,"em")}))}return[{tag:"svg",attributes:s,children:e}]}(S)}var ik=function(t,e,n,i){var s,r,o,a=Object.keys(t),l=a.length,c=void 0!==i?function(t,e){return function(n,i,s,r){return t.call(e,n,i,s,r)}}(e,i):e;for(void 0===n?(s=1,o=t[a[0]]):(s=0,o=n);s<l;s++)o=c(o,t[r=a[s]],r,t);return o};function sk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,s=void 0!==i&&i,r=Object.keys(e).reduce(function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t},{});"function"!=typeof kx.hooks.addPack||s?kx.styles[t]=lx({},kx.styles[t]||{},r):kx.hooks.addPack(t,r),"fas"===t&&sk("fa",e)}var rk=kx.styles,ok=kx.shims,ak=function(){var t=function(t){return ik(rk,function(e,n,i){return e[i]=ik(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in rk;ik(ok,function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t},{})};function lk(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function ck(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,s=t.children,r=void 0===s?[]:s;return"string"==typeof t?Kx(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(Kx(t[n]),'" ')},"").trim()}(i),">").concat(r.map(ck).join(""),"</").concat(e,">")}function hk(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}ak(),(hk.prototype=Object.create(Error.prototype)).constructor=hk;var uk={fill:"currentColor"},dk={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},pk=(lx({},uk,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),lx({},dk,{attributeName:"opacity"}));function fk(t){var e=t[0],n=t[1],i=cx(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(Cx.familyPrefix,"-").concat(bx.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Cx.familyPrefix,"-").concat(bx.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Cx.familyPrefix,"-").concat(bx.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function mk(){Cx.autoAddCss&&!bk&&(function(t){if(t&&gx){var e=mx.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=mx.head.childNodes,i=null,s=n.length-1;s>-1;s--){var r=n[s],o=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=r)}mx.head.insertBefore(e,i)}}(function(){var t="fa",e=yx,n=Cx.familyPrefix,i=Cx.replacementClass,s='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';if(n!==t||i!==e){var r=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");s=s.replace(r,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(i))}return s}()),bk=!0)}function gk(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return ck(t)})}}),Object.defineProperty(t,"node",{get:function(){if(gx){var e=mx.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function yk(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return lk(vk.definitions,n,i)||lk(kx.styles,n,i)}lx({},uk,{cx:"256",cy:"364",r:"28"}),lx({},dk,{attributeName:"r",values:"28;14;28;28;14;28;"}),lx({},pk,{values:"1;0;1;1;0;1;"}),lx({},uk,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),lx({},pk,{values:"1;0;0;0;0;1;"}),lx({},uk,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),lx({},pk,{values:"0;0;1;1;0;0;"});var _k,vk=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var s=n.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(e){t.definitions[e]=lx({},t.definitions[e]||{},s[e]),sk(e,s[e]),ak()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var i=n[e],s=i.prefix,r=i.iconName,o=i.icon;t[s]||(t[s]={}),t[s][r]=o}),t}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),t}()),bk=!1,wk=(_k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?Qx:n,s=e.symbol,r=void 0!==s&&s,o=e.mask,a=void 0===o?null:o,l=e.maskId,c=void 0===l?null:l,h=e.title,u=void 0===h?null:h,d=e.titleId,p=void 0===d?null:d,f=e.classes,m=void 0===f?[]:f,g=e.attributes,y=void 0===g?{}:g,_=e.styles,v=void 0===_?{}:_;if(t){var b=t.prefix,w=t.iconName,S=t.icon;return gk(lx({type:"icon"},t),function(){return mk(),Cx.autoA11y&&(u?y["aria-labelledby"]="".concat(Cx.replacementClass,"-title-").concat(p||Zx()):(y["aria-hidden"]="true",y.focusable="false")),nk({icons:{main:fk(S),mask:a?fk(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:lx({},Qx,i),symbol:r,title:u,maskId:c,titleId:p,extra:{attributes:y,styles:v,classes:m}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:yk(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:yk(i||{})),_k(n,lx({},e,{mask:i}))});const Sk=["*"];let Ck=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xk=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();const kk=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let Ek=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[re]}),t})(),Tk=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(Co(Qa),Co(qa))},t.\u0275cmp=Bt({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[re],ngContentSelectors:Sk,decls:1,vars:0,template:function(t,e){1&t&&(Vo(),Uo(0))},encapsulation:2}),t})(),Ik=(()=>{class t{constructor(t,e,n,i,s){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[],null!=s&&null==i&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const i=yk(e);if(null!=i){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return i}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),i=n[0],s=n.slice(1).join("-");if(i&&"h"===s)return t.flipX=!0,t;if(i&&"v"===s)return t.flipY=!0,t;if(s=parseFloat(s),isNaN(s))return t;switch(i){case"grow":t.size=t.size+s;break;case"shrink":t.size=t.size-s;break;case"left":t.x=t.x-s;break;case"right":t.x=t.x+s;break;case"up":t.y=t.y-s;break;case"down":t.y=t.y+s;break;case"rotate":t.rotate=t.rotate+s}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...kk(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=wk(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(Co(ku),Co(Ck),Co(xk),Co(Ek,8),Co(Tk,8))},t.\u0275cmp=Bt({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(wa("innerHTML",e.renderedIconHTML,Qi),vo("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[re],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Ok=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({}),t})();function Ak(t,e,n,i){return new(n||(n=Promise))(function(s,r){function o(t){try{l(i.next(t))}catch(mE){r(mE)}}function a(t){try{l(i.throw(t))}catch(mE){r(mE)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}const Rk=new Bn("@sweetalert2/ngx-sweetalert2#swalProvider"),Pk=new Bn("@sweetalert2/ngx-sweetalert2#fireOnInit"),Nk=new Bn("@sweetalert2/ngx-sweetalert2#dismissOnDestroy");let Lk=(()=>{class t{constructor(t){this.swalProvider=t}get swal(){return this.swalPromiseCache||this.preloadSweetAlertLibrary(),this.swalPromiseCache}preloadSweetAlertLibrary(){if(this.swalPromiseCache)return;const t="function"==typeof(e=this.swalProvider)&&void 0===e.version?this.swalProvider():Promise.resolve(this.swalProvider);var e;this.swalPromiseCache=t.then(t=>function(t){return"function"==typeof t}(t)?t:t.default)}}return t.\u0275fac=function(e){return new(e||t)(si(Rk))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Dk=(()=>{class t{constructor(t,e,n){this.sweetAlert2Loader=t,this.moduleLevelFireOnInit=e,this.moduleLevelDismissOnDestroy=n,this.willOpen=new Kl,this.didOpen=new Kl,this.didRender=new Kl,this.willClose=new Kl,this.didClose=new Kl,this.didDestroy=new Kl,this.confirm=new Kl,this.deny=new Kl,this.dismiss=new Kl,this.touchedProps=new Set,this.markTouched=this.touchedProps.add.bind(this.touchedProps),this.isCurrentlyShown=!1}set swalOptions(t){Object.assign(this,t),Object.keys(t).forEach(this.markTouched)}get swalOptions(){return[...this.touchedProps].reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:this[e]}),{})}set swalVisible(t){t?this.fire():this.close()}get swalVisible(){return this.isCurrentlyShown}ngOnInit(){this.sweetAlert2Loader.preloadSweetAlertLibrary()}ngAfterViewInit(){(void 0===this.swalFireOnInit?this.moduleLevelFireOnInit:this.swalFireOnInit)&&this.fire()}ngOnChanges(t){Object.keys(t).filter(t=>!t.startsWith("swal")).forEach(this.markTouched),this.update()}ngOnDestroy(){(void 0===this.swalDismissOnDestroy?this.moduleLevelDismissOnDestroy:this.swalDismissOnDestroy)&&this.close()}fire(){return Ak(this,void 0,void 0,function*(){const t=yield this.sweetAlert2Loader.swal,e=this.swalOptions,n=Object.assign(Object.assign({},e),{willOpen:s(e.willOpen,t=>{this.willOpen.emit({modalElement:t})}),didOpen:s(e.didOpen,t=>{this.isCurrentlyShown=!0,this.didOpen.emit({modalElement:t})}),didRender:s(e.didRender,t=>{this.didRender.emit({modalElement:t})}),willClose:s(e.willClose,t=>{this.isCurrentlyShown=!1,this.willClose.emit({modalElement:t})}),didClose:s(e.didClose,()=>{this.didClose.emit()}),didDestroy:s(e.didDestroy,()=>{this.didDestroy.emit()})}),i=yield t.fire(n);switch(!0){case i.isConfirmed:this.confirm.emit(i.value);break;case i.isDenied:this.deny.emit();break;case i.isDismissed:this.dismiss.emit(i.dismiss)}return i;function s(t,e){return(...n)=>(e(...n),null==t?void 0:t(...n))}})}close(t){return Ak(this,void 0,void 0,function*(){this.isCurrentlyShown&&(yield this.sweetAlert2Loader.swal).close(t)})}update(t){return Ak(this,void 0,void 0,function*(){if(t&&(this.swalOptions=t),!this.isCurrentlyShown)return;const e=yield this.sweetAlert2Loader.swal,n=this.swalOptions,i=Object.keys(n).filter(e.isUpdatableParameter).reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:n[e]}),{});e.update(i)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Lk),Co(Pk),Co(Nk))},t.\u0275cmp=Bt({type:t,selectors:[["swal"]],inputs:{swalOptions:"swalOptions",swalVisible:"swalVisible",title:"title",titleText:"titleText",text:"text",html:"html",footer:"footer",icon:"icon",iconColor:"iconColor",iconHtml:"iconHtml",backdrop:"backdrop",toast:"toast",target:"target",input:"input",width:"width",padding:"padding",background:"background",position:"position",grow:"grow",showClass:"showClass",hideClass:"hideClass",customClass:"customClass",timer:"timer",timerProgressBar:"timerProgressBar",heightAuto:"heightAuto",allowOutsideClick:"allowOutsideClick",allowEscapeKey:"allowEscapeKey",allowEnterKey:"allowEnterKey",stopKeydownPropagation:"stopKeydownPropagation",keydownListenerCapture:"keydownListenerCapture",showConfirmButton:"showConfirmButton",showDenyButton:"showDenyButton",showCancelButton:"showCancelButton",confirmButtonText:"confirmButtonText",denyButtonText:"denyButtonText",cancelButtonText:"cancelButtonText",confirmButtonColor:"confirmButtonColor",denyButtonColor:"denyButtonColor",cancelButtonColor:"cancelButtonColor",confirmButtonAriaLabel:"confirmButtonAriaLabel",denyButtonAriaLabel:"denyButtonAriaLabel",cancelButtonAriaLabel:"cancelButtonAriaLabel",buttonsStyling:"buttonsStyling",reverseButtons:"reverseButtons",focusConfirm:"focusConfirm",focusDeny:"focusDeny",focusCancel:"focusCancel",showCloseButton:"showCloseButton",closeButtonHtml:"closeButtonHtml",closeButtonAriaLabel:"closeButtonAriaLabel",loaderHtml:"loaderHtml",showLoaderOnConfirm:"showLoaderOnConfirm",preConfirm:"preConfirm",preDeny:"preDeny",imageUrl:"imageUrl",imageWidth:"imageWidth",imageHeight:"imageHeight",imageAlt:"imageAlt",inputLabel:"inputLabel",inputPlaceholder:"inputPlaceholder",inputValue:"inputValue",inputOptions:"inputOptions",inputAutoTrim:"inputAutoTrim",inputAttributes:"inputAttributes",inputValidator:"inputValidator",returnInputValueOnDeny:"returnInputValueOnDeny",validationMessage:"validationMessage",progressSteps:"progressSteps",currentProgressStep:"currentProgressStep",progressStepsDistance:"progressStepsDistance",scrollbarPadding:"scrollbarPadding",swalFireOnInit:"swalFireOnInit",swalDismissOnDestroy:"swalDismissOnDestroy"},outputs:{willOpen:"willOpen",didOpen:"didOpen",didRender:"didRender",willClose:"willClose",didClose:"didClose",didDestroy:"didDestroy",confirm:"confirm",deny:"deny",dismiss:"dismiss"},features:[re],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();function Fk(){return n.e(259).then(n.t.bind(n,259,23))}let Mk=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[Lk,{provide:Rk,useValue:e.provideSwal||Fk},{provide:Pk,useValue:e.fireOnInit||!1},{provide:Nk,useValue:e.dismissOnDestroy||!0}]}}static forChild(e={}){return{ngModule:t,providers:[...e.provideSwal?[Lk,{provide:Rk,useValue:e.provideSwal}]:[],...void 0!==e.fireOnInit?[{provide:Pk,useValue:e.fireOnInit}]:[],...void 0!==e.dismissOnDestroy?[{provide:Nk,useValue:e.dismissOnDestroy}]:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[Gh]]}),t})();var jk={prefix:"fas",iconName:"battery-full",icon:[640,512,[],"f240","M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"]},Hk={prefix:"fas",iconName:"battery-half",icon:[640,512,[],"f242","M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"]},Bk={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},zk={prefix:"fas",iconName:"comment-dots",icon:[512,512,[],"f4ad","M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},Vk={prefix:"fas",iconName:"edit",icon:[576,512,[],"f044","M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]},Uk={prefix:"fas",iconName:"folder",icon:[512,512,[],"f07b","M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"]},$k={prefix:"fas",iconName:"laptop",icon:[640,512,[],"f109","M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]},qk={prefix:"fas",iconName:"laptop-code",icon:[640,512,[],"f5fc","M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]},Wk={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]};let Gk=(()=>{class t{constructor(t){this.http=t}getImages(){return this.http.get("assets/showcase/data/photos.json").toPromise().then(t=>t.data).then(t=>t)}}return t.\u0275fac=function(e){return new(e||t)(si(td))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Qk(t,e){if(1&t&&Io(0,"img",18),2&t){const t=e.$implicit;xo("src",t.previewImageSrc,Zi)("alt",t.alt)}}let Zk=(()=>{class t{constructor(t){this.photoService=t,this.urlLinkedin="https://www.linkedin.com/in/juan-manuel-gonz\xe1lez-garz\xf3n",this.urlGithub="https://github.com/juanmanuelgg",this.urlJekyll="https://juanmanuelgg.github.io",this.faLaptop=$k,this.faLaptopCode=qk,this.faFolder=Uk,this.images=[],this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.photoService.getImages().then(t=>this.images=t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Gk))},t.\u0275cmp=Bt({type:t,selectors:[["app-front-page"]],decls:44,vars:7,consts:[[1,"w3-container",2,"margin-top","80px"],[1,"w3-jumbo"],["id","practic-test",1,"w3-container",2,"margin-top","75px"],[1,"w3-xxxlarge","w3-text-blue"],["href","https://github.com/juanmanuelgg/Entrevista-OCTANS"],[1,"w3-round",2,"width","50px","border","5px solid #2196F3"],["id","showcase",1,"w3-row-padding"],[3,"value"],["pTemplate","item"],["id","engineer",1,"w3-container",2,"margin-top","75px"],[1,"w3-row-padding","w3-grayscale"],[1,"w3-col","m4","w3-margin-bottom"],[1,"w3-light-grey"],[1,"w3-container"],[1,"w3-opacity"],[3,"href"],[3,"icon"],[1,"distance"],[2,"width","100%",3,"src","alt"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"h1",1),Eo(2,"b"),_a(3,"Desarrollo de software"),To(),To(),To(),Eo(4,"div",2),Eo(5,"h1",3),Eo(6,"b"),_a(7,"Prueba Pr\xe1ctica"),To(),To(),Eo(8,"a",4),Eo(9,"h2"),Eo(10,"b"),_a(11,"OCTANS Digital Services"),To(),To(),To(),Io(12,"hr",5),To(),Eo(13,"div",6),Eo(14,"h1",3),Eo(15,"b"),_a(16,"Showcase."),To(),To(),Io(17,"hr",5),Eo(18,"p-galleria",7),wo(19,Qk,1,2,"ng-template",8),To(),To(),Eo(20,"div",9),Eo(21,"h1",3),Eo(22,"b"),_a(23,"Ingeniero"),To(),To(),Io(24,"hr",5),To(),Eo(25,"div",10),Eo(26,"div",11),Eo(27,"div",12),Eo(28,"div",13),Eo(29,"h3"),_a(30,"Juan Manuel Gonz\xe1lez Garz\xf3n"),To(),Eo(31,"p",14),_a(32,"Candidato"),To(),Eo(33,"p"),_a(34,"Ingeniero de Sistemas y Computaci\xf3n. "),Io(35,"br"),Eo(36,"a",15),Io(37,"fa-icon",16),To(),Io(38,"span",17),Eo(39,"a",15),Io(40,"fa-icon",16),To(),Io(41,"span",17),Eo(42,"a",15),Io(43,"fa-icon",16),To(),To(),To(),To(),To(),To()),2&t&&(qs(18),xo("value",e.images),qs(18),$o("href",e.urlLinkedin,Zi),qs(1),xo("icon",e.faLaptop),qs(2),$o("href",e.urlGithub,Zi),qs(1),xo("icon",e.faLaptopCode),qs(2),$o("href",e.urlJekyll,Zi),qs(1),xo("icon",e.faFolder))},directives:[Tp,bd,Ik],styles:["body[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{font-family:Poppins,sans-serif}body[_ngcontent-%COMP%]{font-size:16px}.w3-half[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-bottom:-6px;margin-top:16px;opacity:.8;cursor:pointer}.w3-half[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:hover{opacity:1}.distance[_ngcontent-%COMP%]{margin-left:3px;margin-right:3px}"]}),t})(),Kk=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["app-login-signup"]],decls:17,vars:0,consts:[[1,"lyt-center"],[1,"w3-center"],["src","assets/images/img_avatar4.png","alt","Avatar",1,"w3-circle","w3-margin-top",2,"width","30%"],[1,"w3-section"],["type","text","placeholder","Enter Username","name","usrname","required","",1,"w3-input","w3-border","w3-margin-bottom"],["type","text","placeholder","Enter Password","name","psw","required","",1,"w3-input","w3-border"],["type","submit",1,"w3-button","w3-block","w3-green","w3-section","w3-padding"],["type","checkbox","checked","checked",1,"w3-check","w3-margin-top"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"form"),Eo(2,"div",1),Io(3,"img",2),To(),Eo(4,"div",3),Eo(5,"label"),Eo(6,"b"),_a(7,"Username"),To(),To(),Io(8,"input",4),Eo(9,"label"),Eo(10,"b"),_a(11,"Password"),To(),To(),Io(12,"input",5),Eo(13,"button",6),_a(14,"Login"),To(),Io(15,"input",7),_a(16," Recordarme "),To(),To(),To())},styles:[".lyt-center[_ngcontent-%COMP%]{display:grid;place-items:center;width:100%;height:calc(100vh);resize:both}"]}),t})(),Yk=(()=>{class t{constructor(t){this.http=t}getTodoLists(){return this.http.get("/api/todo_list").toPromise().then(t=>t.data)}getTodoList(t){return this.http.get(`assets/showcase/data/list${t}.json`).toPromise().then(t=>t)}}return t.\u0275fac=function(e){return new(e||t)(si(td))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Xk(t,e){if(1&t&&(Eo(0,"li"),Eo(1,"mat-slide-toggle",9),_a(2),To(),To()),2&t){const t=Bo().$implicit;qs(1),xo("checked",t.completed),qs(1),va(t.task)}}function Jk(t,e){if(1&t&&(Eo(0,"span"),wo(1,Xk,3,2,"li",8),To()),2&t){const t=e.index,n=Bo();qs(1),xo("ngIf",!n.inGallery||t<n.limit)}}function tE(t,e){if(1&t&&(Eo(0,"span"),Io(1,"fa-icon",11),To()),2&t){const t=Bo(2);qs(1),xo("icon",t.faBatteryFull)}}function eE(t,e){if(1&t&&(Eo(0,"span"),Io(1,"fa-icon",11),To()),2&t){const t=Bo(2);qs(1),xo("icon",t.faBatteryHalf)}}const nE=function(){return["/todo-list"]},iE=function(t){return{id:t}};function sE(t,e){if(1&t&&(Eo(0,"a",10),wo(1,tE,2,1,"span",8),wo(2,eE,2,1,"span",8),Eo(3,"span"),_a(4," ... Ver detalle"),To(),To()),2&t){const t=Bo();xo("routerLink",$l(4,nE))("queryParams",ql(5,iE,t.list.id)),qs(1),xo("ngIf",t.list.tasks.length<=t.limit),qs(1),xo("ngIf",t.list.tasks.length>t.limit)}}const rE=function(){return{"margin-left":".5em"}};function oE(t,e){if(1&t){const t=Po();Eo(0,"div",12),Eo(1,"p-button",13),Do("click",function(){return Ie(t),So(3).fire()}),To(),Eo(2,"swal",14,15),Do("confirm",function(){return Ie(t),Bo().archiveTodoList()}),To(),Eo(4,"p-button",16),Do("click",function(){return Ie(t),So(6).fire()}),To(),Eo(5,"swal",17,18),Do("confirm",function(){return Ie(t),Bo().deleteTodoList()}),To(),To()}2&t&&(qs(2),xo("showCancelButton",!0)("focusCancel",!0),qs(2),function(t){la(pa,ra,t,!1)}($l(6,rE)),qs(1),xo("showCancelButton",!0)("focusCancel",!0))}const aE=function(){return["/todo-item"]};let lE=(()=>{class t{constructor(t,e,n){this._todoListService=t,this._snackBar=e,this._activatedRoute=n,this.inGallery=!1,this.list={id:-1,title:"",sumary:"",tasks:[],deleted:!1,archived:!1},this.listParameter={id:-2,title:"",sumary:"",tasks:[],deleted:!1,archived:!1},this.items=[],this.faPlus=Wk,this.faEdit=Vk,this.faCommentDots=zk,this.faBatteryFull=jk,this.faBatteryHalf=Hk,this.limit=7,this.horizontalPosition="center",this.verticalPosition="top"}ngOnInit(){this.listParameter.id>=1?(this.list=this.listParameter,this.inGallery=!0):this._activatedRoute.queryParams.subscribe(t=>{t.id&&t.id>=1&&this._todoListService.getTodoList(t.id).then(t=>this.list=t)}),this.items=[{label:"Categoria",url:"/"},{label:"Todo-List title",url:"todo-list"}]}archiveTodoList(){let t=this._snackBar.open("\xa1Todo-List archivada!","Deshacer",{duration:5e3,horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition}),e=!1;t.onAction().subscribe(()=>{e=!0,this._snackBar.open("\xa1Acci\xf3n revertida!","",{duration:5e3,horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})})}deleteTodoList(){this._snackBar.open("\xa1Todo-List eliminada!","",{duration:5e3,horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}}return t.\u0275fac=function(e){return new(e||t)(Co(Yk),Co(rx),Co(Rm))},t.\u0275cmp=Bt({type:t,selectors:[["app-personal-todo-list"]],inputs:{listParameter:"listParameter"},decls:12,vars:11,consts:[["styleClass","p-card-shadow",3,"ngClass","header","subheader"],["href","/todo-list",1,"edit-list","top-padded"],[3,"icon"],[4,"ngFor","ngForOf"],["routerLinkActive","active",3,"routerLink","queryParams",4,"ngIf"],["routerLinkActive","active",1,"new-task","top-padded",3,"routerLink"],["pTemplate","footer"],["href","/todo-item",1,"float","top-padded"],[4,"ngIf"],[3,"checked"],["routerLinkActive","active",3,"routerLink","queryParams"],["size","lg",3,"icon"],[1,"lyt-center"],["label","Archivar","icon","pi pi-check",3,"click"],["title","\xbfArchivar Todo-List?","text","Tu lista ira al achivo","icon","question",3,"showCancelButton","focusCancel","confirm"],["archiveSwal",""],["label","Eliminar","icon","pi pi-times","styleClass","p-button-secondary",3,"click"],["title","\xbfEliminar Todo-List?","text","Esta acci\xf3n no se puede deshacer","icon","question",3,"showCancelButton","focusCancel","confirm"],["deleteSwal",""]],template:function(t,e){1&t&&(Eo(0,"p-card",0),Eo(1,"a",1),Io(2,"fa-icon",2),To(),Eo(3,"ul"),wo(4,Jk,2,1,"span",3),To(),Io(5,"br"),wo(6,sE,5,7,"a",4),Eo(7,"a",5),Io(8,"fa-icon",2),To(),wo(9,oE,7,7,"ng-template",6),To(),Eo(10,"a",7),Io(11,"fa-icon",2),To()),2&t&&(Wo("header","",e.list.title," (",e.list.tasks.length||0,")"),$o("subheader",e.list.sumary),xo("ngClass",e.inGallery?"reduced-card":"expanded-card"),qs(2),xo("icon",e.faEdit),qs(2),xo("ngForOf",e.list.tasks),qs(2),xo("ngIf",e.inGallery),qs(1),xo("routerLink",$l(10,aE)),qs(1),xo("icon",e.faPlus),qs(3),xo("icon",e.faPlus))},directives:[$d,jh,Ik,Bh,Vh,ey,iy,bd,AS,Rd,Dk],styles:[".float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#69f0ae;color:#fff;border-radius:50px;text-align:center;box-shadow:2px 2px 3px #999}.todo-card[_ngcontent-%COMP%]{padding-top:10px;place-items:top}.reduced-card[_ngcontent-%COMP%]{min-width:calc(100vh/2.5);max-width:calc(100vh/2.5);overflow:auto;overflow-y:auto;display:grid;word-wrap:break-word;border:1px solid;padding:10px;box-shadow:5px 5px #888}.expanded-card[_ngcontent-%COMP%]{width:100%;overflow:auto}.edit-list[_ngcontent-%COMP%]{background-color:#eeeee7}.new-task[_ngcontent-%COMP%]{background-color:#69f0ae}.my-float[_ngcontent-%COMP%]{margin-top:222px}.top-padded[_ngcontent-%COMP%]{display:grid;place-items:center;margin-top:10px}.lyt-center[_ngcontent-%COMP%]{text-align:center}"]}),t})();function cE(t,e){if(1&t&&(Eo(0,"mat-grid-tile"),Io(1,"app-personal-todo-list",5),To()),2&t){const t=e.$implicit;qs(1),xo("listParameter",t)}}const hE=[{path:"home",component:Zk},{path:"login",component:Kk},{path:"",component:(()=>{class t{constructor(t,e){this._todoListService=t,this._snackBar=e,this.lists=[],this.items=[],this.faPlus=Wk,this.horizontalPosition="center",this.verticalPosition="top"}ngOnInit(){this._todoListService.getTodoLists().then(t=>this.lists=t),this.items=[{label:"Categoria"}]}newTodoList(){this._snackBar.open("\xa1Todo-List Creada!","",{duration:5e3,horizontalPosition:this.horizontalPosition,verticalPosition:this.verticalPosition})}}return t.\u0275fac=function(e){return new(e||t)(Co(Yk),Co(rx))},t.\u0275cmp=Bt({type:t,selectors:[["app-group-todo-board"]],decls:5,vars:3,consts:[[3,"model"],["cols","3","rowHeight","1:1"],[4,"ngFor","ngForOf"],[1,"float","top-padded",3,"click"],[3,"icon"],[3,"listParameter"]],template:function(t,e){1&t&&(Io(0,"p-breadcrumb",0),Eo(1,"mat-grid-list",1),wo(2,cE,2,1,"mat-grid-tile",2),To(),Eo(3,"a",3),Do("click",function(){return e.newTodoList()}),Io(4,"fa-icon",4),To()),2&t&&(xo("model",e.items),qs(2),xo("ngForOf",e.lists),qs(2),xo("icon",e.faPlus))},directives:[Yy,yS,Bh,Ik,cS,lE],styles:["mat-grid-tile[_ngcontent-%COMP%]{padding-bottom:10px}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#2196f3;color:#fff;border-radius:50px;text-align:center;box-shadow:2px 2px 3px #999}.top-padded[_ngcontent-%COMP%]{display:grid;place-items:center;margin-top:10px}"]}),t})()},{path:"todo-list",component:lE},{path:"todo-item",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["app-todo-item"]],decls:27,vars:0,consts:[["action","javascript:void(0);","method","POST","onsubmit","addItem()"],["type","text","id","add-name","placeholder","New to-do"],["type","submit","value","Add"],["id","editForm"],["action","javascript:void(0);","onsubmit","updateItem()"],["type","hidden","id","edit-id"],["type","checkbox","id","edit-isComplete"],["type","text","id","edit-name"],["type","submit","value","Save"],["onclick","closeInput()","aria-label","Close"],["id","counter"],["id","todos"]],template:function(t,e){1&t&&(Eo(0,"h1"),_a(1,"To-do CRUD"),To(),Eo(2,"h3"),_a(3,"Add"),To(),Eo(4,"form",0),Io(5,"input",1),Io(6,"input",2),To(),Eo(7,"div",3),Eo(8,"h3"),_a(9,"Edit"),To(),Eo(10,"form",4),Io(11,"input",5),Io(12,"input",6),Io(13,"input",7),Io(14,"input",8),Eo(15,"a",9),_a(16,"\u2716"),To(),To(),To(),Io(17,"p",10),Eo(18,"table"),Eo(19,"tr"),Eo(20,"th"),_a(21,"Is Complete?"),To(),Eo(22,"th"),_a(23,"Name"),To(),Io(24,"th"),Io(25,"th"),To(),Io(26,"tbody",11),To())},styles:["[aria-label][_ngcontent-%COMP%], button[_ngcontent-%COMP%], input[type=submit][_ngcontent-%COMP%]{cursor:pointer}#editForm[_ngcontent-%COMP%]{display:none}table[_ngcontent-%COMP%]{font-family:Arial,sans-serif;border:1px solid;border-collapse:collapse}th[_ngcontent-%COMP%]{background-color:#f8f8f8}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:5px}td[_ngcontent-%COMP%]{border:1px solid}"]}),t})()},{path:"not-found",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["app-not-found"]],decls:3,vars:0,consts:[[1,"lyt-center"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"h1"),_a(2,"404"),To(),To())},styles:[".lyt-center[_ngcontent-%COMP%]{display:grid;place-items:center;width:100%;height:calc(100vh);resize:both}"]}),t})()},{path:"**",redirectTo:"not-found"}];let uE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t}),t.\u0275inj=ht({imports:[[fy.forRoot(hE)],fy]}),t})(),dE=(()=>{class t{constructor(){this.icon=Bk,this.title="Angular-Frontend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Bt({type:t,selectors:[["app-root"]],decls:35,vars:1,consts:[["rel","stylesheet","href","https://www.w3schools.com/w3css/4/w3.css"],["rel","stylesheet","href","https://fonts.googleapis.com/css?family=Poppins"],["id","mySidebar",1,"w3-sidebar","w3-blue","w3-collapse","w3-top","w3-large","w3-padding",2,"z-index","3","width","300px","font-weight","bold"],["href","javascript:void(0)","onclick","w3_close()",1,"w3-button","w3-hide-large","w3-display-topleft",2,"width","100%","font-size","22px"],[1,"w3-container",2,"text-align","center"],["href","/","onclick","w3_close()"],["size","lg",3,"icon"],[1,"w3-bar-block"],["href","/home","onclick","w3_close()",1,"w3-bar-item","w3-button","w3-hover-white"],["href","/home/#practic-test","onclick","w3_close()",1,"w3-bar-item","w3-button","w3-hover-white"],["href","/home/#showcase","onclick","w3_close()",1,"w3-bar-item","w3-button","w3-hover-white"],["href","/home/#engineer","onclick","w3_close()",1,"w3-bar-item","w3-button","w3-hover-white"],["href","/login","onclick","w3_close()",1,"w3-bar-item","w3-button","w3-hover-white"],["id","footer",1,"w3-light-grey","w3-container"],[1,"w3-right"],["href","https://www.w3schools.com/w3css/default.asp","title","W3.CSS","target","_blank",1,"w3-hover-opacity"],[1,"w3-container","w3-top","w3-hide-large","w3-red","w3-xlarge","w3-padding"],["href","javascript:void(0)","onclick","w3_open()",1,"w3-button","w3-red","w3-margin-right"],["onclick","w3_close()","title","close side menu","id","myOverlay",1,"w3-overlay","w3-hide-large",2,"cursor","pointer"],["id","body",1,"w3-main",2,"margin-left","340px","margin-right","40px"]],template:function(t,e){1&t&&(Io(0,"link",0),Io(1,"link",1),Eo(2,"nav",2),Io(3,"br"),Eo(4,"a",3),_a(5,"Close Menu"),To(),Eo(6,"div",4),Eo(7,"a",5),Io(8,"fa-icon",6),To(),To(),Io(9,"br"),Eo(10,"div",7),Eo(11,"a",8),_a(12,"Home"),To(),Eo(13,"a",9),_a(14,"- Prueba Pr\xe1ctica"),To(),Eo(15,"a",10),_a(16,"- Showcase"),To(),Eo(17,"a",11),_a(18,"- Ingeniero"),To(),Io(19,"br"),Eo(20,"a",12),_a(21,"Login"),To(),To(),Eo(22,"div",13),Eo(23,"p",14),_a(24,"Powered by "),Eo(25,"a",15),_a(26,"w3.css"),To(),To(),To(),To(),Eo(27,"header",16),Eo(28,"a",17),_a(29,"\u2630"),To(),Eo(30,"span"),_a(31,"OCTANS Digital Services"),To(),To(),Io(32,"div",18),Eo(33,"div",19),Io(34,"router-outlet"),To()),2&t&&(qs(8),xo("icon",e.icon))},directives:[Ik,sy],styles:["body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{height:100%}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;left:0}"]}),t})(),pE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=$t({type:t,bootstrap:[dE]}),t.\u0275inj=ht({providers:[],imports:[[Au,uE,Ok,Mk.forRoot(),pd,Pd,qd,Pp,Xy,Hw,_S,PS,ix]]}),t})();(function(){if(Kc)throw new Error("Cannot enable prod mode after platform setup.");Zc=!1})(),Iu().bootstrapModule(pE).catch(t=>console.error(t))}},t=>{"use strict";t(t.s=431)}]);