-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.4f7c3c3f8f54430c53d8.js
1 lines (1 loc) · 918 KB
/
main.4f7c3c3f8f54430c53d8.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);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})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(s))try{s.call(this)}catch(o){e=o instanceof h?d(o.errors):[o]}if(l(r)){let t=-1,n=r.length;for(;++t<n;){const n=r[t];if(c(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof h?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m 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 m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new m(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 f extends m{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 _(t){return t}let y=(()=>{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 m)return t;if(t[p])return t[p]()}return t||e||n?new m(t,e,n):new m(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 m?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(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?_:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{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 C extends m{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;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 v;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 v;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 v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;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 y;return t.source=this,t}}return t.create=(t,e)=>new x(t,e),t})();class x extends k{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 S(t){return t&&"function"==typeof t.schedule}class O extends m{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const E=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=T(),R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function M(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const I=t=>{if(t&&"function"==typeof t[g])return i=t,t=>{const e=i[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 E(t);if(M(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=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,i};function A(t,e,n,i,s=new O(t,n,i)){if(!s.closed)return e instanceof y?e.subscribe(s):I(e)(s)}class D extends m{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(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 F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends m{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function B(t,e){return new y(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 j(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 y(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(M(t))return function(t,e){return new y(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 B(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const i=new u;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[P](),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 y?t:new y(I(t))}function z(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(z((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new V(t,n)))}class V{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends D{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,t,n)}_innerSub(t,e,n){const i=new O(this,e,n),s=this.destination;s.add(i);const r=A(this,t,void 0,void 0,i);r!==i&&s.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return z(_,t)}function U(t,e){return e?B(t,e):new y(E(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return S(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 y?t[0]:$(e)(U(t,n))}function q(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Y(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class Y extends m{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 G extends y{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 Q(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return q()(this)}}const K=(()=>{const t=G.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 Q extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new k}function J(){return t=>{return q()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,K);return i.source=t,i.subjectFactory=n,i})(t));var e}}function tt(t){for(let e in t)if(t[e]===tt)return e;throw Error("Could not find renamed property on target object.")}function et(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function nt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(nt).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 it(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const st=tt({__forward_ref__:tt});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return nt(this())},t}function ot(t){return at(t)?t():t}function at(t){return"function"==typeof t&&t.hasOwnProperty(st)&&t.__forward_ref__===rt}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return ut(t,pt)||ut(t,ft)}function ut(t,e){return t.hasOwnProperty(e)?t[e]:null}function dt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(gt))?t[mt]:null}const pt=tt({"\u0275prov":tt}),mt=tt({"\u0275inj":tt}),ft=tt({ngInjectableDef:tt}),gt=tt({ngInjectorDef:tt});var _t=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let yt;function bt(t){const e=yt;return yt=t,e}function vt(t,e,n){const i=ht(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&_t.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${nt(t)}]`)}function wt(t){return{toString:t}.toString()}var Ct=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),kt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const xt="undefined"!=typeof globalThis&&globalThis,St="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=xt||Et||St||Ot,Pt={},Rt=[],Mt=tt({"\u0275cmp":tt}),It=tt({"\u0275dir":tt}),At=tt({"\u0275pipe":tt}),Dt=tt({"\u0275mod":tt}),Lt=tt({"\u0275loc":tt}),Ft=tt({"\u0275fac":tt}),Nt=tt({__NG_ELEMENT_ID__:tt});let Bt=0;function jt(t){return wt(()=>{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||kt.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+=Bt++,n.inputs=Ut(t.inputs,e),n.outputs=Ut(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 Zt(t)||function(t){return t[It]||null}(t)}function Vt(t){return function(t){return t[At]||null}(t)}const Ht={};function $t(t){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&&wt(()=>{Ht[t.id]=t.type}),e}function Ut(t,e){if(null==t)return Pt;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=jt;function qt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[Mt]||null}function Yt(t,e){const n=t[Dt]||null;if(!n&&!0===e)throw new Error(`Type ${nt(t)} does not have '\u0275mod' property.`);return n}const Gt=20,Kt=10;function Qt(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(Ft)?t[Ft]:null}class se extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function re(t){return"string"==typeof t?t:null==t?"":String(t)}function oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():re(t)}function ae(t,e){const n=e?` in ${e}`:"";throw new se("201",`No provider for ${oe(t)} found${n}`)}class le{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ce(){return he}function he(t){return t.type.prototype.ngOnChanges&&(t.setInput=de),ue}function ue(){const t=pe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Pt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function de(t,e,n,i){const s=pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Pt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new le(l&&l.currentValue,e,o===Pt),t[i]=e}function pe(t){return t.__ngSimpleChanges__||null}ce.ngInherit=!0;const me="http://www.w3.org/2000/svg";let fe;function ge(){return void 0!==fe?fe:"undefined"!=typeof document?document:void 0}function _e(t){return!!t.listen}const ye={createRenderer:(t,e)=>ge()};function be(t){for(;Array.isArray(t);)t=t[0];return t}function ve(t,e){return be(e[t])}function we(t,e){return be(e[t.index])}function Ce(t,e){return t.data[e]}function ke(t,e){return t[e]}function xe(t,e){const n=e[t];return Qt(n)?n:n[0]}function Se(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Oe(t){return 4==(4&t[2])}function Ee(t){return 128==(128&t[2])}function Te(t,e){return null==e?null:t[e]}function Pe(t){t[18]=0}function Re(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 Me={lFrame:nn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ie(){return Me.bindingsEnabled}function Ae(){return Me.lFrame.lView}function De(){return Me.lFrame.tView}function Le(t){Me.lFrame.contextLView=t}function Fe(){let t=Ne();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ne(){return Me.lFrame.currentTNode}function Be(t,e){const n=Me.lFrame;n.currentTNode=t,n.isParent=e}function je(){return Me.lFrame.isParent}function ze(){Me.lFrame.isParent=!1}function Ve(){return Me.isInCheckNoChangesMode}function He(t){Me.isInCheckNoChangesMode=t}function $e(){const t=Me.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ue(){return Me.lFrame.bindingIndex}function We(){return Me.lFrame.bindingIndex++}function qe(t){const e=Me.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ze(t,e){const n=Me.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ye(e)}function Ye(t){Me.lFrame.currentDirectiveIndex=t}function Ge(t){const e=Me.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ke(){return Me.lFrame.currentQueryIndex}function Qe(t){Me.lFrame.currentQueryIndex=t}function Xe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Je(t,e,n){if(n&_t.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&_t.Host||(i=Xe(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Me.lFrame=en();return i.currentTNode=e,i.lView=t,!0}function tn(t){const e=en(),n=t[1];Me.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function en(){const t=Me.lFrame,e=null===t?null:t.child;return null===e?nn(t):e}function nn(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 sn(){const t=Me.lFrame;return Me.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const rn=sn;function on(){const t=sn();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 an(){return Me.lFrame.selectedIndex}function ln(t){Me.lFrame.selectedIndex=t}function cn(){const t=Me.lFrame;return Ce(t.tView,t.selectedIndex)}function hn(){Me.lFrame.currentNamespace=me}function un(){Me.lFrame.currentNamespace=null}function dn(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 pn(t,e,n){gn(t,e,3,n)}function mn(t,e,n,i){(3&t[2])===n&&gn(t,e,n,i)}function fn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function gn(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)&&(_n(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function _n(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}const yn=-1;class bn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function vn(t,e,n){const i=_e(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];Cn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function wn(t){return 3===t||4===t||6===t}function Cn(t){return 64===t.charCodeAt(0)}function kn(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||xn(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function xn(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 Sn(t){return t!==yn}function On(t){return 32767&t}function En(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Tn=!0;function Pn(t){const e=Tn;return Tn=t,e}let Rn=0;function Mn(t,e){const n=An(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,In(i.data,t),In(e,null),In(i.blueprint,null));const s=Dn(t,e),r=t.injectorIndex;if(Sn(s)){const t=On(s),n=En(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 In(t,e){t.push(0,0,0,0,0,0,0,0,e)}function An(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Dn(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 yn;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return yn}function Ln(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Nt)&&(i=n[Nt]),null==i&&(i=n[Nt]=Rn++);const s=255&i;e.data[t+(s>>5)]|=1<<s}(t,e,n)}function Fn(t,e,n){if(n&_t.Optional)return t;ae(e,"NodeInjector")}function Nn(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):vt(e,i,n&_t.Optional)}finally{bt(r)}}return Fn(i,e,n)}function Bn(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(Nt)?t[Nt]:void 0;return"number"==typeof e?e>=0?255&e:zn:e}(n);if("function"==typeof r){if(!Je(e,t,i))return i&_t.Host?Fn(s,n,i):Nn(e,n,i,s);try{const t=r();if(null!=t||i&_t.Optional)return t;ae(n)}finally{rn()}}else if("number"==typeof r){let s=null,o=An(t,e),a=yn,l=i&_t.Host?e[16][6]:null;for((-1===o||i&_t.SkipSelf)&&(a=-1===o?Dn(t,e):e[o+8],a!==yn&&Wn(i,!1)?(s=e[1],o=On(a),e=En(a,e)):o=-1);-1!==o;){const t=e[1];if(Un(r,o,t.data)){const t=Vn(o,e,n,s,i,l);if(t!==jn)return t}a=e[o+8],a!==yn&&Wn(i,e[1].data[o+8]===l)&&Un(r,o,e)?(s=t,o=On(a),e=En(a,e)):o=-1}}}return Nn(e,n,i,s)}const jn={};function zn(){return new qn(Fe(),Ae())}function Vn(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Hn(a,o,n,null==i?te(a)&&Tn:i!=o&&0!=(3&a.type),s&_t.Host&&r===a);return null!==l?$n(e,o,l,a):jn}function Hn(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 $n(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof bn){const o=s;o.resolving&&function(t,e){throw new se("200",`Circular dependency in DI detected for ${t}`)}(oe(r[n]));const a=Pn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?bt(o.injectImpl):null;Je(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=he(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),Pn(a),o.resolving=!1,rn()}}return s}function Un(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Wn(t,e){return!(t&_t.Self||t&_t.Host&&e)}class qn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Bn(this._tNode,this._lView,t,void 0,e)}}function Zn(t){const e=t;if(at(t))return()=>{const t=Zn(ot(e));return t?t():null};let n=ie(e);if(null===n){const t=dt(e);n=t&&t.factory}return n||null}function Yn(t){return wt(()=>{const e=t.prototype.constructor,n=e[Ft]||Zn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Ft]||Zn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Gn(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(wn(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}(Fe(),t)}const Kn="__parameters__";function Qn(t,e,n){return wt(()=>{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(Kn)?t[Kn]:Object.defineProperty(t,Kn,{value:[]})[Kn];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 Xn{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=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Jn=new Xn("AnalyzeForEntryComponents"),ti=Function;function ei(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)),ei(i,e)):e!==t&&e.push(i)}return e}function ni(t,e){t.forEach(t=>Array.isArray(t)?ni(t,e):e(t))}function ii(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ri(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function oi(t,e,n){let i=li(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 ai(t,e){const n=li(t,e);if(n>=0)return t[1|n]}function li(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 ci={},hi=/\n/gm,ui="__source",di=tt({provide:String,useValue:tt});let pi;function mi(t){const e=pi;return pi=t,e}function fi(t,e=_t.Default){if(void 0===pi)throw new Error("inject() must be called from an injection context");return null===pi?vt(t,void 0,e):pi.get(t,e&_t.Optional?null:void 0,e)}function gi(t,e=_t.Default){return(yt||fi)(ot(t),e)}const _i=gi;function yi(t){const e=[];for(let n=0;n<t.length;n++){const i=ot(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(gi(t,n))}else e.push(gi(i))}return e}function bi(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const vi=bi(Qn("Inject",t=>({token:t})),-1),wi=bi(Qn("Optional"),8),Ci=bi(Qn("SkipSelf"),4);let ki,xi;function Si(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,Tt.trustedTypes))try{ki=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}function Oi(t){var e;return(null===(e=function(){if(void 0===xi&&(xi=null,Tt.trustedTypes))try{xi=Tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return xi}())||void 0===e?void 0:e.createHTML(t))||t}class Ei{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ti extends Ei{getTypeName(){return"HTML"}}class Pi extends Ei{getTypeName(){return"Style"}}class Ri extends Ei{getTypeName(){return"Script"}}class Mi extends Ei{getTypeName(){return"URL"}}class Ii extends Ei{getTypeName(){return"ResourceURL"}}function Ai(t){return t instanceof Ei?t.changingThisBreaksApplicationSecurity:t}function Di(t,e){const n=Li(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 Li(t){return t instanceof Ei&&t.getTypeName()||null}class Fi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Si(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ni{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=Si(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Si(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 Bi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ji=/^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 zi(t){return(t=String(t)).match(Bi)||t.match(ji)?t:"unsafe:"+t}function Vi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Hi(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const $i=Vi("area,br,col,hr,img,wbr"),Ui=Vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wi=Vi("rp,rt"),qi=Hi(Wi,Ui),Zi=Hi($i,Hi(Ui,Vi("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")),Hi(Wi,Vi("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")),qi),Yi=Vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gi=Vi("srcset"),Ki=Hi(Yi,Gi,Vi("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"),Vi("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")),Qi=Vi("script,style,template");class Xi{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(!Zi.hasOwnProperty(e))return this.sanitizedSomething=!0,!Qi.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(!Ki.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;Yi[r]&&(o=zi(o)),Gi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>zi(t.trim())).join(", ")),this.buf.push(" ",e,'="',es(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Zi.hasOwnProperty(e)&&!$i.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(es(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 Ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ts=/([^\#-~ |!])/g;function es(t){return t.replace(/&/g,"&").replace(Ji,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ts,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ns;function is(t,e){let n=null;try{ns=ns||function(t){const e=new Ni(t);return function(){try{return!!(new window.DOMParser).parseFromString(Si(""),"text/html")}catch(t){return!1}}()?new Fi(e):e}(t);let i=e?String(e):"";n=ns.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=ns.getInertBodyElement(i)}while(i!==r);return Si((new Xi).sanitizeChildren(ss(n)||n))}finally{if(n){const t=ss(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ss(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var rs=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function os(t){const e=ls();return e?Oi(e.sanitize(rs.HTML,t)||""):Di(t,"HTML")?Oi(Ai(t)):is(ge(),re(t))}function as(t){const e=ls();return e?e.sanitize(rs.URL,t)||"":Di(t,"URL")?Ai(t):zi(re(t))}function ls(){const t=Ae();return t&&t[12]}function cs(t){return t.ngDebugContext}function hs(t){return t.ngOriginalError}function us(t,...e){t.error(...e)}class ds{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||us}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?cs(t)?cs(t):this._findContext(hs(t)):null}_findOriginalError(t){let e=hs(t);for(;e&&hs(e);)e=hs(e);return e}}function ps(t,e){t.__ngContext__=e}const ms=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function fs(t){return{name:"window",target:t.ownerDocument.defaultView}}function gs(t){return{name:"document",target:t.ownerDocument}}function _s(t){return{name:"body",target:t.ownerDocument.body}}function ys(t){return t instanceof Function?t():t}var bs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function vs(t,e){return(void 0)(t,e)}function ws(t){const e=t[3];return Xt(e)?e[3]:e}function Cs(t){return xs(t[13])}function ks(t){return xs(t[4])}function xs(t){for(;null!==t&&!Xt(t);)t=t[4];return t}function Ss(t,e,n,i,s){if(null!=i){let r,o=!1;Xt(i)?r=i:Qt(i)&&(o=!0,i=i[0]);const a=be(i);0===t&&null!==n?null==s?As(e,n,a):Is(e,n,a,s||null,!0):1===t&&null!==n?Is(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ls(t,e);i&&function(t,e,n,i){_e(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!==be(n)&&Ss(e,t,i,r,s);for(let o=Kt;o<n.length;o++){const s=n[o];Hs(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function Os(t,e,n){return _e(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Es(t,e){const n=t[9],i=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,Re(s,-1)),n.splice(i,1)}function Ts(t,e){if(t.length<=Kt)return;const n=Kt+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&Es(r,i),e>0&&(t[n-1][4]=i[4]);const o=si(t,Kt+e);Hs(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 Ps(t,e){if(!(256&e[2])){const n=e[11];_e(n)&&n.destroyNode&&Hs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Rs(t[1],t);for(;e;){let n=null;if(Qt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Qt(e)&&Rs(e[1],e),e=e[3];null===e&&(e=t),Qt(e)&&Rs(e[1],e),n=e&&e[4]}e=n}}(e)}}function Rs(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 bn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(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):be(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&&_e(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Xt(e[3])){n!==e[3]&&Es(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Ms(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===kt.None||e===kt.Emulated)return null}return we(i,n)}(t,e.parent,n)}function Is(t,e,n,i,s){_e(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function As(t,e,n){_e(t)?t.appendChild(e,n):e.appendChild(n)}function Ds(t,e,n,i,s){null!==i?Is(t,e,n,i,s):As(t,e,n)}function Ls(t,e){return _e(t)?t.parentNode(e):e.parentNode}function Fs(t,e,n){return Ns(t,e,n)}let Ns=function(t,e,n){return 40&t.type?we(t,n):null};function Bs(t,e,n,i){const s=Ms(t,i,e),r=e[11],o=Fs(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)Ds(r,s,n[a],o,!1);else Ds(r,s,n,o,!1)}function js(t,e){if(null!==e){const n=e.type;if(3&n)return we(e,t);if(4&n)return zs(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return js(t,n);{const n=t[e.index];return Xt(n)?zs(-1,n):be(n)}}if(32&n)return vs(e,t)()||be(t[e.index]);{const n=t[16],i=n[6],s=ws(n),r=i.projection[e.projection];return null!=r?js(s,r):js(t,e.next)}}return null}function zs(t,e){const n=Kt+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return js(t,i)}return e[7]}function Vs(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&ps(be(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Vs(t,e,n.child,i,s,r,!1),Ss(e,t,s,a,r);else if(32&l){const o=vs(n,i);let l;for(;l=o();)Ss(e,t,s,l,r);Ss(e,t,s,a,r)}else 16&l?$s(t,e,i,n,s,r):Ss(e,t,s,a,r);n=o?n.projectionNext:n.next}}function Hs(t,e,n,i,s,r){Vs(n,i,t.firstChild,e,s,r,!1)}function $s(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++)Ss(e,t,s,a[l],r);else Vs(t,e,a,o[3],s,r,!0)}function Us(t,e,n){_e(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Ws(t,e,n){_e(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function qs(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 Zs="ng-template";function Ys(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==qs(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 Gs(t){return 4===t.type&&t.value!==Zs}function Ks(t,e,n){return e===(4!==t.type||n?t.value:Zs)}function Qs(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(wn(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&&!Ks(t,l,n)||""===l&&1===e.length){if(Xs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!Ys(t.attrs,c,n)){if(Xs(i))return!1;o=!0}continue}const h=Js(8&i?"class":l,s,Gs(t),n);if(-1===h){if(Xs(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!==qs(e,c,0)||2&i&&c!==t){if(Xs(i))return!1;o=!0}}}}else{if(!o&&!Xs(i)&&!Xs(l))return!1;if(o&&Xs(l))continue;o=!1,i=l|1&i}}return Xs(i)||o}function Xs(t){return 0==(1&t)}function Js(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 tr(t,e,n=!1){for(let i=0;i<e.length;i++)if(Qs(t,e[i],n))return!0;return!1}function er(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 nr(t,e){return t?":not("+e.trim()+")":e}function ir(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||Xs(o)||(e+=nr(r,s),s=""),i=o,r=r||!Xs(i);n++}return""!==s&&(e+=nr(r,s)),e}const sr={};function rr(t){or(De(),Ae(),an()+t,Ve())}function or(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&pn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&mn(e,i,0,n)}ln(n)}function ar(t,e){return t<<17|e<<2}function lr(t){return t>>17&32767}function cr(t){return 2|t}function hr(t){return(131068&t)>>2}function ur(t,e){return-131069&t|e<<2}function dr(t){return 1|t}function pr(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];Qe(s),n.contentQueries(2,e[r],r)}}}function mr(t,e,n,i,s,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=s,h[2]=140|i,Pe(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 fr(t,e,n,i,s){let r=t.data[e];if(null===r)r=function(t,e,n,i,s){const r=Ne(),o=je(),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),Me.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const t=function(){const t=Me.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return Be(r,!0),r}function gr(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 _r(t,e,n){tn(e);try{const i=t.viewQuery;null!==i&&Zr(1,i,n);const s=t.template;null!==s&&vr(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&pr(t,e),t.staticViewQueries&&Zr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)Hr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,on()}}function yr(t,e,n,i){const s=e[2];if(256==(256&s))return;tn(e);const r=Ve();try{Pe(e),Me.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&vr(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&pn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&mn(e,n,0,null),fn(e,0)}if(function(t){for(let e=Cs(t);null!==e;e=ks(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])&&Re(i,1),n[2]|=1024}}}(e),function(t){for(let e=Cs(t);null!==e;e=ks(e))for(let t=Kt;t<e.length;t++){const n=e[t],i=n[1];Ee(n)&&yr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&pr(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&pn(e,n)}else{const n=t.contentHooks;null!==n&&mn(e,n,1),fn(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)ln(~i);else{const s=i,r=n[++t],o=n[++t];Ze(r,s),o(2,e[s])}}}finally{ln(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)zr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Zr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&pn(e,n)}else{const n=t.viewHooks;null!==n&&mn(e,n,2),fn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Re(e[3],-1))}finally{on()}}function br(t,e,n,i){const s=e[10],r=!Ve(),o=Oe(e);try{r&&!o&&s.begin&&s.begin(),o&&_r(t,e,i),yr(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function vr(t,e,n,i,s){const r=an();try{ln(-1),2&i&&e.length>Gt&&or(t,e,Gt,Ve()),n(i,s)}finally{ln(r)}}function wr(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 Cr(t,e,n){Ie()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Mn(n,e),ps(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ne(i);r&&Fr(e,n,i);const l=$n(e,t,a,n);ps(l,e),null!==o&&Nr(0,a-s,l,i,0,o),r&&(xe(n.index,e)[8]=l)}}(t,e,n,we(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=n.index,o=Me.lFrame.currentDirectiveIndex;try{ln(r);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];Ye(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Mr(i,s)}}finally{ln(-1),Ye(o)}}(t,e,n))}function kr(t,e,n=we){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 xr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Sr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Sr(t,e,n,i,s,r,o,a,l,c){const h=Gt+i,u=h+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:sr);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 Or(t,e,n,i){const s=Gr(e);null===n?s.push(i):(s.push(n),t.firstCreatePass&&Kr(t).push(i,s.length-1))}function Er(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 Tr(t,e,n,i,s,r,o,a){const l=we(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[i])?(Jr(t,n,c,i,s),te(e)&&function(t,e){const n=xe(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,_e(r)?r.setProperty(l,i,s):Cn(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function Pr(t,e,n,i){let s=!1;if(Ie()){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];tr(n,o.selectors,!1)&&(s||(s=[]),Ln(Mn(n,e),t,o.type),ne(o)?(Ir(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){s=!0,Dr(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=gr(t,e,r.length,null);for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=kn(n.mergedAttrs,c.hostAttrs),Lr(t,n,e,l,c),Ar(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||Gs(e)?null:Br(n,s);r.push(c),o=Er(n,l,o),a=Er(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 se("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=kn(n.mergedAttrs,n.attrs),s}function Rr(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 Mr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ir(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ar(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 Dr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Lr(t,e,n,i,s){t.data[i]=s;const r=s.factory||(s.factory=ie(s.type)),o=new bn(r,ne(s),null);t.blueprint[i]=o,n[i]=o,Rr(t,e,0,i,gr(t,n,s.hostVars,sr),s)}function Fr(t,e,n){const i=we(e,t),s=xr(n),r=t[10],o=$r(t,mr(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=o}function Nr(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 Br(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 jr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function zr(t,e){const n=xe(e,t);if(Ee(n)){const t=n[1];80&n[2]?yr(t,n,t.template,n[8]):n[5]>0&&Vr(n)}}function Vr(t){for(let n=Cs(t);null!==n;n=ks(n))for(let t=Kt;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];yr(t,e,t.template,e[8])}else e[5]>0&&Vr(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=xe(e[n],t);Ee(i)&&i[5]>0&&Vr(i)}}function Hr(t,e){const n=xe(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),_r(i,n,n[8])}function $r(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ur(t){for(;t;){t[2]|=64;const e=ws(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Wr(t,e,n){const i=e[10];i.begin&&i.begin();try{yr(t,e,t.template,n)}catch(s){throw Xr(e,s),s}finally{i.end&&i.end()}}function qr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Se(n),s=i[1];br(s,i,s.template,n)}}(t[8])}function Zr(t,e,n){Qe(0),e(t,n)}const Yr=(()=>Promise.resolve(null))();function Gr(t){return t[7]||(t[7]=[])}function Kr(t){return t.cleanup||(t.cleanup=[])}function Qr(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 Xr(t,e){const n=t[9],i=n?n.get(ds,null):null;i&&i.handleError(e)}function Jr(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 to(t,e,n){const i=ve(e,t);!function(t,e,n){_e(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function eo(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=it(s,t):2==r&&(i=it(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}const no=new Xn("INJECTOR",-1);class io{get(t,e=ci){if(e===ci){const e=new Error(`NullInjectorError: No provider for ${nt(t)}!`);throw e.name="NullInjectorError",e}return e}}const so=new Xn("Set Injector scope."),ro={},oo={},ao=[];let lo;function co(){return void 0===lo&&(lo=new io),lo}function ho(t,e=null,n=null,i){return new uo(t,n,e||co(),i)}class uo{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&&ni(e,n=>this.processProvider(n,t,e)),ni([t],t=>this.processInjectorType(t,[],s)),this.records.set(no,fo(void 0,this));const r=this.records.get(so);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:nt(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=ci,n=_t.Default){this.assertNotDestroyed();const i=mi(this);try{if(!(n&_t.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Xn)&&ht(t);e=n&&this.injectableDefInScope(n)?fo(po(t),ro):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&_t.Self?co():this.parent).get(t,e=n&_t.Optional&&e===ci?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(nt(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e[ui]&&s.unshift(e[ui]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=nt(e);if(Array.isArray(e))s=e.map(nt).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):nt(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(hi,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{mi(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(nt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=ot(t)))return!1;let i=dt(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=dt(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ni(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];ni(i,t=>this.processProvider(t,n,i||ao))}}this.injectorDefTypes.add(r),this.records.set(r,fo(i.factory,ro));const a=i.providers;if(null!=a&&!o){const e=t;ni(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=_o(t=ot(t))?t:ot(t&&t.provide);const s=function(t,e,n){return go(t)?fo(void 0,t.useValue):fo(mo(t),ro)}(t);if(_o(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=fo(void 0,ro,!0),e.factory=()=>yi(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===ro&&(e.value=oo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function po(t){const e=ht(t),n=null!==e?e.factory:ie(t);if(null!==n)return n;const i=dt(t);if(null!==i)return i.factory;if(t instanceof Xn)throw new Error(`Token ${nt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ri(e,"?");throw new Error(`Can't resolve all parameters for ${nt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[pt]||t[ft]);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 mo(t,e,n){let i;if(_o(t)){const e=ot(t);return ie(e)||po(e)}if(go(t))i=()=>ot(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...yi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>gi(ot(t.useExisting));else{const e=ot(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ie(e)||po(e);i=()=>new e(...yi(t.deps))}var s;return i}function fo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function go(t){return null!==t&&"object"==typeof t&&di in t}function _o(t){return"function"==typeof t}const yo=function(t,e,n){return function(t,e=null,n=null,i){const s=ho(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let bo=(()=>{class t{static create(t,e){return Array.isArray(t)?yo(t,e,""):yo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=ci,t.NULL=new io,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>gi(no)}),t.__NG_ELEMENT_ID__=-1,t})();function vo(t,e){dn(Se(t)[1],Fe())}function wo(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=Co(t.inputs),e.declaredInputs=Co(t.declaredInputs),e.outputs=Co(t.outputs);const n=s.hostBindings;n&&So(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&ko(t,r),o&&xo(t,o),et(t.inputs,s.inputs),et(t.declaredInputs,s.declaredInputs),et(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===wo&&(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=kn(s.hostAttrs,n=kn(n,s.hostAttrs))}}(i)}function Co(t){return t===Pt?{}:t===Rt?[]:t}function ko(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function xo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function So(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Oo=null;function Eo(){if(!Oo){const t=Tt.Symbol;if(t&&t.iterator)Oo=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&&(Oo=n)}}}return Oo}class To{constructor(t){this.wrapped=t}static wrap(t){return new To(t)}static unwrap(t){return To.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof To}}function Po(t){return!!Ro(t)&&(Array.isArray(t)||!(t instanceof Map)&&Eo()in t)}function Ro(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Mo(t,e,n){return t[e]=n}function Io(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ao(t,e,n,i){const s=Io(t,e,n);return Io(t,e+1,i)||s}function Do(t,e,n,i){const s=Ae();return Io(s,We(),e)&&(De(),function(t,e,n,i,s,r){const o=we(t,e);!function(t,e,n,i,s,r,o){if(null==r)_e(t)?t.removeAttribute(e,s,n):e.removeAttribute(s);else{const a=null==o?re(r):o(r,i||"",s);_e(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)}(cn(),s,t,e,n,i)),Do}function Lo(t,e,n,i){return Io(t,We(),n)?e+re(n)+i:sr}function Fo(t,e,n,i,s,r,o,a){const l=Ae(),c=De(),h=t+Gt,u=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,h=fr(e,t,4,o||null,Te(c,a));Pr(e,n,h,Te(c,l)),dn(e,h);const u=h.tViews=Sr(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];Be(u,!1);const d=l[11].createComment("");Bs(c,l,d,u),ps(d,l),$r(l,l[h]=jr(d,l,d,u)),ee(u)&&Cr(c,l,u),null!=o&&kr(l,u,a)}function No(t){return ke(Me.lFrame.contextLView,Gt+t)}function Bo(t,e=_t.Default){const n=Ae();return null===n?gi(t,e):Bn(Fe(),n,ot(t),e)}function jo(t,e,n){const i=Ae();return Io(i,We(),e)&&Tr(De(),cn(),i,t,e,i[11],n,!1),jo}function zo(t,e,n,i,s){const r=s?"class":"style";Jr(t,n,e.inputs[r],r,i)}function Vo(t,e,n,i){const s=Ae(),r=De(),o=Gt+t,a=s[11],l=s[o]=Os(a,e,Me.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=fr(e,t,2,s,Te(a,r));return Pr(e,n,l,Te(a,o)),null!==l.attrs&&eo(l,l.attrs,!1),null!==l.mergedAttrs&&eo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,r,s,0,e,n,i):r.data[o];Be(c,!0);const h=c.mergedAttrs;null!==h&&vn(a,l,h);const u=c.classes;null!==u&&Ws(a,l,u);const d=c.styles;null!==d&&Us(a,l,d),64!=(64&c.flags)&&Bs(r,s,l,c),0===Me.lFrame.elementDepthCount&&ps(l,s),Me.lFrame.elementDepthCount++,ee(c)&&(Cr(r,s,c),wr(r,c,s)),null!==i&&kr(s,c)}function Ho(){let t=Fe();je()?ze():(t=t.parent,Be(t,!1));const e=t;Me.lFrame.elementDepthCount--;const n=De();n.firstCreatePass&&(dn(n,t),Jt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&zo(n,e,Ae(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&zo(n,e,Ae(),e.stylesWithoutHost,!1)}function $o(t,e,n,i){Vo(t,e,n,i),Ho()}function Uo(t,e,n){const i=Ae(),s=De(),r=t+Gt,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=Te(r,i),a=fr(e,t,8,"ng-container",o);return null!==o&&eo(a,o,!0),Pr(e,n,a,Te(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,s,i,e,n):s.data[r];Be(o,!0);const a=i[r]=i[11].createComment("");Bs(s,i,a,o),ps(a,i),ee(o)&&(Cr(s,i,o),wr(s,o,i)),null!=n&&kr(i,o)}function Wo(){let t=Fe();const e=De();je()?ze():(t=t.parent,Be(t,!1)),e.firstCreatePass&&(dn(e,t),Jt(t)&&e.queries.elementEnd(t))}function qo(t,e,n){Uo(t,e,n),Wo()}function Zo(){return Ae()}function Yo(t){return!!t&&"function"==typeof t.then}function Go(t){return!!t&&"function"==typeof t.subscribe}const Ko=Go;function Qo(t,e,n=!1,i){const s=Ae(),r=De(),o=Fe();return Jo(r,s,s[11],o,t,e,n,i),Qo}function Xo(t,e,n=!1,i){const s=Fe(),r=Ae(),o=De();return Jo(o,r,Qr(Ge(o.data),s,r),s,t,e,n,i),Xo}function Jo(t,e,n,i,s,r,o=!1,a){const l=ee(i),c=t.firstCreatePass&&Kr(t),h=Gr(e);let u=!0;if(3&i.type){const d=we(i,e),p=a?a(d):Pt,m=p.target||d,f=h.length,g=a?t=>a(be(t[i.index])).target:i.index;if(_e(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=ea(i,e,r,!1);const t=n.listen(p.name||m,s,r);h.push(r,t),c&&c.push(s,g,f,f+1)}}else r=ea(i,e,r,!0),m.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,f,o)}else r=ea(i,e,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 ta(t,e,n){try{return!1!==e(n)}catch(i){return Xr(t,i),!1}}function ea(t,e,n,i){return function s(r){if(r===Function)return n;const o=2&t.flags?xe(t.index,e):e;0==(32&e[2])&&Ur(o);let a=ta(e,n,r),l=s.__ngNextListenerFn__;for(;l;)a=ta(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function na(t=1){return function(t){return(Me.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Me.lFrame.contextLView))[8]}(t)}function ia(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?tr(t,r,!0):er(i,r))return s}else n=s}return n}function sa(t){const e=Ae()[16][6];if(!e.projection){const n=e.projection=ri(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?ia(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function ra(t,e=0,n){const i=Ae(),s=De(),r=fr(s,Gt+t,16,null,n||null);null===r.projection&&(r.projection=e),ze(),64!=(64&r.flags)&&function(t,e,n){$s(e[11],0,e,n,Ms(t,n,e),Fs(n.parent||e[6],n,e))}(s,i,r)}const oa=[];function aa(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?lr(r):hr(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];la(t[a],e)&&(l=!0,t[a+1]=i?dr(n):cr(n)),a=i?lr(n):hr(n)}l&&(t[n+1]=i?cr(r):dr(r))}function la(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&li(t,e)>=0}const ca={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ha(t){return t.substring(ca.key,ca.keyEnd)}function ua(t,e){const n=ca.textEnd;return n===e?-1:(e=ca.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ca.key=e,n),da(t,e,n))}function da(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function pa(t,e,n){return _a(t,e,n,!1),pa}function ma(t,e){return _a(t,e,null,!0),ma}function fa(t){ya(oi,ga,t,!0)}function ga(t,e){for(let n=function(t){return function(t){ca.key=0,ca.keyEnd=0,ca.value=0,ca.valueEnd=0,ca.textEnd=t.length}(t),ua(t,da(t,0,ca.textEnd))}(e);n>=0;n=ua(e,n))oi(t,ha(e),!0)}function _a(t,e,n,i){const s=Ae(),r=De(),o=qe(2);r.firstUpdatePass&&va(r,t,o,i),e!==sr&&Io(s,o,e)&&ka(r,r.data[an()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=nt(Ai(t)))),t}(e,n),i,o)}function ya(t,e,n,i){const s=De(),r=qe(2);s.firstUpdatePass&&va(s,null,r,i);const o=Ae();if(n!==sr&&Io(o,r,n)){const a=s.data[an()];if(Oa(a,i)&&!ba(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=it(t,n||"")),zo(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===sr&&(s=oa);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 m,f=null;h===u?(l+=2,c+=2,d!==p&&(f=u,m=p)):null===u||null!==h&&h<u?(l+=2,f=h):(c+=2,f=u,m=p),null!==f&&ka(t,e,n,i,f,m,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 oa;const i=[],s=Ai(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 ba(t,e){return e>=t.expandoStartIndex}function va(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[an()],o=ba(t,n);Oa(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=Ge(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Ca(n=wa(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=wa(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==hr(i))return t[lr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=wa(null,t,e,n[1],i),n=Ca(n,e.attrs,i),function(t,e,n,i){t[lr(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=Ca(i,t[r].hostAttrs,n);return Ca(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=lr(o),l=hr(o);t[i]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||li(t,c)>0)&&(h=!0)}else c=n;if(s)if(0!==l){const e=lr(t[a+1]);t[i+1]=ar(e,a),0!==e&&(t[e+1]=ur(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=ar(a,0),0!==a&&(t[a+1]=ur(t[a+1],i)),a=i;else t[i+1]=ar(l,0),0===a?a=i:t[l+1]=ur(t[l+1],i),l=i;h&&(t[i+1]=cr(t[i+1])),aa(t,c,i,!0),aa(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&li(r,e)>=0&&(n[i+1]=dr(n[i+1]))}(e,c,t,i,r),o=ar(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function wa(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=Ca(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Ca(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]),oi(t,o,!!n||e[++r]))}return void 0===t?null:t}function ka(t,e,n,i,s,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Sa(1==(1&c)?xa(l,e,n,s,hr(c),o):void 0)||(Sa(r)||2==(2&c)&&(r=xa(l,null,n,s,a,o)),function(t,e,n,i,s){const r=_e(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:bs.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|=bs.Important),r?t.setStyle(n,i,s,e):n.style.setProperty(i,s,o?"important":"")}}}(i,o,ve(an(),n),s,r))}function xa(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===sr&&(h=c?oa:void 0);let u=c?ai(h,i):l===i?h:void 0;if(r&&!Sa(u)&&(u=ai(e,i)),Sa(u)&&(a=u,o))return a;const d=t[s+1];s=o?lr(d):hr(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=ai(t,i))}return a}function Sa(t){return void 0!==t}function Oa(t,e){return 0!=(t.flags&(e?16:32))}function Ea(t,e=""){const n=Ae(),i=De(),s=t+Gt,r=i.firstCreatePass?fr(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return _e(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Bs(i,n,o,r),Be(r,!1)}function Ta(t){return Pa("",t,""),Ta}function Pa(t,e,n){const i=Ae(),s=Lo(i,t,e,n);return s!==sr&&to(i,an(),s),Pa}function Ra(t,e,n,i,s){const r=Ae(),o=function(t,e,n,i,s,r){const o=Ao(t,Ue(),n,s);return qe(2),o?e+re(n)+i+re(s)+r:sr}(r,t,e,n,i,s);return o!==sr&&to(r,an(),o),Ra}function Ma(t,e,n){const i=Ae();return Io(i,We(),e)&&Tr(De(),cn(),i,t,e,i[11],n,!0),Ma}function Ia(t,e,n){const i=Ae();if(Io(i,We(),e)){const s=De(),r=cn();Tr(s,r,i,t,e,Qr(Ge(s.data),r,i),n,!0)}return Ia}const Aa=void 0;var Da=["en",[["a","p"],["AM","PM"],Aa],[["AM","PM"],Aa,Aa],[["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"]],Aa,[["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"]],Aa,[["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}",Aa,"{1} 'at' {0}",Aa],[".",",",";","%","+","-","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 La={};function Fa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Na(e);if(n)return n;const i=e.split("-")[0];if(n=Na(i),n)return n;if("en"===i)return Da;throw new Error(`Missing locale data for the locale "${t}".`)}function Na(t){return t in La||(La[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),La[t]}var Ba=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ja="en-US";let za=ja;function Va(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&&(za=t.toLowerCase().replace(/_/g,"-"))}function Ha(t,e,n,i,s){if(t=ot(t),Array.isArray(t))for(let r=0;r<t.length;r++)Ha(t[r],e,n,i,s);else{const r=De(),o=Ae();let a=_o(t)?t:ot(t.provide),l=mo(t);const c=Fe(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(_o(t)||!t.multi){const i=new bn(l,s,Bo),p=Wa(a,e,s?h:h+d,u);-1===p?(Ln(Mn(c,o),r,a),$a(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=Wa(a,e,h+d,u),m=Wa(a,e,h,h+d),f=p>=0&&n[p],g=m>=0&&n[m];if(s&&!g||!s&&!f){Ln(Mn(c,o),r,a);const h=function(t,e,n,i,s){const r=new bn(t,n,Bo);return r.multi=[],r.index=e,r.componentProviders=0,Ua(r,s,i&&!n),r}(s?Za:qa,n.length,s,i,l);!s&&g&&(n[m].providerFactory=h),$a(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else $a(r,t,p>-1?p:m,Ua(n[s?m:p],l,!s&&i));!s&&i&&g&&n[m].componentProviders++}}}function $a(t,e,n,i){const s=_o(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 Ua(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Wa(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function qa(t,e,n,i){return Ya(this.multi,[])}function Za(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=$n(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),Ya(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],Ya(s,r);return r}function Ya(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ga(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=De();if(i.firstCreatePass){const s=ne(t);Ha(n,i.data,i.blueprint,s,!0),Ha(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class Ka{}class Qa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${nt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Xa=(()=>{class t{}return t.NULL=new Qa,t})();function Ja(...t){}function tl(t,e){return new nl(we(t,e))}const el=function(){return tl(Fe(),Ae())};let nl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=el,t})();function il(t){return t instanceof nl?t.nativeElement:t}class sl{}let rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ol(),t})();const ol=function(){const t=Ae(),e=xe(Fe().index,t);return function(t){return t[11]}(Qt(e)?e:t)};let al=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class ll{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const cl=new ll("11.1.2");class hl{constructor(){}supports(t){return Po(t)}create(t){return new dl(t)}}const ul=(t,e)=>e;class dl{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||ul}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<gl(n,i,s)?e:n,o=gl(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=[]),!Po(t))throw new Error(`Error trying to diff '${nt(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[Eo()]();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._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):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)):t=this._addAfter(new pl(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 fl),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 fl),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 pl{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 ml{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 fl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new ml,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 gl(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 _l{constructor(){}supports(t){return t instanceof Map||Ro(t)}create(){return new yl}}class yl{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||Ro(t)))throw new Error(`Error trying to diff '${nt(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 bl(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 bl{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 vl(){return new wl([new hl])}let wl=(()=>{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||vl()),deps:[[t,new Ci,new wi]]}}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=lt({token:t,providedIn:"root",factory:vl}),t})();function Cl(){return new kl([new _l])}let kl=(()=>{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||Cl()),deps:[[t,new Ci,new wi]]}}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=lt({token:t,providedIn:"root",factory:Cl}),t})();function xl(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(be(r)),Xt(r))for(let t=Kt;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&xl(e[1],e,n,i)}const o=n.type;if(8&o)xl(t,e,n.child,i);else if(32&o){const t=vs(n,e);let s;for(;s=t();)i.push(s)}else if(16&o){const t=e[16],s=t[6].projection[n.projection];if(Array.isArray(s))i.push(...s);else{const e=ws(t);xl(e[1],e,s,i,!0)}}n=s?n.projectionNext:n.next}return i}class Sl{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 xl(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Xt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Ts(t,n),si(e,n))}this._attachedToViewContainer=!1}Ps(this._lView[1],this._lView)}onDestroy(t){Or(this._lView[1],this._lView,null,t)}markForCheck(){Ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Wr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){He(!0);try{Wr(t,e,n)}finally{He(!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,Hs(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 Ol extends Sl{constructor(t){super(t),this._view=t}detectChanges(){qr(this._view)}checkNoChanges(){!function(t){He(!0);try{qr(t)}finally{He(!1)}}(this._view)}get context(){return null}}const El=Pl;let Tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=El,t.__ChangeDetectorRef__=!0,t})();function Pl(t=!1){return function(t,e,n){if(!n&&te(t)){const n=xe(t.index,e);return new Sl(n,n)}return 47&t.type?new Sl(e[16],e):null}(Fe(),Ae(),t)}const Rl=[new _l],Ml=new wl([new hl]),Il=new kl(Rl),Al=function(){return Nl(Fe(),Ae())};let Dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Al,t})();const Ll=Dl,Fl=class extends Ll{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=mr(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)),_r(e,n,t),new Sl(n)}};function Nl(t,e){return 4&t.type?new Fl(e,t,tl(t,e)):null}class Bl{}class jl{}const zl=function(){return ql(Fe(),Ae())};let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=zl,t})();const Hl=Vl,$l=class extends Hl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return tl(this._hostTNode,this._hostLView)}get injector(){return new qn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Dn(this._hostTNode,this._hostLView);if(Sn(t)){const e=En(t,this._hostLView),n=On(t);return new qn(e[1].data[n+8],e)}return new qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Ul(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(Bl,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 $l(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],ii(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=zs(s,r),a=n[11],l=Ls(a,r[7]);return null!==l&&function(t,e,n,i,s,r){i[0]=s,i[6]=e,Hs(t,i,n,1,s,r)}(i,r[6],a,n,l,o),t.attachToViewContainerRef(),ii(Wl(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Ul(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Ts(this._lContainer,e);n&&(si(Wl(this._lContainer),e),Ps(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Ts(this._lContainer,e);return n&&null!=si(Wl(this._lContainer),e)?new Sl(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Ul(t){return t[8]}function Wl(t){return t[8]||(t[8]=[])}function ql(t,e){let n;const i=e[t.index];if(Xt(i))n=i;else{let s;if(8&t.type)s=be(i);else{const n=e[11];s=n.createComment("");const i=we(t,e);Is(n,Ls(n,i),s,function(t,e){return _e(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=jr(i,e,s,t),$r(e,n)}return new $l(n,t,e)}const Zl={};class Yl extends Xa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Zt(t);return new Ql(e,this.ngModule)}}function Gl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Kl=new Xn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ms});class Ql extends Ka{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ir).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Gl(this.componentDef.inputs)}get outputs(){return Gl(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,Zl,s);return r!==Zl||i===Zl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(sl,ye),o=s.get(al,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(_e(t))return t.selectRootElement(e,n===kt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Os(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?me:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:ms,clean:Yr,playerHandler:null,flags:0},d=Sr(0,null,null,1,0,null,null,null,null,null),p=mr(null,d,u,h,null,null,r,a,o,s);let m,f;tn(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=fr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(eo(a,l,!0),null!==t&&(vn(s,t,l),null!==a.classes&&Ws(s,t,a.classes),null!==a.styles&&Us(s,t,a.styles)));const c=i.createRenderer(t,e),h=mr(n,xr(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Ln(Mn(a,n),o,e.type),Ir(o,a),Dr(a,n.length,1)),$r(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)vn(a,c,["ng-version",cl.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(!Xs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&vn(a,c,t),e&&e.length>0&&Ws(a,c,e.join(" "))}if(f=Ce(d,Gt),void 0!==e){const t=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}m=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Fe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Lr(t,i,e,gr(t,e,1,null),n));const s=$n(e,t,i.directiveStart,i);ps(s,e);const r=we(i,e);return r&&ps(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=Fe();e.contentQueries(1,o,t.directiveStart)}const a=Fe();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ln(a.index),Rr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Mr(e,o)),o}(t,this.componentDef,p,u,[vo]),_r(d,p,null)}finally{on()}return new Xl(this.componentType,m,tl(f,p),p,f)}}class Xl 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 Ol(i),this.componentType=t}get injector(){return new qn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Jl=new Map;class tc extends Bl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yl(this);const n=Yt(t),i=t[Lt]||null;i&&Va(i),this._bootstrapComponents=ys(n.bootstrap),this._r3Injector=ho(t,e,[{provide:Bl,useValue:this},{provide:Xa,useValue:this.componentFactoryResolver}],nt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=bo.THROW_IF_NOT_FOUND,n=_t.Default){return t===bo||t===Bl||t===no?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 ec extends jl{constructor(t){super(),this.moduleType=t,null!==Yt(t)&&function(t){const e=new Set;!function t(n){const i=Yt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${nt(e)} vs ${nt(e.name)}`)}(s,Jl.get(s),n),Jl.set(s,n));const r=ys(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new tc(this.moduleType,t)}}function nc(t,e,n){const i=$e()+t,s=Ae();return s[i]===sr?Mo(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function ic(t,e,n,i){return rc(Ae(),$e(),t,e,n,i)}function sc(t,e){const n=t[e];return n===sr?void 0:n}function rc(t,e,n,i,s,r){const o=e+n;return Io(t,o,s)?Mo(t,o+1,r?i.call(r,s):i(s)):sc(t,o+1)}function oc(t,e,n,i,s,r,o){const a=e+n;return Ao(t,a,s,r)?Mo(t,a+2,o?i.call(o,s,r):i(s,r)):sc(t,a+2)}function ac(t,e){const n=De();let i;const s=t+Gt;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new se("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=ie(i.type)),o=bt(Bo);try{const t=Pn(!1),e=r();return Pn(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Ae(),s,e),e}finally{bt(o)}}function lc(t,e,n){const i=t+Gt,s=Ae(),r=ke(s,i);return dc(s,uc(s,i)?rc(s,$e(),e,r.transform,n,r):r.transform(n))}function cc(t,e,n,i){const s=t+Gt,r=Ae(),o=ke(r,s);return dc(r,uc(r,s)?oc(r,$e(),e,o.transform,n,i,o):o.transform(n,i))}function hc(t,e,n,i,s){const r=t+Gt,o=Ae(),a=ke(o,r);return dc(o,uc(o,r)?function(t,e,n,i,s,r,o,a){const l=e+n;return function(t,e,n,i,s){const r=Ao(t,e,n,i);return Io(t,e+2,s)||r}(t,l,s,r,o)?Mo(t,l+3,a?i.call(a,s,r,o):i(s,r,o)):sc(t,l+3)}(o,$e(),e,a.transform,n,i,s,a):a.transform(n,i,s))}function uc(t,e){return t[1].data[e].pure}function dc(t,e){return To.isWrapped(e)&&(e=To.unwrap(e),t[Ue()]=sr),e}const pc=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return t instanceof u&&t.add(o),o}};function mc(){return this._results[Eo()]()}class fc{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=Eo(),n=fc.prototype;n[e]||(n[e]=mc)}get changes(){return this._changes||(this._changes=new pc)}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=ei(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()}}class gc{constructor(t){this.queryList=t,this.matches=null}clone(){return new gc(this.queryList)}setDirty(){this.queryList.setDirty()}}class _c{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 _c(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!==Mc(t,e).matches&&this.queries[e].setDirty()}}class yc{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class bc{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 bc(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 vc{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 vc(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,wc(e,s)),this.matchTNodeWithReadOption(t,e,Hn(e,t,s,!1,!1))}else n===Dl?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Hn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===nl||i===Vl||i===Dl&&4&e.type)this.addMatch(e.index,-2);else{const n=Hn(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 wc(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 Cc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?tl(t,e):4&t.type?Nl(t,e):null}(e,t):-2===n?function(t,e,n){return n===nl?tl(e,t):n===Dl?Nl(e,t):n===Vl?ql(e,t):void 0}(t,e,i):$n(t,t[1],n,e)}function kc(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:Cc(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function xc(t,e,n,i){const s=t.queries.getByIndex(n),r=s.matches;if(null!==r){const o=kc(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]&&xc(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];xc(n[1],n,s,i)}}}}}return i}function Sc(t){const e=Ae(),n=De(),i=Ke();Qe(i+1);const s=Mc(n,i);if(t.dirty&&Oe(e)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?xc(n,e,i,[]):kc(n,e,s,i);t.reset(r,il),t.notifyOnChanges()}return!0}return!1}function Oc(t,e,n){const i=De();i.firstCreatePass&&(Rc(i,new yc(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Pc(i,Ae(),e)}function Ec(t,e,n,i){const s=De();if(s.firstCreatePass){const r=Fe();Rc(s,new yc(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)}Pc(s,Ae(),n)}function Tc(){return t=Ae(),e=Ke(),t[19].queries[e].queryList;var t,e}function Pc(t,e,n){const i=new fc(4==(4&n));Or(t,e,i,i.destroy),null===e[19]&&(e[19]=new _c),e[19].queries.push(new gc(i))}function Rc(t,e,n){null===t.queries&&(t.queries=new bc),t.queries.track(new vc(e,n))}function Mc(t,e){return t.queries.getByIndex(e)}function Ic(t,e){return Nl(t,e)}const Ac=new Xn("Application Initializer");let Dc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=Ja,this.reject=Ja,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]();Yo(e)&&t.push(e)}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)(gi(Ac,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Lc=new Xn("AppId"),Fc={provide:Lc,useFactory:function(){return`${Nc()}${Nc()}${Nc()}`},deps:[]};function Nc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bc=new Xn("Platform Initializer"),jc=new Xn("Platform ID"),zc=new Xn("appBootstrapListener");let Vc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Hc=new Xn("LocaleId"),$c=new Xn("DefaultCurrencyCode");class Uc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wc=function(t){return new ec(t)},qc=Wc,Zc=function(t){return Promise.resolve(Wc(t))},Yc=function(t){const e=Wc(t),n=ys(Yt(t).declarations).reduce((t,e)=>{const n=Zt(e);return n&&t.push(new Ql(n)),t},[]);return new Uc(e,n)},Gc=Yc,Kc=function(t){return Promise.resolve(Yc(t))};let Qc=(()=>{class t{constructor(){this.compileModuleSync=qc,this.compileModuleAsync=Zc,this.compileModuleAndAllComponentsSync=Gc,this.compileModuleAndAllComponentsAsync=Kc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Xc=(()=>Promise.resolve(0))();function Jc(t){"undefined"==typeof Zone?Xc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class th{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pc(!1),this.onMicrotaskEmpty=new pc(!1),this.onStable=new pc(!1),this.onError=new pc(!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=Tt.requestAnimationFrame,e=Tt.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){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ih(t),nh(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ih(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return sh(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),rh(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return sh(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),rh(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,ih(t),nh(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(!th.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(th.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,eh,Ja,Ja);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 eh={};function nh(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 ih(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function sh(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rh(t){t._nesting--,nh(t)}class oh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pc,this.onMicrotaskEmpty=new pc,this.onStable=new pc,this.onError=new pc}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 ah=(()=>{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:()=>{th.assertNotInAngularZone(),Jc(()=>{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())Jc(()=>{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/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(gi(th))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),lh=(()=>{class t{constructor(){this._applications=new Map,uh.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 uh.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class ch{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let hh,uh=new ch,dh=!0,ph=!1;function mh(){return ph=!0,dh}const fh=new Xn("AllowMultipleToken");class gh{constructor(t,e){this.name=t,this.token=e}}function _h(t,e,n=[]){const i=`Platform: ${e}`,s=new Xn(i);return(e=[])=>{let r=yh();if(!r||r.injector.get(fh,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:so,useValue:"platform"});!function(t){if(hh&&!hh.destroyed&&!hh.injector.get(fh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hh=t.get(bh);const e=t.get(Bc,null);e&&e.forEach(t=>t())}(bo.create({providers:t,name:i}))}return function(t){const e=yh();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 yh(){return hh&&!hh.destroyed?hh:null}let bh=(()=>{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 oh:("zone.js"===t?void 0:t)||new th({enableLongStackTrace:mh(),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:th,useValue:n}];return n.run(()=>{const e=bo.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(ds,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(()=>{Ch(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Yo(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(Dc);return t.runInitializers(),t.donePromise.then(()=>(Va(s.injector.get(Hc,ja)||ja),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=vh({},e);return function(t,e,n){const i=new ec(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(wh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${nt(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)(gi(bo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function vh(t,e){return Array.isArray(e)?e.reduce(vh,t):Object.assign(Object.assign({},t),e)}let wh=(()=>{class t{constructor(t,e,n,i,s,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,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 o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{th.assertNotInAngularZone(),Jc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{th.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(J()))}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 Ka?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Bl),s=n.create(bo.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(ah,null),a=o&&s.injector.get(lh);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Ch(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),mh()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ch(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(zc,[]).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)(gi(th),gi(Vc),gi(bo),gi(ds),gi(Xa),gi(Dc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Ch(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class kh{}class xh{}const Sh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Oh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Sh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Eh(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("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Eh(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(gi(Qc),gi(xh,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Eh(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Th=_h(null,"core",[{provide:jc,useValue:"unknown"},{provide:bh,deps:[bo]},{provide:lh,deps:[]},{provide:Vc,deps:[]}]),Ph=[{provide:wh,useClass:wh,deps:[th,Vc,bo,ds,Xa,Dc]},{provide:Kl,deps:[th],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Dc,useClass:Dc,deps:[[new wi,Ac]]},{provide:Qc,useClass:Qc,deps:[]},Fc,{provide:wl,useFactory:function(){return Ml},deps:[]},{provide:kl,useFactory:function(){return Il},deps:[]},{provide:Hc,useFactory:function(t){return Va(t=t||"undefined"!=typeof $localize&&$localize.locale||ja),t},deps:[[new vi(Hc),new wi,new Ci]]},{provide:$c,useValue:"USD"}];let Rh=(()=>{class t{constructor(t){}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(wh))},providers:Ph}),t})(),Mh=null;function Ih(){return Mh}const Ah=new Xn("DocumentToken");let Dh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Lh,token:t,providedIn:"platform"}),t})();function Lh(){return gi(Nh)}const Fh=new Xn("Location Initialized");let Nh=(()=>{class t extends Dh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Ih().getLocation(),this._history=Ih().getHistory()}getBaseHrefFromDOM(){return Ih().getBaseHref(this._doc)}onPopState(t){Ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Bh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Bh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({factory:jh,token:t,providedIn:"platform"}),t})();function Bh(){return!!window.history.pushState}function jh(){return new Nh(gi(Ah))}function zh(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 Vh(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 Hh(t){return t&&"?"!==t[0]?"?"+t:t}let $h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:Uh,token:t,providedIn:"root"}),t})();function Uh(t){const e=gi(Ah).location;return new qh(gi(Dh),e&&e.origin||"")}const Wh=new Xn("appBaseHref");let qh=(()=>{class t extends $h{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return zh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Hh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+Hh(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+Hh(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(gi(Dh),gi(Wh,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Zh=(()=>{class t extends $h{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){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=zh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+Hh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+Hh(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(gi(Dh),gi(Wh,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(t,e){this._subject=new pc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Vh(Kh(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+Hh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Kh(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+Hh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(gi($h),gi(Dh))},t.normalizeQueryParams=Hh,t.joinWithSlash=zh,t.stripTrailingSlash=Vh,t.\u0275prov=lt({factory:Gh,token:t,providedIn:"root"}),t})();function Gh(){return new Yh(gi($h),gi(Dh))}function Kh(t){return t.replace(/\/index.html$/,"")}var Qh=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),Xh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Jh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),tu=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),eu=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),nu=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function iu(t,e){return lu(Fa(t)[Ba.DateFormat],e)}function su(t,e){return lu(Fa(t)[Ba.TimeFormat],e)}function ru(t,e){return lu(Fa(t)[Ba.DateTimeFormat],e)}function ou(t,e){const n=Fa(t),i=n[Ba.NumberSymbols][e];if(void 0===i){if(e===nu.CurrencyDecimal)return n[Ba.NumberSymbols][nu.Decimal];if(e===nu.CurrencyGroup)return n[Ba.NumberSymbols][nu.Group]}return i}function au(t){if(!t[Ba.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ba.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function lu(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function cu(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const hu=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,uu={},du=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var pu=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),mu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),fu=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function gu(t,e,n,i){let s=function(t){if(Tu(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,i=1]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(hu))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!Tu(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=_u(n,e)||e;let r,o=[];for(;e;){if(r=du.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();i&&(a=Eu(i,a),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Eu(e,i)-i))}(s,i));let l="";return o.forEach(t=>{const e=function(t){if(Ou[t])return Ou[t];let e;switch(t){case"G":case"GG":case"GGG":e=wu(fu.Eras,tu.Abbreviated);break;case"GGGG":e=wu(fu.Eras,tu.Wide);break;case"GGGGG":e=wu(fu.Eras,tu.Narrow);break;case"y":e=vu(mu.FullYear,1,0,!1,!0);break;case"yy":e=vu(mu.FullYear,2,0,!0,!0);break;case"yyy":e=vu(mu.FullYear,3,0,!1,!0);break;case"yyyy":e=vu(mu.FullYear,4,0,!1,!0);break;case"Y":e=Su(1);break;case"YY":e=Su(2,!0);break;case"YYY":e=Su(3);break;case"YYYY":e=Su(4);break;case"M":case"L":e=vu(mu.Month,1,1);break;case"MM":case"LL":e=vu(mu.Month,2,1);break;case"MMM":e=wu(fu.Months,tu.Abbreviated);break;case"MMMM":e=wu(fu.Months,tu.Wide);break;case"MMMMM":e=wu(fu.Months,tu.Narrow);break;case"LLL":e=wu(fu.Months,tu.Abbreviated,Jh.Standalone);break;case"LLLL":e=wu(fu.Months,tu.Wide,Jh.Standalone);break;case"LLLLL":e=wu(fu.Months,tu.Narrow,Jh.Standalone);break;case"w":e=xu(1);break;case"ww":e=xu(2);break;case"W":e=xu(1,!0);break;case"d":e=vu(mu.Date,1);break;case"dd":e=vu(mu.Date,2);break;case"E":case"EE":case"EEE":e=wu(fu.Days,tu.Abbreviated);break;case"EEEE":e=wu(fu.Days,tu.Wide);break;case"EEEEE":e=wu(fu.Days,tu.Narrow);break;case"EEEEEE":e=wu(fu.Days,tu.Short);break;case"a":case"aa":case"aaa":e=wu(fu.DayPeriods,tu.Abbreviated);break;case"aaaa":e=wu(fu.DayPeriods,tu.Wide);break;case"aaaaa":e=wu(fu.DayPeriods,tu.Narrow);break;case"b":case"bb":case"bbb":e=wu(fu.DayPeriods,tu.Abbreviated,Jh.Standalone,!0);break;case"bbbb":e=wu(fu.DayPeriods,tu.Wide,Jh.Standalone,!0);break;case"bbbbb":e=wu(fu.DayPeriods,tu.Narrow,Jh.Standalone,!0);break;case"B":case"BB":case"BBB":e=wu(fu.DayPeriods,tu.Abbreviated,Jh.Format,!0);break;case"BBBB":e=wu(fu.DayPeriods,tu.Wide,Jh.Format,!0);break;case"BBBBB":e=wu(fu.DayPeriods,tu.Narrow,Jh.Format,!0);break;case"h":e=vu(mu.Hours,1,-12);break;case"hh":e=vu(mu.Hours,2,-12);break;case"H":e=vu(mu.Hours,1);break;case"HH":e=vu(mu.Hours,2);break;case"m":e=vu(mu.Minutes,1);break;case"mm":e=vu(mu.Minutes,2);break;case"s":e=vu(mu.Seconds,1);break;case"ss":e=vu(mu.Seconds,2);break;case"S":e=vu(mu.FractionalSeconds,1);break;case"SS":e=vu(mu.FractionalSeconds,2);break;case"SSS":e=vu(mu.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Cu(pu.Short);break;case"ZZZZZ":e=Cu(pu.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Cu(pu.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Cu(pu.Long);break;default:return null}return Ou[t]=e,e}(t);l+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function _u(t,e){const n=function(t){return Fa(t)[Ba.LocaleId]}(t);if(uu[n]=uu[n]||{},uu[n][e])return uu[n][e];let i="";switch(e){case"shortDate":i=iu(t,eu.Short);break;case"mediumDate":i=iu(t,eu.Medium);break;case"longDate":i=iu(t,eu.Long);break;case"fullDate":i=iu(t,eu.Full);break;case"shortTime":i=su(t,eu.Short);break;case"mediumTime":i=su(t,eu.Medium);break;case"longTime":i=su(t,eu.Long);break;case"fullTime":i=su(t,eu.Full);break;case"short":const e=_u(t,"shortTime"),n=_u(t,"shortDate");i=yu(ru(t,eu.Short),[e,n]);break;case"medium":const s=_u(t,"mediumTime"),r=_u(t,"mediumDate");i=yu(ru(t,eu.Medium),[s,r]);break;case"long":const o=_u(t,"longTime"),a=_u(t,"longDate");i=yu(ru(t,eu.Long),[o,a]);break;case"full":const l=_u(t,"fullTime"),c=_u(t,"fullDate");i=yu(ru(t,eu.Full),[l,c])}return i&&(uu[n][e]=i),i}function yu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function bu(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),r+o}function vu(t,e,n=0,i=!1,s=!1){return function(r,o){let a=function(t,e){switch(t){case mu.FullYear:return e.getFullYear();case mu.Month:return e.getMonth();case mu.Date:return e.getDate();case mu.Hours:return e.getHours();case mu.Minutes:return e.getMinutes();case mu.Seconds:return e.getSeconds();case mu.FractionalSeconds:return e.getMilliseconds();case mu.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===mu.Hours)0===a&&-12===n&&(a=12);else if(t===mu.FractionalSeconds)return l=e,bu(a,3).substr(0,l);var l;const c=ou(o,nu.MinusSign);return bu(a,e,c,i,s)}}function wu(t,e,n=Jh.Format,i=!1){return function(s,r){return function(t,e,n,i,s,r){switch(n){case fu.Months:return function(t,e,n){const i=Fa(t),s=lu([i[Ba.MonthsFormat],i[Ba.MonthsStandalone]],e);return lu(s,n)}(e,s,i)[t.getMonth()];case fu.Days:return function(t,e,n){const i=Fa(t),s=lu([i[Ba.DaysFormat],i[Ba.DaysStandalone]],e);return lu(s,n)}(e,s,i)[t.getDay()];case fu.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=Fa(t);return au(e),(e[Ba.ExtraData][2]||[]).map(t=>"string"==typeof t?cu(t):[cu(t[0]),cu(t[1])])}(e),n=function(t,e,n){const i=Fa(t);au(i);const s=lu([i[Ba.ExtraData][0],i[Ba.ExtraData][1]],e)||[];return lu(s,n)||[]}(e,s,i),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=o>=e.hours&&a>=e.minutes,s=o<n.hours||o===n.hours&&a<n.minutes;if(e.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(t.hours===o&&t.minutes===a)return!0;return!1});if(-1!==r)return n[r]}return function(t,e,n){const i=Fa(t),s=lu([i[Ba.DayPeriodsFormat],i[Ba.DayPeriodsStandalone]],e);return lu(s,n)}(e,s,i)[o<12?0:1];case fu.Eras:return function(t,e){return lu(Fa(t)[Ba.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,r,t,e,n,i)}}function Cu(t){return function(e,n,i){const s=-1*i,r=ou(n,nu.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case pu.Short:return(s>=0?"+":"")+bu(o,2,r)+bu(Math.abs(s%60),2,r);case pu.ShortGMT:return"GMT"+(s>=0?"+":"")+bu(o,1,r);case pu.Long:return"GMT"+(s>=0?"+":"")+bu(o,2,r)+":"+bu(Math.abs(s%60),2,r);case pu.Extended:return 0===i?"Z":(s>=0?"+":"")+bu(o,2,r)+":"+bu(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function ku(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function xu(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=ku(n),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}return bu(s,t,ou(i,nu.MinusSign))}}function Su(t,e=!1){return function(n,i){return bu(ku(n).getFullYear(),t,ou(i,nu.MinusSign),e)}}const Ou={};function Eu(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Tu(t){return t instanceof Date&&!isNaN(t.valueOf())}const Pu=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ru=".",Mu="0";function Iu(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class Au{}let Du=(()=>{class t extends Au{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Fa(t)[Ba.PluralCase]}(e||this.locale)(t)){case Xh.Zero:return"zero";case Xh.One:return"one";case Xh.Two:return"two";case Xh.Few:return"few";case Xh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(gi(Hc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function Lu(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 Fu=(()=>{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&&(Po(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 ${nt(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)(Bo(wl),Bo(kl),Bo(nl),Bo(rl))},t.\u0275dir=Wt({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Nu{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 Bu=(()=>{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 Nu(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new ju(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 ju(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)(Bo(Vl),Bo(Dl),Bo(wl))},t.\u0275dir=Wt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ju{constructor(t,e){this.record=t,this.view=e}}let zu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Vu,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){Hu("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Hu("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)(Bo(Vl),Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Vu{constructor(){this.$implicit=null,this.ngIf=null}}function Hu(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${nt(e)}'.`)}class $u{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Uu=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Wu=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new $u(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(Dl),Bo(Uu,1))},t.\u0275dir=Wt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),qu=(()=>{class t{constructor(t,e,n){n._addDefault(new $u(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(Dl),Bo(Uu,1))},t.\u0275dir=Wt({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();function Zu(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${nt(t)}'`)}class Yu{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Gu{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ku=new Gu,Qu=new Yu;let Xu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Yo(e))return Ku;if(Go(e))return Qu;throw Zu(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=_t.Default){const e=Pl(!0);if(null!=e||t&_t.Optional)return e;ae("ChangeDetectorRef")}())},t.\u0275pipe=qt({name:"async",type:t,pure:!1}),t})(),Ju=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,s){if(null==e||""===e||e!=e)return null;try{return gu(e,n,s||this.locale,i)}catch(r){throw Zu(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Bo(Hc))},t.\u0275pipe=qt({name:"date",type:t,pure:!0}),t})(),td=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;i=i||this._locale;try{return function(t,e,n){return function(t,e,n,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,s,r,o=Math.abs(t)+"",a=0;for((n=o.indexOf(Ru))>-1&&(o=o.replace(Ru,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===Mu;i++);if(i===(r=o.length))e=[0],n=1;else{for(r--;o.charAt(r)===Mu;)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(Pu);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(h=Iu(e)),null!=n&&(u=Iu(n)),null!=i?d=Iu(i):null!=n&&u>d&&(d=u)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{s=Math.max(0,s),t.integerLen=1,i.length=Math.max(1,o=r+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s<Math.max(0,r);s++)i.push(0);let l=0!==r;const c=e+t.integerLen,h=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0},0);h&&(i.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m<h;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?g=p.splice(m,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(ou(n,i)),g.length&&(a+=ou(n,s)+g.join("")),f&&(a+=ou(n,nu.Exponential)+"+"+f)}else a=ou(n,nu.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(Ru)?s.split(Ru):[s.substring(0,s.lastIndexOf(Mu)+1),s.substring(s.lastIndexOf(Mu)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h<l.length;h++){const t=l.charAt(h);t===Mu?n.minFrac=n.maxFrac=h+1:"#"===t?n.maxFrac=h+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=s.length-n.posPre.length-n.posSuf.length,e=r.indexOf("#");n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Fa(t)[Ba.NumberFormats][e]}(e,Qh.Decimal),ou(e,nu.MinusSign)),e,nu.Group,nu.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),i,n)}catch(s){throw Zu(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(Bo(Hc))},t.\u0275pipe=qt({name:"number",type:t,pure:!0}),t})(),ed=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:Au,useClass:Du}]}),t})(),nd=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new id(gi(Ah),window)}),t})();class id{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){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}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=sd(this.window.history)||sd(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 sd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class rd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new rd,Mh||(Mh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=ad||(ad=document.querySelector("base"),ad)?ad.getAttribute("href"):null;return null==e?null:(n=e,od||(od=document.createElement("a")),od.setAttribute("href",n),"/"===od.pathname.charAt(0)?od.pathname:"/"+od.pathname);var n}resetBaseElement(){ad=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Lu(document.cookie,t)}}let od,ad=null;const ld=new Xn("TRANSITION_ID"),cd=[{provide:Ac,useFactory:function(t,e,n){return()=>{n.get(Dc).donePromise.then(()=>{const n=Ih();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ld,Ah,bo],multi:!0}];class hd{static init(){var t;t=new hd,uh=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.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?Ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const ud=new Xn("EventManagerPlugins");let dd=(()=>{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)(gi(ud),gi(th))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class pd{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Ih().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let md=(()=>{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=lt({token:t,factory:t.\u0275fac}),t})(),fd=(()=>{class t extends md{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Ih().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const gd={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/"},_d=/%COMP%/g;function yd(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?yd(t,s,n):(s=s.replace(_d,t),n.push(s))}return n}function bd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let vd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new wd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case kt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Cd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case kt.ShadowDom:return new kd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=yd(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)(gi(dd),gi(fd),gi(Lc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class wd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(gd[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=gd[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=gd[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&(bs.DashCase|bs.Important)?t.style.setProperty(e,n,i&bs.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&bs.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,bd(n)):this.eventManager.addEventListener(t,e,bd(n))}}class Cd extends wd{constructor(t,e,n,i){super(t),this.component=n;const s=yd(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_d,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_d,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 kd extends wd{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=yd(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 xd=(()=>{class t extends pd{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)(gi(Ah))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Sd=["alt","control","meta","shift"],Od={"\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"},Ed={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"},Td={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Pd=(()=>{class t extends pd{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(()=>Ih().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(Sd.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&&Ed.hasOwnProperty(e)&&(e=Ed[e]))}return Od[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Sd.forEach(i=>{i!=n&&(0,Td[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)(gi(Ah))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Rd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return gi(Md)},token:t,providedIn:"root"}),t})(),Md=(()=>{class t extends Rd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case rs.NONE:return e;case rs.HTML:return Di(e,"HTML")?Ai(e):is(this._doc,String(e)).toString();case rs.STYLE:return Di(e,"Style")?Ai(e):e;case rs.SCRIPT:if(Di(e,"Script"))return Ai(e);throw new Error("unsafe value used in a script context");case rs.URL:return Li(e),Di(e,"URL")?Ai(e):zi(String(e));case rs.RESOURCE_URL:if(Di(e,"ResourceURL"))return Ai(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 Ti(t)}bypassSecurityTrustStyle(t){return new Pi(t)}bypassSecurityTrustScript(t){return new Ri(t)}bypassSecurityTrustUrl(t){return new Mi(t)}bypassSecurityTrustResourceUrl(t){return new Ii(t)}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({factory:function(){return t=gi(no),new Md(t.get(Ah));var t},token:t,providedIn:"root"}),t})();const Id=_h(Th,"browser",[{provide:jc,useValue:"browser"},{provide:Bc,useValue:function(){rd.makeCurrent(),hd.init()},multi:!0},{provide:Ah,useFactory:function(){return function(t){fe=t}(document),document},deps:[]}]),Ad=[[],{provide:so,useValue:"root"},{provide:ds,useFactory:function(){return new ds},deps:[]},{provide:ud,useClass:xd,multi:!0,deps:[Ah,th,jc]},{provide:ud,useClass:Pd,multi:!0,deps:[Ah]},[],{provide:vd,useClass:vd,deps:[dd,fd,Lc]},{provide:sl,useExisting:vd},{provide:md,useExisting:fd},{provide:fd,useClass:fd,deps:[Ah]},{provide:ah,useClass:ah,deps:[th]},{provide:dd,useClass:dd,deps:[ud,th]},[]];let Dd=(()=>{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:Lc,useValue:e.appId},{provide:ld,useExisting:Lc},cd]}}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(t,12))},providers:Ad,imports:[ed,Rh]}),t})();function Ld(...t){let e=t[t.length-1];return S(e)?(t.pop(),B(t,e)):U(t)}"undefined"!=typeof window&&window;class Fd extends k{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 v;return this._value}next(t){super.next(this._value=t)}}const Nd={};function Bd(...t){let e=null,n=null;return S(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 jd(e))}class jd{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new zd(t,this.resultSelector))}}class zd extends D{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Nd),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++){const e=t[n];this.add(A(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,i,s){const r=this.values,o=this.toRespond?r[n]===Nd?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.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 Vd=(()=>{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 Hd(...t){return $(1)(Ld(...t))}const $d=new y(t=>t.complete());function Ud(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):$d}function Wd(t){return new y(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):Ud()).subscribe(e)})}function qd(t,e){return"function"==typeof e?n=>n.pipe(qd((n,i)=>j(t(n,i)).pipe(L((t,s)=>e(n,t,i,s))))):e=>e.lift(new Zd(t))}class Zd{constructor(t){this.project=t}call(t,e){return e.subscribe(new Yd(t,this.project))}}class Yd extends D{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,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new O(this,e,n),r=this.destination;r.add(s),this.innerSubscription=A(this,t,void 0,void 0,s),this.innerSubscription!==s&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}const Gd=(()=>{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 Kd(t){return e=>0===t?Ud():e.lift(new Qd(t))}class Qd{constructor(t){if(this.total=t,this.total<0)throw new Gd}call(t,e){return e.subscribe(new Xd(t,this.total))}}class Xd extends m{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 Jd(...t){const e=t[t.length-1];return S(e)?(t.pop(),n=>Hd(t,n,e)):e=>Hd(t,e)}function tp(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new ep(t,e,n))}}class ep{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new np(t,this.accumulator,this.seed,this.hasSeed))}}class np extends m{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 ip(t,e){return function(n){return n.lift(new sp(t,e))}}class sp{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new rp(t,this.predicate,this.thisArg))}}class rp extends m{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)}}function op(t){return function(e){const n=new ap(t),i=e.lift(n);return n.caught=i}}class ap{constructor(t){this.selector=t}call(t,e){return e.subscribe(new lp(t,this.selector,this.caught))}}class lp extends D{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 O(this,void 0,void 0);this.add(i);const s=A(this,n,void 0,void 0,i);s!==i&&this.add(s)}}}function cp(t,e){return z(t,e,1)}function hp(t){return function(e){return 0===t?Ud():e.lift(new up(t))}}class up{constructor(t){if(this.total=t,this.total<0)throw new Gd}call(t,e){return e.subscribe(new dp(t,this.total))}}class dp extends m{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 pp(t=gp){return e=>e.lift(new mp(t))}class mp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new fp(t,this.errorFactory))}}class fp extends m{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 gp(){return new Vd}function _p(t=null){return e=>e.lift(new yp(t))}class yp{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new bp(t,this.defaultValue))}}class bp extends m{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 vp(t,e){const n=arguments.length>=2;return i=>i.pipe(t?ip((e,n)=>t(e,n,i)):_,Kd(1),n?_p(e):pp(()=>new Vd))}function wp(){}function Cp(t,e,n){return function(i){return i.lift(new kp(t,e,n))}}class kp{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new xp(t,this.nextOrObserver,this.error,this.complete))}}class xp extends m{constructor(t,e,n,s){super(t),this._tapNext=wp,this._tapError=wp,this._tapComplete=wp,this._tapError=n||wp,this._tapComplete=s||wp,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||wp,this._tapError=e.error||wp,this._tapComplete=e.complete||wp)}_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()}}function Sp(t){return e=>e.lift(new Op(t))}class Op{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Ep(t,this.callback))}}class Ep extends m{constructor(t,e){super(t),this.add(new u(e))}}class Tp{constructor(t,e){this.id=t,this.url=e}}class Pp extends Tp{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 Rp extends Tp{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Mp extends Tp{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ip extends Tp{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ap extends Tp{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 Dp extends Tp{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 Lp extends Tp{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 Fp extends Tp{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 Np extends Tp{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 Bp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class zp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $p{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Up{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 Wp="primary";class qp{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 Zp(t){return new qp(t)}function Yp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Gp(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 Kp(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],!Qp(t[s],e[s]))return!1;return!0}function Qp(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 Xp(t){return Array.prototype.concat.apply([],t)}function Jp(t){return t.length>0?t[t.length-1]:null}function tm(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function em(t){return Ko(t)?t:Yo(t)?j(Promise.resolve(t)):Ld(t)}function nm(t,e,n){return n?function(t,e){return Kp(t,e)}(t.queryParams,e.queryParams)&&im(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Qp(t[n],e[n]))}(t.queryParams,e.queryParams)&&sm(t.root,e.root)}function im(t,e){if(!cm(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!im(t.children[n],e.children[n]))return!1}return!0}function sm(t,e){return rm(t,e,e.segments)}function rm(t,e,n){if(t.segments.length>n.length)return!!cm(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!cm(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!sm(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!cm(t.segments,i)&&!!t.children.primary&&rm(t.children.primary,e,s)}}class om{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zp(this.queryParams)),this._queryParamMap}toString(){return dm.serialize(this)}}class am{constructor(t,e){this.segments=t,this.children=e,this.parent=null,tm(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pm(this)}}class lm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Zp(this.parameters)),this._parameterMap}toString(){return vm(this)}}function cm(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class hm{}class um{parse(t){const e=new Sm(t);return new om(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${mm(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${gm(e)}=${gm(t)}`).join("&"):`${gm(e)}=${gm(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const dm=new um;function pm(t){return t.segments.map(t=>vm(t)).join("/")}function mm(t,e){if(!t.hasChildren())return pm(t);if(e){const e=t.children.primary?mm(t.children.primary,!1):"",n=[];return tm(t.children,(t,e)=>{e!==Wp&&n.push(`${e}:${mm(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return tm(t.children,(t,i)=>{i===Wp&&(n=n.concat(e(t,i)))}),tm(t.children,(t,i)=>{i!==Wp&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Wp?[mm(t.children.primary,!1)]:[`${n}:${mm(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${pm(t)}/${e[0]}`:`${pm(t)}/(${e.join("//")})`}}function fm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gm(t){return fm(t).replace(/%3B/gi,";")}function _m(t){return fm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ym(t){return decodeURIComponent(t)}function bm(t){return ym(t.replace(/\+/g,"%20"))}function vm(t){return`${_m(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${_m(t)}=${_m(e[t])}`).join("")}`;var e}const wm=/^[^\/()?;=#]+/;function Cm(t){const e=t.match(wm);return e?e[0]:""}const km=/^[^=?&#]+/,xm=/^[^?&#]+/;class Sm{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new am([],{}):new am([],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 am(t,e)),n}parseSegment(){const t=Cm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new lm(ym(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Cm(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Cm(this.remaining);t&&(n=t,this.capture(n))}t[ym(e)]=ym(n)}parseQueryParam(t){const e=function(t){const e=t.match(km);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(xm);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=bm(e),s=bm(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=Cm(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=Wp);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new am([],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 Om{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=Em(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Em(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Tm(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Tm(t,this._root).map(t=>t.value)}}function Em(t,e){if(t===e.value)return e;for(const n of e.children){const e=Em(t,n);if(e)return e}return null}function Tm(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Tm(t,n);if(i.length)return i.unshift(e),i}return[]}class Pm{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Rm(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Mm extends Om{constructor(t,e){super(t),this.snapshot=e,Nm(this,t)}toString(){return this.snapshot.toString()}}function Im(t,e){const n=function(t,e){const n=new Lm([],{},{},"",{},Wp,e,null,t.root,-1,{});return new Fm("",new Pm(n,[]))}(t,e),i=new Fd([new lm("",{})]),s=new Fd({}),r=new Fd({}),o=new Fd({}),a=new Fd(""),l=new Am(i,s,o,a,r,Wp,e,n.root);return l.snapshot=n.root,new Mm(new Pm(l,[]),n)}class Am{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(L(t=>Zp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Zp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dm(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 Lm{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=Zp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fm extends Om{constructor(t,e){super(e),this.url=t,Nm(this,e)}toString(){return Bm(this._root)}}function Nm(t,e){e.value._routerState=t,e.children.forEach(e=>Nm(t,e))}function Bm(t){const e=t.children.length>0?` { ${t.children.map(Bm).join(", ")} } `:"";return`${t.value}${e}`}function jm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Kp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Kp(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(!Kp(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Kp(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function zm(t,e){var n,i;return Kp(t.params,e.params)&&cm(n=t.url,i=e.url)&&n.every((t,e)=>Kp(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||zm(t.parent,e.parent))}function Vm(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 Vm(t,e,i);return Vm(t,e)})}(t,e,n);return new Pm(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Hm(e,t),t}{const n=new Am(new Fd((i=e.value).url),new Fd(i.params),new Fd(i.queryParams),new Fd(i.fragment),new Fd(i.data),i.outlet,i.component,i),s=e.children.map(e=>Vm(t,e));return new Pm(n,s)}}var i}function Hm(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)Hm(t.children[n],e.children[n])}function $m(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Um(t){return"object"==typeof t&&null!=t&&t.outlets}function Wm(t,e,n,i,s){let r={};return i&&tm(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new om(n.root===t?e:qm(n.root,t,e),r,s)}function qm(t,e,n){const i={};return tm(t.children,(t,s)=>{i[s]=t===e?n:qm(t,e,n)}),new am(t.segments,i)}class Zm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&$m(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Um);if(i&&i!==Jp(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ym{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Gm(t,e,n){if(t||(t=new am([],{})),0===t.segments.length&&t.hasChildren())return Km(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(Um(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(!tf(a,l,e))return r;i+=2}else{if(!tf(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 am(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new am(t.segments.slice(i.pathIndex),t.children),Km(e,0,s)}return i.match&&0===s.length?new am(t.segments,{}):i.match&&!t.hasChildren()?Qm(t,e,n):i.match?Km(t,0,s):Qm(t,e,n)}function Km(t,e,n){if(0===n.length)return new am(t.segments,{});{const i=function(t){return Um(t[0])?t[0].outlets:{[Wp]:t}}(n),s={};return tm(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=Gm(t.children[i],e,n))}),tm(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new am(t.segments,s)}}function Qm(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){const r=n[s];if(Um(r)){const t=Xm(r.outlets);return new am(i,t)}if(0===s&&$m(n[0])){i.push(new lm(t.segments[e].path,Jm(n[0]))),s++;continue}const o=Um(r)?r.outlets.primary:`${r}`,a=s<n.length-1?n[s+1]:null;o&&a&&$m(a)?(i.push(new lm(o,Jm(a))),s+=2):(i.push(new lm(o,{})),s++)}return new am(i,{})}function Xm(t){const e={};return tm(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Qm(new am([],{}),0,t))}),e}function Jm(t){const e={};return tm(t,(t,n)=>e[n]=`${t}`),e}function tf(t,e,n){return t==n.path&&Kp(e,n.parameters)}class ef{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),jm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Rm(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),tm(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=Rm(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const i=Rm(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new $p(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Vp(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(jm(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),nf(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 nf(t){jm(t.value),t.children.forEach(nf)}class sf{constructor(t,e){this.routes=t,this.module=e}}function rf(t){return"function"==typeof t}function of(t){return t instanceof om}const af=Symbol("INITIAL_VALUE");function lf(){return qd(t=>Bd(t.map(t=>t.pipe(Kd(1),Jd(af)))).pipe(tp((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==af)return t;if(i===af&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||of(i))return i}return t},t)},af),ip(t=>t!==af),L(t=>of(t)?t:!0===t),Kd(1)))}let cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&$o(0,"router-outlet")},directives:function(){return[sg]},encapsulation:2}),t})();function hf(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];uf(i,df(e,i))}}function uf(t,e){t.children&&hf(t.children,e)}function df(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function pf(t){const e=t.children&&t.children.map(pf),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Wp&&(n.component=cf),n}function mf(t){return t.outlet||Wp}function ff(t,e){const n=t.filter(t=>mf(t)===e);return n.push(...t.filter(t=>mf(t)!==e)),n}const gf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function _f(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},gf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Gp)(n,t,e);if(!s)return Object.assign({},gf);const r={};tm(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 yf(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>bf(t,e,n)&&mf(n)!==Wp)}(t,n,i)){const s=new am(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&&mf(r)!==Wp){const n=new am([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[mf(r)]=n}return s}(t,e,i,new am(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=>bf(t,e,n))}(t,n,i)){const r=new am(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(bf(t,n,a)&&!s[mf(a)]){const n=new am([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[mf(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 am(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function bf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function vf(t,e,n,i){return!!(mf(t)===i||i!==Wp&&bf(e,n,t))&&("**"===t.path||_f(e,t,n).matched)}function wf(t,e,n){return 0===e.length&&!t.children[n]}class Cf{constructor(t){this.segmentGroup=t||null}}class kf{constructor(t){this.urlTree=t}}function xf(t){return new y(e=>e.error(new Cf(t)))}function Sf(t){return new y(e=>e.error(new kf(t)))}function Of(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ef{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(Bl)}apply(){const t=yf(this.urlTree.root,[],[],this.config).segmentGroup,e=new am(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Wp).pipe(L(t=>this.createUrlTree(Tf(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(op(t=>{if(t instanceof kf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Cf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Wp).pipe(L(e=>this.createUrlTree(Tf(e),t.queryParams,t.fragment))).pipe(op(t=>{if(t instanceof Cf)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 am([],{[Wp]:t}):t;return new om(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new am([],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 j(i).pipe(cp(i=>{const s=n.children[i],r=ff(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(L(t=>({segment:t,outlet:i})))}),tp((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?ip((e,n)=>t(e,n,i)):_,hp(1),n?_p(e):pp(()=>new Vd))}())}expandSegment(t,e,n,i,s,r){return j(n).pipe(cp(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(op(t=>{if(t instanceof Cf)return Ld(null);throw t}))),vp(t=>!!t),op((t,n)=>{if(t instanceof Vd||"EmptyError"===t.name){if(wf(e,i,s))return Ld(new am([],{}));throw new Cf(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return vf(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):xf(e):xf(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("/")?Sf(s):this.lineralizeSegments(n,s).pipe(z(n=>{const s=new am(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}=_f(e,i,s);if(!o)return xf(e);const h=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Sf(h):this.lineralizeSegments(i,h).pipe(z(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?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new am(i,{})))):Ld(new am(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=_f(e,n,i);if(!r)return xf(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(z(t=>{const i=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=yf(e,o,l,r),h=new am(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe(L(t=>new am(o,t)));if(0===r.length&&0===c.length)return Ld(new am(o,{}));const u=mf(n)===s;return this.expandSegment(i,h,r,c,u?Wp:s,!0).pipe(L(t=>new am(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ld(new sf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ld(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(z(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(Yp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ld(new sf([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Ld(i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&rf(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!rf(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return em(r)})).pipe(lf(),Cp(t=>{if(!of(t))return;const e=Yp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),L(t=>!0===t)):Ld(!0)}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ld(n);if(i.numberOfChildren>1||!i.children.primary)return Of(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 om(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return tm(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 tm(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new am(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 Tf(t){const e={};for(const n of Object.keys(t.children)){const i=Tf(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 am(t.segments.concat(e.segments),e.children)}return t}(new am(t.segments,e))}class Pf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Rf{constructor(t,e){this.component=t,this.route=e}}function Mf(t,e,n){const i=t._root;return Af(i,e?e._root:null,n,[i.value])}function If(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 Af(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Rm(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!cm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!cm(t.url,e.url)||!Kp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zm(t,e)||!Kp(t.queryParams,e.queryParams);case"paramsChange":default:return!zm(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Pf(i)):(r.data=o.data,r._resolvedData=o._resolvedData),Af(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Rf(a.outlet.component,o))}else o&&Df(e,a,s),s.canActivateChecks.push(new Pf(i)),Af(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]}),tm(r,(t,e)=>Df(t,n.getContext(e),s)),s}function Df(t,e,n){const i=Rm(t),s=t.value;tm(i,(t,i)=>{Df(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Rf(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Lf{}function Ff(t){return new y(e=>e.error(t))}class Nf{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=yf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Wp);if(null===e)return null;const n=new Lm([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Wp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Pm(n,e),s=new Fm(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Dm(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=ff(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=function(t){const e=[];for(const n of t){if(!Bf(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return i.sort((t,e)=>t.value.outlet===Wp?-1:e.value.outlet===Wp?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 wf(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!vf(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Jp(n).parameters:{};s=new Lm(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Vf(t),mf(t),t.component,t,jf(e),zf(e)+n.length,Hf(t))}else{const i=_f(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new Lm(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Vf(t),mf(t),t.component,t,jf(e),zf(e)+r.length,Hf(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=yf(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 Pm(s,t)]}if(0===a.length&&0===c.length)return[new Pm(s,[])];const h=mf(t)===i,u=this.processSegment(a,l,c,h?Wp:i);return null===u?null:[new Pm(s,u)]}}function Bf(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function jf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function zf(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 Vf(t){return t.data||{}}function Hf(t){return t.resolve||{}}function $f(t){return qd(e=>{const n=t(e);return n?j(n).pipe(L(()=>e)):Ld(e)})}class Uf 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 Wf=new Xn("ROUTES");class qf{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new sf(Xp(i.injector.get(Wf,void 0,_t.Self|_t.Optional)).map(pf),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):em(t()).pipe(z(t=>t instanceof jl?Ld(t):j(this.compiler.compileModuleAsync(t))))}}class Zf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Yf,this.attachRef=null}}class Yf{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 Zf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Gf{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Kf(t){throw t}function Qf(t,e,n){return e.parse("/")}function Xf(t,e){return Ld(null)}let Jf=(()=>{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.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=Kf,this.malformedUriErrorHandler=Qf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Xf,afterPreactivation:Xf},this.urlHandlingStrategy=new Gf,this.routeReuseStrategy=new Uf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(Bl),this.console=s.get(Vc);const l=s.get(th);this.isNgZoneEnabled=l instanceof th&&th.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new om(new am([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qf(r,o,t=>this.triggerEvent(new Bp(t)),t=>this.triggerEvent(new jp(t))),this.routerState=Im(this.currentUrlTree,this.rootComponentType),this.transitions=new Fd({id: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()}setupNavigations(t){const e=this.events;return t.pipe(ip(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),qd(t=>{let n=!1,i=!1;return Ld(t).pipe(Cp(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}}),qd(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ld(t).pipe(qd(t=>{const n=this.transitions.getValue();return e.next(new Pp(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?$d:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,qd(t=>function(t,e,n,i,s){return new Ef(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),Cp(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return z(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new Nf(t,e,n,i,s,r).recognize();return null===o?Ff(new Lf):Ld(o)}catch(o){return Ff(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(L(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Cp(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new Ap(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new Pp(n,this.serializeUrl(i),s,r);e.next(a);const l=Im(i,this.rootComponentType).snapshot;return Ld(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),$d}),$f(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})}),Cp(t=>{const e=new Dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:Mf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return z(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Ld(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(z(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Ld(r.map(r=>{const o=If(r,e,s);let a;if(function(t){return t&&rf(t.canDeactivate)}(o))a=em(o.canDeactivate(t,e,n,i));else{if(!rf(o))throw new Error("Invalid CanDeactivate guard");a=em(o(t,e,n,i))}return a.pipe(vp())})).pipe(lf()):Ld(!0)}(t.component,t.route,n,e,i)),vp(t=>!0!==t,!0))}(o,i,s,t).pipe(z(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(cp(e=>Hd(function(t,e){return null!==t&&e&&e(new zp(t)),Ld(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new Hp(t)),Ld(!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=>Wd(()=>Ld(e.guards.map(s=>{const r=If(s,e.node,n);let o;if(function(t){return t&&rf(t.canActivateChild)}(r))o=em(r.canActivateChild(i,t));else{if(!rf(r))throw new Error("Invalid CanActivateChild guard");o=em(r(i,t))}return o.pipe(vp())})).pipe(lf())));return Ld(s).pipe(lf())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Ld(i.map(i=>Wd(()=>{const s=If(i,e,n);let r;if(function(t){return t&&rf(t.canActivate)}(s))r=em(s.canActivate(e,t));else{if(!rf(s))throw new Error("Invalid CanActivate guard");r=em(s(e,t))}return r.pipe(vp())}))).pipe(lf()):Ld(!0)}(t,e.route,n))),vp(t=>!0!==t,!0))}(i,r,t,e):Ld(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),Cp(t=>{if(of(t.guardsResult)){const e=Yp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new Lp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ip(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Mp(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),$f(t=>{if(t.guards.canActivateChecks.length)return Ld(t).pipe(Cp(t=>{const e=new Fp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),qd(t=>{let n=!1;return Ld(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,z(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Ld(t);let r=0;return j(n).pipe(cp(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Ld({});const r={};return j(s).pipe(z(s=>function(t,e,n,i){const s=If(t,e,i);return em(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(Cp(t=>{r[s]=t}))),hp(1),z(()=>Object.keys(r).length===s.length?Ld(r):$d))}(t._resolve,t,e,i).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Dm(t,n).resolve),null)))}(t.route,e,i,s)),Cp(()=>r++),hp(1),z(e=>r===n.length?Ld(t):$d))})),Cp({next:()=>n=!0,complete:()=>{if(!n){const n=new Mp(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),Cp(t=>{const e=new Np(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),$f(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})}),L(t=>{const e=function(t,e,n){const i=Vm(t,e._root,n?n._root:void 0);return new Mm(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Cp(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.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),L(t=>(new ef(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Cp({next(){n=!0},complete(){n=!0}}),Sp(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Mp(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),op(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=of(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Mp(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 Ip(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return $d}));var s,r,o}))}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,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){hf(t),this.config=t.map(pf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 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 Wm(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Zm(!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 tm(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 Zm(n,e,i)}(n);if(r.toRoot())return Wm(e.root,new am([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Ym(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ym(t,t===e.root,0)}const i=$m(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 Ym(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Km(o.segmentGroup,o.index,r.commands):Gm(o.segmentGroup,o.index,r.commands);return Wm(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=of(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){if(of(t))return nm(this.currentUrlTree,t,e);const n=this.parseUrl(t);return nm(this.currentUrlTree,n,e)}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.events.next(new Rp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}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),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(gi(ti),gi(hm),gi(Yf),gi(Yh),gi(bo),gi(kh),gi(Qc),gi(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),tg=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new k,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:ng(this.skipLocationChange),replaceUrl:ng(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:ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Bo(Jf),Bo(Am),Gn("tabindex"),Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Qo("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:[ce]}),t})(),eg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new k,this.subscription=t.events.subscribe(t=>{t instanceof Rp&&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:ng(this.skipLocationChange),replaceUrl:ng(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:ng(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Bo(Jf),Bo(Am),Bo($h))},t.\u0275dir=Wt({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Qo("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ma("href",e.href,as),Do("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:[ce]}),t})();function ng(t){return""===t||!!t}let ig=(()=>{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 Rp&&this.update()})}ngAfterContentInit(){Ld(this.links.changes,this.linksWithHrefs.changes,Ld(null)).pipe($()).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=j(e).pipe($()).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){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}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)(Bo(Jf),Bo(nl),Bo(rl),Bo(Tl),Bo(tg,8),Bo(eg,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,tg,1),Ec(n,eg,1)),2&t){let t;Sc(t=Tc())&&(e.links=t),Sc(t=Tc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ce]}),t})(),sg=(()=>{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 pc,this.deactivateEvents=new pc,this.name=i||Wp,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 rg(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)(Bo(Yf),Bo(Vl),Bo(Xa),Gn("name"),Bo(Tl))},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class rg{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Am?this.route:t===Yf?this.childContexts:this.parent.get(t,e)}}class og{}class ag{preload(t,e){return Ld(null)}}let lg=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new qf(e,n,e=>t.triggerEvent(new Bp(e)),e=>t.triggerEvent(new jp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ip(t=>t instanceof Rp),cp(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Bl);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 j(n).pipe($(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(gi(Jf),gi(kh),gi(Qc),gi(bo),gi(og))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),cg=(()=>{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 Pp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Rp&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Up&&(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 Up(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)(gi(Jf),gi(nd),gi(void 0))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const hg=new Xn("ROUTER_CONFIGURATION"),ug=new Xn("ROUTER_FORROOT_GUARD"),dg=[Yh,{provide:hm,useClass:um},{provide:Jf,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const h=new Jf(null,t,e,n,i,s,r,Xp(o));if(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){const t=Ih();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[hm,Yf,Yh,bo,kh,Qc,Wf,hg,[class{},new wi],[class{},new wi]]},Yf,{provide:Am,useFactory:function(t){return t.routerState.root},deps:[Jf]},{provide:kh,useClass:Oh},lg,ag,class{preload(t,e){return e().pipe(op(()=>Ld(null)))}},{provide:hg,useValue:{enableTracing:!1}}];function pg(){return new gh("Router",Jf)}let mg=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[dg,yg(e),{provide:ug,useFactory:_g,deps:[[Jf,new wi,new Ci]]},{provide:hg,useValue:n||{}},{provide:$h,useFactory:gg,deps:[Dh,[new vi(Wh),new wi],hg]},{provide:cg,useFactory:fg,deps:[Jf,nd,hg]},{provide:og,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:ag},{provide:gh,multi:!0,useFactory:pg},[bg,{provide:Ac,multi:!0,useFactory:vg,deps:[bg]},{provide:Cg,useFactory:wg,deps:[bg]},{provide:zc,multi:!0,useExisting:Cg}]]}}static forChild(e){return{ngModule:t,providers:[yg(e)]}}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(ug,8),gi(Jf,8))}}),t})();function fg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new cg(t,e,n)}function gg(t,e,n={}){return n.useHash?new Zh(t,e):new qh(t,e)}function _g(t){return"guarded"}function yg(t){return[{provide:Jn,multi:!0,useValue:t},{provide:Wf,multi:!0,useValue:t}]}let bg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Fh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Jf),i=this.injector.get(hg);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Ld(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(hg),n=this.injector.get(lg),i=this.injector.get(cg),s=this.injector.get(Jf),r=this.injector.get(wh);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())}}return t.\u0275fac=function(e){return new(e||t)(gi(bo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function vg(t){return t.appInitializer.bind(t)}function wg(t){return t.bootstrapListener.bind(t)}const Cg=new Xn("Router Initializer");function kg(t){return e=>e.lift(new xg(t))}class xg{constructor(t){this.notifier=t}call(t,e){const n=new Sg(t),i=A(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Sg extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Og=(()=>{class t{constructor(){this.isMobileSubject=new Fd(!1),this.screenSizeSubject=new Fd(0),this.screenSizeSubject.next(window.innerWidth),this.screenSize<993&&this.isMobileSubject.next(!0)}get screenSize(){return this.screenSizeSubject.value}get isMobile(){return this.isMobileSubject.value}onResize(t){this.screenSizeSubject.next(t),this.isMobileSubject.next(t<993)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Eg extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class Tg extends Eg{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}}class Pg extends Tg{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)}}let Rg=(()=>{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 Mg extends Rg{constructor(t,e=Rg.now){super(t,()=>Mg.delegate&&Mg.delegate!==this?Mg.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Mg.delegate&&Mg.delegate!==this?Mg.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}}}class Ig extends Mg{}const Ag=new Ig(Pg);function Dg(t,e){return new y(e?n=>e.schedule(Lg,0,{error:t,subscriber:n}):e=>e.error(t))}function Lg({error:t,subscriber:e}){e.error(t)}let Fg=(()=>{class t{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 Ld(this.value);case"E":return Dg(this.error);case"C":return Ud()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Ng extends m{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ng.dispatch,this.delay,new Bg(t,this.destination)))}_next(t){this.scheduleMessage(Fg.createNext(t))}_error(t){this.scheduleMessage(Fg.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Fg.createComplete()),this.unsubscribe()}}class Bg{constructor(t,e){this.notification=t,this.destination=e}}class jg extends k{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new zg(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),i&&t.add(t=new Ng(t,i)),e)for(let o=0;o<s&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<s&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Ag).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class zg{constructor(t,e){this.time=t,this.value=e}}let Vg=(()=>{class t{constructor(){this.endpointSubject=new Fd(""),this.endpointObs=this.endpointSubject.asObservable(),this.endpointConnectionSubject=new jg,this.endpointConnectionObs=this.endpointConnectionSubject.asObservable()}get endpoint(){return this.endpointSubject.value}setEndpoint(t){this.endpointSubject.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Hg(...t){if(1===t.length){const e=t[0];if(l(e))return $g(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return $g(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return $g(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return $g(t,null)}function $g(t,e){return new y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=j(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const Ug=new Xn("NgValueAccessor"),Wg={provide:Ug,useExisting:rt(()=>qg),multi:!0};let qg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Qo("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[Ga([Wg])]}),t})();const Zg={provide:Ug,useExisting:rt(()=>Gg),multi:!0},Yg=new Xn("CompositionEventMode");let Gg=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Ih()?Ih().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl),Bo(Yg,8))},t.\u0275dir=Wt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Qo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[Ga([Zg])]}),t})();function Kg(t){return null==t||0===t.length}function Qg(t){return null!=t&&"number"==typeof t.length}const Xg=new Xn("NgValidators"),Jg=new Xn("NgAsyncValidators"),t_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class e_{static min(t){return e=>{if(Kg(e.value)||Kg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Kg(e.value)||Kg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Kg(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Kg(t.value)||t_.test(t.value)?null:{email:!0}}static minLength(t){return e=>Kg(e.value)||!Qg(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>Qg(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return e_.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Kg(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(n_);return 0==e.length?null:function(t){return s_(r_(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(n_);return 0==e.length?null:function(t){return Hg(r_(t,e).map(i_)).pipe(L(s_))}}}function n_(t){return null!=t}function i_(t){const e=Yo(t)?j(t):t;return Ko(e),e}function s_(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function r_(t,e){return e.map(e=>e(t))}function o_(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function a_(t){return null!=t?e_.compose(o_(t)):null}function l_(t){return null!=t?e_.composeAsync(o_(t)):null}function c_(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function h_(t){return t._rawValidators}function u_(t){return t._rawAsyncValidators}let d_=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=a_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=l_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t}),t})(),p_=(()=>{class t extends d_{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return m_(e||t)},t.\u0275dir=Wt({type:t,features:[wo]}),t})();const m_=Yn(p_);class f_ extends d_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class g_{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}let __=(()=>{class t extends g_{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(f_,2))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ma("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[wo]}),t})(),y_=(()=>{class t extends g_{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(p_,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ma("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[wo]}),t})();const b_={provide:Ug,useExisting:rt(()=>v_),multi:!0};let v_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Qo("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Ga([b_])]}),t})();const w_={provide:Ug,useExisting:rt(()=>k_),multi:!0};let C_=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),k_=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(f_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl),Bo(C_),Bo(bo))},t.\u0275dir=Wt({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Qo("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ga([w_])]}),t})();const x_={provide:Ug,useExisting:rt(()=>S_),multi:!0};let S_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Qo("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[Ga([x_])]}),t})();const O_={provide:Ug,useExisting:rt(()=>E_),multi:!0};let E_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Qo("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ga([O_])]}),t})();const T_={provide:Ug,useExisting:rt(()=>P_),multi:!0};let P_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),s=this._getOptionValue(i.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Bo(rl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Qo("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ga([T_])]}),t})();function R_(t,e){A_(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&L_(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&L_(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function M_(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),D_(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function I_(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function A_(t,e,n){const i=h_(t);null!==e.validator?t.setValidators(c_(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=u_(t);if(null!==e.asyncValidator?t.setAsyncValidators(c_(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();I_(e._rawValidators,n),I_(e._rawAsyncValidators,n)}}function D_(t,e,n){let i=!1;if(null!==t){if(null!==e.validator){const n=h_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=u_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};I_(e._rawValidators,t),I_(e._rawAsyncValidators,t)}return i}function L_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function F_(t,e){A_(t,e,!1)}const N_=[qg,S_,v_,E_,P_,k_];function B_(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function j_(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const z_="VALID",V_="INVALID",H_="PENDING",$_="DISABLED";function U_(t){return(Y_(t)?t.validators:t)||null}function W_(t){return Array.isArray(t)?a_(t):t||null}function q_(t,e){return(Y_(e)?e.asyncValidators:t)||null}function Z_(t){return Array.isArray(t)?l_(t):t||null}function Y_(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class G_{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=W_(this._rawValidators),this._composedAsyncValidatorFn=Z_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===z_}get invalid(){return this.status===V_}get pending(){return this.status==H_}get disabled(){return this.status===$_}get enabled(){return this.status!==$_}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=W_(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Z_(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=H_,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$_,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=z_,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==z_&&this.status!==H_||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$_:z_}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=H_,this._hasOwnPendingAsyncValidator=!0;const e=i_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof Q_?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof X_&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new pc,this.statusChanges=new pc}_calculateStatus(){return this._allControlsDisabled()?$_:this.errors?V_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(H_)?H_:this._anyControlsHaveStatus(V_)?V_:z_}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Y_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class K_ extends G_{constructor(t=null,e,n){super(U_(e),q_(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){j_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){j_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q_ extends G_{constructor(t,e,n){super(U_(e),q_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof K_?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class X_ extends G_{constructor(t,e,n){super(U_(e),q_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof K_?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const J_={provide:p_,useExisting:rt(()=>ey)},ty=(()=>Promise.resolve(null))();let ey=(()=>{class t extends p_{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new pc,this.form=new Q_({},a_(t),l_(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ty.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),R_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ty.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),j_(this._directives,t)})}addFormGroup(t){ty.then(()=>{const e=this._findContainer(t.path),n=new Q_({});F_(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ty.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ty.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B_(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Bo(Xg,10),Bo(Jg,10))},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Qo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ga([J_]),wo]}),t})(),ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const iy=new Xn("NgModelWithFormControlWarning"),sy={provide:p_,useExisting:rt(()=>ry)};let ry=(()=>{class t extends p_{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new pc,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(D_(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return R_(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){M_(t.control||null,t,!1),j_(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B_(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(M_(t.control||null,t),e&&R_(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);F_(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return D_(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){A_(this.form,this,!1),this._oldForm&&D_(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Bo(Xg,10),Bo(Jg,10))},t.\u0275dir=Wt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Qo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ga([sy]),wo,ce]}),t})();const oy={provide:f_,useExisting:rt(()=>ay)};let ay=(()=>{class t extends f_{constructor(t,e,n,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new pc,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{var e;t.constructor===Gg?n=t:(e=t,N_.some(t=>e.constructor===t)?i=t:s=t)}),s||i||n||null}(0,i)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return t=null==this.name?this.name:this.name.toString(),[...this._parent.path,t];var t}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Bo(p_,13),Bo(Xg,10),Bo(Jg,10),Bo(Ug,10),Bo(iy,8))},t.\u0275dir=Wt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ga([oy]),wo,ce]}),t._ngModelWarningSentOnce=!1,t})();const ly={provide:Xg,useExisting:rt(()=>cy),multi:!0};let cy=(()=>{class t{constructor(){this._validator=e_.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=e_.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Do("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[Ga([ly]),ce]}),t})(),hy=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),uy=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Q_(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new K_(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new X_(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof K_||t instanceof Q_||t instanceof X_?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),dy=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[C_],imports:[hy]}),t})(),py=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:iy,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[uy,C_],imports:[hy]}),t})();class my{}class fy{}class gy{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 gy?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 gy;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof gy?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 _y{encodeKey(t){return yy(t)}encodeValue(t){return yy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function yy(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class by{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _y,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const 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"})}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 by({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function vy(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function wy(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Cy(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ky{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.params&&(this.params=s.params)),this.headers||(this.headers=new gy),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 by,this.urlWithParams=e}serializeBody(){return null===this.body?null:vy(this.body)||wy(this.body)||Cy(this.body)||"string"==typeof this.body?this.body:this.body instanceof by?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||Cy(this.body)?null:wy(this.body)?this.body.type||null:vy(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof by?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ky(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var xy=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Sy{constructor(t,e=200,n="OK"){this.headers=t.headers||new gy,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 Oy extends Sy{constructor(t={}){super(t),this.type=xy.ResponseHeader}clone(t={}){return new Oy({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 Ey extends Sy{constructor(t={}){super(t),this.type=xy.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ey({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 Ty extends Sy{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 Py(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ry=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof ky)i=t;else{let s,r;s=n.headers instanceof gy?n.headers:new gy(n.headers),n.params&&(r=n.params instanceof by?n.params:new by({fromObject:n.params})),i=new ky(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Ld(i).pipe(cp(t=>this.handler.handle(t)));if(t instanceof ky||"events"===n.observe)return s;const r=s.pipe(ip(t=>t instanceof Ey));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(L(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(L(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(L(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(L(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 by).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,Py(n,e))}post(t,e,n={}){return this.request("POST",t,Py(n,e))}put(t,e,n={}){return this.request("PUT",t,Py(n,e))}}return t.\u0275fac=function(e){return new(e||t)(gi(my))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class My{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Iy=new Xn("HTTP_INTERCEPTORS");let Ay=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Dy=/^\)\]\}',?\n/;class Ly{}let Fy=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Ny=(()=>{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 y(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 gy(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 Oy({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(Dy,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Ey({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Ty({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Ty({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:xy.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:xy.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:xy.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),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)(gi(Ly))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const By=new Xn("XSRF_COOKIE_NAME"),jy=new Xn("XSRF_HEADER_NAME");class zy{}let Vy=(()=>{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=Lu(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah),gi(jc),gi(By))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Hy=(()=>{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)(gi(zy),gi(jy))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),$y=(()=>{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(Iy,[]);this.chain=t.reduceRight((t,e)=>new My(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(gi(fy),gi(bo))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Uy=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Hy,useClass:Ay}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:By,useValue:e.cookieName}:[],e.headerName?{provide:jy,useValue:e.headerName}:[]]}}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Hy,{provide:Iy,useExisting:Hy,multi:!0},{provide:zy,useClass:Vy},{provide:By,useValue:"XSRF-TOKEN"},{provide:jy,useValue:"X-XSRF-TOKEN"}]}),t})(),Wy=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Ry,{provide:my,useClass:$y},Ny,{provide:fy,useExisting:Ny},Fy,{provide:Ly,useExisting:Fy}],imports:[[Uy.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),qy=(()=>{class t{constructor(t){this.http=t}searchAll(e){return this.http.post(""+t.searchPath,e)}}return t.searchPath="/search",t.\u0275fac=function(e){return new(e||t)(gi(Ry))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zy=(()=>{class t{constructor(t,e){this.http=t,this.endpointService=e}getFrontierAccountBlock(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:25,method:t.frontierAccountBlock,params:[e]})}getUnconfirmedBlocksByAddress(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:26,method:t.unconfirmedBlocksByAddress,params:[e]})}getUnreceivedBlocksByAddress(e,n,i){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:27,method:t.unreceivedBlocksByAddress,params:[e,n,i]})}getAccountBlockByHash(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:28,method:t.accountBlockByHash,params:[e]})}getAccountBlocksByHeight(e,n,i){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:29,method:t.accountBlocksByHeight,params:[e,n,i]})}getAccountBlocksByPage(e,n,i){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:29,method:t.accountBlocksByPage,params:[e,n,i]})}getFrontierMomentum(){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:30,method:t.frontierMomentum,params:[]})}getMomentumByHash(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:31,method:t.momentumByHash,params:[e]})}getMomentumsByHeight(e,n){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:32,method:t.momentumsByHeight,params:[e,n]})}getDetailedMomentumsByHeight(e,n){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:33,method:t.detailedMomentumsByHeight,params:[e,n]})}getAccountInfoByAddress(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:34,method:t.accountInfoByAddress,params:[e]})}}return t.frontierAccountBlock="ledger.getFrontierAccountBlock",t.unconfirmedBlocksByAddress="ledger.getUnconfirmedBlocksByAddress",t.unreceivedBlocksByAddress="ledger.getUnreceivedBlocksByAddress",t.accountBlockByHash="ledger.getAccountBlockByHash",t.accountBlocksByHeight="ledger.getAccountBlocksByHeight",t.frontierMomentum="ledger.getFrontierMomentum",t.momentumByHash="ledger.getMomentumByHash",t.momentumsByHeight="ledger.getMomentumsByHeight",t.detailedMomentumsByHeight="ledger.getDetailedMomentumsByHeight",t.accountInfoByAddress="ledger.getAccountInfoByAddress",t.accountBlocksByPage="ledger.getAccountBlocksByPage",t.\u0275fac=function(e){return new(e||t)(gi(Ry),gi(Vg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yy=(()=>{class t{constructor(t,e){this.http=t,this.endpointService=e}getAll(e,n){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:22,method:t.tokenAll,params:[e,n]})}getById(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:23,method:t.tokenById,params:[e]})}getByOwner(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:24,method:t.tokenByOwner,params:[e]})}}return t.tokenPath="/token",t.tokenTTIPath="/token/tti",t.tokenSymbolPath="/token/symbol",t.tokenAll="embedded.token.getAll",t.tokenById="embedded.token.getByZts",t.tokenByOwner="embedded.token.getByOwner",t.\u0275fac=function(e){return new(e||t)(gi(Ry),gi(Vg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Gy{}const Ky="*";function Qy(t,e){return{type:7,name:t,definitions:e,options:{}}}function Xy(t,e=null){return{type:4,styles:e,timings:t}}function Jy(t,e=null){return{type:2,steps:t,options:e}}function tb(t){return{type:6,styles:t,offset:null}}function eb(t,e,n){return{type:0,name:t,styles:e,options:n}}function nb(t){return{type:5,steps:t}}function ib(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function sb(t=null){return{type:9,options:t}}function rb(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function ob(t){Promise.resolve(null).then(t)}class ab{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(){ob(()=>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(){}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 lb{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?ob(()=>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 cb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hb(t){switch(t.length){case 0:return new ab;case 1:return t[0];default:return new lb(t)}}function ub(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 Ky: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 db(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&pb(n,"start",t)));break;case"done":t.onDone(()=>i(n&&pb(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&pb(n,"destroy",t)))}}function pb(t,e,n){const i=n.totalTime,s=mb(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 mb(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function fb(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 gb(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let _b=(t,e)=>!1,yb=(t,e)=>!1,bb=(t,e,n)=>[];const vb=cb();(vb||"undefined"!=typeof Element)&&(_b=(t,e)=>t.contains(e),yb=(()=>{if(vb||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]):yb}})(),bb=(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 wb=null,Cb=!1;function kb(t){wb||(wb=("undefined"!=typeof document?document.body:null)||{},Cb=!!wb.style&&"WebkitAppearance"in wb.style);let e=!0;return wb.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in wb.style,!e&&Cb)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in wb.style),e}const xb=yb,Sb=_b,Ob=bb;function Eb(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 Tb=(()=>{class t{validateStyleProperty(t){return kb(t)}matchesElement(t,e){return xb(t,e)}containsElement(t,e){return Sb(t,e)}query(t,e,n){return Ob(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new ab(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Pb=(()=>{class t{}return t.NOOP=new Tb,t})();const Rb="ng-enter",Mb="ng-leave",Ib="ng-trigger",Ab=".ng-trigger",Db="ng-animating",Lb=".ng-animating";function Fb(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Nb(parseFloat(e[1]),e[2])}function Nb(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Bb(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=Nb(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Nb(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 jb(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function zb(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else jb(t,n);return n}function Vb(t,e,n){return n?e+":"+n+";":""}function Hb(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=Vb(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Vb(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function $b(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Qb(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),cb()&&Hb(t))}function Ub(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Qb(e);t.style[n]=""}),cb()&&Hb(t))}function Wb(t){return Array.isArray(t)?1==t.length?t[0]:Jy(t):t}const qb=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zb(t){let e=[];if("string"==typeof t){let n;for(;n=qb.exec(t);)e.push(n[1]);qb.lastIndex=0}return e}function Yb(t,e,n){const i=t.toString(),s=i.replace(qb,(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 Gb(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Kb=/-+([a-z0-9])/g;function Qb(t){return t.replace(Kb,(...t)=>t[1].toUpperCase())}function Xb(t,e){return 0===t||0===e}function Jb(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]=ev(t,e)})}}return e}function tv(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 ev(t,e){return window.getComputedStyle(t)[e]}const nv="*";function iv(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(ov(s,o)),"<"!=r[0]||s==nv&&o==nv||e.push(ov(o,s))}(t,n,e)):n.push(t),n}const sv=new Set(["true","1"]),rv=new Set(["false","0"]);function ov(t,e){const n=sv.has(t)||rv.has(t),i=sv.has(e)||rv.has(e);return(s,r)=>{let o=t==nv||t==s,a=e==nv||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?sv.has(t):rv.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?sv.has(e):rv.has(e)),o&&a}}const av=new RegExp("s*:selfs*,?","g");function lv(t,e,n){return new cv(t).build(e,n)}class cv{constructor(t){this._driver=t}build(t,e){const n=new hv(e);return this._resetContextStyleTimingState(n),tv(this,Wb(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(uv(t)){const e=t;Object.keys(e).forEach(t=>{Zb(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Gb(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=tv(this,Wb(t.animation),e);return{type:1,matchers:iv(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:dv(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>tv(this,t,e)),options:dv(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=tv(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:dv(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 pv(Bb(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=pv(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Bb(i,e),pv(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:tb({});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=tb(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==Ky?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(uv(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=Zb(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(uv(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(uv(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,m=p.duration;return l.forEach((t,i)=>{const r=h>0?i==u?1:h*i:s[i],o=r*m;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:tv(this,Wb(t.animation),e),options:dv(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:dv(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:dv(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(av,"")),[t=t.replace(/@\*/g,Ab).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Lb),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,fb(e.collectedStyles,e.currentQuerySelector,{});const o=tv(this,Wb(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:dv(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"}:Bb(t.timings,e.errors,!0);return{type:12,animation:tv(this,Wb(t.animation),e),timings:n,options:null}}}class hv{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 uv(t){return!Array.isArray(t)&&"object"==typeof t}function dv(t){var e;return t?(t=jb(t)).params&&(t.params=(e=t.params)?jb(e):null):t={},t}function pv(t,e,n){return{duration:t,delay:e,easing:n}}function mv(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 fv{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 gv=new RegExp(":enter","g"),_v=new RegExp(":leave","g");function yv(t,e,n,i,s,r={},o={},a,l,c=[]){return(new bv).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class bv{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new fv;const h=new wv(t,e,l,i,s,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),tv(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()):[mv(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?Fb(n.duration):null,r=null!=n.delay?Fb(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),tv(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=vv);const t=Fb(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>tv(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?Fb(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),tv(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 Bb(e.params?Yb(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?Fb(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vv);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),tv(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;tv(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const vv={};class wv{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=vv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Cv(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=Fb(n.duration)),null!=n.delay&&(i.delay=Fb(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]=Yb(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 wv(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=vv,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 kv(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(gv,"."+this._enterClassName)).replace(_v,"."+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 Cv{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 Cv(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]||Ky,this._currentKeyframe[t]=Ky}),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]=Ky})):zb(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Yb(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Ky),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=zb(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==Ky&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Gb(t.values()):[],r=e.size?Gb(e.values()):[];if(n){const t=i[0],e=jb(t);t.offset=0,e.offset=1,i=[t,e]}return mv(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class kv extends Cv{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,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=zb(t[0],!1);a.offset=0,s.push(a);const l=zb(t[0],!1);l.offset=xv(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=zb(t[i],!1);o.offset=xv((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return mv(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xv(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Sv{}class Ov extends Sv{normalizePropertyName(t,e){return Qb(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(Ev[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 Ev=(()=>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 Tv(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 Pv={};class Rv{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||Pv,d=this.buildStyles(n,o&&o.params||Pv,h),p=a&&a.params||Pv,m=this.buildStyles(i,p,h),f=new Set,g=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:yv(t,e,this.ast.animation,s,r,d,m,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Tv(e,this._triggerName,n,i,y,d,m,[],[],g,_,w,h);v.forEach(t=>{const n=t.element,i=fb(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=fb(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&f.add(n)});const C=Gb(f.values());return Tv(e,this._triggerName,n,i,y,d,m,v,C,g,_,w)}}class Mv{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=jb(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=Yb(r,i,e)),n[t]=r})}}),n}}class Iv{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mv(t.style,t.options&&t.options.params||{})}),Av(this.states,"true","1"),Av(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Rv(t,e,this.states))}),this.fallbackTransition=new Rv(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 Av(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Dv=new fv;class Lv{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=lv(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=ub(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=yv(this._driver,e,s,Rb,Mb,{},{},n,Dv,i),r.forEach(t=>{const e=fb(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,Ky)})});const a=hb(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=mb(e,"","","");return db(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 Fv="ng-animate-queued",Nv="ng-animate-disabled",Bv=".ng-animate-disabled",jv=[],zv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Hv{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=jb(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 $v="void",Uv=new Hv($v);class Wv{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,Xv(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=fb(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=fb(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Xv(t,Ib),Xv(t,"ng-trigger-"+e),a[e]=Uv),()=>{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 Zv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Xv(t,Ib),Xv(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Hv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Uv),l.value!==$v&&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(()=>{Ub(t,n),$b(t,i)})}return}const c=fb(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||(Xv(t,Fv),r.onStart(()=>{Jv(t,Fv)})),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,Ab,!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,$v,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&hb(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Uv,o=new Hv($v),a=new Zv(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:o,player:a,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!==zv||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Xv(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=mb(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,db(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 qv{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 Wv(t,e,this);return e.parentNode?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(Yv(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Yv(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),Xv(t,Nv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Jv(t,Nv))}removeNode(t,e,n,i){if(Yv(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 Yv(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,Ab,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Lb,!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 hb(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=zv,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Bv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Bv,!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++)Xv(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?hb(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 fv,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=Qv(u,this.collectedEnterElements),p=new Map;let m=0;d.forEach((t,e)=>{const n=Rb+m++;p.set(e,n),t.forEach(t=>Xv(t,n))});const f=[],g=new Set,_=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){const t=this.collectedLeaveElements[R],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,b=Qv(u,Array.from(g));b.forEach((t,e)=>{const n=Mb+m++;y.set(e,n),t.forEach(t=>Xv(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Jv(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Jv(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.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=y.get(s),d=p.get(s),m=this._buildInstruction(t,n,d,u,c);if(m.errors&&m.errors.length)w.push(m);else{if(c)return e.onStart(()=>Ub(s,m.fromStyles)),e.onDestroy(()=>$b(s,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Ub(s,m.fromStyles)),e.onDestroy(()=>$b(s,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>fb(o,t,[]).push(e)),m.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))}}),m.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`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,k=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{fb(C,e,[]).push(t),t.destroy()})});const x=f.filter(t=>nw(t,a,l)),S=new Map;Kv(S,this.driver,_,l,Ky).forEach(t=>{nw(t,a,l)&&x.push(t)});const O=new Map;d.forEach((t,e)=>{Kv(O,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=S.get(t),n=O.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const E=[],T=[],P={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>$b(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=P;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,O,S);if(r.setRealPlayer(n),t===P)E.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=hb(e)),i.push(r)}}else Ub(e,o.fromStyles),r.onDestroy(()=>$b(e,o.toStyles)),T.push(r),c.has(e)&&i.push(r)}),T.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=hb(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R<f.length;R++){const t=f[R],e=t.__ng_removed;if(Jv(t,Mb),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,Lb,!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?tw(this,t,i):this.processLeaveNode(t)}return f.length=0,E.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),E}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==$v;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=fb(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)})}Ub(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 ab(e.duration,e.delay);const p=u!==a,m=function(t){const e=[];return ew(t,e),e}((n.get(u)||jv).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),f=s.get(u),g=r.get(u),_=ub(0,this._normalizer,0,e.keyframes,f,g),y=this._buildPlayer(e,_,m);if(e.subTimeline&&i&&h.add(u),p){const e=new Zv(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{fb(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=>Xv(t,Db));const d=hb(u);return d.onDestroy(()=>{c.forEach(t=>Jv(t,Db)),$b(a,e.toStyles)}),h.forEach(t=>{fb(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 ab(t.duration,t.delay)}}class Zv{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new ab,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=>db(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){fb(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 Yv(t){return t&&1===t.nodeType}function Gv(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Kv(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Gv(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=Vv,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Gv(t,r[a++])),o}function Qv(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 Xv(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Jv(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function tw(t,e,n){hb(n).onDone(()=>t.processLeaveNode(e))}function ew(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof lb?ew(i.players,e):e.push(i)}}function nw(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 iw{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qv(t,e,n),this._timelineEngine=new Lv(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=lv(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){return new Iv(t,e)}(i,e),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]=gb(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]=gb(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 sw(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ow(e[0]),e.length>1&&(i=ow(e[e.length-1]))):e&&(n=ow(e)),n||i?new rw(t,n,i):null}let rw=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&$b(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($b(this._element,this._initialStyles),this._endStyles&&($b(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ub(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ub(this._element,this._endStyles),this._endStyles=null),$b(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ow(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];aw(s)&&(e=e||{},e[s]=t[s])}return e}function aw(t){return"display"===t||"position"===t}const lw="animation",cw="animationend";class hw{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=gw(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}`),fw(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),mw(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){uw(this._element,this._name,"paused")}resume(){uw(this._element,this._name,"running")}setPosition(t){const e=dw(this._element,this._name);this._position=t*this._duration,fw(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(),mw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=gw(t,"").split(","),i=pw(n,e);i>=0&&(n.splice(i,1),fw(t,"",n.join(",")))}(this._element,this._name))}}function uw(t,e,n){fw(t,"PlayState",n,dw(t,e))}function dw(t,e){const n=gw(t,"");return n.indexOf(",")>0?pw(n.split(","),e):pw([n],e)}function pw(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function mw(t,e,n){n?t.removeEventListener(cw,e):t.addEventListener(cw,e)}function fw(t,e,n,i){const s=lw+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 gw(t,e){return t.style[lw+e]||""}class _w{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._started=!1,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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new hw(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]:ev(this.element,n))})}this.currentSnapshot=t}}class yw extends ab{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Eb(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 bw{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return kb(t)}matchesElement(t,e){return xb(t,e)}containsElement(t,e){return Sb(t,e)}query(t,e,n){return Ob(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Eb(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 _w),l={};Xb(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=Jb(t,e,l));if(0==n)return new yw(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=sw(t,e),p=new _w(t,e,h,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class vw{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){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]:ev(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ww{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Cw().toString()),this._cssKeyframesDriver=new bw}validateStyleProperty(t){return kb(t)}matchesElement(t,e){return xb(t,e)}containsElement(t,e){return Sb(t,e)}query(t,e,n){return Ob(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 vw);Xb(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=sw(t,e=Jb(t,e=e.map(t=>zb(t,!1)),l));return new vw(t,e,a,h)}}function Cw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let kw=(()=>{class t extends Gy{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:kt.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Jy(t):t;return Ow(this._renderer,null,e,"register",[n]),new xw(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(gi(sl),gi(Ah))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class xw extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Sw(this._id,t,e||{},this._renderer)}}class Sw{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 Ow(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")}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 Ow(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Ew="@",Tw="@.disabled";let Pw=(()=>{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 Rw("",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 Mw(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)(gi(sl),gi(iw),gi(th))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Rw{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)==Ew&&e==Tw?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 Mw extends Rw{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ew?"."==e.charAt(1)&&e==Tw?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)==Ew){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)!=Ew&&([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 Iw=(()=>{class t extends iw{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah),gi(Pb),gi(Sv))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Aw=new Xn("AnimationModuleType"),Dw=[{provide:Pb,useFactory:function(){return"function"==typeof Cw()?new ww:new bw}},{provide:Aw,useValue:"BrowserAnimations"},{provide:Gy,useClass:kw},{provide:Sv,useFactory:function(){return new Ov}},{provide:iw,useClass:Iw},{provide:sl,useFactory:function(t,e,n){return new Pw(t,e,n)},deps:[vd,iw,th]}];let Lw=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:Dw,imports:[Dd]}),t})();const Fw=13,Nw=32;function Bw(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const jw=new Mg(Tg);function zw(t,e=jw){return n=>n.lift(new Vw(t,e))}class Vw{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Hw(t,this.dueTime,this.scheduler))}}class Hw extends m{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($w,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 $w(t){t.debouncedNext()}function Uw(t){return null!=t&&"false"!=`${t}`}function Ww(t,e=0){return qw(t)?Number(t):e}function qw(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Zw(t){return Array.isArray(t)?t:[t]}function Yw(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Gw(t){return t instanceof nl?t.nativeElement:t}let Kw;try{Kw="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch($F){Kw=!1}let Qw,Xw=(()=>{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&&!Kw)&&"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)(gi(jc))},t.\u0275prov=lt({factory:function(){return new t(gi(jc))},token:t,providedIn:"root"}),t})(),Jw=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const tC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function eC(){if(Qw)return Qw;if("object"!=typeof document||!document)return Qw=new Set(tC),Qw;let t=document.createElement("input");return Qw=new Set(tC.filter(e=>(t.setAttribute("type",e),t.type===e))),Qw}let nC,iC,sC;function rC(t){return function(){if(null==nC&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nC=!0}))}finally{nC=nC||!1}return nC}()?t:!!t.capture}function oC(){if(null==iC){if("object"!=typeof document||!document)return iC=!1,iC;if("scrollBehavior"in document.documentElement.style)iC=!0;else{const t=Element.prototype.scrollTo;iC=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return iC}function aC(t){if(function(){if(null==sC){const t="undefined"!=typeof document?document.head:null;sC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return sC}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}let lC=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),cC=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Gw(t);return new y(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 k,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)(gi(lC))},t.\u0275prov=lt({factory:function(){return new t(gi(lC))},token:t,providedIn:"root"}),t})(),hC=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new pc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Uw(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Ww(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(zw(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)(Bo(cC),Bo(nl),Bo(th))},t.\u0275dir=Wt({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),uC=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[lC]}),t})();function dC(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const pC="cdk-describedby-message-container",mC="cdk-describedby-host";let fC=0;const gC=new Map;let _C=null,yC=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=bC(e,n);"string"!=typeof e?(vC(e),gC.set(i,{messageElement:e,referenceCount:0})):gC.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=bC(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=gC.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}_C&&0===_C.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(mC);_C&&this._deleteMessagesContainer(),gC.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");vC(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),_C.appendChild(n),gC.set(bC(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=gC.get(t),n=e&&e.messageElement;_C&&n&&_C.removeChild(n),gC.delete(t)}_createMessagesContainer(){if(!_C){const t=this._document.getElementById(pC);t&&t.parentNode&&t.parentNode.removeChild(t),_C=this._document.createElement("div"),_C.id=pC,_C.style.visibility="hidden",_C.classList.add("cdk-visually-hidden"),this._document.body.appendChild(_C)}}_deleteMessagesContainer(){_C&&_C.parentNode&&(_C.parentNode.removeChild(_C),_C=null)}_removeCdkDescribedByReferenceIds(t){const e=dC(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=gC.get(e);!function(t,e,n){const i=dC(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(mC,""),n.referenceCount++}_removeMessageReference(t,e){const n=gC.get(e);n.referenceCount--,function(t,e,n){const i=dC(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(mC)}_isElementDescribedByMessage(t,e){const n=dC(t,"aria-describedby"),i=gC.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah))},token:t,providedIn:"root"}),t})();function bC(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function vC(t){t.id||(t.id="cdk-describedby-message-"+fC++)}class wC{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new k,this.change=new k,t instanceof fc&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Cp(t=>this._pressedLetters.push(t)),zw(t),ip(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,s=e[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Bw(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof fc?this._items.toArray():this._items}}class CC extends wC{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class kC extends wC{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let xC=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch($F){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===OC(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=OC(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||SC(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(gi(Xw))},t.\u0275prov=lt({factory:function(){return new t(gi(Xw))},token:t,providedIn:"root"}),t})();function SC(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function OC(t){if(!SC(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class EC{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Kd(1)).subscribe(t)}}let TC=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new EC(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(gi(xC),gi(th),gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(xC),gi(th),gi(Ah))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const PC=new Xn("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),RC=new Xn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let MC=(()=>{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)(gi(PC,8),gi(th),gi(Ah),gi(RC,8))},t.\u0275prov=lt({factory:function(){return new t(gi(PC,8),gi(th),gi(Ah),gi(RC,8))},token:t,providedIn:"root"}),t})();function IC(t){return 0===t.buttons}const AC=new Xn("cdk-focus-monitor-default-options"),DC=rC({passive:!0,capture:!0});let LC=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=IC(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=FC(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=FC(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Gw(t);if(!this._platform.isBrowser||1!==n.nodeType)return Ld(null);const i=aC(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new k,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Gw(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=Gw(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_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)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=FC(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===FC(t))&&this._originChanged(e,this._getFocusOrigin(t),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,DC),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,DC)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,DC),t.addEventListener("mousedown",this._documentMousedownListener,DC),t.addEventListener("touchstart",this._documentTouchstartListener,DC),e.addEventListener("focus",this._windowFocusListener)})}_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,DC),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,DC),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,DC),t.removeEventListener("mousedown",this._documentMousedownListener,DC),t.removeEventListener("touchstart",this._documentTouchstartListener,DC),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),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)(gi(th),gi(Xw),gi(Ah,8),gi(AC,8))},t.\u0275prov=lt({factory:function(){return new t(gi(th),gi(Xw),gi(Ah,8),gi(AC,8))},token:t,providedIn:"root"}),t})();function FC(t){return t.composedPath?t.composedPath()[0]:t.target}let NC=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new pc}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(LC))},t.\u0275dir=Wt({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const BC="cdk-high-contrast-black-on-white",jC="cdk-high-contrast-white-on-black",zC="cdk-high-contrast-active";let VC=(()=>{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._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(zC),t.remove(BC),t.remove(jC);const e=this.getHighContrastMode();1===e?(t.add(zC),t.add(BC)):2===e&&(t.add(zC),t.add(jC))}}}return t.\u0275fac=function(e){return new(e||t)(gi(Xw),gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Xw),gi(Ah))},token:t,providedIn:"root"}),t})(),HC=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(VC))},imports:[[Jw,uC]]}),t})();const $C=new Xn("cdk-dir-doc",{providedIn:"root",factory:function(){return _i(Ah)}});let UC=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new pc,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)(gi($C,8))},t.\u0275prov=lt({factory:function(){return new t(gi($C,8))},token:t,providedIn:"root"}),t})(),WC=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const qC=new ll("11.1.2");function ZC(t,e){if(1&t&&$o(0,"mat-pseudo-checkbox",4),2&t){const t=na();jo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function YC(t,e){if(1&t&&(Vo(0,"span",5),Ea(1),Ho()),2&t){const t=na();rr(1),Pa("(",t.group.label,")")}}const GC=["*"];let KC=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),QC=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const XC=new ll("11.1.2"),JC=new Xn("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let tk=(()=>{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 mh()&&!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)&&XC.full!==qC.full&&console.warn("The Angular Material version ("+XC.full+") does not match the Angular CDK version ("+qC.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(VC),gi(JC,8),gi(Ah))},imports:[[WC],WC]}),t})();function ek(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Uw(t)}}}function nk(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 ik(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Uw(t)}}}function sk(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?Ww(t):this.defaultTabIndex}}}function rk(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new k}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function ok(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const ak=new Xn("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return _i(Hc)}});class lk{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const ck=new Xn("mat-date-formats");let hk;try{hk="undefined"!=typeof Intl}catch($F){hk=!1}const uk={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},dk=fk(31,t=>String(t+1)),pk={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},mk=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fk(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let gk=(()=>{class t extends lk{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(hk){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return fk(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return uk[t]}getDateNames(){if(hk){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fk(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return dk}getDayOfWeekNames(t){if(hk){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return fk(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return pk[t]}getYearName(t){if(hk){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(hk){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(mk.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(gi(ak,8),gi(Xw))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),_k=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:lk,useClass:gk}],imports:[[Jw]]}),t})();const yk={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let bk=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:ck,useValue:yk}],imports:[[_k]]}),t})(),vk=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),wk=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Ck{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const kk={enterDuration:450,exitDuration:400},xk=rC({passive:!0}),Sk=["mousedown","touchstart"],Ok=["mouseup","mouseleave","touchend","touchcancel"];class Ek{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=Gw(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},kk),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 Ck(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({},kk),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())}setupTriggerEvents(t){const e=Gw(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Sk))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ok),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=IC(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){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,xk)})})}_removeTriggerEvents(){this._triggerElement&&(Sk.forEach(t=>{this._triggerElement.removeEventListener(t,this,xk)}),this._pointerUpEventsRegistered&&Ok.forEach(t=>{this._triggerElement.removeEventListener(t,this,xk)}))}}const Tk=new Xn("mat-ripple-global-options");let Pk=(()=>{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 Ek(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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)(Bo(nl),Bo(th),Bo(Xw),Bo(Tk,8),Bo(Aw,8))},t.\u0275dir=Wt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ma("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})(),Rk=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk,Jw],tk]}),t})(),Mk=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ma("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),Ik=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk]]}),t})();const Ak=new Xn("MAT_OPTION_PARENT_COMPONENT");class Dk{}const Lk=ek(Dk);let Fk=0,Nk=(()=>{class t extends Lk{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Fk++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Ak,8))},t.\u0275dir=Wt({type:t,inputs:{label:"label"},features:[wo]}),t})();const Bk=new Xn("MatOptgroup");let jk=0;class zk{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Vk=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jk++,this.onSelectionChange=new pc,this._stateChanges=new k}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Uw(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==Fw&&t.keyCode!==Nw||Bw(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new zk(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(void 0),Bo(Nk))},t.\u0275dir=Wt({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Hk=(()=>{class t extends Vk{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(Ak,8),Bo(Bk,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Qo("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Ma("id",e.id),Do("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ma("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[wo],ngContentSelectors:GC,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(sa(),Fo(0,ZC,1,2,"mat-pseudo-checkbox",0),Vo(1,"span",1),ra(2),Ho(),Fo(3,YC,2,1,"span",2),$o(4,"div",3)),2&t&&(jo("ngIf",e.multiple),rr(3),jo("ngIf",e.group&&e.group._inert),rr(1),jo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[zu,Pk,Mk],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function $k(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===s[r]&&r++;return r}return 0}let Uk=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Rk,ed,tk,Ik]]}),t})();const Wk=["*",[["mat-card-footer"]]],qk=["*","mat-card-footer"],Zk=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Yk=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Kk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),Qk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),Xk=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&ma("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:qk,decls:2,vars:0,template:function(t,e){1&t&&(sa(Wk),ra(0),ra(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),Jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Yk,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(sa(Zk),ra(0),Vo(1,"div",0),ra(2,1),Ho(),ra(3,2))},encapsulation:2,changeDetection:0}),t})(),tx=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk],tk]}),t})();function ex(t,e,n,s){return i(n)&&(s=n,n=void 0),s?ex(t,e,n).pipe(L(t=>l(t)?s(...t):s(t))):new y(i=>{nx(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function nx(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++)nx(t[r],e,n,i,s)}i.add(r)}const ix=["underline"],sx=["connectionContainer"],rx=["inputContainer"],ox=["label"];function ax(t,e){1&t&&(Uo(0),Vo(1,"div",14),$o(2,"div",15),$o(3,"div",16),$o(4,"div",17),Ho(),Vo(5,"div",18),$o(6,"div",15),$o(7,"div",16),$o(8,"div",17),Ho(),Wo())}function lx(t,e){1&t&&(Vo(0,"div",19),ra(1,1),Ho())}function cx(t,e){if(1&t&&(Uo(0),ra(1,2),Vo(2,"span"),Ea(3),Ho(),Wo()),2&t){const t=na(2);rr(3),Ta(t._control.placeholder)}}function hx(t,e){1&t&&ra(0,3,["*ngSwitchCase","true"])}function ux(t,e){1&t&&(Vo(0,"span",23),Ea(1," *"),Ho())}function dx(t,e){if(1&t){const t=Zo();Vo(0,"label",20,21),Qo("cdkObserveContent",function(){return Le(t),na().updateOutlineGap()}),Fo(2,cx,4,1,"ng-container",12),Fo(3,hx,1,0,"ng-content",12),Fo(4,ux,2,0,"span",22),Ho()}if(2&t){const t=na();ma("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),jo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),Do("for",t._control.id)("aria-owns",t._control.id),rr(2),jo("ngSwitchCase",!1),rr(1),jo("ngSwitchCase",!0),rr(1),jo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function px(t,e){1&t&&(Vo(0,"div",24),ra(1,4),Ho())}function mx(t,e){if(1&t&&(Vo(0,"div",25,26),$o(2,"span",27),Ho()),2&t){const t=na();rr(2),ma("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function fx(t,e){1&t&&(Vo(0,"div"),ra(1,5),Ho()),2&t&&jo("@transitionMessages",na()._subscriptAnimationState)}function gx(t,e){if(1&t&&(Vo(0,"div",31),Ea(1),Ho()),2&t){const t=na(2);jo("id",t._hintLabelId),rr(1),Ta(t.hintLabel)}}function _x(t,e){if(1&t&&(Vo(0,"div",28),Fo(1,gx,2,2,"div",29),ra(2,6),$o(3,"div",30),ra(4,7),Ho()),2&t){const t=na();jo("@transitionMessages",t._subscriptAnimationState),rr(1),jo("ngIf",t.hintLabel)}}const yx=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bx=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let vx=0;const wx=new Xn("MatError");let Cx=(()=>{class t{constructor(){this.id="mat-error-"+vx++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Do("id",e.id)},inputs:{id:"id"},features:[Ga([{provide:wx,useExisting:t}])]}),t})();const kx={transitionMessages:Qy("transitionMessages",[eb("enter",tb({opacity:1,transform:"translateY(0%)"})),ib("void => enter",[tb({opacity:0,transform:"translateY(-5px)"}),Xy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let xx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t}),t})();const Sx=new Xn("MatHint");let Ox=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-label"]]}),t})(),Ex=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-placeholder"]]}),t})();const Tx=new Xn("MatPrefix"),Px=new Xn("MatSuffix");let Rx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matSuffix",""]],features:[Ga([{provide:Px,useExisting:t}])]}),t})(),Mx=0;class Ix{constructor(t){this._elementRef=t}}const Ax=nk(Ix,"primary"),Dx=new Xn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Lx=new Xn("MatFormField");let Fx=(()=>{class t extends Ax{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new k,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Mx++,this._labelId="mat-form-field-label-"+Mx++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Uw(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Jd(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(kg(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(kg(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Jd(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Jd(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(kg(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ex(this._label.nativeElement,"transitionend").pipe(Kd(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t<o.length;t++)l+=o[t].offsetWidth;e=Math.abs(a-r)-5,n=l>0?.75*l+10:0}for(let o=0;o<s.length;o++)s[o].style.width=`${e}px`;for(let o=0;o<r.length;o++)r[o].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(nl),Bo(UC,8),Bo(Dx,8),Bo(Xw),Bo(th),Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,xx,1),Ec(n,xx,3),Ec(n,Ox,1),Ec(n,Ox,3),Ec(n,Ex,1),Ec(n,wx,1),Ec(n,Sx,1),Ec(n,Tx,1),Ec(n,Px,1)),2&t){let t;Sc(t=Tc())&&(e._controlNonStatic=t.first),Sc(t=Tc())&&(e._controlStatic=t.first),Sc(t=Tc())&&(e._labelChildNonStatic=t.first),Sc(t=Tc())&&(e._labelChildStatic=t.first),Sc(t=Tc())&&(e._placeholderChild=t.first),Sc(t=Tc())&&(e._errorChildren=t),Sc(t=Tc())&&(e._hintChildren=t),Sc(t=Tc())&&(e._prefixChildren=t),Sc(t=Tc())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(Oc(ix,1),Oc(sx,3),Oc(rx,1),Oc(ox,1)),2&t){let t;Sc(t=Tc())&&(e.underlineRef=t.first),Sc(t=Tc())&&(e._connectionContainerRef=t.first),Sc(t=Tc())&&(e._inputContainerRef=t.first),Sc(t=Tc())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&ma("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ga([{provide:Lx,useExisting:t}]),wo],ngContentSelectors:bx,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(sa(yx),Vo(0,"div",0),Vo(1,"div",1,2),Qo("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),Fo(3,ax,9,0,"ng-container",3),Fo(4,lx,2,0,"div",4),Vo(5,"div",5,6),ra(7),Vo(8,"span",7),Fo(9,dx,5,16,"label",8),Ho(),Ho(),Fo(10,px,2,0,"div",9),Ho(),Fo(11,mx,3,4,"div",10),Vo(12,"div",11),Fo(13,fx,2,1,"div",12),Fo(14,_x,5,2,"div",13),Ho(),Ho()),2&t&&(rr(3),jo("ngIf","outline"==e.appearance),rr(1),jo("ngIf",e._prefixChildren.length),rr(5),jo("ngIf",e._hasFloatingLabel()),rr(1),jo("ngIf",e._suffixChildren.length),rr(1),jo("ngIf","outline"!=e.appearance),rr(1),jo("ngSwitch",e._getDisplayedMessages()),rr(1),jo("ngSwitchCase","error"),rr(1),jo("ngSwitchCase","hint"))},directives:[zu,Uu,Wu,hC],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[kx.transitionMessages]},changeDetection:0}),t})(),Nx=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ed,tk,uC],tk]}),t})();class Bx{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new jx(t,this.durationSelector))}}class jx extends D{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=A(this,n);!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=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zx(t){return!l(t)&&t-parseFloat(t)+1>=0}function Vx(t=0,e,n){let i=-1;return zx(e)?i=Number(e)<1?1:Number(e):S(e)&&(n=e),S(n)||(n=jw),new y(e=>{const s=zx(t)?t:+t-n.now();return n.schedule(Hx,s,{index:0,period:i,subscriber:e})})}function Hx(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 $x(t,e=jw){return n=()=>Vx(t,e),function(t){return t.lift(new Bx(n))};var n}const Ux=rC({passive:!0});let Wx=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return $d;const e=Gw(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new k,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,Ux),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,Ux)}}),i}stopMonitoring(t){const e=Gw(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(gi(Xw),gi(th))},t.\u0275prov=lt({factory:function(){return new t(gi(Xw),gi(th))},token:t,providedIn:"root"}),t})(),qx=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Jw]]}),t})();const Zx=new Xn("MAT_INPUT_VALUE_ACCESSOR"),Yx=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Gx=0;class Kx{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const Qx=rk(Kx);let Xx=(()=>{class t extends Qx{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+Gx++,this.focused=!1,this.stateChanges=new k,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>eC().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Uw(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Uw(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&eC().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Uw(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Yx.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Xw),Bo(f_,10),Bo(ey,8),Bo(ry,8),Bo(wk),Bo(Zx,10),Bo(Wx),Bo(th),Bo(Lx,8))},t.\u0275dir=Wt({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Qo("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(Ma("disabled",e.disabled)("required",e.required),Do("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ma("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Ga([{provide:xx,useExisting:t}]),wo,ce]}),t})(),Jx=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[wk],imports:[[qx,Nx,tk],qx,Nx]}),t})();const tS=["mat-button",""],eS=["*"],nS=".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",iS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class sS{constructor(t){this._elementRef=t}}const rS=nk(ek(ik(sS)));let oS=(()=>{class t extends rS{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 iS)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)(Bo(nl),Bo(LC),Bo(Aw,8))},t.\u0275cmp=jt({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&&Oc(Pk,1),2&t){let t;Sc(t=Tc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(Do("disabled",e.disabled||null),ma("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[wo],attrs:tS,ngContentSelectors:eS,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&&(sa(),Vo(0,"span",0),ra(1),Ho(),$o(2,"span",1),$o(3,"span",2)),2&t&&(rr(2),ma("mat-button-ripple-round",e.isRoundButton||e.isIconButton),jo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Pk],styles:[nS],encapsulation:2,changeDetection:0}),t})(),aS=(()=>{class t extends oS{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(Bo(LC),Bo(nl),Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&Qo("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(Do("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),ma("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[wo],attrs:tS,ngContentSelectors:eS,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&&(sa(),Vo(0,"span",0),ra(1),Ho(),$o(2,"span",1),$o(3,"span",2)),2&t&&(rr(2),ma("mat-button-ripple-round",e.isRoundButton||e.isIconButton),jo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Pk],styles:[nS],encapsulation:2,changeDetection:0}),t})(),lS=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Rk,tk],tk]}),t})();const cS=["*"];function hS(t){return Error(`Unable to find icon with the name "${t}"`)}function uS(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function dS(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class pS{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let mS=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new pS(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,i){const s=this._sanitizer.sanitize(rs.HTML,n);if(!s)throw dS(n);return this._addSvgIconConfig(t,e,new pS("",s,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new pS(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const i=this._sanitizer.sanitize(rs.HTML,e);if(!i)throw dS(e);return this._addSvgIconSetConfig(t,new pS("",i,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(rs.RESOURCE_URL,t);if(!e)throw uS(t);const n=this._cachedIconsByUrl.get(e);return n?Ld(fS(n)):this._loadSvgIconFromConfig(new pS(t,null)).pipe(Cp(t=>this._cachedIconsByUrl.set(e,t)),L(t=>fS(t)))}getNamedSvgIcon(t,e=""){const n=gS(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Dg(hS(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Ld(fS(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(L(t=>fS(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Ld(n):Hg(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(op(e=>{const n=this._sanitizer.sanitize(rs.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Ld(null)})))).pipe(L(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw hS(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Cp(e=>t.svgText=e),L(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Ld(null):this._fetchIcon(t).pipe(Cp(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:s}=n[i];"id"!==t&&e.setAttribute(t,s)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:i}=t,s=null!==(e=null==i?void 0:i.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(rs.RESOURCE_URL,n);if(!r)throw uS(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:s}).pipe(Sp(()=>this._inProgressUrlFetches.delete(r)),J());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(gS(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](e,t);if(s)return(n=s).url&&n.options?new pS(s.url,null,s.options):new pS(s,null)}var n}}return t.\u0275fac=function(e){return new(e||t)(gi(Ry,8),gi(Rd),gi(Ah,8),gi(ds))},t.\u0275prov=lt({factory:function(){return new t(gi(Ry,8),gi(Rd),gi(Ah,8),gi(ds))},token:t,providedIn:"root"}),t})();function fS(t){return t.cloneNode(!0)}function gS(t,e){return t+":"+e}class _S{constructor(t){this._elementRef=t}}const yS=nk(_S),bS=new Xn("mat-icon-location",{providedIn:"root",factory:function(){const t=_i(Ah),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),vS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],wS=vS.map(t=>`[${t}]`).join(", "),CS=/^url\(['"]?#(.*?)['"]?\)$/;let kS=(()=>{class t extends yS{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Uw(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(wS),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)vS.forEach(t=>{const s=e[i],r=s.getAttribute(t),o=r?r.match(CS):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Kd(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(mS),Gn("aria-hidden"),Bo(bS),Bo(ds))},t.\u0275cmp=jt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(Do("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),ma("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[wo],ngContentSelectors:cS,decls:1,vars:0,template:function(t,e){1&t&&(sa(),ra(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),xS=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk],tk]}),t})();function SS(t,e){if(1&t&&(hn(),$o(0,"circle",3)),2&t){const t=na();pa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Do("r",t._getCircleRadius())}}function OS(t,e){if(1&t&&(hn(),$o(0,"circle",3)),2&t){const t=na();pa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Do("r",t._getCircleRadius())}}function ES(t,e){if(1&t&&(hn(),$o(0,"circle",3)),2&t){const t=na();pa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Do("r",t._getCircleRadius())}}function TS(t,e){if(1&t&&(hn(),$o(0,"circle",3)),2&t){const t=na();pa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Do("r",t._getCircleRadius())}}const PS=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class RS{constructor(t){this._elementRef=t}}const MS=nk(RS,"primary"),IS=new Xn("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let AS=(()=>{class t extends MS{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Ww(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Ww(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Ww(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=aC(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Xw),Bo(Ah,8),Bo(Aw,8),Bo(IS))},t.\u0275cmp=jt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Do("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),pa("width",e.diameter,"px")("height",e.diameter,"px"),ma("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[wo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(hn(),Vo(0,"svg",0),Fo(1,SS,1,9,"circle",1),Fo(2,OS,1,7,"circle",2),Ho()),2&t&&(pa("width",e.diameter,"px")("height",e.diameter,"px"),jo("ngSwitch","indeterminate"===e.mode),Do("viewBox",e._getViewBox()),rr(1),jo("ngSwitchCase",!0),rr(1),jo("ngSwitchCase",!1))},directives:[Uu,Wu],styles:[PS],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),DS=(()=>{class t extends AS{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Xw),Bo(Ah,8),Bo(Aw,8),Bo(IS))},t.\u0275cmp=jt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(pa("width",e.diameter,"px")("height",e.diameter,"px"),ma("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[wo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(hn(),Vo(0,"svg",0),Fo(1,ES,1,9,"circle",1),Fo(2,TS,1,7,"circle",2),Ho()),2&t&&(pa("width",e.diameter,"px")("height",e.diameter,"px"),jo("ngSwitch","indeterminate"===e.mode),Do("viewBox",e._getViewBox()),rr(1),jo("ngSwitchCase",!0),rr(1),jo("ngSwitchCase",!1))},directives:[Uu,Wu],styles:[PS],encapsulation:2,changeDetection:0}),t})(),LS=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk,ed],tk]}),t})(),FS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-loading"]],decls:4,vars:0,consts:[[1,"loading"],["diameter","50"]],template:function(t,e){1&t&&(Vo(0,"div",0),$o(1,"mat-spinner",1),Vo(2,"span"),Ea(3,"Loading, please wait..."),Ho(),Ho())},directives:[DS],styles:[".loading[_ngcontent-%COMP%]{position:absolute;top:50%;bottom:50%;left:50%;right:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--loadingBg);box-shadow:0 0 6px 0 var(--loadingShadow);width:25.4rem;height:13.2rem;border-radius:.1rem;margin-left:-12.7rem;margin-top:-6.6rem;z-index:999}.loading[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--fontSimple);font-size:1.4rem;margin-top:1rem}"]}),t})();function NS(t,e){1&t&&$o(0,"app-loading")}function BS(t,e){1&t&&(Vo(0,"mat-error"),Ea(1,"This field cannot be empty!"),Ho())}function jS(t,e){if(1&t&&(Vo(0,"div",9),Ea(1),Ho()),2&t){const t=na();rr(1),Ta(t.error)}}let zS=(()=>{class t{constructor(t,e,n,i,s){this.formBuilder=t,this.searchService=e,this.router=n,this.ledgerService=i,this.tokenService=s,this.title="Welcome to Zenon Explorer",this.submitted=!1,this.error="",this.destroy$=new k}ngOnInit(){this.searchForm=this.formBuilder.group({search:["",[e_.required]]})}get form(){return this.searchForm.controls}get search(){return this.searchForm.get("search")}onSubmit(){this.submitted=!0;const t=this.form.search.value;if(this.searchForm.invalid)return;const e=+t,n=null==t?void 0:t.substring(0,3);if(this.isLoadingResults=!0,this.isRateLimitReached=!1,e)this.ledgerService.getMomentumsByHeight(e,1).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["/momentum",t.result.list[0].height])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t});else if(/(^[a-zA-Z0-9]{64})$/.test(t)){const e=this.ledgerService.getAccountBlockByHash(t).pipe(op(()=>Ld(null)));Hg([this.ledgerService.getMomentumByHash(t).pipe(op(()=>Ld(null))),e]).pipe(kg(this.destroy$),L(t=>{this.isLoadingResults=!1,this.isRateLimitReached=!1;const e=t[0].result;return e?{type:"momentum",result:e}:{type:"tx",result:t[1].result}}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["tx"===t.type?"/transaction":"/momentum",t.result.hash])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t})}else/(^[zZa-zA-Z0-9]{61})$/.test(t)?this.ledgerService.getAccountInfoByAddress(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["/address",t.result.address])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t}):/(^[zZa-zA-Z0-9]{26})$/.test(t)&&"zts"===n?this.tokenService.getById(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["/token",t.result.tokenStandard])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t}):this.ledgerService.getAccountInfoByAddress(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["/address",t.result.address])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(uy),Bo(qy),Bo(Jf),Bo(Zy),Bo(Yy))},t.\u0275cmp=jt({type:t,selectors:[["app-search"]],decls:14,vars:5,consts:[[4,"ngIf"],[1,"search"],[1,"search__content"],["novalidate","",3,"formGroup","ngSubmit"],["appearance","outline",1,"search__input"],["formControlName","search","autocomplete","off","matInput",""],["mat-icon-button","","aria-label","icon-button",1,"search__button"],["svgIcon","magnify","matSuffix",""],["class","error",4,"ngIf"],[1,"error"]],template:function(t,e){1&t&&(Fo(0,NS,1,0,"app-loading",0),Vo(1,"mat-card",1),Vo(2,"mat-card-content",2),Vo(3,"h2"),Ea(4),Ho(),Vo(5,"form",3),Qo("ngSubmit",function(){return e.onSubmit()}),Vo(6,"mat-form-field",4),Vo(7,"mat-label"),Ea(8,"Search by Address / Transaction Hash / Momentum Height"),Ho(),$o(9,"input",5),Fo(10,BS,2,0,"mat-error",0),Vo(11,"button",6),$o(12,"mat-icon",7),Ho(),Ho(),Fo(13,jS,2,1,"div",8),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(4),Ta(e.title),rr(1),jo("formGroup",e.searchForm),rr(5),jo("ngIf",null==e.search.errors?null:e.search.errors.required),rr(3),jo("ngIf",e.error))},directives:[zu,Xk,Gk,ny,y_,ry,Fx,Ox,Gg,Xx,__,ay,oS,kS,Rx,FS,Cx],styles:[".search[_ngcontent-%COMP%]{margin-bottom:2rem;margin-top:2rem}.search[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2.6rem;font-weight:400}.search__content[_ngcontent-%COMP%]{text-align:center}.search__input[_ngcontent-%COMP%]{width:60%}@media screen and (max-width:768px){.search__input[_ngcontent-%COMP%]{width:100%}}.search__button[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.search__button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:30px;height:30px;color:var(--fade3)}"]}),t})();function VS(t=0,e=jw){return(!zx(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=jw),new y(n=>(n.add(e.schedule(HS,t,{subscriber:n,counter:0,period:t})),n))}function HS(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}let $S=(()=>{class t{constructor(t){this.http=t}getNumberOfMomentums(e){return this.http.post(""+t.lastMomentumsPath,e)}}return t.momentumsPath="/block",t.momentumHeightPath="/block/height",t.momentumHashPath="/block/hash",t.lastMomentumsPath="/block/list/topBk10",t.\u0275fac=function(e){return new(e||t)(gi(Ry))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),US=1;const WS=(()=>Promise.resolve())(),qS={};function ZS(t){return t in qS&&(delete qS[t],!0)}const YS={setImmediate(t){const e=US++;return qS[e]=!0,WS.then(()=>ZS(e)&&t()),e},clearImmediate(t){ZS(t)}};class GS extends Tg{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=YS.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&&(YS.clearImmediate(e),t.scheduled=void 0)}}class KS extends Mg{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}}}const QS=new KS(GS);function XS(t){return!!t&&(t instanceof y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function JS(t,e){return n=>n.lift(new tO(t,e))}class tO{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new eO(t,this.compare,this.keySelector))}}class eO extends m{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))}}class nO{}function iO(t){return t&&"function"==typeof t.connect}class sO{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class rO{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const oO=new Xn("_ViewRepeater");let aO=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new k,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 y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe($x(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ld()}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(ip(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=Gw(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ex(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)(gi(th),gi(Xw),gi(Ah,8))},t.\u0275prov=lt({factory:function(){return new t(gi(th),gi(Xw),gi(Ah,8))},token:t,providedIn:"root"}),t})(),lO=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new k,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._updateViewportSize())})}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($x(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)(gi(Xw),gi(th),gi(Ah,8))},t.\u0275prov=lt({factory:function(){return new t(gi(Xw),gi(th),gi(Ah,8))},token:t,providedIn:"root"}),t})(),cO=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),hO=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[WC,Jw,cO],WC,cO]}),t})();class uO{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 dO extends uO{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class pO extends uO{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 mO extends uO{constructor(t){super(),this.element=t instanceof nl?t.nativeElement:t}}class fO{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof dO?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof pO?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof mO?(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 gO extends fO{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),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)),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)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let _O=(()=>{class t extends fO{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new pc,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),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)(Bo(Xa),Bo(Vl),Bo(Ah))},t.\u0275dir=Wt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[wo]}),t})(),yO=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();class bO{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new vO(t,this.predicate,this.inclusive))}}class vO extends m{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}const wO=oC();class CO{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=Yw(-this._previousScrollPosition.left),t.style.top=Yw(-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"),wO&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),wO&&(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 kO{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 xO{enable(){}disable(){}attach(){}}function SO(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function OO(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class EO{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();SO(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 TO=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new xO,this.close=t=>new kO(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new CO(this._viewportRuler,this._document),this.reposition=t=>new EO(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(gi(aO),gi(lO),gi(th),gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(aO),gi(lO),gi(th),gi(Ah))},token:t,providedIn:"root"}),t})();class PO{constructor(t){if(this.scrollStrategy=new xO,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 RO{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 MO{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let IO=(()=>{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)(gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah))},token:t,providedIn:"root"}),t})(),AO=(()=>{class t extends IO{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)(gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah))},token:t,providedIn:"root"}),t})(),DO=(()=>{class t extends IO{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,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){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah),gi(Xw))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah),gi(Xw))},token:t,providedIn:"root"}),t})();const LO=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let FO=(()=>{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||LO){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),LO?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)(gi(Ah),gi(Xw))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah),gi(Xw))},token:t,providedIn:"root"}),t})();class NO{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 k,this._attachments=new k,this._detachments=new k,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,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(Kd(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=Yw(this._config.width),t.height=Yw(this._config.height),t.minWidth=Yw(this._config.minWidth),t.minHeight=Yw(this._config.minHeight),t.maxWidth=Yw(this._config.maxWidth),t.maxHeight=Yw(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;Zw(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(kg(W(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 BO="cdk-overlay-connected-position-bounding-box",jO=/([A-Za-z%]+)$/;class zO{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 k,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(BO),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&&VO(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(BO),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=$O(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=HO(this._overlayRef.getConfig().minHeight),o=HO(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=$O(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 MO(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=Yw(n.height),i.top=Yw(n.top),i.bottom=Yw(n.bottom),i.width=Yw(n.width),i.left=Yw(n.left),i.right=Yw(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=Yw(t)),s&&(i.maxWidth=Yw(s))}this._lastBoundingBoxSize=n,VO(this._boundingBox.style,i)}_resetBoundingBoxStyles(){VO(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){VO(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();VO(n,this._getExactOverlayY(e,t,i)),VO(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=Yw(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Yw(r.maxWidth):s&&(n.maxWidth="")),VO(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=Yw(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=Yw(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:OO(t,n),isOriginOutsideView:SO(t,n),isOverlayClipped:OO(e,n),isOverlayOutsideView:SO(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&&Zw(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 nl)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 VO(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function HO(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(jO);return n&&"px"!==n?null:parseFloat(e)}return t||null}function $O(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 UO{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new zO(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 RO(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 WO="cdk-global-overlay-wrapper";class qO{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(WO),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(WO),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let ZO=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new qO}connectedTo(t,e,n){return new UO(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new zO(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(gi(lO),gi(Ah),gi(Xw),gi(FO))},t.\u0275prov=lt({factory:function(){return new t(gi(lO),gi(Ah),gi(Xw),gi(FO))},token:t,providedIn:"root"}),t})(),YO=0,GO=(()=>{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 PO(t);return s.direction=s.direction||this._directionality.value,new NO(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-"+YO++,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(wh)),new gO(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(gi(TO),gi(FO),gi(Xa),gi(ZO),gi(AO),gi(bo),gi(th),gi(Ah),gi(UC),gi(Yh),gi(DO))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const KO=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],QO=new Xn("cdk-connected-overlay-scroll-strategy");let XO=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),JO=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.EMPTY,this._attachSubscription=u.EMPTY,this._detachSubscription=u.EMPTY,this._positionSubscription=u.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new pc,this.positionChange=new pc,this.attach=new pc,this.detach=new pc,this.overlayKeydown=new pc,this.overlayOutsideClick=new pc,this._templatePortal=new pO(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Uw(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Uw(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Uw(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Uw(t)}get push(){return this._push}set push(t){this._push=Uw(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=KO);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||Bw(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new PO({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new bO(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Bo(GO),Bo(Dl),Bo(Vl),Bo(QO),Bo(UC,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ce]}),t})();const tE={provide:QO,deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let eE=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[GO,tE],imports:[[WC,yO,hO],hO]}),t})();class nE{constructor(t){this.total=t}call(t,e){return e.subscribe(new iE(t,this.total))}}class iE extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const sE=new Set;let rE,oE=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aE}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!sE.has(t))try{rE||(rE=document.createElement("style"),rE.setAttribute("type","text/css"),document.head.appendChild(rE)),rE.sheet&&(rE.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),sE.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(gi(Xw))},t.\u0275prov=lt({factory:function(){return new t(gi(Xw))},token:t,providedIn:"root"}),t})();function aE(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let lE=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return cE(Zw(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Bd(cE(Zw(t)).map(t=>this._registerQuery(t).observable));return e=Hd(e.pipe(Kd(1)),e.pipe(t=>t.lift(new nE(1)),zw(0))),e.pipe(L(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 y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Jd(e),L(({matches:e})=>({query:t,matches:e})),kg(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(gi(oE),gi(th))},t.\u0275prov=lt({factory:function(){return new t(gi(oE),gi(th))},token:t,providedIn:"root"}),t})();function cE(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const hE={tooltipState:Qy("state",[eb("initial, void, hidden",tb({opacity:0,transform:"scale(0)"})),eb("visible",tb({transform:"scale(1)"})),ib("* => visible",Xy("200ms cubic-bezier(0, 0, 0.2, 1)",nb([tb({opacity:0,transform:"scale(0)",offset:0}),tb({opacity:.5,transform:"scale(0.99)",offset:.5}),tb({opacity:1,transform:"scale(1)",offset:1})]))),ib("* => hidden",Xy("100ms cubic-bezier(0, 0, 0.2, 1)",tb({opacity:0})))])},uE=rC({passive:!0}),dE=new Xn("mat-tooltip-scroll-strategy"),pE={provide:dE,deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},mE=new Xn("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let fE=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new k,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Bw(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Uw(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(kg(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,uE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new dO(gE,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(kg(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(kg(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(kg(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Kd(1),kg(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,uE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Bo(GO),Bo(nl),Bo(aO),Bo(Vl),Bo(th),Bo(Xw),Bo(yC),Bo(LC),Bo(dE),Bo(UC,8),Bo(mE,8),Bo(Ah))},t.\u0275dir=Wt({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),gE=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Tl),Bo(lE))},t.\u0275cmp=jt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Qo("click",function(){return e._handleBodyInteraction()},!1,_s)("auxclick",function(){return e._handleBodyInteraction()},!1,_s),2&t&&pa("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Vo(0,"div",0),Qo("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),ac(1,"async"),Ea(2),Ho()),2&t){let t=null;ma("mat-tooltip-handset",null==(t=lc(1,5,e._isHandset))?null:t.matches),jo("ngClass",e.tooltipClass)("@state",e._visibility),rr(2),Ta(e.message)}},directives:[Fu],pipes:[Xu],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[hE.tooltipState]},changeDetection:0}),t})(),_E=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[pE],imports:[[HC,ed,eE,tk],tk,cO]}),t})();function yE(t,e){1&t&&(Uo(0),Vo(1,"h2"),Ea(2,"Limit reached"),Ho(),Vo(3,"p"),Ea(4,"API rate limit has been reached. Try again later."),Ho(),Wo())}function bE(t,e){1&t&&(Vo(0,"h2"),Ea(1,"No results found"),Ho(),Vo(2,"p"),Ea(3,"We didn't find anything. Try changing the search criteria."),Ho())}let vE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-empty-state"]],inputs:{limitReached:"limitReached"},decls:25,vars:2,consts:[[1,"emptystate__container"],[1,"illustration__container"],[1,"illustration__containerBackground"],["width","160","height","160","viewBox","0 0 160 160","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.5","fill-rule","evenodd","clip-rule","evenodd","d","M95.4364 -6.41777C121.205 -3.10253 147.172 0.915383 164.56 20.1773C183.302 40.9388 194.658 69.1155 188.155 96.2932C181.715 123.21 157.27 139.576 132.853 152.7C106.412 166.912 77.8003 180.117 49.1956 170.983C15.5703 160.245 -14.6761 136.331 -24.4277 102.475C-34.7443 66.6577 -27.9705 24.0501 -0.352662 -1.03982C24.5259 -23.6412 62.0665 -10.711 95.4364 -6.41777Z","stroke","#D2E9FF"],["opacity","0.5","fill-rule","evenodd","clip-rule","evenodd","d","M90.9802 24.8397C107.335 26.9558 123.817 29.5205 134.853 41.8153C146.749 55.0673 153.956 73.0525 149.829 90.3999C145.742 107.581 130.226 118.027 114.729 126.404C97.9461 135.476 79.7865 143.905 61.631 138.074C40.2889 131.22 21.0914 115.956 14.9021 94.3457C8.35409 71.4836 12.6534 44.2873 30.1826 28.2725C45.9731 13.846 69.8002 22.0993 90.9802 24.8397Z","stroke","#D2E9FF"],["opacity","0.5","fill-rule","evenodd","clip-rule","evenodd","d","M86.2972 45.9442C96.2986 47.2315 106.377 48.7916 113.126 56.271C120.4 64.3326 124.808 75.2736 122.284 85.8266C119.785 96.2782 110.297 102.633 100.82 107.729C90.557 113.248 79.4522 118.375 68.3499 114.828C55.299 110.659 43.5595 101.373 39.7746 88.227C35.7705 74.3192 38.3996 57.7748 49.1188 48.0324C58.7749 39.2563 73.3454 44.2771 86.2972 45.9442Z","stroke","#D2E9FF"],["opacity","0.5","fill-rule","evenodd","clip-rule","evenodd","d","M93.8221 5.49329C115.943 8.33241 138.235 11.7733 153.161 28.2689C169.25 46.0487 178.999 70.1787 173.417 93.4532C167.888 116.504 146.903 130.52 125.942 141.759C103.244 153.93 78.6824 165.239 54.1268 157.416C25.2613 148.221 -0.703657 127.741 -9.07492 98.7472C-17.9312 68.0738 -12.1162 31.5855 11.5922 10.0989C32.9492 -9.2566 65.1758 1.81662 93.8221 5.49329Z","stroke","#D2E9FF"],[1,"illustration__elements"],[1,"illustration__element","illustration__element--right","illustration__element--1"],[1,"illustration__elementType"],[1,"illustration__elementWireframe"],[1,"illustration__element","illustration__element--left","illustration__element--2"],[1,"illustration__element","illustration__element--right","illustration__element--3"],[1,"emptystate__body"],[4,"ngIf","ngIfElse"],["noResults",""]],template:function(t,e){if(1&t&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),hn(),Vo(3,"svg",3),$o(4,"path",4),$o(5,"path",5),$o(6,"path",6),$o(7,"path",7),Ho(),Ho(),un(),Vo(8,"div",8),Vo(9,"div",9),Vo(10,"div",10),Ea(11," ? "),Ho(),$o(12,"div",11),Ho(),Vo(13,"div",12),Vo(14,"div",10),Ea(15," ? "),Ho(),$o(16,"div",11),Ho(),Vo(17,"div",13),Vo(18,"div",10),Ea(19," ? "),Ho(),$o(20,"div",11),Ho(),Ho(),Ho(),Vo(21,"div",14),Fo(22,yE,5,0,"ng-container",15),Fo(23,bE,4,0,"ng-template",null,16,Ic),Ho(),Ho()),2&t){const t=No(24);rr(22),jo("ngIf",e.limitReached)("ngIfElse",t)}},directives:[zu],styles:["svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--emptyStroke)}h2[_ngcontent-%COMP%]{font-size:18px;margin:10px 0 0;font-weight:400;color:var(--emptyTitle)}p[_ngcontent-%COMP%]{font-size:14px;color:var(--emptyText);line-height:18.2px;margin-bottom:30px}.emptystate__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.emptystate__body[_ngcontent-%COMP%]{width:100%;max-width:600px;padding:20px 40px;box-sizing:border-box;text-align:center}.illustration__container[_ngcontent-%COMP%]{width:160px;height:160px;background-color:initial;box-sizing:border-box;border-radius:20px;margin-bottom:30px;display:flex;flex-direction:column;justify-content:center;align-items:center}.illustration__container[_ngcontent-%COMP%]:hover .illustration__containerBackground[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{animation:pulse 4s ease-in-out infinite}.illustration__containerBackground[_ngcontent-%COMP%]{width:160px;height:160px;position:absolute;overflow:hidden;border-radius:20px}.illustration__elements[_ngcontent-%COMP%]{animation:float 6s ease-in-out infinite;background-color:initial;animation-delay:2s;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:translatey(5px)}.illustration__element[_ngcontent-%COMP%]{margin-bottom:15px;background-color:var(--emptyGrey);width:140px;border-radius:6px;transform:scale(O);opacity:0;box-shadow:0 5px 15px 0 rgba(0,0,0,.2);padding:5px;display:flex;flex-direction:row;align-items:center}.illustration__element--right.illustration__element--1[_ngcontent-%COMP%]{transform:translatex(-30px);animation:popInRight .3s ease-in-out;animation-fill-mode:forwards;transform-origin:top left}.illustration__element--right.illustration__element--3[_ngcontent-%COMP%]{transform:translatex(-30px);animation:popInRight .3s ease-in-out .6s;animation-fill-mode:forwards;transform-origin:top left;margin:0}.illustration__element--left[_ngcontent-%COMP%]{transform:translatex(30px);animation:popInLeft .3s ease-in-out .3s;animation-fill-mode:forwards;transform-origin:top right}.illustration__elementType[_ngcontent-%COMP%]{width:24px;height:24px;background-color:var(--linkColor);border-radius:6px;color:var(--emptyGrey);display:flex;flex-direction:column;justify-content:center;align-items:center;font-weight:700;margin-right:10px}.illustration__elementWireframe[_ngcontent-%COMP%]{width:100px;height:8px;background-color:var(--emptyLight);border-radius:6px}@keyframes float{0%{transform:translatey(5px)}50%{transform:translatey(-5px)}to{transform:translatey(5px)}}@keyframes popInRight{0%{transform:scale(0) translatex(0);opacity:0}to{transform:scale(1) translatex(-30px);opacity:1}}@keyframes popInLeft{0%{transform:scale(0) translatex(0);opacity:0}to{transform:scale(1) translatex(30px);opacity:1}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}"]}),t})(),wE=(()=>{class t{transform(t,e,n){return t?e?`${t.substr(0,3)}...${t.substr(t.length-3)}`:n?t.length>n?t.substr(0,n)+"...":t:t.length>16?t.substr(0,16)+"...":t:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qt({name:"shorten",type:t,pure:!0}),t})();function CE(t,e){1&t&&$o(0,"app-loading")}function kE(t,e){if(1&t&&(Vo(0,"span"),Ea(1),Ho()),2&t){const t=na().$implicit;rr(1),Pa("Transaction count: ",t.blocks.length,"")}}function xE(t,e){1&t&&(Vo(0,"span",14),Ea(1,"/"),Ho())}function SE(t,e){if(1&t&&(Vo(0,"span"),Ea(1),Ho()),2&t){const t=e.ngIf;rr(1),Ta(t)}}const OE=function(t){return{animation:t}},EE=function(t){return["/momentum",t]};function TE(t,e){if(1&t&&(Vo(0,"div",8),Vo(1,"div",9),Vo(2,"span"),Vo(3,"a",10),Ea(4),Ho(),Ho(),Vo(5,"span"),Fo(6,kE,2,1,"span",0),Fo(7,xE,2,0,"span",11),Vo(8,"span",12),Vo(9,"a",10),Ea(10),ac(11,"shorten"),Ho(),Ho(),Ho(),Ho(),Vo(12,"div",13),Fo(13,SE,2,1,"span",0),Vo(14,"span"),Ea(15),ac(16,"date"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit,n=e.index,i=na(2);jo("ngClass",ic(17,OE,0===n&&i.currentMomentum!==t.momentum.height)),rr(3),jo("routerLink",ic(19,EE,t.momentum.height)),rr(1),Ta(t.momentum.height),rr(2),jo("ngIf",t.blocks.length>0),rr(1),jo("ngIf",t.blocks.length>0&&t.momentum.hash),rr(1),jo("matTooltip",t.momentum.hash),rr(1),jo("routerLink",ic(21,EE,t.momentum.hash)),rr(1),Ta(hc(11,10,t.momentum.hash,void 0,"30")),rr(3),jo("ngIf",i.getElapsedTime(1e3*t.momentum.timestamp)),rr(2),Ta(cc(16,14,1e3*t.momentum.timestamp,"short"))}}function PE(t,e){if(1&t&&(Uo(0),Fo(1,TE,17,23,"div",7),Wo()),2&t){const t=na();rr(1),jo("ngForOf",t.lastMomentums)}}function RE(t,e){if(1&t&&(Vo(0,"div",15),$o(1,"app-empty-state",16),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}let ME=(()=>{class t{constructor(t,e,n){this.momentumsService=t,this.changeDetector=e,this.ledgerService=n,this.lastMomentums=[],this.isLoadingResults=!0,this.isRateLimitReached=!1,this.currentMomentum=0,this.destroy$=new k,this.count=10}ngOnInit(){VS(1e3).pipe(kg(this.destroy$)).subscribe(()=>{this.changeDetector.detectChanges()}),Vx(0,1e4).pipe(kg(this.destroy$),qd(()=>this.ledgerService.getFrontierMomentum().pipe(qd(t=>this.getTopMomentumsList(t.result.height,this.count)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))))).subscribe(t=>this.lastMomentums=t,()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}compare(t,e,n){return t.momentum[n]<e.momentum[n]?1:t.momentum[n]>e.momentum[n]?-1:0}getTopMomentumsList(t,e){return this.ledgerService.getDetailedMomentumsByHeight(t-e,e).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,0===this.currentMomentum&&(this.currentMomentum=t.result.list[9].momentum.height),t.result.list.sort((t,e)=>this.compare(t,e,"timestamp")))),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getElapsedTime(t){const e=Math.floor((+new Date-+new Date(t))/1e3),n={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let i;for(const s in n)if(n.hasOwnProperty(s)&&(i=Math.floor(e/n[s]),i>0))return 1===i?i+" "+s+" ago":i+" "+s+"s ago"}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo($S),Bo(Tl),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-latest-momentums"]],inputs:{count:"count"},decls:12,vars:3,consts:[[4,"ngIf"],[1,"momentums"],["mat-card-avatar",""],["svgIcon","cube-outline","aria-hidden","false","aria-label","SVG icon",1,"momentums__icon"],[1,"momentums__title"],["mat-button","","color","primary","routerLink","/momentums",1,"momentums__all"],["class","emptyState",4,"ngIf"],["class","momentum",3,"ngClass",4,"ngFor","ngForOf"],[1,"momentum",3,"ngClass"],[1,"momentum__left"],[1,"link",3,"routerLink"],["class","divider",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"momentum__right"],[1,"divider"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,CE,1,0,"app-loading",0),Vo(1,"mat-card",1),Vo(2,"mat-card-header"),Vo(3,"div",2),$o(4,"mat-icon",3),Ho(),Vo(5,"mat-card-title",4),Ea(6,"Momentums"),Ho(),Vo(7,"a",5),Ea(8,"View All"),Ho(),Ho(),Vo(9,"mat-card-content"),Fo(10,PE,2,1,"ng-container",0),Fo(11,RE,2,1,"div",6),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(10),jo("ngIf",e.lastMomentums&&e.lastMomentums.length>0),rr(1),jo("ngIf",!e.isLoadingResults&&!e.lastMomentums.length))},directives:[zu,Xk,Jk,Qk,kS,Kk,aS,eg,Gk,FS,Bu,Fu,fE,vE],pipes:[wE,Ju],styles:[".momentums[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid var(--blockHeaderBorder)}.momentums__icon[_ngcontent-%COMP%]{color:var(--iconColor)}.momentums__title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:400}.momentums__all[_ngcontent-%COMP%]{position:absolute;top:1.5rem;right:1.5rem}.momentums[_ngcontent-%COMP%] .emptyState[_ngcontent-%COMP%]{margin-top:10%}.momentum[_ngcontent-%COMP%]{border-bottom:1px solid var(--blockBorder);display:flex;justify-content:space-between;align-items:center;padding:1.5rem 0}.momentum.animation[_ngcontent-%COMP%]{animation:translational_animation 1.1s}.momentum[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0}.momentum[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--customText)}.momentum__left[_ngcontent-%COMP%], .momentum__right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;gap:4px}.momentum__left[_ngcontent-%COMP%]{align-items:flex-start}.momentum__right[_ngcontent-%COMP%]{align-items:flex-end}.momentum[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{display:inline-block;margin:0 1rem}@keyframes translational_animation{0%{transform:translateY(-6.8rem)}to{transform:translateY(0)}}"],changeDetection:0}),t})(),IE=(()=>{class t{constructor(t){this.http=t}getNumberOfTransactions(e){return this.http.post(""+t.lastTransactionsPath,e)}}return t.transactionsPath="/transaction",t.transactionHashPath="/transaction/hash",t.transactionAddressPath="/transaction/address",t.transactionHeightPath="/transaction/height",t.transactionBlockHashPath="/transaction/block",t.lastTransactionsPath="/transaction/list/topTx10",t.\u0275fac=function(e){return new(e||t)(gi(Ry))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function AE(t,e){1&t&&$o(0,"app-loading")}const DE=function(t){return["/transaction",t]};function LE(t,e){if(1&t&&(Vo(0,"span"),Vo(1,"a",15),Ea(2),ac(3,"shorten"),Ho(),Ho()),2&t){const t=na().$implicit;rr(1),jo("routerLink",ic(5,DE,t.hash)),rr(1),Ta(cc(3,2,t.hash,1))}}function FE(t,e){if(1&t&&(Vo(0,"a",15),Ea(1),ac(2,"shorten"),Ho()),2&t){const t=na().$implicit;jo("routerLink",ic(6,DE,t.hash)),rr(1),Ta(hc(2,2,t.hash,void 0,"50"))}}function NE(t,e){if(1&t&&(Vo(0,"span"),Ea(1),Ho()),2&t){const t=e.ngIf;rr(1),Ta(t)}}const BE=function(t){return{animation:t}};function jE(t,e){if(1&t&&(Vo(0,"div",8),Vo(1,"div",9),Vo(2,"span",10),Vo(3,"span",11),Fo(4,LE,4,7,"span",12),Fo(5,FE,3,8,"ng-template",null,13,Ic),Ho(),Ho(),Vo(7,"span"),Ea(8),ac(9,"number"),Vo(10,"span"),Ea(11),Ho(),Ho(),Ho(),Vo(12,"div",14),Fo(13,NE,2,1,"span",0),Vo(14,"span"),Ea(15),ac(16,"date"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit,n=e.index,i=No(6),s=na(2);jo("ngClass",ic(13,BE,0===n&&s.currentTx!==t.hash)),rr(3),jo("matTooltip",t.hash),rr(1),jo("ngIf",s.isMobile)("ngIfElse",i),rr(4),Pa(" Amount: ",lc(9,8,t.amount/(t.token?s.math.pow(10,t.token.decimals):s.dividedBy))," "),rr(3),Pa(" ",null==t.token?null:t.token.symbol," "),rr(2),jo("ngIf",s.getElapsedTime(1e3*t.timestamp)),rr(2),Ta(cc(16,10,1e3*t.timestamp,"short"))}}function zE(t,e){if(1&t&&(Uo(0),Fo(1,jE,17,15,"div",7),Wo()),2&t){const t=na();rr(1),jo("ngForOf",t.lastTransactions)}}function VE(t,e){if(1&t&&(Vo(0,"div",16),$o(1,"app-empty-state",17),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}let HE=(()=>{class t{constructor(t,e,n){this.transactionsService=t,this.changeDetector=e,this.ledgerService=n,this.lastTransactions=[],this.currentTx="",this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.destroy$=new k,this.count=999}ngOnInit(){VS(1e3).pipe(kg(this.destroy$)).subscribe(()=>{this.changeDetector.detectChanges()}),Vx(0,1e4).pipe(kg(this.destroy$),qd(()=>this.ledgerService.getFrontierMomentum().pipe(qd(t=>this.getTopTransactionList(t.result.height,this.count)),op(()=>(this.isLoadingResults=!1,Ld([])))))).subscribe(t=>this.lastTransactions=t,()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}compare(t,e,n){return t[n]<e[n]?1:t[n]>e[n]?-1:0}getTopTransactionList(t,e){return this.ledgerService.getDetailedMomentumsByHeight(t-e,e).pipe(L(t=>{var e;this.isLoadingResults=!1,this.isRateLimitReached=!1;let n=[];for(let i=t.result.list.length-1;i>=0;i--)t.result.list[i].blocks.length&&n.length<10&&(n=n.concat(t.result.list[i].blocks[0]));return""===this.currentTx&&(this.currentTx=null===(e=n[9])||void 0===e?void 0:e.hash),n.sort((t,e)=>this.compare(t,e,"timestamp"))}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getElapsedTime(t){const e=Math.floor((+new Date-+new Date(t))/1e3),n={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1};let i;for(const s in n)if(n.hasOwnProperty(s)&&(i=Math.floor(e/n[s]),i>0))return 1===i?i+" "+s+" ago":i+" "+s+"s ago"}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(IE),Bo(Tl),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-latest-transactions"]],inputs:{count:"count",isMobile:"isMobile"},decls:12,vars:3,consts:[[4,"ngIf"],[1,"transactions"],["mat-card-avatar",""],["svgIcon","transaction","aria-hidden","false","aria-label","SVG icon",1,"transactions__icon"],[1,"transactions__title"],["mat-button","","color","primary","routerLink","/momentums",1,"transactions__all"],["class","emptyState",4,"ngIf"],["class","transaction",3,"ngClass",4,"ngFor","ngForOf"],[1,"transaction",3,"ngClass"],[1,"transaction__left"],[1,"dark"],["matTooltipPosition","above",3,"matTooltip"],[4,"ngIf","ngIfElse"],["desktop",""],[1,"transaction__right"],[1,"link",3,"routerLink"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,AE,1,0,"app-loading",0),Vo(1,"mat-card",1),Vo(2,"mat-card-header"),Vo(3,"div",2),$o(4,"mat-icon",3),Ho(),Vo(5,"mat-card-title",4),Ea(6,"Transactions"),Ho(),Vo(7,"a",5),Ea(8,"View All"),Ho(),Ho(),Vo(9,"mat-card-content"),Fo(10,zE,2,1,"ng-container",0),Fo(11,VE,2,1,"div",6),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(10),jo("ngIf",e.lastTransactions&&e.lastTransactions.length>0),rr(1),jo("ngIf",!e.isLoadingResults&&!e.lastTransactions.length))},directives:[zu,Xk,Jk,Qk,kS,Kk,aS,eg,Gk,FS,Bu,Fu,fE,vE],pipes:[td,Ju,wE],styles:[".transactions[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid var(--blockHeaderBorder)}.transactions__icon[_ngcontent-%COMP%]{color:var(--iconColor)}.transactions__title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:400}.transactions__all[_ngcontent-%COMP%]{position:absolute;top:1.5rem;right:1.5rem}.transactions[_ngcontent-%COMP%] .emptyState[_ngcontent-%COMP%]{margin-top:10%}.transaction[_ngcontent-%COMP%]{border-bottom:1px solid var(--blockBorder);display:flex;justify-content:space-between;align-items:center;padding:1.5rem 0}.transaction.animation[_ngcontent-%COMP%]{animation:translational_animation 1.1s}.transaction[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0}.transaction[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--customText);word-break:break-all}.transaction__left[_ngcontent-%COMP%], .transaction__right[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;gap:4px}.transaction__left[_ngcontent-%COMP%]{align-items:flex-start}.transaction__right[_ngcontent-%COMP%]{align-items:flex-end}@keyframes translational_animation{0%{transform:translateY(-6.8rem)}to{transform:translateY(0)}}"]}),t})();function $E(t,e){1&t&&$o(0,"app-latest-momentums",7)}function UE(t,e){1&t&&$o(0,"app-latest-transactions",8),2&t&&jo("isMobile",na().isMobile)}let WE=(()=>{class t{constructor(t,e){this.resizeService=t,this.endpointService=e,this.destroy$=new k}ngOnInit(){this.resizeService.isMobileSubject.pipe(kg(this.destroy$)).subscribe(t=>this.isMobile=t),this.endpointService.endpointConnectionObs.pipe(kg(this.destroy$)).subscribe(t=>this.connectionStatus=t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Og),Bo(Vg))},t.\u0275cmp=jt({type:t,selectors:[["app-home"]],decls:9,vars:2,consts:[[1,"container"],[1,"dashboard"],[1,"dashboard__search"],[1,"dashboard__latest"],[1,"dashboard__block"],[3,"count",4,"ngIf"],[3,"isMobile","count",4,"ngIf"],[3,"count"],[3,"isMobile","count"]],template:function(t,e){1&t&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"div",2),$o(3,"app-search"),Ho(),Vo(4,"div",3),Vo(5,"div",4),Fo(6,$E,1,0,"app-latest-momentums",5),Ho(),Vo(7,"div",4),Fo(8,UE,1,1,"app-latest-transactions",6),Ho(),Ho(),Ho(),Ho()),2&t&&(rr(6),jo("ngIf",e.connectionStatus),rr(2),jo("ngIf",e.connectionStatus))},directives:[zS,zu,ME,HE],styles:["[_nghost-%COMP%]{max-width:128rem;width:100%}.dashboard__latest[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;column-gap:3%}@media screen and (max-width:768px){.dashboard__latest[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:2%}}"]}),t})();function qE(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}const ZE=[[["caption"]],[["colgroup"],["col"]]],YE=["caption","colgroup, col"];function GE(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Uw(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const KE=new Xn("CDK_TABLE");let QE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["","cdkCellDef",""]]}),t})(),XE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),JE=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class tT{}const eT=GE(tT);let nT=(()=>{class t extends eT{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Uw(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(Bo(KE,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,QE,1),Ec(n,XE,1),Ec(n,JE,1)),2&t){let t;Sc(t=Tc())&&(e.cell=t.first),Sc(t=Tc())&&(e.headerCell=t.first),Sc(t=Tc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ga([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),wo]}),t})();class iT{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let sT=(()=>{class t extends iT{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nT),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[wo]}),t})(),rT=(()=>{class t extends iT{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nT),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[wo]}),t})();class oT{constructor(){this.tasks=[],this.endTasks=[]}}const aT=new Xn("_COALESCED_STYLE_SCHEDULER");let lT=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new k}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new oT,this._getScheduleObservable().pipe(kg(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new oT;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?j(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Kd(1))}}return t.\u0275fac=function(e){return new(e||t)(gi(th))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),cT=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof dT?t.headerCell.template:this instanceof fT?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl),Bo(wl))},t.\u0275dir=Wt({type:t,features:[ce]}),t})();class hT extends cT{}const uT=GE(hT);let dT=(()=>{class t extends uT{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl),Bo(wl),Bo(KE,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[wo,ce]}),t})();class pT extends cT{}const mT=GE(pT);let fT=(()=>{class t extends mT{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl),Bo(wl),Bo(KE,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[wo,ce]}),t})(),gT=(()=>{class t extends cT{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl),Bo(wl),Bo(KE,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[wo]}),t})(),_T=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl))},t.\u0275dir=Wt({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),yT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[_T],encapsulation:2}),t})(),bT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[_T],encapsulation:2}),t})(),vT=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const wT=["top","bottom","left","right"];class CT{constructor(t,e,n,i,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t<i.children.length;t++)n.push(i.children[t])}this._scheduleStyleChanges(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n),c=e.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",u=i?"left":"right";for(const o of t)for(let t=0;t<r;t++){const i=o.children[t];e[t]&&this._addStickyStyle(i,s,a[t],t===c),n[t]&&this._addStickyStyle(i,u,l[t],t===h)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===c?[]:o.slice(0,c+1).map((t,n)=>e[n]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((t,e)=>n[e+h]?t:null).reverse()}))})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,s="bottom"===n?e.slice().reverse():e,r=[],o=[],a=[];for(let c=0,h=0;c<i.length;c++){if(r[c]=h,!s[c])continue;const t=i[c];a[c]=this._isNativeHtmlTable?Array.from(t.children):[t];const e=t.getBoundingClientRect().height;h+=e,o[c]=e}const l=s.lastIndexOf(!0);this._scheduleStyleChanges(()=>{var t,e;for(let o=0;o<i.length;o++){if(!s[o])continue;const t=r[o],e=o===l;for(const i of a[o])this._addStickyStyle(i,n,t,e)}"top"===n?null===(t=this._positionListener)||void 0===t||t.stickyHeaderRowsUpdated({sizes:o,elements:a}):null===(e=this._positionListener)||void 0===e||e.stickyFooterRowsUpdated({sizes:o,elements:a})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._scheduleStyleChanges(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="",t.classList.remove(this._borderCellCss[n]);wT.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n,i){t.classList.add(this._stickCellCss),i&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of wT)t.style[i]&&(n+=e[i]);return n?`${n}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s<i.length;s++)n.push(i[s].getBoundingClientRect().width);return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(t,e){const n=[];let i=0;for(let s=0;s<t.length;s++)e[s]&&(n[s]=i,i+=t[s]);return n}_getStickyEndColumnPositions(t,e){const n=[];let i=0;for(let s=t.length;s>0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const kT=new Xn("CDK_SPL");let xT=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","rowOutlet",""]]}),t})(),ST=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),OT=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),ET=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),TT=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,h){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=h,this._onDestroy=new k,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new Fd({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Uw(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Uw(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(kg(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),iO(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i<e.length;i++)this._renderRows[i].rowDef===t&&n.push(e[i]);this._addStickyColumnStyles(n,t)}),n.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let i=this._data[n];const s=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let e=0;e<s.length;e++){let n=s[e];const i=this._cachedRenderRowsMap.get(n.data);i.has(n.rowDef)?i.get(n.rowDef).push(n):i.set(n.rowDef,[n]),t.push(n)}}return t}_getRenderRowsForData(t,e,n){return this._getRowDefs(t,e).map(i=>{const s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),PT(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=PT(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=PT(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=PT(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],iO(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;iO(this.dataSource)?t=this.dataSource.connect(this):XS(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Ld(this.dataSource)),this._renderChangeSubscription=t.pipe(kg(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n<t.viewContainer.length;n++){const i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(n=>!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))_T.mostRecentCellOutlet&&_T.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e<n;e++){const i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new CT(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ld()).pipe(kg(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(Bo(wl),Bo(Tl),Bo(nl),Gn("role"),Bo(UC,8),Bo(Ah),Bo(Xw),Bo(oO,8),Bo(aT,8),Bo(kT,12),Bo(lO,8))},t.\u0275cmp=jt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,vT,1),Ec(n,nT,1),Ec(n,gT,1),Ec(n,dT,1),Ec(n,fT,1)),2&t){let t;Sc(t=Tc())&&(e._noDataRow=t.first),Sc(t=Tc())&&(e._contentColumnDefs=t),Sc(t=Tc())&&(e._contentRowDefs=t),Sc(t=Tc())&&(e._contentHeaderRowDefs=t),Sc(t=Tc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Oc(xT,3),Oc(ST,3),Oc(OT,3),Oc(ET,3)),2&t){let t;Sc(t=Tc())&&(e._rowOutlet=t.first),Sc(t=Tc())&&(e._headerRowOutlet=t.first),Sc(t=Tc())&&(e._footerRowOutlet=t.first),Sc(t=Tc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&ma("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[Ga([{provide:KE,useExisting:t},{provide:oO,useClass:sO},{provide:aT,useClass:lT},{provide:kT,useValue:null}])],ngContentSelectors:YE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(sa(ZE),ra(0),ra(1,1),qo(2,0),qo(3,1),qo(4,2),qo(5,3))},directives:[ST,xT,ET,OT],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function PT(t,e){return t.concat(Array.from(e))}let RT=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[hO]]}),t})();const MT=[[["caption"]],[["colgroup"],["col"]]],IT=["caption","colgroup, col"];let AT=(()=>{class t extends TT{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return DT(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&ma("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[Ga([{provide:oO,useClass:sO},{provide:TT,useExisting:t},{provide:KE,useExisting:t},{provide:aT,useClass:lT}]),wo],ngContentSelectors:IT,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(sa(MT),ra(0),ra(1,1),qo(2,0),qo(3,1),qo(4,2),qo(5,3))},directives:[ST,xT,ET,OT],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const DT=Yn(AT);let LT=(()=>{class t extends QE{}return t.\u0275fac=function(e){return FT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matCellDef",""]],features:[Ga([{provide:QE,useExisting:t}]),wo]}),t})();const FT=Yn(LT);let NT=(()=>{class t extends XE{}return t.\u0275fac=function(e){return BT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ga([{provide:XE,useExisting:t}]),wo]}),t})();const BT=Yn(NT);let jT=(()=>{class t extends nT{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return zT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ga([{provide:nT,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),wo]}),t})();const zT=Yn(jT);let VT=(()=>{class t extends sT{}return t.\u0275fac=function(e){return HT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[wo]}),t})();const HT=Yn(VT);let $T=(()=>{class t extends rT{}return t.\u0275fac=function(e){return UT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[wo]}),t})();const UT=Yn($T);let WT=(()=>{class t extends dT{}return t.\u0275fac=function(e){return qT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ga([{provide:dT,useExisting:t}]),wo]}),t})();const qT=Yn(WT);let ZT=(()=>{class t extends gT{}return t.\u0275fac=function(e){return YT(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ga([{provide:gT,useExisting:t}]),wo]}),t})();const YT=Yn(ZT);let GT=(()=>{class t extends yT{}return t.\u0275fac=function(e){return KT(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ga([{provide:yT,useExisting:t}]),wo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[_T],encapsulation:2}),t})();const KT=Yn(GT);let QT=(()=>{class t extends bT{}return t.\u0275fac=function(e){return XT(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ga([{provide:bT,useExisting:t}]),wo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[_T],encapsulation:2}),t})();const XT=Yn(QT);let JT=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[RT,tk],tk]}),t})();class tP extends nO{constructor(t=[]){super(),this._renderData=new Fd([]),this._filter=new Fd(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(qw(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,n),r=this.sortingDataAccessor(e,n);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let l=0;return null!=s&&null!=r?s>r?l=1:s<r&&(l=-1):null!=s?l=1:null!=r&&(l=-1),l*("asc"==i?1:-1)}):t},this.filterPredicate=(t,e)=>{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new Fd(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?W(this._sort.sortChange,this._sort.initialized):Ld(null),n=this._paginator?W(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ld(null),i=Bd([this._data,this._filter]).pipe(L(([t])=>this._filterData(t))),s=Bd([i,e]).pipe(L(([t])=>this._orderData(t))),r=Bd([s,n]).pipe(L(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class eP extends tP{}function nP(){return t=>{var e;return t.prototype.ngOnDestroy=(e=t.prototype.ngOnDestroy,function(t){const n=e?e.apply(this,...t):null;for(const e in this.subscribers)if(this.subscribers.hasOwnProperty(e)){const t=this.subscribers[e];t instanceof m&&t.unsubscribe()}return n}),t}}const iP=["UNKNOWN","GENESIS","SEND","RECEIVE","CONTRACT SEND","CONTRACT RECEIVE"];var sP=function(t){return t.Cancel="Cancel",t.Save="Save",t}({});const rP=["trigger"],oP=["panel"];function aP(t,e){if(1&t&&(Vo(0,"span",8),Ea(1),Ho()),2&t){const t=na();rr(1),Ta(t.placeholder)}}function lP(t,e){if(1&t&&(Vo(0,"span",12),Ea(1),Ho()),2&t){const t=na(2);rr(1),Ta(t.triggerValue)}}function cP(t,e){1&t&&ra(0,0,["*ngSwitchCase","true"])}function hP(t,e){1&t&&(Vo(0,"span",9),Fo(1,lP,2,1,"span",10),Fo(2,cP,1,0,"ng-content",11),Ho()),2&t&&(jo("ngSwitch",!!na().customTrigger),rr(2),jo("ngSwitchCase",!0))}function uP(t,e){if(1&t){const t=Zo();Vo(0,"div",13),Vo(1,"div",14,15),Qo("@transformPanel.done",function(e){return Le(t),na()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Le(t),na()._handleKeydown(e)}),ra(3,1),Ho(),Ho()}if(2&t){const t=na();jo("@transformPanelWrap",void 0),rr(1),"mat-select-panel ",n=t._getPanelTheme(),"",ya(oi,ga,Lo(Ae(),"mat-select-panel ",n,""),!0),pa("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),jo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),Do("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}var n}const dP=[[["mat-select-trigger"]],"*"],pP=["mat-select-trigger","*"],mP={transformPanelWrap:Qy("transformPanelWrap",[ib("* => void",rb("@transformPanel",[sb()],{optional:!0}))]),transformPanel:Qy("transformPanel",[eb("void",tb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),eb("showing",tb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),eb("showing-multiple",tb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ib("void => *",Xy("120ms cubic-bezier(0, 0, 0.2, 1)")),ib("* => void",Xy("100ms 25ms linear",tb({opacity:0})))])};let fP=0;const gP=256,_P=new Xn("mat-select-scroll-strategy"),yP=new Xn("MAT_SELECT_CONFIG"),bP={provide:_P,deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class vP{constructor(t,e){this.source=t,this.value=e}}class wP{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const CP=ik(sk(ek(rk(wP)))),kP=new Xn("MatSelectTrigger");let xP=(()=>{class t extends CP{constructor(t,e,n,i,s,r,o,a,l,c,h,u,d,p){var m,f,g;super(s,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+fP++,this._triggerAriaLabelledBy=null,this._destroy=new k,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+fP++,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(g=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this.optionSelectionChanges=Wd(()=>{const t=this.options;return t?t.changes.pipe(Jd(t),qd(()=>W(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Kd(1),qd(()=>this.optionSelectionChanges))}),this.openedChange=new pc,this._openedStream=this.openedChange.pipe(ip(t=>t),L(()=>{})),this._closedStream=this.openedChange.pipe(ip(t=>!t),L(()=>{})),this.selectionChange=new pc,this.valueChange=new pc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Uw(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Uw(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Uw(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Ww(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new rO(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(JS(),kg(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(kg(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Jd(null),kg(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,i=e===Fw||e===Nw,s=this._keyManager;if(!s.isTyping()&&i&&!Bw(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==Fw&&n!==Nw||!e.activeItem||Bw(t))if(!s&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Kd(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new CC(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(kg(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(kg(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=W(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(kg(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),W(...this.options.map(t=>t._stateChanges)).pipe(kg(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(Bo(lO),Bo(Tl),Bo(th),Bo(wk),Bo(nl),Bo(UC,8),Bo(ey,8),Bo(ry,8),Bo(Lx,8),Bo(f_,10),Gn("tabindex"),Bo(_P),Bo(MC),Bo(yP,8))},t.\u0275dir=Wt({type:t,viewQuery:function(t,e){if(1&t&&(Oc(rP,1),Oc(oP,1),Oc(JO,1)),2&t){let t;Sc(t=Tc())&&(e.trigger=t.first),Sc(t=Tc())&&(e.panel=t.first),Sc(t=Tc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[wo,ce]}),t})(),SP=(()=>{class t extends xP{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(kg(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Kd(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=$k(t,this.options,this.optionGroups),n=this._getItemHeight();var i,s,r;this.panel.nativeElement.scrollTop=(s=n,(i=(t+e)*n)<(r=this.panel.nativeElement.scrollTop)?i:i+s>r+256?Math.max(0,i-256+s):r)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new vP(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(gP/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-gP)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,gP)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,gP),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=$k(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return OP(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,kP,1),Ec(n,Hk,1),Ec(n,Bk,1)),2&t){let t;Sc(t=Tc())&&(e.customTrigger=t.first),Sc(t=Tc())&&(e.options=t),Sc(t=Tc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&Qo("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(Do("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ma("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ga([{provide:xx,useExisting:t},{provide:Ak,useExisting:t}]),wo],ngContentSelectors:pP,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(sa(dP),Vo(0,"div",0,1),Qo("click",function(){return e.toggle()}),Vo(3,"div",2),Fo(4,aP,2,1,"span",3),Fo(5,hP,3,2,"span",4),Ho(),Vo(6,"div",5),$o(7,"div",6),Ho(),Ho(),Fo(8,uP,4,14,"ng-template",7),Qo("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=No(1);Do("aria-owns",e.panelOpen?e.id+"-panel":null),rr(3),jo("ngSwitch",e.empty),Do("id",e._valueId),rr(1),jo("ngSwitchCase",!0),rr(1),jo("ngSwitchCase",!1),rr(3),jo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[XO,Uu,Wu,JO,qu,Fu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[mP.transformPanelWrap,mP.transformPanel]},changeDetection:0}),t})();const OP=Yn(SP);let EP=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[bP],imports:[[ed,eE,Uk,tk],cO,Nx,Uk,tk]}),t})();function TP(t,e){if(1&t&&(Vo(0,"mat-option",19),Ea(1),Ho()),2&t){const t=e.$implicit;jo("value",t),rr(1),Pa(" ",t," ")}}function PP(t,e){if(1&t){const t=Zo();Vo(0,"mat-form-field",16),Vo(1,"mat-select",17),Qo("selectionChange",function(e){return Le(t),na(2)._changePageSize(e.value)}),Fo(2,TP,2,2,"mat-option",18),Ho(),Ho()}if(2&t){const t=na(2);jo("appearance",t._formFieldAppearance)("color",t.color),rr(1),jo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),rr(1),jo("ngForOf",t._displayedPageSizeOptions)}}function RP(t,e){if(1&t&&(Vo(0,"div",20),Ea(1),Ho()),2&t){const t=na(2);rr(1),Ta(t.pageSize)}}function MP(t,e){if(1&t&&(Vo(0,"div",12),Vo(1,"div",13),Ea(2),Ho(),Fo(3,PP,3,6,"mat-form-field",14),Fo(4,RP,2,1,"div",15),Ho()),2&t){const t=na();rr(2),Pa(" ",t._intl.itemsPerPageLabel," "),rr(1),jo("ngIf",t._displayedPageSizeOptions.length>1),rr(1),jo("ngIf",t._displayedPageSizeOptions.length<=1)}}function IP(t,e){if(1&t){const t=Zo();Vo(0,"button",21),Qo("click",function(){return Le(t),na().firstPage()}),hn(),Vo(1,"svg",7),$o(2,"path",22),Ho(),Ho()}if(2&t){const t=na();jo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),Do("aria-label",t._intl.firstPageLabel)}}function AP(t,e){if(1&t){const t=Zo();hn(),un(),Vo(0,"button",23),Qo("click",function(){return Le(t),na().lastPage()}),hn(),Vo(1,"svg",7),$o(2,"path",24),Ho(),Ho()}if(2&t){const t=na();jo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),Do("aria-label",t._intl.lastPageLabel)}}let DP=(()=>{class t{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LP={provide:DP,deps:[[new wi,new Ci,DP]],useFactory:function(t){return t||new DP}},FP=new Xn("MAT_PAGINATOR_DEFAULT_OPTIONS");class NP{}const BP=ek(ok(NP));let jP=(()=>{class t extends BP{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new pc,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Ww(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Ww(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Ww(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Ww(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Uw(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Uw(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(Bo(DP),Bo(Tl),Bo(void 0))},t.\u0275dir=Wt({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[wo]}),t})(),zP=(()=>{class t extends jP{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(Bo(DP),Bo(Tl),Bo(FP,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[wo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Vo(0,"div",0),Vo(1,"div",1),Fo(2,MP,5,3,"div",2),Vo(3,"div",3),Vo(4,"div",4),Ea(5),Ho(),Fo(6,IP,3,5,"button",5),Vo(7,"button",6),Qo("click",function(){return e.previousPage()}),hn(),Vo(8,"svg",7),$o(9,"path",8),Ho(),Ho(),un(),Vo(10,"button",9),Qo("click",function(){return e.nextPage()}),hn(),Vo(11,"svg",7),$o(12,"path",10),Ho(),Ho(),Fo(13,AP,3,5,"button",11),Ho(),Ho(),Ho()),2&t&&(rr(2),jo("ngIf",!e.hidePageSize),rr(3),Pa(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),rr(1),jo("ngIf",e.showFirstLastButtons),rr(1),jo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Do("aria-label",e._intl.previousPageLabel),rr(3),jo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Do("aria-label",e._intl.nextPageLabel),rr(3),jo("ngIf",e.showFirstLastButtons))},directives:[zu,oS,fE,Fx,SP,Bu,Hk],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),VP=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[LP],imports:[[ed,lS,EP,_E,tk]]}),t})();function HP(t,e){1&t&&$o(0,"app-loading")}function $P(t,e){1&t&&(Vo(0,"th",21),Ea(1,"Momentum Height"),Ho())}const UP=function(t){return["/momentum",t]};function WP(t,e){if(1&t&&(Vo(0,"td",22),Vo(1,"span",23),Ea(2,"Momentum Height:"),Ho(),Vo(3,"a",24),Ea(4),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(2,UP,t.momentum.height)),rr(1),Ta(t.momentum.height)}}function qP(t,e){1&t&&(Vo(0,"th",21),Ea(1,"Momentum Hash"),Ho())}function ZP(t,e){if(1&t&&(Vo(0,"td",22),Vo(1,"span",23),Ea(2,"Momentum Hash:"),Ho(),Vo(3,"span",25),Vo(4,"a",24),Ea(5),ac(6,"shorten"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("matTooltip",t.momentum.hash),rr(1),jo("routerLink",ic(7,UP,t.momentum.hash)),rr(1),Ta(hc(6,3,t.momentum.hash,void 0,"30"))}}function YP(t,e){1&t&&(Vo(0,"th",21),Ea(1,"Timestamp"),Ho())}function GP(t,e){if(1&t&&(Vo(0,"td",22),Vo(1,"span",23),Ea(2,"Timestamp:"),Ho(),Ea(3),ac(4,"date"),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",cc(4,1,1e3*t.momentum.timestamp,"long")," ")}}function KP(t,e){1&t&&(Vo(0,"th",21),Ea(1,"Transaction count"),Ho())}function QP(t,e){if(1&t&&(Vo(0,"td",22),Vo(1,"span",23),Ea(2,"Transaction count:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",t.blocks.length," ")}}function XP(t,e){if(1&t&&(Uo(0),Ea(1),ac(2,"number"),Wo()),2&t){const t=na(2).$implicit,e=na(3);rr(1),Pa(" ",lc(2,1,t.pairedAccountBlock.amount/(t.pairedAccountBlock.token?e.math.pow(10,t.pairedAccountBlock.token.decimals):e.dividedBy))||0," ")}}function JP(t,e){if(1&t&&(Ea(0),ac(1,"number")),2&t){const t=na(2).$implicit,e=na(3);Pa(" ",lc(1,1,t.amount/(t.token?e.math.pow(10,t.token.decimals):e.dividedBy))||0," ")}}function tR(t,e){if(1&t&&(Uo(0),Ea(1),Wo()),2&t){const t=na(2).$implicit;rr(1),Pa(" ",null==t.pairedAccountBlock.token?null:t.pairedAccountBlock.token.symbol," ")}}function eR(t,e){if(1&t&&Ea(0),2&t){const t=na(2).$implicit;Pa(" ",null==t.token?null:t.token.symbol," ")}}const nR=function(t){return["/address",t]};function iR(t,e){if(1&t&&(Uo(0),Vo(1,"a",24),Vo(2,"span",31),Ea(3),ac(4,"shorten"),Ho(),Ho(),Wo()),2&t){const t=na(2).$implicit;rr(1),jo("routerLink",ic(6,nR,t.pairedAccountBlock.address)),rr(1),jo("matTooltip",t.pairedAccountBlock.address),rr(1),Pa(" ",cc(4,3,t.pairedAccountBlock.address,1)," ")}}function sR(t,e){if(1&t&&(Vo(0,"a",24),Vo(1,"span",31),Ea(2),ac(3,"shorten"),Ho(),Ho()),2&t){const t=na(2).$implicit;jo("routerLink",ic(6,nR,t.address)),rr(1),jo("matTooltip",t.address),rr(1),Pa(" ",cc(3,3,t.address,1)," ")}}function rR(t,e){if(1&t&&(Uo(0),Vo(1,"a",24),Vo(2,"span",31),Ea(3),ac(4,"shorten"),Ho(),Ho(),Wo()),2&t){const t=na(2).$implicit;rr(1),jo("routerLink",ic(6,nR,t.pairedAccountBlock.toAddress)),rr(1),jo("matTooltip",t.pairedAccountBlock.toAddress),rr(1),Pa(" ",cc(4,3,t.pairedAccountBlock.toAddress,1)," ")}}function oR(t,e){if(1&t&&(Vo(0,"a",24),Vo(1,"span",31),Ea(2),ac(3,"shorten"),Ho(),Ho()),2&t){const t=na(2).$implicit;jo("routerLink",ic(6,nR,t.toAddress)),rr(1),jo("matTooltip",t.toAddress),rr(1),Pa(" ",cc(3,3,t.toAddress,1)," ")}}const aR=function(t){return["/transaction",t]};function lR(t,e){if(1&t&&(Uo(0),Vo(1,"td",30),Vo(2,"span",23),Ea(3,"Transaction Hash:"),Ho(),Vo(4,"span",31),Vo(5,"a",24),Ea(6),ac(7,"shorten"),Ho(),Ho(),Ho(),Vo(8,"td",32),Vo(9,"span",23),Ea(10,"Type:"),Ho(),Ea(11),Ho(),Vo(12,"td",33),Vo(13,"span",23),Ea(14,"Timestamp:"),Ho(),Ea(15),ac(16,"date"),Ho(),Vo(17,"td",34),Vo(18,"span",23),Ea(19,"Amount:"),Ho(),Fo(20,XP,3,3,"ng-container",35),Fo(21,JP,2,3,"ng-template",null,36,Ic),Ho(),Vo(23,"td",37),Vo(24,"span",23),Ea(25,"Symbol:"),Ho(),Fo(26,tR,2,1,"ng-container",35),Fo(27,eR,1,1,"ng-template",null,38,Ic),Ho(),Vo(29,"td",39),Vo(30,"span",23),Ea(31,"From Address:"),Ho(),Fo(32,iR,5,8,"ng-container",35),Fo(33,sR,4,8,"ng-template",null,40,Ic),Ho(),Vo(35,"td",41),Vo(36,"span",23),Ea(37,"To Address:"),Ho(),Fo(38,rR,5,8,"ng-container",35),Fo(39,oR,4,8,"ng-template",null,42,Ic),Ho(),Wo()),2&t){const t=No(22),e=No(28),n=No(34),i=No(40),s=na().$implicit,r=na(3);rr(4),jo("matTooltip",s.hash),rr(1),jo("routerLink",ic(20,aR,s.hash)),rr(1),Pa(" ",hc(7,13,s.hash,void 0,"30")," "),rr(5),Pa(" ",r.blocksType[s.blockType]," "),rr(4),Pa(" ",cc(16,17,1e3*s.confirmationDetail.momentumTimestamp,"long")," "),rr(5),jo("ngIf",s.pairedAccountBlock&&r.blockTypeArray.includes(s.blockType))("ngIfElse",t),rr(6),jo("ngIf",s.pairedAccountBlock&&r.blockTypeArray.includes(s.blockType))("ngIfElse",e),rr(6),jo("ngIf",s.pairedAccountBlock&&r.blockTypeArray.includes(s.blockType))("ngIfElse",n),rr(6),jo("ngIf",s.pairedAccountBlock&&r.blockTypeArray.includes(s.blockType))("ngIfElse",i)}}function cR(t,e){if(1&t&&(Vo(0,"tr"),Fo(1,lR,41,22,"ng-container",0),Ho()),2&t){const t=e.index;rr(1),jo("ngIf",t<50)}}function hR(t,e){if(1&t&&(Vo(0,"div",27),Vo(1,"table",28),Vo(2,"thead"),Vo(3,"th"),Ea(4,"Transaction Hash"),Ho(),Vo(5,"th"),Ea(6,"Type"),Ho(),Vo(7,"th"),Ea(8,"Timestamp"),Ho(),Vo(9,"th"),Ea(10,"Amount"),Ho(),Vo(11,"th"),Ea(12,"Symbol"),Ho(),Vo(13,"th"),Ea(14,"From Address"),Ho(),Vo(15,"th"),Ea(16,"To Address"),Ho(),Ho(),Vo(17,"tbody"),Fo(18,cR,2,1,"tr",29),Ho(),Ho(),Ho()),2&t){const t=na().$implicit;jo("@detailExpand","expanded"),rr(18),jo("ngForOf",t.blocks)}}function uR(t,e){if(1&t&&(Vo(0,"td",22),Fo(1,hR,19,2,"div",26),Ho()),2&t){const t=e.$implicit;Do("colspan",na().displayedColumns.length),rr(1),jo("ngIf",t.blocks.length>0)}}function dR(t,e){1&t&&$o(0,"tr",43)}function pR(t,e){1&t&&$o(0,"tr",44),2&t&&ma("collapse-expanded-row",e.$implicit.isExpanded)}function mR(t,e){1&t&&$o(0,"tr",45)}function fR(t,e){if(1&t&&(Vo(0,"div",46),$o(1,"app-empty-state",47),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}const gR=function(){return["expandedDetail"]};let _R=(()=>{let t=class{constructor(t,e,n,i){this.momentumsService=t,this.ledgerService=e,this.route=n,this.router=i,this.title="Momentums List",this.momentums=new eP([]),this.currentMomentumSubject=new k,this.momentumCurrent=this.currentMomentumSubject.asObservable(),this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.blockTypeArray=[1,3,5],this.blocksType=iP,this.isSticky=!0,this.pageSizeChanged=new Fd(10),this.currentPageSize=this.pageSizeChanged.asObservable(),this.resultsLengthChanged=new Fd(0),this.currentResultsLength=this.resultsLengthChanged.asObservable(),this.limits=[10,20,50,100],this.pageIndexChanged=new Fd(0),this.currentPageIndex=this.pageIndexChanged.asObservable(),this.isTableExpanded=!1,this.displayedColumns=["height","hash","timestamp","blocks"],this.subscribers={},this.dataSource$=Bd([this.momentumCurrent,this.currentPageIndex,this.currentPageSize,this.route.queryParams]).pipe(qd(([t,e,n,i])=>i.page?this.getListOfMomentums(i.height,i.page-1,n):this.getListOfMomentums(t,e,n)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}ngOnInit(){this.subscribers.pageIndex=this.currentPageIndex.subscribe(t=>this.pageIndex=t),this.subscribers.pageSize=this.currentPageSize.subscribe(t=>this.pageSize=t),this.subscribers.currentMomentum=this.momentumCurrent.subscribe(t=>this.currentMomentum=t),this.subscribers.resultsLength=this.currentResultsLength.subscribe(t=>this.resultsLength=t),this.subscribers.getFrontierMomentum=this.ledgerService.getFrontierMomentum().subscribe(t=>{this.currentMomentum?(this.currentMomentumSubject.next(this.currentMomentum),this.resultsLengthChanged.next(this.currentMomentum)):(this.currentMomentumSubject.next(t.result.height),this.resultsLengthChanged.next(t.result.height))},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0}),this.subscribers.routeParams=this.route.queryParams.subscribe(t=>{t.page&&(this.pageIndexChanged.next(t.page-1),this.resultsLengthChanged.next(t.height),this.currentMomentumSubject.next(t.height))}),this.subscribers.getMomentums=this.dataSource$.subscribe(t=>this.momentums.data=t,()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}toggleTableRows(){this.isTableExpanded=!this.isTableExpanded,this.momentums.data.forEach(t=>{t.isExpanded=this.isTableExpanded})}compare(t,e,n){return t.momentum[n]<e.momentum[n]?1:t.momentum[n]>e.momentum[n]?-1:0}getListOfMomentums(t,e,n){let i=t-n*(+e+1)+1,s=n;return i<=0&&(s=t%n,i=1),this.ledgerService.getDetailedMomentumsByHeight(i,s).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list.sort((t,e)=>this.compare(t,e,"timestamp")))),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}newParams(t,e){this.router.navigate([],{relativeTo:this.route,queryParams:{height:t,page:e+1},queryParamsHandling:"merge"})}changePage(t){const e=t.pageIndex;this.pageSizeChanged.next(t.pageSize),this.pageIndexChanged.next(e-1),this.newParams(this.currentMomentum,e)}};return t.\u0275fac=function(e){return new(e||t)(Bo($S),Bo(Zy),Bo(Am),Bo(Jf))},t.\u0275cmp=jt({type:t,selectors:[["app-momentums-list"]],decls:36,vars:14,consts:[[4,"ngIf"],[1,"momentums-list"],[1,"momentums-list__header"],[1,"container"],[1,"momentums-list__header-title"],[1,"momentums-list__content"],[1,"momentums-list__content-table"],["showFirstLastButtons","",3,"length","pageIndex","pageSize","pageSizeOptions","page"],[1,"mobile-table"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","height"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hash"],["matColumnDef","timestamp"],["matColumnDef","blocks"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","collapse-element-row",3,"collapse-expanded-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","collapse-detail-row",4,"matRowDef","matRowDefColumns"],["class","emptyState",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],[1,"mobile-label"],[1,"link",3,"routerLink"],["matTooltipPosition","above",3,"matTooltip"],["class","collapse-element-detail",4,"ngIf"],[1,"collapse-element-detail"],[1,"table","received__table"],[4,"ngFor","ngForOf"],[1,"mat-column-hash"],["matTooltipPosition","above","matTooltipClass","tooltip",3,"matTooltip"],[1,"mat-column-type"],[1,"mat-column-timestamp"],[1,"mat-column-amount"],[4,"ngIf","ngIfElse"],["noPairedAmount",""],[1,"mat-column-symbol"],["noPairedSymbol",""],[1,"mat-column-fromAddress"],["noPairedFrom",""],[1,"mat-column-toAddress"],["noPairedAddress",""],["mat-header-row",""],["mat-row","",1,"collapse-element-row"],["mat-row","",1,"collapse-detail-row"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,HP,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Vo(7,"div"),Ea(8," Current Height: "),Vo(9,"span"),Ea(10),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(11,"div",5),Vo(12,"div",3),Vo(13,"div",6),Vo(14,"mat-paginator",7),Qo("page",function(t){return e.changePage(t)}),Ho(),Vo(15,"mat-card"),Vo(16,"mat-card-content",8),Vo(17,"table",9),Uo(18,10),Fo(19,$P,2,0,"th",11),Fo(20,WP,5,4,"td",12),Wo(),Uo(21,13),Fo(22,qP,2,0,"th",11),Fo(23,ZP,7,9,"td",12),Wo(),Uo(24,14),Fo(25,YP,2,0,"th",11),Fo(26,GP,5,4,"td",12),Wo(),Uo(27,15),Fo(28,KP,2,0,"th",11),Fo(29,QP,4,1,"td",12),Wo(),Uo(30,16),Fo(31,uR,2,2,"td",12),Wo(),Fo(32,dR,1,0,"tr",17),Fo(33,pR,1,2,"tr",18),Fo(34,mR,1,0,"tr",19),Ho(),Fo(35,fR,2,1,"div",20),Ho(),Ho(),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(4),Ta(e.currentMomentum),rr(4),jo("length",e.resultsLength)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.limits),rr(3),jo("dataSource",e.momentums),rr(15),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns),rr(1),jo("matRowDefColumns",nc(13,gR)),rr(1),jo("ngIf",!e.isLoadingResults&&!e.momentums.data.length))},directives:[zu,zP,Xk,Gk,AT,jT,NT,LT,WT,ZT,FS,VT,$T,eg,fE,Bu,GT,QT,vE],pipes:[wE,Ju,td],styles:['.mat-column-height[_ngcontent-%COMP%]{flex:0 1 15%}.mat-column-hash[_ngcontent-%COMP%], .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 35%}.mat-column-tx_count[_ngcontent-%COMP%]{flex:0 1 15%}@media screen and (min-width:769px){.received__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{width:20%}.received__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{width:15%}.received__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{width:20%}.received__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%], .received__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{width:10%}.received__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{width:15%}.received__table[_ngcontent-%COMP%] .mat-column-toAddress[_ngcontent-%COMP%]{width:10%}}[_nghost-%COMP%]{width:100%;justify-content:flex-start;display:flex;flex-direction:column}app-scroll-container[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0}app-scroll-container.full[_ngcontent-%COMP%]{flex-basis:auto}app-scroll-container.part[_ngcontent-%COMP%]{flex-basis:200px}.momentums-list__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:5rem;line-height:5rem;width:100%;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.momentums-list__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.momentums-list__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.momentums-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;letter-spacing:.02rem}.momentums-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.momentums-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.momentums-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}.momentums-list__content[_ngcontent-%COMP%]{display:grid;justify-items:center}.momentums-list__content-table[_ngcontent-%COMP%]{margin-top:4rem}.momentums-list__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:flex-end}tr.collapse-detail-row[_ngcontent-%COMP%]{height:0}.collapse-element-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom-width:0}.collapse-element-detail[_ngcontent-%COMP%]{overflow:hidden;background:var(--bodyBg)}'],data:{animation:[Qy("detailExpand",[eb("collapsed",tb({height:"0px",minHeight:"0"})),eb("expanded",tb({height:"*"})),ib("expanded <=> collapsed",Xy("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t=qE([nP()],t),t})();class yR{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch($F){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let bR=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new yR(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah))},token:t,providedIn:"root"}),t})();const vR=new Xn("CKD_COPY_TO_CLIPBOARD_CONFIG");let wR=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new pc,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}copy(t=this.attempts){if(t>1){let e=t;const n=this._clipboard.beginCopy(this.text);this._pending.add(n);const i=()=>{const t=n.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(i,1))};i()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Bo(bR),Bo(th),Bo(vR,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&Qo("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),CR=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const kR=["paginator"];function xR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Transaction Hash"),Ho())}const SR=function(t){return["/transaction",t]};function OR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Transaction Hash:"),Ho(),Vo(3,"a",19),Vo(4,"span",20),Ea(5),ac(6,"shorten"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(7,SR,t.hash)),rr(1),jo("matTooltip",t.hash),rr(1),Pa(" ",hc(6,3,t.hash,void 0,"30")," ")}}function ER(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Type"),Ho())}function TR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Type:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit,n=na();rr(3),Pa(" ",n.blocksType[t.blockType]," ")}}function PR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Height"),Ho())}function RR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Height:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",t.height," ")}}function MR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Timestamp"),Ho())}function IR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Timestamp:"),Ho(),Ea(3),ac(4,"date"),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",cc(4,1,1e3*t.confirmationDetail.momentumTimestamp,"long")," ")}}function AR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Amount"),Ho())}function DR(t,e){if(1&t&&(Uo(0),Ea(1),ac(2,"number"),Wo()),2&t){const t=na().$implicit,e=na();rr(1),Pa(" ",lc(2,1,t.pairedAccountBlock.amount/(t.pairedAccountBlock.token?e.math.pow(10,t.pairedAccountBlock.token.decimals):e.dividedBy))||0," ")}}function LR(t,e){if(1&t&&(Ea(0),ac(1,"number")),2&t){const t=na().$implicit,e=na();Pa(" ",lc(1,1,t.amount/(t.token?e.math.pow(10,t.token.decimals):e.dividedBy))||0," ")}}function FR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Amount:"),Ho(),Fo(3,DR,3,3,"ng-container",21),Fo(4,LR,2,3,"ng-template",null,22,Ic),Ho()),2&t){const t=e.$implicit,n=No(5),i=na();rr(3),jo("ngIf",t.pairedAccountBlock&&i.blockTypeArray.includes(t.blockType))("ngIfElse",n)}}function NR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Symbol"),Ho())}function BR(t,e){if(1&t&&(Uo(0),Ea(1),Wo()),2&t){const t=na().$implicit;rr(1),Pa(" ",null==t.pairedAccountBlock.token?null:t.pairedAccountBlock.token.symbol," ")}}function jR(t,e){if(1&t&&Ea(0),2&t){const t=na().$implicit;Pa(" ",null==t.token?null:t.token.symbol," ")}}function zR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Symbol:"),Ho(),Fo(3,BR,2,1,"ng-container",21),Fo(4,jR,1,1,"ng-template",null,23,Ic),Ho()),2&t){const t=e.$implicit,n=No(5),i=na();rr(3),jo("ngIf",t.pairedAccountBlock&&i.blockTypeArray.includes(t.blockType))("ngIfElse",n)}}function VR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"Confirmations"),Ho())}const HR=function(t){return["/momentum",t]};function $R(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"Confirmations:"),Ho(),Vo(3,"a",19),Ea(4),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(2,HR,t.confirmationDetail.numConfirmations)),rr(1),Pa(" ",t.confirmationDetail.numConfirmations," ")}}function UR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"From Address"),Ho())}const WR=function(t){return["/address",t]};function qR(t,e){if(1&t&&(Uo(0),Vo(1,"a",19),Vo(2,"span",20),Ea(3),ac(4,"shorten"),Ho(),Ho(),Wo()),2&t){const t=na().$implicit;rr(1),jo("routerLink",ic(6,WR,t.pairedAccountBlock.address)),rr(1),jo("matTooltip",t.pairedAccountBlock.address),rr(1),Pa(" ",cc(4,3,t.pairedAccountBlock.address,1)," ")}}function ZR(t,e){if(1&t&&(Vo(0,"a",19),Vo(1,"span",20),Ea(2),ac(3,"shorten"),Ho(),Ho()),2&t){const t=na().$implicit;jo("routerLink",ic(6,WR,t.address)),rr(1),jo("matTooltip",t.address),rr(1),Pa(" ",cc(3,3,t.address,1)," ")}}function YR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"From Address:"),Ho(),Fo(3,qR,5,8,"ng-container",21),Fo(4,ZR,4,8,"ng-template",null,24,Ic),Ho()),2&t){const t=e.$implicit,n=No(5),i=na();rr(3),jo("ngIf",t.pairedAccountBlock&&i.blockTypeArray.includes(t.blockType))("ngIfElse",n)}}function GR(t,e){1&t&&(Vo(0,"mat-header-cell"),Ea(1,"To Address"),Ho())}function KR(t,e){if(1&t&&(Uo(0),Vo(1,"a",19),Vo(2,"span",20),Ea(3),ac(4,"shorten"),Ho(),Ho(),Wo()),2&t){const t=na().$implicit;rr(1),jo("routerLink",ic(6,WR,t.pairedAccountBlock.toAddress)),rr(1),jo("matTooltip",t.pairedAccountBlock.toAddress),rr(1),Pa(" ",cc(4,3,t.pairedAccountBlock.toAddress,1)," ")}}function QR(t,e){if(1&t&&(Vo(0,"a",19),Vo(1,"span",20),Ea(2),ac(3,"shorten"),Ho(),Ho()),2&t){const t=na().$implicit;jo("routerLink",ic(6,WR,t.toAddress)),rr(1),jo("matTooltip",t.toAddress),rr(1),Pa(" ",cc(3,3,t.toAddress,1)," ")}}function XR(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",18),Ea(2,"To Address:"),Ho(),Fo(3,KR,5,8,"ng-container",21),Fo(4,QR,4,8,"ng-template",null,25,Ic),Ho()),2&t){const t=e.$implicit,n=No(5),i=na();rr(3),jo("ngIf",t.pairedAccountBlock&&i.blockTypeArray.includes(t.blockType))("ngIfElse",n)}}function JR(t,e){1&t&&$o(0,"mat-header-row")}function tM(t,e){1&t&&$o(0,"mat-row")}const eM=function(t){return{hidden:t}};let nM=(()=>{class t{constructor(){this.blocksType=iP,this.math=Math,this.dividedBy=1e8,this.blockTypeArray=[1,3,5],this.pageSizeTransactions=10,this.transactionsLength=0,this.transactions=new eP([]),this.transactionsLimits=[10,20,50,100],this.isSticky=!0,this.tableEvents=new pc,this.displayedColumns=["hash","blockType","height","timestamp","amount","symbol","confirmations","fromAddress","toAddress"],this.destroy$=new k}set matPaginator(t){t&&(this.paginator=t,this.transactions.paginator=t)}ngOnInit(){this.transactions.sortingDataAccessor=(t,e)=>{var n,i;switch(e){case"symbol":return t.pairedAccountBlock&&this.blockTypeArray.includes(t.blockType)?null===(n=t.pairedAccountBlock.token)||void 0===n?void 0:n.symbol:null===(i=t.token)||void 0===i?void 0:i.symbol;case"confirmations":return t.confirmationDetail.numConfirmations;case"timestamp":return t.confirmationDetail.momentumTimestamp;case"amount":return t.pairedAccountBlock&&this.blockTypeArray.includes(t.blockType)?t.pairedAccountBlock.amount:t.amount;case"toAddress":return t.pairedAccountBlock&&this.blockTypeArray.includes(t.blockType)?t.pairedAccountBlock.toAddress:t.toAddress;default:return t[e]}}}onPageChanged(t){this.tableEvents.emit({action:"page",data:t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-transaction-list"]],viewQuery:function(t,e){if(1&t&&Oc(kR,1),2&t){let t;Sc(t=Tc())&&(e.matPaginator=t.first)}},inputs:{title:"title",pageSizeTransactions:"pageSizeTransactions",transactionsLength:"transactionsLength",transactions:"transactions",transactionsLimits:"transactionsLimits",isSticky:"isSticky"},outputs:{tableEvents:"tableEvents"},decls:37,vars:11,consts:[[1,"content-table",3,"ngClass"],[1,"content-navigation"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions","page"],[1,"mobile-table"],[1,"received__table",3,"dataSource"],["matColumnDef","hash"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","blockType"],["matColumnDef","height"],["matColumnDef","timestamp"],["matColumnDef","amount"],["matColumnDef","symbol"],["matColumnDef","confirmations"],["matColumnDef","fromAddress"],["matColumnDef","toAddress"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],[1,"mobile-label"],[1,"link",3,"routerLink"],["matTooltipPosition","above","matTooltipClass","tooltip",3,"matTooltip"],[4,"ngIf","ngIfElse"],["noPairedAmount",""],["noPairedSymbol",""],["noPairedFrom",""],["noPairedAddress",""]],template:function(t,e){1&t&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"h3"),Ea(3),Ho(),Vo(4,"mat-paginator",2),Qo("page",function(t){return e.onPageChanged(t)}),Ho(),Ho(),Vo(5,"mat-card"),Vo(6,"mat-card-content",3),Vo(7,"mat-table",4),Uo(8,5),Fo(9,xR,2,0,"mat-header-cell",6),Fo(10,OR,7,9,"mat-cell",7),Wo(),Uo(11,8),Fo(12,ER,2,0,"mat-header-cell",6),Fo(13,TR,4,1,"mat-cell",7),Wo(),Uo(14,9),Fo(15,PR,2,0,"mat-header-cell",6),Fo(16,RR,4,1,"mat-cell",7),Wo(),Uo(17,10),Fo(18,MR,2,0,"mat-header-cell",6),Fo(19,IR,5,4,"mat-cell",7),Wo(),Uo(20,11),Fo(21,AR,2,0,"mat-header-cell",6),Fo(22,FR,6,2,"mat-cell",7),Wo(),Uo(23,12),Fo(24,NR,2,0,"mat-header-cell",6),Fo(25,zR,6,2,"mat-cell",7),Wo(),Uo(26,13),Fo(27,VR,2,0,"mat-header-cell",6),Fo(28,$R,5,4,"mat-cell",7),Wo(),Uo(29,14),Fo(30,UR,2,0,"mat-header-cell",6),Fo(31,YR,6,2,"mat-cell",7),Wo(),Uo(32,15),Fo(33,GR,2,0,"mat-header-cell",6),Fo(34,XR,6,2,"mat-cell",7),Wo(),Fo(35,JR,1,0,"mat-header-row",16),Fo(36,tM,1,0,"mat-row",17),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngClass",ic(9,eM,!e.transactionsLength)),rr(3),Ta(e.title),rr(1),jo("length",e.transactionsLength)("pageSize",e.pageSizeTransactions)("pageSizeOptions",e.transactionsLimits),rr(3),jo("dataSource",e.transactions),rr(28),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns))},directives:[Fu,zP,Xk,Gk,AT,jT,NT,LT,WT,ZT,VT,$T,eg,fE,zu,GT,QT],pipes:[wE,Ju,td],styles:["@media screen and (min-width:769px){.received__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 22%}.received__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-height[_ngcontent-%COMP%]{flex:0 1 6%}.received__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 20%}.received__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%], .received__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%]{flex:0 1 8%}.received__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%], .received__table[_ngcontent-%COMP%] .mat-column-toAddress[_ngcontent-%COMP%]{flex:0 1 9%}.received__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 8%}}@media screen and (min-width:769px){.unreceived__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%], .unreceived__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}.content-navigation[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.content-navigation[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}@media screen and (max-width:768px){.content-navigation[_ngcontent-%COMP%]{flex-direction:column}.content-navigation[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}"]}),t})(),iM=(()=>{class t{transform(t,e){try{return this.applyColors("object"==typeof t?t:JSON.parse(t),e[0],e[1])}catch(n){return this.applyColors({error:"Invalid JSON"},e[0],e[1])}}applyColors(t,e=!1,n=4){let i=1;return"string"!=typeof t&&(t=JSON.stringify(t,void 0,3)),t=(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,t=>{let e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),'<span class="'+e+'">'+t+"</span>"}),e?t.replace(/^/gm,()=>`<span class="number-line pl-3 select-none" >${String(i++).padEnd(n)}</span>`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qt({name:"prettyjson",type:t,pure:!0}),t})();function sM(t,e){1&t&&$o(0,"app-loading")}const rM=function(t){return["/momentum",t]};function oM(t,e){if(1&t&&(Uo(0),Vo(1,"mat-card"),Vo(2,"mat-card-content"),Vo(3,"div",13),Vo(4,"div",14),Vo(5,"span",15),Ea(6,"Momentum Hash:"),Ho(),Vo(7,"span",16),Vo(8,"span"),Vo(9,"a",17),Ea(10),Ho(),Ho(),Vo(11,"button",18),$o(12,"mat-icon",19),Ho(),Ho(),Ho(),Vo(13,"div",14),Vo(14,"span",15),Ea(15,"Momentum Height:"),Ho(),Vo(16,"span",20),Vo(17,"a",17),Ea(18),Ho(),Ho(),Ho(),Vo(19,"div",14),Vo(20,"span",15),Ea(21,"Timestamp:"),Ho(),Vo(22,"span",20),Ea(23),ac(24,"date"),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(25,"div",21),$o(26,"app-transaction-list",22),Ho(),Wo()),2&t){const t=na();rr(9),jo("routerLink",ic(12,rM,t.momentum.hash)),rr(1),Ta(t.momentum.hash),rr(1),jo("cdkCopyToClipboard",t.momentum.hash)("cdkCopyToClipboardAttempts",5),rr(6),jo("routerLink",ic(14,rM,t.momentum.height)),rr(1),Ta(t.momentum.height),rr(5),Ta(cc(24,9,1e3*t.momentum.timestamp,"long")),rr(3),jo("transactionsLength",t.resultsLength)("transactions",t.transactions)}}function aM(t,e){1&t&&$o(0,"app-empty-state")}const lM=function(){return[!0,3]};let cM=(()=>{class t{constructor(t,e,n){this.route=t,this.router=e,this.ledgerService=n,this.title="Momentum Details",this.transactions=new eP([]),this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.resultsLength=0,this.destroy$=new k}ngOnInit(){this.route.params.pipe(kg(this.destroy$)).subscribe(t=>{this.parameter=+t.height,this.parameter?(this.momentum_height=+t.height,this.ledgerService.getDetailedMomentumsByHeight(this.momentum_height,1).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,this.resultsLength=t.result.list[0].blocks.length,t.result.list[0])),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{this.momentum=t.momentum,this.transactions.data=t.blocks},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})):(this.momentum_hash=t.height,this.ledgerService.getMomentumByHash(this.momentum_hash).pipe(kg(this.destroy$),qd(t=>this.ledgerService.getDetailedMomentumsByHeight(t.result.height,1)),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,this.momentum_height=t.result.list[0].momentum.height,this.resultsLength=t.result.list[0].blocks.length,t.result.list[0])),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{this.momentum=t.momentum,this.transactions.data=t.blocks},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0}))})}prevMomentum(){this.router.navigate(["/momentum",this.momentum_height-1])}nextMomentum(){this.router.navigate(["/momentum",this.momentum_height+1])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(Jf),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-momentum-details"]],decls:25,vars:10,consts:[[4,"ngIf"],[1,"momentum"],[1,"momentum__header"],[1,"container"],[1,"momentum__header-title"],["mat-icon-button","","aria-label","icon-button",3,"click"],["svgIcon","arrow-left-bold-outline"],[1,"no-link"],["svgIcon","arrow-right-bold-outline"],[1,"momentum__content"],[4,"ngIf","ngIfElse"],["noMomentum",""],[3,"innerHTML"],[1,"momentum__info"],[1,"row"],[1,"prop"],[1,"value","copy-clipboard"],[1,"link",3,"routerLink"],["matRipple","",1,"clipboard",3,"cdkCopyToClipboard","cdkCopyToClipboardAttempts"],["svgIcon","content-copy"],[1,"value"],[1,"momentum__content-table"],["title","Momentum Transactions",3,"transactionsLength","transactions"]],template:function(t,e){if(1&t&&(Fo(0,sM,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Vo(7,"div"),Vo(8,"button",5),Qo("click",function(){return e.prevMomentum()}),$o(9,"mat-icon",6),Ho(),Vo(10,"span",7),Ea(11),Ho(),Vo(12,"button",5),Qo("click",function(){return e.nextMomentum()}),$o(13,"mat-icon",8),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(14,"div",9),Vo(15,"div",3),Fo(16,oM,27,16,"ng-container",10),Fo(17,aM,1,0,"ng-template",null,11,Ic),Vo(19,"h3"),Ea(20,"Raw data"),Ho(),Vo(21,"mat-card"),Vo(22,"mat-card-content"),$o(23,"pre",12),ac(24,"prettyjson"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=No(18);jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),Ta(e.momentum_height),rr(5),jo("ngIf",e.momentum)("ngIfElse",t),rr(7),jo("innerHTML",cc(24,6,e.momentum,nc(9,lM)),os)}},directives:[zu,oS,kS,Xk,Gk,FS,eg,Pk,wR,nM,vE],pipes:[iM,Ju],styles:['.mat-column-hash[_ngcontent-%COMP%], .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 30%}.mat-column-amount[_ngcontent-%COMP%], .mat-column-receiver[_ngcontent-%COMP%], .mat-column-sender[_ngcontent-%COMP%], .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 10%}[_nghost-%COMP%]{width:100%}.momentum__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.momentum__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.momentum__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.momentum__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;display:flex;align-items:center;height:1.5rem;letter-spacing:.02rem}.momentum__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.momentum__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--linkColor)}.momentum__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] button.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}.momentum__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.momentum__content-table[_ngcontent-%COMP%]{margin-top:4rem}.momentum__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.momentum__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.momentum__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.momentum__filter[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media screen and (max-width:768px){.momentum__filter[_ngcontent-%COMP%]{flex-direction:column}.momentum__filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}.momentum__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t})(),hM=(()=>{class t{transform(t,e){return t||e||"\u2014"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=qt({name:"placeholder",type:t,pure:!0}),t})();function uM(t,e){1&t&&$o(0,"app-loading")}const dM=function(t){return["/momentum",t]},pM=function(t){return["/token",t]},mM=function(t){return["/address",t]},fM=function(){return[!0,3]};function gM(t,e){if(1&t&&(Vo(0,"div",3),Vo(1,"h3"),Ea(2,"Transaction Information"),Ho(),Vo(3,"mat-card"),Vo(4,"mat-card-content"),Vo(5,"div",9),Vo(6,"div",10),Vo(7,"span",11),Ea(8,"Confirmations:"),Ho(),Vo(9,"span",12),Ea(10),ac(11,"placeholder"),Ho(),Ho(),Vo(12,"div",10),Vo(13,"span",11),Ea(14,"Transaction Height:"),Ho(),Vo(15,"span",12),Ea(16),ac(17,"placeholder"),Ho(),Ho(),Vo(18,"div",10),Vo(19,"span",11),Ea(20,"Timestamp:"),Ho(),Vo(21,"span",12),Ea(22),ac(23,"date"),Ho(),Ho(),Vo(24,"div",10),Vo(25,"span",11),Ea(26,"Momentum Hash:"),Ho(),Vo(27,"span",13),Vo(28,"span"),Vo(29,"a",14),Ea(30),ac(31,"placeholder"),Ho(),Ho(),Vo(32,"button",5),$o(33,"mat-icon",6),Ho(),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(34,"h3",15),Ea(35,"Transaction Message or Result"),Ho(),Vo(36,"mat-card"),Vo(37,"mat-card-content"),Vo(38,"div",9),Vo(39,"div",10),Vo(40,"span",11),Ea(41,"ZTS:"),Ho(),Vo(42,"span",12),Vo(43,"a",14),Ea(44),ac(45,"placeholder"),Ho(),Ho(),Ho(),Vo(46,"div",10),Vo(47,"span",11),Ea(48,"From:"),Ho(),Vo(49,"span",13),Vo(50,"span"),Vo(51,"a",14),Ea(52),ac(53,"placeholder"),Ho(),Ho(),Vo(54,"button",5),$o(55,"mat-icon",6),Ho(),Ho(),Ho(),Vo(56,"div",10),Vo(57,"span",11),Ea(58,"Amount:"),Ho(),Vo(59,"span",12),Ea(60),ac(61,"number"),Ho(),Ho(),Vo(62,"div",10),Vo(63,"span",11),Ea(64,"Symbol:"),Ho(),Vo(65,"span",12),Vo(66,"a",14),Ea(67),ac(68,"placeholder"),Ho(),Ho(),Ho(),Vo(69,"div",10),Vo(70,"span",11),Ea(71,"To:"),Ho(),Vo(72,"span",13),Vo(73,"span"),Vo(74,"a",14),Ea(75),ac(76,"placeholder"),Ho(),Ho(),Vo(77,"button",5),$o(78,"mat-icon",6),Ho(),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(79,"h3"),Ea(80,"Raw data"),Ho(),Vo(81,"mat-card"),Vo(82,"mat-card-content"),$o(83,"pre",16),ac(84,"prettyjson"),Ho(),Ho(),Ho()),2&t){const t=na();rr(10),Ta(lc(11,21,t.transaction.confirmationDetail.numConfirmations)),rr(6),Ta(lc(17,23,t.transaction.height)),rr(6),Ta(cc(23,25,1e3*t.transaction.confirmationDetail.momentumTimestamp,"long")),rr(7),jo("routerLink",ic(43,dM,t.transaction.confirmationDetail.momentumHash)),rr(1),Pa(" ",lc(31,28,t.transaction.confirmationDetail.momentumHash)," "),rr(2),jo("cdkCopyToClipboard",t.transaction.confirmationDetail.momentumHash)("cdkCopyToClipboardAttempts",5),rr(11),jo("routerLink",ic(45,pM,null==t.transaction.token?null:t.transaction.token.tokenStandard)),rr(1),Pa(" ",lc(45,30,null==t.transaction.token?null:t.transaction.token.tokenStandard)," "),rr(7),jo("routerLink",ic(47,mM,t.transaction.address)),rr(1),Pa(" ",lc(53,32,t.transaction.address)," "),rr(2),jo("cdkCopyToClipboard",t.transaction.address)("cdkCopyToClipboardAttempts",5),rr(6),Ta(lc(61,34,t.transaction.amount/(t.transaction.token?t.math.pow(10,t.transaction.token.decimals):t.dividedBy))||0),rr(6),jo("routerLink",ic(49,pM,null==t.transaction.token?null:t.transaction.token.tokenStandard)),rr(1),Pa(" ",lc(68,36,null==t.transaction.token?null:t.transaction.token.symbol)," "),rr(7),jo("routerLink",ic(51,mM,t.transaction.toAddress)),rr(1),Pa(" ",lc(76,38,t.transaction.toAddress)," "),rr(2),jo("cdkCopyToClipboard",t.transaction.toAddress)("cdkCopyToClipboardAttempts",5),rr(6),jo("innerHTML",cc(84,40,t.transaction,nc(53,fM)),os)}}let _M=(()=>{class t{constructor(t,e,n){this.route=t,this.transactionsService=e,this.ledgerService=n,this.title="Transaction Details",this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.onTransactionStream$=new jg,this.destroy$=new k}ngOnInit(){this.route.params.pipe(kg(this.destroy$)).subscribe(t=>{console.log(t.hash),this.hash=t.hash,this.onTransactionStream$.next(t.hash)}),this.onTransactionStream$.pipe(kg(this.destroy$),qd(t=>this.getAccountInfo(t))).subscribe(t=>{this.transaction=t})}getAccountInfo(t){return this.ledgerService.getAccountBlockByHash(t).pipe(L(e=>(console.log(t),console.log(e),this.isLoadingResults=!1,this.isRateLimitReached=!1,e.result)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(IE),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-transaction-details"]],decls:13,vars:6,consts:[[4,"ngIf"],[1,"transaction"],[1,"transaction__header"],[1,"container"],[1,"transaction__header-title"],["matRipple","",1,"clipboard",3,"cdkCopyToClipboard","cdkCopyToClipboardAttempts"],["svgIcon","content-copy"],[1,"transaction__content"],["class","container",4,"ngIf"],[1,"transaction__info"],[1,"row"],[1,"prop"],[1,"value"],[1,"value","copy-clipboard"],[1,"link",3,"routerLink"],[1,"transaction__second-title"],[3,"innerHTML"]],template:function(t,e){1&t&&(Fo(0,uM,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Vo(7,"div"),Ea(8),Vo(9,"button",5),$o(10,"mat-icon",6),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(11,"div",7),Fo(12,gM,85,54,"div",8),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(2),Pa(" ",e.hash," "),rr(1),jo("cdkCopyToClipboard",e.hash)("cdkCopyToClipboardAttempts",5),rr(3),jo("ngIf",e.transaction))},directives:[zu,Pk,wR,kS,FS,Xk,Gk,eg],pipes:[hM,Ju,td,iM],styles:['[_nghost-%COMP%]{width:100%}.transaction__second-title[_ngcontent-%COMP%]{margin-top:4rem}.transaction__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.transaction__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.transaction__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;letter-spacing:.02rem}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.transaction__header-title[_ngcontent-%COMP%]{flex-direction:column}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:1rem;padding-left:0;margin-left:0}.transaction__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:none}}.transaction__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.transaction__content-table[_ngcontent-%COMP%]{margin-top:4rem}.transaction__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.transaction__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.transaction__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.transaction__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t})(),yM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-not-found"]],decls:101,vars:0,consts:[[1,"content"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 800 600"],["id","GlassClip"],["d","M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5\n s-28.485-16.599-34.877-24.192c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13\n c6.755-0.61,20.546-0.608,41.785,5.087s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"],["id","cordClip"],["width","800","height","600"],["id","planet"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-miterlimit","10","cx","572.859","cy","108.803","r","90.788"],["id","craterBig","fill","none","stroke","#0E0620","stroke-width","3","stroke-miterlimit","10","cx","548.891","cy","62.319","r","13.074"],["id","craterSmall","fill","none","stroke","#0E0620","stroke-width","3","stroke-miterlimit","10","cx","591.743","cy","158.918","r","7.989"],["id","ring","fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","d","\n M476.562,101.461c-30.404,2.164-49.691,4.221-49.691,8.007c0,6.853,63.166,12.408,141.085,12.408s141.085-5.555,141.085-12.408\n c0-3.378-15.347-4.988-40.243-7.225"],["id","ringShadow","opacity","0.5","fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","d","\n M483.985,127.43c23.462,1.531,52.515,2.436,83.972,2.436c36.069,0,68.978-1.19,93.922-3.149"],["id","stars"],["id","starsBig"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","518.07","y1","245.375","x2","518.07","y2","266.581"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","508.129","y1","255.978","x2","528.01","y2","255.978"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","154.55","y1","231.391","x2","154.55","y2","252.598"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","144.609","y1","241.995","x2","164.49","y2","241.995"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","320.135","y1","132.746","x2","320.135","y2","153.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","310.194","y1","143.349","x2","330.075","y2","143.349"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","200.67","y1","483.11","x2","200.67","y2","504.316"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","210.611","y1","493.713","x2","190.73","y2","493.713"],["id","starsSmall"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","432.173","y1","380.52","x2","432.173","y2","391.83"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","426.871","y1","386.175","x2","437.474","y2","386.175"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","489.555","y1","299.765","x2","489.555","y2","308.124"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","485.636","y1","303.945","x2","493.473","y2","303.945"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","231.468","y1","291.009","x2","231.468","y2","299.369"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","227.55","y1","295.189","x2","235.387","y2","295.189"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","244.032","y1","547.539","x2","244.032","y2","555.898"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","247.95","y1","551.719","x2","240.113","y2","551.719"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","186.359","y1","406.967","x2","186.359","y2","415.326"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","190.277","y1","411.146","x2","182.44","y2","411.146"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","480.296","y1","406.967","x2","480.296","y2","415.326"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","x1","484.215","y1","411.146","x2","476.378","y2","411.146"],["id","circlesBig"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","588.977","cy","255.978","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","450.066","cy","320.259","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","168.303","cy","353.753","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","429.522","cy","201.185","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","200.67","cy","176.313","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","133.343","cy","477.014","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","283.521","cy","568.033","r","7.952"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-miterlimit","10","cx","413.618","cy","482.387","r","7.952"],["id","circlesSmall"],["fill","#0E0620","cx","549.879","cy","296.402","r","2.651"],["fill","#0E0620","cx","253.29","cy","229.24","r","2.651"],["fill","#0E0620","cx","434.824","cy","263.931","r","2.651"],["fill","#0E0620","cx","183.708","cy","544.176","r","2.651"],["fill","#0E0620","cx","382.515","cy","530.923","r","2.651"],["fill","#0E0620","cx","130.693","cy","305.608","r","2.651"],["fill","#0E0620","cx","480.296","cy","477.014","r","2.651"],["id","spaceman","clip-path","url(cordClip)"],["id","cord","fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M273.813,410.969c0,0-54.527,39.501-115.34,38.218c-2.28-0.048-4.926-0.241-7.841-0.548\n c-68.038-7.178-134.288-43.963-167.33-103.87c-0.908-1.646-1.793-3.3-2.654-4.964c-18.395-35.511-37.259-83.385-32.075-118.817"],["id","backpack","fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M338.164,454.689l-64.726-17.353c-11.086-2.972-17.664-14.369-14.692-25.455l15.694-58.537\n c3.889-14.504,18.799-23.11,33.303-19.221l52.349,14.035c14.504,3.889,23.11,18.799,19.221,33.303l-15.694,58.537\n C360.647,451.083,349.251,457.661,338.164,454.689z"],["id","antenna"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","x1","323.396","y1","236.625","x2","295.285","y2","353.753"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","cx","323.666","cy","235.617","r","6.375"],["id","armR"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M360.633,363.039c1.352,1.061,4.91,5.056,5.824,6.634l27.874,47.634c3.855,6.649,1.59,15.164-5.059,19.02l0,0\n c-6.649,3.855-15.164,1.59-19.02-5.059l-5.603-9.663"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M388.762,434.677c5.234-3.039,7.731-8.966,6.678-14.594c2.344,1.343,4.383,3.289,5.837,5.793\n c4.411,7.596,1.829,17.33-5.767,21.741c-7.596,4.411-17.33,1.829-21.741-5.767c-1.754-3.021-2.817-5.818-2.484-9.046\n C375.625,437.355,383.087,437.973,388.762,434.677z"],["id","armL"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M301.301,347.66c-1.702,0.242-5.91,1.627-7.492,2.536l-47.965,27.301c-6.664,3.829-8.963,12.335-5.134,18.999h0\n c3.829,6.664,12.335,8.963,18.999,5.134l9.685-5.564"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M241.978,395.324c-3.012-5.25-2.209-11.631,1.518-15.977c-2.701-0.009-5.44,0.656-7.952,2.096\n c-7.619,4.371-10.253,14.09-5.883,21.71c4.371,7.619,14.09,10.253,21.709,5.883c3.03-1.738,5.35-3.628,6.676-6.59\n C252.013,404.214,245.243,401.017,241.978,395.324z"],["id","body"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M353.351,365.387c-7.948,1.263-16.249,0.929-24.48-1.278c-8.232-2.207-15.586-6.07-21.836-11.14\n c-17.004,4.207-31.269,17.289-36.128,35.411l-1.374,5.123c-7.112,26.525,8.617,53.791,35.13,60.899l0,0\n c26.513,7.108,53.771-8.632,60.883-35.158l1.374-5.123C371.778,395.999,365.971,377.536,353.351,365.387z"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M269.678,394.912L269.678,394.912c26.3,20.643,59.654,29.585,93.106,25.724l2.419-0.114"],["id","legs"],["id","legR"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M312.957,456.734l-14.315,53.395c-1.896,7.07,2.299,14.338,9.37,16.234l0,0c7.07,1.896,14.338-2.299,16.234-9.37l17.838-66.534\n C333.451,455.886,323.526,457.387,312.957,456.734z"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","x1","304.883","y1","486.849","x2","330.487","y2","493.713"],["id","legL"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M296.315,452.273L282,505.667c-1.896,7.07-9.164,11.265-16.234,9.37l0,0c-7.07-1.896-11.265-9.164-9.37-16.234l17.838-66.534\n C278.993,441.286,286.836,447.55,296.315,452.273z"],["fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","x1","262.638","y1","475.522","x2","288.241","y2","482.387"],["id","head"],["transform","matrix(0.259 -0.9659 0.9659 0.259 -51.5445 563.2371)","fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","cx","341.295","cy","315.211","rx","61.961","ry","60.305"],["id","headStripe","fill","none","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M330.868,261.338c-7.929,1.72-15.381,5.246-21.799,10.246"],["fill","#FFFFFF","stroke","#0E0620","stroke-width","3","stroke-linecap","round","stroke-linejoin","round","stroke-miterlimit","10","d","\n M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5s-28.485-16.599-34.877-24.192\n c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13c6.755-0.61,20.546-0.608,41.785,5.087\n s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"],["clip-path","url(#GlassClip)"],["id","glassShine","fill","none","stroke","#0E0620","stroke-width","3","stroke-miterlimit","10","points","\n 278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 \t\t\t\t"],[1,"text"],["mat-flat-button","","color","primary","routerLink","/"]],template:function(t,e){1&t&&(Vo(0,"div",0),hn(),Vo(1,"svg",1),Vo(2,"g"),Vo(3,"defs"),Vo(4,"clipPath",2),$o(5,"path",3),Ho(),Vo(6,"clipPath",4),$o(7,"rect",5),Ho(),Ho(),Vo(8,"g",6),$o(9,"circle",7),$o(10,"circle",8),$o(11,"circle",9),$o(12,"path",10),$o(13,"path",11),Ho(),Vo(14,"g",12),Vo(15,"g",13),Vo(16,"g"),$o(17,"line",14),$o(18,"line",15),Ho(),Vo(19,"g"),$o(20,"line",16),$o(21,"line",17),Ho(),Vo(22,"g"),$o(23,"line",18),$o(24,"line",19),Ho(),Vo(25,"g"),$o(26,"line",20),$o(27,"line",21),Ho(),Ho(),Vo(28,"g",22),Vo(29,"g"),$o(30,"line",23),$o(31,"line",24),Ho(),Vo(32,"g"),$o(33,"line",25),$o(34,"line",26),Ho(),Vo(35,"g"),$o(36,"line",27),$o(37,"line",28),Ho(),Vo(38,"g"),$o(39,"line",29),$o(40,"line",30),Ho(),Vo(41,"g"),$o(42,"line",31),$o(43,"line",32),Ho(),Vo(44,"g"),$o(45,"line",33),$o(46,"line",34),Ho(),Ho(),Vo(47,"g",35),$o(48,"circle",36),$o(49,"circle",37),$o(50,"circle",38),$o(51,"circle",39),$o(52,"circle",40),$o(53,"circle",41),$o(54,"circle",42),$o(55,"circle",43),Ho(),Vo(56,"g",44),$o(57,"circle",45),$o(58,"circle",46),$o(59,"circle",47),$o(60,"circle",48),$o(61,"circle",49),$o(62,"circle",50),$o(63,"circle",51),Ho(),Ho(),Vo(64,"g",52),$o(65,"path",53),$o(66,"path",54),Vo(67,"g",55),$o(68,"line",56),$o(69,"circle",57),Ho(),Vo(70,"g",58),$o(71,"path",59),$o(72,"path",60),Ho(),Vo(73,"g",61),$o(74,"path",62),$o(75,"path",63),Ho(),Vo(76,"g",64),$o(77,"path",65),$o(78,"path",66),Ho(),Vo(79,"g",67),Vo(80,"g",68),$o(81,"path",69),$o(82,"line",70),Ho(),Vo(83,"g",71),$o(84,"path",72),$o(85,"line",73),Ho(),Ho(),Vo(86,"g",74),$o(87,"ellipse",75),$o(88,"path",76),$o(89,"path",77),Vo(90,"g",78),$o(91,"polygon",79),Ho(),Ho(),Ho(),Ho(),Ho(),un(),Vo(92,"div",80),Vo(93,"h1"),Ea(94,"404"),Ho(),Vo(95,"h2"),Ea(96,"UH OH! You're lost."),Ho(),Vo(97,"p"),Ea(98,"The page you are looking for does not exist. How you got here is a mystery. But you can click the button below to go back to the homepage. "),Ho(),Vo(99,"a",81),Ea(100,"HOME"),Ho(),Ho(),Ho())},directives:[aS,eg],styles:["[_nghost-%COMP%], svg[_ngcontent-%COMP%]{width:100%}svg[_ngcontent-%COMP%]{padding:2rem 0}h1[_ngcontent-%COMP%]{font-size:7.5em;margin:15px 0}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{font-weight:700}.content[_ngcontent-%COMP%]{max-width:128rem;width:100%;display:flex}.content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{padding:2rem;color:var(--fontSimple)}"]}),t})();const bM=["mat-sort-header",""];function vM(t,e){if(1&t){const t=Zo();Vo(0,"div",3),Qo("@arrowPosition.start",function(){return Le(t),na()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Le(t),na()._disableViewStateAnimation=!1}),$o(1,"div",4),Vo(2,"div",5),$o(3,"div",6),$o(4,"div",7),$o(5,"div",8),Ho(),Ho()}if(2&t){const t=na();jo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),rr(2),jo("@indicator",t._getArrowDirectionState()),rr(1),jo("@leftPointer",t._getArrowDirectionState()),rr(1),jo("@rightPointer",t._getArrowDirectionState())}}const wM=["*"];class CM{}const kM=ok(ek(CM));let xM=(()=>{class t extends kM{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.sortChange=new pc}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Uw(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return SM(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[wo,ce]}),t})();const SM=Yn(xM),OM=QC.ENTERING+" "+KC.STANDARD_CURVE,EM={indicator:Qy("indicator",[eb("active-asc, asc",tb({transform:"translateY(0px)"})),eb("active-desc, desc",tb({transform:"translateY(10px)"})),ib("active-asc <=> active-desc",Xy(OM))]),leftPointer:Qy("leftPointer",[eb("active-asc, asc",tb({transform:"rotate(-45deg)"})),eb("active-desc, desc",tb({transform:"rotate(45deg)"})),ib("active-asc <=> active-desc",Xy(OM))]),rightPointer:Qy("rightPointer",[eb("active-asc, asc",tb({transform:"rotate(45deg)"})),eb("active-desc, desc",tb({transform:"rotate(-45deg)"})),ib("active-asc <=> active-desc",Xy(OM))]),arrowOpacity:Qy("arrowOpacity",[eb("desc-to-active, asc-to-active, active",tb({opacity:1})),eb("desc-to-hint, asc-to-hint, hint",tb({opacity:.54})),eb("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",tb({opacity:0})),ib("* => asc, * => desc, * => active, * => hint, * => void",Xy("0ms")),ib("* <=> *",Xy(OM))]),arrowPosition:Qy("arrowPosition",[ib("* => desc-to-hint, * => desc-to-active",Xy(OM,nb([tb({transform:"translateY(-25%)"}),tb({transform:"translateY(0)"})]))),ib("* => hint-to-desc, * => active-to-desc",Xy(OM,nb([tb({transform:"translateY(0)"}),tb({transform:"translateY(25%)"})]))),ib("* => asc-to-hint, * => asc-to-active",Xy(OM,nb([tb({transform:"translateY(25%)"}),tb({transform:"translateY(0)"})]))),ib("* => hint-to-asc, * => active-to-asc",Xy(OM,nb([tb({transform:"translateY(0)"}),tb({transform:"translateY(-25%)"})]))),eb("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",tb({transform:"translateY(0)"})),eb("hint-to-desc, active-to-desc, desc",tb({transform:"translateY(-25%)"})),eb("hint-to-asc, active-to-asc, asc",tb({transform:"translateY(25%)"}))]),allowChildren:Qy("allowChildren",[ib("* <=> *",[rb("@*",sb(),{optional:!0})])])};let TM=(()=>{class t{constructor(){this.changes=new k,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const PM={provide:TM,deps:[[new wi,new Ci,TM]],useFactory:function(t){return t||new TM}};class RM{}const MM=ek(RM);let IM=(()=>{class t extends MM{constructor(t,e,n,i,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=W(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Uw(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||t.keyCode!==Nw&&t.keyCode!==Fw||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(Bo(TM),Bo(Tl),Bo(xM,8),Bo("MAT_SORT_HEADER_COLUMN_DEF",8),Bo(LC),Bo(nl))},t.\u0275cmp=jt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&Qo("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(Do("aria-sort",e._getAriaSortAttribute()),ma("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[wo],attrs:bM,ngContentSelectors:wM,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(sa(),Vo(0,"div",0),Vo(1,"div",1),ra(2),Ho(),Fo(3,vM,6,6,"div",2),Ho()),2&t&&(ma("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),Do("tabindex",e._isDisabled()?null:0),rr(3),jo("ngIf",e._renderArrow()))},directives:[zu],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[EM.indicator,EM.leftPointer,EM.rightPointer,EM.arrowOpacity,EM.arrowPosition,EM.allowChildren]},changeDetection:0}),t})(),AM=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[PM],imports:[[ed,tk]]}),t})(),DM=(()=>{class t{constructor(t,e){this.http=t,this.endpointService=e}getDepositedQsr(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:14,method:t.sentinelDepositedQsr,params:[e]})}getAllActive(e,n){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:15,method:t.sentinelAllActive,params:[e,n]})}getAllByEpoch(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:16,method:t.sentinelAllByEpoch,params:[e]})}getAllByFrontierEpoch(){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:17,method:t.sentinelAllByFrontierEpoch,params:[]})}}return t.mnPath="/Sentinel",t.sentinelDepositedQsr="embedded.sentinel.getDepositedQsr",t.sentinelAllActive="embedded.sentinel.getAllActive",t.sentinelAllByEpoch="embedded.sentinel.getAllByEpoch",t.sentinelAllByFrontierEpoch="embedded.sentinelS.getAllByFrontierEpoch",t.\u0275fac=function(e){return new(e||t)(gi(Ry),gi(Vg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LM(t,e){1&t&&$o(0,"app-loading")}function FM(t,e){1&t&&(Vo(0,"mat-header-cell",18),Ea(1,"Address"),Ho())}const NM=function(t){return["/sentinel",t]};function BM(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",19),Ea(2,"Address:"),Ho(),Vo(3,"span",20),Vo(4,"a",21),Ea(5),ac(6,"shorten"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("matTooltip",t.owner),rr(1),jo("routerLink",ic(7,NM,t.owner)),rr(1),Pa(" ",hc(6,3,t.owner,void 0,"30")," ")}}function jM(t,e){1&t&&(Vo(0,"mat-header-cell",18),Ea(1,"Registration time"),Ho())}function zM(t,e){if(1&t&&(Vo(0,"span"),Ea(1),ac(2,"date"),Ho()),2&t){const t=na().$implicit;rr(1),Ta(cc(2,1,1e3*t.registrationTimestamp,"long"))}}function VM(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",19),Ea(2,"Registration time:"),Ho(),Fo(3,zM,3,4,"span",0),Ho()),2&t){const t=e.$implicit;rr(3),jo("ngIf",t.registrationTimestamp)}}function HM(t,e){1&t&&$o(0,"mat-header-row")}function $M(t,e){1&t&&$o(0,"mat-row")}function UM(t,e){if(1&t&&(Vo(0,"div",22),$o(1,"app-empty-state",23),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}let WM=(()=>{let t=class{constructor(t){this.sentinelsService=t,this.title="Sentinels List",this.sentinels=new eP([]),this.isLoadingResults=!0,this.isRateLimitReached=!1,this.isSticky=!0,this.pageSize=10,this.resultsLength=0,this.limits=[10,20,50,100],this.pageIndexChanged=new Fd(0),this.displayedColumns=["owner","registrationTimestamp"],this.subscribers={}}set paginator(t){t&&(this.sentinels.paginator=t)}set sort(t){t&&(this.sentinels.sort=t)}ngOnInit(){this.subscribers.pageIndex=this.pageIndexChanged.subscribe(t=>{this.pageIndex=t})}ngAfterViewInit(){this.subscribers.sentinelsList=this.getListOfSentinels(this.pageIndex,this.pageSize).subscribe(t=>{this.sentinels.data=t},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}getListOfSentinels(t,e){return this.sentinelsService.getAllActive(t,e).pipe(cp(e=>(this.isLoadingResults=!0,this.isRateLimitReached=!1,this.resultsLength=e.result.count,this.sentinelsService.getAllActive(t,this.resultsLength))),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}};return t.\u0275fac=function(e){return new(e||t)(Bo(DM))},t.\u0275cmp=jt({type:t,selectors:[["app-sentinels-list"]],viewQuery:function(t,e){if(1&t&&(Oc(zP,1),Oc(xM,1)),2&t){let t;Sc(t=Tc())&&(e.paginator=t.first),Sc(t=Tc())&&(e.sort=t.first)}},decls:24,vars:11,consts:[[4,"ngIf"],[1,"nodes-list"],[1,"nodes-list__header"],[1,"container"],[1,"nodes-list__header-title"],[1,"nodes-list__content"],[1,"nodes-list__content-table"],[1,"nodes-list__filter"],["showFirstLastButtons","",3,"length","pageIndex","pageSize","pageSizeOptions"],[1,"mobile-table"],["matSort","",3,"dataSource"],["matColumnDef","owner"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","registrationTimestamp"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],["class","emptyState",4,"ngIf"],["mat-sort-header",""],[1,"mobile-label"],["matTooltipPosition","above","matTooltipClass","tooltip",3,"matTooltip"],[1,"link",3,"routerLink"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,LM,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"div",6),Vo(10,"div",7),$o(11,"mat-paginator",8),Ho(),Vo(12,"mat-card"),Vo(13,"mat-card-content",9),Vo(14,"mat-table",10),Uo(15,11),Fo(16,FM,2,0,"mat-header-cell",12),Fo(17,BM,7,9,"mat-cell",13),Wo(),Uo(18,14),Fo(19,jM,2,0,"mat-header-cell",12),Fo(20,VM,4,1,"mat-cell",13),Wo(),Fo(21,HM,1,0,"mat-header-row",15),Fo(22,$M,1,0,"mat-row",16),Ho(),Fo(23,UM,2,1,"div",17),Ho(),Ho(),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),jo("length",e.resultsLength)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.limits),rr(3),jo("dataSource",e.sentinels),rr(7),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns),rr(1),jo("ngIf",!e.isLoadingResults&&!e.sentinels.data.length))},directives:[zu,zP,Xk,Gk,AT,xM,jT,NT,LT,WT,ZT,FS,VT,IM,$T,fE,eg,GT,QT,vE],pipes:[wE,Ju],styles:['[_nghost-%COMP%]{width:100%}.nodes-list__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:5rem;line-height:5rem;width:100%;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.nodes-list__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.nodes-list__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.nodes-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;letter-spacing:.02rem}.nodes-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.nodes-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.nodes-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}.nodes-list__content[_ngcontent-%COMP%]{display:grid;justify-items:center}.nodes-list__content-table[_ngcontent-%COMP%]{margin-top:4rem}.nodes-list__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%], .nodes-list__filter[_ngcontent-%COMP%]{justify-content:flex-end}.nodes-list__filter[_ngcontent-%COMP%]{display:flex}@media screen and (max-width:768px){.nodes-list__filter[_ngcontent-%COMP%]{flex-direction:column}.nodes-list__filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}']}),t=qE([nP()],t),t})();function qM(t,e){1&t&&ra(0)}const ZM=["*"];function YM(t,e){}const GM=function(t){return{animationDuration:t}},KM=function(t,e){return{value:t,params:e}},QM=["tabBodyWrapper"],XM=["tabHeader"];function JM(t,e){}function tI(t,e){1&t&&Fo(0,JM,0,0,"ng-template",9),2&t&&jo("cdkPortalOutlet",na().$implicit.templateLabel)}function eI(t,e){1&t&&Ea(0),2&t&&Ta(na().$implicit.textLabel)}function nI(t,e){if(1&t){const t=Zo();Vo(0,"div",6),Qo("click",function(){Le(t);const n=e.$implicit,i=e.index,s=na(),r=No(1);return s._handleClick(n,r,i)}),Vo(1,"div",7),Fo(2,tI,1,1,"ng-template",8),Fo(3,eI,1,1,"ng-template",8),Ho(),Ho()}if(2&t){const t=e.$implicit,n=e.index,i=na();ma("mat-tab-label-active",i.selectedIndex==n),jo("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),Do("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),rr(2),jo("ngIf",t.templateLabel),rr(1),jo("ngIf",!t.templateLabel)}}function iI(t,e){if(1&t){const t=Zo();Vo(0,"mat-tab-body",10),Qo("_onCentered",function(){return Le(t),na()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Le(t),na()._setTabBodyWrapperHeight(e)}),Ho()}if(2&t){const t=e.$implicit,n=e.index,i=na();ma("mat-tab-body-active",i.selectedIndex==n),jo("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),Do("aria-labelledby",i._getTabLabelId(n))}}const sI=["tabListContainer"],rI=["tabList"],oI=["nextPaginator"],aI=["previousPaginator"],lI=new Xn("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let cI=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(th),Bo(lI),Bo(Aw,8))},t.\u0275dir=Wt({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ma("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const hI=new Xn("MatTabContent"),uI=new Xn("MatTabLabel");class dI{}const pI=ek(dI),mI=new Xn("MAT_TAB_GROUP");let fI=(()=>{class t extends pI{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new pO(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(mI))},t.\u0275cmp=jt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(Ec(n,uI,1),Ec(n,hI,3,Dl)),2&t){let t;Sc(t=Tc())&&(e.templateLabel=t.first),Sc(t=Tc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Oc(Dl,3),2&t){let t;Sc(t=Tc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[wo,ce],ngContentSelectors:ZM,decls:1,vars:0,template:function(t,e){1&t&&(sa(),Fo(0,qM,1,0,"ng-template"))},encapsulation:2}),t})();const gI={translateTab:Qy("translateTab",[eb("center, void, left-origin-center, right-origin-center",tb({transform:"none"})),eb("left",tb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),eb("right",tb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ib("* => left, * => right, left => center, right => center",Xy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ib("void => left-origin-center",[tb({transform:"translate3d(-100%, 0, 0)"}),Xy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ib("void => right-origin-center",[tb({transform:"translate3d(100%, 0, 0)"}),Xy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let _I=(()=>{class t extends _O{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Jd(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Xa),Bo(Vl),Bo(rt(()=>bI)),Bo(Ah))},t.\u0275dir=Wt({type:t,selectors:[["","matTabBodyHost",""]],features:[wo]}),t})(),yI=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new k,this._onCentering=new pc,this._beforeCentering=new pc,this._afterLeavingCenter=new pc,this._onCentered=new pc(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(JS((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(UC,8),Bo(Tl))},t.\u0275dir=Wt({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),bI=(()=>{class t extends yI{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(UC,8),Bo(Tl))},t.\u0275cmp=jt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Oc(_O,1),2&t){let t;Sc(t=Tc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[wo],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var n,i,s;1&t&&(Vo(0,"div",0,1),Qo("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),Fo(2,YM,0,0,"ng-template",2),Ho()),2&t&&jo("@translateTab",(3,n=KM,i=e._position,s=ic(1,GM,e.animationDuration),oc(Ae(),$e(),3,n,i,s,undefined)))},directives:[_I],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[gI.translateTab]}}),t})();const vI=new Xn("MAT_TABS_CONFIG");let wI=0;class CI{}class kI{constructor(t){this._elementRef=t}}const xI=nk(ik(kI),"primary");let SI=(()=>{class t extends xI{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new fc,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new pc,this.focusChange=new pc,this.animationDone=new pc,this.selectedTabChange=new pc(!0),this._groupId=wI++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Uw(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Ww(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Jd(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new CI;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=W(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(vI,8),Bo(Aw,8))},t.\u0275dir=Wt({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[wo]}),t})(),OI=(()=>{class t extends SI{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(vI,8),Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&Ec(n,fI,1),2&t){let t;Sc(t=Tc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Oc(QM,1),Oc(XM,1)),2&t){let t;Sc(t=Tc())&&(e._tabBodyWrapper=t.first),Sc(t=Tc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ma("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Ga([{provide:mI,useExisting:t}]),wo],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Vo(0,"mat-tab-header",0,1),Qo("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),Fo(2,nI,4,14,"div",2),Ho(),Vo(3,"div",3,4),Fo(5,iI,1,8,"mat-tab-body",5),Ho()),2&t&&(jo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),rr(2),jo("ngForOf",e._tabs),rr(1),ma("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(2),jo("ngForOf",e._tabs))},directives:function(){return[AI,Bu,PI,Pk,NC,zu,_O,bI]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class EI{}const TI=ek(EI);let PI=(()=>{class t extends TI{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(Do("aria-disabled",!!e.disabled),ma("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[wo]}),t})();const RI=rC({passive:!0});let MI=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new pc,this.indexFocused=new pc,s.runOutsideAngular(()=>{ex(t.nativeElement,"mouseleave").pipe(kg(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Ww(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){ex(this._previousPaginator.nativeElement,"touchstart",RI).pipe(kg(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ex(this._nextPaginator.nativeElement,"touchstart",RI).pipe(kg(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Ld(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new kC(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),W(t,e,this._items.changes).pipe(kg(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(kg(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Bw(t))switch(t.keyCode){case Fw:case Nw:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;r<a?this.scrollDistance-=a-r+60:o>l&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Vx(650,100).pipe(kg(W(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(lO),Bo(UC,8),Bo(th),Bo(Xw),Bo(Aw,8))},t.\u0275dir=Wt({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),II=(()=>{class t extends MI{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Uw(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(lO),Bo(UC,8),Bo(th),Bo(Xw),Bo(Aw,8))},t.\u0275dir=Wt({type:t,inputs:{disableRipple:"disableRipple"},features:[wo]}),t})(),AI=(()=>{class t extends II{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Tl),Bo(lO),Bo(UC,8),Bo(th),Bo(Xw),Bo(Aw,8))},t.\u0275cmp=jt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&Ec(n,PI,0),2&t){let t;Sc(t=Tc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Oc(cI,3),Oc(sI,3),Oc(rI,3),Oc(oI,1),Oc(aI,1)),2&t){let t;Sc(t=Tc())&&(e._inkBar=t.first),Sc(t=Tc())&&(e._tabListContainer=t.first),Sc(t=Tc())&&(e._tabList=t.first),Sc(t=Tc())&&(e._nextPaginator=t.first),Sc(t=Tc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ma("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[wo],ngContentSelectors:ZM,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(sa(),Vo(0,"div",0,1),Qo("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),$o(2,"div",2),Ho(),Vo(3,"div",3,4),Qo("keydown",function(t){return e._handleKeydown(t)}),Vo(5,"div",5,6),Qo("cdkObserveContent",function(){return e._onContentChanges()}),Vo(7,"div",7),ra(8),Ho(),$o(9,"mat-ink-bar"),Ho(),Ho(),Vo(10,"div",8,9),Qo("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),$o(12,"div",2),Ho()),2&t&&(ma("mat-tab-header-pagination-disabled",e._disableScrollBefore),jo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),rr(5),ma("_mat-animation-noopable","NoopAnimations"===e._animationMode),rr(5),ma("mat-tab-header-pagination-disabled",e._disableScrollAfter),jo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Pk,hC,cI],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),DI=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ed,tk,yO,Rk,uC,HC],tk]}),t})();const LI=["sort"],FI=["paginator"];function NI(t,e){1&t&&(Vo(0,"mat-header-cell",14),Ea(1,"Balance"),Ho())}function BI(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",15),Ea(2,"Balance:"),Ho(),Ea(3),ac(4,"number"),Ho()),2&t){const t=e.$implicit,n=na();rr(3),Pa(" ",lc(4,1,t.balance/(t.token?n.math.pow(10,t.token.decimals):n.dividedBy))||0," ")}}function jI(t,e){1&t&&(Vo(0,"mat-header-cell",14),Ea(1,"Symbol"),Ho())}function zI(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",15),Ea(2,"Symbol:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",null==t.token?null:t.token.symbol," ")}}function VI(t,e){1&t&&(Vo(0,"mat-header-cell",14),Ea(1,"ZTS"),Ho())}const HI=function(t){return["/token",t]};function $I(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",15),Ea(2,"ZTS:"),Ho(),Vo(3,"a",16),Vo(4,"span",17),Ea(5),ac(6,"shorten"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(7,HI,null==t.token?null:t.token.tokenStandard)),rr(1),jo("matTooltip",null==t.token?null:t.token.tokenStandard),rr(1),Pa(" ",hc(6,3,null==t.token?null:t.token.tokenStandard,void 0,"30")," ")}}function UI(t,e){1&t&&$o(0,"mat-header-row")}function WI(t,e){1&t&&$o(0,"mat-row")}const qI=function(t){return{hidden:t}};let ZI=(()=>{class t{constructor(){this.math=Math,this.pageTokensIndexChanged=new Fd(1),this.pageSizeTokens=10,this.tokensLength=0,this.tokens=new eP([]),this.tokensLimits=[10,20,50,100],this.isSticky=!0,this.tableEvents=new pc,this.displayedColumns=["balance","symbol","tokenStandard"],this.destroy$=new k}set sort(t){t&&(this.tokens.sort=t)}set paginator(t){t&&(this.tokens.paginator=t)}ngOnInit(){this.pageTokensIndexChanged.pipe(kg(this.destroy$)).subscribe(t=>{this.pageTokensIndex=t}),this.tokens.sortingDataAccessor=(t,e)=>{var n,i;switch(e){case"symbol":return null===(n=t.token)||void 0===n?void 0:n.symbol;case"tokenStandard":return null===(i=t.token)||void 0===i?void 0:i.tokenStandard;default:return t[e]}}}onPageChanged(t){this.tableEvents.emit({action:"page",data:t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-token-list"]],viewQuery:function(t,e){if(1&t&&(Oc(LI,1),Oc(FI,1)),2&t){let t;Sc(t=Tc())&&(e.sort=t.first),Sc(t=Tc())&&(e.paginator=t.first)}},inputs:{pageSizeTokens:"pageSizeTokens",tokensLength:"tokensLength",tokens:"tokens",tokensLimits:"tokensLimits",isSticky:"isSticky"},outputs:{tableEvents:"tableEvents"},decls:19,vars:10,consts:[[1,"address__content-table",3,"ngClass"],[1,"address__content-navigation"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions","page"],["paginator","matPaginator"],[1,"mobile-table"],["matSort","",1,"tokens__table",3,"dataSource"],["sort","matSort"],["matColumnDef","balance"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","symbol"],["matColumnDef","tokenStandard"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[1,"mobile-label"],[1,"link",3,"routerLink"],["matTooltipPosition","above","matTooltipClass","tooltip",3,"matTooltip"]],template:function(t,e){1&t&&(Vo(0,"div",0),Vo(1,"div",1),Vo(2,"mat-paginator",2,3),Qo("page",function(t){return e.onPageChanged(t)}),Ho(),Ho(),Vo(4,"mat-card"),Vo(5,"mat-card-content",4),Vo(6,"mat-table",5,6),Uo(8,7),Fo(9,NI,2,0,"mat-header-cell",8),Fo(10,BI,5,3,"mat-cell",9),Wo(),Uo(11,10),Fo(12,jI,2,0,"mat-header-cell",8),Fo(13,zI,4,1,"mat-cell",9),Wo(),Uo(14,11),Fo(15,VI,2,0,"mat-header-cell",8),Fo(16,$I,7,9,"mat-cell",9),Wo(),Fo(17,UI,1,0,"mat-header-row",12),Fo(18,WI,1,0,"mat-row",13),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngClass",ic(8,qI,!e.tokensLength)),rr(2),jo("length",e.tokensLength)("pageSize",e.pageSizeTokens)("pageSizeOptions",e.tokensLimits),rr(4),jo("dataSource",e.tokens),rr(11),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns))},directives:[Fu,zP,Xk,Gk,AT,xM,jT,NT,LT,WT,ZT,VT,IM,$T,eg,fE,GT,QT],pipes:[td,wE],styles:["@media screen and (min-width:769px){.tokens__table[_ngcontent-%COMP%] .mat-column-tokenStandard[_ngcontent-%COMP%]{flex:0 1 55%}.tokens__table[_ngcontent-%COMP%] .mat-column-balance[_ngcontent-%COMP%]{flex:0 1 25%}.tokens__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 20%}}"]}),t})();function YI(t,e){1&t&&$o(0,"app-loading")}const GI=function(t){return["/address",t]};function KI(t,e){if(1&t&&(Vo(0,"mat-card"),Vo(1,"mat-card-content"),Vo(2,"div",14),Vo(3,"div",15),Vo(4,"span",16),Ea(5,"Address:"),Ho(),Vo(6,"span",17),Vo(7,"span"),Vo(8,"a",18),Ea(9),Ho(),Ho(),Vo(10,"button",19),$o(11,"mat-icon",20),Ho(),Ho(),Ho(),Vo(12,"div",15),Vo(13,"span",16),Ea(14,"Registration Time:"),Ho(),Vo(15,"span",21),Ea(16),ac(17,"number"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=na();rr(8),jo("routerLink",ic(7,GI,t.sentinel.owner)),rr(1),Ta(t.sentinel.owner),rr(1),jo("cdkCopyToClipboard",t.sentinel.owner)("cdkCopyToClipboardAttempts",5),rr(6),Ta(lc(17,5,t.sentinel.registrationTimestamp))}}function QI(t,e){if(1&t&&(Vo(0,"div",22),$o(1,"app-empty-state",23),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}function XI(t,e){if(1&t&&(Vo(0,"div",22),$o(1,"app-empty-state",23),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}function JI(t,e){if(1&t&&(Vo(0,"div",22),$o(1,"app-empty-state",23),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}const tA=function(){return[!0,3]};let eA=(()=>{class t{constructor(t,e,n){this.route=t,this.sentinelsService=e,this.ledgerService=n,this.title="Sentinel Details",this.math=Math,this.dividedBy=1e8,this.pageSizeTransactions=10,this.pageTransactionsIndex=0,this.pageSizeUnreceived=10,this.pageUnreceivedIndex=0,this.pageSizeTokens=10,this.pageTokensIndex=1,this.tokensLength=0,this.transactionsReceivedLength=0,this.transactionsUnreceivedLength=0,this.tokens=new eP([]),this.transactionsReceived=new eP([]),this.transactionsUnreceived=new eP([]),this.isStickyReceived=!0,this.isStickyUnreceived=!0,this.isStickyTokens=!0,this.isLoadingResults=!0,this.isRateLimitReached=!1,this.blocksType=iP,this.destroy$=new k,this.onTransactionStream$=new k,this.onUnreceivedStream$=new k,this.onTokenStream$=new k,this.onSentinelStream$=new jg}ngOnInit(){this.route.params.pipe(kg(this.destroy$)).subscribe(t=>{this.address=t.address,this.onSentinelStream$.next(t.address)})}ngAfterViewInit(){this.onSentinelStream$.pipe(kg(this.destroy$),qd(t=>this.getActiveSentinel(t))).subscribe(t=>this.sentinel=t),this.getListOfTokens(this.address,this.pageTokensIndex,this.pageSizeTokens).pipe(kg(this.destroy$)).subscribe(t=>this.tokens.data=t),this.onTransactionStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfTransactions(this.address,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsReceived.data=t),this.onUnreceivedStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfUnreceivedTransactions(this.address,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsUnreceived.data=t)}onTransactionEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTransactionsIndex=n.pageIndex,this.pageSizeTransactions=n.pageSize,this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions,length:n.length});break;default:console.log(e)}}onUnreceivedTransactionEvents(t){switch(t.action){case"page":const e=t.data;this.pageUnreceivedIndex=e.pageIndex,this.pageSizeUnreceived=e.pageSize,this.onUnreceivedStream$.next(e)}}onTokenEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTokensIndex=n.pageIndex,this.pageSizeTokens=n.pageSize;break;default:console.log(e)}}getActiveSentinel(t){return this.sentinelsService.getAllActive(0,1).pipe(cp(t=>(this.isLoadingResults=!0,this.isRateLimitReached=!1,this.resultsLength=t.result.count,this.sentinelsService.getAllActive(0,this.resultsLength))),L(e=>{let n;this.isLoadingResults=!1,this.isRateLimitReached=!1;for(let i=0;i<e.result.list.length;i++)e.result.list[i].owner===t&&(n=e.result.list[i]);return n}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getListOfTransactions(t,e,n){const i=this.transactionsReceivedLength%n,s=Math.floor(this.transactionsReceivedLength/n);return this.ledgerService.getAccountBlocksByPage(t,e,e===s+1&&i?i:n).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getListOfUnreceivedTransactions(t,e,n){const i=this.transactionsUnreceivedLength%n,s=Math.floor(this.transactionsUnreceivedLength/n);return this.ledgerService.getUnreceivedBlocksByAddress(t,e,e===s+1&&i?i:n).pipe(cp(n=>(this.isLoadingResults=!0,this.isRateLimitReached=!1,this.transactionsUnreceivedLength=n.result.count,this.ledgerService.getUnreceivedBlocksByAddress(t,e,this.transactionsUnreceivedLength))),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}compareTokens(t,e){if(t.balance>0)return t.token.symbol<e.token.symbol?1:t.token.symbol>e.token.symbol?-1:0}getListOfTokens(t,e,n){return this.ledgerService.getAccountInfoByAddress(t).pipe(L(t=>{const e=Object.values(t.result.balanceInfoMap);this.tokensLength=e.length,this.transactionsReceivedLength=t.result.accountHeight;const n=e.sort((t,e)=>this.compareTokens(t,e));return this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions}),this.onUnreceivedStream$.next({pageIndex:this.pageUnreceivedIndex,pageSize:this.pageSizeUnreceived}),n}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld(null))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(DM),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-sentinel-details"]],decls:28,vars:17,consts:[[4,"ngIf"],[1,"node"],[1,"node__header"],[1,"container"],[1,"node__header-title"],[1,"node__content"],[1,"node__tabs","tab-custom-overflow"],["label","Transactions"],[3,"transactionsLength","transactions","tableEvents"],["class","emptyState",4,"ngIf"],["label","Unreceived Transactions"],["label","ZTS"],[3,"tokens","tokensLength","tableEvents"],[3,"innerHTML"],[1,"node__info"],[1,"row"],[1,"prop"],[1,"value","copy-clipboard"],[1,"link",3,"routerLink"],["matRipple","",1,"clipboard",3,"cdkCopyToClipboard","cdkCopyToClipboardAttempts"],["svgIcon","content-copy"],[1,"value"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,YI,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"h3"),Ea(10,"Sentinel Information"),Ho(),Fo(11,KI,18,9,"mat-card",0),Vo(12,"mat-tab-group",6),Vo(13,"mat-tab",7),Vo(14,"app-transaction-list",8),Qo("tableEvents",function(t){return e.onTransactionEvents(t)}),Ho(),Fo(15,QI,2,1,"div",9),Ho(),Vo(16,"mat-tab",10),Vo(17,"app-transaction-list",8),Qo("tableEvents",function(t){return e.onUnreceivedTransactionEvents(t)}),Ho(),Fo(18,XI,2,1,"div",9),Ho(),Vo(19,"mat-tab",11),Vo(20,"app-token-list",12),Qo("tableEvents",function(t){return e.onTokenEvents(t)}),Ho(),Fo(21,JI,2,1,"div",9),Ho(),Ho(),Vo(22,"h3"),Ea(23,"Raw data"),Ho(),Vo(24,"mat-card"),Vo(25,"mat-card-content"),$o(26,"pre",13),ac(27,"prettyjson"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),jo("ngIf",e.sentinel),rr(3),jo("transactionsLength",e.transactionsReceivedLength)("transactions",e.transactionsReceived),rr(1),jo("ngIf",!e.isLoadingResults&&!e.transactionsReceivedLength),rr(2),jo("transactionsLength",e.transactionsUnreceivedLength)("transactions",e.transactionsUnreceived),rr(1),jo("ngIf",!e.isLoadingResults&&!e.transactionsUnreceivedLength),rr(2),jo("tokens",e.tokens)("tokensLength",e.tokensLength),rr(1),jo("ngIf",!e.isLoadingResults&&!e.tokensLength),rr(5),jo("innerHTML",cc(27,13,e.sentinel,nc(16,tA)),os))},directives:[zu,OI,fI,nM,ZI,Xk,Gk,FS,eg,Pk,wR,kS,vE],pipes:[iM,td],styles:['@media screen and (min-width:769px){.received__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.received__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-height[_ngcontent-%COMP%]{flex:0 1 5%}.received__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 20%}.received__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 15%}.received__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.unreceived__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%], .unreceived__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.tokens__table[_ngcontent-%COMP%] .mat-column-tokenStandard[_ngcontent-%COMP%]{flex:0 1 55%}.tokens__table[_ngcontent-%COMP%] .mat-column-balance[_ngcontent-%COMP%]{flex:0 1 25%}.tokens__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 20%}}[_nghost-%COMP%]{width:100%}.node__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.node__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.node__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;letter-spacing:.02rem}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.node__header-title[_ngcontent-%COMP%]{flex-direction:column}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:1rem;padding-left:0;margin-left:0}.node__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:none}}.node__tabs[_ngcontent-%COMP%]{margin-top:4rem}.node__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.node__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.node__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.node__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.node__filter[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media screen and (max-width:768px){.node__filter[_ngcontent-%COMP%]{flex-direction:column}.node__filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}.node__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t})(),nA=(()=>{class t{constructor(t,e){this.http=t,this.endpointService=e}getDepositedQsr(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:1,method:t.pillarDepositedQsr,params:[e]})}getQsrRegistrationCost(){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:2,method:t.pillarQsrRegistrationCost,params:[]})}getAll(e,n){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:3,method:t.pillarAll,params:[e,n]})}getByOwner(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:4,method:t.pillarByOwner,params:[e]})}getByName(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:5,method:t.pillarByName,params:[e]})}getRewardByTimestamp(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:6,method:t.pillarRewardByTimestamp,params:[e]})}getRewardByEpoch(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:7,method:t.pillarRewardByEpoch,params:[e]})}getDelegatedPillar(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:8,method:t.pillarDelegatedPillar,params:[e]})}getAllDelegationInfoByEpoch(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:9,method:t.pillarAllDelegationInfoByEpoch,params:[e]})}getVestingDetails(e){return this.http.post(`${this.endpointService.endpoint}`,{jsonrpc:"2.0",id:10,method:t.pillarVestingDetails,params:[e]})}}return t.pillarsPath="/pillar",t.pillarDepositedQsr="embedded.pillar.getDepositedQsr",t.pillarQsrRegistrationCost="embedded.pillar.getQsrRegistrationCost",t.pillarAll="embedded.pillar.getAll",t.pillarByOwner="embedded.pillar.getByOwner",t.pillarByName="embedded.pillar.getByName",t.pillarRewardByTimestamp="embedded.pillar.getRewardByTimestamp",t.pillarRewardByEpoch="embedded.pillar.getRewardByEpoch",t.pillarDelegatedPillar="embedded.pillar.getDelegatedPillar",t.pillarAllDelegationInfoByEpoch="embedded.pillar.getAllDelegationInfoByEpoch",t.pillarVestingDetails="embedded.pillar.getVestingDetails",t.\u0275fac=function(e){return new(e||t)(gi(Ry),gi(Vg))},t.\u0275prov=lt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iA(t,e){1&t&&$o(0,"app-loading")}function sA(t,e){1&t&&(Vo(0,"mat-header-cell",21),Ea(1,"Address"),Ho())}const rA=function(t){return["/pillar",t]};function oA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",22),Ea(2,"Address:"),Ho(),Vo(3,"span",23),Vo(4,"a",24),Ea(5),ac(6,"shorten"),Ho(),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("matTooltip",t.ownerAddress),rr(1),jo("routerLink",ic(6,rA,t.ownerAddress)),rr(1),Pa(" ",cc(6,3,t.ownerAddress,1)," ")}}function aA(t,e){1&t&&(Vo(0,"mat-header-cell",21),Ea(1,"Name"),Ho())}function lA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",22),Ea(2,"Name:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",t.name," ")}}function cA(t,e){1&t&&(Vo(0,"mat-header-cell",21),Ea(1,"Weight"),Ho())}function hA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",22),Ea(2,"Weight:"),Ho(),Ea(3),ac(4,"number"),Ho()),2&t){const t=e.$implicit,n=na();rr(3),Pa(" ",lc(4,1,t.weight/n.dividedBy)," ZNN ")}}function uA(t,e){1&t&&(Vo(0,"mat-header-cell",21),Ea(1,"Target / Produced Momentums"),Ho())}function dA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",22),Ea(2,"Target / Produced Momentums:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Ra(" ",t.currentStats.expectedMomentums," / ",t.currentStats.producedMomentums," ")}}function pA(t,e){1&t&&(Vo(0,"mat-header-cell",21),Ea(1,"Genesis Pillar"),Ho())}function mA(t,e){1&t&&$o(0,"mat-icon",26)}function fA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",22),Ea(2,"Genesis Pillar:"),Ho(),Fo(3,mA,1,0,"mat-icon",25),Ho()),2&t){const t=e.$implicit;rr(3),jo("ngIf",1===t.type)}}function gA(t,e){1&t&&$o(0,"mat-header-row")}function _A(t,e){1&t&&$o(0,"mat-row")}function yA(t,e){if(1&t&&(Vo(0,"div",27),$o(1,"app-empty-state",28),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}let bA=(()=>{let t=class{constructor(t){this.pillarsService=t,this.title="Pillars List",this.pillars=new eP([]),this.isLoadingResults=!0,this.isRateLimitReached=!1,this.dividedBy=1e8,this.isSticky=!0,this.pageSize=10,this.resultsLength=0,this.limits=[10,20,50,100],this.pageIndexChanged=new Fd(0),this.displayedColumns=["ownerAddress","name","weight","targetMomentums"],this.subscribers={pageIndex:0,pillarsList:[]}}set paginator(t){t&&(this.pillars.paginator=t)}set sort(t){t&&(this.pillars.sort=t)}ngOnInit(){this.pillars.sortingDataAccessor=(t,e)=>{var n,i,s;switch(e){case"delegationReward":return null===(n=t.currentReward)||void 0===n?void 0:n.delegationReward;case"targetMomentums":return null===(i=t.currentReward)||void 0===i?void 0:i.expectedMomentums;case"momentumReward":return null===(s=t.currentReward)||void 0===s?void 0:s.momentumReward;case"genesis":return t.type;default:return t[e]}},this.subscribers.pageIndex=this.pageIndexChanged.subscribe(t=>{this.pageIndex=t})}ngAfterViewInit(){this.subscribers.pillarsList=this.getListOfPillars(this.pageIndex,this.pageSize).subscribe(t=>{this.pillars.data=t},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}getListOfPillars(t,e){return this.pillarsService.getAll(t,e).pipe(cp(e=>(this.isLoadingResults=!0,this.isRateLimitReached=!1,this.resultsLength=e.result.count,this.pillarsService.getAll(t,this.resultsLength))),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}};return t.\u0275fac=function(e){return new(e||t)(Bo(nA))},t.\u0275cmp=jt({type:t,selectors:[["app-pillars-list"]],viewQuery:function(t,e){if(1&t&&(Oc(zP,1),Oc(xM,1)),2&t){let t;Sc(t=Tc())&&(e.paginator=t.first),Sc(t=Tc())&&(e.sort=t.first)}},decls:33,vars:10,consts:[[4,"ngIf"],[1,"pillars-list"],[1,"pillars-list__header"],[1,"container"],[1,"pillars-list__header-title"],[1,"pillars-list__content"],[1,"pillars-list__content-table"],[1,"pillars-list__filter"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],[1,"mobile-table"],["matSort","","matSortActive","weight","matSortDirection","desc",1,"pillars-list__table",3,"dataSource"],["matColumnDef","ownerAddress"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","targetMomentums"],["matColumnDef","genesis"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],["class","emptyState",4,"ngIf"],["mat-sort-header",""],[1,"mobile-label"],["matTooltipPosition","above","matTooltipClass","tooltip",3,"matTooltip"],[1,"link",3,"routerLink"],["svgIcon","check-circle","color","primary",4,"ngIf"],["svgIcon","check-circle","color","primary"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,iA,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"div",6),Vo(10,"div",7),$o(11,"mat-paginator",8),Ho(),Vo(12,"mat-card"),Vo(13,"mat-card-content",9),Vo(14,"mat-table",10),Uo(15,11),Fo(16,sA,2,0,"mat-header-cell",12),Fo(17,oA,7,8,"mat-cell",13),Wo(),Uo(18,14),Fo(19,aA,2,0,"mat-header-cell",12),Fo(20,lA,4,1,"mat-cell",13),Wo(),Uo(21,15),Fo(22,cA,2,0,"mat-header-cell",12),Fo(23,hA,5,3,"mat-cell",13),Wo(),Uo(24,16),Fo(25,uA,2,0,"mat-header-cell",12),Fo(26,dA,4,2,"mat-cell",13),Wo(),Uo(27,17),Fo(28,pA,2,0,"mat-header-cell",12),Fo(29,fA,4,1,"mat-cell",13),Wo(),Fo(30,gA,1,0,"mat-header-row",18),Fo(31,_A,1,0,"mat-row",19),Ho(),Fo(32,yA,2,1,"div",20),Ho(),Ho(),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),jo("length",e.resultsLength)("pageSize",e.pageSize)("pageSizeOptions",e.limits),rr(3),jo("dataSource",e.pillars),rr(16),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns),rr(1),jo("ngIf",!e.isLoadingResults&&!e.pillars.data.length))},directives:[zu,zP,Xk,Gk,AT,xM,jT,NT,LT,WT,ZT,FS,VT,IM,$T,fE,eg,kS,GT,QT,vE],pipes:[wE,td],styles:['[_nghost-%COMP%]{width:100%}.pillars-list__table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .pillars-list__table[_ngcontent-%COMP%] .mat-column-ownerAddress[_ngcontent-%COMP%], .pillars-list__table[_ngcontent-%COMP%] .mat-column-targetMomentums[_ngcontent-%COMP%], .pillars-list__table[_ngcontent-%COMP%] .mat-column-weight[_ngcontent-%COMP%]{flex:0 1 25%}.pillars-list__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:5rem;line-height:5rem;width:100%;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.pillars-list__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.pillars-list__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.pillars-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;letter-spacing:.02rem}.pillars-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.pillars-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.pillars-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}.pillars-list__content[_ngcontent-%COMP%]{display:grid;justify-items:center}.pillars-list__content-table[_ngcontent-%COMP%]{margin-top:4rem}.pillars-list__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%], .pillars-list__filter[_ngcontent-%COMP%]{justify-content:flex-end}.pillars-list__filter[_ngcontent-%COMP%]{display:flex}@media screen and (max-width:768px){.pillars-list__filter[_ngcontent-%COMP%]{flex-direction:column}.pillars-list__filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}']}),t=qE([nP()],t),t})();function vA(t,e){1&t&&$o(0,"app-loading")}function wA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}function CA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}function kA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}const xA=function(t){return["/address",t]},SA=function(){return[!0,3]};function OA(t,e){if(1&t){const t=Zo();Vo(0,"div",6),Vo(1,"div",3),Vo(2,"h3"),Ea(3,"Pillar Information"),Ho(),Vo(4,"mat-card"),Vo(5,"mat-card-content"),Vo(6,"div",7),Vo(7,"div",8),Vo(8,"span",9),Ea(9,"Name:"),Ho(),Vo(10,"span",10),Ea(11),Ho(),Ho(),Vo(12,"div",8),Vo(13,"span",9),Ea(14,"Address:"),Ho(),Vo(15,"span",11),Vo(16,"span"),Vo(17,"a",12),Ea(18),Ho(),Ho(),Vo(19,"button",13),$o(20,"mat-icon",14),Ho(),Ho(),Ho(),Vo(21,"div",8),Vo(22,"span",9),Ea(23,"Weight:"),Ho(),Vo(24,"span",10),Ea(25),ac(26,"number"),Ho(),Ho(),Vo(27,"div",8),Vo(28,"span",9),Ea(29,"Target Momentums:"),Ho(),Vo(30,"span",10),Ea(31),Ho(),Ho(),Vo(32,"div",8),Vo(33,"span",9),Ea(34,"Produced Momentums:"),Ho(),Vo(35,"span",10),Ea(36),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(37,"mat-tab-group",15),Vo(38,"mat-tab",16),Vo(39,"app-transaction-list",17),Qo("tableEvents",function(e){return Le(t),na().onTransactionEvents(e)}),Ho(),Fo(40,wA,2,1,"div",18),Ho(),Vo(41,"mat-tab",19),Vo(42,"app-transaction-list",17),Qo("tableEvents",function(e){return Le(t),na().onUnreceivedTransactionEvents(e)}),Ho(),Fo(43,CA,2,1,"div",18),Ho(),Vo(44,"mat-tab",20),Vo(45,"app-token-list",21),Qo("tableEvents",function(e){return Le(t),na().onTokenEvents(e)}),Ho(),Fo(46,kA,2,1,"div",18),Ho(),Ho(),Vo(47,"h3"),Ea(48,"Raw data"),Ho(),Vo(49,"mat-card"),Vo(50,"mat-card-content"),$o(51,"pre",22),ac(52,"prettyjson"),Ho(),Ho(),Ho(),Ho()}if(2&t){const t=na();rr(11),Ta(t.pillar.name),rr(6),jo("routerLink",ic(23,xA,t.pillar.ownerAddress)),rr(1),Ta(t.pillar.ownerAddress),rr(1),jo("cdkCopyToClipboard",t.pillar.ownerAddress)("cdkCopyToClipboardAttempts",5),rr(6),Pa("",lc(26,18,t.pillar.weight/t.dividedBy)," ZNN"),rr(6),Ta(t.pillar.currentStats.expectedMomentums),rr(5),Ta(t.pillar.currentStats.producedMomentums),rr(3),jo("transactionsLength",t.transactionsReceivedLength)("transactions",t.transactionsReceived),rr(1),jo("ngIf",!t.isLoadingResults&&!t.transactionsReceivedLength),rr(2),jo("transactionsLength",t.transactionsUnreceivedLength)("transactions",t.transactionsUnreceived),rr(1),jo("ngIf",!t.isLoadingResults&&!t.transactionsUnreceivedLength),rr(2),jo("tokens",t.tokens)("tokensLength",t.tokensLength),rr(1),jo("ngIf",!t.isLoadingResults&&!t.tokensLength),rr(5),jo("innerHTML",cc(52,20,t.pillar,nc(25,SA)),os)}}let EA=(()=>{class t{constructor(t,e,n){this.route=t,this.pillarsService=e,this.ledgerService=n,this.title="Pillar Details",this.math=Math,this.dividedBy=1e8,this.pageSizeTransactions=10,this.pageTransactionsIndex=0,this.pageSizeUnreceived=10,this.pageUnreceivedIndex=0,this.pageSizeTokens=10,this.pageTokensIndex=1,this.tokensLength=0,this.transactionsReceivedLength=0,this.transactionsUnreceivedLength=0,this.tokens=new eP([]),this.transactionsReceived=new eP([]),this.transactionsUnreceived=new eP([]),this.isStickyReceived=!0,this.isStickyUnreceived=!0,this.isStickyTokens=!0,this.isLoadingResults=!0,this.isRateLimitReached=!1,this.unreceivedTotal=501,this.blocksType=iP,this.destroy$=new k,this.onTransactionStream$=new k,this.onUnreceivedStream$=new k,this.onTokenStream$=new k,this.onPillarStream$=new jg}ngOnInit(){this.route.params.pipe(kg(this.destroy$)).subscribe(t=>{this.address=t.address,this.onPillarStream$.next(t.address)})}ngAfterViewInit(){this.onPillarStream$.pipe(kg(this.destroy$),qd(t=>this.getPillarDetails(t))).subscribe(t=>{this.pillar=t}),this.onTransactionStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfTransactions(this.address,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsReceived.data=t),this.onUnreceivedStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfUnreceivedTransactions(this.address,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsUnreceived.data=t),this.getListOfTokens(this.address,this.pageTokensIndex,this.pageSizeTokens).pipe(kg(this.destroy$)).subscribe(t=>{this.tokens.data=t})}onTransactionEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTransactionsIndex=n.pageIndex,this.pageSizeTransactions=n.pageSize,this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions,length:n.length});break;default:console.log(e)}}onUnreceivedTransactionEvents(t){switch(t.action){case"page":const e=t.data;this.pageUnreceivedIndex=e.pageIndex,this.pageSizeUnreceived=e.pageSize,this.onUnreceivedStream$.next(e)}}onTokenEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTokensIndex=n.pageIndex,this.pageSizeTokens=n.pageSize;break;default:console.log(e)}}getPillarDetails(t){return this.pillarsService.getByOwner(t).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result[0])),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld(null))))}getListOfTransactions(t,e,n){const i=this.transactionsReceivedLength%n,s=Math.floor(this.transactionsReceivedLength/n);return this.ledgerService.getAccountBlocksByPage(t,e,e===s+1&&i?i:n).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getListOfUnreceivedTransactions(t,e,n){const i=this.transactionsUnreceivedLength%n,s=Math.floor(this.transactionsUnreceivedLength/n);return this.ledgerService.getUnreceivedBlocksByAddress(t,e,e===s+1&&i?i:n).pipe(L(t=>(this.transactionsUnreceivedLength=t.result.count,this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}compareTokens(t,e){if(t.balance>0)return t.token.symbol<e.token.symbol?1:t.token.symbol>e.token.symbol?-1:0}getListOfTokens(t,e,n){return this.ledgerService.getAccountInfoByAddress(t).pipe(L(t=>{const e=Object.values(t.result.balanceInfoMap);this.tokensLength=e.length,this.transactionsReceivedLength=t.result.accountHeight;const n=e.sort((t,e)=>this.compareTokens(t,e));return this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions}),this.onUnreceivedStream$.next({pageIndex:this.pageUnreceivedIndex,pageSize:this.pageSizeUnreceived}),n}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld(null))))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(nA),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-pillars-details"]],decls:8,vars:3,consts:[[4,"ngIf"],[1,"pillar"],[1,"pillar__header"],[1,"container"],[1,"pillar__header-title"],["class","pillar__content",4,"ngIf"],[1,"pillar__content"],[1,"pillar__info"],[1,"row"],[1,"prop"],[1,"value"],[1,"value","copy-clipboard"],[1,"link",3,"routerLink"],["matRipple","",1,"clipboard",3,"cdkCopyToClipboard","cdkCopyToClipboardAttempts"],["svgIcon","content-copy"],[1,"pillar__tabs","tab-custom-overflow"],["label","Transactions"],[3,"transactionsLength","transactions","tableEvents"],["class","emptyState",4,"ngIf"],["label","Unreceived Transactions"],["label","ZTS"],[3,"tokens","tokensLength","tableEvents"],[3,"innerHTML"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,vA,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Fo(7,OA,53,26,"div",5),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(1),jo("ngIf",e.pillar))},directives:[zu,FS,Xk,Gk,eg,Pk,wR,kS,OI,fI,nM,ZI,vE],pipes:[td,iM],styles:['@media screen and (min-width:769px){.received__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.received__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-height[_ngcontent-%COMP%]{flex:0 1 5%}.received__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 20%}.received__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 15%}.received__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.unreceived__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%], .unreceived__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.tokens__table[_ngcontent-%COMP%] .mat-column-tokenStandard[_ngcontent-%COMP%]{flex:0 1 55%}.tokens__table[_ngcontent-%COMP%] .mat-column-balance[_ngcontent-%COMP%]{flex:0 1 25%}.tokens__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 20%}}[_nghost-%COMP%]{width:100%}.pillar__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.pillar__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.pillar__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;letter-spacing:.02rem}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.pillar__header-title[_ngcontent-%COMP%]{flex-direction:column}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:1rem;padding-left:0;margin-left:0}.pillar__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:none}}.pillar__tabs[_ngcontent-%COMP%]{margin-top:4rem}.pillar__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.pillar__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.pillar__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.pillar__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.pillar__filter[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media screen and (max-width:768px){.pillar__filter[_ngcontent-%COMP%]{flex-direction:column}.pillar__filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}.pillar__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t})(),TA=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-stats"]],decls:2,vars:0,template:function(t,e){1&t&&(Vo(0,"p"),Ea(1,"stats works!"),Ho())},styles:[""]}),t=qE([nP()],t),t})();function PA(t,e){1&t&&$o(0,"app-loading")}function RA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}function MA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}function IA(t,e){if(1&t&&(Vo(0,"div",23),$o(1,"app-empty-state",24),Ho()),2&t){const t=na(2);rr(1),jo("limitReached",t.isRateLimitReached)}}function AA(t,e){if(1&t){const t=Zo();Uo(0),Vo(1,"mat-card"),Vo(2,"mat-card-content"),Vo(3,"div",11),Vo(4,"div",12),Vo(5,"span",13),Ea(6,"Address:"),Ho(),Vo(7,"span",14),Ea(8),Vo(9,"button",5),$o(10,"mat-icon",6),Ho(),Ho(),Ho(),Vo(11,"div",12),Vo(12,"span",13),Ea(13,"Account Height:"),Ho(),Vo(14,"span",15),Ea(15),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(16,"mat-tab-group",16),Vo(17,"mat-tab",17),Vo(18,"app-transaction-list",18),Qo("tableEvents",function(e){return Le(t),na().onTransactionEvents(e)}),Ho(),Fo(19,RA,2,1,"div",19),Ho(),Vo(20,"mat-tab",20),Vo(21,"app-transaction-list",18),Qo("tableEvents",function(e){return Le(t),na().onUnreceivedTransactionEvents(e)}),Ho(),Fo(22,MA,2,1,"div",19),Ho(),Vo(23,"mat-tab",21),Vo(24,"app-token-list",22),Qo("tableEvents",function(e){return Le(t),na().onTokenEvents(e)}),Ho(),Fo(25,IA,2,1,"div",19),Ho(),Ho(),Wo()}if(2&t){const t=na();rr(8),Pa(" ",t.address.address," "),rr(1),jo("cdkCopyToClipboard",t.address.address)("cdkCopyToClipboardAttempts",5),rr(6),Ta(t.address.accountHeight),rr(3),jo("transactionsLength",t.transactionsReceivedLength)("transactions",t.transactionsReceived),rr(1),jo("ngIf",!t.isLoadingResults&&!t.transactionsReceivedLength),rr(2),jo("transactionsLength",t.transactionsUnreceivedLength)("transactions",t.transactionsUnreceived),rr(1),jo("ngIf",!t.isLoadingResults&&!t.transactionsUnreceivedLength),rr(2),jo("tokens",t.tokens)("tokensLength",t.tokensLength),rr(1),jo("ngIf",!t.isLoadingResults&&!t.tokensLength)}}function DA(t,e){1&t&&$o(0,"app-empty-state")}const LA=function(){return[!0,3]};function FA(t,e){1&t&&$o(0,"app-loading")}function NA(t,e){1&t&&(Vo(0,"mat-header-cell",19),Ea(1,"Symbol"),Ho())}const BA=function(t){return["/token",t]};function jA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",20),Ea(2,"Symbol:"),Ho(),Vo(3,"a",21),Ea(4),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(2,BA,t.tokenStandard)),rr(1),Ta(t.symbol)}}function zA(t,e){1&t&&(Vo(0,"mat-header-cell",19),Ea(1,"Total supply"),Ho())}function VA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",20),Ea(2,"Total supply:"),Ho(),Ea(3),ac(4,"number"),Ho()),2&t){const t=e.$implicit,n=na();rr(3),Pa(" ",lc(4,1,t.totalSupply/(t.decimals?n.math.pow(10,t.decimals):n.dividedBy))||0," ")}}function HA(t,e){1&t&&(Vo(0,"mat-header-cell",19),Ea(1,"ZTS"),Ho())}function $A(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",20),Ea(2,"ZTS:"),Ho(),Vo(3,"a",21),Ea(4),Ho(),Ho()),2&t){const t=e.$implicit;rr(3),jo("routerLink",ic(2,BA,t.tokenStandard)),rr(1),Ta(t.tokenStandard)}}function UA(t,e){1&t&&(Vo(0,"mat-header-cell",19),Ea(1,"Decimals"),Ho())}function WA(t,e){if(1&t&&(Vo(0,"mat-cell"),Vo(1,"span",20),Ea(2,"Decimals:"),Ho(),Ea(3),Ho()),2&t){const t=e.$implicit;rr(3),Pa(" ",t.decimals," ")}}function qA(t,e){1&t&&$o(0,"mat-header-row")}function ZA(t,e){1&t&&$o(0,"mat-row")}function YA(t,e){if(1&t&&(Vo(0,"div",22),$o(1,"app-empty-state",23),Ho()),2&t){const t=na();rr(1),jo("limitReached",t.isRateLimitReached)}}function GA(t,e){1&t&&$o(0,"app-loading")}const KA=function(t){return["/token",t]};function QA(t,e){if(1&t&&(Vo(0,"mat-card"),Vo(1,"mat-card-content"),Vo(2,"div",9),Vo(3,"div",10),Vo(4,"span",11),Ea(5,"ZTS:"),Ho(),Vo(6,"span",12),Vo(7,"a",13),Ea(8),Ho(),Ho(),Ho(),Vo(9,"div",10),Vo(10,"span",11),Ea(11,"Symbol:"),Ho(),Vo(12,"span",12),Vo(13,"a",13),Ea(14),Ho(),Ho(),Ho(),Vo(15,"div",10),Vo(16,"span",11),Ea(17,"Balance:"),Ho(),Vo(18,"span",12),Ea(19),ac(20,"number"),Ho(),Ho(),Vo(21,"div",10),Vo(22,"span",11),Ea(23,"Decimals:"),Ho(),Vo(24,"span",12),Ea(25),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=na();rr(7),jo("routerLink",ic(8,KA,t.token.tokenStandard)),rr(1),Ta(t.token.tokenStandard),rr(5),jo("routerLink",ic(10,KA,t.token.tokenStandard)),rr(1),Ta(t.token.symbol),rr(5),Ta(lc(20,6,t.token.totalSupply/(t.token.decimals?t.math.pow(10,t.token.decimals):t.dividedBy))||0),rr(6),Ta(t.token.decimals)}}function XA(t,e){1&t&&$o(0,"app-empty-state")}const JA=function(){return[!0,3]};function tD(t,e){1&t&&$o(0,"app-loading")}const eD=function(t){return["/token",t]},nD=function(t){return["/token/symbol",t]};function iD(t,e){if(1&t&&(Vo(0,"mat-card"),Vo(1,"mat-card-content"),Vo(2,"div",9),Vo(3,"div",10),Vo(4,"span",11),Ea(5,"ZTS:"),Ho(),Vo(6,"span",12),Vo(7,"a",13),Ea(8),Ho(),Ho(),Ho(),Vo(9,"div",10),Vo(10,"span",11),Ea(11,"Symbol:"),Ho(),Vo(12,"span",12),Vo(13,"a",13),Ea(14),Ho(),Ho(),Ho(),Vo(15,"div",10),Vo(16,"span",11),Ea(17,"Balance:"),Ho(),Vo(18,"span",12),Ea(19),ac(20,"number"),Ho(),Ho(),Vo(21,"div",10),Vo(22,"span",11),Ea(23,"Decimals:"),Ho(),Vo(24,"span",12),Ea(25),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=na();rr(7),jo("routerLink",ic(8,eD,t.token.tti)),rr(1),Ta(t.token.tti),rr(5),jo("routerLink",ic(10,nD,t.token.symbol)),rr(1),Ta(t.token.symbol),rr(5),Ta(lc(20,6,t.token.balance)),rr(6),Ta(t.token.decimals)}}function sD(t,e){1&t&&$o(0,"app-empty-state")}const rD=function(){return[!0,3]},oD=[{path:"",component:WE},{path:"momentums",component:_R},{path:"momentum/:height",component:cM},{path:"transaction/:hash",component:_M},{path:"sentinels",component:WM},{path:"sentinel/:address",component:eA},{path:"pillars",component:bA},{path:"pillar/:address",component:EA},{path:"address/:address",component:(()=>{class t{constructor(t,e){this.route=t,this.ledgerService=e,this.title="Address Details",this.pageSizeTransactions=10,this.pageTransactionsIndex=0,this.pageSizeUnreceived=10,this.pageUnreceivedIndex=0,this.pageSizeTokens=10,this.pageTokensIndex=1,this.tokensLength=0,this.transactionsReceivedLength=0,this.transactionsUnreceivedLength=0,this.unreceivedTotal=501,this.tokens=new eP([]),this.transactionsReceived=new eP([]),this.transactionsUnreceived=new eP([]),this.isStickyReceived=!0,this.isStickyUnreceived=!0,this.isStickyTokens=!0,this.isLoadingResults=!0,this.isRateLimitReached=!1,this.onTransactionStream$=new k,this.onUnreceivedStream$=new k,this.onTokenStream$=new k,this.onAddrStream$=new jg,this.destroy$=new k}ngOnInit(){this.route.params.pipe(kg(this.destroy$)).subscribe(t=>{this.addr=t.address,this.onAddrStream$.next(t.address)})}ngAfterViewInit(){this.onAddrStream$.pipe(kg(this.destroy$),qd(t=>this.getAccountInfo(t)),L(t=>{this.address=t;const e=Object.values(t.balanceInfoMap);this.tokensLength=e.length,this.transactionsReceivedLength=t.accountHeight;const n=e.sort((t,e)=>this.compareTokens(t,e));return this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions}),this.onUnreceivedStream$.next({pageIndex:this.pageUnreceivedIndex,pageSize:this.pageSizeUnreceived}),n})).subscribe(t=>{this.tokens.data=t}),this.onTransactionStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfTransactions(this.addr,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsReceived.data=t),this.onUnreceivedStream$.pipe(kg(this.destroy$),qd(t=>this.getListOfUnreceivedTransactions(this.addr,t.pageIndex,t.pageSize))).subscribe(t=>this.transactionsUnreceived.data=t)}onTransactionEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTransactionsIndex=n.pageIndex,this.pageSizeTransactions=n.pageSize,this.onTransactionStream$.next({pageIndex:this.pageTransactionsIndex,pageSize:this.pageSizeTransactions,length:n.length});break;default:console.log(e)}}onUnreceivedTransactionEvents(t){switch(t.action){case"page":const e=t.data;this.pageUnreceivedIndex=e.pageIndex,this.pageSizeUnreceived=e.pageSize,this.onUnreceivedStream$.next(e)}}onTokenEvents(t){const e=t.action;switch(e){case"page":const n=t.data;this.pageTokensIndex=n.pageIndex,this.pageSizeTokens=n.pageSize;break;default:console.log(e)}}getAccountInfo(t){return this.ledgerService.getAccountInfoByAddress(t).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getListOfTransactions(t,e,n){const i=this.transactionsReceivedLength%n,s=Math.floor(this.transactionsReceivedLength/n);return this.ledgerService.getAccountBlocksByPage(t,e,e===s+1&&i?i:n).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}getListOfUnreceivedTransactions(t,e,n){const i=this.transactionsUnreceivedLength%n,s=Math.floor(this.transactionsUnreceivedLength/n);return this.ledgerService.getUnreceivedBlocksByAddress(t,e,e===s+1&&i?i:n).pipe(L(t=>(this.transactionsUnreceivedLength=t.result.count,this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}compareTokens(t,e){if(t.balance>0)return t.token.symbol<e.token.symbol?1:t.token.symbol>e.token.symbol?-1:0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(Zy))},t.\u0275cmp=jt({type:t,selectors:[["app-address-details"]],decls:22,vars:12,consts:[[4,"ngIf"],[1,"address"],[1,"address__header"],[1,"container"],[1,"address__header-title"],["matRipple","",1,"clipboard",3,"cdkCopyToClipboard","cdkCopyToClipboardAttempts"],["svgIcon","content-copy"],[1,"address__content"],[4,"ngIf","ngIfElse"],["noAddress",""],[3,"innerHTML"],[1,"address__info"],[1,"row"],[1,"prop"],[1,"value","copy-clipboard"],[1,"value"],[1,"address__tabs","tab-custom-overflow"],["label","Transactions"],[3,"transactionsLength","transactions","tableEvents"],["class","emptyState",4,"ngIf"],["label","Unreceived Transactions"],["label","ZTS"],[3,"tokens","tokensLength","tableEvents"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){if(1&t&&(Fo(0,PA,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Vo(7,"div"),Ea(8),Vo(9,"button",5),$o(10,"mat-icon",6),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(11,"div",7),Vo(12,"div",3),Fo(13,AA,26,13,"ng-container",8),Fo(14,DA,1,0,"ng-template",null,9,Ic),Vo(16,"h3"),Ea(17,"Raw data"),Ho(),Vo(18,"mat-card"),Vo(19,"mat-card-content"),$o(20,"pre",10),ac(21,"prettyjson"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=No(15);jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(2),Pa(" ",e.addr," "),rr(1),jo("cdkCopyToClipboard",e.address)("cdkCopyToClipboardAttempts",5),rr(4),jo("ngIf",e.address)("ngIfElse",t),rr(7),jo("innerHTML",cc(21,8,e.address,nc(11,LA)),os)}},directives:[zu,Pk,wR,kS,Xk,Gk,FS,OI,fI,nM,ZI,vE],pipes:[iM],styles:['@media screen and (min-width:769px){.received__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.received__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-height[_ngcontent-%COMP%]{flex:0 1 5%}.received__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 20%}.received__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 15%}.received__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%]{flex:0 1 10%}.received__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.unreceived__table[_ngcontent-%COMP%] .mat-column-hash[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-blockType[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-timestamp[_ngcontent-%COMP%]{flex:0 1 25%}.unreceived__table[_ngcontent-%COMP%] .mat-column-amount[_ngcontent-%COMP%]{flex:0 1 10%}.unreceived__table[_ngcontent-%COMP%] .mat-column-confirmations[_ngcontent-%COMP%], .unreceived__table[_ngcontent-%COMP%] .mat-column-fromAddress[_ngcontent-%COMP%]{flex:0 1 15%}}@media screen and (min-width:769px){.tokens__table[_ngcontent-%COMP%] .mat-column-tokenStandard[_ngcontent-%COMP%]{flex:0 1 55%}.tokens__table[_ngcontent-%COMP%] .mat-column-balance[_ngcontent-%COMP%]{flex:0 1 25%}.tokens__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%]{flex:0 1 20%}}[_nghost-%COMP%]{width:100%}.address__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.address__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.address__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.address__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;display:flex;align-items:center;height:1.5rem;letter-spacing:.02rem}.address__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.address__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.address__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.address__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-left:1rem;padding-left:1rem}}.address__tabs[_ngcontent-%COMP%]{margin-top:4rem}.address__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.address__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.address__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.address__content-navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}@media screen and (max-width:768px){.address__content-navigation[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}.address__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.address__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t})()},{path:"tokens",component:(()=>{let t=class{constructor(t){this.tokenService=t,this.title="ZTS List",this.tokens=new eP([]),this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.isSticky=!0,this.pageSize=10,this.resultsLength=0,this.limits=[10,20,50,100],this.pageIndexChanged=new Fd(0),this.displayedColumns=["tokenStandard","totalSupply","symbol","decimals"],this.subscribers={}}set paginator(t){t&&(this.tokens.paginator=t)}set sort(t){t&&(this.tokens.sort=t)}ngOnInit(){this.subscribers.pageIndex=this.pageIndexChanged.subscribe(t=>{this.pageIndex=t})}ngAfterViewInit(){this.subscribers.getTokens=this.getListOfTokens(this.pageIndex,this.resultsLength).subscribe(t=>{this.tokens.data=t},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})}getListOfTokens(t,e){return this.tokenService.getAll(t,e).pipe(cp(e=>(this.isLoadingResults=!0,this.isRateLimitReached=!1,this.resultsLength=e.result.count,this.tokenService.getAll(t,this.resultsLength))),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result.list)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([]))))}};return t.\u0275fac=function(e){return new(e||t)(Bo(Yy))},t.\u0275cmp=jt({type:t,selectors:[["app-tokens-list"]],viewQuery:function(t,e){if(1&t&&(Oc(zP,1),Oc(xM,1)),2&t){let t;Sc(t=Tc())&&(e.paginator=t.first),Sc(t=Tc())&&(e.sort=t.first)}},decls:29,vars:11,consts:[[4,"ngIf"],[1,"tokens-list"],[1,"tokens-list__header"],[1,"container"],[1,"tokens-list__header-title"],[1,"tokens-list__content"],[1,"tokens-list__content-table"],["showFirstLastButtons","",3,"length","pageIndex","pageSize","pageSizeOptions"],[1,"mobile-table"],["matSort","",1,"tokens-list__table",3,"dataSource"],["matColumnDef","symbol"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","totalSupply"],["matColumnDef","tokenStandard"],["matColumnDef","decimals"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],["class","emptyState",4,"ngIf"],["mat-sort-header",""],[1,"mobile-label"],[1,"link",3,"routerLink"],[1,"emptyState"],[3,"limitReached"]],template:function(t,e){1&t&&(Fo(0,FA,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"div",6),$o(10,"mat-paginator",7),Vo(11,"mat-card"),Vo(12,"mat-card-content",8),Vo(13,"mat-table",9),Uo(14,10),Fo(15,NA,2,0,"mat-header-cell",11),Fo(16,jA,5,4,"mat-cell",12),Wo(),Uo(17,13),Fo(18,zA,2,0,"mat-header-cell",11),Fo(19,VA,5,3,"mat-cell",12),Wo(),Uo(20,14),Fo(21,HA,2,0,"mat-header-cell",11),Fo(22,$A,5,4,"mat-cell",12),Wo(),Uo(23,15),Fo(24,UA,2,0,"mat-header-cell",11),Fo(25,WA,4,1,"mat-cell",12),Wo(),Fo(26,qA,1,0,"mat-header-row",16),Fo(27,ZA,1,0,"mat-row",17),Ho(),Fo(28,YA,2,1,"div",18),Ho(),Ho(),Ho(),Ho(),Ho(),Ho()),2&t&&(jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(4),jo("length",e.resultsLength)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.limits),rr(3),jo("dataSource",e.tokens),rr(13),jo("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",e.isSticky),rr(1),jo("matRowDefColumns",e.displayedColumns),rr(1),jo("ngIf",!e.isLoadingResults&&!e.tokens.data.length))},directives:[zu,zP,Xk,Gk,AT,xM,jT,NT,LT,WT,ZT,FS,VT,IM,$T,eg,GT,QT,vE],pipes:[td],styles:['[_nghost-%COMP%]{width:100%}.tokens-list__table[_ngcontent-%COMP%] .mat-column-tokenStandard[_ngcontent-%COMP%]{flex:0 1 50%}.tokens-list__table[_ngcontent-%COMP%] .mat-column-symbol[_ngcontent-%COMP%], .tokens-list__table[_ngcontent-%COMP%] .mat-column-totalSupply[_ngcontent-%COMP%]{flex:0 1 20%}.tokens-list__table[_ngcontent-%COMP%] .mat-column-decimals[_ngcontent-%COMP%]{flex:0 1 10%}.tokens-list__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:5rem;line-height:5rem;width:100%;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.tokens-list__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.tokens-list__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.tokens-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;letter-spacing:.02rem}.tokens-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.tokens-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.tokens-list__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}.tokens-list__content[_ngcontent-%COMP%]{display:grid;justify-items:center}.tokens-list__content-table[_ngcontent-%COMP%]{margin-top:4rem}.tokens-list__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:flex-end}']}),t=qE([nP()],t),t})()},{path:"token/:tti",component:(()=>{let t=class{constructor(t,e){this.route=t,this.tokenService=e,this.title="Token Details ZTS",this.isLoadingResults=!0,this.isRateLimitReached=!1,this.math=Math,this.dividedBy=1e8,this.subscribers={}}ngOnInit(){this.subscribers.routeParams=this.route.params.subscribe(t=>{this.tti=t.tti,this.subscribers.lastTransactions=this.tokenService.getById(this.tti).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{this.token=t},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})})}};return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(Yy))},t.\u0275cmp=jt({type:t,selectors:[["app-token-tti"]],decls:20,vars:9,consts:[[4,"ngIf"],[1,"token"],[1,"token__header"],[1,"container"],[1,"token__header-title"],[1,"token__content"],[4,"ngIf","ngIfElse"],["emptyState",""],[3,"innerHTML"],[1,"token__info"],[1,"row"],[1,"prop"],[1,"value"],[1,"link",3,"routerLink"]],template:function(t,e){if(1&t&&(Fo(0,GA,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"h3"),Ea(10,"Token Information"),Ho(),Fo(11,QA,26,12,"mat-card",6),Fo(12,XA,1,0,"ng-template",null,7,Ic),Vo(14,"h3"),Ea(15,"Raw data"),Ho(),Vo(16,"mat-card"),Vo(17,"mat-card-content"),$o(18,"pre",8),ac(19,"prettyjson"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=No(13);jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),jo("ngIf",e.token)("ngIfElse",t),rr(7),jo("innerHTML",cc(19,5,e.token,nc(8,JA)),os)}},directives:[zu,Xk,Gk,FS,eg,vE],pipes:[iM,td],styles:['[_nghost-%COMP%]{width:100%}.token__second-title[_ngcontent-%COMP%]{margin-top:4rem}.token__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.token__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.token__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;letter-spacing:.02rem}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.token__header-title[_ngcontent-%COMP%]{flex-direction:column}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:1rem;padding-left:0;margin-left:0}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:none}}.token__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.token__content-table[_ngcontent-%COMP%]{margin-top:4rem}.token__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.token__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.token__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.token__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t=qE([nP()],t),t})()},{path:"token/symbol/:symbol",component:(()=>{let t=class{constructor(t,e){this.route=t,this.tokenService=e,this.title="Token Details Symbol",this.isLoadingResults=!0,this.isRateLimitReached=!1,this.subscribers={}}ngOnInit(){this.subscribers.routeParams=this.route.params.subscribe(t=>{this.symbol=t.symbol,this.subscribers.lastTransactions=this.tokenService.getById(this.symbol).pipe(L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t.result)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{this.token=t},()=>{this.isLoadingResults=!1,this.isRateLimitReached=!0})})}};return t.\u0275fac=function(e){return new(e||t)(Bo(Am),Bo(Yy))},t.\u0275cmp=jt({type:t,selectors:[["app-token-symbol"]],decls:20,vars:9,consts:[[4,"ngIf"],[1,"token"],[1,"token__header"],[1,"container"],[1,"token__header-title"],[1,"token__content"],[4,"ngIf","ngIfElse"],["emptyState",""],[3,"innerHTML"],[1,"token__info"],[1,"row"],[1,"prop"],[1,"value"],[1,"link",3,"routerLink"]],template:function(t,e){if(1&t&&(Fo(0,tD,1,0,"app-loading",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"div",4),Vo(5,"span"),Ea(6),Ho(),Ho(),Ho(),Ho(),Vo(7,"div",5),Vo(8,"div",3),Vo(9,"h3"),Ea(10,"Token Information"),Ho(),Fo(11,iD,26,12,"mat-card",6),Fo(12,sD,1,0,"ng-template",null,7,Ic),Vo(14,"h3"),Ea(15,"Raw data"),Ho(),Vo(16,"mat-card"),Vo(17,"mat-card-content"),$o(18,"pre",8),ac(19,"prettyjson"),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=No(13);jo("ngIf",e.isLoadingResults),rr(6),Ta(e.title),rr(5),jo("ngIf",e.token)("ngIfElse",t),rr(7),jo("innerHTML",cc(19,5,e.token,nc(8,rD)),os)}},directives:[zu,Xk,Gk,FS,eg,vE],pipes:[iM,td],styles:['[_nghost-%COMP%]{width:100%}.token__second-title[_ngcontent-%COMP%]{margin-top:4rem}.token__header[_ngcontent-%COMP%]{display:grid;justify-items:center;height:auto;width:100%;padding:1.6rem 0;background:var(--pageHeader);box-shadow:0 .2rem .4rem 0 rgba(0,0,0,.1)}.token__header-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.token__header-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:var(--pageHeaderFont);white-space:nowrap}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{color:var(--pageHeaderFontBold);font-size:1.4rem;font-weight:600;padding-right:.5rem;margin-left:2rem;padding-left:2rem;position:relative;word-break:break-all;letter-spacing:.02rem}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:"";height:2rem;width:1px;position:absolute;background:var(--pageHeaderFontBold);left:0;top:50%;margin-top:-1rem}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--linkColor)}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span.no-link[_ngcontent-%COMP%]{color:var(--pageHeaderFont);font-weight:600;padding:0 1rem}@media screen and (max-width:768px){.token__header-title[_ngcontent-%COMP%]{flex-direction:column}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:1rem;padding-left:0;margin-left:0}.token__header-title[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{content:none}}.token__content[_ngcontent-%COMP%]{display:grid;justify-items:center;margin-top:2rem}.token__content-table[_ngcontent-%COMP%]{margin-top:4rem}.token__content-table[_ngcontent-%COMP%] .mat-card-header[_ngcontent-%COMP%]{justify-content:space-between}.token__content-table[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:25rem}.token__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--pageHeadFont);font-size:1.8rem;font-weight:400}.token__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}']}),t=qE([nP()],t),t})()},{path:"stats",component:TA},{path:"404",component:yM},{path:"**",redirectTo:"/404"}];let aD=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[mg.forRoot(oD,{relativeLinkResolution:"legacy"})],mg]}),t})();class lD extends class{constructor(){this.expansionModel=new rO(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e,n){super(),this.getLevel=t,this.isExpandable=e,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let n=this.dataNodes.indexOf(t)+1;n<this.dataNodes.length&&this.getLevel(t)<this.getLevel(this.dataNodes[n]);n++)e.push(this.dataNodes[n]);return e}expandAll(){this.expansionModel.select(...this.dataNodes.map(t=>this._trackByValue(t)))}}const cD=new Xn("CDK_TREE_NODE_OUTLET_NODE");let hD=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(cD,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class uD{constructor(t){this.$implicit=t}}let dD=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Bo(Dl))},t.\u0275dir=Wt({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),pD=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new k,this._levels=new Map,this.viewChange=new Fd({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;iO(this._dataSource)?t=this._dataSource.connect(this):XS(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Ld(this._dataSource)),t&&(this._dataSubscription=t.pipe(kg(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,n=this._nodeOutlet.viewContainer,i){const s=e.diff(t);s&&(s.forEachOperation((e,s,r)=>{if(null==e.previousIndex)this.insertNode(t[r],r,n,i);else if(null==r)n.remove(s),this._levels.delete(e.item);else{const t=n.get(s);n.move(t,r)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(n=>n.when&&n.when(e,t))||this._defaultNodeDef}insertNode(t,e,n,i){const s=this._getNodeDef(t,e),r=new uD(t);r.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(t,r.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,r,e),mD.mostRecentTreeNode&&(mD.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(Bo(wl),Bo(Tl))},t.\u0275cmp=jt({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){if(1&t&&Ec(n,dD,1),2&t){let t;Sc(t=Tc())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&Oc(hD,3),2&t){let t;Sc(t=Tc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[hD],encapsulation:2}),t})(),mD=(()=>{class t{constructor(e,n){this._elementRef=e,this._tree=n,this._destroyed=new k,this._dataChanges=new k,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!fD(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Ww(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(pD))},t.\u0275dir=Wt({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function fD(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}const gD=/([A-Za-z%]+)$/;let _D=(()=>{class t{constructor(t,e,n,i){this._treeNode=t,this._tree=e,this._element=n,this._dir=i,this._destroyed=new k,this.indentUnits="px",this._indent=40,this._setPadding(),i&&i.change.pipe(kg(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",i="paddingLeft"===n?"paddingRight":"paddingLeft";t.style[n]=e||"",t.style[i]="",this._currentPadding=e}}_setLevelInput(t){this._level=Ww(t,null),this._setPadding()}_setIndentInput(t){let e=t,n="px";if("string"==typeof t){const i=t.split(gD);e=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Ww(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(Bo(mD),Bo(pD),Bo(nl),Bo(UC,8))},t.\u0275dir=Wt({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),yD=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=Uw(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(Bo(pD),Bo(mD))},t.\u0275dir=Wt({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&Qo("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),bD=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const vD=sk(ek(mD));let wD=(()=>{class t extends vD{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(pD),Gn("tabindex"))},t.\u0275dir=Wt({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[Ga([{provide:mD,useExisting:t}]),wo]}),t})(),CD=(()=>{class t extends dD{}return t.\u0275fac=function(e){return kD(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[Ga([{provide:dD,useExisting:t}]),wo]}),t})();const kD=Yn(CD);let xD=(()=>{class t extends _D{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}}return t.\u0275fac=function(e){return SD(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[Ga([{provide:_D,useExisting:t}]),wo]}),t})();const SD=Yn(xD);let OD=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(Bo(Vl),Bo(cD,8))},t.\u0275dir=Wt({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[Ga([{provide:hD,useExisting:t}])]}),t})(),ED=(()=>{class t extends pD{}return t.\u0275fac=function(e){return TD(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&Oc(OD,3),2&t){let t;Sc(t=Tc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[Ga([{provide:pD,useExisting:t}]),wo],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&qo(0,0)},directives:[OD],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const TD=Yn(ED);let PD=(()=>{class t extends yD{get recursive(){return this._recursive}set recursive(t){this._recursive=Uw(t)}}return t.\u0275fac=function(e){return RD(e||t)},t.\u0275dir=Wt({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[Ga([{provide:yD,useExisting:t}]),wo]}),t})();const RD=Yn(PD);let MD=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[bD,tk],tk]}),t})();class ID{constructor(t,e,n,i){this.transformFunction=t,this.getLevel=e,this.isExpandable=n,this.getChildren=i}_flattenNode(t,e,n,i){const s=this.transformFunction(t,e);if(n.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,n,i):s.pipe(Kd(1)).subscribe(t=>{this._flattenChildren(t,e,n,i)}))}return n}_flattenChildren(t,e,n,i){t.forEach((s,r)=>{let o=i.slice();o.push(r!=t.length-1),this._flattenNode(s,e+1,n,o)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let n=[],i=[];return i[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&i[e];s&&n.push(t),this.isExpandable(t)&&(i[this.getLevel(t)+1]=e.isExpanded(t))}),n}}class AD extends nO{constructor(t,e,n=[]){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new Fd([]),this._expandedData=new Fd([]),this._data=new Fd(n)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return W(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(L(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class DD{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new LD(t,this.notifier,e))}}class LD extends D{constructor(t,e,n){super(t),this.notifier=e,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(t,e,n,i,s){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(t){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next()}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new k;try{const{notifier:e}=this;t=e(this.notifications)}catch(e){return super.complete()}this.retries=t,this.retriesSubscription=A(this,t)}}function FD(t,e){}class ND{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const BD={dialogContainer:Qy("dialogContainer",[eb("void, exit",tb({opacity:0,transform:"scale(0.7)"})),eb("enter",tb({transform:"none"})),ib("* => enter",Xy("150ms cubic-bezier(0, 0, 0.2, 1)",tb({transform:"none",opacity:1}))),ib("* => void, * => exit",Xy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",tb({opacity:0})))])};let jD=(()=>{class t extends fO{constructor(t,e,n,i,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=r,this._animationStateChanged=new pc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(TC),Bo(Tl),Bo(Ah,8),Bo(ND),Bo(LC))},t.\u0275dir=Wt({type:t,viewQuery:function(t,e){if(1&t&&Oc(_O,3),2&t){let t;Sc(t=Tc())&&(e._portalOutlet=t.first)}},features:[wo]}),t})(),zD=(()=>{class t extends jD{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return VD(e||t)},t.\u0275cmp=jt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Xo("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(Ma("id",e._id),Do("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Ia("@dialogContainer",e._state))},features:[wo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Fo(0,FD,0,0,"ng-template",0)},directives:[_O],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[BD.dialogContainer]}}),t})();const VD=Yn(zD);let HD=0;class $D{constructor(t,e,n="mat-dialog-"+HD++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k,this._afterClosed=new k,this._beforeClosed=new k,this._state=0,e._id=n,e._animationStateChanged.pipe(ip(t=>"opened"===t.state),Kd(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(ip(t=>"closed"===t.state),Kd(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(ip(t=>27===t.keyCode&&!this.disableClose&&!Bw(t))).subscribe(t=>{t.preventDefault(),UD(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():UD(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(ip(t=>"closing"===t.state),Kd(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function UD(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const WD=new Xn("MatDialogData"),qD=new Xn("mat-dialog-default-options"),ZD=new Xn("mat-dialog-scroll-strategy"),YD={provide:ZD,deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.block()}};let GD=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=Wd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Jd(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new ND)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new PO({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=bo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ND,useValue:e}]}),i=new dO(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const s=new this._dialogRefConstructor(n,e,i.id);if(t instanceof Dl)e.attachTemplatePortal(new pO(t,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,e),r=e.attachComponentPortal(new dO(t,i.viewContainerRef,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(UC,null)||s.push({provide:UC,useValue:{value:t.direction,change:Ld()}}),bo.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Bo(GO),Bo(bo),Bo(void 0),Bo(void 0),Bo(FO),Bo(void 0),Bo(ti),Bo(ti),Bo(Xn))},t.\u0275dir=Wt({type:t}),t})(),KD=(()=>{class t extends GD{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,$D,zD,WD)}}return t.\u0275fac=function(e){return new(e||t)(gi(GO),gi(bo),gi(Yh,8),gi(qD,8),gi(ZD),gi(t,12),gi(FO))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),QD=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[KD,YD],imports:[[eE,yO,tk],tk]}),t})();const XD=["endpointInput"],JD=["form"];function tL(t,e){1&t&&(Vo(0,"mat-error"),Ea(1,"Field is required"),Ho())}function eL(t,e){1&t&&(Vo(0,"mat-error"),Ea(1,"Invalid format"),Ho())}let nL=(()=>{class t{constructor(t,e,n){this.dialog=t,this.data=e,this.formBuilder=n}ngOnInit(){this.dialogForm=this.formBuilder.group({endpoint:[null,e_.required]})}onClose(){this.dialog.close({action:sP.Cancel,value:null})}onSave(t){this.dialog.close({action:sP.Save,value:t})}onFormSubmit(){this.dialogForm.valid&&(this.onSave(this.dialogForm.value),this.endpointInput.nativeElement.value="",this.form.reset())}}return t.\u0275fac=function(e){return new(e||t)(Bo($D),Bo(WD),Bo(uy))},t.\u0275cmp=jt({type:t,selectors:[["app-dialog"]],viewQuery:function(t,e){if(1&t&&(Oc(XD,1),Oc(JD,1)),2&t){let t;Sc(t=Tc())&&(e.endpointInput=t.first),Sc(t=Tc())&&(e.form=t.first)}},decls:19,vars:5,consts:[[1,"dialog",3,"formGroup","ngSubmit"],["form","ngForm"],["mat-dialog-title","",1,"dialog__title"],["mat-dialog-description","",1,"dialog__description"],["mat-dialog-content","",1,"dialog__content"],[1,"w100"],["placeholder","Enter the node address","matInput","","pattern","[-a-zA-Z0-9@:%_+.~#?&//=]{2,256}(.[a-z]{2,4})?\\b(/[-a-zA-Z0-9@:%_+.~#?&//=]*)?","formControlName","endpoint"],["endpointInput",""],[4,"ngIf"],["mat-dialog-actions","",1,"dialog__actions"],["mat-flat-button","",3,"click"],["mat-flat-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(Vo(0,"form",0,1),Qo("ngSubmit",function(){return e.onFormSubmit()}),Vo(2,"h2",2),Ea(3),Ho(),Vo(4,"p",3),Ea(5),Ho(),Vo(6,"div",4),Vo(7,"mat-form-field",5),Vo(8,"mat-label"),Ea(9,"Node Address"),Ho(),$o(10,"input",6,7),Fo(12,tL,2,0,"mat-error",8),Fo(13,eL,2,0,"mat-error",8),Ho(),Ho(),Vo(14,"div",9),Vo(15,"button",10),Qo("click",function(){return e.onClose()}),Ea(16,"Close"),Ho(),Vo(17,"button",11),Ea(18,"Save"),Ho(),Ho(),Ho()),2&t&&(jo("formGroup",e.dialogForm),rr(3),Ta(e.data.title),rr(2),Ta(e.data.description),rr(7),jo("ngIf",null==e.dialogForm.controls.endpoint.errors?null:e.dialogForm.controls.endpoint.errors.required),rr(1),jo("ngIf",null==e.dialogForm.controls.endpoint.errors?null:e.dialogForm.controls.endpoint.errors.pattern))},directives:[ny,y_,ry,Fx,Ox,Xx,Gg,cy,__,ay,zu,oS,Cx],styles:[".dialog__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:1rem}.dialog__content[_ngcontent-%COMP%]{padding:3rem 0}.dialog__description[_ngcontent-%COMP%]{max-width:60rem}"]}),t})();const iL=["toast-component",""];function sL(t,e){if(1&t){const t=Zo();Vo(0,"button",5),Qo("click",function(){return Le(t),na().remove()}),Vo(1,"span",6),Ea(2,"\xd7"),Ho(),Ho()}}function rL(t,e){if(1&t&&(Uo(0),Ea(1),Wo()),2&t){const t=na(2);rr(1),Pa("[",t.duplicatesCount+1,"]")}}function oL(t,e){if(1&t&&(Vo(0,"div"),Ea(1),Fo(2,rL,2,1,"ng-container",4),Ho()),2&t){const t=na();fa(t.options.titleClass),Do("aria-label",t.title),rr(1),Pa(" ",t.title," "),rr(1),jo("ngIf",t.duplicatesCount)}}function aL(t,e){if(1&t&&$o(0,"div",7),2&t){const t=na();fa(t.options.messageClass),jo("innerHTML",t.message,os)}}function lL(t,e){if(1&t&&(Vo(0,"div",8),Ea(1),Ho()),2&t){const t=na();fa(t.options.messageClass),Do("aria-label",t.message),rr(1),Pa(" ",t.message," ")}}function cL(t,e){if(1&t&&(Vo(0,"div"),$o(1,"div",9),Ho()),2&t){const t=na();rr(1),pa("width",t.width+"%")}}function hL(t,e){if(1&t){const t=Zo();Vo(0,"button",5),Qo("click",function(){return Le(t),na().remove()}),Vo(1,"span",6),Ea(2,"\xd7"),Ho(),Ho()}}function uL(t,e){if(1&t&&(Uo(0),Ea(1),Wo()),2&t){const t=na(2);rr(1),Pa("[",t.duplicatesCount+1,"]")}}function dL(t,e){if(1&t&&(Vo(0,"div"),Ea(1),Fo(2,uL,2,1,"ng-container",4),Ho()),2&t){const t=na();fa(t.options.titleClass),Do("aria-label",t.title),rr(1),Pa(" ",t.title," "),rr(1),jo("ngIf",t.duplicatesCount)}}function pL(t,e){if(1&t&&$o(0,"div",7),2&t){const t=na();fa(t.options.messageClass),jo("innerHTML",t.message,os)}}function mL(t,e){if(1&t&&(Vo(0,"div",8),Ea(1),Ho()),2&t){const t=na();fa(t.options.messageClass),Do("aria-label",t.message),rr(1),Pa(" ",t.message," ")}}function fL(t,e){if(1&t&&(Vo(0,"div"),$o(1,"div",9),Ho()),2&t){const t=na();rr(1),pa("width",t.width+"%")}}class gL{constructor(t,e,n,i,s,r){this.toastId=t,this.config=e,this.message=n,this.title=i,this.toastType=s,this.toastRef=r,this._onTap=new k,this._onAction=new k,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const _L={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yL=new Xn("ToastConfig");class bL{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class vL extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=n.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let wL=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(Ah))},token:t,providedIn:"root"}),t})();class CL{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let kL=(()=>{class t{constructor(t,e,n,i){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=i,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new vL(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new CL(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(gi(wL),gi(Xa),gi(wh),gi(Ah))},t.\u0275prov=lt({factory:function(){return new t(gi(wL),gi(Xa),gi(wh),gi(Ah))},token:t,providedIn:"root"}),t})();class xL{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new k,this._activate=new k,this._manualClose=new k,this._resetTimeout=new k,this._countDuplicate=new k}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class SL{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===gL?this._toastPackage:this._parentInjector.get(t,e,n)}}let OL=(()=>{class t{constructor(t,e,n,i,s){this.overlay=e,this._injector=n,this.sanitizer=i,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},i=""){return this._preBuildNotification(i,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}findDuplicate(t="",e="",n,i){const{includeTitleDuplicates:s}=this.toastrConfig;for(const r of this.toasts){const o=s&&r.title===t;if((!s||o)&&r.message===e)return r.toastRef.onDuplicate(n,i),r}return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,i)):this._buildNotification(t,e,n,i)}_buildNotification(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=e;let r=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(r=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const o=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let a=e;e&&i.enableHtml&&(a=this.sanitizer.sanitize(rs.HTML,e));const l=new xL(o),c=new gL(this.index,i,a,n,t,l),h=new SL(c,this._injector),u=new bL(i.toastComponent,h),d=o.attach(u,this.toastrConfig.newestOnTop);l.componentInstance=d.instance;const p={toastId:this.index,title:n||"",message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:c.onTap(),onAction:c.onAction(),portal:d};return r||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return t.\u0275fac=function(e){return new(e||t)(gi(yL),gi(kL),gi(bo),gi(Rd),gi(th))},t.\u0275prov=lt({factory:function(){return new t(gi(yL),gi(kL),gi(no),gi(Rd),gi(th))},token:t,providedIn:"root"}),t})(),EL=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(Bo(OL),Bo(gL),Bo(th))},t.\u0275cmp=jt({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&Qo("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(Ia("@flyInOut",e.state),fa(e.toastClasses),pa("display",e.displayStyle))},attrs:iL,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(Fo(0,sL,3,0,"button",0),Fo(1,oL,3,5,"div",1),Fo(2,aL,1,3,"div",2),Fo(3,lL,2,4,"div",3),Fo(4,cL,2,2,"div",4)),2&t&&(jo("ngIf",e.options.closeButton),rr(1),jo("ngIf",e.title),rr(1),jo("ngIf",e.message&&e.options.enableHtml),rr(1),jo("ngIf",e.message&&!e.options.enableHtml),rr(1),jo("ngIf",e.options.progressBar))},directives:[zu],encapsulation:2,data:{animation:[Qy("flyInOut",[eb("inactive",tb({opacity:0})),eb("active",tb({opacity:1})),eb("removed",tb({opacity:0})),ib("inactive => active",Xy("{{ easeTime }}ms {{ easing }}")),ib("active => removed",Xy("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const TL=Object.assign(Object.assign({},_L),{toastComponent:EL});let PL=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:yL,useValue:{default:TL,config:e}}]}}}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ed]]}),t})(),RL=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(Bo(OL),Bo(gL),Bo(wh))},t.\u0275cmp=jt({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&Qo("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(fa(e.toastClasses),pa("display",e.displayStyle))},attrs:iL,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(Fo(0,hL,3,0,"button",0),Fo(1,dL,3,5,"div",1),Fo(2,pL,1,3,"div",2),Fo(3,mL,2,4,"div",3),Fo(4,fL,2,2,"div",4)),2&t&&(jo("ngIf",e.options.closeButton),rr(1),jo("ngIf",e.title),rr(1),jo("ngIf",e.message&&e.options.enableHtml),rr(1),jo("ngIf",e.message&&!e.options.enableHtml),rr(1),jo("ngIf",e.options.progressBar))},directives:[zu],encapsulation:2}),t})();Object.assign(Object.assign({},_L),{toastComponent:RL});const ML=["*",[["mat-toolbar-row"]]],IL=["*","mat-toolbar-row"];class AL{constructor(t){this._elementRef=t}}const DL=nk(AL);let LL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Wt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),FL=(()=>{class t extends DL{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Xw),Bo(Ah))},t.\u0275cmp=jt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&Ec(n,LL,1),2&t){let t;Sc(t=Tc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ma("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[wo],ngContentSelectors:IL,decls:2,vars:0,template:function(t,e){1&t&&(sa(ML),ra(0),ra(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),NL=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[tk],tk]}),t})();function BL(t,e=jw){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new jL(i,e))}class jL{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new zL(t,this.delay,this.scheduler))}}class zL extends m{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(zL.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new VL(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Fg.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Fg.createComplete()),this.unsubscribe()}}class VL{constructor(t,e){this.time=t,this.notification=e}}const HL=["mat-menu-item",""],$L=["*"];function UL(t,e){if(1&t){const t=Zo();Vo(0,"div",0),Qo("keydown",function(e){return Le(t),na()._handleKeydown(e)})("click",function(){return Le(t),na().closed.emit("click")})("@transformMenu.start",function(e){return Le(t),na()._onAnimationStart(e)})("@transformMenu.done",function(e){return Le(t),na()._onAnimationDone(e)}),Vo(1,"div",1),ra(2),Ho(),Ho()}if(2&t){const t=na();jo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),Do("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const WL={transformMenu:Qy("transformMenu",[eb("void",tb({opacity:0,transform:"scale(0.8)"})),ib("void => enter",Xy("120ms cubic-bezier(0, 0, 0.2, 1)",tb({opacity:1,transform:"scale(1)"}))),ib("* => void",Xy("100ms 25ms linear",tb({opacity:0})))]),fadeInItems:Qy("fadeInItems",[eb("showing",tb({opacity:1})),ib("void => *",[tb({opacity:0}),Xy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},qL=new Xn("MatMenuContent"),ZL=new Xn("MAT_MENU_PANEL");class YL{}const GL=ik(ek(YL));let KL=(()=>{class t extends GL{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<i.length;s++){const e=i[s];null===(t=e.parentNode)||void 0===t||t.removeChild(e)}return(null===(e=n.textContent)||void 0===e?void 0:e.trim())||""}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(Ah),Bo(LC),Bo(ZL,8))},t.\u0275cmp=jt({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&Qo("click",function(t){return e._checkDisabled(t)})("mouseenter",function(){return e._handleMouseEnter()}),2&t&&(Do("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),ma("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[wo],attrs:HL,ngContentSelectors:$L,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(sa(),ra(0),$o(1,"div",0)),2&t&&(rr(1),jo("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[Pk],encapsulation:2,changeDetection:0}),t})();const QL=new Xn("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let XL=0,JL=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new fc,this._tabSubscription=u.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new pc,this.close=this.closed,this.panelId="mat-menu-panel-"+XL++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Uw(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Uw(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new kC(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Jd(this._directDescendantItems),qd(t=>W(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Jd(this._directDescendantItems),qd(t=>W(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:Bw(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Kd(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Jd(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(th),Bo(QL))},t.\u0275dir=Wt({type:t,contentQueries:function(t,e,n){if(1&t&&(Ec(n,qL,1),Ec(n,KL,1),Ec(n,KL,0)),2&t){let t;Sc(t=Tc())&&(e.lazyContent=t.first),Sc(t=Tc())&&(e._allItems=t),Sc(t=Tc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Oc(Dl,1),2&t){let t;Sc(t=Tc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),tF=(()=>{class t extends JL{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl),Bo(th),Bo(QL))},t.\u0275cmp=jt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&Do("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ga([{provide:ZL,useExisting:t}]),wo],ngContentSelectors:$L,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(sa(),Fo(0,UL,3,6,"ng-template"))},directives:[Fu],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[WL.transformMenu,WL.fadeInItems]},changeDetection:0}),t})();const eF=new Xn("mat-menu-scroll-strategy"),nF={provide:eF,deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},iF=rC({passive:!0});let sF=(()=>{class t{constructor(t,e,n,i,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=u.EMPTY,this._hoverSubscription=u.EMPTY,this._menuCloseSubscription=u.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new pc,this.onMenuOpen=this.menuOpened,this.menuClosed=new pc,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=s instanceof JL?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,iF),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,iF),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof JL&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof JL?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(ip(t=>"void"===t.toState),Kd(1),kg(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new PO({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return W(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ld(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ip(t=>t!==this._menuItemInstance),ip(()=>this._menuOpen)):Ld(),e)}_handleMousedown(t){IC(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==Fw&&e!==Nw||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ip(t=>t===this._menuItemInstance&&!t.disabled),BL(0,QS)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof JL&&this.menu._isAnimating?this.menu._animationDone.pipe(Kd(1),BL(0,QS),kg(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new pO(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(Bo(GO),Bo(nl),Bo(Vl),Bo(eF),Bo(ZL,8),Bo(KL,10),Bo(UC,8),Bo(LC))},t.\u0275dir=Wt({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&Qo("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&Do("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),rF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[nF],imports:[tk]}),t})(),oF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[nF],imports:[[ed,tk,Rk,eE,rF],cO,tk,rF]}),t})(),aF=(()=>{class t{constructor(t){this.el=t,this.open=!1}toggleOpen(){this.open=!this.open,this.el.nativeElement.parentNode.querySelector(".selector__nav").classList.toggle("open")}closed(t){this.el.nativeElement.parentNode.contains(t)||(this.open=!1,this.el.nativeElement.parentNode.querySelector(".selector__nav").classList.remove("open")),t.classList.contains("mat-tree-node")&&(this.open=!1,this.el.nativeElement.parentNode.querySelector(".selector__nav").classList.remove("open"))}}return t.\u0275fac=function(e){return new(e||t)(Bo(nl))},t.\u0275dir=Wt({type:t,selectors:[["","appSelector",""]],hostVars:2,hostBindings:function(t,e){1&t&&Qo("click",function(){return e.toggleOpen()})("click",function(t){return e.closed(t.target)},!1,gs),2&t&&ma("open",e.open)}}),t})();const lF=["headerForm"];function cF(t,e){1&t&&(Vo(0,"button",31),Vo(1,"mat-icon"),Ea(2,"menu"),Ho(),Ho())}const hF=function(t){return{link:t}};function uF(t,e){if(1&t&&(Vo(0,"mat-tree-node",36),$o(1,"button",37),Ea(2),Ho()),2&t){const t=e.$implicit;jo("ngClass",ic(3,hF,""!==t.path))("routerLink",t.path),rr(2),Pa(" ",t.name," ")}}function dF(t,e){if(1&t&&(Vo(0,"mat-tree-node",36),$o(1,"button",37),Ea(2),Vo(3,"button",38),Vo(4,"mat-icon",39),Ea(5),Ho(),Ho(),Ho()),2&t){const t=e.$implicit,n=na(2);jo("ngClass",ic(5,hF,""!==t.path))("routerLink",t.path),rr(2),Pa(" ",t.name," "),rr(1),Do("aria-label","toggle "+t.name),rr(2),Pa(" ",n.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function pF(t,e){if(1&t&&(Vo(0,"ul",32),Vo(1,"mat-tree",33),Fo(2,uF,3,5,"mat-tree-node",34),Fo(3,dF,6,7,"mat-tree-node",35),Ho(),Ho()),2&t){const t=na();rr(1),jo("dataSource",t.dataSource)("treeControl",t.treeControl),rr(2),jo("matTreeNodeDefWhen",t.hasChild)}}function mF(t,e){1&t&&(Vo(0,"span",40),Vo(1,"span"),Ea(2,"Zenon Explorer"),Ho(),Ho())}const fF=function(){return{exact:!0}};function gF(t,e){1&t&&(Vo(0,"ul",41),Vo(1,"li"),Vo(2,"a",42),Ea(3,"Dashboard"),Ho(),Ho(),Vo(4,"li"),Vo(5,"a",43),Ea(6,"Momentums"),Ho(),Ho(),Vo(7,"li"),Vo(8,"a",44),Ea(9,"Sentinels"),Ho(),Ho(),Vo(10,"li"),Vo(11,"a",45),Ea(12,"Pillars"),Ho(),Ho(),Vo(13,"li"),Vo(14,"a",46),Ea(15,"ZTS"),Ho(),Ho(),Ho()),2&t&&(rr(2),jo("routerLinkActiveOptions",nc(1,fF)))}function _F(t,e){if(1&t&&(Vo(0,"span",47),Ea(1),Ho()),2&t){const t=na();jo("ngClass",t.connectionStatus?"live":"down")("matTooltip",t.endpoint),rr(1),Pa(" ",t.connectionStatus?"Connected":"Not connected"," ")}}const yF=function(t){return{activeEndpoint:t}};function bF(t,e){if(1&t){const t=Zo();Vo(0,"button",48),Qo("click",function(){Le(t);const n=e.$implicit;return na().changeEndpoint(n)}),Vo(1,"span"),Ea(2),Ho(),Ho()}if(2&t){const t=e.$implicit,n=na();jo("ngClass",ic(2,yF,t===n.endpoint)),rr(2),Ta(t)}}function vF(t,e){if(1&t){const t=Zo();Vo(0,"span",49),Vo(1,"button",21),Qo("click",function(){Le(t);const n=e.$implicit;return na().changeEndpoint(n)}),Ea(2),Ho(),Vo(3,"mat-icon",50),Qo("click",function(){Le(t);const n=e.$implicit;return na().removeNode(n)}),Ho(),Ho()}if(2&t){const t=e.$implicit,n=na();jo("ngClass",ic(2,yF,t===n.endpoint)),rr(2),Pa(" ",t," ")}}const wF=function(t){return{mobile:t}},CF=function(t){return{visible:t}},kF=function(t){return{opened:t}},xF=function(t){return{checked:t}},SF="[-a-zA-Z0-9@:%_+.~#?&//=]{2,256}(.[a-z]{2,4})?\b(/[-a-zA-Z0-9@:%_+.~#?&//=]*)?",OF=[{name:"Dashboard",path:"/",children:[]},{name:"Momentums",path:"/momentums",children:[]},{name:"Sentinels",path:"/sentinels",children:[]},{name:"Pillars",path:"/pillars",children:[]},{name:"ZTS",path:"/tokens",children:[]}];let EF=(()=>{let t=class{constructor(t,e,n,i,s,r,o,a,l,c,h){this.formBuilder=e,this.ledgerService=n,this.router=i,this.route=s,this.resizeService=r,this.tokenService=o,this.endpointService=a,this.toastrService=l,this.dialog=c,this.http=h,this.inputOpened=!1,this.submitted=!1,this.error="",this.endpoints=[],this.savedEndpointsSubject=new Fd(JSON.parse(localStorage.getItem("nodes"))),this.savedEndpoints=[],this.destroy$=new k,this.destroyConnection$=new k,this.repeater$=new k,this._transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.name,path:t.path,level:e}),this.treeControl=new lD(t=>t.level,t=>t.expandable),this.treeFlattener=new ID(this._transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new AD(this.treeControl,this.treeFlattener),this.NODE_PATTERN=SF,this.hasChild=(t,e)=>e.expandable,this.bodyEl=t.body}onGlobalClick(t){this.headerForm.nativeElement.contains(t.target)||(this.inputOpened=!1)}ngOnInit(){var t;this.endpointService.endpointConnectionObs.pipe(kg(this.destroy$)).subscribe(t=>this.connectionStatus=t),this.route.queryParams.pipe(kg(this.destroy$)).subscribe(t=>{const e=new RegExp(SF);t&&t.add_node&&(this.endpoints.includes(t.add_node)||this.savedEndpoints.includes(t.add_node)?this.toastrService.error("Node exists already!"):e.test(t.add_node)?this.addNode(t.add_node):this.toastrService.error("Invalid node!"))}),Vx(0,1e3).pipe(Kd(1),(t=()=>this.repeater$,e=>e.lift(new DD(t)))).subscribe(()=>{this.endpoint&&this.http.get(this.endpoint,{observe:"response"}).pipe(kg(this.destroyConnection$),vp()).subscribe(t=>{this.endpointService.endpointConnectionSubject.next(200===t.status),this.destroyConnection$.next(),this.destroyConnection$.complete()},t=>{this.endpointService.endpointConnectionSubject.next(!1),this.destroyConnection$.next(),this.destroyConnection$.complete()})}),this.endpoint||localStorage.getItem("defaultEndpoint")||(this.toastrService.info("You must provide a default endpoint"),this.openDialog()),this.savedEndpointsSubject.pipe(kg(this.destroy$)).subscribe(t=>{this.savedEndpoints=t}),this.endpointService.endpointObs.pipe(kg(this.destroy$)).subscribe(t=>this.endpoint=t),this.searchForm=this.formBuilder.group({search:[null]}),this.toggleSwitch=localStorage.getItem("theme")?"dark"===localStorage.getItem("theme"):void 0!==this.theme&&"dark"===this.theme,this.toggleSwitch?(this.bodyEl.classList.remove("light-theme"),this.bodyEl.classList.add("dark-theme")):(this.bodyEl.classList.remove("dark-theme"),this.bodyEl.classList.add("light-theme")),this.resizeService.isMobileSubject.pipe(kg(this.destroy$)).subscribe(t=>this.isMobile=t),this.dataSource.data=OF}onSwitchTheme(t){t.target.checked?(this.toggleSwitch=!0,this.bodyEl.classList.remove("light-theme"),this.bodyEl.classList.add("dark-theme"),localStorage.setItem("theme","dark")):(this.toggleSwitch=!1,this.bodyEl.classList.remove("dark-theme"),this.bodyEl.classList.add("light-theme"),localStorage.setItem("theme","light"))}changeEndpoint(t){this.endpointService.setEndpoint(t),localStorage.setItem("defaultEndpoint",t),this.router.navigate(["/"]),this.repeater$.next()}addNode(t){let e=t;t.split(":")[2]||(e=t+":35997"),this.addNodeToLocalStorage(e),this.changeEndpoint(e),this.toastrService.info(e)}openDialog(){this.dialog.open(nL,{minWidth:"400px",data:{title:"Add node",description:"Add a new node address to the explorer: the node will serve as data source for it. This information will be stored in the browser and will only be visible to you. You can add your local node by specifying the private IP (use `ipconfig` command on Windows or `ifconfig` on Linux/MacOS/Android or get it from Syrius wallet -> Info -> About -> Local IP address) of the device where the node is running, e.g. http://192.168.0.100:35997",button:"Save node"}}).afterClosed().pipe(kg(this.destroy$)).subscribe(t=>{if(t&&t.action)switch(t.action){case sP.Save:this.addNode(t.value.endpoint);break;case sP.Cancel:console.log("Exit dialog!")}})}addNodeToLocalStorage(t){let e=[];localStorage.getItem("nodes")&&(e=JSON.parse(localStorage.getItem("nodes")));const n=e.some((t,n)=>e.indexOf(t)!==n),i=this.endpoints.some((t,e)=>this.endpoints.indexOf(t)!==e);n||i?this.toastrService.error("This node already exists."):(e.push(t),localStorage.setItem("nodes",JSON.stringify(e)),this.savedEndpointsSubject.next(e))}removeNode(t){let e=[];localStorage.getItem("nodes")&&(e=JSON.parse(localStorage.getItem("nodes")));const n=e.indexOf(t);-1!==n?(e.splice(n,1),localStorage.setItem("nodes",JSON.stringify(e)),this.savedEndpointsSubject.next(e)):this.toastrService.error("Node not found!")}openSearch(){this.inputOpened=!this.inputOpened,setTimeout(()=>{this.headerForm.nativeElement[1].focus()})}onSubmit(){this.submitted=!0;const t=this.searchForm.controls.search.value;if(this.searchForm.invalid)return;const e=+t,n=null==t?void 0:t.substring(0,3);if(this.isLoadingResults=!0,this.isRateLimitReached=!1,e)this.ledgerService.getMomentumsByHeight(e,1).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.inputOpened=!1,this.router.navigate(["/momentum",t.result.list[0].height])):this.error="Nothing was found with entered value!"},t=>{this.error=t});else if(/(^[a-zA-Z0-9]{64})$/.test(t)){const e=this.ledgerService.getAccountBlockByHash(t).pipe(op(()=>Ld(null)));Hg([this.ledgerService.getMomentumByHash(t).pipe(op(()=>Ld(null))),e]).pipe(kg(this.destroy$),L(t=>{this.isLoadingResults=!1,this.isRateLimitReached=!1;const e=t[0].result;return e?{type:"momentum",result:e}:{type:"tx",result:t[1].result}}),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["tx"===t.type?"/transaction":"/momentum",t.result.hash])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t})}else/(^[zZa-zA-Z0-9]{61})$/.test(t)?this.ledgerService.getAccountInfoByAddress(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.inputOpened=!1,this.router.navigate(["/address",t.result.address])):this.error="Nothing was found with entered value!"},t=>{this.error=t}):/(^[zZa-zA-Z0-9]{26})$/.test(t)&&"zts"===n?this.tokenService.getById(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.router.navigate(["/token",t.result.tokenStandard])):this.error="Nothing was found with entered value!"},t=>{this.isLoadingResults=!1,this.isRateLimitReached=!0,this.error=t}):this.ledgerService.getAccountInfoByAddress(t).pipe(kg(this.destroy$),L(t=>(this.isLoadingResults=!1,this.isRateLimitReached=!1,t)),op(()=>(this.isLoadingResults=!1,this.isRateLimitReached=!0,Ld([])))).subscribe(t=>{t.result?(this.error="",this.searchForm.reset(),this.inputOpened=!1,this.router.navigate(["/address",t.result.address])):this.error="Nothing was found with entered value!"},t=>{this.error=t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyConnection$.next(),this.destroyConnection$.complete()}};return t.\u0275fac=function(e){return new(e||t)(Bo(Ah),Bo(uy),Bo(Zy),Bo(Jf),Bo(Am),Bo(Og),Bo(Yy),Bo(Vg),Bo(OL),Bo(KD),Bo(Ry))},t.\u0275cmp=jt({type:t,selectors:[["app-header"]],viewQuery:function(t,e){if(1&t&&Oc(lF,1),2&t){let t;Sc(t=Tc())&&(e.headerForm=t.first)}},hostBindings:function(t,e){1&t&&Qo("mousedown",function(t){return e.onGlobalClick(t)},!1,gs)},inputs:{theme:"theme"},decls:34,vars:29,consts:[[1,"header"],["color","primary"],[1,"header__nav"],["appSelector","","mat-icon-button","","class","selector header__menu","aria-label","icon-button",4,"ngIf"],["class","selector__nav mobile__nav",4,"ngIf"],["class","header__brand","routerLink","/",4,"ngIf"],["class","nav",4,"ngIf"],[1,"spacer"],[1,"header__search-form",3,"ngClass","formGroup","ngSubmit"],["headerForm",""],["type","submit","mat-icon-button","","aria-label","search-button",1,"header__search-button",3,"ngClass"],["svgIcon","magnify","matSuffix",""],["formControlName","search","autocomplete","off","autofocus","","matInput","","placeholder","Search by Address / Transaction Hash / Momentum Height",1,"header__search-input",3,"ngClass"],["type","button","mat-icon-button","","aria-label","close-button",1,"header__search-icon",3,"ngClass","click"],["matSuffix","",3,"svgIcon"],[1,"endpoints"],["class","endpoints__selected","matTooltipPosition","below","matTooltipClass","tooltip",3,"ngClass","matTooltip",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor"],["svgIcon","chevron-down"],["xPosition","before"],["endpointsDropdown","matMenu"],["mat-menu-item","",3,"click"],["svgIcon","plus"],["mat-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf"],["class","endpoints__saved",3,"ngClass",4,"ngFor","ngForOf"],[1,"switch"],["type","checkbox","id","toggle",3,"checked","click"],[1,"slider"],["viewBox","0 0 52 25","id","mountain2",3,"ngClass"],["d","M24.82.53.12,25.23a1.58,1.58,0,0,0-.12.15H52.19l-.11-.15L27.37.53A1.79,1.79,0,0,0,24.82.53Z",1,"cls-1"],["viewBox","0 0 52 25","id","mountain1",3,"ngClass"],["appSelector","","mat-icon-button","","aria-label","icon-button",1,"selector","header__menu"],[1,"selector__nav","mobile__nav"],[3,"dataSource","treeControl"],["matTreeNodePadding","",3,"ngClass","routerLink",4,"matTreeNodeDef"],["matTreeNodePadding","",3,"ngClass","routerLink",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodePadding","",3,"ngClass","routerLink"],["mat-icon-button","","disabled",""],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["routerLink","/",1,"header__brand"],[1,"nav"],["routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["routerLink","/momentums","routerLinkActive","active"],["routerLink","/sentinels","routerLinkActive","active"],["routerLink","/pillars","routerLinkActive","active"],["routerLink","/tokens","routerLinkActive","active"],["matTooltipPosition","below","matTooltipClass","tooltip",1,"endpoints__selected",3,"ngClass","matTooltip"],["mat-menu-item","",3,"ngClass","click"],[1,"endpoints__saved",3,"ngClass"],["svgIcon","close",1,"endpoints__close",3,"click"]],template:function(t,e){if(1&t&&(Vo(0,"header",0),Vo(1,"mat-toolbar",1),Vo(2,"nav",2),Fo(3,cF,3,0,"button",3),Fo(4,pF,4,3,"ul",4),Fo(5,mF,3,0,"span",5),Fo(6,gF,16,2,"ul",6),$o(7,"span",7),Vo(8,"form",8,9),Qo("ngSubmit",function(){return e.onSubmit()}),Vo(10,"button",10),$o(11,"mat-icon",11),Ho(),$o(12,"input",12),Vo(13,"button",13),Qo("click",function(){return e.openSearch()}),$o(14,"mat-icon",14),Ho(),Ho(),Vo(15,"span",15),Fo(16,_F,2,3,"span",16),Vo(17,"button",17),$o(18,"mat-icon",18),Ho(),Vo(19,"mat-menu",19,20),Vo(21,"button",21),Qo("click",function(){return e.openDialog()}),$o(22,"mat-icon",22),Vo(23,"span"),Ea(24,"Add Node"),Ho(),Ho(),Fo(25,bF,3,4,"button",23),Fo(26,vF,4,4,"span",24),Ho(),Ho(),Vo(27,"label",25),Vo(28,"input",26),Qo("click",function(t){return e.onSwitchTheme(t)}),Ho(),Vo(29,"span",27),hn(),Vo(30,"svg",28),$o(31,"path",29),Ho(),Vo(32,"svg",30),$o(33,"path",29),Ho(),Ho(),Ho(),Ho(),Ho(),Ho()),2&t){const t=No(20);rr(3),jo("ngIf",e.isMobile),rr(1),jo("ngIf",e.isMobile),rr(1),jo("ngIf",!e.isMobile),rr(1),jo("ngIf",!e.isMobile),rr(2),jo("ngClass",ic(17,wF,e.isMobile&&e.inputOpened))("formGroup",e.searchForm),rr(2),jo("ngClass",ic(19,CF,e.inputOpened)),rr(2),jo("ngClass",ic(21,kF,e.inputOpened)),rr(1),jo("ngClass",ic(23,kF,e.inputOpened)),rr(1),jo("svgIcon",e.inputOpened?"close-circle-outline":"magnify"),rr(2),jo("ngIf",!e.inputOpened),rr(1),jo("matMenuTriggerFor",t),rr(8),jo("ngForOf",e.endpoints),rr(1),jo("ngForOf",e.savedEndpoints),rr(2),jo("checked",e.toggleSwitch),rr(2),jo("ngClass",ic(25,xF,e.toggleSwitch)),rr(2),jo("ngClass",ic(27,xF,e.toggleSwitch))}},directives:[FL,zu,ny,y_,Fu,ry,oS,kS,Rx,Gg,Xx,__,ay,sF,tF,KL,Bu,aF,ED,CD,wD,xD,tg,PD,eg,ig,fE],styles:['@charset "UTF-8";.header[_ngcontent-%COMP%] .header__search-form.mobile[_ngcontent-%COMP%]{position:absolute;left:0;top:6px;width:100%;z-index:9}.header[_ngcontent-%COMP%] .header__search-form.mobile[_ngcontent-%COMP%] .header__search-input[_ngcontent-%COMP%]{transition:none;width:calc(100% - 3rem);left:1.5rem}.header[_ngcontent-%COMP%] .header__search-form.mobile[_ngcontent-%COMP%] .header__search-icon[_ngcontent-%COMP%]{margin-right:1.5rem}.header[_ngcontent-%COMP%] .header__search-form.mobile[_ngcontent-%COMP%] .header__search-button[_ngcontent-%COMP%]{transition:none}@media screen and (max-width:992px){.header[_ngcontent-%COMP%] .header__search-form.mobile[_ngcontent-%COMP%] .header__search-button[_ngcontent-%COMP%]{left:1.5rem}}.header__search-form[_ngcontent-%COMP%]{position:relative;width:100%;display:flex;justify-content:space-between;top:0;transition:.3s ease-in}.header__search-input[_ngcontent-%COMP%]{position:absolute;height:34px;border:1px solid transparent;background:var(--headerSearchBg);border-radius:20px;padding:5px 15px 5px 40px;top:6px;right:6px;font-size:14px;width:6%;visibility:hidden;transition:width .2s ease-in}.header__search-input.opened[_ngcontent-%COMP%]{width:100%;visibility:visible}.header__search-input[_ngcontent-%COMP%]::placeholder{color:var(--headerSearchPH);font-weight:200}.header__search-icon[_ngcontent-%COMP%]{margin-right:5px;margin-top:2px}.header__search-button[_ngcontent-%COMP%]{margin-top:3px;visibility:hidden;transition:visibility,margin-right .3s ease-out}.header__search-button.visible[_ngcontent-%COMP%]{visibility:visible;z-index:5}.header[_ngcontent-%COMP%] .dropdown-sign[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%] .dropdown-sign[_ngcontent-%COMP%]:before{content:"\u276f";position:absolute;font-size:1rem;right:-10px;transform:rotate(90deg);transition:transform .2s ease-in-out}.header[_ngcontent-%COMP%] li.dropdown.show[_ngcontent-%COMP%] .dropdown-sign[_ngcontent-%COMP%]:before{transform:rotate(-90deg)}.header[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{justify-content:center;padding:0;height:64px}@media screen and (max-width:599px){.header[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{height:56px}}.header__brand[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.header__brand[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.5rem}.header__nav[_ngcontent-%COMP%]{justify-content:space-between;max-width:128rem;width:100%;padding:0 2rem}.header__nav[_ngcontent-%COMP%], .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{list-style:none;justify-content:flex-start;margin:0;position:relative}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{height:100%;position:relative;margin:0 1rem}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none;color:var(--fade75inverse);height:100%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:400;cursor:pointer}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{content:"";position:absolute;width:0;height:.2rem;background:var(--primaryFont);bottom:.5rem;left:0;transition:width .3s ease-in}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:after, .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover:after, .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%]:after, .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover:after{width:100%}.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%], .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span.active[_ngcontent-%COMP%], .header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--primaryFont);font-weight:500}@media screen and (max-width:768px){.header__nav[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{display:none}}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.mobile__nav[_ngcontent-%COMP%]{width:100%;top:64px;left:0;z-index:999}@media screen and (max-width:599px){.mobile__nav[_ngcontent-%COMP%]{top:56px}}.mat-tree-node[_ngcontent-%COMP%]{min-height:4rem;padding-left:2rem;border-bottom:1px solid var(--blockHeaderBorder)}.mat-tree-node[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:3rem;width:3rem;line-height:3rem}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:5rem;height:2.4rem;flex-shrink:0}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--themeTogglerBg);transition:.4s;border-radius:1.2rem;overflow:hidden}.switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:2rem;width:2rem;left:2.8rem;bottom:2px;background-color:initial;transition:.4s;border-radius:50%;box-shadow:inset 2.4rem 0 0 .1px #fff;z-index:2}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:var(--themeTogglerBgDark)}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translateX(-2.6rem);box-shadow:inset 1rem 0 0 0 #fff}.switch[_ngcontent-%COMP%] #mountain1[_ngcontent-%COMP%]{position:absolute;width:2.6rem;height:1.2rem;left:-6px;bottom:0;fill:var(--mountain1);z-index:1;transition:.4s}.switch[_ngcontent-%COMP%] #mountain1.checked[_ngcontent-%COMP%]{left:3rem;fill:var(--mountain1Dark)}.switch[_ngcontent-%COMP%] #mountain2[_ngcontent-%COMP%]{position:absolute;width:2.2rem;height:1.1rem;left:3px;bottom:0;fill:var(--mountain2);z-index:1;transition:.4s}.switch[_ngcontent-%COMP%] #mountain2.checked[_ngcontent-%COMP%]{left:2.4rem;fill:var(--mountain2Dark)}.endpoints[_ngcontent-%COMP%]{display:flex;align-items:center}.endpoints__selected[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400;margin-top:4px}.endpoints__saved[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.endpoints__close[_ngcontent-%COMP%]{cursor:pointer;padding:1.2rem;flex-shrink:0;width:4.8rem;height:4.8rem}.endpoints__close[_ngcontent-%COMP%]:hover{background:hsla(0,0%,100%,.04)}.activeEndpoint[_ngcontent-%COMP%]{color:var(--linkColor)}.live[_ngcontent-%COMP%]:before{background:var(--emptyStroke);animation:live 2s infinite}.down[_ngcontent-%COMP%]:before, .live[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;position:relative;top:-1px}.down[_ngcontent-%COMP%]:before{background:#f44336;animation:down 2s infinite}@keyframes live{0%{transform:scale(.95);box-shadow:0 0 0 0 var(--emptyStroke)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(59,218,87,0)}to{transform:scale(.95);box-shadow:0 0 0 0 rgba(59,218,87,0)}}@keyframes down{0%{transform:scale(.95);box-shadow:0 0 0 0 #f44336}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(59,218,87,0)}to{transform:scale(.95);box-shadow:0 0 0 0 rgba(59,218,87,0)}}']}),t=qE([nP()],t),t})();const TF=function(t){return{"show-scrollTop":t}};let PF=(()=>{class t{constructor(t){this.document=t}onWindowScroll(){window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop>100?this.windowScrolled=!0:(this.windowScrolled&&window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop<10)&&(this.windowScrolled=!1)}scrollToTop(){!function t(){var e=document.documentElement.scrollTop||document.body.scrollTop;e>0&&(window.requestAnimationFrame(t),window.scrollTo(0,e-e/8))}()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(Bo(Ah))},t.\u0275cmp=jt({type:t,selectors:[["app-scroll-to-top"]],hostBindings:function(t,e){1&t&&Qo("scroll",function(){return e.onWindowScroll()},!1,fs)},decls:3,vars:3,consts:[[1,"scroll-to-top",3,"ngClass"],["mat-mini-fab","","color","primary","type","button","data-toggle","button","aria-pressed","true","mat-icon-button","","aria-label","icon-button",3,"click"],["svgIcon","chevron-up"]],template:function(t,e){1&t&&(Vo(0,"div",0),Vo(1,"button",1),Qo("click",function(){return e.scrollToTop()}),$o(2,"mat-icon",2),Ho(),Ho()),2&t&&jo("ngClass",ic(1,TF,e.windowScrolled))},directives:[Fu,oS,kS],styles:[".scroll-to-top[_ngcontent-%COMP%]{position:fixed;bottom:15px;right:15px;opacity:0;transition:all .2s ease-in-out;z-index:10}.show-scrollTop[_ngcontent-%COMP%]{opacity:1;transition:all .2s ease-in-out}"]}),t})(),RF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=jt({type:t,selectors:[["app-footer"]],decls:39,vars:0,consts:[[1,"footer"],[1,"footer__top--container"],[1,"footer__top"],[1,"footer__community"],["href","https://twitter.com/Zenon_Network","rel","nofollow","target","_blank"],["svgIcon","twitter"],["href","https://medium.com/@zenon.network","rel","nofollow","target","_blank"],["svgIcon","medium"],["href","https://t.me/joinchat/MLyPehLIbJj1nw1XOOOltg","rel","nofollow","target","_blank"],["svgIcon","telegram"],["href","https://discord.com/invite/ZvrFDUEbcN","rel","nofollow","target","_blank"],["svgIcon","discord"],["href","https://github.com/zenon-network","rel","nofollow","target","_blank"],["svgIcon","github"],["href","https://bitcointalk.org/index.php?topic=5279643.msg55303681#msg55303681","rel","nofollow","target","_blank"],["svgIcon","bitcointalk"],["href","https://www.youtube.com/channel/UCDb8ZtqBt6l5l4HugCnJwhQ","rel","nofollow","target","_blank"],["svgIcon","youtube"],[1,"footer__bottom--container"],[1,"footer__bottom"],["href","https://zenon.network/","rel","nofollow","target","\u201c_blank\u201d"],[1,"link"]],template:function(t,e){1&t&&(Vo(0,"footer",0),Vo(1,"div",1),Vo(2,"div",2),Vo(3,"div",3),Vo(4,"h4"),Ea(5,"Community"),Ho(),Vo(6,"ul"),Vo(7,"li"),Vo(8,"a",4),$o(9,"mat-icon",5),Ho(),Ho(),Vo(10,"li"),Vo(11,"a",6),$o(12,"mat-icon",7),Ho(),Ho(),Vo(13,"li"),Vo(14,"a",8),$o(15,"mat-icon",9),Ho(),Ho(),Vo(16,"li"),Vo(17,"a",10),$o(18,"mat-icon",11),Ho(),Ho(),Vo(19,"li"),Vo(20,"a",12),$o(21,"mat-icon",13),Ho(),Ho(),Vo(22,"li"),Vo(23,"a",14),$o(24,"mat-icon",15),Ho(),Ho(),Vo(25,"li"),Vo(26,"a",16),$o(27,"mat-icon",17),Ho(),Ho(),Ho(),Ho(),Ho(),Ho(),Vo(28,"div",18),Vo(29,"div",19),Vo(30,"span"),Ea(31,"\xa9 Zenon Network 2022. All rights reserved."),Ho(),Vo(32,"ul"),Vo(33,"li"),Ea(34,"Explorer Version 0.0.1"),Ho(),Vo(35,"li"),Vo(36,"a",20),Vo(37,"span",21),Ea(38,"Zenon Mainnet"),Ho(),Ho(),Ho(),Ho(),Ho(),Ho(),Ho())},directives:[kS],styles:[".footer[_ngcontent-%COMP%]{color:#fff;display:grid;grid-template-rows:1fr auto;justify-items:center;margin-top:4rem}.footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;list-style:none;margin-right:2.5rem}.footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.5);font-size:1.6rem;display:block}.footer[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}.footer__bottom[_ngcontent-%COMP%], .footer__top[_ngcontent-%COMP%]{max-width:128rem;width:100%;display:grid;grid-template-columns:1fr 1fr}.footer__bottom--container[_ngcontent-%COMP%], .footer__top--container[_ngcontent-%COMP%]{display:grid;width:100%;justify-items:center;padding:0 2rem}@media screen and (max-width:768px){.footer__bottom[_ngcontent-%COMP%], .footer__top[_ngcontent-%COMP%]{grid-template-columns:1fr;justify-items:center}}.footer__top[_ngcontent-%COMP%]{padding:3.5rem 0}.footer__top--container[_ngcontent-%COMP%]{background:var(--footerTopBg)}.footer__bottom[_ngcontent-%COMP%]{padding:1.5rem 0;color:hsla(0,0%,100%,.5)}.footer__bottom--container[_ngcontent-%COMP%]{border-top:.01rem solid hsla(0,0%,100%,.2);background:var(--footerBottomBg)}.footer__bottom[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:200}@media screen and (max-width:768px){.footer__bottom[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.4rem}.footer__bottom[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child){margin-top:1rem}}.footer__bottom[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){border-right:1px solid hsla(0,0%,100%,.5);padding-right:2.5rem}@media screen and (max-width:768px){.footer__bottom[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:0}.footer__bottom[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){font-size:1.2rem;margin-top:1rem;margin-right:1rem;padding-right:1rem}}.footer__brand[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;cursor:pointer}.footer__brand[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:2rem;font-weight:200}.footer__brand[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:3rem;height:3rem;margin-right:.5rem}.footer__community[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.footer__community[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:500;margin-top:0}.footer__community[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:3rem;height:3rem}.footer__community[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:2.5rem}@media screen and (max-width:768px){.footer__community[_ngcontent-%COMP%]{align-items:center;margin-top:2rem}.footer__community[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:1rem}}.footer__resources[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.footer__resources[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:500;margin-top:0;margin-bottom:1rem}.footer__resources[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.5);font-size:1.6rem}.footer__resources[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:last-child){border-right:1px solid hsla(0,0%,100%,.5);padding-right:2.5rem}@media screen and (max-width:768px){.footer__resources[_ngcontent-%COMP%]{align-items:center;margin-top:2rem}}.footer__links[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:#fff;cursor:pointer}"]}),t})(),MF=(()=>{class t{constructor(t,e){this.resizeService=t,this.endpointService=e,this.title="Zenon Explorer"}ngOnInit(){this.userTheme=localStorage.getItem("theme")&&"dark"===localStorage.getItem("theme")?"dark":localStorage.getItem("theme")&&"light"===localStorage.getItem("theme")?"light":"dark",this.resizeObservable$=ex(window,"resize"),this.subscription=this.resizeObservable$.subscribe(t=>{this.resizeService.onResize(t.target.innerWidth)}),this.useSavedEndpoint()}useSavedEndpoint(){if(localStorage.getItem("defaultEndpoint")){const t=localStorage.getItem("defaultEndpoint");t&&this.endpointService.setEndpoint(t)}}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Bo(Og),Bo(Vg))},t.\u0275cmp=jt({type:t,selectors:[["app-root"]],decls:5,vars:1,consts:[[3,"theme"],[1,"content"]],template:function(t,e){1&t&&($o(0,"app-header",0),Vo(1,"main",1),$o(2,"router-outlet"),$o(3,"app-scroll-to-top"),Ho(),$o(4,"app-footer")),2&t&&jo("theme",e.userTheme)},directives:[EF,sg,PF,RF],styles:["[_nghost-%COMP%]{display:grid;grid-template-rows:auto 1fr auto;height:100%;grid-template-columns:100%}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}"]}),t})(),IF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),AF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ed,tk,IF,yO]]}),t})(),DF=(()=>{class t{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LF={provide:new Xn("mat-datepicker-scroll-strategy"),deps:[GO],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let FF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[DF,LF],imports:[[ed,lS,QD,eE,HC,yO,tk],cO]}),t})(),NF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),BF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[NF,Rk,tk,uC],NF,tk]}),t})();const jF=[xS,NL,tx,Jx,lS,JT,VP,LS,AM,AF,MD,FF,_E,BF,DI,Rk,EP,Nx,oF];let zF=(()=>{class t{}return t.\u0275mod=$t({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[...jF],xS,NL,tx,Jx,lS,JT,VP,LS,AM,AF,MD,FF,_E,BF,DI,Rk,EP,Nx,oF]}),t})(),VF=(()=>{class t{constructor(t){this.toastr=t}intercept(t,e){return e.handle(t).pipe(op(t=>{const e=t.error.message||t.message||t.statusText;return this.toastr.error(e),Dg(e)}))}}return t.\u0275fac=function(e){return new(e||t)(gi(OL))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),HF=(()=>{class t{constructor(t,e){t.addSvgIconSet(e.bypassSecurityTrustResourceUrl("./assets/mdi.svg"))}}return t.\u0275mod=$t({type:t,bootstrap:[MF]}),t.\u0275inj=ct({factory:function(e){return new(e||t)(gi(mS),gi(Rd))},providers:[{provide:Iy,useClass:VF,multi:!0},{provide:wk,useClass:vk}],imports:[[Dd,aD,Lw,CR,dy,py,zF,Wy,bk,PL.forRoot()]]}),t})();(function(){if(ph)throw new Error("Cannot enable prod mode after platform setup.");dh=!1})(),Id().bootstrapModule(HF).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);