PageSourceSearch

https://www.nutridata.ee/et/main-es2015.5119ad8f96a6348fcbe0.js

js nutridata.ee collected 2026-09-25 20:05:48 UTC 1,001,103 bytes, 3 lines download raw bytes

1var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"et"});
2"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){let i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["et"]=["et",[["AM","PM"],u,u],u,[["P","E","T","K","N","R","L"],u,["p\xFChap\xE4ev","esmasp\xE4ev","teisip\xE4ev","kolmap\xE4ev","neljap\xE4ev","reede","laup\xE4ev"],["P","E","T","K","N","R","L"]],u,[["J","V","M","A","M","J","J","A","S","O","N","D"],["jaan","veebr","m\xE4rts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],["jaanuar","veebruar","m\xE4rts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]],u,[["eKr","pKr"],u,["enne Kristust","p\xE4rast Kristust"]],1,[6,0],["dd.MM.yy","d. MMM y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",","\xA0",";","%","+","\u2212","\xD710^","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{"AUD":["AU$","$"],"EEK":["kr"],"THB":["\u0E3F"],"TWD":["NT$"]},"ltr",plural,[[["kesk\xF6\xF6l","keskp\xE4eval","hommikul","p\xE4rastl\xF5unal","\xF5htul","\xF6\xF6sel"],u,u],[["kesk\xF6\xF6","keskp\xE4ev","hommik","p\xE4rastl\xF5una","\xF5htu","\xF6\xF6"],u,u],["00:00","12:00",["05:00","12:00"],["12:00","18:00"],["18:00","23:00"],["23:00","05:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
3(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},Enxc:function(e,t){},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(r.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();class h{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:n,_unsubscribe:i,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof h)t.remove(this);else if(null!==t)for(let s=0;s<t.length;++s){t[s].remove(this)}if(s(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(o){e=o instanceof u?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 u?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new u(e)}add(e){let t=e;if(!e)return h.EMPTY;switch(typeof e){case"function":t=new h(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof h)){const e=t;t=new h,t._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=t;if(null===n)t._parentOrParents=this;else if(n instanceof h){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[t]:s.push(t),t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}function d(e){return e.reduce((e,t)=>
vendor: 4,815 bytes, line 3
3e.concat(t instanceof u?t.errors:t),[])}h.EMPTY=function(e){return e.closed=!0,e}(new h);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends f{constructor(e,t,n,i){let r;super(),this._parentSubscriber=e;let o=this;s(t)?r=t:t&&(r=t.next,n=t.error,i=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(e){return e}function b(e){return 0===e.length?y:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}class v{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new v;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:s}=this,i=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(s?i.add(s.call(i,this.source)):i.add(this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){r.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?console.warn(t):e.error(t)}}forEach(e,t){return new(t=_(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(i){n(i),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=_(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}function _(e){if(e||(e=r.Promise||Promise),!e)throw new Error("no Promise impl found");return e}v.create=e=>new v(e);const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class C extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}
vendor: 6,431 bytes, line 3
3unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class x extends f{constructor(e){super(e),this.destination=e}}class k extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let i=0;i<n;i++)s[i].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,s=t.slice();for(let i=0;i<n;i++)s[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let s=0;s<t;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new C(this,e))}asObservable(){const e=new v;return e.source=this,e}}k.create=(e,t)=>new S(e,t);class S extends k{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function T(e){return e&&"function"==typeof e.schedule}function D(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new E(e,t))}}class E{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new O(e,this.project,this.thisArg))}}class O extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;n<s&&!t.closed;n++)t.next(e[n]);t.complete()};const P="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",A=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function M(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const F=e=>{if(e&&"function"==typeof e[m])return s=e,e=>{const t=s[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(A(e))return I(e);if(M(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[P])return t=e,e=>{const n=t[P]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function R(e,t){return new v(n=>{const s=new h;let i=0;return s.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||s.add(this.schedule())):n.complete()})),s})}function N(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>{const i=e[m]();s.add(i.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(M(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(A(e))return R(e,t);if(function(e){return e&&"function"==typeof e[P]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const s=new h;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(t.schedule(()=>{i=e[P](),s.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())}))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function L(e,t){return t?N(e,t):e instanceof v?e:new v(F(e))}class V extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class j extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function B(e,t){if(t.closed)return;if(e instanceof v)return e.subscribe(t);let n;try{n=F(e)(t)}catch(s){t.error(s)}return n}function $(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe($((n,s)=>L(e(n,s)).pipe(D((e,i)=>t(n,e,s,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new z(e,n)))}class z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new U(e,this.project,this.concurrent))}}class U extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new V(this),n=this.destination;n.add(t);const s=B(e,t);s!==t&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(e=Number.POSITIVE_INFINITY){return $(y,e)}function q(e,t){return t?R(e,t):new v(I(e))}
3function W(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return T(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:H(t)(q(e,n))}function K(){return function(e){return e.lift(new G(e))}}class G{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new Z(e,n),i=t.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class Q extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new J(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return K()(this)}}const Y=(()=>{const e=Q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class J extends x{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class X{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:n}=this,s=this.subjectFactory(),i=n(s).subscribe(e);return i.add(t.subscribe(s)),i}}function ee(){return new k}function te(){return e=>{return K()((t=ee,function(e){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return e.lift(new X(s,n));const i=Object.create(e,Y);return i.source=e,i.subjectFactory=s,i})(e));var t,n}}function ne(e){for(let t in e)if(e[t]===ne)return t;throw Error("Could not find renamed property on target object.")}function se(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function re(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const oe=ne({__forward_ref__:ne});function ae(e){return e.__forward_ref__=ae,e.toString=function(){return ie(this())},e}function le(e){return ce(e)?e():e}function ce(e){return"function"==typeof e&&e.hasOwnProperty(oe)&&e.__forward_ref__===ae}class ue extends Error{constructor(e,t){super(he(e,t)),this.code=e}}new Set(["100","200","201","300","301","302"]);function he(e,t){let n=`${e?`NG0${e}: `:""}${t}`;return n}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}function fe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ue("200",`Circular dependency in DI detected for ${e}${n}`)}function ge(e,t){const n=t?` in ${t}`:"";throw new ue("201",`No provider for ${pe(e)} found${n}`)}function me(e,t,n){e!=t&&be(n,e,t,"==")}function ye(e,t){null==e&&be(t,e,null,"!=")}function be(e,t,n,s){throw new Error(`ASSERTION ERROR: ${e}`+(null==s?"":` [Expected=> ${n} ${s} ${t} <=Actual]`))}function ve(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _e(e){return{providers:e.providers||[],imports:e.imports||[]}}function we(e){return Ce(e,ke)||Ce(e,Te)}function Ce(e,t){return e.hasOwnProperty(t)?e[t]:null}function xe(e){return e&&(e.hasOwnProperty(Se)||e.hasOwnProperty(De))?e[Se]:null}const ke=ne({"\u0275prov":ne}),Se=ne({"\u0275inj":ne}),Te=ne({ngInjectableDef:ne}),De=ne({ngInjectorDef:ne});var Ee;let Oe;function Ie(e){const t=Oe;return Oe=e,t}function Pe(e,t,n){const s=we(e);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:n&Ee.Optional?null:void 0!==t?t:void ge(ie(e),"Injector")}function Ae(e){return{toString:e}.toString()}var Me,Fe,Re;!function(e){e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional"}(Ee||(Ee={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Me||(Me={})),function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed"}(Fe||(Fe={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Re||(Re={}));const Ne="undefined"!=typeof globalThis&&globalThis,Le="undefined"!=typeof window&&window,Ve="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,je="undefined"!=typeof global&&global,Be=Ne||je||Le||Ve;const $e={},ze=[];const Ue=[];const He=ne({"\u0275cmp":ne}),qe=ne({"\u0275dir":ne}),We=ne({"\u0275pipe":ne}),Ke=ne({"\u0275mod":ne}),Ge=ne({"\u0275loc":ne}),Ze=ne({"\u0275fac":ne}),Qe=ne({__NG_ELEMENT_ID__:ne});let Ye=0;function Je(e){return Ae(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Me.OnPush,directiveDefs:null,pipeDefs:null,
3selectors:e.selectors||Ue,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Re.Emulated,id:"c",styles:e.styles||Ue,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,r=e.pipes;return n.id+=Ye++,n.inputs=rt(e.inputs,t),n.outputs=rt(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function Xe(e,t,n){const s=e.\u0275cmp;s.directiveDefs=()=>t.map(et),s.pipeDefs=()=>n.map(tt)}function et(e){const t=lt(e)||ct(e);return t}function tt(e){const t=ut(e);return t}const nt={};function st(e){const t={type:e.type,bootstrap:e.bootstrap||Ue,declarations:e.declarations||Ue,imports:e.imports||Ue,exports:e.exports||Ue,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ae(()=>{nt[e.id]=e.type}),t}function it(e,t){return Ae(()=>{const n=ht(e,!0);n.declarations=t.declarations||Ue,n.imports=t.imports||Ue,n.exports=t.exports||Ue})}function rt(e,t){if(null==e)return $e;const n={};for(const s in e)if(e.hasOwnProperty(s)){let i=e[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,t&&(t[i]=r)}return n}const ot=Je;function at(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function lt(e){return e[He]||null}function ct(e){return e[qe]||null}function ut(e){return e[We]||null}function ht(e,t){const n=e[Ke]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function dt(e){return Array.isArray(e)&&"object"==typeof e[1]}function pt(e){return Array.isArray(e)&&!0===e[1]}function ft(e){return 0!=(8&e.flags)}function gt(e){return 2==(2&e.flags)}function mt(e){return 1==(1&e.flags)}function yt(e){return null!==e.template}function bt(e,t){const n=e.hasOwnProperty(Ze);return n?e[Ze]:null}class vt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return wt}function wt(e){return e.type.prototype.ngOnChanges&&(e.setInput=xt),Ct}function Ct(){const e=kt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===$e)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function xt(e,t,n,s){const i=kt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$e,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new vt(l&&l.currentValue,t,o===$e),e[s]=t}_t.ngInherit=!0;function kt(e){return e.__ngSimpleChanges__||null}let St=null;const Tt=function(e,t,n){null!=St&&St(e,t,n)};let Dt;function Et(){return void 0!==Dt?Dt:"undefined"!=typeof document?document:void 0}var Ot;function It(e){return!!e.listen}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Ot||(Ot={}));const Pt={createRenderer:(e,t)=>Et()};function At(e){for(;Array.isArray(e);)e=e[0];return e}function Mt(e,t){return At(t[e])}function Ft(e,t){const n=At(t[e.index]);return n}function Rt(e,t){const n=e.data[t];return n}function Nt(e,t){return e[t]}function Lt(e,t){const n=t[e];return dt(n)?n:n[0]}function Vt(e){return e.__ngContext__||null}function jt(e){const t=Vt(e);return t?Array.isArray(t)?t:t.lView:null}function Bt(e){return 4==(4&e[2])}function $t(e){return 128==(128&e[2])}function zt(e,t){return null==t?null:e[t]}function Ut(e){e[18]=0}function Ht(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const qt={lFrame:Cn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wt(){return qt.bindingsEnabled}function Kt(){qt.bindingsEnabled=!0}function Gt(){qt.bindingsEnabled=!1}function Zt(){return qt.lFrame.lView}function Qt(){return qt.lFrame.tView}function Yt(e){qt.lFrame.contextLView=e}function Jt(){let e=Xt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xt(){return qt.lFrame.currentTNode}function en(){const e=qt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tn(e,t){const n=qt.lFrame;n.currentTNode=e,n.isParent=t}function nn(){return qt.lFrame.isParent}function sn(){qt.lFrame.isParent=!1}
3function rn(){return qt.isInCheckNoChangesMode}function on(e){qt.isInCheckNoChangesMode=e}function an(){const e=qt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ln(){return qt.lFrame.bindingIndex}function cn(e){return qt.lFrame.bindingIndex=e}function un(){return qt.lFrame.bindingIndex++}function hn(e){const t=qt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dn(e){qt.lFrame.inI18n=e}function pn(e,t){const n=qt.lFrame;n.bindingIndex=n.bindingRootIndex=e,fn(t)}function fn(e){qt.lFrame.currentDirectiveIndex=e}function gn(e){const t=qt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mn(){return qt.lFrame.currentQueryIndex}function yn(e){qt.lFrame.currentQueryIndex=e}function bn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function vn(e,t,n){if(n&Ee.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&Ee.Host||(s=bn(i),null===s)||(i=i[15],10&s.type)););if(null===s)return!1;t=s,e=i}const s=qt.lFrame=wn();return s.currentTNode=t,s.lView=e,!0}function _n(e){const t=wn();const n=e[1];qt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wn(){const e=qt.lFrame,t=null===e?null:e.child;return null===t?Cn(e):t}function Cn(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function xn(){const e=qt.lFrame;return qt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const kn=xn;function Sn(){const e=xn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Tn(e){return(qt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qt.lFrame.contextLView))[8]}function Dn(){return qt.lFrame.selectedIndex}function En(e){qt.lFrame.selectedIndex=e}function On(){const e=qt.lFrame;return Rt(e.tView,e.selectedIndex)}function In(){qt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Pn(){qt.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function An(){qt.lFrame.currentNamespace=null}function Mn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n<s;n++){const t=e.data[n],s=t.type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:o,ngAfterViewChecked:a,ngOnDestroy:l}=s;i&&(e.contentHooks||(e.contentHooks=[])).push(-n,i),r&&((e.contentHooks||(e.contentHooks=[])).push(n,r),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,r)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),a&&((e.viewHooks||(e.viewHooks=[])).push(n,a),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,a)),null!=l&&(e.destroyHooks||(e.destroyHooks=[])).push(n,l)}}function Fn(e,t,n){Ln(e,t,3,n)}function Rn(e,t,n,s){(3&e[2])===n&&Ln(e,t,n,s)}function Nn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ln(e,t,n,s){const i=void 0!==s?65535&e[18]:0,r=null!=s?s:-1,o=t.length-1;let a=0;for(let l=i;l<o;l++){if("number"==typeof t[l+1]){if(a=t[l],null!=s&&a>=s)break}else{t[l]<0&&(e[18]+=65536),(a<r||-1==r)&&(Vn(e,n,t,l),e[18]=(4294901760&e[18])+l+2),l++}}}function Vn(e,t,n,s){const i=n[s]<0,r=n[s+1],o=e[i?-n[s]:n[s]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Tt(4,o,r);try{r.call(o)}finally{Tt(5,o,r)}}}else{Tt(4,o,r);try{r.call(o)}finally{Tt(5,o,r)}}}class jn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function Bn(e,t,n){const s=It(e);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];zn(o)?s&&e.setProperty(t,o,a):s?e.setAttribute(t,o,a):t.setAttribute(o,a),i++}}return i}function $n(e){return 3===e||4===e||6===e}function zn(e){return 64===e.charCodeAt(0)}function Un(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let s=0;s<t.length;s++){const i=t[s];"number"==typeof i?n=i:0===n||Hn(e,n,i,null,-1===n||2===n?t[++s]:null)}}return e}function Hn(e,t,n,s,i){let r=0,o=e.length;if(-1===t)o=-1;else for(;r<e.length;){const n=e[r++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=r-1;break}}}for(;r<e.length;){const t=e[r];if("number"==typeof t)break;if(t===n){if(null===s)return void(null!==i&&(e[r+1]=i));if(s===e[r+1])return void(e[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(e.splice(o,0,t),r=o+1),e.splice(r++,0,n),null!==s&&e.splice(r++,0,s),null!==i&&e.splice(r++,0,i)}function qn(e){return-1!==e}function Wn(e){return 32767&e}function Kn(e,t){let n=e>>16;let s=t;for(;n>0;)s=s[15],n--;return s}let Gn=!0;function Zn(e){const t=Gn;return Gn=e,t}let Qn=0;function Yn(e,t){const n=Xn(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Jn(s.data,e),Jn(t,null),Jn(s.blueprint,null));const i=es(e,t),r=e.injectorIndex;if(qn(i)){const e=Wn(i),n=Kn(i,t),s=n[1].data;for(let i=0;i<8;i++)t[r+i]=n[e+i]|s[e+i]}return t[r+8]=i,r}function Jn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function es(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,s=null,i=t;
vendor: 2,604 bytes, line 3
3for(;null!==i;){const e=i[1],t=e.type;if(s=2===t?e.declTNode:1===t?i[6]:null,null===s)return-1;if(n++,i=i[15],-1!==s.injectorIndex)return s.injectorIndex|n<<16}return-1}function ts(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Qe)&&(s=n[Qe]),null==s&&(s=n[Qe]=Qn++);const i=255&s,r=1<<i;t.data[e+(i>>5)]|=r}(e,t,n)}function ns(e,t,n){if(n&Ee.Optional)return e;ge(t,"NodeInjector")}function ss(e,t,n,s){if(n&Ee.Optional&&void 0===s&&(s=null),0==(n&(Ee.Self|Ee.Host))){const i=e[9],r=Ie(void 0);try{return i?i.get(t,s,n&Ee.Optional):Pe(t,s,n&Ee.Optional)}finally{Ie(r)}}return ns(s,t,n)}function is(e,t,n,s=Ee.Default,i){if(null!==e){const r=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Qe)?e[Qe]:void 0;return"number"==typeof t?t>=0?255&t:os:t}(n);if("function"==typeof r){if(!vn(t,e,s))return s&Ee.Host?ns(i,n,s):ss(t,n,s,i);try{const e=r();if(null!=e||s&Ee.Optional)return e;ge(n)}finally{kn()}}else if("number"==typeof r){let i=null,o=Xn(e,t),a=-1,l=s&Ee.Host?t[16][6]:null;for((-1===o||s&Ee.SkipSelf)&&(a=-1===o?es(e,t):t[o+8],-1!==a&&hs(s,!1)?(i=t[1],o=Wn(a),t=Kn(a,t)):o=-1);-1!==o;){const e=t[1];if(us(r,o,e.data)){const e=as(o,t,n,i,s,l);if(e!==rs)return e}a=t[o+8],-1!==a&&hs(s,t[1].data[o+8]===l)&&us(r,o,t)?(i=e,o=Wn(a),t=Kn(a,t)):o=-1}}}return ss(t,n,s,i)}const rs={};function os(){return new ds(Jt(),Zt())}function as(e,t,n,s,i,r){const o=t[1],a=o.data[e+8],l=ls(a,o,n,null==s?gt(a)&&Gn:s!=o&&0!=(3&a.type),i&Ee.Host&&r===a);return null!==l?cs(t,o,l,a):rs}function ls(e,t,n,s,i){const r=e.providerIndexes,o=t.data,a=1048575&r,l=e.directiveStart,c=e.directiveEnd,u=r>>20,h=i?a+u:c;for(let d=s?a:a+u;d<h;d++){const e=o[d];if(d<l&&n===e||d>=l&&e.type===n)return d}if(i){const e=o[l];if(e&&yt(e)&&e.type===n)return l}return null}function cs(e,t,n,s){let i=e[n];const r=t.data;if(i instanceof jn){const o=i;o.resolving&&fe(pe(r[n]));const a=Zn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ie(o.injectImpl):null;vn(e,s,Ee.Default);try{i=e[n]=o.factory(void 0,r,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=t.type.prototype;if(s){const s=wt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==l&&Ie(l),Zn(a),o.resolving=!1,kn()}}return i}function us(e,t,n){const s=1<<e;return!!(n[t+(e>>
35)]&s)}function hs(e,t){return!(e&Ee.Self||e&Ee.Host&&t)}class ds{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return is(this._tNode,this._lView,e,void 0,t)}}function ps(e){return Ae(()=>{const t=e.prototype.constructor,n=t[Ze]||fs(t),s=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==s;){const e=i[Ze]||fs(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function fs(e){return ce(e)?()=>{const t=fs(le(e));return t&&t()}:bt(e)}function gs(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let s=0;for(;s<e;){const i=n[s];if($n(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<e&&"string"==typeof n[s];)s++;else{if(i===t)return n[s+1];s+=2}}}return null}(Jt(),e)}const ms="__annotations__",ys="__parameters__",bs="__prop__metadata__";function vs(e,t,n,s,i){return Ae(()=>{const r=_s(t);function o(...e){if(this instanceof o)return r.call(this,...e),this;const t=new o(...e);return function(n){i&&i(n,...e);return(n.hasOwnProperty(ms)?n[ms]:Object.defineProperty(n,ms,{value:[]})[ms]).push(t),s&&s(n),n}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function _s(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function ws(e,t,n){return Ae(()=>{const s=_s(t);function i(...e){if(this instanceof i)return s.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,s){const i=e.hasOwnProperty(ys)?e[ys]:Object.defineProperty(e,ys,{value:[]})[ys];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Cs(e,t,n,s){return Ae(()=>{const i=_s(t);function r(...e){if(this instanceof r)return i.apply(this,e),this;const t=new r(...e);return function(n,i){const r=n.constructor,o=r.hasOwnProperty(bs)?r[bs]:Object.defineProperty(r,bs,{value:{}})[bs];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(t),s&&s(n,i,...e)}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const xs=function(){return ws("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>gs(e)}))}();class ks{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ve({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ss=new ks("AnalyzeForEntryComponents");class Ts{}const Ds=Cs("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:false},t),Ts),Es=Cs("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Ts),Os=Cs("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:false},t),Ts),Is=Cs("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Ts);var Ps,As,Ms;function Fs(){const e=Be.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}!function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid"}(Ps||(Ps={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(As||(As={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Ms||(Ms={}));const Rs=Function;function Ns(e){return"function"==typeof e}function Ls(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let s=e[n];Array.isArray(s)?(t===e&&(t=e.slice(0,n)),Ls(s,t)):t!==e&&t.push(s)}return t}
3function Vs(e,t){e.forEach(e=>Array.isArray(e)?Vs(e,t):t(e))}function js(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Bs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $s(e,t){const n=[];for(let s=0;s<e;s++)n.push(t);return n}function zs(e,t,n){let s=Hs(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let i=e.length;if(i==t)e.push(n,s);else if(1===i)e.push(s,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){const t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function Us(e,t){const n=Hs(e,t);if(n>=0)return e[1|n]}function Hs(e,t){return qs(e,t,1)}function qs(e,t,n){let s=0,i=e.length>>n;for(;i!==s;){const r=s+(i-s>>1),o=e[r<<n];if(t===o)return r<<n;o>t?i=r:s=r+1}return~(i<<n)}const Ws=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,Ks=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Gs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Zs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Qs{constructor(e){this._reflect=e||Be.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=$s(void 0===e?t.length:e.length);for(let s=0;s<n.length;s++)void 0===e?n[s]=[]:e[s]&&e[s]!=Object?n[s]=[e[s]]:n[s]=[],t&&null!=t[s]&&(n[s]=n[s].concat(t[s]));return n}_ownParameters(e,t){if(function(e){return Ws.test(e)||Zs.test(e)||Ks.test(e)&&!Gs.test(e)}(e.toString()))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const n=e.ctorParameters;if(n&&n!==t.ctorParameters){const e="function"==typeof n?n():n,t=e.map(e=>e&&e.type),s=e.map(e=>e&&Ys(e.decorators));return this._zipTypesAndAnnotations(t,s)}const s=e.hasOwnProperty(ys)&&e[ys],i=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return i||s?this._zipTypesAndAnnotations(i,s):$s(e.length)}parameters(e){if(!Ns(e))return[];const t=Js(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Ys(e.decorators):e.hasOwnProperty(ms)?e[ms]:null}annotations(e){if(!Ns(e))return[];const t=Js(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Ys(t[e])}),n}return e.hasOwnProperty(bs)?e[bs]:null}propMetadata(e){if(!Ns(e))return{};const t=Js(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const s=this._ownPropMetadata(e,t);return s&&Object.keys(s).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...s[e]),n[e]=t}),n}ownPropMetadata(e){return Ns(e)&&this._ownPropMetadata(e,Js(e))||{}}hasLifecycleHook(e,t){return e instanceof Rs&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n        return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${ie(e)}`}resourceUri(e){return`./${ie(e)}`}resolveIdentifier(e,t,n,s){return s}resolveEnum(e,t){return e[t]}}function Ys(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Js(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Xs={},ei=/\n/gm,ti=ne({provide:String,useValue:ne});let ni;function si(e){const t=ni;return ni=e,t}function ii(e,t=Ee.Default){if(void 0===ni)throw new Error("inject() must be called from an injection context");return null===ni?Pe(e,void 0,t):ni.get(e,t&Ee.Optional?null:void 0,t)}function ri(e,t=Ee.Default){return(Oe||ii)(le(e),t)}function oi(e){throw new Error("invalid")}function ai(e){const t=[];for(let n=0;n<e.length;n++){const s=le(e[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let e,n=Ee.Default;for(let t=0;t<s.length;t++){const i=s[t],r=i.__NG_DI_FLAG__;"number"==typeof r?-1===r?e=i.token:n|=r:e=i}t.push(ri(e,n))}else t.push(ri(s))}return t}function li(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function ci(e,t,n,s){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=ui("\n"+e.message,i,n,s),e.ngTokenPath=i,e.ngTempTokenPath=null,e}function ui(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];
3e.push(n+":"+("string"==typeof s?JSON.stringify(s):ie(s)))}i=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${e.replace(ei,"\n  ")}`}const hi=li(ws("Inject",e=>({token:e})),-1),di=li(ws("Optional"),8),pi=li(ws("Self"),2),fi=li(ws("SkipSelf"),4),gi=li(ws("Host"),1);let mi=null;function yi(){return mi=mi||new Qs}function bi(e){return vi(yi().parameters(e))}function vi(e){const t=Fs();return e.map(e=>function(e,t){const n={token:null,host:!1,optional:!1,resolved:e.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function s(t){n.resolved=e.R3ResolvedDependencyType.Token,n.token=t}if(Array.isArray(t)&&t.length>0)for(let i=0;i<t.length;i++){const r=t[i];if(void 0===r)continue;const o=Object.getPrototypeOf(r);if(r instanceof di||"Optional"===o.ngMetadataName)n.optional=!0;else if(r instanceof fi||"SkipSelf"===o.ngMetadataName)n.skipSelf=!0;else if(r instanceof pi||"Self"===o.ngMetadataName)n.self=!0;else if(r instanceof gi||"Host"===o.ngMetadataName)n.host=!0;else if(r instanceof hi)n.token=r.token;else if(r instanceof xs){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");n.token=r.attributeName,n.resolved=e.R3ResolvedDependencyType.Attribute}else!0===r.__ChangeDetectorRef__?(n.token=r,n.resolved=e.R3ResolvedDependencyType.ChangeDetectorRef):s(r)}else void 0===t||Array.isArray(t)&&0===t.length?(n.token=void 0,n.resolved=Ps.Invalid):s(t);return n}(t,e))}function _i(e){const t=[],n=new Map;function s(t){let s=n.get(t);if(!s){const i=e(t);n.set(t,s=i.then(ki))}return s}return wi.forEach((e,n)=>{const i=[];e.templateUrl&&i.push(s(e.templateUrl).then(t=>{e.template=t}));const r=e.styleUrls,o=e.styles||(e.styles=[]),a=e.styles.length;r&&r.forEach((t,n)=>{o.push(""),i.push(s(t).then(s=>{o[a+n]=s,r.splice(r.indexOf(t),1),0==r.length&&(e.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(e){Ci.delete(e)}(n));t.push(l)}),function(){const e=wi;wi=new Map}(),Promise.all(t).then(()=>{})}let wi=new Map;const Ci=new Set;function xi(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function ki(e){return"string"==typeof e?e:e.text()}let Si,Ti;function Di(){if(void 0===Si&&(Si=null,Be.trustedTypes))try{Si=Be.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Si}function Ei(e){var t;return(null===(t=Di())||void 0===t?void 0:t.createHTML(e))||e}function Oi(){if(void 0===Ti&&(Ti=null,Be.trustedTypes))try{Ti=Be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ti}function Ii(e){var t;return(null===(t=Oi())||void 0===t?void 0:t.createHTML(e))||e}function Pi(e){var t;return(null===(t=Oi())||void 0===t?void 0:t.createScript(e))||e}function Ai(e){var t;return(null===(t=Oi())||void 0===t?void 0:t.createScriptURL(e))||e}class Mi{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Fi extends Mi{getTypeName(){return"HTML"}}class Ri extends Mi{getTypeName(){return"Style"}}class Ni extends Mi{getTypeName(){return"Script"}}class Li extends Mi{getTypeName(){return"URL"}}class Vi extends Mi{getTypeName(){return"ResourceURL"}}function ji(e){return e instanceof Mi?e.changingThisBreaksApplicationSecurity:e}function Bi(e,t){const n=$i(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function $i(e){return e instanceof Mi&&e.getTypeName()||null}function zi(e){const t=new Hi(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ei(""),"text/html")}catch(e){return!1}}()?new Ui(t):t}class Ui{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ei(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Hi{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ei(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Ei(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let s=t.length-1;0<s;s--){const n=t.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const qi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Wi=/^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 Ki(e){return(e=String(e)).match(qi)||e.match(Wi)?e:"unsafe:"+e}function Gi(e){return(e=String(e)).split(",").map(e=>Ki(e.trim())).join(", ")}function Zi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Qi(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Yi=Zi("area,br,col,hr,img,wbr"),Ji=Zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xi=Zi("rp,rt"),er
3=Qi(Xi,Ji),tr=Qi(Ji,Zi("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")),nr=Qi(Xi,Zi("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")),sr=Qi(Yi,tr,nr,er),ir=Zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rr=Zi("srcset"),or=Zi("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"),ar=Zi("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"),lr=Qi(ir,rr,or,ar),cr=Zi("script,style,template");class ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!sr.hasOwnProperty(t))return this.sanitizedSomething=!0,!cr.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,i=t.toLowerCase();if(!lr.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let r=e.value;ir[i]&&(r=Ki(r)),rr[i]&&(r=Gi(r)),this.buf.push(" ",t,'="',pr(r),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();sr.hasOwnProperty(t)&&!Yi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(pr(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/([^\#-~ |!])/g;function pr(e){return e.replace(/&/g,"&amp;").replace(hr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(dr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let fr;function gr(e,t){let n=null;try{fr=fr||zi(e);let s=t?String(t):"";n=fr.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=fr.getInertBodyElement(s)}while(s!==r);const o=new ur;return Ei(o.sanitizeChildren(mr(n)||n))}finally{if(n){const e=mr(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function mr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yr;function br(e){const t=Tr();return t?Ii(t.sanitize(yr.HTML,e)||""):Bi(e,"HTML")?Ii(ji(e)):gr(Et(),de(e))}function vr(e){const t=Tr();return t?t.sanitize(yr.STYLE,e)||"":Bi(e,"Style")?ji(e):de(e)}function _r(e){const t=Tr();return t?t.sanitize(yr.URL,e)||"":Bi(e,"URL")?ji(e):Ki(de(e))}function wr(e){const t=Tr();if(t)return Ai(t.sanitize(yr.RESOURCE_URL,e)||"");if(Bi(e,"ResourceURL"))return Ai(ji(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Cr(e){const t=Tr();if(t)return Pi(t.sanitize(yr.SCRIPT,e)||"");if(Bi(e,"Script"))return Pi(ji(e));throw new Error("unsafe value used in a script context")}function xr(e){return Ei(e[0])}function kr(e){return function(e){var t;return(null===(t=Di())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Sr(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?wr:_r}(t,n)(e)}function Tr(){const e=Zt();return e&&e[12]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(yr||(yr={}));function Dr(e){return e.ngDebugContext}function Er(e){return e.ngOriginalError}function Or(e,...t){e.error(...t)}class Ir{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||Or}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Dr(e)?Dr(e):this._findContext(Er(e)):null}_findOriginalError(e){let t=Er(e);for(;t&&Er(t);)t=Er(t);return t}}const Pr=/^>|^->|<!--|-->|--!>|<!-$/g,Ar=/(<|>)/;function Mr(e){return e.replace(Pr,e=>e.replace(Ar,"\u200b$1\u200b"))}function Fr(e,t){e.__ngContext__=t}const Rr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Be);function Nr(e){return{name:"window",target:e.ownerDocument.defaultView}}function Lr(e){return{name:"document",target:e.ownerDocument}}function Vr(e){return{name:"body",target:e.ownerDocument.body}}function jr(e){return e instanceof Function?e():e}var Br;let $r;function zr(e,t){return $r(e,t)}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Br||(Br={}));function Ur(e){const t=e[3];return pt(t)?t[3]:t}function Hr(e){return Wr(e[13])}function qr(e){return Wr(e[4])}function Wr(e){for(;null!==e&&!pt(e);)e=e[4];return e}function Kr(e,t,n,s,i){if(null!=s){let r,o=!1;pt(s)?r=s:dt(s)&&(o=!0,s=s[0]);const a=At(s);
30===e&&null!==n?null==i?oo(t,n,a):ro(t,n,a,i||null,!0):1===e&&null!==n?ro(t,n,a,i||null,!0):2===e?vo(t,a,o):3===e&&t.destroyNode(a),null!=r&&function(e,t,n,s,i){const r=n[7],o=At(n);r!==o&&Kr(t,e,s,r,i);for(let a=10;a<n.length;a++){const i=n[a];wo(i[1],i,e,t,s,r)}}(t,e,r,n,i)}}function Gr(e,t){return It(e)?e.createText(t):e.createTextNode(t)}function Zr(e,t,n){It(e)?e.setValue(t,n):t.textContent=n}function Qr(e,t){return e.createComment(Mr(t))}function Yr(e,t,n){return It(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Jr(e,t,n,s){const i=10+s,r=n.length;s>0&&(n[i-1][4]=t),s<r-10?(t[4]=n[i],js(n,10+s,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9],s=t[3];const i=s[3][16];const r=t[16];r!==i&&(e[2]=!0);null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}function Xr(e,t){const n=e[9],s=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Ht(i,-1)),n.splice(s,1)}function eo(e,t){if(e.length<=10)return;const n=10+t,s=e[n];if(s){const r=s[17];null!==r&&r!==e&&Xr(r,s),t>0&&(e[n-1][4]=s[4]);const o=Bs(e,10+t);wo(s[1],i=s,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var i;return s}function to(e,t){if(!(256&t[2])){const n=t[11];It(n)&&n.destroyNode&&wo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return no(e[1],e);for(;t;){let n=null;if(dt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)dt(t)&&no(t[1],t),t=t[3];null===t&&(t=e),dt(t)&&no(t[1],t),n=t&&t[4]}t=n}}(t)}}function no(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s<n.length;s+=2){const e=t[n[s]];if(!(e instanceof jn)){const t=n[s+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const s=e[t[n]],i=t[n+1];Tt(4,s,i);try{i.call(s)}finally{Tt(5,s,i)}}else{Tt(4,e,t);try{t.call(e)}finally{Tt(5,e,t)}}}}}(e,t),function(e,t){const n=e.cleanup,s=t[7];let i=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const e=n[r+1],o="function"==typeof e?e(t):At(t[e]),a=s[i=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?s[i=l]():s[i=-l].unsubscribe(),r+=2}else{const e=s[i=n[r+1]];n[r].call(e)}if(null!==s){for(let e=i+1;e<s.length;e++){const t=s[e];t()}t[7]=null}}(e,t),1===t[1].type&&It(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&pt(t[3])){n!==t[3]&&Xr(n,t);const s=t[19];null!==s&&s.detachView(e)}}}function so(e,t,n){return io(e,t.parent,n)}function io(e,t,n){let s=t;for(;null!==s&&40&s.type;)s=(t=s).parent;if(null===s)return n[0];if(2&s.flags){const t=e.data[s.directiveStart].encapsulation;if(t===Re.None||t===Re.Emulated)return null}return Ft(s,n)}function ro(e,t,n,s,i){It(e)?e.insertBefore(t,n,s,i):t.insertBefore(n,s,i)}function oo(e,t,n){It(e)?e.appendChild(t,n):t.appendChild(n)}function ao(e,t,n,s,i){null!==s?ro(e,t,n,s,i):oo(e,t,n)}function lo(e,t){return It(e)?e.parentNode(t):t.parentNode}
3function co(e,t,n){return po(e,t,n)}function uo(e,t,n){return 40&e.type?Ft(e,n):null}let ho,po=uo;function fo(e,t){po=e,ho=t}function go(e,t,n,s){const i=so(e,s,t),r=t[11],o=co(s.parent||t[6],s,t);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)ao(r,i,n[a],o,!1);else ao(r,i,n,o,!1);void 0!==ho&&ho(r,s,t,n,i)}function mo(e,t){if(null!==t){const n=t.type;if(3&n)return Ft(t,e);if(4&n)return bo(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return mo(e,n);{const n=e[t.index];return pt(n)?bo(-1,n):At(n)}}if(32&n){return zr(t,e)()||At(e[t.index])}{const n=yo(e,t);if(null!==n){if(Array.isArray(n))return n[0];const t=Ur(e[16]);return mo(t,n)}return mo(e,t.next)}}return null}function yo(e,t){if(null!==t){const n=e[16][6],s=t.projection;return n.projection[s]}return null}function bo(e,t){const n=10+e+1;if(n<t.length){const e=t[n],s=e[1].firstChild;if(null!==s)return mo(e,s)}return t[7]}function vo(e,t,n){const s=lo(e,t);s&&function(e,t,n,s){It(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}function _o(e,t,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;if(o&&0===t&&(a&&Fr(At(a),s),n.flags|=4),64!=(64&n.flags))if(8&l)_o(e,t,n.child,s,i,r,!1),Kr(t,e,i,a,r);else if(32&l){const o=zr(n,s);let l;for(;l=o();)Kr(t,e,i,l,r);Kr(t,e,i,a,r)}else 16&l?Co(e,t,s,n,i,r):Kr(t,e,i,a,r);n=o?n.projectionNext:n.next}}function wo(e,t,n,s,i,r){_o(n,s,e.firstChild,t,i,r,!1)}function Co(e,t,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){Kr(t,e,i,a[l],r)}else{_o(e,t,a,o[3],i,r,!0)}}function xo(e,t,n){It(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function ko(e,t,n){It(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function So(e,t,n){let s=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===s||e.charCodeAt(i+n)<=32)return i}n=i+1}}function To(e,t,n){let s=0;for(;s<e.length;){let i=e[s++];
vendor: 5,911 bytes, line 3
3if(n&&"class"===i){if(i=e[s],-1!==So(i.toLowerCase(),t,0))return!0}else if(1===i){for(;s<e.length&&"string"==typeof(i=e[s++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Do(e){return 4===e.type&&"ng-template"!==e.value}function Eo(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Oo(e,t,n){let s=4;const i=e.attrs||[],r=function(e){for(let t=0;t<e.length;t++){if($n(e[t]))return t}return e.length}(i);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!Eo(e,l,n)||""===l&&1===t.length){if(Io(s))return!1;o=!0}}else{const c=8&s?l:t[++a];if(8&s&&null!==e.attrs){if(!To(e.attrs,c,n)){if(Io(s))return!1;o=!0}continue}const u=Po(8&s?"class":l,i,Do(e),n);if(-1===u){if(Io(s))return!1;o=!0;continue}if(""!==c){let e;e=u>r?"":i[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==So(t,c,0)||2&s&&c!==e){if(Io(s))return!1;o=!0}}}}else{if(!o&&!Io(s)&&!Io(l))return!1;if(o&&Io(l))continue;o=!1,s=l|1&s}}return Io(s)||o}function Io(e){return 0==(1&e)}function Po(e,t,n,s){if(null===t)return-1;let i=0;if(s||!n){let n=!1;for(;i<t.length;){const s=t[i];if(s===e)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const s=e[n];if("number"==typeof s)return-1;if(s===t)return n;n++}return-1}(t,e)}function Ao(e,t,n=!1){for(let s=0;s<t.length;s++)if(Oo(e,t[s],n))return!0;return!1}function Mo(e,t){e:for(let n=0;n<t.length;n++){const s=t[n];if(e.length===s.length){for(let t=0;t<e.length;t++)if(e[t]!==s[t])continue e;return!0}}return!1}function Fo(e,t){return e?":not("+t.trim()+")":t}function Ro(e){let t=e[0],n=1,s=2,i="",r=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&s){const t=e[++n];i+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||Io(o)||(t+=Fo(r,i),i=""),s=o,r=r||!Io(s);n++}return""!==i&&(t+=Fo(r,i)),t}const No={};function Lo(e){Vo(Qt(),Zt(),Dn()+e,rn())}function Vo(e,t,n,s){if(!s){if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Fn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Rn(t,s,0,n)}}En(n)}function jo(e,t){return e<<17|t<<2}function Bo(e){return e>>17&32767}function $o(e){return 2==(2&e)}function zo(e){return 2|e}function Uo(e){return(131068&e)>>2}function Ho(e,t){return-131069&e|t<<2}function qo(e){return 1==(1&e)}function Wo(e){return 1|e}const Ko=Promise.resolve(null);function Go(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=e.data[r];yn(i),n.contentQueries(2,t[r],r)}}}function Zo(e,t,n,s,i,r,o,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|s,Ut(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=r,u[16]=2==t.type?e[16]:u,u}function Qo(e,t,n,s,i){let r=e.data[t];if(null===r)r=Yo(e,t,n,s,i),qt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=s,r.attrs=i;const e=en();r.injectorIndex=null===e?-1:e.injectorIndex}return tn(r,!0),r}function Yo(e,t,n,s,i){const r=Xt(),o=nn(),a=o?r:r&&r.parent,l=e.data[t]=function(e,t,n,s,i,r){let o=t?t.injectorIndex:-1;const a={type:n,index:s,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};0;return a}(0,a,n,t,s,i);return null===e.firstChild&&(e.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}function Jo(e,t,n,s){if(0===n)return-1;const i=t.length;for(let r=0;r<n;r++)t.push(s),e.blueprint.push(s),e.data.push(null);return i}function Xo(e,t,n){_n(t);try{const s=e.viewQuery;null!==s&&Ma(1,s,n);const i=e.template;null!==i&&na(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Go(e,t),e.staticViewQueries&&Ma(2,e.viewQuery,n);const r=e.components;null!==r&&function(e,t){for(let n=0;n<t.length;n++)Da(e,t[n])}(t,r)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,Sn()}}function ea(e,t,n,s){const i=t[2];if(256==(256&i))return;_n(t);const r=rn();try{Ut(t),cn(e.bindingStartIndex),null!==n&&na(e,t,n,2,s);const o=3==(3&i);if(!r)if(o){const n=e.preOrderCheckHooks;null!==n&&Fn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Rn(t,n,0,null),Nn(t,0)}if(function(e){for(let t=Hr(e);null!==t;t=qr(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],s=n[3];0==(1024&n[2])&&Ht(s,1),n[2]|=1024}}}(t),function(e){for(let t=Hr(e);null!==t;t=qr(t))for(let e=10;e<t.length;e++){const n=t[e],s=n[1];$t(n)&&ea(s,n,s.template,n[8])}}(t),null!==e.contentQueries&&Go(e,t),!r)if(o){const n=e.contentCheckHooks;null!==n&&Fn(t,n)}else{const n=e.contentHooks;null!==n&&Rn(t,n,1),Nn(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const s=n[e];if(s<0)En(~s);else{const i=s,r=n[++e],o=n[++e];pn(r,i),o(2,t[i])}}}finally{En(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Sa(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Ma(2,l,s),!r)if(o){const n=e.viewCheckHooks;null!==n&&Fn(t,n)}else{const n=e.viewHooks;null!==n&&Rn(t,n,2),Nn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),r||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ht(t[3],-1))}finally{Sn()}}function ta(e,t,n,s){const i=t[10],r=!rn(),o=Bt(t);try{r&&!o&&i.begin&&i.begin(),o&&Xo(e,t,s),ea(e,t,n,s)}finally{r&&!o&&i.end&&i.end()}}function na(e,t,n,s,i){const r=Dn(),o=2&s;try{En(-1),o&&t.length>20&&Vo(e,t,20,rn());
3Tt(o?2:0,i),n(s,i)}finally{En(r);Tt(o?3:1,i)}}function sa(e,t,n){if(ft(t)){const s=t.directiveStart,i=t.directiveEnd;for(let t=s;t<i;t++){const s=e.data[t];s.contentQueries&&s.contentQueries(1,n[t],t)}}}function ia(e,t,n){Wt()&&(function(e,t,n,s){const i=n.directiveStart,r=n.directiveEnd;e.firstCreatePass||Yn(n,t);Fr(s,t);const o=n.initialInputs;for(let a=i;a<r;a++){const s=e.data[a],r=yt(s);r&&va(t,n,s);const l=cs(t,e,a,n);if(Fr(l,t),null!==o&&Ca(t,a-i,l,s,n,o),r){Lt(n.index,t)[8]=l}}}(e,t,n,Ft(n,t)),128==(128&n.flags)&&function(e,t,n){const s=n.directiveStart,i=n.directiveEnd,r=(e.firstCreatePass,n.index),o=qt.lFrame.currentDirectiveIndex;try{En(r);for(let n=s;n<i;n++){const s=e.data[n],i=t[n];fn(n),null===s.hostBindings&&0===s.hostVars&&null===s.hostAttrs||fa(s,i)}}finally{En(-1),fn(o)}}(e,t,n))}function ra(e,t,n=Ft){const s=t.localNames;if(null!==s){let i=t.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(t,e):e[o];e[i++]=a}}}function oa(e){const t=e.tView;if(null===t||t.incompleteFirstPass){const t=null;return e.tView=aa(1,t,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts)}return t}function aa(e,t,n,s,i,r,o,a,l,c){const u=20+s,h=u+i,d=function(e,t){const n=[];for(let s=0;s<t;s++)n.push(s<e?null:No);return n}(u,h),p="function"==typeof c?c():c,f=d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,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};return f}function la(e,t,n){if(It(e)){const s=n===Re.ShadowDom;return e.selectRootElement(t,s)}let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}function ca(e,t,n,s){const i=Ra(t);null===n?i.push(s):(i.push(n),e.firstCreatePass&&Na(e).push(s,i.length-1))}function ua(e,t,n){for(let s in e)if(e.hasOwnProperty(s)){n=null===n?{}:n;const i=e[s];n.hasOwnProperty(s)?n[s].push(t,i):n[s]=[t,i]}return n}function ha(e,t,n,s,i,r,o,a){const l=Ft(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[s])?(ja(e,n,c,s,i),gt(t)&&function(e,t){const n=Lt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type?(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=o?o(i,t.value||"",s):i,It(r)?r.setProperty(l,s,i):zn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i)):t.type}function da(e,t,n,s){let i=!1;if(Wt()){const r=function(e,t,n){const s=e.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];Ao(n,o.selectors,!1)&&(i||(i=[]),ts(Yn(n,t),e,o.type),yt(o)?(ga(e,n),i.unshift(o)):i.push(o))}return i}(e,t,n),o=null===s?null:{"":-1};if(null!==r){i=!0,ya(n,e.data.length,r.length);for(let e=0;e<r.length;e++){const t=r[e];t.providersResolver&&t.providersResolver(t)}let s=!1,a=!1,l=Jo(e,t,r.length,null);for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Un(n.mergedAttrs,c.hostAttrs),ba(e,n,t,l,c),ma(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),s=!0),a||!u.ngOnChanges&&!u.ngDoC
vendor: 4,349 bytes, line 3
3heck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveStart,s=t.directiveEnd,i=e.data,r=t.attrs,o=[];let a=null,l=null;for(let c=n;c<s;c++){const e=i[c],n=e.inputs,s=null===r||Do(t)?null:xa(n,r);o.push(s),a=ua(n,c,a),l=ua(e.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(e,n)}o&&function(e,t,n){if(t){const s=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new ue("301",`Export of name '${t[e+1]}' not found!`);s.push(t[e],i)}}}(n,s,o)}return n.mergedAttrs=Un(n.mergedAttrs,n.attrs),i}function pa(e,t,n,s,i,r){const o=r.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const r=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(s,i,o)}}function fa(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ga(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ma(e,t,n){if(n){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)n[t.exportAs[s]]=e;yt(t)&&(n[""]=e)}}function ya(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ba(e,t,n,s,i){e.data[s]=i;const r=i.factory||(i.factory=bt(i.type)),o=new jn(r,yt(i),null);e.blueprint[s]=o,n[s]=o,pa(e,t,0,s,Jo(e,n,i.hostVars,No),i)}function va(e,t,n){const s=Ft(t,e),i=oa(n),r=e[10],o=Ea(e,Zo(e,i,null,n.onPush?64:16,s,t,r,r.createRenderer(s,n),null,null));e[t.index]=o}function _a(e,t,n,s,i,r){const o=Ft(e,t);wa(t[11],o,r,e.value,n,s,i)}function wa(e,t,n,s,i,r,o){if(null==r)It(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const a=null==o?de(r):o(r,s||"",i);It(e)?e.setAttribute(t,i,a,n):n?t.setAttributeNS(n,i,a):t.setAttribute(i,a)}}function Ca(e,t,n,s,i,r){const o=r[t];if(null!==o){const e=s.setInput;for(let t=0;t<o.length;){const i=o[t++],r=o[t++],a=o[t++];null!==e?s.setInput(n,a,i,r):n[r]=a}}}function xa(e,t){let n=null,s=0;for(;s<t.length;){const i=t[s];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[s+1])),s+=2}else s+=2;else s+=4}return n}function ka(e,t,n,s){const i=new Array(e,!0,!1,t,null,0,s,n,null,null);return i}function Sa(e,t){const n=Lt(t,e);if($t(n)){const e=n[1];80&n[2]?ea(e,n,e.template,n[8]):n[5]>0&&Ta(n)}}function Ta(e){for(let n=Hr(e);null!==n;n=qr(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];ea(e,t,e.template,t[8])}else t[5]>0&&Ta(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const s=Lt(t[n],e);$t(s)&&s[5]>0&&Ta(s)}}function Da(e,t){const n=Lt(t,e),s=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(s,n),Xo(s,n,n[8])}function Ea(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Oa(e){for(;e;){e[2]|=64;const t=Ur(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Ia(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],s=jt(n),i=s[1];ta(i,s,i.template,n)}}function Pa(e,t,n){const s=t[10];s.begin&&s.begin();try{ea(e,t,e.template,n)}catch(i){throw Va(t,i),i}finally{s.end&&s.end()}}function Aa(e){Ia(e[8])}function Ma(e,t,n){yn(0),t(e,n)}const Fa=Ko;function Ra(e){return e[7]||(e[7]=[])}function Na(e){return e.cleanup||(e.cleanup=[])}function La(e,t,n){return(null===e||yt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Va(e,t){const n=e[9],s=n?n.get(Ir,null):null;s&&s.handleError(t)}function ja(e,t,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function Ba(e,t,n){const s=Mt(t,e);Zr(e[11],s,n)}function $a(e,t,n){let s=n?e.styles:null,i=n?e.classes:null,r=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];if("number"==typeof e)r=e;else if(1==r)i=re(i,e);else if(2==r){s=re(s,e+": "+t[++o]+";")}}n?e.styles=s:e.stylesWithoutHost=s,n?e.classes=i:e.classesWithoutHost=i}const za=new ks("INJECTOR",-1);class Ua{get(e,t=Xs){if(t===Xs){const t=new Error(`NullInjectorError: No provider for ${ie(e)}!`);throw t.name="NullInjectorError",t}return t}}const Ha=new ks("Set Injector scope."),qa={},Wa={},Ka=[];let Ga;function Za(){return void 0===Ga&&(Ga=new Ua),Ga}
3function Qa(e,t=null,n=null,s){return new Ya(e,n,t||Za(),s)}class Ya{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&Vs(t,n=>this.processProvider(n,e,t)),Vs([e],e=>this.processInjectorType(e,[],i)),this.records.set(za,el(void 0,this));const r=this.records.get(Ha);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof e?null:ie(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Xs,n=Ee.Default){this.assertNotDestroyed();const s=si(this);try{if(!(n&Ee.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof ks)&&we(e);t=n&&this.injectableDefInScope(n)?el(Ja(e),qa):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}const r=n&Ee.Self?Za():this.parent;return t=n&Ee.Optional&&t===Xs?null:t,r.get(e,t)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(ie(e)),s)throw r;return ci(r,e,"R3InjectorError",this.source)}throw r}finally{si(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ie(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=le(e)))return!1;let s=xe(e);const i=null==s&&e.ngModule||void 0,r=void 0===i?e:i;const o=-1!==n.indexOf(r);if(void 0!==i&&(s=xe(i)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(r);try{Vs(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:s}=e[t];Vs(s,e=>this.processProvider(e,n,s||Ka))}}this.injectorDefTypes.add(r);const a=bt(r)||(()=>new r);this.records.set(r,el(a,qa));const l=s.providers;if(null!=l&&!o){const t=e;Vs(l,e=>this.processProvider(e,t,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let s=nl(e=le(e))?e:le(e&&e.provide);const i=function(e,t,n){if(tl(e))return el(void 0,e.useValue);return el(Xa(e,t,n),qa)}
3(e,t,n);if(nl(e)||!0!==e.multi){this.records.get(s);0}else{let t=this.records.get(s);t||(t=el(void 0,qa,!0),t.factory=()=>ai(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,i)}hydrate(e,t){var n;return t.value===qa&&(t.value=Wa,t.value=t.factory()),"object"==typeof t.value&&t.value&&(null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Ja(e){const t=we(e),n=null!==t?t.factory:bt(e);if(null!==n)return n;if(e instanceof ks)throw new Error(`Token ${ie(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=$s(t,"?");throw new Error(`Can't resolve all parameters for ${ie(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[ke]||e[Te]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Xa(e,t,n){let s;if(nl(e)){const t=le(e);return bt(t)||Ja(t)}if(tl(e))s=()=>le(e.useValue);else if((i=e)&&i.useFactory)s=()=>e.useFactory(...ai(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>ri(le(e.useExisting));else{const t=le(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return bt(t)||Ja(t);s=()=>new t(...ai(e.deps))}var i;return s}function el(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tl(e){return null!==e&&"object"==typeof e&&ti in e}function nl(e){return"function"==typeof e}const sl=function(e,t,n){return function(e,t=null,n=null,s){const i=Qa(e,t,n,s);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};class il{static create(e,t){return Array.isArray(e)?sl(e,t,""):sl(e.providers,e.parent,e.name||"")}}il.THROW_IF_NOT_FOUND=Xs,il.NULL=new Ua,il.\u0275prov=ve({token:il,providedIn:"any",factory:()=>ri(za)}),il.__NG_ELEMENT_ID__=-1;function rl(e,t,n,s,i,r){const o=n[1];n[20]=e;const a=Qo(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&($a(a,l,!0),null!==e&&(Bn(i,e,l),null!==a.classes&&ko(i,e,a.classes),null!==a.styles&&xo(i,e,a.styles)));const c=s.createRenderer(e,t),u=Zo(n,oa(t),null,t.onPush?64:16,n[20],a,s,c,r||null,null);return o.firstCreatePass&&(ts(Yn(a,n),o,t.type),ga(o,a),ya(a,n.length,1)),Ea(n,u),n[20]=u}function ol(e,t,n,s,i){const r=n[1],o=function(e,t,n){const s=Jt();if(e.firstCreatePass){n.providersResolver&&n.providersResolver(n);ba(e,s,t,Jo(e,t,1,null),n)}const i=cs(t,e,s.directiveStart,s);Fr(i,t);const r=Ft(s,t);return r&&Fr(r,t),i}(r,n,t);if(s.components.push(o),e[8]=o,i&&i.forEach(e=>e(o,t)),t.contentQueries){const e=Jt();t.contentQueries(1,o,e.directiveStart)}const a=Jt();if(r.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){En(a.index);pa(n[1],a,0,a.directiveStart,a.directiveEnd,t),fa(t,o)}return o}function al(e,t){return{components:[],scheduler:e||Rr,clean:Fa,playerHandler:t||null,flags:0}}function ll(e,t){const n=jt(e),s=n[1],i=Jt();Mn(s,i)}function cl(e){return Object.getPrototypeOf(e.prototype).constructor}function ul(e){let t=cl(e.type),n=!0;const s=[e];for(;t;){let i;if(yt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){s.push(i);const t=e;t.inputs=hl(e.inputs),t.declaredInputs=hl(e.declaredInputs),t.outputs=hl(e.outputs);const n=i.hostBindings;n&&fl(e,n);const r=i.viewQuery,o=i.contentQueries;if(r&&dl(e,r),o&&pl(e,o),se(e.inputs,i.inputs),se(e.declaredInputs,i.declaredInputs),se(e.outputs,i.outputs),yt(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let s=0;s<t.length;s++){const i=t[s];i&&i.ngInherit&&i(e),i===ul&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let s=e.length-1;s>=0;s--){const i=e[s];i.hostVars=t+=i.hostVars,i.hostAttrs=Un(i.hostAttrs,n=Un(n,i.hostAttrs))}}(s)}function hl(e){return e===$e?{}:e===Ue?[]:e}function dl(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function pl(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,i)=>{t(e,s,i),n(e,s,i)}:t}function fl(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}const gl=["providersResolver"],ml=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function yl(e){let t,n=cl(e.type);t=yt(e)?n.\u0275cmp:n.\u0275dir;const s=e;for(const i of gl)s[i]=t[i];if(yt(t))for(const i of ml)s[i]=t[i]}let bl=null;function vl(){if(!bl){const e=Be.Symbol;if(e&&e.iterator)bl=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(bl=n)}}}return bl}class _l{constructor(e){this.wrapped=e}static wrap(e){return new _l(e)}static unwrap(e){return _l.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof _l}}function wl(e){return!!Cl(e)&&(Array.isArray(e)||!(e instanceof Map)&&vl()in e)}function Cl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xl(e,t,n){return e[t]=n}function kl(e,t){return e[t]}function Sl(e,t,n){const s=e[t];return!Object.is(s,n)&&(e[t]=n,!0)}function Tl(e,t,n,s){const i=Sl(e,t,n);return Sl(e,t+1,s)||i}function Dl(e,t,n,s,i){const r=Tl(e,t,n,s);return Sl(e,t+2,i)||r}function El(e,t,n,s,i,r){const o=Tl(e,t,n,s);return Tl(e,t+2,i,r)||o}function Ol(e,t,n,s){const i=Zt(),r=un();if(Sl(i,r,t)){Qt();const r=On();_a(r,i,e,t,n,s)}return Ol}function Il(e,t){let n=!1,s=ln();for(let r=1;r<t.length;r+=2)n=Sl(e,s++,t[r])||n;if(cn(s),!n)return No;let i=t[0];for(let r=1;r<t.length;r+=2)i+=de(t[r])+t[r+1];return i}function Pl(e,t,n,s){return Sl(e,un(),n)?t+de(n)+s:No}function Al(e,t,n,s,i,r){const o=Tl(e,ln(),n,i);return hn(2),o?t+de(n)+s+de(i)+r:No}function Ml(e,t,n,s,i,r,o,a){const l=Dl(e,ln(),n,i,o);return hn(3),l?t+de(n)+s+de(i)+r+de(o)+a:No}function Fl(e,t,n,s,i,r,o,a,l,c){const u=El(e,ln(),n,i,o,l);return hn(4),u?t+de(n)+s+de(i)+r+de(o)+a+de(l)+c:No}function Rl(e,t,n,s,i,r,o,a,l,c,u,h){const d=ln();let p=El(e,d,n,i,o,l);return p=Sl(e,d+4,u)||p,hn(5),p?t+de(n)+s+de(i)+r+de(o)+a+de(l)+c+de(u)+h:No}function Nl(e,t,n,s,i,r,o,a,l,c,u,h,d,p){const f=ln();let g=El(e,f,n,i,o,l);return g=Tl(e,f+4,u,d)||g,hn(6),g?t+de(n)+s+de(i)+r+de(o)+a+de(l)+c+de(u)+h+de(d)+p:No}function Ll(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g){const m=ln();let y=El(e,m,n,i,o,l);return y=Dl(e,m+4,u,d,f)||y,hn(7),y?t+de(n)+s+de(i)+r+de(o)+a+de(l)+c+de(u)+h+de(d)+p+de(f)+g:No}function Vl(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y){const b=ln();let v=El(e,b,n,i,o,l);return v=El(e,b+4,u,d,f,m)||v,hn(8),v?t+de(n)+s+de(i)+r+de(o)+a+de(l)+c+de(u)+h+de(d)+p+de(f)+g+de(m)+y:No}function jl(e,t,n,s,i,r){const o=Zt(),a=Pl(o,t,n,s);if(a!==No){const t=On();_a(t,o,e,a,i,r)}return jl}function Bl(e,t,n,s,i,r,o,a){const l=Zt(),c=Al(l,t,n,s,i,r);if(c!==No){const t=On();_a(t,l,e,c,o,a)}return Bl}function $l(e,t,n,s,i,r,o,a,l,c){const u=Zt(),h=Ml(u,t,n,s,i,r,o,a);if(h!==No){const t=On();_a(t,u,e,h,l,c)}return $l}function zl(e,t,n,s,i,r,o,a,l,c,u,h){const d=Zt(),p=Fl(d,t,n,s,i,r,o,a,l,c);if(p!==No){const t=On();_a(t,d,e,p,u,h)}return zl}function Ul(e,t,n,s,i,r,o,a,l,c,u,h,d,p){const f=Zt(),g=Rl(f,t,n,s,i,r,o,a,l,c,u,h);if(g!==No){const t=On();_a(t,f,e,g,d,p)}return Ul}function Hl(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g){const m=Zt(),y=Nl(m,t,n,s,i,r,o,a,l,c,u,h,d,p);if(y!==No){const t=On();_a(t,m,e,y,f,g)}return Hl}function ql(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y){const b=Zt(),v=Ll(b,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g);if(v!==No){const t=On();_a(t,b,e,v,m,y)}return ql}function Wl(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,b,v){const _=Zt(),w=Vl(_,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y);if(w!==No){const t=On();_a(t,_,e,w,b,v)}return Wl}function Kl(e,t,n,s){const i=Zt(),r=Il(i,t);if(r!==No){const t=On();_a(t,i,e,r,n,s)}return Kl}function Gl(e,t,n,s,i,r,o,a){const l=Zt(),c=Qt(),u=e+20,h=c.firstCreatePass?function(e,t,n,s,i,r,o,a,l){const c=t.consts,u=Qo(t,e,4,o||null,zt(c,a));da(t,n,u,zt(c,l)),Mn(t,u);const h=u.tViews=aa(2,u,s,i,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,s,i,r,o):c.data[u];tn(h,!1);const d=l[11].createComment("");go(c,l,d,h),Fr(d,l),Ea(l,l[u]=ka(d,l,d,h)),mt(h)&&ia(c,l,h),null!=o&&ra(l,h,a)}function Zl(e){return Nt(qt.lFrame.contextLView,20+e)}const Ql={"\u0275\u0275defineInjectable":ve,"\u0275\u0275defineInjector":_e,"\u0275\u0275inject":ri,"\u0275\u0275invalidFactoryDep":oi};const Yl=ne({provide:String,useValue:ne});function Jl(e){return void 0!==e.useClass}function Xl(e){return void 0!==e.useFactory}function ec(e,t){const n=t||{providedIn:null},s={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Jl(n)||Xl(n))&&void 0!==n.deps&&(s.userDeps=vi(n.deps)),Jl(n)?s.useClass=le
3(n.useClass):!function(e){return Yl in e}(n)?Xl(n)?s.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(s.useExisting=le(n.useExisting)):s.useValue=le(n.useValue),s}ne({provide:String,useValue:ne});vs("Injectable",void 0,void 0,void 0,(e,t)=>tc(e,t));const tc=function(e,t){let n=null,s=null;e.hasOwnProperty(ke)||Object.defineProperty(e,ke,{get:()=>(null===n&&(n=Fs().compileInjectable(Ql,`ng:///${e.name}/\u0275prov.js`,ec(e,t))),n)}),e.hasOwnProperty(Ze)||Object.defineProperty(e,Ze,{get:()=>{if(null===s){const n=ec(e,t),i=Fs();s=i.compileFactory(Ql,`ng:///${e.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:bi(e),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return s},configurable:!0})};function nc(e){if(e.length>1){return" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>ie(e.token)).join(" -> ")+")"}return""}function sc(e,t,n,s){const i=[t],r=n(i),o=s?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,s=Error(n);return s.ngOriginalError=t,s}(r,s):Error(r);return o.addKey=ic,o.keys=i,o.injectors=[e],o.constructResolvingMessage=n,o.ngOriginalError=s,o}function ic(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function rc(e,t){const n=[];for(let s=0,i=t.length;s<i;s++){const e=t[s];e&&0!=e.length?n.push(e.map(ie).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+ie(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ie(e)+"' is decorated with Injectable.")}function oc(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class ac{constructor(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=ie(this.token)}static get(e){return lc.get(le(e))}static get numberOfKeys(){return lc.numberOfKeys}}const lc=new class{constructor(){this._allKeys=new Map}get(e){if(e instanceof ac)return e;if(this._allKeys.has(e))return this._allKeys.get(e);const t=new ac(e,ac.numberOfKeys);return this._allKeys.set(e,t),t}get numberOfKeys(){return this._allKeys.size}};const cc=new class{constructor(e){this.reflectionCapabilities=e}updateCapabilities(e){this.reflectionCapabilities=e}factory(e){return this.reflectionCapabilities.factory(e)}parameters(e){return this.reflectionCapabilities.parameters(e)}annotations(e){return this.reflectionCapabilities.annotations(e)}propMetadata(e){return this.reflectionCapabilities.propMetadata(e)}hasLifecycleHook(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}getter(e){return this.reflectionCapabilities.getter(e)}setter(e){return this.reflectionCapabilities.setter(e)}method(e){return this.reflectionCapabilities.method(e)}importUri(e){return this.reflectionCapabilities.importUri(e)}resourceUri(e){return this.reflectionCapabilities.resourceUri(e)}resolveIdentifier(e,t,n,s){return this.reflectionCapabilities.resolveIdentifier(e,t,n,s)}resolveEnum(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}(new Qs);class uc{constructor(e,t,n){this.key=e,this.optional=t,this.visibility=n}static fromKey(e){return new uc(e,!1,null)}}const hc=[];class dc{constructor(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class pc{constructor(e,t){this.factory=e,this.dependencies=t}}function fc(e){let t,n;if(e.useClass){const s=le(e.useClass);t=cc.factory(s),n=bc(s)}else e.useExisting?(t=e=>e,n=[uc.fromKey(ac.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>vc(e,t,n))}return bc(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=hc);return new pc(t,n)}function gc(e){return new dc(ac.get(e.provide),[fc(e)],e.multi||!1)}function mc(e){const t=function(e,t){for(let n=0;n<e.length;n++){const s=e[n],i=t.get(s.key.id);if(i){if(s.multiProvider!==i.multiProvider)throw oc(i,s);if(s.multiProvider)for(let e=0;e<s.resolvedFactories.length;e++)i.resolvedFactories.push(s.resolvedFactories[e]);else t.set(s.key.id,s)}else{let e;e=s.multiProvider?new dc(s.key,s.resolvedFactories.slice(),s.multiProvider):s,t.set(s.key.id,e)}}return t}
3(yc(e,[]).map(gc),new Map);return Array.from(t.values())}function yc(e,t){return e.forEach(e=>{if(e instanceof Rs)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`);yc(e,t)}}),t}function bc(e){const t=cc.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw rc(e,t);return t.map(n=>vc(e,n,t))}function vc(e,t,n){let s=null,i=!1;if(!Array.isArray(t))return _c(t instanceof hi?t.token:t,i,null);let r=null;for(let o=0;o<t.length;++o){const e=t[o];e instanceof Rs?s=e:e instanceof hi?s=e.token:e instanceof di?i=!0:e instanceof pi||e instanceof fi?r=e:e instanceof ks&&(s=e)}if(s=le(s),null!=s)return _c(s,i,r);throw rc(e,n)}function _c(e,t,n){return new uc(ac.get(e),t,n)}const wc={};class Cc{static resolve(e){return mc(e)}static resolveAndCreate(e,t){const n=Cc.resolve(e);return Cc.fromResolvedProviders(n,t)}static fromResolvedProviders(e,t){return new xc(e,t)}}class xc{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let s=0;s<n;s++)this.keyIds[s]=e[s].key.id,this.objs[s]=wc}get(e,t=Xs){return this._getByKey(ac.get(e),null,t)}resolveAndCreateChild(e){const t=Cc.resolve(e);return this.createChildFromResolved(t)}createChildFromResolved(e){const t=new xc(e);return t.parent=this,t}resolveAndInstantiate(e){return this.instantiateResolved(Cc.resolve([e])[0])}instantiateResolved(e){return this._instantiateProvider(e)}getProviderAtIndex(e){if(e<0||e>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,sc(t,n,function(e){return`Cannot instantiate cyclic dependency!${nc(e)}`});var t,n;return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])}_instantiate(e,t){const n=t.factory;let s,i;try{s=t.dependencies.map(e=>this._getByReflectiveDependency(e))}catch(l){throw l.addKey&&l.addKey(this,e.key),l}try{i=n(...s)}catch(l){throw r=this,o=l,l.stack,a=e.key,sc(r,a,function(e){const t=ie(e[0].token);return`${o.message}: Error during instantiation of ${t}!${nc(e)}.`},o)}var r,o,a;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:Xs)}_getByKey(e,t,n){return e===xc.INJECTOR_KEY?this:t instanceof pi?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)}_getObjByKeyId(e){for(let t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===wc&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return wc}_throwOrNull(e,t){if(t!==Xs)return t;throw function(e,t){return sc(e,t,function(e){return`No provider for ${ie(e[0].token)}!${nc(e)}`})}(this,e)}_getByKeySelf(e,t){const n=this._getObjByKeyId(e.id);return n!==wc?n:this._throwOrNull(e,t)}_getByKeyDefault(e,t,n){let s;for(s=n instanceof fi?this.parent:this;s instanceof xc;){const t=s,n=t._getObjByKeyId(e.id);if(n!==wc)return n;s=t.parent}return null!==s?s.get(e.token,t):this._throwOrNull(e,t)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let s=0;s<e._providers.length;++s)n[s]=t(e.getProviderAtIndex(s));return n}(this,e=>' "'+e.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}function kc(e,t=Ee.Default){const n=Zt();if(null===n)return ri(e,t);return is(Jt(),n,le(e),t)}function Sc(){throw new Error("invalid")}function Tc(e,t,n){const s=Zt(),i=un();if(Sl(s,i,t)){const i=Qt(),r=On();ha(i,r,s,e,t,s[11],n,!1)}return Tc}function Dc(e,t,n,s,i){const r=i?"class":"style";ja(e,n,t.inputs[r],r,s)}function Ec(e,t,n,s,i,r,o){const a=t.consts,l=Qo(t,e,2,i,zt(a,r));da(t,n,l,zt(a,o));return null!==l.attrs&&$a(l,l.attrs,!1),null!==l.mergedAttrs&&$a(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}function Oc(e,t,n,s){const i=Zt(),r=Qt(),o=20+e,a=i[11],l=i[o]=Yr(a,t,qt.lFrame.currentNamespace),c=r.firstCreatePass?Ec(o,r,i,0,t,n,s):r.data[o];tn(c,!0);const u=c.mergedAttrs;null!==u&&Bn(a,l,u);const h=c.classes;null!==h&&ko(a,l,h);const d=c.styles;null!==d&&xo(a,l,d),64!=(64&c.flags)&&go(r,i,l,c),0===qt.lFrame.elementDepthCount&&Fr(l,i),qt.lFrame.elementDepthCount++,mt(c)&&(ia(r,i,c),sa(r,c,i)),null!==s&&ra(i,c)}function Ic(){let e=Jt();nn()?sn():(e=e.parent,tn(e,!1));const t=e;qt.lFrame.elementDepthCount--;const n=Qt();n.firstCreatePass&&(Mn(n,e),ft(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Dc(n,t,Zt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Dc(n,t,Zt(),t.stylesWithoutHost,!1)}function Pc(e,t,n,s){Oc(e,t,n,s),Ic()}function Ac(e,t,n){const s=Zt(),i=Qt(),r=e+20,o=i.firstCreatePass?function(e,t,n,s,i){const r=t.consts,o=zt(r,s),a=Qo(t,e,8,"ng-container",o);return null!==o&&$a(a,o,!0),da(t,n,a,zt(r,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(r,i,s,t,n):i.data[r];tn(o,!0);const a=s[r]=s[11].createComment("");go(i,s,a,o),Fr(a,s),mt(o)&&(ia(i,s,o),sa(i,o,s)),null!=n&&ra(s,o)}function Mc(){let e=Jt();const t=Qt();nn()?sn():(e=e.parent,tn(e,!1)),t.firstCreatePass&&(Mn(t,e),ft(e)&&t.queries.elementEnd(e))}function Fc(e,t,n){Ac(e,t,n),Mc()}function Rc(){return Zt()}function Nc(e){return!!e&&"function"==typeof e.then}function Lc(e){return!!e&&"function"==typeof e.subscribe}xc.INJECTOR_KEY=ac.get(il);const Vc=Lc;function jc(e,t,n=!1,s){const i=Zt(),r=Qt(),o=Jt();return $c(r,i,i[11],o,e,t,n,s),jc}function Bc(e,t,n=!1,s){const i=Jt(),r=Zt(),o=Qt();
3return $c(o,r,La(gn(o.data),i,r),i,e,t,n,s),Bc}function $c(e,t,n,s,i,r,o=!1,a){const l=mt(s),c=e.firstCreatePass&&Na(e),u=t[8],h=Ra(t);let d=!0;if(3&s.type){const p=Ft(s,t),f=a?a(p):$e,g=f.target||p,m=h.length,y=a?e=>a(At(e[s.index])).target:s.index;if(It(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const i=e.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const e=i[r];if(e===n&&i[r+1]===s){const e=t[7],n=i[r+2];return e.length>n?e[n]:null}"string"==typeof e&&(r+=2)}return null}(e,t,i,s.index)),null!==o){(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1}else{r=Uc(s,t,u,r,!1);const e=n.listen(f.name||g,i,r);h.push(r,e),c&&c.push(i,y,m,m+1)}}else r=Uc(s,t,u,r,!0),g.addEventListener(i,r,o),h.push(r),c&&c.push(i,y,m,o)}else r=Uc(s,t,u,r,!1);const p=s.outputs;let f;if(d&&null!==p&&(f=p[i])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=f[n],o=f[n+1],a=t[e],l=a[o];0;const u=l.subscribe(r),d=h.length;h.push(r,u),c&&c.push(i,s.index,d,-(d+1))}}}function zc(e,t,n,s){try{return Tt(6,t,n),!1!==n(s)}catch(i){return Va(e,i),!1}finally{Tt(7,t,n)}}function Uc(e,t,n,s,i){return function r(o){if(o===Function)return s;const a=2&e.flags?Lt(e.index,t):t;0==(32&t[2])&&Oa(a);let l=zc(t,n,s,o),c=r.__ngNextListenerFn__;for(;c;)l=zc(t,n,c,o)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Hc(e=1){return Tn(e)}function qc(e,t){let n=null;const s=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let i=0;i<t.length;i++){const r=t[i];if("*"!==r){if(null===s?Ao(e,r,!0):Mo(s,r))return i}else n=i}return n}function Wc(e){const t=Zt()[16][6];if(!t.projection){const n=e?e.length:1,s=t.projection=$s(n,null),i=s.slice();let r=t.child;for(;null!==r;){const t=e?qc(r,e):0;null!==t&&(i[t]?i[t].projectionNext=r:s[t]=r,i[t]=r),r=r.next}}}function Kc(e,t=0,n){const s=Zt(),i=Qt(),r=Qo(i,20+e,16,null,n||null);null===r.projection&&(r.projection=t),sn(),64!=(64&r.flags)&&function(e,t,n){Co(t[11],0,t,n,so(e,n,t),co(n.parent||t[6],n,t))}(i,s,r)}function Gc(e,t,n){return Zc(e,"",t,"",n),Gc}function Zc(e,t,n,s,i){const r=Zt(),o=Pl(r,t,n,s);if(o!==No){const t=Qt(),n=On();ha(t,n,r,e,o,r[11],i,!1)}return Zc}function Qc(e,t,n,s,i,r,o){const a=Zt(),l=Al(a,t,n,s,i,r);if(l!==No){const t=Qt(),n=On();ha(t,n,a,e,l,a[11],o,!1)}return Qc}function Yc(e,t,n,s,i,r,o,a,l){const c=Zt(),u=Ml(c,t,n,s,i,r,o,a);if(u!==No){const t=Qt(),n=On();ha(t,n,c,e,u,c[11],l,!1)}return Yc}function Jc(e,t,n,s,i,r,o,a,l,c,u){const h=Zt(),d=Fl(h,t,n,s,i,r,o,a,l,c);if(d!==No){const t=Qt(),n=On();ha(t,n,h,e,d,h[11],u,!1)}return Jc}function Xc(e,t,n,s,i,r,o,a,l,c,u,h,d){const p=Zt(),f=Rl(p,t,n,s,i,r,o,a,l,c,u,h);if(f!==No){const t=Qt(),n=On();ha(t,n,p,e,f,p[11],d,!1)}return Xc}function eu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f){const g=Zt(),m=Nl(g,t,n,s,i,r,o,a,l,c,u,h,d,p);if(m!==No){const t=Qt(),n=On();ha(t,n,g,e,m,g[11],f,!1)}return eu}function tu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m){const y=Zt(),b=Ll(y,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g);if(b!==No){const t=Qt(),n=On();ha(t,n,y,e,b,y[11],m,!1)}return tu}function nu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,b){const v=Zt(),_=Vl(v,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y);if(_!==No){const t=Qt(),n=On();ha(t,n,v,e,_,v[11],b,!1)}return nu}function su(e,t,n){const s=Zt(),i=Il(s,t);if(i!==No){const t=Qt(),r=On();ha(t,r,s,e,i,s[11],n,!1)}return su}function iu(e,t,n,s,i,r){let o=r?t.classBindings:t.styleBindings,a=Bo(o),l=Uo(o);e[s]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||Hs(e,c)>0)&&(u=!0)}else c=n;if(i){if(0!==l){const t=Bo(e[a+1]);e[s+1]=jo(t,a),0!==t&&(e[t+1]=Ho(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=jo(a,0),0!==a&&(e[a+1]=Ho(e[a+1],s)),a=s}else e[s+1]=jo(l,0),0===a?a=s:e[l+1]=Ho(e[l+1],s),l=s;u&&(e[s+1]=zo(e[s+1])),ru(e,c,s,!0,r),ru(e,c,s,!1,r),function(e,t,n,s,i){const r=i?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Hs(r,t)>=0&&(n[s+1]=Wo(n[s+1]))}(t,c,e,s,r),o=jo(a,l),r?t.classBindings=o:t.styleBindings=o}function ru(e,t,n,s,i){const r=e[n+1],o=null===t;let a=s?Bo(r):Uo(r),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a],i=e[a+1];ou(n,t)&&(l=!0,e[a+1]=s?Wo(i):zo(i)),a=s?Bo(i):Uo(i)}l&&(e[n+1]=s?zo(r):Wo(r))}function ou(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Hs(e,t)>=0}const au={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
3;function lu(e){return e.substring(au.key,au.keyEnd)}function cu(e){return e.substring(au.value,au.valueEnd)}function uu(e,t){const n=au.textEnd;return n===t?-1:(t=au.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,au.key=t,n),pu(e,t,n))}function hu(e,t){const n=au.textEnd;let s=au.key=pu(e,t,n);return n===s?-1:(s=au.keyEnd=function(e,t,n){let s;for(;t<n&&(45===(s=e.charCodeAt(t))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)t++;return t}(e,s,n),s=fu(e,s,n,58),s=au.value=pu(e,s,n),s=au.valueEnd=function(e,t,n){let s=-1,i=-1,r=-1,o=t,a=o;for(;o<n;){const l=e.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=gu(e,l,o,n):t===o-4&&85===r&&82===i&&76===s&&40===l?a=o=gu(e,41,o,n):l>32&&(a=o),r=i,i=s,s=-33&l}return a}(e,s,n),fu(e,s,n,59))}function du(e){au.key=0,au.keyEnd=0,au.value=0,au.valueEnd=0,au.textEnd=e.length}function pu(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function fu(e,t,n,s){return(t=pu(e,t,n))<n&&t++,t}function gu(e,t,n,s){let i=-1,r=n;for(;r<s;){const n=e.charCodeAt(r++);if(n==t&&92!==i)return r;i=92==n&&92===i?0:n}throw new Error}function mu(e,t,n){return Cu(e,t,n,!1),mu}function yu(e,t){return Cu(e,t,null,!0),yu}function bu(e){xu(Eu,vu,e,!1)}function vu(e,t){for(let n=function(e){return du(e),hu(e,pu(e,0,au.textEnd))}(t);n>=0;n=hu(t,n))Eu(e,lu(t),cu(t))}function _u(e){xu(zs,wu,e,!0)}function wu(e,t){for(let n=function(e){return du(e),uu(e,pu(e,0,au.textEnd))}(t);n>=0;n=uu(t,n))zs(e,lu(t),!0)}function Cu(e,t,n,s){const i=Zt(),r=Qt(),o=hn(2);if(r.firstUpdatePass&&Su(r,e,o,s),t!==No&&Sl(i,o,t)){Ou(r,r.data[Dn()],i,i[11],e,i[o+1]=function(e,t){null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(ji(e))));return e}(t,n),s,o)}}function xu(e,t,n,s){const i=Qt(),r=hn(2);i.firstUpdatePass&&Su(i,null,r,s);const o=Zt();if(n!==No&&Sl(o,r,n)){const a=i.data[Dn()];if(Au(a,s)&&!ku(i,r)){0;let e=s?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=re(e,n||"")),Dc(i,a,o,n,s)}else!function(e,t,n,s,i,r,o,a){i===No&&(i=ze);let l=0,c=0,u=0<i.length?i[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<i.length?i[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let f,g=null;u===h?(l+=2,c+=2,d!==p&&(g=h,f=p)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,f=p),null!==g&&Ou(e,t,n,s,g,f,o,a),u=l<i.length?i[l]:null,h=c<r.length?r[c]:null}}(i,a,o,o[11],o[r+1],o[r+1]=function(e,t,n){if(null==n||""===n)return ze;const s=[],i=ji(n);if(Array.isArray(i))for(let r=0;r<i.length;r++)e(s,i[r],!0);else if("object"==typeof i)for(const r in i)i.hasOwnProperty(r)&&e(s,r,i[r]);else"string"==typeof i&&t(s,i);return s}(e,t,n),s,r)}}function ku(e,t){return t>=e.expandoStartIndex}function Su(e,t,n,s){const i=e.data;if(null===i[n+1]){const r=i[Dn()],o=ku(e,n);Au(r,s)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const i=gn(e);let r=s?t.residualClasses:t.residualStyles;if(null===i){0===(s?t.classBindings:t.styleBindings)&&(n=Du(n=Tu(null,e,t,n,s),t.attrs,s),r=null)}else{const o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=Tu(i,e,t,n,s),null===r){let n=function(e,t,n){const s=n?t.classBindings:t.styleBindings;if(0===Uo(s))return;return e[Bo(s)]}(e,t,s);void 0!==n&&Array.isArray(n)&&(n=Tu(null,e,t,n[1],s),n=Du(n,t.attrs,s),function(e,t,n,s){const i=n?t.classBindings:t.styleBindings;e[Bo(i)]=s}(e,t,s,n))}else r=function(e,t,n){let s;const i=t.directiveEnd;for(let r=1+t.directiveStylingLast;r<i;r++){s=Du(s,e[r].hostAttrs,n)}return Du(s,t.attrs,n)}(e,t,s)}void 0!==r&&(s?t.residualClasses=r:t.residualStyles=r);return n}(i,r,t,s),iu(i,r,t,n,o,s)}}function Tu(e,t,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=t[a],s=Du(s,r.hostAttrs,i),r!==e);)a++;return null!==e&&(n.directiveStylingLast=a),s}function Du(e,t,n){const s=n?1:2;let i=-1;if(null!==t)for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?i=o:i===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),zs(e,o,!!n||t[++r]))}return void 0===e?null:e}function Eu(e,t,n){zs(e,t,ji(n))}function Ou(e,t,n,s,i,r,o,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];if(!Pu(qo(c)?Iu(l,t,n,i,Uo(c),o):void 0)){Pu(r)||$o(c)&&(r=Iu(l,null,n,i,a,o));!function(e,t,n,s,i){const r=It(e);
3if(t)i?r?e.addClass(n,s):n.classList.add(s):r?e.removeClass(n,s):n.classList.remove(s);else{let t=-1===s.indexOf("-")?void 0:Br.DashCase;if(null==i)r?e.removeStyle(n,s,t):n.style.removeProperty(s);else{const o="string"==typeof i&&i.endsWith("!important");o&&(i=i.slice(0,-10),t|=Br.Important),r?e.setStyle(n,s,i,t):n.style.setProperty(s,i,o?"important":"")}}}(s,o,Mt(Dn(),n),i,r)}}function Iu(e,t,n,s,i,r){const o=null===t;let a;for(;i>0;){const t=e[i],r=Array.isArray(t),l=r?t[1]:t,c=null===l;let u=n[i+1];u===No&&(u=c?ze:void 0);let h=c?Us(u,s):l===s?u:void 0;if(r&&!Pu(h)&&(h=Us(t,s)),Pu(h)&&(a=h,o))return a;const d=e[i+1];i=o?Bo(d):Uo(d)}if(null!==t){let e=r?t.residualClasses:t.residualStyles;null!=e&&(a=Us(e,s))}return a}function Pu(e){return void 0!==e}function Au(e,t){return 0!=(e.flags&(t?16:32))}function Mu(e,t=""){const n=Zt(),s=Qt(),i=e+20,r=s.firstCreatePass?Qo(s,i,1,t,null):s.data[i],o=n[i]=Gr(n[11],t);go(s,n,o,r),tn(r,!1)}function Fu(e){return Ru("",e,""),Fu}function Ru(e,t,n){const s=Zt(),i=Pl(s,e,t,n);return i!==No&&Ba(s,Dn(),i),Ru}function Nu(e,t,n,s,i){const r=Zt(),o=Al(r,e,t,n,s,i);return o!==No&&Ba(r,Dn(),o),Nu}function Lu(e,t,n,s,i,r,o){const a=Zt(),l=Ml(a,e,t,n,s,i,r,o);return l!==No&&Ba(a,Dn(),l),Lu}function Vu(e,t,n,s,i,r,o,a,l){const c=Zt(),u=Fl(c,e,t,n,s,i,r,o,a,l);return u!==No&&Ba(c,Dn(),u),Vu}function ju(e,t,n,s,i,r,o,a,l,c,u){const h=Zt(),d=Rl(h,e,t,n,s,i,r,o,a,l,c,u);return d!==No&&Ba(h,Dn(),d),ju}function Bu(e,t,n,s,i,r,o,a,l,c,u,h,d){const p=Zt(),f=Nl(p,e,t,n,s,i,r,o,a,l,c,u,h,d);return f!==No&&Ba(p,Dn(),f),Bu}function $u(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f){const g=Zt(),m=Ll(g,e,t,n,s,i,r,o,a,l,c,u,h,d,p,f);return m!==No&&Ba(g,Dn(),m),$u}function zu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m){const y=Zt(),b=Vl(y,e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m);return b!==No&&Ba(y,Dn(),b),zu}function Uu(e){const t=Zt(),n=Il(t,e);return n!==No&&Ba(t,Dn(),n),Uu}function Hu(e,t,n){xu(zs,wu,Pl(Zt(),e,t,n),!0)}function qu(e,t,n,s,i){xu(zs,wu,Al(Zt(),e,t,n,s,i),!0)}function Wu(e,t,n,s,i,r,o){xu(zs,wu,Ml(Zt(),e,t,n,s,i,r,o),!0)}function Ku(e,t,n,s,i,r,o,a,l){xu(zs,wu,Fl(Zt(),e,t,n,s,i,r,o,a,l),!0)}function Gu(e,t,n,s,i,r,o,a,l,c,u){xu(zs,wu,Rl(Zt(),e,t,n,s,i,r,o,a,l,c,u),!0)}function Zu(e,t,n,s,i,r,o,a,l,c,u,h,d){xu(zs,wu,Nl(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d),!0)}function Qu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f){xu(zs,wu,Ll(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d,p,f),!0)}function Yu(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m){xu(zs,wu,Vl(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m),!0)}function Ju(e){xu(zs,wu,Il(Zt(),e),!0)}function Xu(e,t,n){bu(Pl(Zt(),e,t,n))}function eh(e,t,n,s,i){bu(Al(Zt(),e,t,n,s,i))}function th(e,t,n,s,i,r,o){bu(Ml(Zt(),e,t,n,s,i,r,o))}function nh(e,t,n,s,i,r,o,a,l){bu(Fl(Zt(),e,t,n,s,i,r,o,a,l))}function sh(e,t,n,s,i,r,o,a,l,c,u){bu(Rl(Zt(),e,t,n,s,i,r,o,a,l,c,u))}function ih(e,t,n,s,i,r,o,a,l,c,u,h,d){bu(Nl(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d))}function rh(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f){bu(Ll(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d,p,f))}function oh(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m){bu(Vl(Zt(),e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m))}function ah(e){bu(Il(Zt(),e))}function lh(e,t,n,s,i){return Cu(e,Pl(Zt(),t,n,s),i,!1),lh}function ch(e,t,n,s,i,r,o){return Cu(e,Al(Zt(),t,n,s,i,r),o,!1),ch}function uh(e,t,n,s,i,r,o,a,l){return Cu(e,Ml(Zt(),t,n,s,i,r,o,a),l,!1),uh}function hh(e,t,n,s,i,r,o,a,l,c,u){return Cu(e,Fl(Zt(),t,n,s,i,r,o,a,l,c),u,!1),hh}function dh(e,t,n,s,i,r,o,a,l,c,u,h,d){return Cu(e,Rl(Zt(),t,n,s,i,r,o,a,l,c,u,h),d,!1),dh}function ph(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f){return Cu(e,Nl(Zt(),t,n,s,i,r,o,a,l,c,u,h,d,p),f,!1),ph}function fh(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m){return Cu(e,Ll(Zt(),t,n,s,i,r,o,a,l,c,u,h,d,p,f,g),m,!1),fh}function gh(e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,b){return Cu(e,Vl(Zt(),t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y),b,!1),gh}function mh(e,t,n){return Cu(e,Il(Zt(),t),n,!1),mh}function yh(e,t,n){const s=Zt(),i=un();if(Sl(s,i,t)){const i=Qt(),r=On();ha(i,r,s,e,t,s[11],n,!0)}return yh}function bh(e,t,n){const s=Zt(),i=un();if(Sl(s,i,t)){const i=Qt(),r=On();ha(i,r,s,e,t,La(gn(i.data),r,s),n,!0)}return bh}const vh=void 0;var _h=["en",[["a","p"],["AM","PM"],vh],[["AM","PM"],vh,vh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
3ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vh,[["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"]],vh,[["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}",vh,"{1} 'at' {0}",vh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let wh={};function Ch(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kh(t);if(n)return n;const s=t.split("-")[0];if(n=kh(s),n)return n;if("en"===s)return _h;throw new Error(`Missing locale data for the locale "${e}".`)}function xh(e){return Ch(e)[Sh.PluralCase]}function kh(e){return e in wh||(wh[e]=Be.ng&&Be.ng.common&&Be.ng.common.locales&&Be.ng.common.locales[e]),wh[e]}var Sh;!function(e){e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData"}(Sh||(Sh={}));const Th=["zero","one","two","few","many"];const Dh={marker:"element"},Eh={marker:"ICU"};var Oh;!function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"}(Oh||(Oh={}));let Ih="en-US";function Ph(e){ye(e,"Expected localeId to be defined"),"string"==typeof e&&(Ih=e.toLowerCase().replace(/_/g,"-"))}function Ah(e,t,n){const s=t.insertBeforeIndex,i=Array.isArray(s)?s[0]:s;return null===i?uo(e,0,n):At(n[i])}function Mh(e,t,n,s,i){const r=t.insertBeforeIndex;if(Array.isArray(r)){let o=s,a=null;if(3&t.type||(a=o,o=i),null!==o&&0==(2&t.flags))for(let t=1;t<r.length;t++){ro(e,o,n[r[t]],a,!1)}}}function Fh(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const s=e[n];Rh(s)||Nh(s,t)&&null===Lh(s)&&Vh(s,t.index)}}function Rh(e){return!(64&e.type)}function Nh(e,t){return Rh(t)||e.index>t.index}function Lh(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Vh(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(fo(Ah,Mh),e.insertBeforeIndex=t)}function jh(e,t){const n=e.data[t];if(null===n||"string"==typeof n)return null;const s=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return s}function Bh(e,t,n){const s=Yo(e,n,64,null,null);return Fh(t,s),s}function $h(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function zh(e){return e>>>17}function Uh(e){return(131070&e)>>>1}let Hh=0,qh=0;function Wh(e,t,n,s){const i=n[11];let r,o=null;for(let a=0;a<t.length;a++){const l=t[a];if("string"==typeof l){const e=t[++a];null===n[e]&&(n[e]=Gr(i,l))}else if("number"==typeof l)switch(1&l){case 0:const c=zh(l);let u,h;if(null===o&&(o=c,r=lo(i,s)),c===o?(u=s,h=r):(u=null,h=At(n[c])),null!==h){const t=Uh(l),s=n[t];ro(i,h,s,u,!1);const r=jh(e,t);if(null!==r&&"object"==typeof r){const t=$h(r,n);null!==t&&Wh(e,r.create[t],n,n[r.anchorIdx])}}break;case 1:const d=l>>>1,p=t[++a],f=t[++a];wa(i,Mt(d,n),null,null,p,f,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case Eh:const e=t[++a],s=t[++a];if(null===n[s]){Fr(n[s]=Qr(i,e),n)}break;case Dh:const r=t[++a],o=t[++a];if(null===n[o]){Fr(n[o]=Yr(i,r,null),n)}}}}function Kh(e,t,n,s,i){for(let r=0;r<n.length;r++){const o=n[r],a=n[++r];if(o&i){let i="";for(let o=r+1;o<=r+a;o++){const r=n[o];if("string"==typeof r)i+=r;else if("number"==typeof r)if(r<0)i+=de(t[s-r]);else{const a=r>>>2;switch(3&r){case 1:const r=n[++o],l=n[++o],c=e.data[a];"string"==typeof c?wa(t[11],t[a],null,c,r,i,l):ha(e,c,t,r,i,t[11],l,!1);break;case 0:const u=t[a];null!==u&&Zr(t[11],u,i);break;case 2:Zh(e,jh(e,a),t,i);break;case 3:Gh(e,jh(e,a),s,t)}}}}else{const i=n[r+1];if(i>0&&3==(3&i)){const n=jh(e,i>>>2);t[n.currentCaseLViewIndex]<0&&Gh(e,n,s,t)}}r+=a}}function Gh(e,t,n,s){let i=s[t.currentCaseLViewIndex];if(null!==i){let r=Hh;i<0&&(i=s[t.currentCaseLViewIndex]=~i,r=-1),Kh(e,s,t.update[i],n,r)}}function Zh(e,t,n,s){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const s=function(e,t){const n=xh(t)(parseInt(e,10)),s=Th[n];return void 0!==s?s:"other"}(t,Ih);n=e.cases.indexOf(s),-1===n&&"other"!==s&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,s);
3if($h(t,n)!==i&&(Qh(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const s=n[t.anchorIdx];s&&Wh(e,t.create[i],n,s)}}function Qh(e,t,n){let s=$h(t,n);if(null!==s){const i=t.remove[s];for(let t=0;t<i.length;t++){const s=i[t];if(s>0){const e=Mt(s,n);null!==e&&vo(n[11],e)}else Qh(e,jh(e,~s),n)}}}function Yh(){const e=[];let t,n,s=-1;function i(e,t){s=0;const i=$h(e,t);n=null!==i?e.remove[i]:Ue}function r(){if(s<n.length){const o=n[s++];if(o>0){const e=t[o];return e}{e.push(s,n);const a=~o,l=t[1].data[a];return i(l,t),r()}}return 0===e.length?null:(n=e.pop(),s=e.pop(),r())}return function(n,s){for(t=s;e.length;)e.pop();return i(n.value,s),r}}const Jh=/\ufffd(\d+):?\d*\ufffd/gi,Xh=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,ed=/\ufffd(\d+)\ufffd/,td=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nd=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,sd=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,id=/\uE500/g;function rd(e,t,n,s,i,r){const o=en(),a=[],l=[],c=[[]];i=function(e,t){if(function(e){return-1===e}(t))return hd(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,s=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return hd(e.substring(n,s))}}(i,r);const u=(h=i,h.replace(id," ")).split(sd);var h;for(let d=0;d<u.length;d++){let s=u[d];if(0==(1&d)){const r=fd(s);for(let s=0;s<r.length;s++){let u=r[s];if(0==(1&s)){const t=u;""!==t&&ad(e,o,c[0],a,l,n,t)}else{const s=u;if("object"!=typeof s)throw new Error(`Unable to parse ICU expression in "${i}" message.`);const r=od(e,o,c[0],n,a,"",!0).index;dd(e,n,l,t,s,r)}}}else{const t=47===s.charCodeAt(0),n=(s.charCodeAt(t?1:0),20+Number.parseInt(s.substring(t?2:1)));if(t)c.shift(),tn(en(),!1);else{const t=Bh(e,c[0],n);c.unshift([]),tn(t,!0)}}}e.data[s]={create:a,update:l}}function od(e,t,n,s,i,r,o){const a=Jo(e,s,1,null);let l=a<<Oh.SHIFT,c=en();var u;t===c&&(c=null),null===c&&(l|=Oh.APPEND_EAGERLY),o&&(l|=Oh.COMMENT,u=Yh,void 0===$r&&($r=u())),i.push(l,null===r?"":r);const h=Yo(e,a,o?32:1,null===r?"":r,null);Fh(n,h);const d=h.index;return tn(h,!1),null!==c&&t!==c&&function(e,t){let n=e.insertBeforeIndex;null===n?(fo(Ah,Mh),n=e.insertBeforeIndex=[null,t]):(me(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(c,d),h}function ad(e,t,n,s,i,r,o){const a=o.match(Jh),l=od(e,t,n,r,s,a?null:o,!1);a&&ld(i,o,l.index,null,0,null)}function ld(e,t,n,s,i,r){const o=e.length,a=o+1;e.push(null,null);const l=o+2;const c=t.split(Jh);let u=0;for(let h=0;h<c.length;h++){const t=c[h];if(1&h){const n=i+parseInt(t,10);e.push(-1-n),u|=ud(n)}else""!==t&&e.push(t)}return e.push(n<<2|(s?1:0)),s&&e.push(s,r),e[o]=u,e[a]=e.length-l,u}function cd(e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];"number"==typeof s&&s<0&&t++}return t}function ud(e){return 1<<Math.min(e,31)}function hd(e){let t,n,s="",i=0,r=!1;for(;null!==(t=nd.exec(e));)r?t[0]===`\ufffd/*${n}\ufffd`&&(i=t.index,r=!1):(s+=e.substring(i,t.index+t[0].length),n=t[1],r=!0);return s+=e.substr(i),s}function dd(e,t,n,s,i,r){let o=0;const a={type:i.type,currentCaseLViewIndex:Jo(e,t,1,null),anchorIdx:r,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(ud(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,i,r),function(e,t,n){const s=e.data[t];null===s?e.data[t]=n:s.value=n}(e,r,a);const l=i.values;for(let c=0;c<l.length;c++){const r=l[c],u=[];for(let e=0;e<r.length;e++){const t=r[e];if("string"!=typeof t){const n=u.push(t)-1;r[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}o=gd(e,a,t,n,s,i.cases[c],r.join(""),u)|o}o&&function(e,t,n){e.push(t,1,n<<2|3)}(n,o,r)}function pd(e){const t=[],n=[];let s=1,i=0;const r=fd(e=e.replace(td,function(e,t,n){return s="select"===n?0:1,i=parseInt(t.substr(1),10),""}));for(let o=0;o<r.length;){let e=r[o++].trim();1===s&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const i=fd(r[o++]);t.length>n.length&&n.push(i)}return{type:s,mainBinding:i,cases:t,values:n}}function fd(e){if(!e)return[];let t=0;const n=[],s=[],i=/[{}]/g;let r;for(i.lastIndex=0;r=i.exec(e);){const i=r.index;if("}"==r[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);td.test(n)?s.push(pd(n)):s.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);s.push(n),t=i+1}n.push("{")}}const o=e.substring(t);return s.push(o),s}function gd(e,t,n,s,i,r,o,a){const l=[],c=[],u=[];t.cases.push(r),t.create.push(l),t.remove.push(c),t.update.push(u);const h=zi(Et()).getInertBodyElement(o),d=mr(h)||h;return d?md(e,t,n,s,l,c,u,d,i,a,0):0}function md(e,t,n,s,i,r,o,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=Jo(e,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(sr.hasOwnProperty(f)){vd(i,Dh,f,l,a),e.data[a]=f;const g=p.attributes;for(let e=0;e<g.length;e++){const t=g.item(e),n=t.name.toLowerCase();!!t.value.match(Jh)?lr.hasOwnProperty(n)&&(ir[n]?ld(o,t.value,a,t.n
3ame,0,Ki):rr[n]?ld(o,t.value,a,t.name,0,Gi):ld(o,t.value,a,t.name,0,null)):_d(i,a,t)}h=md(e,t,n,s,i,r,o,d,a,c,u+1)|h,yd(r,a,u)}break;case Node.TEXT_NODE:const g=d.textContent||"",m=g.match(Jh);vd(i,null,m?"":g,l,a),yd(r,a,u),m&&(h=ld(o,g,a,null,0,null)|h);break;case Node.COMMENT_NODE:const y=ed.exec(d.textContent||"");if(y){const t=parseInt(y[1],10),o=c[t];vd(i,Eh,"",l,a),dd(e,n,s,l,o,a),bd(r,a,u)}}d=d.nextSibling}return h}function yd(e,t,n){0===n&&e.push(t)}function bd(e,t,n){0===n&&(e.push(~t),e.push(t))}function vd(e,t,n,s,i){null!==t&&e.push(t),e.push(n,i,0|s<<17|i<<1)}function _d(e,t,n){e.push(t<<1|1,n.name,n.value)}const wd=/\[(\ufffd.+?\ufffd?)\]/,Cd=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,xd=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,kd=/{([A-Z0-9_]+)}/g,Sd=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Td=/\/\*/,Dd=/\d+\:(\d+)/;function Ed(e,t,n=-1){const s=Qt(),i=Zt(),r=20+e,o=zt(s.consts,t),a=en();s.firstCreatePass&&rd(s,null===a?0:a.index,i,r,o,n);const l=s.data[r],c=io(s,a===i[6]?null:a,i),u=a&&8&a.type?i[a.index]:null;!function(e,t,n,s){const i=e[11];for(let r=0;r<t.length;r++){const o=t[r++],a=t[r],l=(o&Oh.COMMENT)===Oh.COMMENT,c=(o&Oh.APPEND_EAGERLY)===Oh.APPEND_EAGERLY,u=o>>>Oh.SHIFT;let h=e[u];null===h&&(h=e[u]=l?i.createComment(a):Gr(i,a)),c&&null!==n&&ro(i,n,h,s,!1)}}(i,l.create,c,u),dn(!0)}function Od(){dn(!1)}function Id(e,t,n){Ed(e,t,n),Od()}function Pd(e,t){const n=Qt();!function(e,t,n){const s=Jt().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(let e=0;e<n.length;e+=2){const t=n[e],r=n[e+1];if(""!==r){if(Xh.test(r))throw new Error(`ICU expressions are not supported in attributes. Message: "${r}".`);ld(i,r,s,t,cd(i),null)}}e.data[t]=i}}(n,e+20,zt(n.consts,t))}function Ad(e){const t=Zt();return Sl(t,un(),e)&&(Hh|=1<<Math.min(qh,31)),qh++,Ad}function Md(e){!function(e,t,n){if(qh>0){const s=e.data[n];Kh(e,t,Array.isArray(s)?s:s.update,ln()-qh-1,Hh)}Hh=0,qh=0}(Qt(),Zt(),e+20)}function Fd(e,t={}){return function(e,t={}){let n=e;if(wd.test(e)){const e={},t=[0];n=n.replace(Cd,(n,s,i)=>{const r=s||i,o=e[r]||[];if(o.length||(r.split("|").forEach(e=>{const t=e.match(Dd),n=t?parseInt(t[1],10):0,s=Td.test(e);o.push([n,s,e])}),e[r]=o),!o.length)throw new Error(`i18n postprocess: unmatched placeholder - ${r}`);const a=t[t.length-1];let l=0;for(let e=0;e<o.length;e++)if(o[e][0]===a){l=e;break}const[c,u,h]=o[l];return u?t.pop():a!==c&&t.push(c),o.splice(l,1),h})}return Object.keys(t).length?(n=n.replace(xd,(e,n,s,i,r,o)=>t.hasOwnProperty(s)?`${n}${t[s]}${o}`:e),n=n.replace(kd,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(Sd,(e,n)=>{if(t.hasOwnProperty(n)){const s=t[n];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return s.shift()}return e}),n):n}(e,t)}function Rd(e,t,n,s,i){if(e=le(e),Array.isArray(e))for(let r=0;r<e.length;r++)Rd(e[r],t,n,s,i);else{const r=Qt(),o=Zt();let a=nl(e)?e:le(e.provide),l=Xa(e);const c=Jt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(nl(e)||!e.multi){const s=new jn(l,i,kc),p=Vd(a,t,i?u:u+d,h);-1===p?(ts(Yn(c,o),r,a),Nd(r,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=Vd(a,t,u+d,h),f=Vd(a,t,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){ts(Yn(c,o),r,a);const u=function(e,t,n,s,i){const r=new jn(e,n,kc);return r.multi=[],r.index=t,r.componentProviders=0,Ld(r,i,s&&!n),r}(i?Bd:jd,n.length,i,s,l);!i&&m&&(n[f].providerFactory=u),Nd(r,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else{Nd(r,e,p>-1?p:f,Ld(n[i?f:p],l,!i&&s))}!i&&s&&m&&n[f].componentProviders++}}}function Nd(e,t,n,s){const i=nl(t);if(i||t.useClass){const r=(t.useClass||t).prototype.ngOnDestroy;if(r){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[s,r]):o[e+1].push(s,r)}else o.push(n,r)}}}function Ld(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Vd(e,t,n,s){for(let i=n;i<s;i++)if(t[i]===e)return i;return-1}function jd(e,t,n,s){return $d(this.multi,[])}function Bd(e,t,n,s){const i=this.multi;let r;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=cs(n,n[1],this.providerFactory.index,s);r=t.slice(0,e),$d(i,r);for(let n=e;n<t.length;n++)r.push(t[n])}else r=[],$d(i,r);return r}function $d(e,t){for(let n=0;n<e.length;n++){const s=e[n];t.push(s())}return t}function zd(e,t=[]){return n=>{n.providersResolver=(n,s)=>function(e,t,n){const s=Qt();if(s.firstCreatePass){const i=yt(e);Rd(n,s.data,s.blueprint,i,!0),Rd(t,s.data,s.blueprint,i,!1)}}(n,s?s(e):e,t)}}class Ud{}class Hd{}function qd(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t[Wd]=e,t}const Wd="ngComponent";class Kd{}
vendor: 13,622 bytes, line 3
3Kd.NULL=new class{resolveComponentFactory(e){throw qd(e)}};function Gd(...e){}function Zd(e,t){return new Yd(Ft(e,t))}const Qd=function(){return Zd(Jt(),Zt())};class Yd{constructor(e){this.nativeElement=e}}function Jd(e){return e instanceof Yd?e.nativeElement:e}Yd.__NG_ELEMENT_ID__=Qd;new ks("Renderer2Interceptor");class Xd{}class ep{}ep.__NG_ELEMENT_ID__=()=>tp();const tp=function(){const e=Zt(),t=Lt(Jt().index,e);return function(e){const t=e[11];0;return t}(dt(t)?t:e)};class np{}np.\u0275prov=ve({token:np,providedIn:"root",factory:()=>null});class sp{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ip=new sp("11.2.14");class rp{constructor(){}supports(e){return wl(e)}create(e){return new ap(e)}}const op=(e,t)=>t;class ap{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||op}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,i=null;for(;t||n;){const r=!n||t&&t.currentIndex<hp(n,s,i)?t:n,o=hp(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(t=t._next,null==r.previousIndex)s++;else{i||(i=[]);const e=o-s,t=a-s;if(e!=t){for(let n=0;n<e;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;t<=r&&r<e&&(i[n]=s+1)}i[r.previousIndex]=t-e}}o!==a&&e(r,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!wl(e))throw new Error(`Error trying to diff '${ie(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,s,i=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],s=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,t),r=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[vl()]();let s;for(;!(s=n.next()).done;)t(s.value)}}(e,e=>{s=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,e,s,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,s,t),r=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,s)):e=this._addAfter(new lp(t,n),i,s),e}_verifyReinsertion(e,t,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,i=e._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new up),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new up),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}}class lp{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cp{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class up{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new cp,this.map.set(t,n)),n.add(e)}get(e,t){const n=e,s=this.map.get(n);return s?s.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hp(e,t,n){const s=e.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+t+i}class dp{constructor(){}supports(e){return e instanceof Map||Cl(e)}create(){return new pp}}class pp{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Cl(e)))throw new Error(`Error trying to diff '${ie(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new fp(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class fp{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function gp(){return new mp([new rp])}class mp{constructor(e){this.factories=e}static create(e,t){if(null!=t){const n=t.factories.slice();e=e.concat(n)}return new mp(e)}static extend(e){return{provide:mp,useFactory:t=>mp.create(e,t||gp()),deps:[[mp,new fi,new di]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}function yp(){return new bp([new dp])}mp.\u0275prov=ve({token:mp,providedIn:"root",factory:gp});class bp{constructor(e){this.factories=e}static create(e,t){if(t){const n=t.factories.slice();e=e.concat(n)}return new bp(e)}static extend(e){return{provide:bp,useFactory:t=>bp.create(e,t||yp()),deps:[[bp,new fi,new di]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}function vp(e,t,n,s,i=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&s.push(At(r)),pt(r))for(let e=10;e<r.length;e++){const t=r[e],n=t[1].firstChild;null!==n&&vp(t[1],t,n,s)}const o=n.type;if(8&o)vp(e,t,n.child,s);else if(32&o){const e=zr(n,t);let i;for(;i=e();)s.push(i)}else if(16&o){const e=yo(t,n);if(Array.isArray(e))s.push(...e);else{const n=Ur(t[16]);vp(n[1],n,e,s,!0)}}n=i?n.projectionNext:n.next}return s}bp.\u0275prov=ve({token:bp,providedIn:"root",factory:yp});class _p{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return vp(t,e,t.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 e=this._lView[3];if(pt(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(eo(e,n),Bs(t,n))}this._attachedToViewContainer=!1}to(this._lView[1],this._lView)}onDestroy(e){ca(this._lView[1],this._lView,null,e)}markForCheck(){Oa(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Pa(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){on(!0);try{Pa(e,t,n)}finally{on(!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 e,t;this._appRef=null,e=this._lView[1],t=this._lView,wo(e,t,t[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
3wContainer!");this._appRef=e}}class wp extends _p{constructor(e){super(e),this._view=e}detectChanges(){Aa(this._view)}checkNoChanges(){!function(e){on(!0);try{Aa(e)}finally{on(!1)}}(this._view)}get context(){return null}}const Cp=kp;class xp{}function kp(e=!1){return function(e,t,n){if(!n&&gt(e)){const n=Lt(e.index,t);return new _p(n,n)}if(47&e.type){const e=t[16];return new _p(e,t)}return null}(Jt(),Zt(),e)}xp.__NG_ELEMENT_ID__=Cp,xp.__ChangeDetectorRef__=!0;const Sp=[new dp],Tp=[new rp],Dp=new mp(Tp),Ep=new bp(Sp),Op=function(){return Mp(Jt(),Zt())};class Ip{}Ip.__NG_ELEMENT_ID__=Op;const Pp=Ip,Ap=class extends Pp{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Zo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null),s=this._declarationLView[this._declarationTContainer.index];n[17]=s;const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Xo(t,n,e),new _p(n)}};function Mp(e,t){return 4&e.type?new Ap(t,e,Zd(e,t)):null}class Fp{}class Rp{}const Np=function(){return zp(Jt(),Zt())};class Lp{}Lp.__NG_ELEMENT_ID__=Np;const Vp=Lp,jp=class extends Vp{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Zd(this._hostTNode,this._hostLView)}get injector(){return new ds(this._hostTNode,this._hostLView)}get parentInjector(){const e=es(this._hostTNode,this._hostLView);if(qn(e)){const t=Kn(e,this._hostLView),n=Wn(e),s=t[1].data[n+8];return new ds(s,t)}return new ds(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Bp(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,i){const r=n||this.parentInjector;if(!i&&null==e.ngModule&&r){const e=r.get(Fp,null);e&&(i=e)}const o=e.create(r,s,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(pt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new jp(t,t[6],t[3]);s.detach(s.indexOf(e))}}const i=this._adjustIndex(t),r=this._lContainer;Jr(s,n,r,i);const o=bo(i,r),a=n[11],l=lo(a,r[7]);return null!==l&&function(e,t,n,s,i,r){s[0]=i,s[6]=t,wo(e,s,n,1,i,r)}(s,r[6],a,n,l,o),e.attachToViewContainerRef(),js($p(r),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Bp(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=eo(this._lContainer,t);n&&(Bs($p(this._lContainer),t),to(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=eo(this._lContainer,t);return n&&null!=Bs($p(this._lContainer),t)?new _p(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Bp(e){return e[8]}function $p(e){return e[8]||(e[8]=[])}function zp(e,t){let n;const s=t[e.index];if(pt(s))n=s;else{let i;if(8&e.type)i=At(s);else{const n=t[11];i=n.createComment("");const s=Ft(e,t);ro(n,lo(n,s),i,function(e,t){return It(e)?e.nextSibling(t):t.nextSibling}(n,s),!1)}t[e.index]=n=ka(s,t,i,e),Ea(t,n)}return new jp(n,e,t)}const Up=new Map;function Hp(e){let t=Up.get(e);return t||(t=ie(e)+"_"+Up.size,Up.set(e,t)),t}new WeakMap;Hp(il),Hp(za),Hp(Fp);Hp(ep),Hp(Yd),Hp(Lp),Hp(Ip),Hp(xp),Hp(il),Hp(za);const qp={};class Wp extends Kd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=lt(e);return new Zp(t,this.ngModule)}}function Kp(e){const t=[];for(let n in e)if(e.hasOwnProperty(n)){const s=e[n];t.push({propName:s,templateName:n})}return t}const Gp=new ks("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Rr});class Zp extends Hd{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Ro).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Kp(this.componentDef.inputs)}get outputs(){return Kp(this.componentDef.outputs)}create(e,t,n,s){const i=(s=s||this.ngModule)?function(e,t){return{get:(n,s,i)=>{const r=e.get(n,qp,i);return r!==qp||s===qp?r:t.get(n,s,i)}}}(e,s.injector):e,r=i.get(Xd,Pt),o=i.get(np,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?la(a,n,this.componentDef.encapsulation):Yr(r.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}
3(l)),u=this.componentDef.onPush?576:528,h=al(),d=aa(0,null,null,1,0,null,null,null,null,null),p=Zo(null,d,h,u,null,null,r,a,o,i);let f,g;_n(p);try{const e=rl(c,this.componentDef,p,r,a);if(c)if(n)Bn(a,c,["ng-version",ip.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,i=2;for(;s<e.length;){let r=e[s];if("string"==typeof r)2===i?""!==r&&t.push(r,e[++s]):8===i&&n.push(r);else{if(!Io(i))break;i=r}s++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&Bn(a,c,e),t&&t.length>0&&ko(a,c,t.join(" "))}if(g=Rt(d,20),void 0!==t){const e=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=t[n];e.push(null!=s?Array.from(s):null)}}f=ol(e,this.componentDef,p,h,[ll]),Xo(d,p,null)}finally{Sn()}return new Qp(this.componentType,f,Zd(g,p),p,g)}}new Wp;class Qp extends Ud{constructor(e,t,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new wp(s),this.componentType=e}get injector(){return new ds(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Yp=new Map;function Jp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ie(t)} vs ${ie(t.name)}`)}class Xp extends Fp{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wp(this);const n=ht(e),s=e[Ge]||null;s&&Ph(s),this._bootstrapComponents=jr(n.bootstrap),this._r3Injector=Qa(e,t,[{provide:Fp,useValue:this},{provide:Kd,useValue:this.componentFactoryResolver}],ie(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=il.THROW_IF_NOT_FOUND,n=Ee.Default){return e===il||e===Fp||e===za?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ef extends Rp{constructor(e){super(),this.moduleType=e;null!==ht(e)&&function(e){const t=new Set;!function e(n){const s=ht(n,!0),i=s.id;if(null!==i){Jp(i,Yp.get(i),n),Yp.set(i,n)}const r=jr(s.imports);for(const o of r)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Xp(this.moduleType,e)}}function tf(e,t,n){const s=an()+e,i=Zt();return i[s]===No?xl(i,s,n?t.call(n):t()):kl(i,s)}function nf(e,t,n,s){return pf(Zt(),an(),e,t,n,s)}function sf(e,t,n,s,i){return ff(Zt(),an(),e,t,n,s,i)}function rf(e,t,n,s,i,r){return gf(Zt(),an(),e,t,n,s,i,r)}function of(e,t,n,s,i,r,o){return mf(Zt(),an(),e,t,n,s,i,r,o)}function af(e,t,n,s,i,r,o,a){const l=an()+e,c=Zt(),u=El(c,l,n,s,i,r);return Sl(c,l+4,o)||u?xl(c,l+5,a?t.call(a,n,s,i,r,o):t(n,s,i,r,o)):kl(c,l+5)}function lf(e,t,n,s,i,r,o,a,l){const c=an()+e,u=Zt(),h=El(u,c,n,s,i,r);return Tl(u,c+4,o,a)||h?xl(u,c+6,l?t.call(l,n,s,i,r,o,a):t(n,s,i,r,o,a)):kl(u,c+6)}function cf(e,t,n,s,i,r,o,a,l,c){const u=an()+e,h=Zt();let d=El(h,u,n,s,i,r);return Dl(h,u+4,o,a,l)||d?xl(h,u+7,c?t.call(c,n,s,i,r,o,a,l):t(n,s,i,r,o,a,l)):kl(h,u+7)}function uf(e,t,n,s,i,r,o,a,l,c,u){const h=an()+e,d=Zt(),p=El(d,h,n,s,i,r);return El(d,h+4,o,a,l,c)||p?xl(d,h+8,u?t.call(u,n,s,i,r,o,a,l,c):t(n,s,i,r,o,a,l,c)):kl(d,h+8)}function hf(e,t,n,s){return yf(Zt(),an(),e,t,n,s)}function df(e,t){const n=e[t];return n===No?void 0:n}function pf(e,t,n,s,i,r){const o=t+n;return Sl(e,o,i)?xl(e,o+1,r?s.call(r,i):s(i)):df(e,o+1)}function ff(e,t,n,s,i,r,o){const a=t+n;return Tl(e,a,i,r)?xl(e,a+2,o?s.call(o,i,r):s(i,r)):df(e,a+2)}function gf(e,t,n,s,i,r,o,a){const l=t+n;return Dl(e,l,i,r,o)?xl(e,l+3,a?s.call(a,i,r,o):s(i,r,o)):df(e,l+3)}function mf(e,t,n,s,i,r,o,a,l){const c=t+n;return El(e,c,i,r,o,a)?xl(e,c+4,l?s.call(l,i,r,o,a):s(i,r,o,a)):df(e,c+4)}function yf(e,t,n,s,i,r){let o=t+n,a=!1;for(let l=0;l<i.length;l++)Sl(e,o++,i[l])&&(a=!0);return a?xl(e,o,s.apply(r,i)):df(e,o)}function bf(e,t){const n=Qt();let s;const i=e+20;n.firstCreatePass?(s=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const s=t[n];if(e===s.name)return s}throw new ue("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,s.onDestroy)):s=n.data[i];const r=s.factory||(s.factory=bt(s.type)),o=Ie(kc);try{const e=Zn(!1),t=r();return Zn(e),function(e,t,n,s){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=s}(n,Zt(),i,t),t}finally{Ie(o)}}function vf(e,t,n){const s=e+20,i=Zt(),r=Nt(i,s);return Sf(i,kf(i,s)?pf(i,an(),t,r.transform,n,r):r.transform(n))}function _f(e,t,n,s){const i=e+20,r=Zt(),o=Nt(r,i);return Sf(r,kf(r,i)?ff(r,an(),t,o.transform,n,s,o):o.transform(n,s))}function wf(e,t,n,s,i){const r=e+20,o=Zt(),a=Nt(o,r);return Sf(o,kf(o,r)?gf(o,an(),t,a.transform,n,s,i,a):a.transform(n,s,i))}function Cf(e,t,n,s,i,r){const o=e+20,a=Zt(),l=Nt(a,o);return Sf(a,kf(a,o)?mf(a,an(),t,l.transform,n,s,i,r,l):l.transform(n,s,i,r))}function xf(e,t,n){const s=e+20,i=Zt(),r=Nt(i,s);return Sf(i,kf(i,s)?yf(i,an(),t,r.transform,n,r):r.transform.apply(r,n))}function kf(e,t){return e[1].data[t].pure}function Sf(e,t){if(_l.isWrapped(t)){t=_l.unwrap(t);e[ln()]=No}return t}function Tf(e){return t=>{setTimeout(e,void 0,t)}}const Df=class extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var s,i,r;let o=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;o=null===(s=t.next)||void 0===s?void 0:s.bind(t),a=null===(i=t.error)||void 0===i?void 0:i.bind(t),l=null===(r=t.complete)||void 0===r?void 0:r.bind(t)}this.__isAsync&&(a=Tf(a),o&&(o=Tf(o)),l&&(l=Tf(l)));const c=super.subscribe({next:o,error:a,complete:l});return e instanceof h&&e.add(c),c}};function Ef(){return this._results[vl()]()}class Of{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=vl(),n=Of.prototype;n[t]||(n[t]=Ef)}get changes(){return this._changes||(this._changes=new Df)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}
3forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const s=Ls(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++){let i=e[s],r=t[s];if(n&&(i=n(i),r=n(r)),r!==i)return!1}return!0}(n._results,s,t))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class If{constructor(e){this.queryList=e,this.matches=null}clone(){return new If(this.queryList)}setDirty(){this.queryList.setDirty()}}class Pf{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let e=0;e<n;e++){const n=t.getByIndex(e),i=this.queries[n.indexInDeclarationView];s.push(i.clone())}return new Pf(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==qf(e,t).matches&&this.queries[t].setDirty()}}class Af{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class Mf{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const s=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,s);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new Mf(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Ff{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Ff(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(e,t,Rf(t,i)),this.matchTNodeWithReadOption(e,t,ls(t,e,i,!1,!1))}else n===Ip?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ls(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===Yd||s===Lp||s===Ip&&4&t.type)this.addMatch(t.index,-2);else{const n=ls(t,e,s,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Rf(e,t){const n=e.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===t)return n[s+1];return null}function Nf(e,t,n,s){return-1===n?function(e,t){return 11&e.type?Zd(e,t):4&e.type?Mp(e,t):null}(t,e):-2===n?function(e,t,n){if(n===Yd)return Zd(t,e);if(n===Ip)return Mp(t,e);if(n===Lp)return zp(t,e)}(e,t,s):cs(e,e[1],n,t)}function Lf(e,t,n,s){const i=t[19].queries[s];if(null===i.matches){const s=e.data,r=n.matches,o=[];for(let e=0;e<r.length;e+=2){const i=r[e];if(i<0)o.push(null);else{const a=s[i];o.push(Nf(t,a,r[e+1],n.metadata.read))}}i.matches=o}return i.matches}function Vf(e,t,n,s){const i=e.queries.getByIndex(n),r=i.matches;if(null!==r){const o=Lf(e,t,i,n);for(let e=0;e<r.length;e+=2){const n=r[e];if(n>0)s.push(o[e/2]);else{const i=r[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&Vf(t[1],t,i,s)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];Vf(n[1],n,i,s)}}}}}return s}function jf(e){const t=Zt(),n=Qt(),s=mn();yn(s+1);const i=qf(n,s);if(e.dirty&&Bt(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const r=i.crossesNgTemplate?Vf(n,t,s,[]):Lf(n,t,i,s);e.reset(r,Jd),e.notifyOnChanges()}return!0}return!1}function Bf(e,t,n){const s=Qt();s.firstCreatePass&&(Hf(s,new Af(e,t,n),-1),2==(2&t)&&(s.staticViewQueries=!0)),Uf(s,Zt(),t)}function $f(e,t,n,s){const i=Qt();if(i.firstCreatePass){const r=Jt();Hf(i,new Af(t,n,s),r.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]),s=n.length?n[n.length-1]:-1;t!==s&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Uf(i,Zt(),n)}function zf(){return e=Zt(),t=mn(),e[19].queries[t].queryList;var e,t}
3function Uf(e,t,n){const s=new Of(4==(4&n));ca(e,t,s,s.destroy),null===t[19]&&(t[19]=new Pf),t[19].queries.push(new If(s))}function Hf(e,t,n){null===e.queries&&(e.queries=new Mf),e.queries.track(new Ff(t,n))}function qf(e,t){return e.queries.getByIndex(t)}function Wf(e,t){return Mp(e,t)}function Kf(e=Ee.Default){const t=kp(!0);if(null!=t||e&Ee.Optional)return t;ge("ChangeDetectorRef")}const Gf={"\u0275\u0275attribute":Ol,"\u0275\u0275attributeInterpolate1":jl,"\u0275\u0275attributeInterpolate2":Bl,"\u0275\u0275attributeInterpolate3":$l,"\u0275\u0275attributeInterpolate4":zl,"\u0275\u0275attributeInterpolate5":Ul,"\u0275\u0275attributeInterpolate6":Hl,"\u0275\u0275attributeInterpolate7":ql,"\u0275\u0275attributeInterpolate8":Wl,"\u0275\u0275attributeInterpolateV":Kl,"\u0275\u0275defineComponent":Je,"\u0275\u0275defineDirective":ot,"\u0275\u0275defineInjectable":ve,"\u0275\u0275defineInjector":_e,"\u0275\u0275defineNgModule":st,"\u0275\u0275definePipe":at,"\u0275\u0275directiveInject":kc,"\u0275\u0275getInheritedFactory":ps,"\u0275\u0275inject":ri,"\u0275\u0275injectAttribute":gs,"\u0275\u0275invalidFactory":Sc,"\u0275\u0275invalidFactoryDep":oi,"\u0275\u0275injectPipeChangeDetectorRef":Kf,"\u0275\u0275templateRefExtractor":Wf,"\u0275\u0275NgOnChangesFeature":_t,"\u0275\u0275ProvidersFeature":zd,"\u0275\u0275CopyDefinitionFeature":yl,"\u0275\u0275InheritDefinitionFeature":ul,"\u0275\u0275nextContext":Hc,"\u0275\u0275namespaceHTML":An,"\u0275\u0275namespaceMathML":Pn,"\u0275\u0275namespaceSVG":In,"\u0275\u0275enableBindings":Kt,"\u0275\u0275disableBindings":Gt,"\u0275\u0275elementStart":Oc,"\u0275\u0275elementEnd":Ic,"\u0275\u0275element":Pc,"\u0275\u0275elementContainerStart":Ac,"\u0275\u0275elementContainerEnd":Mc,"\u0275\u0275elementContainer":Fc,"\u0275\u0275pureFunction0":tf,"\u0275\u0275pureFunction1":nf,"\u0275\u0275pureFunction2":sf,"\u0275\u0275pureFunction3":rf,"\u0275\u0275pureFunction4":of,"\u0275\u0275pureFunction5":af,"\u0275\u0275pureFunction6":lf,"\u0275\u0275pureFunction7":cf,"\u0275\u0275pureFunction8":uf,"\u0275\u0275pureFunctionV":hf,"\u0275\u0275getCurrentView":Rc,"\u0275\u0275restoreView":Yt,"\u0275\u0275listener":jc,"\u0275\u0275projection":Kc,"\u0275\u0275syntheticHostProperty":bh,"\u0275\u0275syntheticHostListener":Bc,"\u0275\u0275pipeBind1":vf,"\u0275\u0275pipeBind2":_f,"\u0275\u0275pipeBind3":wf,"\u0275\u0275pipeBind4":Cf,"\u0275\u0275pipeBindV":xf,"\u0275\u0275projectionDef":Wc,"\u0275\u0275hostProperty":yh,"\u0275\u0275property":Tc,"\u0275\u0275propertyInterpolate":Gc,"\u0275\u0275propertyInterpolate1":Zc,"\u0275\u0275propertyInterpolate2":Qc,"\u0275\u0275propertyInterpolate3":Yc,"\u0275\u0275propertyInterpolate4":Jc,"\u0275\u0275propertyInterpolate5":Xc,"\u0275\u0275propertyInterpolate6":eu,"\u0275\u0275propertyInterpolate7":tu,"\u0275\u0275propertyInterpolate8":nu,"\u0275\u0275propertyInterpolateV":su,"\u0275\u0275pipe":bf,"\u0275\u0275queryRefresh":jf,"\u0275\u0275viewQuery":Bf,"\u0275\u0275loadQuery":zf,"\u0275\u0275contentQuery":$f,"\u0275\u0275reference":Zl,"\u0275\u0275classMap":_u,"\u0275\u0275classMapInterpolate1":Hu,"\u0275\u0275classMapInterpolate2":qu,"\u0275\u0275classMapInterpolate3":Wu,"\u0275\u0275classMapInterpolate4":Ku,"\u0275\u0275classMapInterpolate5":Gu,"\u0275\u0275classMapInterpolate6":Zu,"\u0275\u0275classMapInterpolate7":Qu,"\u0275\u0275classMapInterpolate8":Yu,"\u0275\u0275classMapInterpolateV":Ju,"\u0275\u0275styleMap":bu,"\u0275\u0275styleMapInterpolate1":Xu,"\u0275\u0275styleMapInterpolate2":eh,"\u0275\u0275styleMapInterpolate3":th,"\u0275\u0275styleMapInterpolate4":nh,"\u0275\u0275styleMapInterpolate5":sh,"\u0275\u0275styleMapInterpolate6":ih,"\u0275\u0275styleMapInterpolate7":rh,"\u0275\u0275styleMapInterpolate8":oh,"\u0275\u0275styleMapInterpolateV":ah,"\u0275\u0275styleProp":mu,"\u0275\u0275stylePropInterpolate1":lh,"\u0275\u0275stylePropInterpolate2":ch,"\u0275\u0275stylePropInterpolate3":uh,"\u0275\u0275stylePropInterpolate4":hh,"\u0275\u0275stylePropInterpolate5":dh,"\u0275\u0275stylePropInterpolate6":ph,"\u0275\u0275stylePropInterpolate7":fh,"\u0275\u0275stylePropInterpolate8":gh,"\u0275\u0275stylePropInterpolateV":mh,"\u0275\u0275classProp":yu,"\u0275\u0275advance":Lo,"\u0275\u0275template":Gl,"\u0275\u0275text":Mu,"\u0275\u0275textInterpolate":Fu,"\u0275\u0275textInterpolate1":Ru,"\u0275\u0275textInterpolate2":Nu,"\u0275\u0275textInterpolate3":Lu,"\u0275\u0275textInterpolate4":Vu,"\u0275\u0275textInterpolate5":ju,"\u0275\u0275textInterpolate6":Bu,"\u0275\u0275textInterpolate7":$u,"\u0275\u0275textInterpolate8":zu,"\u0275\u0275textInterpolateV":Uu,"\u0275\u0275i18
3n":Id,"\u0275\u0275i18nAttributes":Pd,"\u0275\u0275i18nExp":Ad,"\u0275\u0275i18nStart":Ed,"\u0275\u0275i18nEnd":Od,"\u0275\u0275i18nApply":Md,"\u0275\u0275i18nPostprocess":Fd,"\u0275\u0275resolveWindow":Nr,"\u0275\u0275resolveDocument":Lr,"\u0275\u0275resolveBody":Vr,"\u0275\u0275setComponentScope":Xe,"\u0275\u0275setNgModuleScope":it,"\u0275\u0275sanitizeHtml":br,"\u0275\u0275sanitizeStyle":vr,"\u0275\u0275sanitizeResourceUrl":wr,"\u0275\u0275sanitizeScript":Cr,"\u0275\u0275sanitizeUrl":_r,"\u0275\u0275sanitizeUrlOrResourceUrl":Sr,"\u0275\u0275trustConstantHtml":xr,"\u0275\u0275trustConstantResourceUrl":kr,forwardRef:ae,resolveForwardRef:le};let Zf=null;const Qf=[],Yf=[];let Jf=!1;function Xf(e){return Array.isArray(e)?e.every(Xf):!!le(e)}new WeakMap,new WeakMap;function eg(e,t){const n=Ls(t.declarations||Qf),s=ng(e);n.forEach(t=>{if(t.hasOwnProperty(He)){tg(lt(t),s)}else t.hasOwnProperty(qe)||t.hasOwnProperty(We)||(t.ngSelectorScope=e)})}function tg(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(He)?lt(e):ct(e)).filter(e=>!!e),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(e=>ut(e)),e.schemas=t.schemas,e.tView=null}function ng(e){if(!ig(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=ht(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return jr(t.imports).forEach(e=>{const t=e;if(!ig(t))throw new Error(`Importing ${t.name} which does not have a \u0275mod property`);const s=ng(t);s.exported.directives.forEach(e=>n.compilation.directives.add(e)),s.exported.pipes.forEach(e=>n.compilation.pipes.add(e))}),jr(t.declarations).forEach(e=>{ut(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),jr(t.exports).forEach(e=>{const t=e;if(ig(t)){const e=ng(t);e.exported.directives.forEach(e=>{n.compilation.directives.add(e),n.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ut(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function sg(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function ig(e){return!!ht(e)}let rg=0;function og(e,t){let n=null;lg(e,t||{}),Object.defineProperty(e,qe,{get:()=>{if(null===n){const s=ag(e,t||{});n=Fs().compileDirective(Gf,s.sourceMapUrl,s.metadata)}return n},configurable:!1})}function ag(e,t){const n=e&&e.name,s=`ng:///${n}/\u0275dir.js`,i=Fs(),r=ug(e,t);return r.typeSourceSpan=i.createParseSourceSpan("Directive",n,s),r.usesInheritance&&hg(e),{metadata:r,sourceMapUrl:s}}function lg(e,t){let n=null;Object.defineProperty(e,Ze,{get:()=>{if(null===n){const s=ag(e,t),i=Fs();n=i.compileFactory(Gf,`ng:///${e.name}/\u0275fac.js`,Object.assign(Object.assign({},s.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function cg(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function ug(e,t){const n=yi(),s=n.ownPropMetadata(e);return{name:e.name,type:e,typeArgumentCount:0,selector:void 0!==t.selector?t.selector:null,deps:bi(e),host:t.host||$e,propMetadata:s,inputs:t.inputs||Ue,outputs:t.outputs||Ue,queries:pg(e,s,fg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!cg(e),exportAs:(i=t.exportAs,void 0===i?null:yg(i)),providers:t.providers||null,viewQueries:pg(e,s,gg)};var i}function hg(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)ct(n)||lt(n)||!vg(n)||og(n,null),n=Object.getPrototypeOf(n)}function dg(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?yg(n):le(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly};var n}function pg(e,t,n){const s=[];for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];r.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${pe(e)}" since the query selector wasn't defined.`);if(r.some(mg))throw new Error("Cannot combine @Input decorators with query decorators");s.push(dg(i,t))}})}return s}function fg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function gg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function mg(e){return"Input"===e.ngMetadataName}function yg(e){return e.split(",").map(e=>e.trim())}const bg=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function vg(e){const t=yi();if(bg.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const s in n){const e=n[s];for(let t=0;t<e.length;t++){const n=e[t],s=n.ngMetadataName;if(mg(n)||fg(n)||gg(n)||"Output"===s||"HostBinding"===s||"HostListener"===s)return!0}}return!1}function _g(e,t){return{type:e,typeArgumentCount:0,name:e.name,deps:bi(e),pipeName:t.name,pure:void 0===t.pure||t.pure}}const wg=vs("Directive",(e={})=>e,void 0,void 0,(e,t)=>Dg(e,t)),Cg=(vs("Component",(e={})=>Object.assign({changeDetection:Me.Default},e),wg,void 0,(e,t)=>Tg(e,t)),vs("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Eg(e,t)),Cs("Input",e=>({bindingPropertyName:e}))),xg=Cs("Output",e=>({bindingPropertyName:e})),kg=Cs("HostBinding",e=>({hostPropertyName:e})),Sg=Cs("HostListener",(e,t)=>({eventName:e,args:t})),Tg=function(e,t){let n=null;!function(e,t){xi(t)&&(wi.set(e,t),Ci.add(e))}(e,t),lg(e,t),Object.defineProperty(e,He,{get:()=>{if(null===n){const s=Fs();if(xi(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}
3`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=Zf;let r=t.preserveWhitespaces;void 0===r&&(r=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let o=t.encapsulation;void 0===o&&(o=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:Re.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,l=Object.assign(Object.assign({},ug(e,t)),{typeSourceSpan:s.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:r,styles:t.styles||Ue,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:o,interpolation:t.interpolation,viewProviders:t.viewProviders||null});rg++;try{l.usesInheritance&&hg(e),n=s.compileComponent(Gf,a,l)}finally{rg--}if(0===rg&&function(){if(!Jf){Jf=!0;try{for(let e=Yf.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Yf[e];n.declarations&&n.declarations.every(Xf)&&(Yf.splice(e,1),eg(t,n))}}finally{Jf=!1}}}(),void 0!==e.ngSelectorScope){const t=ng(e.ngSelectorScope);tg(n,t)}}return n},configurable:!1})},Dg=og,Eg=function(e,t){let n=null,s=null;Object.defineProperty(e,Ze,{get:()=>{if(null===s){const n=_g(e,t),i=Fs();s=i.compileFactory(Gf,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:i.R3FactoryTarget.Pipe}))}return s},configurable:!1}),Object.defineProperty(e,We,{get:()=>{if(null===n){const s=_g(e,t);n=Fs().compilePipe(Gf,`ng:///${s.name}/\u0275pipe.js`,s)}return n},configurable:!1})};vs("NgModule",e=>e,void 0,void 0,(e,t)=>Og(e,t));const Og=function(e,t={}){!function(e,t,n=!1){const s=Ls(t.declarations||Qf);let i=null;Object.defineProperty(e,Ke,{configurable:!0,get:()=>(null===i&&(i=Fs().compileNgModule(Gf,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Ls(t.bootstrap||Qf).map(le),declarations:s.map(le),imports:Ls(t.imports||Qf).map(le).map(sg),exports:Ls(t.exports||Qf).map(le).map(sg),schemas:t.schemas?Ls(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])),i)});let r=null;Object.defineProperty(e,Ze,{get:()=>{if(null===r){const t=Fs();r=t.compileFactory(Gf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:bi(e),injectFn:"inject",target:t.R3FactoryTarget.NgModule,typeArgumentCount:0})}return r},configurable:!1});let o=null;Object.defineProperty(e,Se,{get:()=>{if(null===o){const n={name:e.name,type:e,providers:t.providers||Qf,imports:[(t.imports||Qf).map(le),(t.exports||Qf).map(le)]};o=Fs().compileInjector(Gf,`ng:///${e.name}/\u0275inj.js`,n)}return o},configurable:!1})}(e,t),function(e,t){Yf.push({moduleType:e,ngModule:t})}(e,t)},Ig=new ks("Application Initializer");class Pg{constructor(e){this.appInits=e,this.resolve=Gd,this.reject=Gd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Nc(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}Pg.\u0275fac=function(e){return new(e||Pg)(ri(Ig,8))},Pg.\u0275prov=ve({token:Pg,factory:Pg.\u0275fac}),Pg.ctorParameters=()=>[{type:Array,decorators:[{type:hi,args:[Ig]},{type:di}]}];const Ag=new ks("AppId");const Mg={provide:Ag,useFactory:function(){return`${Fg()}${Fg()}${Fg()}`},deps:[]};function Fg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Rg=new ks("Platform Initializer"),Ng=new ks("Platform ID"),Lg=new ks("appBootstrapListener");new ks("Application Packages Root URL");class Vg{log(e){console.log(e)}warn(e){console.warn(e)}}Vg.\u0275fac=function(e){return new(e||Vg)},Vg.\u0275prov=ve({token:Vg,factory:Vg.\u0275fac});const jg=new ks("LocaleId"),Bg=new ks("DefaultCurrencyCode");new ks("Translations"),new ks("TranslationsFormat");var $g;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}($g||($g={}));class zg{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Ug=function(e){return new ef(e)},Hg=Ug,qg=function(e){return Promise.resolve(Ug(e))},Wg=function(e){const t=Ug(e),n=jr(ht(e).declarations).reduce((e,t)=>
3{const n=lt(t);return n&&e.push(new Zp(n)),e},[]);return new zg(t,n)},Kg=Wg,Gg=function(e){return Promise.resolve(Wg(e))};class Zg{constructor(){this.compileModuleSync=Hg,this.compileModuleAsync=qg,this.compileModuleAndAllComponentsSync=Kg,this.compileModuleAndAllComponentsAsync=Gg}clearCache(){}clearCacheFor(e){}getModuleId(e){}}Zg.\u0275fac=function(e){return new(e||Zg)},Zg.\u0275prov=ve({token:Zg,factory:Zg.\u0275fac});const Qg=new ks("compilerOptions");const Yg=Promise.resolve(0);function Jg(e){"undefined"==typeof Zone?Yg.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Xg{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Df(!1),this.onMicrotaskEmpty=new Df(!1),this.onStable=new Df(!1),this.onError=new Df(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&t,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let e=Be.requestAnimationFrame,t=Be.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){if(-1!==e.lastRequestAnimationFrameId)return;e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Be,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nm(e),tm(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nm(e)}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,s,i,r,o,a)=>{try{return sm(e),n.invokeTask(i,r,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),im(e)}},onInvoke:(n,s,i,r,o,a,l)=>{try{return sm(e),n.invoke(i,r,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),im(e)}},onHasTask:(t,n,s,i)=>{t.hasTask(s,i),n===s&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,nm(e),tm(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,s,i)=>(t.handleError(s,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xg.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Xg.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,e,em,Gd,Gd);try{return i.runTask(r,t,n)}finally{i.cancelTask(r)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const em={};function tm(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function nm(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function sm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function im(e){e._nesting--,tm(e)}class rm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Df,this.onMicrotaskEmpty=new Df,this.onStable=new Df,this.onError=ne
3w Df}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}class om{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xg.assertNotInAngularZone(),Jg(()=>{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())Jg(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}om.\u0275fac=function(e){return new(e||om)(ri(Xg))},om.\u0275prov=ve({token:om,factory:om.\u0275fac}),om.ctorParameters=()=>[{type:Xg}];class am{constructor(){this._applications=new Map,cm.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return cm.findTestabilityInTree(this,e,t)}}am.\u0275fac=function(e){return new(e||am)},am.\u0275prov=ve({token:am,factory:am.\u0275fac}),am.ctorParameters=()=>[];let lm,cm=new class{addToWindow(e){}findTestabilityInTree(e,t,n){return null}},um=!0,hm=!1;function dm(){return hm=!0,um}let pm=function(e,t,n){const s=new ef(n);return Promise.resolve(s);const i=e.get(Qg,[]).concat(t);if(function(e){if(null!==Zf){if(e.defaultEncapsulation!==Zf.defaultEncapsulation)return;if(e.preserveWhitespaces!==Zf.preserveWhitespaces)return}Zf=e}({defaultEncapsulation:km(i.map(e=>e.defaultEncapsulation)),preserveWhitespaces:km(i.map(e=>e.preserveWhitespaces))}),function(){return 0===wi.size}())return Promise.resolve(s);const r=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(i.map(e=>e.providers));if(0===r.length)return Promise.resolve(s);const o=Fs(),a=il.create({providers:r}).get(o.ResourceLoader);return _i(e=>Promise.resolve(a.get(e))).then(()=>s)};let fm=function(){},gm=function(e){return e.isBoundToModule};const mm=new ks("AllowMultipleToken");class ym{constructor(e,t){this.name=e,this.token=t}}function bm(e,t,n=[]){const s=`Platform: ${t}`,i=new ks(s);return(t=[])=>{let r=vm();if(!r||r.injector.get(mm,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:Ha,useValue:"platform"});!function(e){if(lm&&!lm.destroyed&&!lm.injector.get(mm,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fm(),lm=e.get(_m);const t=e.get(Rg,null);
3t&&t.forEach(e=>e())}(il.create({providers:e,name:s}))}return function(e){const t=vm();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function vm(){return lm&&!lm.destroyed?lm:null}class _m{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;n="noop"===e?new rm:("zone.js"===e?void 0:e)||new Xg({enableLongStackTrace:dm(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)});return n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),s=[{provide:Xg,useValue:n}];return n.run(()=>{const t=il.create({providers:s,parent:this.injector,name:e.moduleType.name}),i=e.create(t),r=i.injector.get(Ir,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{r.handleError(e)}});i.onDestroy(()=>{xm(this._modules,i),e.unsubscribe()})}),function(e,t,n){try{const s=n();return Nc(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(r,n,()=>{const e=i.injector.get(Pg);return e.runInitializers(),e.donePromise.then(()=>{Ph(i.injector.get(jg,"en-US")||"en-US");return this._moduleDoBootstrap(i),i})})})}bootstrapModule(e,t=[]){const n=wm({},t);return pm(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Cm);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ie(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function wm(e,t){return e=Array.isArray(t)?t.reduce(wm,e):Object.assign(Object.assign({},e),t)}_m.\u0275fac=function(e){return new(e||_m)(ri(il))},_m.\u0275prov=ve({token:_m,factory:_m.\u0275fac}),_m.ctorParameters=()=>[{type:il}];class Cm{constructor(e,t,n,s,i){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Xg.assertNotInAngularZone(),Jg(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Xg.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=W(r,o.pipe(te()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Hd?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=gm(n)?void 0:this._injector.get(Fp),i=t||n.selector,r=n.create(il.NULL,[],i,s),o=r.location.nativeElement,a=r.injector.get(om,null),l=a&&r.injector.get(am);return a&&l&&l.registerApplication(o,a),r.onDestroy(()=>{this.detachView(r.hostView),xm(this.components,r),l&&l.unregisterApplication(o)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();0}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;xm(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);this._injector.get(Lg,[]).concat(this._bootstrapListeners).forEac
3h(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}function xm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function km(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}Cm.\u0275fac=function(e){return new(e||Cm)(ri(Xg),ri(il),ri(Ir),ri(Kd),ri(Pg))},Cm.\u0275prov=ve({token:Cm,factory:Cm.\u0275fac}),Cm.ctorParameters=()=>[{type:Xg},{type:il},{type:Ir},{type:Kd},{type:Pg}];class Sm{}class Tm{}const Dm={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Em{constructor(e,t){this._compiler=e,this._config=t||Dm}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,s]=e.split("#");return void 0===s&&(s="default"),n("zn8P")(t).then(e=>e[s]).then(e=>Om(e,t,s)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,s]=e.split("#"),i="NgFactory";return void 0===s&&(s="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[s+i]).then(e=>Om(e,t,s))}}function Om(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}Em.\u0275fac=function(e){return new(e||Em)(ri(Zg),ri(Tm,8))},Em.\u0275prov=ve({token:Em,factory:Em.\u0275fac}),Em.ctorParameters=()=>[{type:Zg},{type:Tm,decorators:[{type:di}]}];new Map;const Im=function(e){return null};const Pm=bm(null,"core",[{provide:Ng,useValue:"unknown"},{provide:_m,deps:[il]},{provide:am,deps:[]},{provide:Vg,deps:[]}]);const Am=[{provide:Cm,useClass:Cm,deps:[Xg,il,Ir,Kd,Pg]},{provide:Gp,deps:[Xg],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Pg,useClass:Pg,deps:[[new di,Ig]]},{provide:Zg,useClass:Zg,deps:[]},Mg,{provide:mp,useFactory:function(){return Dp},deps:[]},{provide:bp,useFactory:function(){return Ep},deps:[]},{provide:jg,useFactory:function(e){return Ph(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new hi(jg),new di,new fi]]},{provide:Bg,useValue:"USD"}];class Mm{constructor(e){}}var Fm;Mm.\u0275fac=function(e){return new(e||Mm)(ri(Cm))},Mm.\u0275mod=st({type:Mm}),Mm.\u0275inj=_e({providers:Am}),Mm.ctorParameters=()=>[{type:Cm}],function(e){e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy"}(Fm||(Fm={}));new Map,new Map,new Map;var Rm;!function(e){e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent"}(Rm||(Rm={}));let Nm=null;function Lm(){return Nm}const Vm=new ks("DocumentToken");class jm{}function Bm(){return ri(zm)}jm.\u0275fac=function(e){return new(e||jm)},jm.\u0275prov=ve({factory:Bm,token:jm,providedIn:"platform"});const $m=new ks("Location Initialized");class zm extends jm{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Lm().getLocation(),this._history=Lm().getHistory()}getBaseHrefFromDOM(){return Lm().getBaseHref(this._doc)}onPopState(e){Lm().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Lm().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!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(e){this.location.pathname=e}pushState(e,t,n){Um()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Um()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}function Um(){return!!window.history.pushState}function Hm(){return new zm(ri(Vm))}function qm(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Wm(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length,s=n-("/"===e[n-1]?1:0);return e.slice(0,s)+e.slice(n)}function Km(e){return e&&"?"!==e[0]?"?"+e:e}zm.\u0275fac=function(e){return new(e||zm)(ri(Vm))},zm.\u0275prov=ve({factory:Hm,token:zm,providedIn:"platform"}),zm.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];class Gm{}function Zm(e){const t=ri(Vm).location;return new Ym(ri(jm),t&&t.origin||"")}Gm.\u0275fac=function(e){return new(e||Gm)},Gm.\u0275prov=ve({factory:Zm,token:Gm,providedIn:"root"});const Qm=new ks("appBaseHref");class Ym extends Gm{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.on
3HashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return qm(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Km(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,s){const i=this.prepareExternalUrl(n+Km(s));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,s){const i=this.prepareExternalUrl(n+Km(s));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}Ym.\u0275fac=function(e){return new(e||Ym)(ri(jm),ri(Qm,8))},Ym.\u0275prov=ve({token:Ym,factory:Ym.\u0275fac}),Ym.ctorParameters=()=>[{type:jm},{type:String,decorators:[{type:di},{type:hi,args:[Qm]}]}];class Jm extends Gm{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=qm(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,s){let i=this.prepareExternalUrl(n+Km(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,s){let i=this.prepareExternalUrl(n+Km(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}Jm.\u0275fac=function(e){return new(e||Jm)(ri(jm),ri(Qm,8))},Jm.\u0275prov=ve({token:Jm,factory:Jm.\u0275fac}),Jm.ctorParameters=()=>[{type:jm},{type:String,decorators:[{type:di},{type:hi,args:[Qm]}]}];class Xm{constructor(e,t){this._subject=new Df,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Wm(ty(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Km(t))}normalize(e){return Xm.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ty(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Km(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Km(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}function ey(){return new Xm(ri(Gm),ri(jm))}function ty(e){return e.replace(/\/index.html$/,"")}Xm.\u0275fac=function(e){return new(e||Xm)(ri(Gm),ri(jm))},Xm.normalizeQueryParams=Km,Xm.joinWithSlash=qm,Xm.stripTrailingSlash=Wm,Xm.\u0275prov=ve({factory:ey,token:Xm,providedIn:"root"}),Xm.ctorParameters=()=>[{type:Gm},{type:jm}];const ny={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var sy,iy,ry,oy,ay,ly,cy;
3function uy(e,t,n){const s=Ch(e),i=_y([s[Sh.DayPeriodsFormat],s[Sh.DayPeriodsStandalone]],t);return _y(i,n)}function hy(e,t,n){const s=Ch(e),i=_y([s[Sh.DaysFormat],s[Sh.DaysStandalone]],t);return _y(i,n)}function dy(e,t,n){const s=Ch(e),i=_y([s[Sh.MonthsFormat],s[Sh.MonthsStandalone]],t);return _y(i,n)}function py(e,t){return _y(Ch(e)[Sh.DateFormat],t)}function fy(e,t){return _y(Ch(e)[Sh.TimeFormat],t)}function gy(e,t){return _y(Ch(e)[Sh.DateTimeFormat],t)}function my(e,t){const n=Ch(e),s=n[Sh.NumberSymbols][t];if(void 0===s){if(t===ly.CurrencyDecimal)return n[Sh.NumberSymbols][ly.Decimal];if(t===ly.CurrencyGroup)return n[Sh.NumberSymbols][ly.Group]}return s}function yy(e,t){return Ch(e)[Sh.NumberFormats][t]}!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific"}(sy||(sy={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(iy||(iy={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(ry||(ry={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(oy||(oy={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(ay||(ay={})),function(e){e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup"}(ly||(ly={})),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(cy||(cy={}));const by=xh;function vy(e){if(!e[Sh.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Sh.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _y(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function wy(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}function Cy(e,t,n="en"){const s=function(e){return Ch(e)[Sh.Currencies]}(n)[e]||ny[e]||[],i=s[1];return"narrow"===t&&"string"==typeof i?i:s[0]||e}const xy=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ky={},Sy=/((?:[^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 Ty,Dy,Ey;function Oy(e,t,n,s){let i=function(e){if(zy(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,s=1]=e.split("-").map(e=>+e);return Iy(t,n-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(xy))return function(e){const t=new Date(0);let n=0,s=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,r=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),s=Number(e[9]+e[11]));i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-s,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return r.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!zy(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Py(n,t)||t;let r,o=[];for(;t;){if(r=Sy.exec(t),!r){o.push(t);break}{o=o.concat(r.slice(1));const e=o.pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();s&&(a=$y(s,a),i=function(e,t,n){const s=n?-1:1,i=e.getTimezoneOffset(),r=$y(t,i);return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,s*(r-i))}(i,s,!0));let l="";return o.forEach(e=>{const t=function(e){if(By[e])return By[e];let t;switch(e){case"G":case"GG":case"GGG":t=Ry(Ey.Eras,oy.Abbreviated);break;case"GGGG":t=Ry(Ey.Eras,oy.Wide);break;case"GGGGG":t=Ry(Ey.Eras,oy.Narrow);break;case"y":t=Fy(Dy.FullYear,1,0,!1,!0);break;case"yy":t=Fy(Dy.FullYear,2,0,!0,!0);break;case"yyy":t=Fy(Dy.FullYear,3,0,!1,!0);break;case"yyyy":t=Fy(Dy.FullYear,4,0,!1,!0);break;case"Y":t=jy(1);break;case"YY":t=jy(2,!0);break;case"YYY":t=jy(3);break;case"YYYY":t=jy(4);break;case"M":case"L":t=Fy(Dy.Month,1,1);break;case"MM":case"LL":t=Fy(Dy.Month,2,1);break;case"MMM":t=Ry(Ey.Months,oy.Abbreviated);break;case"MMMM":t=Ry(Ey.Months,oy.Wide);break;case"MMMMM":t=Ry(Ey.Months,oy.Narrow);break;case"LLL":t=Ry(Ey.Months,oy.Abbreviated,ry.Standalone);break;case"LLLL":t=Ry(Ey.Months,oy.Wide,ry.Standalone);break;case"LLLLL":t=Ry(Ey.Months,oy.Narrow,ry.Standalone);break;case"w":t=Vy(1);break;case"ww":t=Vy(2);break;case"W":t=Vy(1,!0);break;case"d":t=Fy(Dy.Date,1);break;case"dd":t=Fy(Dy.Date,2);break;case"E":case"EE":case"EEE":t=Ry(Ey.Days,oy.Abbreviated);break;case"EEEE":t=Ry(Ey.Days,oy.Wide);break;case"EEEEE":t=Ry(Ey.Days,oy.Narrow);break;case"EEEEEE":t=Ry(Ey.Days,oy.Short);break;case"a":case"aa":case"aaa":t=Ry(Ey.DayPeriods,oy.Abbreviated);break;case"aaaa":t=Ry(Ey.DayPeriods,oy.Wide);break;case"aaaaa":t=Ry(Ey.DayPeriods,oy.Narrow);break;
vendor: 4,141 bytes, line 3
3case"b":case"bb":case"bbb":t=Ry(Ey.DayPeriods,oy.Abbreviated,ry.Standalone,!0);break;case"bbbb":t=Ry(Ey.DayPeriods,oy.Wide,ry.Standalone,!0);break;case"bbbbb":t=Ry(Ey.DayPeriods,oy.Narrow,ry.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ry(Ey.DayPeriods,oy.Abbreviated,ry.Format,!0);break;case"BBBB":t=Ry(Ey.DayPeriods,oy.Wide,ry.Format,!0);break;case"BBBBB":t=Ry(Ey.DayPeriods,oy.Narrow,ry.Format,!0);break;case"h":t=Fy(Dy.Hours,1,-12);break;case"hh":t=Fy(Dy.Hours,2,-12);break;case"H":t=Fy(Dy.Hours,1);break;case"HH":t=Fy(Dy.Hours,2);break;case"m":t=Fy(Dy.Minutes,1);break;case"mm":t=Fy(Dy.Minutes,2);break;case"s":t=Fy(Dy.Seconds,1);break;case"ss":t=Fy(Dy.Seconds,2);break;case"S":t=Fy(Dy.FractionalSeconds,1);break;case"SS":t=Fy(Dy.FractionalSeconds,2);break;case"SSS":t=Fy(Dy.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ny(Ty.Short);break;case"ZZZZZ":t=Ny(Ty.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ny(Ty.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ny(Ty.Long);break;default:return null}return By[e]=t,t}(e);l+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Iy(e,t,n){const s=new Date(0);return s.setFullYear(e,t,n),s.setHours(0,0,0),s}function Py(e,t){const n=function(e){return Ch(e)[Sh.LocaleId]}(e);if(ky[n]=ky[n]||{},ky[n][t])return ky[n][t];let s="";switch(t){case"shortDate":s=py(e,ay.Short);break;case"mediumDate":s=py(e,ay.Medium);break;case"longDate":s=py(e,ay.Long);break;case"fullDate":s=py(e,ay.Full);break;case"shortTime":s=fy(e,ay.Short);break;case"mediumTime":s=fy(e,ay.Medium);break;case"longTime":s=fy(e,ay.Long);break;case"fullTime":s=fy(e,ay.Full);break;case"short":const t=Py(e,"shortTime"),n=Py(e,"shortDate");s=Ay(gy(e,ay.Short),[t,n]);break;case"medium":const i=Py(e,"mediumTime"),r=Py(e,"mediumDate");s=Ay(gy(e,ay.Medium),[i,r]);break;case"long":const o=Py(e,"longTime"),a=Py(e,"longDate");s=Ay(gy(e,ay.Long),[o,a]);break;case"full":const l=Py(e,"fullTime"),c=Py(e,"fullDate");s=Ay(gy(e,ay.Full),[l,c])}return s&&(ky[n][t]=s),s}function Ay(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function My(e,t,n="-",s,i){let r="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,r=n));let o=String(e);for(;o.length<t;)o="0"+o;return s&&(o=o.substr(o.length-t)),r+o}function Fy(e,t,n=0,s=!1,i=!1){return function(r,o){let a=function(e,t){switch(e){case Dy.FullYear:return t.getFullYear();case Dy.Month:return t.getMonth();case Dy.Date:return t.getDate();case Dy.Hours:return t.getHours();case Dy.Minutes:return t.getMinutes();case Dy.Seconds:return t.getSeconds();case Dy.FractionalSeconds:return t.getMilliseconds();case Dy.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,r);if((n>0||a>-n)&&(a+=n),e===Dy.Hours)0===a&&-12===n&&(a=12);else if(e===Dy.FractionalSeconds)return l=t,My(a,3).substr(0,l);var l;const c=my(o,ly.MinusSign);return My(a,t,c,s,i)}}function Ry(e,t,n=ry.Format,s=!1){return function(i,r){return function(e,t,n,s,i,r){switch(n){case Ey.Months:return dy(t,i,s)[e.getMonth()];case Ey.Days:return hy(t,i,s)[e.getDay()];case Ey.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(r){const e=function(e){const t=Ch(e);return vy(t),(t[Sh.ExtraData][2]||[]).map(e=>"string"==typeof e?wy(e):[wy(e[0]),wy(e[1])])}(t),n=function(e,t,n){const s=Ch(e);vy(s);const i=_y([s[Sh.ExtraData][0],s[Sh.ExtraData][1]],t)||[];return _y(i,n)||[]}(t,i,s),r=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,s=o>=t.hours&&a>=t.minutes,i=o<n.hours||o===n.hours&&a<n.minutes;if(t.hours<n.hours){if(s&&i)return!0}else if(s||i)return!0}else if(e.hours===o&&e.minutes===a)return!0;return!1});if(-1!==r)return n[r]}return uy(t,i,s)[o<12?0:1];case Ey.Eras:return function(e,t){return _y(Ch(e)[Sh.Eras],t)}(t,s)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(i,r,e,t,n,s)}}function Ny(e){return function(t,n,s){const i=-1*s,r=my(n,ly.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case Ty.Short:return(i>=0?"+":"")+My(o,2,r)+My(Math.abs(i%60),2,r);case Ty.ShortGMT:return"GMT"+(i>=0?"+":"")+My(o,1,r);case Ty.Long:return"GMT"+(i>
3=0?"+":"")+My(o,2,r)+":"+My(Math.abs(i%60),2,r);case Ty.Extended:return 0===s?"Z":(i>=0?"+":"")+My(o,2,r)+":"+My(Math.abs(i%60),2,r);default:throw new Error(`Unknown zone width "${e}"`)}}}!function(e){e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended"}(Ty||(Ty={})),function(e){e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day"}(Dy||(Dy={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(Ey||(Ey={}));function Ly(e){return Iy(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Vy(e,t=!1){return function(n,s){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=Ly(n),t=function(e){const t=Iy(e,0,1).getDay();return Iy(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),s=e.getTime()-t.getTime();i=1+Math.round(s/6048e5)}return My(i,e,my(s,ly.MinusSign))}}function jy(e,t=!1){return function(n,s){return My(Ly(n).getFullYear(),e,my(s,ly.MinusSign),t)}}const By={};function $y(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function zy(e){return e instanceof Date&&!isNaN(e.valueOf())}const Uy=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Hy(e,t,n,s,i,r,o=!1){let a="",l=!1;if(isFinite(e)){let c=function(e){let t,n,s,i,r,o=Math.abs(e)+"",a=0;(n=o.indexOf("."))>-1&&(o=o.replace(".",""));(s=o.search(/e/i))>0?(n<0&&(n=s),n+=+o.slice(s+1),o=o.substring(0,s)):n<0&&(n=o.length);for(s=0;"0"===o.charAt(s);s++);if(s===(r=o.length))t=[0],n=1;else{for(r--;"0"===o.charAt(r);)r--;for(n-=s,t=[],i=0;s<=r;s++,i++)t[i]=Number(o.charAt(s))}n>22&&(t=t.splice(0,21),a=n-1,n=1);return{digits:t,exponent:a,integerLen:n}}(e);o&&(c=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2);return e}(c));let u=t.minInt,h=t.minFrac,d=t.maxFrac;if(r){const e=r.match(Uy);if(null===e)throw new Error(`${r} is not a valid digit info`);const t=e[1],n=e[3],s=e[5];null!=t&&(u=Ky(t)),null!=n&&(h=Ky(n)),null!=s?d=Ky(s):null!=n&&h>d&&(d=h)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let s=e.digits,i=s.length-e.integerLen;const r=Math.min(Math.max(t,i),n);let o=r+e.integerLen,a=s[o];if(o>0){s.splice(Math.max(e.integerLen,o));for(let e=o;e<s.length;e++)s[e]=0}else{i=Math.max(0,i),e.integerLen=1,s.length=Math.max(1,o=r+1),s[0]=0;for(let e=1;e<o;e++)s[e]=0}if(a>=5)if(o-1<0){for(let t=0;t>o;t--)s.unshift(0),e.integerLen++;s.unshift(1),e.integerLen++}else s[o-1]++;for(;i<Math.max(0,r);i++)s.push(0);let l=0!==r;const c=t+e.integerLen,u=s.reduceRight(function(e,t,n,s){return t+=e,s[n]=t<10?t:t-10,l&&(0===s[n]&&n>=c?s.pop():l=!1),t>=10?1:0},0);u&&(s.unshift(u),e.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(l=p.every(e=>!e);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=p,p=[0]);const y=[];for(p.length>=t.lgSize&&y.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)y.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(my(n,s)),m.length&&(a+=my(n,i)+m.join("")),g&&(a+=my(n,ly.Exponential)+"+"+g)}else a=my(n,ly.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function qy(e,t,n,s,i){const r=Wy(yy(t,sy.Currency),my(t,ly.MinusSign));r.minFrac=function(e){let t;const n=ny[e];return n&&(t=n[2]),"number"==typeof t?t:2}(s),r.maxFrac=r.minFrac;return Hy(e,r,t,ly.CurrencyGroup,ly.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}function Wy(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},s=e.split(";"),i=s[0],r=s[1],o=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const e=l.charAt(u);"0"===e?n.minFrac=n.maxFrac=u+1:"#"===e?n.maxFrac=u+1:n.posSuf+=e}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 e=i.length-n.posPre.length-n.posSuf.length,t=r.indexOf("#");n.negPre=r.substr(0,t).replace(/'/g,""),n.negSuf=r.substr(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function Ky(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class Gy{}function Zy(e,t,n,s){let i=`=${e}`;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,s),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}class Qy extends Gy{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(by(t||this.locale)(e)){case iy.Zero:return"zero";case iy.One:return"one";case iy.Two:return"two";case iy.Few:return"few";case iy.Many:return"many";default:return"other"}}}
3function Yy(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(i)}return null}Qy.\u0275fac=function(e){return new(e||Qy)(ri(jg))},Qy.\u0275prov=ve({token:Qy,factory:Qy.\u0275fac}),Qy.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];class Jy{constructor(e,t,n,s){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(wl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ie(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}Jy.\u0275fac=function(e){return new(e||Jy)(kc(mp),kc(bp),kc(Yd),kc(ep))},Jy.\u0275dir=ot({type:Jy,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Jy.ctorParameters=()=>[{type:mp},{type:bp},{type:Yd},{type:ep}],Jy.propDecorators={klass:[{type:Cg,args:["class"]}],ngClass:[{type:Cg,args:["ngClass"]}]};class Xy{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(Fp);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(Kd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}Xy.\u0275fac=function(e){return new(e||Xy)(kc(Lp))},Xy.\u0275dir=ot({type:Xy,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[_t]}),Xy.ctorParameters=()=>[{type:Lp}],Xy.propDecorators={ngComponentOutlet:[{type:Cg}],ngComponentOutletInjector:[{type:Cg}],ngComponentOutletContent:[{type:Cg}],ngComponentOutletNgModuleFactory:[{type:Cg}]};class eb{constructor(e,t,n,s){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=s}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}}class tb{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,s)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new eb(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new nb(e,n);t.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new nb(e,i);t.push(r)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const e=this._viewContainer.get(n);
3e.context.index=n,e.context.count=s,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}tb.\u0275fac=function(e){return new(e||tb)(kc(Lp),kc(Ip),kc(mp))},tb.\u0275dir=ot({type:tb,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),tb.ctorParameters=()=>[{type:Lp},{type:Ip},{type:mp}],tb.propDecorators={ngForOf:[{type:Cg}],ngForTrackBy:[{type:Cg}],ngForTemplate:[{type:Cg}]};class nb{constructor(e,t){this.record=e,this.view=t}}class sb{constructor(e,t){this._viewContainer=e,this._context=new ib,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rb("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}sb.\u0275fac=function(e){return new(e||sb)(kc(Lp),kc(Ip))},sb.\u0275dir=ot({type:sb,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),sb.ctorParameters=()=>[{type:Lp},{type:Ip}],sb.propDecorators={ngIf:[{type:Cg}],ngIfThen:[{type:Cg}],ngIfElse:[{type:Cg}]};class ib{constructor(){this.$implicit=null,this.ngIf=null}}function rb(e,t){if(!!(t&&!t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}class ob{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class ab{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++){this._defaultViews[t].enforceState(e)}}}}ab.\u0275fac=function(e){return new(e||ab)},ab.\u0275dir=ot({type:ab,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),ab.propDecorators={ngSwitch:[{type:Cg}]};class lb{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ob(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}lb.\u0275fac=function(e){return new(e||lb)(kc(Lp),kc(Ip),kc(ab,9))},lb.\u0275dir=ot({type:lb,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),lb.ctorParameters=()=>[{type:Lp},{type:Ip},{type:ab,decorators:[{type:di},{type:gi}]}],lb.propDecorators={ngSwitchCase:[{type:Cg}]};class cb{constructor(e,t,n){n._addDefault(new ob(e,t))}}cb.\u0275fac=function(e){return new(e||cb)(kc(Lp),kc(Ip),kc(ab,9))},cb.\u0275dir=ot({type:cb,selectors:[["","ngSwitchDefault",""]]}),cb.ctorParameters=()=>[{type:Lp},{type:Ip},{type:ab,decorators:[{type:di},{type:gi}]}];class ub{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=Zy(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}ub.\u0275fac=function(e){return new(e||ub)(kc(Gy))},ub.\u0275dir=ot({type:ub,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),ub.ctorParameters=()=>[{type:Gy}],ub.propDecorators={ngPlural:[{type:Cg}]};class hb{constructor(e,t,n,s){this.value=e;const i=!isNaN(Number(e));s.addCase(i?`=${e}`:e,new ob(n,t))}}hb.\u0275fac=function(e){return new(e||hb)(gs("ngPluralCase"),kc(Ip),kc(Lp),kc(ub,1))},hb.\u0275dir=ot({type:hb,selectors:[["","ngPluralCase",""]]}),hb.ctorParameters=()=>[{type:String,decorators:[{type:xs,args:["ngPluralCase"]}]},{type:Ip},{type:Lp},{type:ub,decorators:[{type:gi}]}];class db{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,s]=e.split(".");null!=(t=null!=t&&s?`${t}${s}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}db.\u0275fac=function(e){return new(e||db)(kc(Yd),kc(bp),kc(ep))},db.\u0275dir=ot({type:db,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
3),db.ctorParameters=()=>[{type:Yd},{type:bp},{type:ep}],db.propDecorators={ngStyle:[{type:Cg,args:["ngStyle"]}]};class pb{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}pb.\u0275fac=function(e){return new(e||pb)(kc(Lp))},pb.\u0275dir=ot({type:pb,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[_t]}),pb.ctorParameters=()=>[{type:Lp}],pb.propDecorators={ngTemplateOutletContext:[{type:Cg}],ngTemplateOutlet:[{type:Cg}]};function fb(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${ie(e)}'`)}const gb=new class{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}},mb=new class{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}};class yb{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(Nc(e))return gb;if(Lc(e))return mb;throw fb(yb,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}yb.\u0275fac=function(e){return new(e||yb)(Kf())},yb.\u0275pipe=at({name:"async",type:yb,pure:!1}),yb.ctorParameters=()=>[{type:xp}];class bb{transform(e){if(null==e)return null;if("string"!=typeof e)throw fb(bb,e);return e.toLowerCase()}}bb.\u0275fac=function(e){return new(e||bb)},bb.\u0275pipe=at({name:"lowercase",type:bb,pure:!0});const vb
vendor: 7,066 bytes, line 3
3=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g
3;class _b{transform(e){if(null==e)return null;if("string"!=typeof e)throw fb(_b,e);return e.replace(vb,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}_b.\u0275fac=function(e){return new(e||_b)},_b.\u0275pipe=at({name:"titlecase",type:_b,pure:!0});class wb{transform(e){if(null==e)return null;if("string"!=typeof e)throw fb(wb,e);return e.toUpperCase()}}wb.\u0275fac=function(e){return new(e||wb)},wb.\u0275pipe=at({name:"uppercase",type:wb,pure:!0});class Cb{constructor(e){this.locale=e}transform(e,t="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return Oy(e,t,s||this.locale,n)}catch(i){throw fb(Cb,i.message)}}}Cb.\u0275fac=function(e){return new(e||Cb)(kc(jg))},Cb.\u0275pipe=at({name:"date",type:Cb,pure:!0}),Cb.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];const xb=/#/g;class kb{constructor(e){this._localization=e}transform(e,t,n){if(null==e)return"";if("object"!=typeof t||null===t)throw fb(kb,t);return t[Zy(e,Object.keys(t),this._localization,n)].replace(xb,e.toString())}}kb.\u0275fac=function(e){return new(e||kb)(kc(Gy))},kb.\u0275pipe=at({name:"i18nPlural",type:kb,pure:!0}),kb.ctorParameters=()=>[{type:Gy}];class Sb{transform(e,t){if(null==e)return"";if("object"!=typeof t||"string"!=typeof e)throw fb(Sb,t);return t.hasOwnProperty(e)?t[e]:t.hasOwnProperty("other")?t.other:""}}Sb.\u0275fac=function(e){return new(e||Sb)},Sb.\u0275pipe=at({name:"i18nSelect",type:Sb,pure:!0});class Tb{transform(e){return JSON.stringify(e,null,2)}}Tb.\u0275fac=function(e){return new(e||Tb)},Tb.\u0275pipe=at({name:"json",type:Tb,pure:!1});class Db{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=Eb){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{var t,n;this.keyValues.push((t=e.key,n=e.currentValue,{key:t,value:n}))}),this.keyValues.sort(t)),this.keyValues}}function Eb(e,t){const n=e.key,s=t.key;if(n===s)return 0;if(void 0===n)return 1;if(void 0===s)return-1;if(null===n)return 1;if(null===s)return-1;if("string"==typeof n&&"string"==typeof s)return n<s?-1:1;if("number"==typeof n&&"number"==typeof s)return n-s;if("boolean"==typeof n&&"boolean"==typeof s)return n<s?-1:1;const i=String(n),r=String(s);return i==r?0:i<r?-1:1}Db.\u0275fac=function(e){return new(e||Db)(kc(bp))},Db.\u0275pipe=at({name:"keyvalue",type:Db,pure:!1}),Db.ctorParameters=()=>[{type:bp}];class Ob{constructor(e){this._locale=e}transform(e,t,n){if(!Ab(e))return null;n=n||this._locale;try{return function(e,t,n){return Hy(e,Wy(yy(t,sy.Decimal),my(t,ly.MinusSign)),t,ly.Group,ly.Decimal,n)}(Mb(e),n,t)}catch(s){throw fb(Ob,s.message)}}}Ob.\u0275fac=function(e){return new(e||Ob)(kc(jg))},Ob.\u0275pipe=at({name:"number",type:Ob,pure:!0}),Ob.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];class Ib{constructor(e){this._locale=e}transform(e,t,n){if(!Ab(e))return null;n=n||this._locale;try{return function(e,t,n){return Hy(e,Wy(yy(t,sy.Percent),my(t,ly.MinusSign)),t,ly.Group,ly.Decimal,n,!0).replace(new RegExp("%","g"),my(t,ly.PercentSign))}(Mb(e),n,t)}catch(s){throw fb(Ib,s.message)}}}Ib.\u0275fac=function(e){return new(e||Ib)(kc(jg))},Ib.\u0275pipe=at({name:"percent",type:Ib,pure:!0}),Ib.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];class Pb{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(e,t,n="symbol",s,i){if(!Ab(e))return null;i=i||this._locale,"boolean"==typeof n&&(n=n?"symbol":"code");let r=t||this._defaultCurrencyCode;"code"!==n&&(r="symbol"===n||"symbol-narrow"===n?Cy(r,"symbol"===n?"wide":"narrow",i):n);try{return qy(Mb(e),i,r,t,s)}catch(o){throw fb(Pb,o.message)}}}function Ab(e){return!(null==e||""===e||e!=e)}function Mb(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}Pb.\u0275fac=function(e){return new(e||Pb)(kc(jg),kc(Bg))},Pb.\u0275pipe=at({name:"currency",type:Pb,pure:!0}),Pb.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]},{type:String,decorators:[{type:hi,args:[Bg]}]}];class Fb{transform(e,t,n){if(null==e)return null;if(!this.supports(e))throw fb(Fb,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}}Fb.\u0275fac=function(e){return new(e||Fb)},Fb.\u0275pipe=at({name:"slice",type:Fb,pure:!1});class Rb{}Rb.\u0275fac=function(e){return new(e||Rb)},Rb.\u0275mod=st({type:Rb}),Rb.\u0275inj=_e({providers:[{provide:Gy,useClass:Qy}]});function Nb(e){return"browser"===e}new sp("11.2.14");class Lb{}Lb.\u0275prov=ve({token:Lb,providedIn:"root",factory:()=>new Vb(ri(Vm),window)});class Vb{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const e=s.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}s=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],s-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=jb(this.window.history)||jb(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function jb(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}(()=>
3{if(Be.Node)Be.Node.prototype.contains})();class Bb extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new Bb,Nm||(Nm=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=function(){if(!zb&&(zb=document.querySelector("base"),!zb))return null;return zb.getAttribute("href")}();return null==t?null:function(e){$b||($b=document.createElement("a"));return $b.setAttribute("href",e),"/"===$b.pathname.charAt(0)?$b.pathname:"/"+$b.pathname}(t)}resetBaseElement(){zb=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Yy(document.cookie,e)}}let $b,zb=null;const Ub=new ks("TRANSITION_ID");const Hb=[{provide:Ig,useFactory:function(e,t,n){return()=>{n.get(Pg).donePromise.then(()=>{const n=Lm();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Ub,Vm,il],multi:!0}];class qb{static init(){var e;e=new qb,cm=e}addToWindow(e){Be.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Be.getAllAngularTestabilities=()=>e.getAllTestabilities(),Be.getAllAngularRootElements=()=>e.getAllRootElements();Be.frameworkStabilizers||(Be.frameworkStabilizers=[]),Be.frameworkStabilizers.push(e=>{const t=Be.getAllAngularTestabilities();let n=t.length,s=!1;const i=function(t){s=s||t,n--,0==n&&e(s)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?Lm().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}function Wb(e,t){if("undefined"==typeof COMPILED||!COMPILED){(Be.ng=Be.ng||{})[e]=t}}const Kb={ApplicationRef:Cm,NgZone:Xg};function Gb(e){return Im(e)}new di;const Zb=[],Qb=new ks("EventManagerPlugins");class Yb{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s<n.length;s++){const t=n[s];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}Yb.\u0275fac=function(e){return new(e||Yb)(ri(Qb),ri(Xg))},Yb.\u0275prov=ve({token:Yb,factory:Yb.\u0275fac}),Yb.ctorParameters=()=>[{type:Array,decorators:[{type:hi,args:[Qb]}]},{type:Xg}];class Jb{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const s=Lm().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,n)}}class Xb{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}Xb.\u0275fac=function(e){return new(e||Xb)},Xb.\u0275prov=ve({token:Xb,factory:Xb.\u0275fac});class ev extends Xb{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}
3_addStylesToHost(e,t,n){e.forEach(e=>{const s=this._doc.createElement("style");s.textContent=e,n.push(t.appendChild(s))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(tv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(tv))}}function tv(e){Lm().remove(e)}ev.\u0275fac=function(e){return new(e||ev)(ri(Vm))},ev.\u0275prov=ve({token:ev,factory:ev.\u0275fac}),ev.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];const nv={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/"},sv=/%COMP%/g,iv="_nghost-%COMP%",rv="_ngcontent-%COMP%";function ov(e,t,n){for(let s=0;s<t.length;s++){let i=t[s];Array.isArray(i)?ov(e,i,n):(i=i.replace(sv,e),n.push(i))}return n}function av(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class lv{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new cv(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Re.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new uv(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Re.ShadowDom:return new hv(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=ov(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}lv.\u0275fac=function(e){return new(e||lv)(ri(Yb),ri(ev),ri(Ag))},lv.\u0275prov=ve({token:lv,factory:lv.\u0275fac}),lv.ctorParameters=()=>[{type:Yb},{type:ev},{type:String,decorators:[{type:hi,args:[Ag]}]}];class cv{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(nv[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const i=nv[s];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=nv[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&(Br.DashCase|Br.Important)?e.style.setProperty(t,n,s&Br.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Br.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,av(n)):this.eventManager.addEventListener(e,t,av(n))}}"@".charCodeAt(0);class uv extends cv{constructor(e,t,n,s){super(e),this.component=n;const i=ov(s+"-"+n.id,n.styles,[]);var r;t.addStyles(i),this.contentAttr=(r=s+"-"+n.id,rv.replace(sv,r)),this.hostAttr=function(e){return iv.replace(sv,e)}(s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class hv extends cv{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=ov(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const e=document.createElement("style");e.textContent=i[r],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}
3class dv extends Jb{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}dv.\u0275fac=function(e){return new(e||dv)(ri(Vm))},dv.\u0275prov=ve({token:dv,factory:dv.\u0275fac}),dv.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];const pv={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},fv=new ks("HammerGestureConfig"),gv=new ks("HammerLoader");class mv{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}mv.\u0275fac=function(e){return new(e||mv)},mv.\u0275prov=ve({token:mv,factory:mv.\u0275fac});class yv extends Jb{constructor(e,t,n,s){super(e),this._config=t,this.console=n,this.loader=s,this._loaderPromise=null}supports(e){return!(!pv.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&!(!window.Hammer&&!this.loader)}addEventListener(e,t,n){const s=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let s=!1,i=()=>{s=!0};return this._loaderPromise.then(()=>{window.Hammer?s||(i=this.addEventListener(e,t,n)):i=()=>{}}
3).catch(()=>{i=()=>{}}),()=>{i()}}return s.runOutsideAngular(()=>{const i=this._config.buildHammer(e),r=function(e){s.runGuarded(function(){n(e)})};return i.on(t,r),()=>{i.off(t,r),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}yv.\u0275fac=function(e){return new(e||yv)(ri(Vm),ri(fv),ri(Vg),ri(gv,8))},yv.\u0275prov=ve({token:yv,factory:yv.\u0275fac}),yv.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:mv,decorators:[{type:hi,args:[fv]}]},{type:Vg},{type:void 0,decorators:[{type:di},{type:hi,args:[gv]}]}];const bv=[{provide:Qb,useClass:yv,multi:!0,deps:[Vm,fv,Vg,[new di,gv]]},{provide:fv,useClass:mv,deps:[]}],vv=[];class _v{}_v.\u0275fac=function(e){return new(e||_v)},_v.\u0275mod=st({type:_v}),_v.\u0275inj=_e({providers:bv});const wv=["alt","control","meta","shift"],Cv={"\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"},xv={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"},kv={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Sv extends Jb{constructor(e){super(e)}supports(e){return null!=Sv.parseEventName(e)}addEventListener(e,t,n){const s=Sv.parseEventName(t),i=Sv.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lm().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const s=Sv._normalizeKey(t.pop());let i="";if(wv.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=s,0!=t.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=i,r}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&xv.hasOwnProperty(t)&&(t=xv[t]))}return Cv[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),wv.forEach(s=>{if(s!=n){(0,kv[s])(e)&&(t+=s+".")}}),t+=n,t}static eventCallback(e,t,n){return s=>{Sv.getEventFullKey(s)===e&&n.runGuarded(()=>t(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}Sv.\u0275fac=function(e){return new(e||Sv)(ri(Vm))},Sv.\u0275prov=ve({token:Sv,factory:Sv.\u0275fac}),Sv.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];class Tv{}function Dv(e){return new Ev(e.get(Vm))}Tv.\u0275fac=function(e){return new(e||Tv)},Tv.\u0275prov=ve({factory:function(){return ri(Ev)},token:Tv,providedIn:"root"});class Ev extends Tv{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case yr.NONE:return t;case yr.HTML:return Bi(t,"HTML")?ji(t):gr(this._doc,String(t)).toString();case yr.STYLE:return Bi(t,"Style")?ji(t):t;case yr.SCRIPT:if(Bi(t,"Script"))return ji(t);throw new Error("unsafe value used in a script context");case yr.URL:$i(t);return Bi(t,"URL")?ji(t):Ki(String(t));case yr.RESOURCE_URL:if(Bi(t,"ResourceURL"))return ji(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new Fi(e)}bypassSecurityTrustStyle(e){return new Ri(e)}bypassSecurityTrustScript(e){return new Ni(e)}bypassSecurityTrustUrl(e){return new Li(e)}bypassSecurityTrustResourceUrl(e){return new Vi(e)}}Ev.\u0275fac=function(e){return new(e||Ev)(ri(Vm))},Ev.\u0275prov=ve({factory:function(){return Dv(ri(za))},token:Ev,providedIn:"root"}),Ev.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];const Ov=[],Iv=bm(Pm,"browser",[{provide:Ng,useValue:"browser"},{provide:Rg,useValue:function(){Bb.makeCurrent(),qb.init()},multi:!0},{provide:Vm,useFactory:function(){return function(e){Dt=e}(document),document},deps:[]}]),Pv=[Ov,{provide:Ha,useValue:"root"},{provide:Ir,useFactory:function(){return new Ir},deps:[]},{provide:Qb,useClass:dv,multi:!0,deps:[Vm,Xg,Ng]},{provide:Qb,useClass:Sv,multi:!0,deps:[Vm]},vv,{provide:lv,useClass:lv,deps:[Yb,ev,Ag]},{provide:Xd,useExisting:lv},{provide:Xb,useExisting:ev},{provide:ev,useClass:ev,deps:[Vm]},{provide:om,useClass:om,deps:[Xg]},{provide:Yb,useClass:Yb,deps:[Qb,Xg]},Zb];class Av{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:Av,providers:[{provide:Ag,useValue:e.appId},{provide:Ub,useExisting:Ag},Hb]}}}function Mv(){return new Fv(ri(Vm))}Av.\u0275fac=function(e){return new(e||Av)(ri(Av,12))},Av.\u0275mod=st({type:Av}),Av.\u0275inj=_e({providers:Pv,imports:[Rb,Mm]}),Av.ctorParameters=()=>[{type:Av,decorators:[{type:di},{type:fi},{type:hi,args:[Av]}]}];class Fv{constructor(e){this._doc=e,this._dom=Lm()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}
3_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTag(t);if(n&&this._containsAttributes(e,n))return n}const n=this._dom.createElement("meta");this._setMetaElementAttributes(e,n);return this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(n=>t.setAttribute(this._getMetaKeyMap(n),e[n])),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(n=>t.getAttribute(this._getMetaKeyMap(n))===e[n])}_getMetaKeyMap(e){return Rv[e]||e}}Fv.\u0275fac=function(e){return new(e||Fv)(ri(Vm))},Fv.\u0275prov=ve({factory:Mv,token:Fv,providedIn:"root"}),Fv.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];const Rv={httpEquiv:"http-equiv"};function Nv(){return new Lv(ri(Vm))}class Lv{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}Lv.\u0275fac=function(e){return new(e||Lv)(ri(Vm))},Lv.\u0275prov=ve({factory:Nv,token:Lv,providedIn:"root"}),Lv.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];"undefined"!=typeof window&&window;class Vv{constructor(){this.store={},this.onSerializeCallbacks={}}static init(e){const t=new Vv;return t.store=e,t}get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)}}function jv(e,t){const n=e.getElementById(t+"-state");let s={};if(n&&n.textContent)try{s=JSON.parse(function(e){const t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,e=>t[e])}(n.textContent))}catch(i){console.warn("Exception while restoring TransferState for app "+t,i)}return Vv.init(s)}Vv.\u0275fac=function(e){return new(e||Vv)},Vv.\u0275prov=ve({token:Vv,factory:Vv.\u0275fac});class Bv{}Bv.\u0275fac=function(e){return new(e||Bv)},Bv.\u0275mod=st({type:Bv}),Bv.\u0275inj=_e({providers:[{provide:Vv,useFactory:jv,deps:[Vm,Ag]}]});new sp("11.2.14");function $v(...e){let t=e[e.length-1];return T(t)?(e.pop(),R(e,t)):q(e)}function zv(e,t){return $(e,t,1)}function Uv(e,t){return function(n){return n.lift(new Hv(e,t))}}class Hv{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new qv(e,this.predicate,this.thisArg))}}class qv extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class Wv{}class Kv{}class Gv{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),s=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const s=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Gv?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e
vendor: 5,695 bytes, line 3
3=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Gv;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Gv?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const s=("a"===e.op?this.headers.get(t):void 0)||[];s.push(...n),this.headers.set(t,s);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Zv{encodeKey(e){return Qv(e)}encodeValue(e){return Qv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Qv(e){return encodeURIComponent(e).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 Yv{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Zv,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const s=e.indexOf("="),[i,r]=-1==s?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,s)),t.decodeValue(e.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,o)});return n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const s=e[n];Array.isArray(s)?s.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:s,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Yv({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function Jv(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Xv(e){return"undefined"!=typeof Blob&&e instanceof Blob}function e_(e){return"undefined"!=typeof FormData&&e instanceof FormData}class t_{constructor(e,t,n,s){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Gv),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?"),s=-1===n?"?":n<t.length-1?"&":"";this.urlWithParams=t+s+e}}else this.params=new Yv,this.urlWithParams=t}serializeBody(){return null===this.body?null:Jv(this.body)||Xv(this.body)||e_(this.body)||"string"==typeof this.body?this.body:this.body instanceof Yv?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||e_(this.body)?null:Xv(this.body)?this.body.type||null:Jv(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Yv?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,s=e.responseType||this.responseType,i=void 0!==e.body?e.body:this.body,r=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new t_(t,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var n_;
3!function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(n_||(n_={}));class s_{constructor(e,t=200,n="OK"){this.headers=e.headers||new Gv,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class i_ extends s_{constructor(e={}){super(e),this.type=n_.ResponseHeader}clone(e={}){return new i_({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class r_ extends s_{constructor(e={}){super(e),this.type=n_.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new r_({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class o_ extends s_{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function a_(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class l_{constructor(e){this.handler=e}request(e,t,n={}){let s;if(e instanceof t_)s=e;else{let i,r;i=n.headers instanceof Gv?n.headers:new Gv(n.headers),n.params&&(r=n.params instanceof Yv?n.params:new Yv({fromObject:n.params})),s=new t_(e,t,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=$v(s).pipe(zv(e=>this.handler.handle(e)));if(e instanceof t_||"events"===n.observe)return i;const r=i.pipe(Uv(e=>e instanceof r_));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(D(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return r.pipe(D(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return r.pipe(D(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return r.pipe(D(e=>e.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Yv).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,a_(n,t))}post(e,t,n={}){return this.request("POST",e,a_(n,t))}put(e,t,n={}){return this.request("PUT",e,a_(n,t))}}l_.\u0275fac=function(e){return new(e||l_)(ri(Wv))},l_.\u0275prov=ve({token:l_,factory:l_.\u0275fac}),l_.ctorParameters=()=>[{type:Wv}];class c_{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const u_=new ks("HTTP_INTERCEPTORS");class h_{intercept(e,t){return t.handle(e)}}h_.\u0275fac=function(e){return new(e||h_)},h_.\u0275prov=ve({token:h_,factory:h_.\u0275fac});let d_=0;class p_{}class f_{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+d_++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new v(t=>{const n=this.nextCallback(),s=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${n}$1`),i=this.document.createElement("script");i.src=s;let r=null,o=!1,a=!1;this.callbackMap[n]=e=>{delete this.callbackMap[n],a||(r=e,o=!0)};const l=()=>{i.parentNode&&i.parentNode.removeChild(i),delete this.callbackMap[n]},c=e=>{a||this.resolvedPromise.then(()=>{l(),o?(t.next(new r_({body:r,status:200,statusText:"OK",url:s})),t.complete()):t.error(new o_({url:s,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},u=e=>{a||(l(),t.error(new o_({error:e,status:0,statusText:"JSONP Error",url:s})))};return i.addEventListener("load",c),i.addEventListener("error",u),this.document.body.appendChild(i),t.next({type:n_.Sent}),()=>{a=!0,i.removeEventListener("load",c),i.removeEventListener("error",u),l()}})}}f_.\u0275fac=function(e){return new(e||f_)(ri(p_),ri(Vm))},f_.\u0275prov=ve({token:f_,factory:f_.\u0275fac}),f_.ctorParameters=()=>[{type:p_},{type:void 0,decorators:[{type:hi,args:[Vm]}]}];class g_{constructor(e){this.jsonp=e}intercept(e,t){return"JSONP"===e.method?this.jsonp.handle(e):t.handle(e)}}g_.\u0275fac=function(e){return new(e||g_)(ri(f_))},g_.\u0275prov=ve({token:g_,factory:g_.\u0275fac}),g_.ctorParameters=()=>[{type:f_}];const m_=/^\)\]\}',?\n/;class y_{}class b_{constructor(){}build(){return new XMLHttpRequest}}b_.\u0275fac=function(e){return new(e||b_)},b_.\u0275prov=ve({token:b_,factory:b_.\u0275fac}),b_.ctorParameters=()=>[];class v_{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEac
3h((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const s=e.serializeBody();let i=null;const r=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,s=n.statusText||"OK",r=new Gv(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new i_({headers:r,status:t,statusText:s,url:o}),i},o=()=>{let{headers:s,status:i,statusText:o,url:a}=r(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(m_,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new r_({body:l,headers:s,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new o_({error:l,headers:s,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:s}=r(),i=new o_({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});t.error(i)};let l=!1;const c=s=>{l||(t.next(r()),l=!0);let i={type:n_.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(i.total=s.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},u=e=>{let n={type:n_.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),t.next({type:n_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}v_.\u0275fac=function(e){return new(e||v_)(ri(y_))},v_.\u0275prov=ve({token:v_,factory:v_.\u0275fac}),v_.ctorParameters=()=>[{type:y_}];const __=new ks("XSRF_COOKIE_NAME"),w_=new ks("XSRF_HEADER_NAME");class C_{}class x_{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Yy(e,this.cookieName),this.lastCookieString=e),this.lastToken}}x_.\u0275fac=function(e){return new(e||x_)(ri(Vm),ri(Ng),ri(__))},x_.\u0275prov=ve({token:x_,factory:x_.\u0275fac}),x_.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:String,decorators:[{type:hi,args:[Ng]}]},{type:String,decorators:[{type:hi,args:[__]}]}];class k_{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const s=this.tokenService.getToken();return null===s||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,s)})),t.handle(e)}}k_.\u0275fac=function(e){return new(e||k_)(ri(C_),ri(w_))},k_.\u0275prov=ve({token:k_,factory:k_.\u0275fac}),k_.ctorParameters=()=>[{type:C_},{type:String,decorators:[{type:hi,args:[w_]}]}];class S_{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(u_,[]);this.chain=e.reduceRight((e,t)=>new c_(e,t),this.backend)}return this.chain.handle(e)}}function T_(){return"object"==typeof window?window:{}}S_.\u0275fac=function(e){return new(e||S_)(ri(Kv),ri(il))},S_.\u0275prov=ve({token:S_,factory:S_.\u0275fac}),S_.ctorParameters=()=>[{type:Kv},{type:il}];class D_{static disable(){return{ngModule:D_,providers:[{provide:k_,useClass:h_}]}}static withOptions(e={}){return{ngModule:D_,providers:[e.cookieName?{provide:__,useValue:e.cookieName}:[],e.headerName?{provide:w_,useValue:e.headerName}:[]]}}}D_.\u0275fac=function(e){return new(e||D_)},D_.\u0275mod=st({type:D_}),D_.\u0275inj=_e({providers:[k_,{provide:u_,useExisting:k_,multi:!0},{provide:C_,useClass:x_},{provide:__,useValue:"XSRF-TOKEN"},{provide:w_,useValue:"X-XSRF-TOKEN"}
3]});class E_{}E_.\u0275fac=function(e){return new(e||E_)},E_.\u0275mod=st({type:E_}),E_.\u0275inj=_e({providers:[l_,{provide:Wv,useClass:S_},v_,{provide:Kv,useExisting:v_},b_,{provide:y_,useExisting:b_}],imports:[[D_.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]});class O_{}function I_(e,t){return new v(n=>{const s=e.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=L(e[a]);let c=!1;n.add(l.subscribe({next:e=>{c||(c=!0,o++),i[a]=e},error:e=>n.error(e),complete:()=>{r++,r!==s&&c||(o===s&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}O_.\u0275fac=function(e){return new(e||O_)},O_.\u0275mod=st({type:O_}),O_.\u0275inj=_e({providers:[f_,{provide:p_,useFactory:T_},{provide:u_,useClass:g_,multi:!0}]});class P_{}const A_=new ks("NgValueAccessor"),M_={provide:A_,useExisting:ae(()=>F_),multi:!0};class F_ extends P_{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}F_.\u0275fac=function(e){return new(e||F_)(kc(ep),kc(Yd))},F_.\u0275dir=ot({type:F_,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&jc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[zd([M_]),ul]}),F_.ctorParameters=()=>[{type:ep},{type:Yd}];const R_={provide:A_,useExisting:ae(()=>L_),multi:!0};const N_=new ks("CompositionEventMode");class L_{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Lm()?Lm().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){const t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}function V_(e){return null==e||0===e.length}function j_(e){return null!=e&&"number"==typeof e.length}L_.\u0275fac=function(e){return new(e||L_)(kc(ep),kc(Yd),kc(N_,8))},L_.\u0275dir=ot({type:L_,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&jc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[zd([R_])]}),L_.ctorParameters=()=>[{type:ep},{type:Yd},{type:Boolean,decorators:[{type:di},{type:hi,args:[N_]}]}];const B_=new ks("NgValidators"),$_=new ks("NgAsyncValidators"),z_=/^(?=.{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 U_{static min(e){return function(e){return t=>{if(V_(t.value)||V_(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)}static max(e){return function(e){return t=>{if(V_(t.value)||V_(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return H_(e)}static requiredTrue(e){return q_(e)}static email(e){return W_(e)}static minLength(e){return K_(e)}static maxLength(e){return G_(e)}static pattern(e){return Z_(e)}static nullValidator(e){return null}static compose(e){return nw(e)}static composeAsync(e){return iw(e)}}function H_(e){return V_(e.value)?{required:!0}:null}function q_(e){return!0===e.value?null:{required:!0}}function W_(e){return V_(e.value)||z_.test(e.value)?null:{email:!0}}function K_(e){return t=>V_(t.value)||!j_(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function G_(e){return t=>j_(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Z_(e){if(!e)return Q_;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(V_(e.value))return null;const s=e.value;return t.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}function Q_(e){return null}function Y_(e){return null!=e}function J_(e){const t=Nc(e)?L(e):e;return Vc(t),t}function X_(e){let t={};
3return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function ew(e,t){return t.map(t=>t(e))}function tw(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function nw(e){if(!e)return null;const t=e.filter(Y_);return 0==t.length?null:function(e){return X_(ew(e,t))}}function sw(e){return null!=e?nw(tw(e)):null}function iw(e){if(!e)return null;const t=e.filter(Y_);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return I_(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return I_(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return I_(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(D(e=>t(...e)))}return I_(e,null)}(ew(e,t).map(J_)).pipe(D(X_))}}function rw(e){return null!=e?iw(tw(e)):null}function ow(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function aw(e){return e._rawValidators}function lw(e){return e._rawAsyncValidators}class cw{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(e){this._rawValidators=e||[],this._composedValidatorFn=sw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=rw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}cw.\u0275fac=function(e){return new(e||cw)},cw.\u0275dir=ot({type:cw});class uw extends cw{get formDirective(){return null}get path(){return null}}uw.\u0275fac=function(e){return hw(e||uw)},uw.\u0275dir=ot({type:uw,features:[ul]});const hw=ps(uw);class dw extends cw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pw{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}class fw extends pw{constructor(e){super(e)}}fw.\u0275fac=function(e){return new(e||fw)(kc(dw,2))},fw.\u0275dir=ot({type:fw,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&yu("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[ul]}),fw.ctorParameters=()=>[{type:dw,decorators:[{type:pi}]}];class gw extends pw{constructor(e){super(e)}}gw.\u0275fac=function(e){return new(e||gw)(kc(uw,10))},gw.\u0275dir=ot({type:gw,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&yu("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[ul]}),gw.ctorParameters=()=>[{type:uw,decorators:[{type:di},{type:pi}]}];function mw(e,t){return[...t.path,e]}function yw(e,t){_w(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Cw(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Cw(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function bw(e,t,n=!0){const s=()=>{0};t.valueAccessor&&(t.valueAccessor.registerOnChange(s),t.valueAccessor.registerOnTouched(s)),ww(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}
3function vw(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function _w(e,t,n){const s=aw(e);null!==t.validator?e.setValidators(ow(s,t.validator)):"function"==typeof s&&e.setValidators([s]);const i=lw(e);if(null!==t.asyncValidator?e.setAsyncValidators(ow(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){const n=()=>e.updateValueAndValidity();vw(t._rawValidators,n),vw(t._rawAsyncValidators,n)}}function ww(e,t,n){let s=!1;if(null!==e){if(null!==t.validator){const n=aw(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.validator);i.length!==n.length&&(s=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const n=lw(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.asyncValidator);i.length!==n.length&&(s=!0,e.setAsyncValidators(i))}}}if(n){const e=()=>{};vw(t._rawValidators,e),vw(t._rawAsyncValidators,e)}return s}function Cw(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function xw(e,t){_w(e,t,!1)}function kw(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Sw(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Tw(e,t){if(!t)return null;let n,s,i;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===L_?n=e:(t=e,Object.getPrototypeOf(t.constructor)===P_?s=e:i=e)}),i||(s||(n||null))}function Dw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ew(e){return(Aw(e)?e.validators:e)||null}function Ow(e){return Array.isArray(e)?sw(e):e||null}function Iw(e,t){return(Aw(t)?t.asyncValidators:e)||null}function Pw(e){return Array.isArray(e)?rw(e):e||null}function Aw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Mw{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Ow(this._rawValidators),this._composedAsyncValidatorFn=Pw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==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(e){this._rawValidators=e,this._composedValidatorFn=Ow(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Pw(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
vendor: 11,294 bytes, line 3
3markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=J_(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(n)),Array.isArray(t)&&0===t.length)return null;let s=e;return t.forEach(e=>{s=s instanceof Rw?s.controls.hasOwnProperty(e)?s.controls[e]:null:s instanceof Nw&&s.at(e)||null}),s}(this,e,".")}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Df,this.statusChanges=new Df}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Aw(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){const t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}}class Fw extends Mw{constructor(e=null,t,n){super(Ew(t),Iw(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Dw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Dw(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Rw extends Mw{constructor(e,t,n){super(Ew(t),Iw(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Fw?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,s)=>{n=t(n,e,s)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Nw extends Mw{constructor(e,t,n){super(Ew(t),Iw(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,s)=>{n.reset(e[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Fw?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Lw={provide:uw,useExisting:ae(()=>jw)}
3,Vw=Promise.resolve(null);class jw extends uw{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Df,this.form=new Rw({},sw(e),rw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vw.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),yw(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vw.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),Dw(this._directives,e)})}addFormGroup(e){Vw.then(()=>{const t=this._findContainer(e.path),n=new Rw({});xw(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vw.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vw.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Sw(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}jw.\u0275fac=function(e){return new(e||jw)(kc(B_,10),kc($_,10))},jw.\u0275dir=ot({type:jw,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&jc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[zd([Lw]),ul]}),jw.ctorParameters=()=>[{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]}],jw.propDecorators={options:[{type:Cg,args:["ngFormOptions"]}]};class Bw extends uw{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return mw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}Bw.\u0275fac=function(e){return $w(e||Bw)},Bw.\u0275dir=ot({type:Bw,features:[ul]});const $w=ps(Bw);const zw={provide:uw,useExisting:ae(()=>Uw)};class Uw extends Bw{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){!(this._parent instanceof Uw)&&this._parent,0}}Uw.\u0275fac=function(e){return new(e||Uw)(kc(uw,5),kc(B_,10),kc($_,10))},Uw.\u0275dir=ot({type:Uw,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[zd([zw]),ul]}),Uw.ctorParameters=()=>[{type:uw,decorators:[{type:gi},{type:fi}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]}],Uw.propDecorators={name:[{type:Cg,args:["ngModelGroup"]}]};const Hw={provide:dw,useExisting:ae(()=>Ww)},qw=Promise.resolve(null);class Ww extends dw{constructor(e,t,n,s){super(),this.control=new Fw,this._registered=!1,this.update=new Df,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Tw(0,s)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),kw(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?mw(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){yw(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){0}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){qw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;qw.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}Ww.\u0275fac=function(e){return new(e||Ww)(kc(uw,9),kc(B_,10),kc($_,10),kc(A_,10))},Ww.\u0275dir=ot({type:Ww,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[zd([Hw]),ul,_t]}),Ww.ctorParameters=()=>[{type:uw,decorators:[{type:di},{type:gi}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[A_]}]}],Ww.propDecorators={name:[{type:Cg}],isDisabled:[{type:Cg,args:["disabled"]}],model:[{type:Cg,args:["ngModel"]}],options:[{type:Cg,args:["ngModelOptions"]}],update:[{type:xg,args:["ngModelChange"]}]};class Kw{}Kw.\u0275fac=function(e){return new(e||Kw)},Kw.\u0275dir=ot({type:Kw,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});const Gw={provide:A_,useExisting:ae(()=>Zw),multi:!0};class Zw extends P_{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){const t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}
3Zw.\u0275fac=function(e){return new(e||Zw)(kc(ep),kc(Yd))},Zw.\u0275dir=ot({type:Zw,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&jc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[zd([Gw]),ul]}),Zw.ctorParameters=()=>[{type:ep},{type:Yd}];const Qw={provide:A_,useExisting:ae(()=>Xw),multi:!0};class Yw{}Yw.\u0275fac=function(e){return new(e||Yw)},Yw.\u0275mod=st({type:Yw}),Yw.\u0275inj=_e({});class Jw{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)}}Jw.\u0275fac=function(e){return new(e||Jw)},Jw.\u0275prov=ve({factory:function(){return new Jw},token:Jw,providedIn:Yw});class Xw extends P_{constructor(e,t,n,s){super(),this._renderer=e,this._elementRef=t,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(dw),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}Xw.\u0275fac=function(e){return new(e||Xw)(kc(ep),kc(Yd),kc(Jw),kc(il))},Xw.\u0275dir=ot({type:Xw,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&jc("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[zd([Qw]),ul]}),Xw.ctorParameters=()=>[{type:ep},{type:Yd},{type:Jw},{type:il}],Xw.propDecorators={name:[{type:Cg}],formControlName:[{type:Cg}],value:[{type:Cg}]};const eC={provide:A_,useExisting:ae(()=>tC),multi:!0};class tC extends P_{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}tC.\u0275fac=function(e){return new(e||tC)(kc(ep),kc(Yd))},tC.\u0275dir=ot({type:tC,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&jc("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[zd([eC]),ul]}),tC.ctorParameters=()=>[{type:ep},{type:Yd}];const nC=new ks("NgModelWithFormControlWarning"),sC={provide:dw,useExisting:ae(()=>iC)};class iC extends dw{constructor(e,t,n,s){super(),this._ngModelWarningConfig=s,this.update=new Df,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Tw(0,n)}set isDisabled(e){0}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&bw(t,this,!1),yw(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}kw(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
3ngOnDestroy(){this.form&&bw(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}iC.\u0275fac=function(e){return new(e||iC)(kc(B_,10),kc($_,10),kc(A_,10),kc(nC,8))},iC.\u0275dir=ot({type:iC,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[zd([sC]),ul,_t]}),iC._ngModelWarningSentOnce=!1,iC.ctorParameters=()=>[{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[A_]}]},{type:String,decorators:[{type:di},{type:hi,args:[nC]}]}],iC.propDecorators={form:[{type:Cg,args:["formControl"]}],isDisabled:[{type:Cg,args:["disabled"]}],model:[{type:Cg,args:["ngModel"]}],update:[{type:xg,args:["ngModelChange"]}]};const rC={provide:uw,useExisting:ae(()=>oC)};class oC extends uw{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Df,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ww(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(e){const t=this.form.get(e.path);return yw(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
3removeControl(e){bw(e.control||null,e,!1),Dw(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Sw(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(bw(t||null,e),n instanceof Fw&&(yw(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);xw(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);if(t){(function(e,t){return ww(e,t,!1)})(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_w(this.form,this,!1),this._oldForm&&ww(this._oldForm,this,!1)}_checkFormPresent(){this.form,0}}oC.\u0275fac=function(e){return new(e||oC)(kc(B_,10),kc($_,10))},oC.\u0275dir=ot({type:oC,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&jc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[zd([rC]),ul,_t]}),oC.ctorParameters=()=>[{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]}],oC.propDecorators={form:[{type:Cg,args:["formGroup"]}],ngSubmit:[{type:xg}]};const aC={provide:uw,useExisting:ae(()=>lC)};class lC extends Bw{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){hC(this._parent),0}}lC.\u0275fac=function(e){return new(e||lC)(kc(uw,13),kc(B_,10),kc($_,10))},lC.\u0275dir=ot({type:lC,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[zd([aC]),ul]}),lC.ctorParameters=()=>[{type:uw,decorators:[{type:di},{type:gi},{type:fi}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]}],lC.propDecorators={name:[{type:Cg,args:["formGroupName"]}]};const cC={provide:uw,useExisting:ae(()=>uC)};class uC extends uw{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return mw(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){hC(this._parent),0}}function hC(e){return!(e instanceof lC||e instanceof oC||e instanceof uC)}uC.\u0275fac=function(e){return new(e||uC)(kc(uw,13),kc(B_,10),kc($_,10))},uC.\u0275dir=ot({type:uC,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[zd([cC]),ul]}),uC.ctorParameters=()=>[{type:uw,decorators:[{type:di},{type:gi},{type:fi}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]}],uC.propDecorators={name:[{type:Cg,args:["formArrayName"]}]};const dC={provide:dw,useExisting:ae(()=>pC)};class pC extends dw{constructor(e,t,n,s,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new Df,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Tw(0,s)}set isDisabled(e){0}ngOnChanges(e){this._added||this._setUpControl(),kw(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return mw(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){0}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}pC.\u0275fac=function(e){return new(e||pC)(kc(uw,13),kc(B_,10),kc($_,10),kc(A_,10),kc(nC,8))},pC.\u0275dir=ot({type:pC,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[zd([dC]),ul,_t]}),pC._ngModelWarningSentOnce=!1,pC.ctorParameters=()=>[{type:uw,decorators:[{type:di},{type:gi},{type:fi}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[B_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[$_]}]},{type:Array,decorators:[{type:di},{type:pi},{type:hi,args:[A_]}]},{type:String,decorators:[{type:di},{type:hi,args:[nC]}]}],pC.propDecorators={name:[{type:Cg,args:["formControlName"]}],isDisabled:[{type:Cg,args:["disabled"]}],model:[{type:Cg,args:["ngModel"]}],update:[{type:xg,args:["ngModelChange"]}]};const fC={provide:A_,useExisting:ae(()=>mC),multi:!0};function gC(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class mC extends P_{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=gC(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}mC.\u0275fac=function(e){return new(e||mC)(kc(ep),kc(Yd))},mC.\u0275dir=ot({type:mC,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&jc("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[zd([fC]),ul]}),mC.ctorParameters=()=>[{type:ep},{type:Yd}],mC.propDecorators={compareWith:[{type:Cg}]};class yC{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(gC(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
3),this._select.writeValue(this._select.value))}}yC.\u0275fac=function(e){return new(e||yC)(kc(Yd),kc(ep),kc(mC,9))},yC.\u0275dir=ot({type:yC,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),yC.ctorParameters=()=>[{type:Yd},{type:ep},{type:mC,decorators:[{type:di},{type:gi}]}],yC.propDecorators={ngValue:[{type:Cg,args:["ngValue"]}],value:[{type:Cg,args:["value"]}]};const bC={provide:A_,useExisting:ae(()=>_C),multi:!0};function vC(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class _C extends P_{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const s=e.item(t),i=this._getOptionValue(s.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const s=e.item(t);if(s.selected){const e=this._getOptionValue(s.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}_C.\u0275fac=function(e){return new(e||_C)(kc(ep),kc(Yd))},_C.\u0275dir=ot({type:_C,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&jc("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[zd([bC]),ul]}),_C.ctorParameters=()=>[{type:ep},{type:Yd}],_C.propDecorators={compareWith:[{type:Cg}]};class wC{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(vC(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(vC(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}wC.\u0275fac=function(e){return new(e||wC)(kc(Yd),kc(ep),kc(_C,9))},wC.\u0275dir=ot({type:wC,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),wC.ctorParameters=()=>[{type:Yd},{type:ep},{type:_C,decorators:[{type:di},{type:gi}]}],wC.propDecorators={ngValue:[{type:Cg,args:["ngValue"]}],value:[{type:Cg,args:["value"]}]};const CC={provide:B_,useExisting:ae(()=>kC),multi:!0},xC={provide:B_,useExisting:ae(()=>SC),multi:!0};class kC{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?H_(e):null}registerOnValidatorChange(e){this._onChange=e}}kC.\u0275fac=function(e){return new(e||kC)},kC.\u0275dir=ot({type:kC,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("required",t.required?"":null)},inputs:{required:"required"},features:[zd([CC])]}),kC.propDecorators={required:[{type:Cg}]};class SC extends kC{validate(e){return this.required?q_(e):null}}
3SC.\u0275fac=function(e){return TC(e||SC)},SC.\u0275dir=ot({type:SC,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("required",t.required?"":null)},features:[zd([xC]),ul]});const TC=ps(SC),DC={provide:B_,useExisting:ae(()=>EC),multi:!0};class EC{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?W_(e):null}registerOnValidatorChange(e){this._onChange=e}}EC.\u0275fac=function(e){return new(e||EC)},EC.\u0275dir=ot({type:EC,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[zd([DC])]}),EC.propDecorators={email:[{type:Cg}]};const OC={provide:B_,useExisting:ae(()=>IC),multi:!0};class IC{constructor(){this._validator=Q_}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}
3validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=K_("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}IC.\u0275fac=function(e){return new(e||IC)},IC.\u0275dir=ot({type:IC,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[zd([OC]),_t]}),IC.propDecorators={minlength:[{type:Cg}]};const PC={provide:B_,useExisting:ae(()=>AC),multi:!0};class AC{constructor(){this._validator=Q_}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=G_("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}AC.\u0275fac=function(e){return new(e||AC)},AC.\u0275dir=ot({type:AC,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[zd([PC]),_t]}),AC.propDecorators={maxlength:[{type:Cg}]};const MC={provide:B_,useExisting:ae(()=>FC),multi:!0};class FC{constructor(){this._validator=Q_}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Z_(this.pattern)}}FC.\u0275fac=function(e){return new(e||FC)},FC.\u0275dir=ot({type:FC,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[zd([MC]),_t]}),FC.propDecorators={pattern:[{type:Cg}]};class RC{}RC.\u0275fac=function(e){return new(e||RC)}
3,RC.\u0275mod=st({type:RC}),RC.\u0275inj=_e({imports:[[Yw]]});class NC{}NC.\u0275fac=function(e){return new(e||NC)},NC.\u0275mod=st({type:NC}),NC.\u0275inj=_e({imports:[RC]});class LC{static withConfig(e){return{ngModule:LC,providers:[{provide:nC,useValue:e.warnOnNgModelWithFormControl}]}}}LC.\u0275fac=function(e){return new(e||LC)},LC.\u0275mod=st({type:LC}),LC.\u0275inj=_e({imports:[RC]});class VC{group(e,t=null){const n=this._reduceControls(e);let s,i=null,r=null;return null!=t&&(!function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null):(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0)),new Rw(n,{asyncValidators:r,updateOn:s,validators:i})}control(e,t,n){return new Fw(e,t,n)}array(e,t,n){const s=e.map(e=>this._createControl(e));return new Nw(s,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){if(e instanceof Fw||e instanceof Rw||e instanceof Nw)return e;if(Array.isArray(e)){const t=e[0],n=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,n,s)}return this.control(e)}}VC.\u0275fac=function(e){return new(e||VC)},VC.\u0275prov=ve({factory:function(){return new VC},token:VC,providedIn:LC});new sp("11.2.14");class jC extends k{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(e){super.next(this._value=e)}}class BC extends f{notifyNext(e,t,n,s,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class $C extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function zC(e,t,n,s,i=new $C(e,n,s)){if(!i.closed)return t instanceof v?t.subscribe(i):F(t)(i)}const UC={};function HC(...e){let t,n;return T(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),q(e,n).lift(new qC(t))}class qC{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new WC(e,this.resultSelector))}}class WC extends BC{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(UC),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(zC(this,t,void 0,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const s=this.values,i=s[n],r=this.toRespond?i===UC?--this.toRespond:this.toRespond:0;s[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const KC=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();function GC(...e){return H(1)($v(...e))}const ZC=new v(e=>e.complete());function QC(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):ZC}function YC(e){return new v(t=>{let n;try{n=e()}catch(s){return void t.error(s)}return(n?L(n):QC()).subscribe(t)})}function JC(e,t){return"function"==typeof t?n=>n.pipe(JC((n,s)=>L(e(n,s)).pipe(D((e,i)=>t(n,e,s,i))))):t=>t.lift(new XC(e))}class XC{constructor(e){this.project=e}call(e,t){return t.subscribe(new ex(e,this.project))}}class ex extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new V(this),s=this.destination;s.add(n),this.innerSubscription=B(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const tx=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function nx(e){return t=>0===e?QC():t.lift(new sx(e))}class sx{constructor(e){if(this.total=e,this.total<0)throw new tx}call(e,t){return t.subscribe(new ix(e,this.total))}}class ix extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function rx(...e){const t=e[e.length-1];return T(t)?(e.pop(),n=>GC(e,n,t)):t=>GC(e,t)}function ox(e,t){let n=!1;return arguments.length>
3=2&&(n=!0),function(s){return s.lift(new ax(e,t,n))}}class ax{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new lx(e,this.accumulator,this.seed,this.hasSeed))}}class lx extends f{constructor(e,t,n,s){super(e),this.accumulator=t,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function cx(e){return function(t){const n=new ux(e),s=t.lift(n);return n.caught=s}}class ux{constructor(e){this.selector=e}call(e,t){return t.subscribe(new hx(e,this.selector,this.caught))}}class hx extends j{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const s=new V(this);this.add(s);const i=B(n,s);i!==s&&this.add(i)}}}function dx(e){return function(t){return 0===e?QC():t.lift(new px(e))}}class px{constructor(e){if(this.total=e,this.total<0)throw new tx}call(e,t){return t.subscribe(new fx(e,this.total))}}class fx extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,s=this.count++;if(t.length<n)t.push(e);else{t[s%n]=e}}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(s[i])}}e.complete()}}function gx(e=bx){return t=>t.lift(new mx(e))}class mx{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new yx(e,this.errorFactory))}}class yx extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function bx(){return new KC}function vx(e=null){return t=>t.lift(new _x(e))}class _x{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new wx(e,this.defaultValue))}}class wx extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Cx(e,t){const n=arguments.length>=2;return s=>s.pipe(e?Uv((t,n)=>e(t,n,s)):y,nx(1),n?vx(t):gx(()=>new KC))}function xx(){}function kx(e,t,n){return function(s){return s.lift(new Sx(e,t,n))}}class Sx{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Tx(e,this.nextOrObserver,this.error,this.complete))}}class Tx extends f{constructor(e,t,n,i){super(e),this._tapNext=xx,this._tapError=xx,this._tapComplete=xx,this._tapError=n||xx,this._tapComplete=i||xx,s(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||xx,this._tapError=t.error||xx,this._tapComplete=t.complete||xx)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class Dx{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Ex(e,this.callback))}}class Ex extends f{constructor(e,t){super(e),this.add(new h(t))}}class Ox{constructor(e,t){this.id=e,this.url=t}}class Ix extends Ox{constructor(e,t,n="imperative",s=null){super(e,t),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Px extends Ox{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ax extends Ox{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mx extends Ox{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fx extends Ox{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rx extends Ox{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nx extends Ox{constructor(e,t,n,s,i){super(e,t),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lx extends Ox{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vx extends Ox{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jx{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bx{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $x{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zx{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ux{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hx{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qx{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){const e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}}class Wx{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Kx(e){return new Wx(e)}function Gx(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}
3function Zx(e,t,n){const s=n.path.split("/");if(s.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||s.length<e.length))return null;const i={};for(let r=0;r<s.length;r++){const t=s[r],n=e[r];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,s.length),posParams:i}}function Qx(e,t){const n=e?Object.keys(e):void 0,s=t?Object.keys(t):void 0;if(!n||!s||n.length!=s.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!Yx(e[i],t[i]))return!1;return!0}function Yx(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),s=[...t].sort();return n.every((e,t)=>s[t]===e)}return e===t}function Jx(e){return Array.prototype.concat.apply([],e)}function Xx(e){return e.length>0?e[e.length-1]:null}function ek(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function tk(e){return Vc(e)?e:Nc(e)?L(Promise.resolve(e)):$v(e)}function nk(e,t,n){return n?function(e,t){return Qx(e,t)}(e.queryParams,t.queryParams)&&sk(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Yx(e[n],t[n]))}(e.queryParams,t.queryParams)&&ik(e.root,t.root)}function sk(e,t){if(!ck(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!sk(e.children[n],t.children[n]))return!1}return!0}function ik(e,t){return rk(e,t,t.segments)}function rk(e,t,n){if(e.segments.length>n.length){return!!ck(e.segments.slice(0,n.length),n)&&!t.hasChildren()}if(e.segments.length===n.length){if(!ck(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ik(e.children[n],t.children[n]))return!1}return!0}{const s=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!ck(e.segments,s)&&(!!e.children.primary&&rk(e.children.primary,t,i))}}class ok{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kx(this.queryParams)),this._queryParamMap}toString(){return dk.serialize(this)}}class ak{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ek(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pk(this)}}class lk{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Kx(this.parameters)),this._parameterMap}toString(){return _k(this)}}function ck(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class uk{}class hk{parse(e){const t=new Sk(e);return new ok(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${fk(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${mk(t)}=${mk(e)}`).join("&"):`${mk(t)}=${mk(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const dk=new hk;function pk(e){return e.segments.map(e=>_k(e)).join("/")}function fk(e,t){if(!e.hasChildren())return pk(e);if(t){const t=e.children.primary?fk(e.children.primary,!1):"",n=[];return ek(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${fk(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ek(e.children,(e,s)=>{"primary"===s&&(n=n.concat(t(e,s)))}),ek(e.children,(e,s)=>{"primary"!==s&&(n=n.concat(t(e,s)))}),n}(e,(t,n)=>"primary"===n?[fk(e.children.primary,!1)]:[`${n}:${fk(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${pk(e)}/${t[0]}`:`${pk(e)}/(${t.join("//")})`}}function gk(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mk(e){return gk(e).replace(/%3B/gi,";")}function yk(e){return gk(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bk(e){return decodeURIComponent(e)}function vk(e){return bk(e.replace(/\+/g,"%20"))}function _k(e){return`${yk(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${yk(e)}=${yk(t[e])}`).join("")}`;var t}const wk=/^[^\/()?;=#]+/;function Ck(e){const t=e.match(wk);return t?t[0]:""}const xk=/^[^=?&#]+/;const kk=/^[^?&#]+/;class Sk{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ak([],{}):new ak([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}
3parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new ak(e,t)),n}parseSegment(){const e=Ck(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new lk(bk(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Ck(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Ck(this.remaining);e&&(n=e,this.capture(n))}e[bk(t)]=bk(n)}parseQueryParam(e){const t=function(e){const t=e.match(xk);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(kk);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const s=vk(t),i=vk(n);if(e.hasOwnProperty(s)){let t=e[s];Array.isArray(t)||(t=[t],e[s]=t),t.push(i)}else e[s]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ck(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");const r=this.parseChildren();t[i]=1===Object.keys(r).length?r.primary:new ak([],r),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Tk{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Dk(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Dk(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Ek(e,this._root);if(t.length<2)return[];return t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ek(e,this._root).map(e=>e.value)}}function Dk(e,t){if(e===t.value)return t;for(const n of t.children){const t=Dk(e,n);if(t)return t}return null}function Ek(e,t){if(e===t.value)return[t];for(const n of t.children){const s=Ek(e,n);if(s.length)return s.unshift(t),s}return[]}class Ok{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ik(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Pk extends Tk{constructor(e,t){super(e),this.snapshot=t,Lk(this,e)}toString(){return this.snapshot.toString()}}function Ak(e,t){const n=function(e,t){const n=new Rk([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Nk("",new Ok(n,[]))}(e,t),s=new jC([new lk("",{})]),i=new jC({}),r=new jC({}),o=new jC({}),a=new jC(""),l=new Mk(s,i,o,a,r,"primary",t,n.root);return l.snapshot=n.root,new Pk(new Ok(l,[]),n)}class Mk{constructor(e,t,n,s,i,r,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=i,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(D(e=>Kx(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(D(e=>Kx(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Fk(e,t="emptyOnly"){const n=e.pathFromRoot;let s=0;if("always"!==t)for(s=n.length-1;s>=1;){const e=n[s],t=n[s-1];if(e.routeConfig&&""===e.routeConfig.path)s--;else{if(t.component)break;s--}}return function(e){return e.reduce((e,t)=>
3({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class Rk{constructor(e,t,n,s,i,r,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=i,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=Kx(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kx(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Nk extends Tk{constructor(e,t){super(t),this.url=e,Lk(this,t)}toString(){return Vk(this._root)}}function Lk(e,t){t.value._routerState=e,t.children.forEach(t=>Lk(e,t))}function Vk(e){const t=e.children.length>0?` { ${e.children.map(Vk).join(", ")} } `:"";return`${e.value}${t}`}function jk(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qx(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Qx(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Qx(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Qx(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Bk(e,t){const n=Qx(e.params,t.params)&&(s=e.url,i=t.url,ck(s,i)&&s.every((e,t)=>Qx(e.parameters,i[t].parameters)));var s,i;const r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Bk(e.parent,t.parent))}function $k(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const s of n.children)if(e.shouldReuseRoute(t.value,s.value.snapshot))return $k(e,t,s);return $k(e,t)})}(e,t,n);return new Ok(s,i)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return zk(t,e),e}}const n=(s=t.value,new Mk(new jC(s.url),new jC(s.params),new jC(s.queryParams),new jC(s.fragment),new jC(s.data),s.outlet,s.component,s)),i=t.children.map(t=>$k(e,t));return new Ok(n,i)}var s}function zk(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)zk(e.children[n],t.children[n])}function Uk(e,t,n,s,i){if(0===n.length)return Wk(t.root,t.root,t,s,i);const r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Gk(!0,0,e);let t=0,n=!1;const s=e.reduce((e,s,i)=>{if("object"==typeof s&&null!=s){if(s.outlets){const t={};return ek(s.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(s.segmentPath)return[...e,s.segmentPath]}return"string"!=typeof s?[...e,s]:0===i?(s.split("/").forEach((s,i)=>{0==i&&"."===s||(0==i&&""===s?n=!0:".."===s?t++:""!=s&&e.push(s))}),e):[...e,s]},[]);return new Gk(n,t,s)}(n);if(r.toRoot())return Wk(t.root,new ak([],{}),t,s,i);const o=function(e,t,n){if(e.isAbsolute)return new Zk(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment,s=e===t.root;return new Zk(e,s,0)}const s=Hk(e.commands[0])?0:1,i=n.snapshot._lastPathIndex+s;return function(e,t,n){let s=e,i=t,r=n;for(;r>i;){if(r-=i,s=s.parent,!s)throw new Error("Invalid number of '../'");i=s.segments.length}return new Zk(s,!1,i-r)}(n.snapshot._urlSegment,i,e.numberOfDoubleDots)}(r,t,e),a=o.processChildren?Yk(o.segmentGroup,o.index,r.commands):Qk(o.segmentGroup,o.index,r.commands);return Wk(o.segmentGroup,a,t,s,i)}function Hk(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qk(e){return"object"==typeof e&&null!=e&&e.outlets}function Wk(e,t,n,s,i){let r={};return s&&ek(s,(e,t)=>{r[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),n.root===e?new ok(t,r,i):new ok(Kk(n.root,e,t),r,i)}function Kk(e,t,n){const s={};return ek(e.children,(e,i)=>{s[i]=e===t?n:Kk(e,t,n)}),new ak(e.segments,s)}class Gk{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Hk(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(qk);if(s&&s!==Xx(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zk{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Qk(e,t,n){if(e||(e=new ak([],{})),0===e.segments.length&&e.hasChildren())return Yk(e,t,n);const s=function(e,t,n){let s=0,i=t;const r={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(s>=n.length)return r;const t=e.segments[i],o=n[s];if(qk(o))break;const a=`${o}`,l=s<n.length-1?n[s+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!tS(a,l,t))return r;s+=2}else{if(!tS(a,{},t))return r;s++}i++}return{match:!0,pathIndex:i,commandIndex:s}}
3(e,t,n),i=n.slice(s.commandIndex);if(s.match&&s.pathIndex<e.segments.length){const t=new ak(e.segments.slice(0,s.pathIndex),{});return t.children.primary=new ak(e.segments.slice(s.pathIndex),e.children),Yk(t,0,i)}return s.match&&0===i.length?new ak(e.segments,{}):s.match&&!e.hasChildren()?Jk(e,t,n):s.match?Yk(e,0,i):Jk(e,t,n)}function Yk(e,t,n){if(0===n.length)return new ak(e.segments,{});{const s=function(e){return qk(e[0])?e[0].outlets:{primary:e}}(n),i={};return ek(s,(n,s)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[s]=Qk(e.children[s],t,n))}),ek(e.children,(e,t)=>{void 0===s[t]&&(i[t]=e)}),new ak(e.segments,i)}}function Jk(e,t,n){const s=e.segments.slice(0,t);let i=0;for(;i<n.length;){const r=n[i];if(qk(r)){const e=Xk(r.outlets);return new ak(s,e)}if(0===i&&Hk(n[0])){const r=e.segments[t];s.push(new lk(r.path,eS(n[0]))),i++;continue}const o=qk(r)?r.outlets.primary:`${r}`,a=i<n.length-1?n[i+1]:null;o&&a&&Hk(a)?(s.push(new lk(o,eS(a))),i+=2):(s.push(new lk(o,{})),i++)}return new ak(s,{})}function Xk(e){const t={};return ek(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=Jk(new ak([],{}),0,e))}),t}function eS(e){const t={};return ek(e,(e,n)=>t[n]=`${e}`),t}function tS(e,t,n){return e==n.path&&Qx(t,n.parameters)}class nS{constructor(e,t,n,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=s}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),jk(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const s=Ik(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,s[t],n),delete s[t]}),ek(s,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const s=e.value,i=t?t.value:null;if(s===i)if(s.component){const i=n.getContext(s.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:s})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),s=n&&e.value.component?n.children:t,i=Ik(e);for(const r of Object.keys(i))this.deactivateRouteAndItsChildren(i[r],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const s=Ik(t);e.children.forEach(e=>{this.activateRoutes(e,s[e.value.outlet],n),this.forwardEvent(new Hx(e.value.snapshot))}),e.children.length&&this.forwardEvent(new zx(e.value.snapshot))}activateRoutes(e,t,n){const s=e.value,i=t?t.value:null;if(jk(s),s===i)if(s.component){const i=n.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(s.component){const t=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const e=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),sS(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=s,t.resolver=i,t.outlet&&t.outlet.activateWith(s,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function sS(e){jk(e.value),e.children.forEach(sS)}class iS{constructor(e,t){this.routes=e,this.module=t}}function rS(e){return"function"==typeof e}function oS(e){return e instanceof ok}const aS=Symbol("INITIAL_VALUE");function lS(){return JC(e=>HC(e.map(e=>e.pipe(nx(1),rx(aS)))).pipe(ox((e,t)=>{let n=!1;return t.reduce((e,s,i)=>{if(e!==aS)return e;if(s===aS&&(n=!0),!n){if(!1===s)return s;if(i===t.length-1||oS(s))return s}return e},e)},aS),Uv(e=>e!==aS),D(e=>oS(e)?e:!0===e),nx(1)))}class cS{}function uS(e,t=""){for(let n=0;n<e.length;n++){const s=e[n];hS(s,dS(t,s))}}function hS(e,t){e.children&&uS(e.children,t)}function dS(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function pS(e){const t=e.children&&e.children.map(pS),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=cS),n}function fS(e){return e.outlet||"primary"}function gS(e,t){const n=e.filter(e=>fS(e)===t);return n.push(...e.filter(e=>fS(e)!==t)),n}cS.\u0275fac=function(e){return new(e||cS)},cS.\u0275cmp=Je({type:cS,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Pc(0,"router-outlet")},directives:function(){return[cT]},encapsulation:2});const mS={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function yS(e,t,n){var s;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},mS):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(t.matcher||Zx)(n,e,t);if(!i)return Object.assign({},mS);const r={};ek(i.posParams,(e,t)=>{r[t]=e.path});const o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!==(s=i.posParams)&&void 0!==s?s:{}}}function bS(e,t,n,s,i="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>vS(e,t,n)&&"primary"!==fS(n))}(e,n,s)){const i=new ak(t,function(e,t,n,s){const i={};i.primary=s,s._sourceSegment=e,s._segmentIndexShift=t.length;for(const r of n)if(""===r.path&&"primary"!==fS(r)){const n=new ak([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[fS(r)]=n}return i}(e,t,s,new ak(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>vS(e,t,n))}(e,n,s)){const r=new ak(e.segments,function(e,t,n,s,i,r){const o={};for(const a of s)if(vS(e,n,a)&&!i[fS(a)]){const n=new ak([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===r?e.segments.length:t.length,o[f
3S(a)]=n}return Object.assign(Object.assign({},i),o)}(e,t,n,s,e.children,i));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:n}}const r=new ak(e.segments,e.children);return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:n}}function vS(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function _S(e,t,n,s){return!!(fS(e)===s||"primary"!==s&&vS(t,n,e))&&("**"===e.path||yS(t,e,n).matched)}function wS(e,t,n){return 0===t.length&&!e.children[n]}class CS{constructor(e){this.segmentGroup=e||null}}class xS{constructor(e){this.urlTree=e}}function kS(e){return new v(t=>t.error(new CS(e)))}function SS(e){return new v(t=>t.error(new xS(e)))}function TS(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class DS{constructor(e,t,n,s,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=s,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Fp)}apply(){const e=bS(this.urlTree.root,[],[],this.config).segmentGroup,t=new ak(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(D(e=>this.createUrlTree(ES(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(cx(e=>{if(e instanceof xS)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof CS)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(D(t=>this.createUrlTree(ES(t),e.queryParams,e.fragment))).pipe(cx(e=>{if(e instanceof CS)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const s=e.segments.length>0?new ak([],{primary:e}):e;return new ok(s,t,n)}expandSegmentGroup(e,t,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(D(e=>new ak([],e))):this.expandSegment(e,n,t,n.segments,s,!0)}expandChildren(e,t,n){const s=[];for(const i of Object.keys(n.children))"primary"===i?s.unshift(i):s.push(i);return L(s).pipe(zv(s=>{const i=n.children[s],r=gS(t,s);return this.expandSegmentGroup(e,r,i,s).pipe(D(e=>({segment:e,outlet:s})))}),ox((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return s=>s.pipe(e?Uv((t,n)=>e(t,n,s)):y,dx(1),n?vx(t):gx(()=>new KC))}())}expandSegment(e,t,n,s,i,r){return L(n).pipe(zv(o=>this.expandSegmentAgainstRoute(e,t,n,o,s,i,r).pipe(cx(e=>{if(e instanceof CS)return $v(null);throw e}))),Cx(e=>!!e),cx((e,n)=>{if(e instanceof KC||"EmptyError"===e.name){if(wS(t,s,i))return $v(new ak([],{}));throw new CS(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,s,i,r,o){return _S(s,t,i,r)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,s,i,r):kS(t):kS(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,s,i,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,i,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,s){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?SS(i):this.lineralizeSegments(n,i).pipe($(n=>{const i=new ak(n,{});return this.expandSegment(e,i,t,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,i,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=yS(t,s,i);if(!o)return kS(t);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?SS(u):this.lineralizeSegments(s,u).pipe($(s=>this.expandSegment(e,t,n,s.concat(i.slice(l)),r,!1)))}matchSegmentAgainstRoute(e,t,n,s,i){if("**"===n.path){if(n.loadChildren){return(n._loadedConfig?$v(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(D(e=>(n._loadedConfig=e,new ak(s,{}))))}return $v(new ak(s,{}))}const{matched:r,consumedSegments:o,lastChild:a}=yS(t,n,s);if(!r)return kS(t);const l=s.slice(a);return this.getChildConfig(e,n,s).pipe($(e=>{const s=e.module,r=e.routes,{segmentGroup:a,slicedSegments:c}=bS(t,o,l,r),u=new ak(a.segments,a.children);if(0===c.length&&u.hasChildren()){return this.expandChildren(s,r,u).pipe(D(e=>new ak(o,e)))}if(0===r.length&&0===c.length)return $v(new ak(o,{}));const h=fS(n)===i;return this.expandSegment(s,u,r,c,h?"primary":i,!0).pipe(D(e=>
3new ak(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?$v(new iS(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?$v(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe($(n=>n?this.configLoader.load(e.injector,t).pipe(D(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(Gx(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):$v(new iS([],e))}runCanLoadGuards(e,t,n){const s=t.canLoad;if(!s||0===s.length)return $v(!0);return $v(s.map(s=>{const i=e.get(s);let r;if(function(e){return e&&rS(e.canLoad)}(i))r=i.canLoad(t,n);else{if(!rS(i))throw new Error("Invalid CanLoad guard");r=i(t,n)}return tk(r)})).pipe(lS(),kx(e=>{if(!oS(e))return;const t=Gx(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),D(e=>!0===e))}lineralizeSegments(e,t){let n=[],s=t.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return $v(n);if(s.numberOfChildren>1||!s.children.primary)return TS(e.redirectTo);s=s.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,s){const i=this.createSegmentGroup(e,t.root,n,s);return new ok(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ek(e,(e,s)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[s]=t[i]}else n[s]=e}),n}createSegmentGroup(e,t,n,s){const i=this.createSegments(e,t.segments,n,s);let r={};return ek(t.children,(t,i)=>{r[i]=this.createSegmentGroup(e,t,n,s)}),new ak(i,r)}createSegments(e,t,n,s){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,s):this.findOrReturn(t,n))}findPosParam(e,t,n){const s=n[t.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let n=0;for(const s of t){if(s.path===e.path)return t.splice(n),s;n++}return e}}function ES(e){const t={};for(const n of Object.keys(e.children)){const s=ES(e.children[n]);(s.segments.length>0||s.hasChildren())&&(t[n]=s)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new ak(e.segments.concat(t.segments),t.children)}return e}(new ak(e.segments,t))}function OS(e,t,n,s){return JC(i=>function(e,t,n,s,i){return new DS(e,t,n,s,i).apply()}(e,t,n,i.extractedUrl,s).pipe(D(e=>Object.assign(Object.assign({},i),{urlAfterRedirects:e}))))}class IS{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class PS{constructor(e,t){this.component=e,this.route=t}}function AS(e,t,n){const s=e._root;return FS(s,t?t._root:null,n,[s.value])}function MS(e,t,n){const s=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(s?s.module.injector:n).get(e)}function FS(e,t,n,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const r=Ik(t);return e.children.forEach(e=>{!function(e,t,n,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ck(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ck(e.url,t.url)||!Qx(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bk(e,t)||!Qx(e.queryParams,t.queryParams);case"paramsChange":default:return!Bk(e,t)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new IS(s)):(r.data=o.data,r._resolvedData=o._resolvedData),r.component?FS(e,t,a?a.children:null,s,i):FS(e,t,n,s,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new PS(a.outlet.component,o))}else o&&RS(t,a,i),i.canActivateChecks.push(new IS(s)),r.component?FS(e,null,a?a.children:null,s,i):FS(e,null,n,s,i)}(e,r[e.value.outlet],n,s.concat([e.value]),i),delete r[e.value.outlet]}),ek(r,(e,t)=>RS(e,n.getContext(t),i)),i}function RS(e,t,n){const s=Ik(e),i=e.value;ek(s,(e,s)=>{i.component?RS(e,t?t.children.getContext(s):null,n):RS(e,t,n)}),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new PS(t.outlet.component,i)):n.canDeactivateChecks.push(new PS(null,i))}function NS(e,t){return $(n=>{const{targetSnapshot:s,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?$v(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,s){return L(e).pipe($(e=>function(e,t,n,s,i){const r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||0===r.length)return $v(!0);return $v(r.map(r=>{const o=MS(r,t,i);let a;if(function(e){return e&&rS(e.canDeactivate)}
3(o))a=tk(o.canDeactivate(e,t,n,s));else{if(!rS(o))throw new Error("Invalid CanDeactivate guard");a=tk(o(e,t,n,s))}return a.pipe(Cx())})).pipe(lS())}(e.component,e.route,n,t,s)),Cx(e=>!0!==e,!0))}(o,s,i,e).pipe($(n=>n&&"boolean"==typeof n?function(e,t,n,s){return L(t).pipe(zv(t=>GC(function(e,t){null!==e&&t&&t(new $x(e));return $v(!0)}(t.route.parent,s),function(e,t){null!==e&&t&&t(new Ux(e));return $v(!0)}(t.route,s),function(e,t,n){const s=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>YC(()=>$v(t.guards.map(i=>{const r=MS(i,t.node,n);let o;if(function(e){return e&&rS(e.canActivateChild)}(r))o=tk(r.canActivateChild(s,e));else{if(!rS(r))throw new Error("Invalid CanActivateChild guard");o=tk(r(s,e))}return o.pipe(Cx())})).pipe(lS())));return $v(i).pipe(lS())}(e,t.path,n),function(e,t,n){const s=t.routeConfig?t.routeConfig.canActivate:null;if(!s||0===s.length)return $v(!0);return $v(s.map(s=>YC(()=>{const i=MS(s,t,n);let r;if(function(e){return e&&rS(e.canActivate)}(i))r=tk(i.canActivate(t,e));else{if(!rS(i))throw new Error("Invalid CanActivate guard");r=tk(i(t,e))}return r.pipe(Cx())}))).pipe(lS())}(e,t.route,n))),Cx(e=>!0!==e,!0))}(s,r,e,t):$v(n)),D(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}class LS{}function VS(e){return new v(t=>t.error(e))}class jS{constructor(e,t,n,s,i,r){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=r}recognize(){const e=bS(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Rk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Ok(n,t),i=new Nk(this.url,s);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,n=Fk(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const i of Object.keys(t.children)){const s=t.children[i],r=gS(e,i),o=this.processSegmentGroup(r,s,i);if(null===o)return null;n.push(...o)}const s=$S(n);return s.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),s}processSegment(e,t,n,s){for(const i of e){const e=this.processSegmentAgainstRoute(i,t,n,s);if(null!==e)return e}return wS(t,n,s)?[]:null}processSegmentAgainstRoute(e,t,n,s){if(e.redirectTo||!_S(e,t,n,s))return null;let i,r=[],o=[];if("**"===e.path){const s=n.length>0?Xx(n).parameters:{};i=new Rk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,HS(e),fS(e),e.component,e,zS(t),US(t)+n.length,qS(e))}else{const s=yS(t,e,n);if(!s.matched)return null;r=s.consumedSegments,o=n.slice(s.lastChild),i=new Rk(r,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,HS(e),fS(e),e.component,e,zS(t),US(t)+r.length,qS(e))}const a=function(e){if(e.children)return e.children;if(e.loadChildren)return e._loadedConfig.routes;return[]}(e),{segmentGroup:l,slicedSegments:c}=bS(t,r,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Ok(i,e)]}if(0===a.length&&0===c.length)return[new Ok(i,[])];const u=fS(e)===s,h=this.processSegment(a,l,c,u?"primary":s);return null===h?null:[new Ok(i,h)]}}function BS(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function $S(e){const t=[],n=new Set;for(const s of e){if(!BS(s)){t.push(s);continue}const e=t.find(e=>s.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...s.children),n.add(e)):t.push(s)}for(const s of n){const e=$S(s.children);t.push(new Ok(s.value,e))}return t.filter(e=>!n.has(e))}function zS(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function US(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function HS(e){return e.data||{}}function qS(e){return e.resolve||{}}function WS(e,t,n,s,i){return $(r=>function(e,t,n,s,i="emptyOnly",r="legacy"){try{const o=new jS(e,t,n,s,i,r).recognize();
3return null===o?VS(new LS):$v(o)}catch(o){return VS(o)}}(e,t,r.urlAfterRedirects,n(r.urlAfterRedirects),s,i).pipe(D(e=>Object.assign(Object.assign({},r),{targetSnapshot:e}))))}function KS(e,t){return $(n=>{const{targetSnapshot:s,guards:{canActivateChecks:i}}=n;if(!i.length)return $v(n);let r=0;return L(i).pipe(zv(n=>function(e,t,n,s){return function(e,t,n,s){const i=Object.keys(e);if(0===i.length)return $v({});const r={};return L(i).pipe($(i=>function(e,t,n,s){const i=MS(e,t,s);return i.resolve?tk(i.resolve(t,n)):tk(i(t,n))}(e[i],t,n,s).pipe(kx(e=>{r[i]=e}))),dx(1),$(()=>Object.keys(r).length===i.length?$v(r):ZC))}(e._resolve,e,t,s).pipe(D(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Fk(e,n).resolve),null)))}(n.route,s,e,t)),kx(()=>r++),dx(1),$(e=>r===i.length?$v(n):ZC))})}function GS(e){return JC(t=>{const n=e(t);return n?L(n).pipe(D(()=>t)):$v(t)})}class ZS extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const QS=new ks("ROUTES");class YS{constructor(e,t,n,s){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=s}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(D(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const s=n.create(e);return new iS(Jx(s.injector.get(QS,void 0,Ee.Self|Ee.Optional)).map(pS),s)}),cx(e=>{throw t._loader$=void 0,e}));return t._loader$=new Q(n,()=>new k).pipe(K()),t._loader$}loadModuleFactory(e){return"string"==typeof e?L(this.loader.load(e)):tk(e()).pipe($(e=>e instanceof Rp?$v(e):L(this.compiler.compileModuleAsync(e))))}}class JS{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new XS,this.attachRef=null}}class XS{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new JS,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class eT{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function tT(e){throw e}function nT(e,t,n){return t.parse("/")}function sT(e,t){return $v(null)}class iT{constructor(e,t,n,s,i,r,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=tT,this.malformedUriErrorHandler=nT,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sT,afterPreactivation:sT},this.urlHandlingStrategy=new eT,this.routeReuseStrategy=new ZS,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected";this.ngModule=i.get(Fp),this.console=i.get(Vg);const l=i.get(Xg);this.isNgZoneEnabled=l instanceof Xg&&Xg.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new ok(new ak([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new YS(r,o,e=>this.triggerEvent(new jx(e)),e=>this.triggerEvent(new Bx(e))),this.routerState=Ak(this.currentUrlTree,this.rootComponentType),this.transitions=new jC({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(e){const t=this.events;return e.pipe(Uv(e=>0!==e.id),D(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),JC(e=>{let n=!1,s=!1;return $v(e).pipe(kx(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),JC(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return $v(e).pipe(JC(e=>{const n=this.transitions.getValue();return t.next(new Ix(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ZC:Promise.resolve(e)}),OS(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),kx(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),WS(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),kx(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Fx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:i,restoredState:r,extras:o}=e,a=new Ix(n,this.serializeUrl(s),i,r);t.next(a);const l=Ak(s,this.rootComponentType).snapshot;return $v(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}
3))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ZC}),GS(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),kx(e=>{const t=new Rx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),D(e=>Object.assign(Object.assign({},e),{guards:AS(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),NS(this.ngModule.injector,e=>this.triggerEvent(e)),kx(e=>{if(oS(e.guardsResult)){const t=Gx(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new Nx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Uv(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ax(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),GS(e=>{if(e.guards.canActivateChecks.length)return $v(e).pipe(kx(e=>{const t=new Lx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),JC(e=>{let n=!1;return $v(e).pipe(KS(this.paramsInheritanceStrategy,this.ngModule.injector),kx({next:()=>n=!0,complete:()=>{if(!n){const n=new Ax(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}))}),kx(e=>{const t=new Vx(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),GS(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),D(e=>{const t=function(e,t,n){const s=$k(e,t._root,n?n._root:void 0);return new Pk(s,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),kx(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),D(e=>(new nS(o,e.targetRouterState,e.currentRouterState,a).activate(r),e))),kx({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new Ax(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new Dx(i))),cx(n=>{if(s=!0,(i=n)&&i.ngNavigationCancelingError){const s=oS(n.url);s||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new Ax(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),s?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),s={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy};this.scheduleNavigation(t,"imperative",null,s,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const s=new Mx(e.id,this.serializeUrl(e.extractedUrl),n);t.next(s);try{e.resolve(this.errorHandler(n))}catch(r){e.reject(r)}}var i;return ZC}));var i,r,o,a}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:s}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(s,e,n,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId)||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){uS(e),this.config=e.map(pS),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:s,fragment:i,queryParamsHandling:r,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),Uk(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=oS(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(oS(e))return nk(this.currentUrlTree,e,t);const n=this.parseUrl(e);return nk(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const s=e[n];return null!=s&&(t[n]=s),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Px(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,s,i){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==t&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;i?(l=i.resolve,c=i.reject,u=i.promise):u=new Promise((e,t)=>
3{l=e,c=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,s){const i=this.urlSerializer.serialize(e);s=s||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},s),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},s),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}iT.\u0275fac=function(e){return new(e||iT)(ri(Rs),ri(uk),ri(XS),ri(Xm),ri(il),ri(Sm),ri(Zg),ri(void 0))},iT.\u0275prov=ve({token:iT,factory:iT.\u0275fac}),iT.ctorParameters=()=>[{type:Rs},{type:uk},{type:XS},{type:Xm},{type:il},{type:Sm},{type:Zg},{type:void 0}];class rT{constructor(e,t,n,s,i){this.router=e,this.route=t,this.commands=[],this.onChanges=new k,null==n&&s.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:aT(this.skipLocationChange),replaceUrl:aT(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!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:aT(this.preserveFragment)})}}rT.\u0275fac=function(e){return new(e||rT)(kc(iT),kc(Mk),gs("tabindex"),kc(ep),kc(Yd))},rT.\u0275dir=ot({type:rT,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&jc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[_t]}),rT.ctorParameters=()=>[{type:iT},{type:Mk},{type:String,decorators:[{type:xs,args:["tabindex"]}]},{type:ep},{type:Yd}],rT.propDecorators={queryParams:[{type:Cg}],fragment:[{type:Cg}],queryParamsHandling:[{type:Cg}],preserveFragment:[{type:Cg}],skipLocationChange:[{type:Cg}],replaceUrl:[{type:Cg}],state:[{type:Cg}],relativeTo:[{type:Cg}],routerLink:[{type:Cg}],onClick:[{type:Sg,args:["click"]}]};class oT{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new k,this.subscription=e.events.subscribe(e=>{e instanceof Px&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,s,i){if(0!==e||t||n||s||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:aT(this.skipLocationChange),replaceUrl:aT(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:aT(this.preserveFragment)})}}function aT(e){return""===e||!!e}oT.\u0275fac=function(e){return new(e||oT)(kc(iT),kc(Mk),kc(Gm))},oT.\u0275dir=ot({type:oT,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&jc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(yh("href",t.href,_r),Ol("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[_t]}),oT.ctorParameters=()=>[{type:iT},{type:Mk},{type:Gm}],oT.propDecorators={target:[{type:kg,args:["attr.target"]},{type:Cg}],queryParams:[{type:Cg}],fragment:[{type:Cg}],queryParamsHandling:[{type:Cg}],preserveFragment:[{type:Cg}],skipLocationChange:[{type:Cg}],replaceUrl:[{type:Cg}],state:[{type:Cg}],relativeTo:[{type:Cg}],href:[{type:kg}],routerLink:[{type:Cg}],onClick:[{type:Sg,args:["click",["$event.button","$event.ctrlKey","$event.shiftKey","$event.altKey","$event.metaKey"]]}]};class lT{constructor(e,t,n,s,i,r){this.router=e,this.element=t,this.renderer=n,this.cdr=s,this.link=i,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof Px&&this.update()})}ngAfterContentInit(){$v(this.links.changes,this.linksWithHrefs.changes,$v(null)).pipe(H()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=L(t).pipe(H()).subscribe(e=>{this.isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEac
3h(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){return t=>e.isActive(t.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}lT.\u0275fac=function(e){return new(e||lT)(kc(iT),kc(Yd),kc(ep),kc(xp),kc(rT,8),kc(oT,8))},lT.\u0275dir=ot({type:lT,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&($f(n,rT,1),$f(n,oT,1)),2&e){let e;jf(e=zf())&&(t.links=e),jf(e=zf())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[_t]}),lT.ctorParameters=()=>[{type:iT},{type:Yd},{type:ep},{type:xp},{type:rT,decorators:[{type:di}]},{type:oT,decorators:[{type:di}]}],lT.propDecorators={links:[{type:Ds,args:[rT,{descendants:!0}]}],linksWithHrefs:[{type:Ds,args:[oT,{descendants:!0}]}],routerLinkActiveOptions:[{type:Cg}],routerLinkActive:[{type:Cg}]};class cT{constructor(e,t,n,s,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Df,this.deactivateEvents=new Df,this.name=s||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=e._futureSnapshot.routeConfig.component,s=(t=t||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,r=new uT(e,i,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}cT.\u0275fac=function(e){return new(e||cT)(kc(XS),kc(Lp),kc(Kd),gs("name"),kc(xp))},cT.\u0275dir=ot({type:cT,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),cT.ctorParameters=()=>[{type:XS},{type:Lp},{type:Kd},{type:String,decorators:[{type:xs,args:["name"]}]},{type:xp}],cT.propDecorators={activateEvents:[{type:xg,args:["activate"]}],deactivateEvents:[{type:xg,args:["deactivate"]}]};class uT{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Mk?this.route:e===XS?this.childContexts:this.parent.get(e,t)}}class hT{}class dT{preload(e,t){return $v(null)}}class pT{constructor(e,t,n,s,i){this.router=e,this.injector=s,this.preloadingStrategy=i;this.loader=new YS(t,n,t=>e.triggerEvent(new jx(t)),t=>e.triggerEvent(new Bx(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Uv(e=>e instanceof Px),zv(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Fp);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const s of t)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const e=s._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(e,s)):s.children&&n.push(this.processRoutes(e,s.children));return L(n).pipe(H(),D(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?$v(t._loadedConfig):this.loader.load(e.injector,t)).pipe($(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}pT.\u0275fac=function(e){return new(e||pT)(ri(iT),ri(Sm),ri(Zg),ri(il),ri(hT))},pT.\u0275prov=ve({token:pT,factory:pT.\u0275fac}),pT.ctorParameters=()=>[{type:iT},{type:Sm},{type:Zg},{type:il},{type:hT}];class fT{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
3orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ix?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Px&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qx&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new qx(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}fT.\u0275fac=function(e){return new(e||fT)(ri(iT),ri(Lb),ri(void 0))},fT.\u0275prov=ve({token:fT,factory:fT.\u0275fac}),fT.ctorParameters=()=>[{type:iT},{type:Lb},{type:void 0}];const gT=new ks("ROUTER_CONFIGURATION"),mT=new ks("ROUTER_FORROOT_GUARD"),yT=[Xm,{provide:uk,useClass:hk},{provide:iT,useFactory:function(e,t,n,s,i,r,o,a={},l,c){const u=new iT(null,e,t,n,s,i,r,Jx(o));l&&(u.urlHandlingStrategy=l);c&&(u.routeReuseStrategy=c);if(kT(a,u),a.enableTracing){const e=Lm();u.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[uk,XS,Xm,il,Sm,Zg,QS,gT,[class{},new di],[class{},new di]]},XS,{provide:Mk,useFactory:function(e){return e.routerState.root},deps:[iT]},{provide:Sm,useClass:Em},pT,dT,class{preload(e,t){return t().pipe(cx(()=>$v(null)))}},{provide:gT,useValue:{enableTracing:!1}}];function bT(){return new ym("Router",iT)}class vT{constructor(e,t){}static forRoot(e,t){return{ngModule:vT,providers:[yT,xT(e),{provide:mT,useFactory:CT,deps:[[iT,new di,new fi]]},{provide:gT,useValue:t||{}},{provide:Gm,useFactory:wT,deps:[jm,[new hi(Qm),new di],gT]},{provide:fT,useFactory:_T,deps:[iT,Lb,gT]},{provide:hT,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:dT},{provide:ym,multi:!0,useFactory:bT},[ST,{provide:Ig,multi:!0,useFactory:TT,deps:[ST]},{provide:ET,useFactory:DT,deps:[ST]},{provide:Lg,multi:!0,useExisting:ET}]]}}static forChild(e){return{ngModule:vT,providers:[xT(e)]}}}function _T(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new fT(e,t,n)}function wT(e,t,n={}){return n.useHash?new Jm(e,t):new Ym(e,t)}function CT(e){return"guarded"}function xT(e){return[{provide:Ss,multi:!0,useValue:e},{provide:QS,multi:!0,useValue:e}]}function kT(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}vT.\u0275fac=function(e){return new(e||vT)(ri(mT,8),ri(iT,8))},vT.\u0275mod=st({type:vT}),vT.\u0275inj=_e({}),vT.ctorParameters=()=>[{type:void 0,decorators:[{type:di},{type:hi,args:[mT]}]},{type:iT,decorators:[{type:di}]}];class ST{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get($m,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(iT),s=this.injector.get(gT);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?$v(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(gT),n=this.injector.get(pT),s=this.injector.get(fT),i=this.injector.get(iT),r=this.injector.get(Cm);e===r.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),s.init(),i.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}function TT(e){return e.appInitializer.bind(e)}function DT(e){return e.bootstrapListener.bind(e)}ST.\u0275fac=function(e){return new(e||ST)(ri(il))},ST.\u0275prov=ve({token:ST,factory:ST.\u0275fac}),ST.ctorParameters=()=>[{type:il}];const ET=new ks("Router Initializer");new sp("11.2.14");function OT(e,t){if(e)return"en"===t?e.titleEng:"ru"===t?e.titleRus:e.titleEst}function IT(e,t){if(e)return"en"===t?e.slugEng:"ru"===t?encodeURIComponent(e.slugRus):e.slugEst}function PT(e,t){if(e)return"en"===t?e.slugEng:"ru"===t?e.slugRus:e.slugEst}function AT(e){return t=>t.lift(new MT(e))}class MT{constructor(e){this.notifier=e}call(e,t){const n=new FT(e),s=B(this.notifier,new V(n));return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class FT extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}n("Enxc");function RT(e,t,n,s,i){window.ng2recaptchaloaded=()=>{t(grecaptcha)};const r=document.createElement("script");r.innerHTML="";const o=s||"https://www.google.com/recaptcha/api.js";r.src=`${o}?render=${e}&onload=ng2recaptchaloaded${n}`,i&&(r.nonce=i),r.async=!0,r.defer=!0,document.head.appendChild(r)}const NT=new ks("recaptcha-language"),LT=new ks("recaptcha-base-url"),VT=new ks("recaptcha-nonce-tag"),jT=new ks("recaptcha-settings"),BT=new ks("recaptcha-v3-site-key");class $T{constructor(e,t,n,s,i){this.platformId=e,this.language=t,this.baseUrl=n,this.nonce=s,this.v3SiteKey=i,this.init(),this.ready=Nb(this.platformId)?$T.ready.asObservable():$v()}init(){if(!$T.ready&&Nb(this.platformId)){const e=new jC(null);$T.ready=e;const t=this.language?"&hl="+this.language:"";RT(this.v3SiteKey||"explicit",t=>e.next(t),t,this.baseUrl,this.nonce)}}}$T.\u0275fac=function(e){return new(e||$T)(ri(Ng),ri(NT,8),ri(LT,8),ri(VT,8),ri(BT,8))},$T.\u0275prov=ve({token:$T,factory:$T.\u0275fac}),$T.ready=null,$T.ctorParameters=()=>[{type:Object,decorators:[{type:hi,args:[Ng]}]},{type:String,decorators:[{type:di},{type:hi,args:[NT]}]},{type:String,decorators:[{type:di},{type:hi,args:[LT]}]},{type:String,decorators:[{type:di},{type:hi,args:[VT]}]},{type:String,decorators:[{type:di},{type:hi,args:[BT]}]}];let zT=0;class UT{constructor(e,t,n,s){this.elementRef=e,this.loader=t,this.zone=n,this.id="ngrecaptcha-"+zT++,this.errorMode="default",this.resolved=new Df,this.error=new Df,s&&(this.siteKey=s.siteKey,this.theme=s.theme,this.type=s.type,this.size=s.size,this.badge=s.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(e=>{null!=e&&e.render instanceof Function&&(this.grecaptcha=e,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset()
3)}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}errored(e){this.error.emit(e)}captchaResponseCallback(e){this.resolved.emit(e)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const e={badge:this.badge,callback:e=>{this.zone.run(()=>this.captchaResponseCallback(e))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(e["error-callback"]=(...e)=>{this.zone.run(()=>this.errored(e))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,e),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}}UT.\u0275fac=function(e){return new(e||UT)(kc(Yd),kc($T),kc(Xg),kc(jT,8))},UT.\u0275cmp=Je({type:UT,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(e,t){2&e&&Ol("id",t.id)},inputs:{id:"id",errorMode:"errorMode",siteKey:"siteKey",theme:"theme",type:"type",size:"size",badge:"badge",tabIndex:"tabIndex"},outputs:{resolved:"resolved",error:"error"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(e,t){},encapsulation:2}),UT.ctorParameters=()=>[{type:Yd},{type:$T},{type:Xg},{type:void 0,decorators:[{type:di},{type:hi,args:[jT]}]}],UT.propDecorators={id:[{type:Cg},{type:kg,args:["attr.id"]}],siteKey:[{type:Cg}],theme:[{type:Cg}],type:[{type:Cg}],size:[{type:Cg}],tabIndex:[{type:Cg}],badge:[{type:Cg}],errorMode:[{type:Cg}],resolved:[{type:xg}],error:[{type:xg}]};class HT{}HT.\u0275fac=function(e){return new(e||HT)},HT.\u0275mod=st({type:HT}),HT.\u0275inj=_e({});class qT{}qT.\u0275fac=function(e){return new(e||qT)},qT.\u0275mod=st({type:qT}),qT.\u0275inj=_e({providers:[$T],imports:[[HT]]});class WT{constructor(e,t,n,s,i,r){this.onLoadComplete=e=>{this.grecaptcha=e,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([e,t])=>this.executeActionWithSubject(e,t)),this.actionBacklog=void 0)},this.zone=e,this.isBrowser=Nb(n),this.siteKey=t,this.nonce=i,this.language=r,this.baseUrl=s,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new k,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new k,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(e){const t=new k;return this.isBrowser&&(this.grecaptcha?this.executeActionWithSubject(e,t):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([e,t]))),t.asObservable()}executeActionWithSubject(e,t){const n=n=>{this.zone.run(()=>{t.error(n),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:e,error:n})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:e}).then(n=>{this.zone.run(()=>{t.next(n),t.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:e,token:n})})},n)}catch(s){n(s)}})}init(){if(this.isBrowser)if("grecaptcha"in window)this.grecaptcha=grecaptcha;else{const e=this.language?"&hl="+this.language:"";RT(this.siteKey,this.onLoadComplete,e,this.baseUrl,this.nonce)}}}WT.\u0275fac=function(e){return new(e||WT)(ri(Xg),ri(BT),ri(Ng),ri(LT,8),ri(VT,8),ri(NT,8))},WT.\u0275prov=ve({token:WT,factory:WT.\u0275fac}),WT.ctorParameters=()=>[{type:Xg},{type:String,decorators:[{type:hi,args:[BT]}]},{type:Object,decorators:[{type:hi,args:[Ng]}]},{type:String,decorators:[{type:di},{type:hi,args:[LT]}]},{type:String,decorators:[{type:di},{type:hi,args:[VT]}]},{type:String,decorators:[{type:di},{type:hi,args:[NT]}]}];class KT{}KT.\u0275fac=function(e){return new(e||KT)},KT.\u0275mod=st({type:KT}),KT.\u0275inj=_e({providers:[WT]});class GT{constructor(e){this.host=e,this.requiresControllerReset=!1}writeValue(e){e?this.host.__unsafe_widgetValue!==e&&!1===Boolean(this.host.__unsafe_widgetValue)&&(this.requiresControllerReset=!0):this.host.reset()}registerOnChange(e){this.onChange=e,this.requiresControllerReset&&(this.requiresControllerReset=!1,this.onChange(null))}registerOnTouched(e){this.onTouched=e}onResolve(e){this.onChange&&this.onChange(e),this.onTouched&&this.onTouched()}}GT.\u0275fac=function(e){return new(e||GT)(kc(UT))},GT.\u0275dir=ot({type:GT,selectors:[["re-captcha","formControlName",""],["re-captcha","formControl",""],["re-captcha","ngModel",""]],hostBindings:function(e,t){1&e&&jc("resolved",function(e){return t.onResolve(e)})},features:[zd([{multi:!0,provide:A_,useExisting:ae(()=>GT)}])]}),GT.ctorParameters=()=>[{type:UT}],GT.propDecorators={onResolve:[{type:Sg,args:["resolved",["$event"]]}]};class ZT{}ZT.\u0275fac=function(e){return new(e||ZT)},ZT.\u0275mod=st({type:ZT}),ZT.\u0275inj=_e({imports:[[NC,HT]]});function QT(e,t,n,s){var i,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r<3?i(o):r>3?i(t,n,o):i(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function YT(e,t){return function(n,s){t(n,s,e)}}function JT(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}class XT{}function eD(e,t){return{type:7,name:e,definitions:t,options:{}}}function tD(e,t=null){return{type:4,styles:t,timings:e}}function nD(e,t=null){return{type:2,steps:e,options:t}}function sD(e){return{type:6,styles:e,offset:null}}function iD(e,t,n){return{type:0,name:e,styles:t,options:n}}function rD(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function oD(e){Promise.resolve(null).then(e)}class aD{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
3=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){oD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class lD{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const i=this.players.length;0==i?oD(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++n==i&&this._onDestroy()}),e.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const cD=["toast-component",""];function uD(e,t){if(1&e){const e=Rc();Oc(0,"button",5),jc("click",function(){Yt(e);return Hc().remove()}),Oc(1,"span",6),Mu(2,"\xd7"),Ic(),Ic()}}function hD(e,t){if(1&e&&(Ac(0),Mu(1),Mc()),2&e){const e=Hc(2);Lo(1),Ru("[",e.duplicatesCount+1,"]")}}function dD(e,t){if(1&e&&(Oc(0,"div"),Mu(1),Gl(2,hD,2,1,"ng-container",4),Ic()),2&e){const e=Hc();_u(e.options.titleClass),Ol("aria-label",e.title),Lo(1),Ru(" ",e.title," "),Lo(1),Tc("ngIf",e.duplicatesCount)}}function pD(e,t){if(1&e&&Pc(0,"div",7),2&e){const e=Hc();_u(e.options.messageClass),Tc("innerHTML",e.message,br)}}function fD(e,t){if(1&e&&(Oc(0,"div",8),Mu(1),Ic()),2&e){const e=Hc();_u(e.options.messageClass),Ol("aria-label",e.message),Lo(1),Ru(" ",e.message," ")}}function gD(e,t){if(1&e&&(Oc(0,"div"),Pc(1,"div",9),Ic()),2&e){const e=Hc();Lo(1),mu("width",e.width+"%")}}function mD(e,t){if(1&e){const e=Rc();Oc(0,"button",5),jc("click",function(){Yt(e);return Hc().remove()}),Oc(1,"span",6),Mu(2,"\xd7"),Ic(),Ic()}}function yD(e,t){if(1&e&&(Ac(0),Mu(1),Mc()),2&e){const e=Hc(2);Lo(1),Ru("[",e.duplicatesCount+1,"]")}}function bD(e,t){if(1&e&&(Oc(0,"div"),Mu(1),Gl(2,yD,2,1,"ng-container",4),Ic()),2&e){const e=Hc();_u(e.options.titleClass),Ol("aria-label",e.title),Lo(1),Ru(" ",e.title," "),Lo(1),Tc("ngIf",e.duplicatesCount)}}function vD(e,t){if(1&e&&Pc(0,"div",7),2&e){const e=Hc();_u(e.options.messageClass),Tc("innerHTML",e.message,br)}}function _D(e,t){if(1&e&&(Oc(0,"div",8),Mu(1),Ic()),2&e){const e=Hc();_u(e.options.messageClass),Ol("aria-label",e.message),Lo(1),Ru(" ",e.message," ")}}function wD(e,t){if(1&e&&(Oc(0,"div"),Pc(1,"div",9),Ic()),2&e){const e=Hc();Lo(1),mu("width",e.width+"%")}}let CD=class{constructor(e){this.el=e}getContainerElement(){return this.el.nativeElement}};CD.\u0275fac=function(e){return new(e||CD)(kc(Yd))},CD.\u0275dir=ot({type:CD,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),CD.ctorParameters=()=>[{type:Yd}],CD=QT([JT("design:paramtypes",[Yd])],CD);let xD=class{};xD.\u0275fac=function(e){return new(e||xD)},xD.\u0275mod=st({type:xD}),xD.\u0275inj=_e({});class kD{constructor(e,t,n,s,i,r){this.toastId=e,this.config=t,this.message=n,this.title=s,this.toastType=i,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(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}}const SD={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!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"},TD=new ks("ToastConfig");class DD{constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){const e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class ED extends class{attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}}{constructor(e,t,n){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=n}attachComponentPortal(e,t){const n=this._componentFactoryResolver.resolve
3ComponentFactory(e.component);let s;return s=n.create(e.injector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(s),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(s)),s}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let OD=class{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}};OD.\u0275fac=function(e){return new(e||OD)(ri(Vm))},OD.\u0275prov=ve({token:OD,factory:function(e){return OD.\u0275fac(e)},providedIn:"root"}),OD.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}],OD.ngInjectableDef=ve({factory:function(){return new OD(ri(Vm))},token:OD,providedIn:"root"}),OD=QT([YT(0,hi(Vm)),JT("design:paramtypes",[Object])],OD);class ID{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let PD=class{constructor(e,t,n,s){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=s,this._paneElements=new Map}create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(e){return new ED(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new ID(this._createPortalHost(e))}};PD.\u0275fac=function(e){return new(e||PD)(ri(OD),ri(Kd),ri(Cm),ri(Vm))},PD.\u0275prov=ve({token:PD,factory:function(e){return PD.\u0275fac(e)},providedIn:"root"}),PD.ctorParameters=()=>[{type:OD},{type:Kd},{type:Cm},{type:void 0,decorators:[{type:hi,args:[Vm]}]}],PD.ngInjectableDef=ve({factory:function(){return new PD(ri(OD),ri(Kd),ri(Cm),ri(Vm))},token:PD,providedIn:"root"}),PD=QT([YT(3,hi(Vm)),JT("design:paramtypes",[OD,Kd,Cm,Object])],PD);class AD{constructor(e){this._overlayRef=e,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(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class MD{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===kD?this._toastPackage:this._parentInjector.get(e,t,n)}}let FD=class{constructor(e,t,n,s,i){this.overlay=t,this._injector=n,this.sanitizer=s,this.ngZone=i,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign({},e.default,e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign({},e.default.iconClasses,e.config.iconClasses))}show(e,t,n={},s=""){return this._preBuildNotification(s,e,t,this.applyConfig(n))}success(e,t,n={}){const s=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(s,e,t,this.applyConfig(n))}error(e,t,n={}){const s=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(s,e,t,this.applyConfig(n))}info(e,t,n={}){const s=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(s,e,t,this.applyConfig(n))}warning(e,t,n={}){const s=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(s,e,t,this.applyConfig(n))}clear(e){for(const t of this.toasts)if(void 0!==e){if(t.toastId===e)return void t.toastRef.manualClose()}else t.toastRef.manualClose()}remove(e){const t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.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 e=this.toasts[this.currentlyActive].toastRef;e.isInactive()||(this.currentlyActive=this.currentlyActive+1,e.activate())}return!0}findDuplicate(e,t,n){for(const s of this.toasts)if(s.message===e)return s.toastRef.onDuplicate(t,n),s;return null}applyConfig(e={}){return Object.assign({},this.toastrConfig,e)}_findToast(e){for(let t=0;t<this.toasts.length;t++)if(this.toasts[t].toastId===e)return{index:t,activeToast:this.toasts[t]};return null}_preBuildNotification(e,t,n,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,t,n,s)):this._buildNotification(e,t,n,s)}_buildNotification(e,t,n,s){if(!s.toastComponent)throw new Error("toastComponent required");const i=this.findDuplicate(t,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if(t&&this.toastrConfig.preventDuplicates&&null!==i)return i;this.previousToastMessage=t;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(s.positionClass,this.overlayContainer);this.index=this.index+1;let a=t;t&&s.enableHtml&&(a=this.sanitizer.sanitize(yr.HTML,t));const l=new AD(o),c=new kD(this.index,s,a,n,e,l),u=new MD(c,this._injector),h=new DD(s.toastComponent,u),d=o.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=d._component;const p={toastId:this.index,message:t||"",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}};FD.\u0275fac=function(e){return new(e||FD)(ri(TD),ri(PD),ri(il),ri(Tv),ri(Xg))},FD.\u0275prov=ve({token:FD,factory:function(e){return FD.\u0275fac(e)},providedIn:"root"}),FD.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[TD]}]}
3,{type:PD},{type:il},{type:Tv},{type:Xg}],FD.ngInjectableDef=ve({factory:function(){return new FD(ri(TD),ri(PD),ri(za),ri(Tv),ri(Xg))},token:FD,providedIn:"root"}),FD=QT([YT(0,hi(TD)),JT("design:paramtypes",[Object,PD,il,Tv,Xg])],FD);let RD=class{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}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({},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 e=(new Date).getTime(),t=this.hideTime-e;this.width=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({},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({},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(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}};var ND;RD.\u0275fac=function(e){return new(e||RD)(kc(FD),kc(kD),kc(Xg))},RD.\u0275cmp=Je({type:RD,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&jc("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(bh("@flyInOut",t.state),_u(t.toastClasses),mu("display",t.displayStyle))},attrs:cD,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(e,t){1&e&&(Gl(0,uD,3,0,"button",0),Gl(1,dD,3,5,"div",1),Gl(2,pD,1,3,"div",2),Gl(3,fD,2,4,"div",3),Gl(4,gD,2,2,"div",4)),2&e&&(Tc("ngIf",t.options.closeButton),Lo(1),Tc("ngIf",t.title),Lo(1),Tc("ngIf",t.message&&t.options.enableHtml),Lo(1),Tc("ngIf",t.message&&!t.options.enableHtml),Lo(1),Tc("ngIf",t.options.progressBar))},directives:[sb],encapsulation:2,data:{animation:[eD("flyInOut",[iD("inactive",sD({opacity:0}
3)),iD("active",sD({opacity:1})),iD("removed",sD({opacity:0})),rD("inactive => active",tD("{{ easeTime }}ms {{ easing }}")),rD("active => removed",tD("{{ easeTime }}ms {{ easing }}"))])]}}),RD.ctorParameters=()=>[{type:FD},{type:kD},{type:Xg}],QT([kg("class"),JT("design:type",Object)],RD.prototype,"toastClasses",void 0),QT([kg("@flyInOut"),JT("design:type",Object)],RD.prototype,"state",void 0),QT([kg("style.display"),JT("design:type",Object),JT("design:paramtypes",[])],RD.prototype,"displayStyle",null),QT([Sg("click"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],RD.prototype,"tapToast",null),QT([Sg("mouseenter"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],RD.prototype,"stickAround",null),QT([Sg("mouseleave"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],RD.prototype,"delayedHideToast",null),RD=QT([JT("design:paramtypes",[FD,kD,Xg])],RD);const LD=Object.assign({},SD,{toastComponent:RD});let VD=ND=class{static forRoot(e={}){return{ngModule:ND,providers:[{provide:TD,useValue:{default:LD,config:e}}]}}};VD.\u0275fac=function(e){return new(e||VD)},VD.\u0275mod=st({type:VD}),VD.\u0275inj=_e({imports:[[Rb]]});let jD=class{static forRoot(e={}){return{ngModule:VD,providers:[{provide:TD,useValue:{default:SD,config:e}}]}}};var BD;jD.\u0275fac=function(e){return new(e||jD)},jD.\u0275mod=st({type:jD}),jD.\u0275inj=_e({imports:[[Rb]]});let $D=class{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}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 e=(new Date).getTime(),t=this.hideTime-e;this.width=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
3),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}};$D.\u0275fac=function(e){return new(e||$D)(kc(FD),kc(kD),kc(Cm))},$D.\u0275cmp=Je({type:$D,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&jc("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(_u(t.toastClasses),mu("display",t.displayStyle))},attrs:cD,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(e,t){1&e&&(Gl(0,mD,3,0,"button",0),Gl(1,bD,3,5,"div",1),Gl(2,vD,1,3,"div",2),Gl(3,_D,2,4,"div",3),Gl(4,wD,2,2,"div",4)),2&e&&(Tc("ngIf",t.options.closeButton),Lo(1),Tc("ngIf",t.title),Lo(1),Tc("ngIf",t.message&&t.options.enableHtml),Lo(1),Tc("ngIf",t.message&&!t.options.enableHtml),Lo(1),Tc("ngIf",t.options.progressBar))},directives:[sb],encapsulation:2}),$D.ctorParameters=()=>[{type:FD},{type:kD},{type:Cm}],QT([kg("class"),JT("design:type",Object)],$D.prototype,"toastClasses",void 0),QT([kg("style.display"),JT("design:type",Object),JT("design:paramtypes",[])],$D.prototype,"displayStyle",null),QT([Sg("click"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],$D.prototype,"tapToast",null),QT([Sg("mouseenter"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],$D.prototype,"stickAround",null),QT([Sg("mouseleave"),JT("design:type",Function),JT("design:paramtypes",[]),JT("design:returntype",void 0)],$D.prototype,"delayedHideToast",null),$D=QT([JT("design:paramtypes",[FD,kD,Cm])],$D);const zD=Object.assign({},SD,{toastComponent:$D});let UD=BD=class{static forRoot(e={}){return{ngModule:BD,providers:[{provide:TD,useValue:{default:zD,config:e}}]}}};UD.\u0275fac=function(e){return new(e||UD)},UD.\u0275mod=st({type:UD}),UD.\u0275inj=_e({imports:[[Rb]]});class HD extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class qD extends HD{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,s=!1;try{this.work(e)}catch(i){s=!0,n=!!i&&i||new Error(i)}if(s)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class WD{constructor(e,t=WD.now){this.SchedulerAction=e,this.now=t}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}WD.now=()=>Date.now();class KD extends WD{constructor(e,t=WD.now){super(e,()=>KD.delegate&&KD.delegate!==this?KD.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return KD.delegate&&KD.delegate!==this?KD.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const GD=new class extends KD{}
3(class extends qD{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}});function ZD(e,t){return new v(t?n=>t.schedule(QD,0,{error:e,subscriber:n}):t=>t.error(e))}function QD({error:e,subscriber:t}){t.error(e)}var YD;!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(YD||(YD={}));class JD{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return $v(this.value);case"E":return ZD(this.error);case"C":return QC()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new JD("N",e):JD.undefinedValueNotification}static createError(e){return new JD("E",void 0,e)}static createComplete(){return JD.completeNotification}}JD.completeNotification=new JD("C"),JD.undefinedValueNotification=new JD("N",void 0);class XD extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(XD.dispatch,this.delay,new eE(e,this.destination)))}_next(e){this.scheduleMessage(JD.createNext(e))}_error(e){this.scheduleMessage(JD.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(JD.createComplete()),this.unsubscribe()}}class eE{constructor(e,t){this.notification=e,this.destination=t}}class tE extends k{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new nE(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new w;if(this.isStopped||this.hasError?r=h.EMPTY:(this.observers.push(e),r=new C(this,e)),s&&e.add(e=new XD(e,s)),t)for(let o=0;o<i&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<i&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),r}_getNow(){return(this.scheduler||GD).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(e-s[r].time<n);)r++;return i>t&&(r=Math.max(r,i-t)),r>0&&s.splice(0,r),s}}class nE{constructor(e,t){this.time=e,this.value=t}}const sE=new KD(qD);function iE(e){return!l(e)&&e-parseFloat(e)+1>=0}function rE(e=0,t,n){let s=-1;return iE(t)?s=Number(t)<1?1:Number(t):T(t)&&(n=t),T(n)||(n=sE),new v(t=>{const i=iE(e)?e:+e-n.now();return n.schedule(oE,i,{index:0,period:s,subscriber:t})})}function oE(e){const{index:t,period:n,subscriber:s}=e;if(s.next(t),!s.closed){if(-1===n)return s.complete();e.index=t+1,this.schedule(e,n)}}function aE(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>D(function(e,t){return n=>{let s=n;for(let i=0;i<t;i++){const t=null!=s?s[e[i]]:void 0;if(void 0===t)return;s=t}return s}}(e,t))(n)}Object.prototype.toString;
3function lE(e,t,n,i){return s(n)&&(i=n,n=void 0),i?lE(e,t,n).pipe(D(e=>l(e)?i(...e):i(e))):new v(s=>{cE(e,t,function(e){arguments.length>1?s.next(Array.prototype.slice.call(arguments)):s.next(e)},s,n)})}function cE(e,t,n,s,i){let r;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const s=e;e.addEventListener(t,n,i),r=()=>s.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const s=e;e.on(t,n),r=()=>s.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const s=e;e.addListener(t,n),r=()=>s.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let r=0,o=e.length;r<o;r++)cE(e[r],t,n,s,i)}s.add(r)}function uE(...e){if(1===e.length){if(!l(e[0]))return e[0];e=e[0]}return q(e,void 0).lift(new hE)}class hE{call(e,t){return t.subscribe(new dE(e))}}class dE extends BC{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n<t&&!this.hasFirst;n++){const t=zC(this,e[n],void 0,n);this.subscriptions&&this.subscriptions.push(t),this.add(t)}this.observables=null}}notifyNext(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(let e=0;e<this.subscriptions.length;e++)if(e!==n){let t=this.subscriptions[e];t.unsubscribe(),this.remove(t)}this.subscriptions=null}this.destination.next(t)}}const pE=new v(xx);function fE(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),q(e,void 0).lift(new gE(t))}class gE{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new mE(e,this.resultSelector))}}class mE extends f{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;l(e)?t.push(new bE(e)):"function"==typeof e[P]?t.push(new yE(e[P]())):t.push(new vE(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;n<t;n++){let t=e[n];if(t.stillUnsubscribed){this.destination.add(t.subscribe())}else this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const e=this.iterators,t=e.length,n=this.destination;for(let r=0;r<t;r++){let t=e[r];if("function"==typeof t.hasValue&&!t.hasValue())return}let s=!1;const i=[];for(let r=0;r<t;r++){let t=e[r],o=t.next();if(t.hasCompleted()&&(s=!0),o.done)return void n.complete();i.push(o.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),s&&n.complete()}_tryresultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}class yE{constructor(e){this.iterator=e,this.nextResult=e.next()}hasValue(){return!0}next(){const e=this.nextResult;return this.nextResult=this.iterator.next(),e}hasCompleted(){const e=this.nextResult;return Boolean(e&&e.done)}}class bE{constructor(e){this.array=e,this.index=0,this.length=0,this.length=e.length}[P](){return this}next(e){const t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class vE extends j{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[P](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return B(this.observable,new V(this))}}function _E(e,t){return n=>n.lift(new wE(e,t))}class wE{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new CE(e,this.compare,this.keySelector))}}class CE extends f{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}function xE(...e){return t=>{let n;"function"==typeof e[e.length-1]&&(n=e.pop());const s=e;return t.lift(new kE(s,n))}}class kE{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new SE(e,this.observables,this.project))}}class SE extends BC{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const s=t.length;this.values=new Array(s);for(let i=0;i<s;i++)this.toRespond.push(i);for(let i=0;i<s;i++){let e=t[i];this.add(zC(this,e,void 0,i))}}notifyNext(e,t,n){this.values[n]=t;const s=this.toRespond;if(s.length>0){const e=s.indexOf(n);-1!==e&&s.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function TE(e,t=sE){var n;const s=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new DE(s,t))}
3class DE{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new EE(e,this.delay,this.scheduler))}}class EE extends f{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,s=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-s.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0;this.destination.add(e.schedule(EE.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new OE(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(JD.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(JD.createComplete()),this.unsubscribe()}}class OE{constructor(e,t){this.time=e,this.notification=t}}class IE{constructor(e){this.total=e}call(e,t){return t.subscribe(new PE(e,this.total))}}class PE extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}function AE(e,t){}function ME(e,t){if(1&e&&(Oc(0,"button",3),Mu(1),Gl(2,AE,0,0,"ng-template",4),Ic()),2&e){const e=t.$implicit;Tc("ngbPanelToggle",e),Lo(1),Ru(" ",e.title,""),Lo(1),Tc("ngTemplateOutlet",null==e.titleTpl?null:e.titleTpl.templateRef)}}function FE(e,t){}function RE(e,t){}function NE(e,t){if(1&e&&(Oc(0,"div",8),Oc(1,"div",9),Gl(2,RE,0,0,"ng-template",4),Ic(),Ic()),2&e){const e=Hc().$implicit;Gc("id",e.id),Ol("aria-labelledby",e.id+"-header"),Lo(2),Tc("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)}}const LE=function(e,t){return{$implicit:e,opened:t}};function VE(e,t){if(1&e&&(Oc(0,"div"),Oc(1,"div",5),Gl(2,FE,0,0,"ng-template",6),Ic(),Gl(3,NE,3,3,"div",7),Ic()),2&e){const e=t.$implicit,n=Hc(),s=Zl(1);_u("card "+(e.cardClass||"")),Lo(1),_u("card-header "+(e.type?"bg-"+e.type:n.type?"bg-"+n.type:"")),Zc("id","",e.id,"-header"),Lo(1),Tc("ngTemplateOutlet",(null==e.headerTpl?null:e.headerTpl.templateRef)||s)("ngTemplateOutletContext",sf(8,LE,e,e.isOpen)),Lo(1),Tc("ngIf",!n.destroyOnHide||e.isOpen||e.transitionRunning)}}function jE(e,t){if(1&e){const e=Rc();Oc(0,"button",1),jc("click",function(){Yt(e);return Hc().close()}),Oc(1,"span",2),Mu(2,"\xd7"),Ic(),Ic()}}const BE=["*"];function $E(e,t){if(1&e){const e=Rc();Oc(0,"li",6),jc("click",function(){Yt(e);const n=t.$implicit,s=Hc();return s.focus(),s.select(n.id,s.NgbSlideEventSource.INDICATOR)}),Ic()}if(2&e){const e=t.$implicit,n=Hc();yu("active",e.id===n.activeId),Ol("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===n.activeId)}}function zE(e,t){}function UE(e,t){if(1&e&&(Oc(0,"div",7),Oc(1,"span",8),Id(2,9),Ic(),Gl(3,zE,0,0,"ng-template",10),Ic()),2&e){const e=t.$implicit,n=t.index,s=t.count;Tc("id","slide-"+e.id),Lo(2),Ad(n+1)(s),Md(2),Lo(1),Tc("ngTemplateOutlet",e.tplRef)}}function HE(e,t){if(1&e){const e=Rc();Oc(0,"a",11),jc("click",function(){Yt(e);return Hc().arrowLeft()}),Pc(1,"span",12),Oc(2,"span",8),Id(3,13),Ic(),Ic()}}function qE(e,t){if(1&e){const e=Rc();Oc(0,"a",14),jc("click",function(){Yt(e);return Hc().arrowRight()}),Pc(1,"span",15),Oc(2,"span",8),Id(3,16),Ic(),Ic()}}const WE=["defaultDayTemplate"],KE=["content"];function GE(e,t){if(1&e&&Pc(0,"div",7),2&e){const e=t.date,n=t.currentMonth,s=t.selected,i=t.disabled,r=t.focused;Tc("date",e)("currentMonth",n)("selected",s)("disabled",i)("focused",r)}}function ZE(e,t){if(1&e&&(Oc(0,"div",12),Mu(1),Ic()),2&e){const e=Hc().$implicit,t=Hc(2);Lo(1),Ru(" ",t.i18n.getMonthLabel(e.firstDate)," ")}}function QE(e,t){if(1&e&&(Oc(0,"div",9),Gl(1,ZE,2,1,"div",10),Pc(2,"ngb-datepicker-month",11),Ic()),2&e){const e=t.$implicit,n=Hc(2);Lo(1),Tc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),Lo(1),Tc("month",e.firstDate)}}function YE(e,t){if(1&e&&Gl(0,QE,3,2,"div",8),2&e){Tc("ngForOf",Hc().model.months)}}function JE(e,t){if(1&e){const e=Rc();Oc(0,"ngb-datepicker-navigation",13),jc("navigate",function(t){Yt(e);return Hc().onNavigateEvent(t)})("select",function(t){Yt(e);return Hc().onNavigateDateSelect(t)}),Ic()}if(2&e){const e=Hc();Tc("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect","select"===e.model.navigation)("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function XE(e,t){}function eO(e,t){}function tO(e,t){if(1&e&&(Oc(0,"div",5),Mu(1),Ic()),2&e){const e=Hc(2);Lo(1),Fu(e.i18n.getWeekLabel())}}function nO(e,t){if(1&e&&(Oc(0,"div",6),Mu(1),Ic()),2&e){const e=t.$implicit;Lo(1),Fu(e)}}function sO(e,t){if(1&e&&(Oc(0,"div",2),Gl(1,tO,2,1,"div",3),Gl(2,nO,2,1,"div",4),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.datepicker.showWeekNumbers),Lo(1),Tc("ngForOf",e.viewModel.weekdays)}}function iO(e,t){if(1&e&&(Oc(0,"div",11),Mu(1),Ic()),2&e){const e=Hc(2).$implicit,t=Hc();
3Lo(1),Fu(t.i18n.getWeekNumerals(e.number))}}function rO(e,t){}function oO(e,t){if(1&e&&Gl(0,rO,0,0,"ng-template",14),2&e){const e=Hc().$implicit;Tc("ngTemplateOutlet",Hc(3).datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function aO(e,t){if(1&e){const e=Rc();Oc(0,"div",12),jc("click",function(n){Yt(e);const s=t.$implicit;return Hc(3).doSelect(s),n.preventDefault()}),Gl(1,oO,1,2,"ng-template",13),Ic()}if(2&e){const e=t.$implicit;yu("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),Tc("tabindex",e.tabindex),Ol("aria-label",e.ariaLabel),Lo(1),Tc("ngIf",!e.hidden)}}function lO(e,t){if(1&e&&(Oc(0,"div",8),Gl(1,iO,2,1,"div",9),Gl(2,aO,2,9,"div",10),Ic()),2&e){const e=Hc().$implicit,t=Hc();Lo(1),Tc("ngIf",t.datepicker.showWeekNumbers),Lo(1),Tc("ngForOf",e.days)}}function cO(e,t){if(1&e&&Gl(0,lO,3,2,"div",7),2&e){Tc("ngIf",!t.$implicit.collapsed)}}function uO(e,t){if(1&e){const e=Rc();Oc(0,"ngb-datepicker-navigation-select",7),jc("select",function(t){Yt(e);return Hc().select.emit(t)}),Ic()}if(2&e){const e=Hc();Tc("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function hO(e,t){1&e&&Pc(0,"div",0)}function dO(e,t){1&e&&Pc(0,"div",0)}function pO(e,t){if(1&e&&(Gl(0,hO,1,0,"div",9),Oc(1,"div",10),Mu(2),Ic(),Gl(3,dO,1,0,"div",9)),2&e){const e=t.$implicit,n=t.index,s=Hc(2);Tc("ngIf",n>0),Lo(2),Ru(" ",s.i18n.getMonthLabel(e.firstDate)," "),Lo(1),Tc("ngIf",n!==s.months.length-1)}}function fO(e,t){if(1&e&&Gl(0,pO,4,3,"ng-template",8),2&e){Tc("ngForOf",Hc().months)}}const gO=["month"],mO=["year"];function yO(e,t){if(1&e&&(Oc(0,"option",5),Mu(1),Ic()),2&e){const e=t.$implicit,n=Hc();Tc("value",e),Ol("aria-label",n.i18n.getMonthFullName(e,null==n.date?null:n.date.year)),Lo(1),Fu(n.i18n.getMonthShortName(e,null==n.date?null:n.date.year))}}function bO(e,t){if(1&e&&(Oc(0,"option",5),Mu(1),Ic()),2&e){const e=t.$implicit,n=Hc();Tc("value",e),Lo(1),Fu(n.i18n.getYearNumerals(e))}}const vO=["dialog"];function _O(e,t){}const wO=function(e){return{$implicit:e}};function CO(e,t){if(1&e&&(Oc(0,"div",2),Gl(1,_O,0,0,"ng-template",3),Ic()),2&e){const e=Hc().$implicit,t=Hc();Tc("item",e)("nav",t.nav)("role",t.paneRole),Lo(1),Tc("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",nf(5,wO,e.active||t.isPanelTransitioning(e)))}}function xO(e,t){if(1&e&&Gl(0,CO,2,7,"div",1),2&e){const e=t.$implicit,n=Hc();Tc("ngIf",e.isPanelInDom()||n.isPanelTransitioning(e))}}function kO(e,t){1&e&&(Oc(0,"span",9),Id(1,10),Ic())}function SO(e,t){1&e&&(Oc(0,"span",9),Id(1,11),Ic())}function TO(e,t){1&e&&(Oc(0,"span",9),Id(1,12),Ic())}function DO(e,t){1&e&&(Oc(0,"span",9),Id(1,13),Ic())}function EO(e,t){1&e&&Mu(0,"...")}function OO(e,t){1&e&&(Oc(0,"span",15),Mu(1,"(current)"),Ic())}function IO(e,t){if(1&e&&(Mu(0),Gl(1,OO,2,0,"span",14)),2&e){const e=t.$implicit,n=t.currentPage;Ru(" ",e," "),Lo(1),Tc("ngIf",e===n)}}function PO(e,t){}const AO=function(e){return{disabled:!0,currentPage:e}};function MO(e,t){if(1&e&&(Oc(0,"a",20),Gl(1,PO,0,0,"ng-template",8),Ic()),2&e){const e=Hc(2).$implicit,t=Hc(),n=Zl(9);Lo(1),Tc("ngTemplateOutlet",(null==t.tplEllipsis?null:t.tplEllipsis.templateRef)||n)("ngTemplateOutletContext",nf(2,AO,e))}}function FO(e,t){}const RO=function(e,t,n){return{disabled:e,$implicit:t,currentPage:n}};function NO(e,t){if(1&e){const e=Rc();Oc(0,"a",21),jc("click",function(t){Yt(e);const n=Hc().$implicit;return Hc(2).selectPage(n),t.preventDefault()}),Gl(1,FO,0,0,"ng-template",8),Ic()}if(2&e){const e=Hc().$implicit,t=Hc(),n=t.disabled,s=t.$implicit,i=Hc(),r=Zl(11);Ol("tabindex",n?"-1":null)("aria-disabled",n?"true":null),Lo(1),Tc("ngTemplateOutlet",(null==i.tplNumber?null:i.tplNumber.templateRef)||r)("ngTemplateOutletContext",rf(4,RO,n,e,s))}}function LO(e,t){if(1&e&&(Oc(0,"li",17),Gl(1,MO,2,4,"a",18),Gl(2,NO,2,8,"a",19),Ic()),2&e){const e=t.$implicit,n=Hc(),s=n.$implicit,i=n.disabled,r=Hc();yu("active",e===s)("disabled",r.isEllipsis(e)||i),Ol("aria-current",e===s?"page":null),Lo(1),Tc("ngIf",r.isEllipsis(e)),Lo(1),Tc("ngIf",!r.isEllipsis(e))}}function VO(e,t){if(1&e&&Gl(0,LO,3,7,"li",16),2&e){Tc("ngForOf",t.pages)}}function jO(e,t){}const BO=function(e,t){return{disabled:e,currentPage:t}};function $O(e,t){if(1&e){const e=Rc();Oc(0,"li",17),Oc(1,"a",22),jc("click",function(t){Yt(e);return Hc().selectPage(1),t.preventDefault()}),Gl(2,jO,0,0,"ng-template",8),Ic(),Ic()}if(2&e){const e=Hc(),t=Zl(1);yu("disabled",e.previousDisabled()),Lo(1),Ol("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),Lo(1),Tc("ngTemplateOutlet",(null==e.tplFirst?null:e.tplFirst.templateRef)||t)("ngTemplateOutletContext",sf(6,BO,e.previousDisabled(),e.page))}}function zO(e,t){}const UO=function(e){return{disabled:e}};function HO(e,t){if(1&e){const e=Rc();Oc(0,"li",17),Oc(1,"a",23),jc("click",function(t){Yt(e);const n=Hc();return n.selectPage(n.page-1),t.preventDefault()}),Gl(2,zO,0,0,"ng-template",8),Ic(),Ic()}if(2&e){const e=Hc(),t=Zl(3);yu("disabled",e.previousDisabled()),Lo(1),Ol("tabindex",e.previousDisabled()?"-1":null)("aria-disabled",e.previousDisabled()?"true":null),Lo(1),Tc("ngTemplateOutlet",(null==e.tplPrevious?null:e.tplPrevious.templateRef)||t)("ngTemplateOutletContext",nf(6,UO,e.previousDisabled()))}}function qO(e,t){}function WO(e,t){}function KO(e,t){if(1&e){const e=Rc();Oc(0,"li",17),Oc(1,"a",24),jc("click",function(t){Yt(e);const n=Hc();return n.selectPage(n.page+1),t.preventDefault()}),Gl(2,WO,0,0,"ng-template",8),Ic(),Ic()}if(2&e){const e=Hc(),t=Zl(5);yu("disabled",e.nextDisabled()),Lo(1),Ol("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),Lo(1),Tc("ngTemplateOutlet",(null==e.tplNext?null:e.tplNext.templateRef)||t)("ngTemplateOutletContext",sf(6,BO,e.nextDisabled(),e.page))}}function GO(e,t){}function ZO(e,t){if(1&e){const e=Rc();Oc(0,"li",17),Oc(1,"a",25),jc("click",function(t){Yt(e);const n=Hc();return n.selectPage(n.pageCount),t.preventDefault()}),Gl(2,GO,0,0,"ng-template",8),Ic(),Ic()}if(2&e){const e=Hc(),t=Zl(7);yu("disabled",e.nextDisabled()),Lo(1),Ol("tabindex",e.nextDisabled()?"-1":null)("aria-disabled",e.nextDisabled()?"true":null),Lo(1),Tc("ngTemplateOutlet",(null==e.tplLast?null:e.tplLast.templateRef)||t)("ngTemplateOutletContext",sf(6,BO,e.nextDisabled(),e.page))}}const QO=function(e,t,n){return{$implicit:e,pages:t,disabled:n}};function YO(e,t){if(1&e&&Mu(0),2&e){Fu(Hc(2).title)}}function JO(e,t){}function XO(e,t){if(1&e&&(Oc(0,"h3",3),Gl(1,YO,1,1,"ng-template",null,4,Wf),Gl(3,JO,0,0,"ng-template",5),Ic()),2&e){const e=Zl(2),t=Hc();Lo(3),Tc("ngTemplateOutlet",t.isTitleTemplate()?t.title:e)("ngTemplateOutletContext",t.context)}}function eI(e,t){if(1&e&&(Oc(0,"span"),Id(1,2),bf(2,"percent"),Ic()),2&e){const e=Hc();Lo(2),Ad(vf(2,1,e.getValue()/e.max)),Md(1)}}function tI(e,t){if(1&e&&Mu(0),2&e){Fu(100===t.fill?"\u2605":"\u2606")}}function nI(e,t){}function sI(e,t){if(1&e){const e=Rc();Oc(0,"span",2),Mu(1),Ic(),Oc(2,"span",3),jc("mouseenter",function(){Yt(e);const n=t.index;return Hc().enter(n+1)})("click",function(){Yt(e);const n=t.index;return Hc().handleClick(n+1)}),Gl(3,nI,0,0,"ng-template",4),Ic()}if(2&e){const e=t.index,n=Hc(),s=Zl(1);Lo(1),Ru("(",e<n.nextRate?"*":" ",")"),Lo(1),mu("cursor",n.isInteractive()?"pointer":"default"),Lo(1),Tc("ngTemplateOutlet",n.starTemplate||n.starTemplateFromContent||s)("ngTemplateOutletContext",n.contexts[e])}}function iI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc();return t.changeHour(t.hourStep)}
3),Pc(1,"span",12),Oc(2,"span",13),Id(3,14),Ic(),Ic()}if(2&e){const e=Hc();yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function rI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc();return t.changeHour(-t.hourStep)}),Pc(1,"span",15),Oc(2,"span",13),Id(3,16),Ic(),Ic()}if(2&e){const e=Hc();yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function oI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc();return t.changeMinute(t.minuteStep)}),Pc(1,"span",12),Oc(2,"span",13),Id(3,17),Ic(),Ic()}if(2&e){const e=Hc();yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function aI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc();return t.changeMinute(-t.minuteStep)}),Pc(1,"span",15),Oc(2,"span",13),Id(3,18),Ic(),Ic()}if(2&e){const e=Hc();yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function lI(e,t){1&e&&(Oc(0,"div",5),Mu(1,":"),Ic())}function cI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc(2);return t.changeSecond(t.secondStep)}),Pc(1,"span",12),Oc(2,"span",13),Id(3,21),Ic(),Ic()}if(2&e){const e=Hc(2);yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function uI(e,t){if(1&e){const e=Rc();Oc(0,"button",11),jc("click",function(){Yt(e);const t=Hc(2);return t.changeSecond(-t.secondStep)}),Pc(1,"span",15),Oc(2,"span",13),Id(3,22),Ic(),Ic()}if(2&e){const e=Hc(2);yu("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),Tc("disabled",e.disabled)}}function hI(e,t){if(1&e){const e=Rc();Oc(0,"div",19),Gl(1,cI,4,7,"button",3),Oc(2,"input",20),jc("change",function(t){Yt(e);return Hc().updateSecond(t.target.value)})("blur",function(){Yt(e);return Hc().handleBlur()})("input",function(t){Yt(e);return Hc().formatInput(t.target)})("keydown.ArrowUp",function(t){Yt(e);const n=Hc();return n.changeSecond(n.secondStep),t.preventDefault()})("keydown.ArrowDown",function(t){Yt(e);const n=Hc();return n.changeSecond(-n.secondStep),t.preventDefault()}),Ic(),Gl(3,uI,4,7,"button",3),Ic()}if(2&e){const e=Hc();Lo(1),Tc("ngIf",e.spinners),Lo(1),yu("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),Tc("value",e.formatMinSec(null==e.model?null:e.model.second))("readOnly",e.readonlyInputs)("disabled",e.disabled),Lo(1),Tc("ngIf",e.spinners)}}function dI(e,t){1&e&&Pc(0,"div",5)}function pI(e,t){if(1&e&&(Ac(0),Id(1,27),Mc()),2&e){const e=Hc(2);Lo(1),Ad(e.i18n.getAfternoonPeriod()),Md(1)}}function fI(e,t){if(1&e&&Id(0,28),2&e){Ad(Hc(2).i18n.getMorningPeriod()),Md(0)}}function gI(e,t){if(1&e){const e=Rc();Oc(0,"div",23),Oc(1,"button",24),jc("click",function(){Yt(e);return Hc().toggleMeridian()}),Gl(2,pI,2,1,"ng-container",25),Gl(3,fI,1,1,"ng-template",null,26,Wf),Ic(),Ic()}if(2&e){const e=Zl(4),t=Hc();Lo(1),yu("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),Tc("disabled",t.disabled),Lo(1),Tc("ngIf",t.model&&t.model.hour>=12)("ngIfElse",e)}}function mI(e,t){if(1&e&&(Oc(0,"strong",3),Mu(1),Ic()),2&e){const e=Hc();Lo(1),Fu(e.header)}}function yI(e,t){}function bI(e,t){if(1&e){const e=Rc();Oc(0,"div",4),Gl(1,yI,0,0,"ng-template",5),Oc(2,"button",6),jc("click",function(){Yt(e);return Hc().hide()}),Oc(3,"span",7),Mu(4,"\xd7"),Ic(),Ic(),Ic()}if(2&e){const e=Hc(),t=Zl(1);Lo(1),Tc("ngTemplateOutlet",e.contentHeaderTpl||t)}}function vI(e,t){if(1&e&&(Oc(0,"span"),Mu(1),Ic()),2&e){const e=Hc().$implicit;_u(Hc().highlightClass),Lo(1),Fu(e)}}function _I(e,t){if(1&e&&Mu(0),2&e){Fu(Hc().$implicit)}}function wI(e,t){if(1&e&&(Gl(0,vI,2,3,"span",1),Gl(1,_I,1,1,"ng-template",null,2,Wf)),2&e){const e=t.odd,n=Zl(2);Tc("ngIf",e)("ngIfElse",n)}}function CI(e,t){if(1&e&&Pc(0,"ngb-highlight",2),2&e){const e=t.result,n=t.term;Tc("result",(0,t.formatter)(e))("term",n)}}function xI(e,t){}const kI=function(e,t,n){return{result:e,term:t,formatter:n}};function SI(e,t){if(1&e){const e=Rc();Oc(0,"button",3),jc("mouseenter",function(){Yt(e);const n=t.index;return Hc().markActive(n)})("click",function(){Yt(e);
3const n=t.$implicit;return Hc().select(n)}),Gl(1,xI,0,0,"ng-template",4),Ic()}if(2&e){const e=t.$implicit,n=t.index,s=Hc(),i=Zl(1);yu("active",n===s.activeIdx),Tc("id",s.id+"-"+n),Lo(1),Tc("ngTemplateOutlet",s.resultTemplate||i)("ngTemplateOutletContext",rf(5,kI,e,s.term,s.formatter))}}function TI(e){return parseInt(`${e}`,10)}function DI(e){return null!=e?`${e}`:""}function EI(e,t,n=0){return Math.max(Math.min(e,t),n)}function OI(e){return"string"==typeof e}function II(e){return!isNaN(TI(e))}function PI(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function AI(e){return null!=e}function MI(e){return II(e)?`0${e}`.slice(-2):""}function FI(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}function RI(e){return(e||document.body).getBoundingClientRect()}function NI(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const LI={animation:!0,transitionTimerDelayMs:5};class VI{constructor(){this.animation=LI.animation}}VI.\u0275fac=function(e){return new(e||VI)},VI.\u0275prov=ve({factory:function(){return new VI},token:VI,providedIn:"root"});class jI{constructor(e){this._ngbConfig=e,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}jI.\u0275fac=function(e){return new(e||jI)(ri(VI))},jI.\u0275prov=ve({factory:function(){return new jI(ri(VI))},token:jI,providedIn:"root"}),jI.ctorParameters=()=>[{type:VI}];const BI=()=>{},{transitionTimerDelayMs:$I}=LI,zI=new Map,UI=(e,t,n,s)=>{let i=s.context||{};const r=zI.get(t);if(r)switch(s.runningTransition){case"continue":return ZC;case"stop":e.run(()=>r.transition$.complete()),i=Object.assign(r.context,i),zI.delete(t)}const o=n(t,s.animation,i)||BI;if(!s.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>o()),$v(void 0).pipe(function(e){return t=>new v(n=>t.subscribe(t=>e.run(()=>n.next(t)),t=>e.run(()=>n.error(t)),()=>e.run(()=>n.complete())))}(e));const a=new k,l=new k,c=a.pipe(function(...e){return t=>GC(t,$v(...e))}(!0));zI.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});const u=function(e){const{transitionDelay:t,transitionDuration:n}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(n))}(t);return e.runOutsideAngular(()=>{const n=lE(t,"transitionend").pipe(AT(c),Uv(({target:e})=>e===t));uE(rE(u+$I).pipe(AT(c)),n,l).pipe(AT(c)).subscribe(()=>{zI.delete(t),e.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};const HI=(e,t,n)=>{let{direction:s,maxHeight:i}=n;const{classList:r}=e;function o(){r.add("collapse"),"show"===s?r.add("show"):r.remove("show")}if(t)return i||(i=function(e){if("undefined"==typeof navigator)return"0px";const{classList:t}=e,n=t.contains("show");n||t.add("show"),e.style.height="";const s=e.getBoundingClientRect().height+"px";return n||t.remove("show"),s}(e),n.maxHeight=i,e.style.height="show"!==s?i:"0px",r.remove("collapse"),r.remove("collapsing"),r.remove("show"),RI(e),r.add("collapsing")),e.style.height="show"===s?i:"0px",()=>{o(),r.remove("collapsing"),e.style.height=""};o()};let qI=0;class WI{constructor(e){this.templateRef=e}}WI.\u0275fac=function(e){return new(e||WI)(kc(Ip))},WI.\u0275dir=ot({type:WI,selectors:[["ng-template","ngbPanelHeader",""]]}),WI.ctorParameters=()=>[{type:Ip}];class KI{constructor(e){this.templateRef=e}}KI.\u0275fac=function(e){return new(e||KI)(kc(Ip))},KI.\u0275dir=ot({type:KI,selectors:[["ng-template","ngbPanelTitle",""]]}),KI.ctorParameters=()=>[{type:Ip}];class GI{constructor(e){this.templateRef=e}}GI.\u0275fac=function(e){return new(e||GI)(kc(Ip))},GI.\u0275dir=ot({type:GI,selectors:[["ng-template","ngbPanelContent",""]]}),GI.ctorParameters=()=>[{type:Ip}];class ZI{constructor(){this.disabled=!1,this.id="ngb-panel-"+qI++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new Df,this.hidden=new Df}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}ZI.\u0275fac=function(e){return new(e||ZI)},ZI.\u0275dir=ot({type:ZI,selectors:[["ngb-panel"]],contentQueries:function(e,t,n){if(1&e&&($f(n,KI,0),$f(n,WI,0),$f(n,GI,0)),2&e){let e;jf(e=zf())&&(t.titleTpls=e),jf(e=zf())&&(t.headerTpls=e),jf(e=zf())&&(t.contentTpls=e)}}
3,inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),ZI.propDecorators={disabled:[{type:Cg}],id:[{type:Cg}],title:[{type:Cg}],type:[{type:Cg}],cardClass:[{type:Cg}],shown:[{type:xg}],hidden:[{type:xg}],titleTpls:[{type:Ds,args:[KI,{descendants:!1}]}],headerTpls:[{type:Ds,args:[WI,{descendants:!1}]}],contentTpls:[{type:Ds,args:[GI,{descendants:!1}]}]};class QI{constructor(e,t,n,s){this._element=t,this._ngZone=n,this._changeDetector=s,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new Df,this.shown=new Df,this.hidden=new Df,this.animation=e.animation,this.type=e.type,this.closeOtherPanels=e.closeOthers}isExpanded(e){return this.activeIds.indexOf(e)>-1}expand(e){this._changeOpenState(this._findPanelById(e),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(e=>this._changeOpenState(e,!0))}collapse(e){this._changeOpenState(this._findPanelById(e),!1)}collapseAll(){this.panels.forEach(e=>{this._changeOpenState(e,!1)})}toggle(e){const t=this._findPanelById(e);t&&this._changeOpenState(t,!t.isOpen)}ngAfterContentChecked(){OI(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(e=>{e.isOpen=!e.disabled&&this.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(nx(1)).subscribe(()=>{this.panels.forEach(e=>{const t=this._getPanelElement(e.id);t?e.initClassDone||(e.initClassDone=!0,UI(this._ngZone,t,HI,{animation:!1,runningTransition:"continue",context:{direction:e.isOpen?"show":"hide"}})):e.initClassDone=!1})})}_changeOpenState(e,t){if(null!=e&&!e.disabled&&e.isOpen!==t){let n=!1;this.panelChange.emit({panelId:e.id,nextState:t,preventDefault:()=>{n=!0}}),n||(e.isOpen=t,e.transitionRunning=!0,t&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(e,t=!0){this.panels.forEach(n=>{n.id!==e&&n.isOpen&&(n.isOpen=!1,n.transitionRunning=t)})}_findPanelById(e){return this.panels.find(t=>t.id===e)||null}_updateActiveIds(){this.activeIds=this.panels.filter(e=>e.isOpen&&!e.disabled).map(e=>e.id)}_runTransitions(e){this._changeDetector.detectChanges(),this.panels.forEach(t=>{if(t.transitionRunning){const n=this._getPanelElement(t.id);UI(this._ngZone,n,HI,{animation:e,runningTransition:"stop",context:{direction:t.isOpen?"show":"hide"}}).subscribe(()=>{t.transitionRunning=!1;const{id:e}=t;t.isOpen?(t.shown.emit(),this.shown.emit(e)):(t.hidden.emit(),this.hidden.emit(e))})}})}_getPanelElement(e){return this._element.nativeElement.querySelector("#"+e)}}QI.\u0275fac=function(e){return new(e||QI)(kc(jI),kc(Yd),kc(Xg),kc(xp))},QI.\u0275cmp=Je({type:QI,selectors:[["ngb-accordion"]],contentQueries:function(e,t,n){if(1&e&&$f(n,ZI,0),2&e){let e;jf(e=zf())&&(t.panels=e)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,t){2&e&&Ol("aria-multiselectable",!t.closeOtherPanels)},inputs:{activeIds:"activeIds",destroyOnHide:"destroyOnHide",animation:"animation",type:"type",closeOtherPanels:["closeOthers","closeOtherPanels"]},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"btn","btn-link",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id",4,"ngIf"],["role","tabpanel",3,"id"],[1,"card-body"]],template:function(e,t){1&e&&(Gl(0,ME,3,3,"ng-template",0,1,Wf),Gl(2,VE,4,11,"ng-template",2)),2&e&&(Lo(2),Tc("ngForOf",t.panels))},directives:function(){return[WI,tb,YI,pb,sb]},encapsulation:2}),QI.ctorParameters=()=>[{type:jI},{type:Yd},{type:Xg},{type:xp}],QI.propDecorators={panels:[{type:Ds,args:[ZI]}],animation:[{type:Cg}],activeIds:[{type:Cg}],closeOtherPanels:[{type:Cg,args:["closeOthers"]}],destroyOnHide:[{type:Cg}],type:[{type:Cg}],panelChange:[{type:xg}],shown:[{type:xg}],hidden:[{type:xg}]};class YI{constructor(e,t){this.accordion=e,this.panel=t}set ngbPanelToggle(e){e&&(this.panel=e)}}YI.\u0275fac=function(e){return new(e||YI)(kc(QI),kc(ZI,9))}
3,YI.\u0275dir=ot({type:YI,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,t){1&e&&jc("click",function(){return t.accordion.toggle(t.panel.id)}),2&e&&(yh("disabled",t.panel.disabled),Ol("aria-expanded",t.panel.isOpen)("aria-controls",t.panel.id),yu("collapsed",!t.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),YI.ctorParameters=()=>[{type:QI},{type:ZI,decorators:[{type:di},{type:gi}]}],YI.propDecorators={ngbPanelToggle:[{type:Cg}]};class JI{}JI.\u0275fac=function(e){return new(e||JI)},JI.\u0275mod=st({type:JI}),JI.\u0275inj=_e({imports:[[Rb]]});class XI{constructor(e){this._ngbConfig=e,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}XI.\u0275fac=function(e){return new(e||XI)(ri(VI))},XI.\u0275prov=ve({factory:function(){return new XI(ri(VI))},token:XI,providedIn:"root"}),XI.ctorParameters=()=>[{type:VI}];const eP=({classList:e})=>{e.remove("show")};class tP{constructor(e,t,n,s){this._renderer=t,this._element=n,this._zone=s,this.closed=new Df,this.dismissible=e.dismissible,this.type=e.type,this.animation=e.animation}close(){const e=UI(this._zone,this._element.nativeElement,eP,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}tP.\u0275fac=function(e){return new(e||tP)(kc(XI),kc(ep),kc(Yd),kc(Xg))},tP.\u0275cmp=Je({type:tP,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(e,t){2&e&&yu("fade",t.animation)("alert-dismissible",t.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[_t],ngContentSelectors:BE,decls:2,vars:1,consts:function(){let e;return e="Close",[["type","button","class","close","aria-label",e,3,"click",4,"ngIf"],["type","button","aria-label",e,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,t){1&e&&(Wc(),Kc(0),Gl(1,jE,3,0,"button",0)),2&e&&(Lo(1),Tc("ngIf",t.dismissible))},directives:[sb],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),tP.ctorParameters=()=>[{type:XI},{type:ep},{type:Yd},{type:Xg}],tP.propDecorators={animation:[{type:Cg}],dismissible:[{type:Cg}],type:[{type:Cg}],closed:[{type:xg}]};class nP{}nP.\u0275fac=function(e){return new(e||nP)},nP.\u0275mod=st({type:nP}),nP.\u0275inj=_e({imports:[[Rb]]});class sP{}sP.\u0275fac=function(e){return new(e||sP)},sP.\u0275dir=ot({type:sP,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(e,t){2&e&&yu("btn",!0)("active",t.active)("disabled",t.disabled)("focus",t.focused)}});class iP{constructor(e,t){this._label=e,this._cd=t,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=e=>{},this.onTouched=()=>{}}set focused(e){this._label.focused=e,e||this.onTouched()}onInputChange(e){const t=e.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(t),this.onTouched(),this.writeValue(t)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._label.disabled=e}writeValue(e){this.checked=e===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}iP.\u0275fac=function(e){return new(e||iP)(kc(sP),kc(xp))},iP.\u0275dir=ot({type:iP,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(e,t){1&e&&jc("change",function(e){return t.onInputChange(e)})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&yh("checked",t.checked)("disabled",t.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[zd([{provide:A_,useExisting:ae(()=>iP),multi:!0}])]}),iP.ctorParameters=()=>[{type:sP},{type:xp}],iP.propDecorators={disabled:[{type:Cg}],valueChecked:[{type:Cg}],valueUnChecked:[{type:Cg}]};let rP=0;class oP{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+rP++,this.onChange=e=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this.setDisabledState(e)}onRadioChange(e){this.writeValue(e.value),this.onChange(e.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(e){this._radios.add(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._disabled=e,this._updateRadiosDisabled()}unregister(e){this._radios.delete(e)}writeValue(e){this._value=e,this._updateRadiosValue()}
3_updateRadiosValue(){this._radios.forEach(e=>e.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(e=>e.updateDisabled())}}oP.\u0275fac=function(e){return new(e||oP)},oP.\u0275dir=ot({type:oP,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[zd([{provide:A_,useExisting:ae(()=>oP),multi:!0}])]}),oP.propDecorators={name:[{type:Cg}]};class aP{constructor(e,t,n,s,i){this._group=e,this._label=t,this._renderer=n,this._element=s,this._cd=i,this._value=null,this._group.register(this),this.updateDisabled()}set value(e){this._value=e;const t=e?e.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",t),this._group.onRadioValueUpdate()}set disabled(e){this._disabled=!1!==e,this.updateDisabled()}set focused(e){this._label&&(this._label.focused=e),e||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(e){this.value!==e&&this._cd.markForCheck(),this._checked=this.value===e,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}aP.\u0275fac=function(e){return new(e||aP)(kc(oP),kc(sP),kc(ep),kc(Yd),kc(xp))},aP.\u0275dir=ot({type:aP,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(e,t){1&e&&jc("change",function(){return t.onChange()})("focus",function(){return t.focused=!0})("blur",function(){return t.focused=!1}),2&e&&yh("checked",t.checked)("disabled",t.disabled)("name",t.nameAttr)},inputs:{value:"value",disabled:"disabled",name:"name"}}),aP.ctorParameters=()=>[{type:oP},{type:sP},{type:ep},{type:Yd},{type:xp}],aP.propDecorators={name:[{type:Cg}],value:[{type:Cg,args:["value"]}],disabled:[{type:Cg,args:["disabled"]}]};class lP{}lP.\u0275fac=function(e){return new(e||lP)},lP.\u0275mod=st({type:lP}),lP.\u0275inj=_e({});class cP{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}var uP;cP.\u0275fac=function(e){return new(e||cP)(ri(VI))},cP.\u0275prov=ve({factory:function(){return new cP(ri(VI))},token:cP,providedIn:"root"}),cP.ctorParameters=()=>[{type:VI}],function(e){e.LEFT="left",e.RIGHT="right"}(uP||(uP={}));const hP=({classList:e})=>e.contains("carousel-item-left")||e.contains("carousel-item-right"),dP=e=>{e.remove("carousel-item-left"),e.remove("carousel-item-right")},pP=e=>{dP(e),e.remove("carousel-item-prev"),e.remove("carousel-item-next")},fP=(e,t,{direction:n})=>{const{classList:s}=e;return t?(hP(e)?dP(s):(s.add("carousel-item-"+(n===uP.LEFT?"next":"prev")),RI(e),s.add("carousel-item-"+n)),()=>{pP(s),s.add("active")}):(dP(s),pP(s),void s.add("active"))},gP=(e,t,{direction:n})=>{const{classList:s}=e;return t?(hP(e)?dP(s):s.add("carousel-item-"+n),()=>{pP(s),s.remove("active")}):(dP(s),pP(s),void s.remove("active"))};let mP=0;class yP{constructor(e){this.tplRef=e,this.id="ngb-slide-"+mP++,this.slid=new Df}}yP.\u0275fac=function(e){return new(e||yP)(kc(Ip))},yP.\u0275dir=ot({type:yP,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}}),yP.ctorParameters=()=>[{type:Ip}],yP.propDecorators={id:[{type:Cg}],slid:[{type:xg}]};class bP{constructor(e,t,n,s,i){this._platformId=t,this._ngZone=n,this._cd=s,this._container=i,this.NgbSlideEventSource=vP,this._destroy$=new k,this._interval$=new jC(0),this._mouseHover$=new jC(!1),this._focused$=new jC(!1),this._pauseOnHover$=new jC(!1),this._pauseOnFocus$=new jC(!1),this._pause$=new jC(!1),this._wrap$=new jC(!1),this.slide=new Df,this.slid=new Df,this._transitionIds=null,this.animation=e.animation,this.interval=e.interval,this.wrap=e.wrap,this.keyboard=e.keyboard,this.pauseOnHover=e.pauseOnHover,this.pauseOnFocus=e.pauseOnFocus,this.showNavigationArrows=e.showNavigationArrows,this.showNavigationIndicators=e.showNavigationIndicators}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}
3get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(vP.ARROW_LEFT)}arrowRight(){this.focus(),this.next(vP.ARROW_RIGHT)}ngAfterContentInit(){Nb(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const e=HC([this.slide.pipe(D(e=>e.current),rx(this.activeId)),this._wrap$,this.slides.changes.pipe(rx(null))]).pipe(D(([e,t])=>{const n=this.slides.toArray(),s=this._getSlideIdxById(e);return t?n.length>1:s<n.length-1}),_E());HC([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,e]).pipe(D(([e,t,n,s,i,r,o])=>e||t&&n||s&&i||!o?0:r),_E(),JC(e=>e>0?rE(e,e):pE),AT(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(vP.TIMER)))}),this.slides.changes.pipe(AT(this._destroy$)).subscribe(()=>{var e;null===(e=this._transitionIds)||void 0===e||e.forEach(e=>(e=>{var t;null===(t=zI.get(e))||void 0===t||t.complete()})(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(nx(1)).subscribe(()=>{for(const{id:e}of this.slides){const t=this._getSlideElement(e);e===this.activeId?t.classList.add("active"):t.classList.remove("active")}})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(e,t){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),t)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),uP.RIGHT,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),uP.LEFT,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,t,n){const s=this._transitionIds;if(s&&(s[0]!==e||s[1]!==this.activeId))return;let i=this._getSlideById(e);if(i&&i.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:i.id,direction:t,paused:this._pause$.value,source:n});const s={animation:this.animation,runningTransition:"stop",context:{direction:t}},r=[],o=this._getSlideById(this.activeId);if(o){const e=UI(this._ngZone,this._getSlideElement(o.id),gP,s);e.subscribe(()=>{o.slid.emit({isShown:!1,direction:t,source:n})}),r.push(e)}const a=this.activeId;this.activeId=i.id;const l=this._getSlideById(this.activeId),c=UI(this._ngZone,this._getSlideElement(i.id),fP,s);c.subscribe(()=>{null==l||l.slid.emit({isShown:!0,direction:t,source:n})}),r.push(c),fE(...r).pipe(nx(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:a,current:i.id,direction:t,paused:this._pause$.value,source:n})})}this._cd.markForCheck()}_getSlideEventDirection(e,t){return this._getSlideIdxById(e)>this._getSlideIdxById(t)?uP.RIGHT:uP.LEFT}_getSlideById(e){return this.slides.find(t=>t.id===e)||null}_getSlideIdxById(e){const t=this._getSlideById(e);return null!=t?this.slides.toArray().indexOf(t):-1}_getNextSlide(e){const t=this.slides.toArray(),n=this._getSlideIdxById(e);return n===t.length-1?this.wrap?t[0].id:t[t.length-1].id:t[n+1].id}_getPrevSlide(e){const t=this.slides.toArray(),n=this._getSlideIdxById(e);return 0===n?this.wrap?t[t.length-1].id:t[0].id:t[n-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}}var vP;bP.\u0275fac=function(e){return new(e||bP)(kc(cP),kc(Ng),kc(Xg),kc(xp),kc(Yd))},bP.\u0275cmp=Je({type:bP,selectors:[["ngb-carousel"]],contentQueries:function(e,t,n){if(1&e&&$f(n,yP,0),2&e){let e;jf(e=zf())&&(t.slides=e)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(e,t){1&e&&jc("keydown.arrowLeft",function(){return t.keyboard&&t.arrowLeft()})("keydown.arrowRight",function(){return t.keyboard&&t.arrowRight()})("mouseenter",function(){return t.mouseHover=!0})("mouseleave",function(){return t.mouseHover=!1})("focusin",function(){return t.focused=!0})("focusout",function(){return t.focused=!1}),2&e&&(Ol("aria-activedescendant","slide-"+t.activeId),mu("display","block"))},inputs:{animation:"animation",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators",activeId:"activeId"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:6,vars:6,consts:function(){let e,t,n;return e=" Slide " + "\ufffd0\ufffd" + " of " + "\ufffd1\ufffd" + " ",t="Previous",n="Next",[["role","tablist",1,"carousel-indicators"],["role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button",3,"click",4,"ngIf"],["class","carousel-control-next","role","button",3,"click",4,"ngIf"],["role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"sr-only"],e,[3,"ngTemplateOutlet"],["role","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],t,["role","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],n]},template:function(e,t){1&e&&(Oc(0,"ol",0),Gl(1,$E,1,5,"li",1),Ic(),Oc(2,"div",2),Gl(3,UE,4,4,"div",3),Ic(),Gl(4,HE,4,0,"a",4),Gl(5,qE,4,0,"a",5)),2&e&&(yu("sr-only",!t.showNavigationIndicators),Lo(1),Tc("ngForOf",t.slides),Lo(2),Tc("ngForOf",t.slides),Lo(1),Tc("ngIf",t.showNavigationArrows),Lo(1),Tc("ngIf",t.showNavigationArrows))},directives:[tb,sb,pb],encapsulation:2,changeDetection:0}),bP.ctorParameters=()=>[{type:cP},{type:void 0,decorators:[{type:hi,args:[Ng]}]},{type:Xg},{type:xp},{type:Yd}],bP.propDecorators={slides:[{type:Ds,args:[yP]}],animation:[{type:Cg}],activeId:[{type:Cg}],interval:[{type:Cg}
3],wrap:[{type:Cg}],keyboard:[{type:Cg}],pauseOnHover:[{type:Cg}],pauseOnFocus:[{type:Cg}],showNavigationArrows:[{type:Cg}],showNavigationIndicators:[{type:Cg}],slide:[{type:xg}],slid:[{type:xg}]},function(e){e.TIMER="timer",e.ARROW_LEFT="arrowLeft",e.ARROW_RIGHT="arrowRight",e.INDICATOR="indicator"}(vP||(vP={}));class _P{}_P.\u0275fac=function(e){return new(e||_P)},_P.\u0275mod=st({type:_P}),_P.\u0275inj=_e({imports:[[Rb]]});class wP{constructor(e){this._ngbConfig=e}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}wP.\u0275fac=function(e){return new(e||wP)(ri(VI))},wP.\u0275prov=ve({factory:function(){return new wP(ri(VI))},token:wP,providedIn:"root"}),wP.ctorParameters=()=>[{type:VI}];class CP{constructor(e,t,n){this._element=e,this._zone=n,this.collapsed=!1,this.ngbCollapseChange=new Df,this.shown=new Df,this.hidden=new Df,this.animation=t.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:e}){e.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(e=this.collapsed){this.collapsed=!e,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(e,t){return UI(this._zone,this._element.nativeElement,HI,{animation:t,runningTransition:"stop",context:{direction:e?"hide":"show"}})}_runTransitionWithEvents(e,t){this._runTransition(e,t).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}}CP.\u0275fac=function(e){return new(e||CP)(kc(Yd),kc(wP),kc(Xg))},CP.\u0275dir=ot({type:CP,selectors:[["","ngbCollapse",""]],inputs:{collapsed:["ngbCollapse","collapsed"],animation:"animation"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[_t]}),CP.ctorParameters=()=>[{type:Yd},{type:wP},{type:Xg}],CP.propDecorators={animation:[{type:Cg}],collapsed:[{type:Cg,args:["ngbCollapse"]}],ngbCollapseChange:[{type:xg}],shown:[{type:xg}],hidden:[{type:xg}]};class xP{}xP.\u0275fac=function(e){return new(e||xP)},xP.\u0275mod=st({type:xP}),xP.\u0275inj=_e({});class kP{constructor(e,t,n){this.year=PI(e)?e:null,this.month=PI(t)?t:null,this.day=PI(n)?n:null}static from(e){return e instanceof kP?e:e?new kP(e.year,e.month,e.day):null}equals(e){return null!=e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day<e.day:this.month<e.month:this.year<e.year)}after(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.day>e.day:this.month>e.month:this.year>e.year)}}function SP(e){return new kP(e.getFullYear(),e.getMonth()+1,e.getDate())}function TP(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function DP(){return new OP}class EP{}EP.\u0275fac=function(e){return new(e||EP)},EP.\u0275prov=ve({factory:DP,token:EP,providedIn:"root"});class OP extends EP{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let s=TP(e),i=!0,r=s.getMonth();switch(t){case"y":s.setFullYear(s.getFullYear()+n);break;case"m":r+=n,s.setMonth(r),r%=12,r<0&&(r+=12);break;case"d":s.setDate(s.getDate()+n),i=!1;break;default:return e}return i&&s.getMonth()!==r&&s.setDate(0),SP(s)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=TP(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=TP(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const s=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}getToday(){return SP(new Date)}isValid(e){if(!(e&&PI(e.year)&&PI(e.month)&&PI(e.day)))return!1;if(0===e.year)return!1;const t=TP(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}}OP.\u0275fac=function(e){return IP(e||OP)},OP.\u0275prov=ve({token:OP,factory:OP.\u0275fac});const IP=ps(OP);function PP(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function AP(e,t){return!(!e&&!t)&&(!e||!t||(e.year!==t.year||e.month!==t.month))}function MP(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e||null}function FP(e,t){const{minDate:n,maxDate:s,disabled:i,markDisabled:r}=t;return!(null==e||i||r&&r(e,{year:e.year,month:e.month})||n&&e.before(n)||s&&e.after(s))}function RP(e,t,n,s,i){const{displayMonths:r,months:o}=n,a=o.splice(0,o.length);return Array.from({length:r},(n,s)=>{const r=Object.assign(e.getNext(t,"m",s),{day:1});if(o[s]=null,!i){const e=a.findIndex(e=>e.firstDate.equals(r));-1!==e&&(o[s]=a.splice(e,1)[0])}return r}
3).forEach((t,i)=>{null===o[i]&&(o[i]=function(e,t,n,s,i={}){const{dayTemplateData:r,minDate:o,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u,weekdayWidth:h,weekdaysVisible:d}=n,p=e.getToday();i.firstDate=null,i.lastDate=null,i.number=t.month,i.year=t.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],t=function(e,t,n){const s=e.getDaysPerWeek(),i=new kP(t.year,t.month,1),r=e.getWeekday(i)%s;return e.getPrev(i,"d",(s+r-n)%s)}(e,t,l),d||(i.weekdays.length=0);for(let f=0;f<e.getWeeksPerMonth();f++){let n=i.weeks[f];n||(n=i.weeks[f]={number:0,days:[],collapsed:!0});const g=n.days;for(let l=0;l<e.getDaysPerWeek();l++){0===f&&d&&(i.weekdays[l]=s.getWeekdayLabel(e.getWeekday(t),h));const n=new kP(t.year,t.month,t.day),u=e.getNext(n),m=s.getDayAriaLabel(n);let y=!!(o&&n.before(o)||a&&n.after(a));!y&&c&&(y=c(n,{month:i.number,year:i.year}));let b=n.equals(p),v=r?r(n,{month:i.number,year:i.year}):void 0;null===i.firstDate&&n.month===i.number&&(i.firstDate=n),n.month===i.number&&u.month!==i.number&&(i.lastDate=n);let _=g[l];_||(_=g[l]={}),_.date=n,_.context=Object.assign(_.context||{},{$implicit:n,date:n,data:v,currentMonth:i.number,currentYear:i.year,disabled:y,focused:!1,selected:!1,today:b}),_.tabindex=-1,_.ariaLabel=m,_.hidden=!1,t=u}n.number=e.getWeekNumber(g.map(e=>e.date),l),n.collapsed="collapsed"===u&&g[0].date.month!==i.number&&g[g.length-1].date.month!==i.number}return i}(e,t,n,s,a.shift()||{}))}),o}function NP(e){return new VP(e)}class LP{getWeekdayLabel(e,t){return this.getWeekdayShortName(e)}getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}}LP.\u0275fac=function(e){return new(e||LP)},LP.\u0275prov=ve({factory:function(){return NP(ri(jg))},token:LP,providedIn:"root"});class VP extends LP{constructor(e){super(),this._locale=e,this._monthsShort=dy(e,ry.Standalone,oy.Abbreviated),this._monthsFull=dy(e,ry.Standalone,oy.Wide)}getWeekdayShortName(e){return this.getWeekdayLabel(e,oy.Short)}getWeekdayLabel(e,t){const n=hy(this._locale,ry.Standalone,void 0===t?oy.Short:t);return n.map((e,t)=>n[(t+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){return Oy(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}VP.\u0275fac=function(e){return new(e||VP)(ri(jg))},VP.\u0275prov=ve({token:VP,factory:VP.\u0275fac}),VP.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];class jP{constructor(e,t){this._calendar=e,this._i18n=t,this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(PI(e=TI(e))&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(PI(e=TI(e))&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{const t=this.toValidDate(e,null);if(PP(this._state.maxDate,t))return{maxDate:t}},minDate:e=>{const t=this.toValidDate(e,null);if(PP(this._state.minDate,t))return{minDate:t}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}},weekdays:e=>{const t=!0===e||!1===e?oy.Short:e,n=!0!==e&&!1!==e||e;if(this._state.weekdayWidth!==t||this._state.weekdaysVisible!==n)return{weekdayWidth:t,weekdaysVisible:n}}},this._model$=new k,this._dateSelect$=new k,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:oy.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(Uv(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Uv(e=>null!==e))}set(e){let t=Object.keys(e).map(t=>this._VALIDATORS[t](e[t])).reduce((e,t)=>
3Object.assign(Object.assign({},e),t),{});Object.keys(t).length>0&&this._nextState(t)}focus(e){const t=this.toValidDate(e,null);null!=t&&!this._state.disabled&&PP(this._state.focusDate,t)&&this._nextState({focusDate:e})}focusSelect(){FP(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());null==t||this._state.disabled||this._state.firstDate&&!AP(this._state.firstDate,t)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);null==n||this._state.disabled||(PP(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&FP(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,t){const n=kP.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}getMonth(e){for(let t of this._state.months)if(e.month===t.number&&e.year===t.year)return t;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:s,focusDate:i,focusVisible:r,disabled:o,outsideDays:a}=e;e.months.forEach(e=>{e.weeks.forEach(l=>{l.days.forEach(l=>{i&&(l.context.focused=i.equals(l.date)&&r),l.tabindex=!o&&i&&l.date.equals(i)&&i.month===e.number?0:-1,!0===o&&(l.context.disabled=!0),void 0!==s&&(l.context.selected=null!==s&&s.equals(l.date)),e.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(t[0].firstDate)&&l.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(!function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}(t.minDate,t.maxDate),t.focusDate=MP(t.focusDate,t.minDate,t.maxDate),t.firstDate=MP(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=MP(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&t.focusDate&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;
3if("firstDate"in e&&(t.firstDate=MP(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const s="dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e,i=RP(this._calendar,n,t,this._i18n,s);t.months=i,t.firstDate=i[0].firstDate,t.lastDate=i[i.length-1].lastDate,"selectedDate"in e&&!FP(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(!t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const r=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,o=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||r)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const s=t?Math.max(t.year,e.year-500):e.year-10,i=(n?Math.min(n.year,e.year+500):e.year+10)-s+1,r=Array(i);for(let o=0;o<i;o++)r[o]=s+o;return r}(t.firstDate,t.minDate,t.maxDate)),("minDate"in e||"maxDate"in e||0===t.selectBoxes.months.length||r)&&(t.selectBoxes.months=function(e,t,n,s){if(!t)return[];let i=e.getMonths(t.year);if(n&&t.year===n.year){const e=i.findIndex(e=>e===n.month);i=i.slice(e)}if(s&&t.year===s.year){const e=i.findIndex(e=>e===s.month);i=i.slice(0,e+1)}return i}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(o||r||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const s=Object.assign(e.getPrev(t,"m"),{day:1});return null!=n&&(s.year===n.year&&s.month<n.month||s.year<n.year&&1===n.month)}(this._calendar,t.firstDate,t.minDate),t.nextDisabled=t.disabled||function(e,t,n){const s=Object.assign(e.getNext(t,"m"),{day:1});return null!=n&&s.after(n)}(this._calendar,t.lastDate,t.maxDate))}return t}}var BP;jP.\u0275fac=function(e){return new(e||jP)(ri(EP),ri(LP))},jP.\u0275prov=ve({token:jP,factory:jP.\u0275fac}),jP.ctorParameters=()=>[{type:EP},{type:LP}],function(e){e[e.PREV=0]="PREV",e[e.NEXT=1]="NEXT"}(BP||(BP={}));class $P{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1,this.weekdays=oy.Short}}function zP(){return new HP}$P.\u0275fac=function(e){return new(e||$P)},$P.\u0275prov=ve({factory:function(){return new $P},token:$P,providedIn:"root"});class UP{}UP.\u0275fac=function(e){return new(e||UP)},UP.\u0275prov=ve({factory:zP,token:UP,providedIn:"root"});class HP extends UP{fromModel(e){return e&&PI(e.year)&&PI(e.month)&&PI(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&PI(e.year)&&PI(e.month)&&PI(e.day)?{year:e.year,month:e.month,day:e.day}:null}}HP.\u0275fac=function(e){return qP(e||HP)},HP.\u0275prov=ve({token:HP,factory:HP.\u0275fac});const qP=ps(HP);class WP{constructor(e){this.templateRef=e}}WP.\u0275fac=function(e){return new(e||WP)(kc(Ip))},WP.\u0275dir=ot({type:WP,selectors:[["ng-template","ngbDatepickerContent",""]]}),WP.ctorParameters=()=>[{type:Ip}];class KP{constructor(e,t,n,s,i,r,o,a){this._service=e,this._calendar=t,this.i18n=n,this._elementRef=r,this._ngbDateAdapter=o,this._ngZone=a,this._controlValue=null,this._destroyed$=new k,this._publicState={},this.navigate=new Df,this.dateSelect=new Df,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate","weekdays"].forEach(e=>this[e]=s[e]),e.dateSelect$.pipe(AT(this._destroyed$)).subscribe(e=>{this.dateSelect.emit(e)}),e.model$.pipe(AT(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:e.maxDate,minDate:e.minDate,firstDate:e.firstDate,lastDate:e.lastDate,focusedDate:e.focusDate,months:e.months.map(e=>e.firstDate)};let s=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>s=!0}
3),s&&null!==n))return void this._service.open(n);const r=e.selectedDate,o=e.focusDate,a=this.model?this.model.focusDate:null;this.model=e,PP(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),PP(o,a)&&a&&e.focusVisible&&this.focus(),i.markForCheck()})}set showWeekdays(e){this.weekdays=e,this._showWeekdays=e}get showWeekdays(){return this._showWeekdays}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(e){this._service.focus(kP.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(nx(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(kP.from(e?e.day?e:Object.assign(Object.assign({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=lE(this._contentEl.nativeElement,"focusin"),t=lE(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;W(e,t).pipe(Uv(({target:e,relatedTarget:t})=>!(FI(e,"ngb-dp-day")&&FI(t,"ngb-dp-day")&&n.contains(e)&&n.contains(t))),AT(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===e})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(t=>e[t]=this[t]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){const t={};if(e.showWeekdays&&(t.weekdays=this.weekdays),["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(t=>t in e).forEach(e=>t[e]=this[e]),this._service.set(t),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;AP(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case BP.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case BP.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=kP.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}var GP;KP.\u0275fac=function(e){return new(e||KP)(kc(jP),kc(EP),kc(LP),kc($P),kc(xp),kc(Yd),kc(UP),kc(Xg))},KP.\u0275cmp=Je({type:KP,selectors:[["ngb-datepicker"]],contentQueries:function(e,t,n){if(1&e&&$f(n,WP,3),2&e){let e;jf(e=zf())&&(t.contentTemplate=e.first)}},viewQuery:function(e,t){if(1&e&&(Bf(WE,3),Bf(KE,3)),2&e){let e;jf(e=zf())&&(t._defaultDayTemplate=e.first),jf(e=zf())&&(t._contentEl=e.first)}},inputs:{showWeekdays:"showWeekdays",weekdays:"weekdays",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[zd([{provide:A_,useExisting:ae(()=>KP),multi:!0},jP]),_t],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(e,t){if(1&e&&(Gl(0,GE,1,5,"ng-template",null,0,Wf),Gl(2,YE,1,1,"ng-template",null,1,Wf),Oc(4,"div",2),Gl(5,JE,1,7,"ngb-datepicker-navigation",3),Ic(),Oc(6,"div",4,5),Gl(8,XE,0,0,"ng-template",6),Ic(),Gl(9,eO,0,0,"ng-template",6)),2&e){const e=Zl(3);Lo(5),Tc("ngIf","none"!==t.navigation),Lo(1),yu("ngb-dp-months",!t.contentTemplate),Lo(2),Tc("ngTemplateOutlet",(null==t.contentTemplate?null:t.contentTemplate.templateRef)||e),Lo(1),Tc("ngTemplateOutlet",t.footerTemplate)}},directives:function(){return[sb,pb,mA,tb,QP,YP]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}
3.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),KP.ctorParameters=()=>[{type:jP},{type:EP},{type:LP},{type:$P},{type:xp},{type:Yd},{type:UP},{type:Xg}],KP.propDecorators={_defaultDayTemplate:[{type:Is,args:["defaultDayTemplate",{static:!0}]}],_contentEl:[{type:Is,args:["content",{static:!0}]}],contentTemplate:[{type:Es,args:[WP,{static:!0}]}],dayTemplate:[{type:Cg}],dayTemplateData:[{type:Cg}],displayMonths:[{type:Cg}],firstDayOfWeek:[{type:Cg}],footerTemplate:[{type:Cg}],markDisabled:[{type:Cg}],maxDate:[{type:Cg}],minDate:[{type:Cg}],navigation:[{type:Cg}],outsideDays:[{type:Cg}],showWeekdays:[{type:Cg}],showWeekNumbers:[{type:Cg}],startDate:[{type:Cg}],weekdays:[{type:Cg}],navigate:[{type:xg}],dateSelect:[{type:xg}]},function(e){e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown"}(GP||(GP={}));class ZP{processKey(e,t){const{state:n,calendar:s}=t;switch(e.which){case GP.PageUp:t.focusDate(s.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case GP.PageDown:t.focusDate(s.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case GP.End:t.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case GP.Home:t.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case GP.ArrowLeft:t.focusDate(s.getPrev(n.focusedDate,"d",1));break;case GP.ArrowUp:t.focusDate(s.getPrev(n.focusedDate,"d",s.getDaysPerWeek()));break;case GP.ArrowRight:t.focusDate(s.getNext(n.focusedDate,"d",1));break;case GP.ArrowDown:t.focusDate(s.getNext(n.focusedDate,"d",s.getDaysPerWeek()));break;case GP.Enter:case GP.Space:t.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}ZP.\u0275fac=function(e){return new(e||ZP)},ZP.\u0275prov=ve({factory:function(){return new ZP},token:ZP,providedIn:"root"});class QP{constructor(e,t,n,s){this.i18n=e,this.datepicker=t,this._keyboardService=n,this._service=s}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){e.context.disabled||e.hidden||this.datepicker.onDateSelect(e.date)}}QP.\u0275fac=function(e){return new(e||QP)(kc(LP),kc(KP),kc(ZP),kc(jP))},QP.\u0275cmp=Je({type:QP,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(e,t){1&e&&jc("keydown",function(e){return t.onKeyDown(e)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(Gl(0,sO,3,2,"div",0),Gl(1,cO,1,1,"ng-template",1)),2&e&&(Tc("ngIf",t.viewModel.weekdays.length>
30),Lo(1),Tc("ngForOf",t.viewModel.weeks))},directives:[sb,tb,pb],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),QP.ctorParameters=()=>[{type:LP},{type:KP},{type:ZP},{type:jP}],QP.propDecorators={month:[{type:Cg}]};class YP{constructor(e){this.i18n=e,this.navigation=BP,this.months=[],this.navigate=new Df,this.select=new Df}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}YP.\u0275fac=function(e){return new(e||YP)(kc(LP))},YP.\u0275cmp=Je({type:YP,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let e,t,n,s;return e="Previous month",t="Previous month",n="Next month",s="Next month",[[1,"ngb-dp-arrow"],["type","button","aria-label",e,"title",t,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",n,"title",s,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"button",1),jc("click",function(e){return t.onClickPrev(e)}),Pc(2,"span",2),Ic(),Ic(),Gl(3,uO,1,4,"ngb-datepicker-navigation-select",3),Gl(4,fO,1,1,void 0,4),Oc(5,"div",5),Oc(6,"button",6),jc("click",function(e){return t.onClickNext(e)}),Pc(7,"span",2),Ic(),Ic()),2&e&&(Lo(1),Tc("disabled",t.prevDisabled),Lo(2),Tc("ngIf",t.showSelect),Lo(1),Tc("ngIf",!t.showSelect),Lo(2),Tc("disabled",t.nextDisabled))},directives:function(){return[sb,yA,tb]},styles:["ngb-datepicker-navigation{align-items:center;display:flex}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.ngb-dp-arrow{display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),YP.ctorParameters=()=>[{type:LP}],YP.propDecorators={date:[{type:Cg}],disabled:[{type:Cg}],months:[{type:Cg}],showSelect:[{type:Cg}],prevDisabled:[{type:Cg}],nextDisabled:[{type:Cg}],selectBoxes:[{type:Cg}],navigate:[{type:xg}],select:[{type:xg}]};const JP=(e,t)=>!!t&&t.some(t=>t.contains(e)),XP=(e,t)=>!t||null!=function(e,t){return t?void 0===e.closest?null:e.closest(t):null}(e,t),eA="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),tA=e=>eA?()=>setTimeout(()=>e(),100):e;function nA(e,t,n,s,i,r,o,a){n&&e.runOutsideAngular(tA(()=>{const l=lE(t,"keydown").pipe(AT(i),Uv(e=>e.which===GP.Escape),kx(e=>e.preventDefault())),c=lE(t,"mousedown").pipe(D(e=>{const t=e.target;return 2!==e.button&&!JP(t,o)&&("inside"===n?JP(t,r)&&XP(t,a):"outside"===n?!JP(t,r):XP(t,a)||!JP(t,r))}),AT(i)),u=lE(t,"mouseup").pipe(xE(c),Uv(([e,t])=>t),TE(0),AT(i));uE([l.pipe(D(e=>0)),u.pipe(D(e=>1))]).subscribe(t=>e.run(()=>s(t)))}))}const sA=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not
3([tabindex="-1"])'].join(", ");function iA(e){const t=Array.from(e.querySelectorAll(sA)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const rA=(e,t,n,s=!1)=>{e.runOutsideAngular(()=>{const e=lE(t,"focusin").pipe(AT(n),D(e=>e.target));lE(t,"keydown").pipe(AT(n),Uv(e=>e.which===GP.Tab),xE(e)).subscribe(([e,n])=>{const[s,i]=iA(t);n!==s&&n!==t||!e.shiftKey||(i.focus(),e.preventDefault()),n!==i||e.shiftKey||(s.focus(),e.preventDefault())}),s&&lE(t,"click").pipe(AT(n),xE(e),D(e=>e[1])).subscribe(e=>e.focus())})};const oA=/\s+/,aA=new class{getAllStyles(e){return window.getComputedStyle(e)}getStyle(e,t){return this.getAllStyles(e)[t]}isStaticPositioned(e){return"static"===(this.getStyle(e,"position")||"static")}offsetParent(e){let t=e.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(e,t=!0){let n,s={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const t=this.offsetParent(e);n=this.offset(e,!1),t!==document.documentElement&&(s=this.offset(t,!1)),s.top+=t.clientTop,s.left+=t.clientLeft}return n.top-=s.top,n.bottom-=s.top,n.left-=s.left,n.right-=s.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(e,t=!0){const n=e.getBoundingClientRect(),s=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+s,bottom:n.bottom+s,left:n.left+i,right:n.right+i};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(e,t,n,s){const[i="top",r="center"]=n.split("-"),o=s?this.offset(e,!1):this.position(e,!1),a=this.getAllStyles(t),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(i){case"top":d=o.top-(t.offsetHeight+l+c);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(t.offsetWidth+u+h);break;case"right":p=o.left+o.width}switch(r){case"top":d=o.top;break;case"bottom":d=o.top+o.height-t.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-t.offsetWidth;break;case"center":"top"===i||"bottom"===i?p=o.left+o.width/2-t.offsetWidth/2:d=o.top+o.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=t.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=y&&f.bottom<=m}};function lA(e,t,n,s,i){let r=Array.isArray(n)?n:n.split(oA);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=e=>{const[t,n]=e.split("-"),s=[];return i&&(s.push(`${i}-${t}`),n&&s.push(`${i}-${t}-${n}`),s.forEach(e=>{a.add(e)})),s};i&&o.forEach(e=>{a.remove(`${i}-${e}`)});let c=r.findIndex(e=>"auto"===e);c>=0&&o.forEach(function(e){null==r.find(t=>-1!==t.search("^"+e))&&r.splice(c++,1,e)});const u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of r){let n=l(h);if(aA.positionElements(e,t,h,s)){d=!0;break}i&&n.forEach(e=>{a.remove(e)})}return d||(h=r[0],l(h),aA.positionElements(e,t,h,s)),h}function cA(){return new hA}class uA{}uA.\u0275fac=function(e){return new(e||uA)},uA.\u0275prov=ve({factory:cA,token:uA,providedIn:"root"});class hA extends uA{parse(e){if(null!=e){const t=e.trim().split("-");if(1===t.length&&II(t[0]))return{year:TI(t[0]),month:null,day:null};if(2===t.length&&II(t[0])&&II(t[1]))return{year:TI(t[0]),month:TI(t[1]),day:null};if(3===t.length&&II(t[0])&&II(t[1])&&II(t[2]))return{year:TI(t[0]),month:TI(t[1]),day:TI(t[2])}}return null}format(e){return e?`${e.year}-${II(e.month)?MI(e.month):""}-${II(e.day)?MI(e.day):""}`:""}}hA.\u0275fac=function(e){return dA(e||hA)},hA.\u0275prov=ve({token:hA,factory:hA.\u0275fac});const dA=ps(hA);class pA extends $P{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}pA.\u0275fac=function(e){return fA(e||pA)},pA.\u0275prov=ve({factory:function(){return new pA},token:pA,providedIn:"root"});const fA=ps(pA);class gA{constructor(e,t,n,s,i,r,o,a,l,c,u){this._parserFormatter=e,this._elRef=t,this._vcRef=n,this._renderer=s,this._cfr=i,this._ngZone=r,this._calendar=o,this._dateAdapter=a,this._document=l,this._changeDetector=c,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new Df,this.navigate=new Df,this.closed=new Df,this._onChange=e=>{},this._onTouched=()=>{}
3,this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(e=>this[e]=u[e]),this._zoneSubscription=r.onStable.subscribe(()=>this._updatePopupPosition())}set showWeekdays(e){this.weekdays=e,this._showWeekdays=e}get showWeekdays(){return this._showWeekdays}get disabled(){return this._disabled}set disabled(e){this._disabled=""===e||e&&"false"!==e,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){const{value:t}=e;if(null!=t){const e=this._fromDateStruct(this._dateAdapter.fromModel(t));if(!e)return{ngbDate:{invalid:t}};if(this.minDate&&e.before(kP.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:t}}};if(this.maxDate&&e.after(kP.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:t}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,t=!1){const n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),!n&&t||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===e?null:e),t&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const e=this._cfr.resolveComponentFactory(KP);this._cRef=this._vcRef.createComponent(e),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(e=>{this.writeValue(e),this._onChange(e),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,rA(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),nA(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;OI(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&(this._cRef.instance.minDate=this.minDate),e.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(e))),e.datepickerClass){const{currentValue:t,previousValue:n}=e.datepickerClass;this._applyPopupClass(t,n)}}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(e){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(t=>{void 0!==this[t]&&(e[t]=this[t])}),e.startDate=this.startDate||this._model}_applyPopupClass(e,t){var n;const s=null===(n=this._cRef)||void 0===n?void 0:n.location.nativeElement;s&&(e&&this._renderer.addClass(s,e),t&&this._renderer.removeClass(s,t))}_applyPopupStyling(e){this._renderer.addClass(e,"dropdown-menu"),this._renderer.addClass(e,"show"),"body"===this.container&&this._renderer.addClass(e,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(e=>this.navigate.emit(e)),e.dateSelect.subscribe(e=>{this.dateSelect.emit(e),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(e){const t=this._parserFormatter.format(e);this._inputValue=t,this._renderer.setProperty(this._elRef.nativeElement,"value",t),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){const t=e?new kP(e.year,e.month,e.day):null;return this._calendar.isValid(t)?t:null}_updatePopupPosition(){if(!this._cRef)return;let e;if(e=OI(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");lA(e,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}gA.\u0275fac=function(e){return new(e||gA)(kc(uA),kc(Yd),kc(Lp),kc(ep),kc(Kd),kc(Xg),kc(EP),kc(UP),kc(Vm),kc(xp),kc(pA))},gA.\u0275dir=ot({type:gA,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(e,t){1&e&&jc("input",function(e){return t.manualDateChange(e.target.value)})("change",function(e){return t.manualDateChange(e.target.value,!0)})("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()}),2&e&&yh("disabled",t.disabled)},inputs:{showWeekdays:"showWeekdays",weekdays:"weekdays",disabled:"disabled",autoClose:"autoClose",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[zd([{provide:A_,useExisting:ae(()=>gA),multi:!0},{provide:B_,useExisting:ae(()=>gA),multi:!0},{provide:$P,useExisting:pA}]),_t]}),gA.ctorParameters=()=>[{type:uA},{type:Yd},{type:Lp},{type:ep},{type:Kd},{type:Xg},{type:EP},{type:UP},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:xp},{type:pA}],gA.propDecorators={autoClose:[{type:Cg}],datepickerClass:[{type:Cg}],dayTemplate:[{type:Cg}],dayTemplateData:[{type:Cg}],displayMonths:[{type:Cg}],firstDayOfWeek:[{type:Cg}],footerTemplate:[{type:Cg}],markDisabled:[{type:Cg}],minDate:[{type:Cg}],maxDate:[{type:Cg}],navigation:[{type:Cg}],outsideDays:[{type:Cg}],placement:[{type:Cg}],restoreFocus:[{type:Cg}],showWeekdays:[{type:Cg}],showWeekNumbers:[{type:Cg}],startDate:[{type:Cg}],container:[{type:Cg}],positionTarget:[{type:Cg}],weekdays:[{type:Cg}],dateSelect:[{type:xg}],navigate:[{type:xg}],closed:[{type:xg}],disabled:[{type:Cg}]};class mA{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}mA.\u0275fac=function(e){return new(e||mA)(kc(LP))},mA.\u0275cmp=Je({type:mA,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(e,t){2&e&&yu("bg-primary",t.selected)("text-white",t.selected)("text-muted",t.isMuted())("outside",t.isMuted())("active",t.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:["ngbDatepickerDayView",""],decls:1,vars:1,template:function(e,t){1&e&&Mu(0),2&e&&Fu(t.i18n.getDayNumerals(t.date))},styles:["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),mA.ctorParameters=()=>[{type:LP}
3],mA.propDecorators={currentMonth:[{type:Cg}],date:[{type:Cg}],disabled:[{type:Cg}],focused:[{type:Cg}],selected:[{type:Cg}]};class yA{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new Df,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new kP(this.date.year,TI(e),1))}changeYear(e){this.select.emit(new kP(TI(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}yA.\u0275fac=function(e){return new(e||yA)(kc(LP),kc(ep))},yA.\u0275cmp=Je({type:yA,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(e,t){if(1&e&&(Bf(gO,3,Yd),Bf(mO,3,Yd)),2&e){let e;jf(e=zf())&&(t.monthSelect=e.first),jf(e=zf())&&(t.yearSelect=e.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let e,t,n,s;return e="Select month",t="Select month",n="Select year",s="Select year",[["aria-label",e,"title",t,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",n,"title",s,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(e,t){1&e&&(Oc(0,"select",0,1),jc("change",function(e){return t.changeMonth(e.target.value)}),Gl(2,yO,2,3,"option",2),Ic(),Oc(3,"select",3,4),jc("change",function(e){return t.changeYear(e.target.value)}),Gl(5,bO,2,2,"option",2),Ic()),2&e&&(Tc("disabled",t.disabled),Lo(2),Tc("ngForOf",t.months),Lo(1),Tc("disabled",t.disabled),Lo(2),Tc("ngForOf",t.years))},directives:[tb,yC,wC],styles:["ngb-datepicker-navigation-select>.custom-select{flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),yA.ctorParameters=()=>[{type:LP},{type:ep}],yA.propDecorators={date:[{type:Cg}],disabled:[{type:Cg}],months:[{type:Cg}],years:[{type:Cg}],select:[{type:xg}],monthSelect:[{type:Is,args:["month",{static:!0,read:Yd}]}],yearSelect:[{type:Is,args:["year",{static:!0,read:Yd}]}]};class bA extends EP{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){switch(e=new kP(e.year,e.month,e.day),t){case"y":return(e=this._setYear(e,e.year+n)).month=1,e.day=1,e;case"m":return(e=this._setMonth(e,e.month+n)).day=1,e;case"d":return this._setDay(e,e.day+n);default:return e}}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){const t=this.toGregorian(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=e[(11-t)%7],s=this.toGregorian(n);s.setDate(s.getDate()+4-(s.getDay()||7));const i=s.getTime(),r=this.toGregorian(new kP(n.year,1,1));return Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}getToday(){return this.fromGregorian(new Date)}isValid(e){return null!=e&&II(e.year)&&II(e.month)&&II(e.day)&&!isNaN(this.toGregorian(e).getTime())}_setDay(e,t){t=+t;let n=this.getDaysPerMonth(e.month,e.year);if(t<=0)for(;t<=0;)e=this._setMonth(e,e.month-1),n=this.getDaysPerMonth(e.month,e.year),t+=n;else if(t>n)for(;t>n;)t-=n,e=this._setMonth(e,e.month+1),n=this.getDaysPerMonth(e.month,e.year);return e.day=t,e}_setMonth(e,t){return t=+t,e.year=e.year+Math.floor((t-1)/12),e.month=Math.floor(((t-1)%12+12)%12)+1,e}_setYear(e,t){return e.year=+t,e}}bA.\u0275fac=function(e){return vA(e||bA)},bA.\u0275prov=ve({token:bA,factory:bA.\u0275fac});const vA=ps(bA);function _A(e){const t=e.getFullYear();return t%4==0&&t%100!=0||t%400==0}function wA(e,t){return e-t*Math.floor(e/t)}class CA extends bA{fromGregorian(e){const t=e.getFullYear(),n=e.getMonth(),s=e.getDate();let i=1721424.5+365*(t-1)+Math.floor((t-1)/4)+-Math.floor((t-1)/100)+Math.floor((t-1)/400)+Math.floor((367*(n+1)-362)/12+(n+1<=2?0:_A(e)?-1:-2)+s);i=Math.floor(i)+.5;const r=i-1948439.5,o=Math.floor((30*r+10646)/10631);let a=Math.ceil((r-29-(354*((l=o)-1)+Math.floor((3+11*l)/30)))/29.5);var l;a=Math.min(a,11);const c=Math.ceil(r-function(e,t){return Math.ceil(29.5*t)+354*(e-1)+Math.floor((3+11*e)/30)}(o,a))+1;return new kP(o,a+1,c)}toGregorian(e){const t=e.year,n=e.month-1,s=e.day+Math.ceil(29.5*n)+354*(t-1)+Math.floor((3+11*t)/30)+1948439.5-1,i=Math.floor(s-.5)+.5,r=i-172
31425.5,o=Math.floor(r/146097),a=wA(r,146097),l=Math.floor(a/36524),c=wA(a,36524),u=Math.floor(c/1461),h=wA(c,1461),d=Math.floor(h/365);let p=400*o+100*l+4*u+d;4!==l&&4!==d&&p++;const f=i-(1721425.5+365*(p-1)+Math.floor((p-1)/4)-Math.floor((p-1)/100)+Math.floor((p-1)/400)),g=i<1721424.5+365*(p-1)+Math.floor((p-1)/4)-Math.floor((p-1)/100)+Math.floor((p-1)/400)+Math.floor(739/12+(_A(new Date(p,3,1))?-1:-2)+1)?0:_A(new Date(p,3,1))?1:2,m=Math.floor((12*(f+g)+373)/367),y=1721424.5+365*(p-1)+Math.floor((p-1)/4)-Math.floor((p-1)/100)+Math.floor((p-1)/400)+Math.floor((367*m-362)/12+(m<=2?0:_A(new Date(p,m-1,1))?-1:-2)+1);return new Date(p,m-1,i-y+1)}getDaysPerMonth(e,t){t+=Math.floor(e/13);let n=29+(e=(e-1)%12+1)%2;return 12===e&&(14+11*t)%30<11&&n++,n}}CA.\u0275fac=function(e){return xA(e||CA)},CA.\u0275prov=ve({token:CA,factory:CA.\u0275fac});const xA=ps(CA),kA=new Date(1882,10,12),SA=new Date(2174,10,25),TA=["101010101010","110101010100","111011001001","011011010100","011011101010","001101101100","101010101101","010101010101","011010101001","011110010010","101110101001","010111010100","101011011010","010101011100","110100101101","011010010101","011101001010","101101010100","101101101010","010110101101","010010101110","101001001111","010100010111","011010001011","011010100101","101011010101","001011010110","100101011011","010010011101","101001001101","110100100110","110110010101","010110101100","100110110110","001010111010","101001011011","010100101011","101010010101","011011001010","101011101001","001011110100","100101110110","001010110110","100101010110","101011001010","101110100100","101111010010","010111011001","001011011100","100101101101","010101001101","101010100101","101101010010","101110100101","010110110100","100110110110","010101010111","001010010111","010101001011","011010100011","011101010010","101101100101","010101101010","101010101011","010100101011","110010010101","110101001010","110110100101","010111001010","101011010110","100101010111","010010101011","100101001011","101010100101","101101010010","101101101010","010101110101","001001110110","100010110111","010001011011","010101010101","010110101001","010110110100","100111011010","010011011101","001001101110","100100110110","101010101010","110101010100","110110110010","010111010101","001011011010","100101011011","010010101011","101001010101","101101001001","101101100100","101101110001","010110110100","101010110101","101001010101","110100100101","111010010010","111011001001","011011010100","101011101001","100101101011","010010101011","101010010011","110101001001","110110100100","110110110010","101010111001","010010111010","101001011011","010100101011","101010010101","101100101010","101101010101","010101011100","010010111101","001000111101","100100011101","101010010101","101101001010","101101011010","010101101101","001010110110","100100111011","010010011011","011001010101","011010101001","011101010100","101101101010","010101101100","101010101101","010101010101","101100101001","101110010010","101110101001","010111010100","101011011010","010101011010","101010101011","010110010101","011101001001","011101100100","101110101010","010110110101","001010110110","101001010110","111001001101","101100100101","101101010010","101101101010","010110101101","001010101110","100100101111","010010010111","011001001011","011010100101","011010101100","101011010110","010101011101","010010011101","101001001101","110100010110","110110010101","010110101010","010110110101","001011011010","100101011011","010010101101","010110010101","011011001010","011011100100","101011101010","010011110101","001010110110","100101010110","101010101010","101101010100","101111010010","010111011001","001011101010","100101101101","010010101101","101010010101","101101001010","101110100101","010110110010","100110110101","010011010110","101010010111","010101000111","011010010011","011101001001","101101010101","010101101010","101001101011","010100101011","101010001011","110101000110","110110100011","010111001010","101011010110","010011011011","001001101011","100101001011","101010100101","101101010010","101101101001","010101110101","000101110110","100010110111","001001011011","010100101011","010101100101","010110110100","100111011010","010011101101","000101101101","100010110110","101010100110","110101010010","110110101001","010111010100","101011011010","100101011011","010010101011","011001010011","011100101001","011101100010","101110101001","010110110010","101010110101","010101010101","101100100101","110110010010","111011001001","011011010010","101011101001","010101101011","010010101011","101001010101","110100101001","110101010100","110110101010","100110110101","010010111010","101000111011","010010011011","101001001101","101010101010","101011010101","001011011010","100101011101","010001011110","101000101110","110010011010","110101010101","011010110010","011010111001","010010111010","101001011101","010100101101","101010010101","101101010010","101110101000","101110110100","010110111001","001011011010","100101011010","101101001010","110110100100","111011010001","011011101000","101101101010","010101101101","010100110101","011010010101","110101001010","110110101000","110111010100","011011011010","010101011011","001010011101","011000101011","101100010101","101101001010","101110010101","010110101010","101010101110","100100101110","110010001111","010100100111","011010010101","011010101010","101011010110","010101011101","001010011101"];class DA extends CA{fromGregorian(e){let t=1,n=0,s=1300,i=function(e,t){const n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),s=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),i=Math.abs(n-s);return Math.round(i/864e5)}(e,kA);
3if(e.getTime()-kA.getTime()>=0&&e.getTime()-SA.getTime()<=0){let e=1300;for(let r=0;r<TA.length;r++,e++)for(let o=0;o<12;o++){let a=+TA[r][o]+29;if(i<=a)return t=i+1,t>a&&(t=1,o++),o>11&&(o=0,e++),n=o,s=e,new kP(s,n+1,t);i-=a}return null}return super.fromGregorian(e)}toGregorian(e){const t=e.year,n=e.month-1,s=e.day;let i=new Date(kA),r=s-1;if(t>=1300&&t<=1600){for(let e=0;e<t-1300;e++)for(let t=0;t<12;t++)r+=+TA[e][t]+29;for(let e=0;e<n;e++)r+=+TA[t-1300][e]+29;i.setDate(kA.getDate()+r)}else i=super.toGregorian(e);return i}getDaysPerMonth(e,t){if(t>=1300&&t<=1600){return+TA[t-1300][e-1]+29}return super.getDaysPerMonth(e,t)}}DA.\u0275fac=function(e){return EA(e||DA)},DA.\u0275prov=ve({token:DA,factory:DA.\u0275fac});const EA=ps(DA);function OA(e){let t=RA(function(e,t,n){let s=FA(e);return NA(s.gy,3,s.march)+31*(t-1)-MA(t,7)*(t-7)+n-1}(e.year,e.month,e.day));return t.setHours(6,30,3,200),t}function IA(e){return function(e){let t,n,s,i=RA(e).getFullYear(),r=i-621,o=FA(r),a=NA(i,3,o.march);if(s=e-a,s>=0){if(s<=185)return n=1+MA(s,31),t=AA(s,31)+1,new kP(r,n,t);s-=186}else r-=1,s+=179,1===o.leap&&(s+=1);return n=7+MA(s,30),t=AA(s,30)+1,new kP(r,n,t)}(NA(e.getFullYear(),e.getMonth()+1,e.getDate()))}function PA(e,t){return t=+t,e.year=e.year+Math.floor((t-1)/12),e.month=Math.floor(((t-1)%12+12)%12)+1,e}function AA(e,t){return e-t*Math.floor(e/t)}function MA(e,t){return Math.trunc(e/t)}function FA(e){let t=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];const n=t.length,s=e+621;let i,r=-14,o=t[0];if(e<o||e>=t[n-1])throw new Error("Invalid Jalali year "+e);for(let u=1;u<n;u+=1){const n=t[u];if(i=n-o,e<n)break;r=r+8*MA(i,33)+MA(AA(i,33),4),o=n}let a=e-o;r=r+8*MA(a,33)+MA(AA(a,33)+3,4),4===AA(i,33)&&i-a==4&&(r+=1);const l=20+r-(MA(s,4)-MA(3*(MA(s,100)+1),4)-150);i-a<6&&(a=a-i+33*MA(i+4,33));let c=AA(AA(a+1,33)-1,4);return-1===c&&(c=4),{leap:c,gy:s,march:l}}function RA(e){let t=4*e+139361631;t=t+4*MA(3*MA(4*e+183187720,146097),4)-3908;const n=5*MA(AA(t,1461),4)+308,s=MA(AA(n,153),5)+1,i=AA(MA(n,153),12)+1,r=MA(t,1461)-100100+MA(8-i,6);return new Date(r,i-1,s)}function NA(e,t,n){let s=MA(1461*(e+MA(t-8,6)+100100),4)+MA(153*AA(t+9,12)+2,5)+n-34840408;return s=s-MA(3*MA(e+100100+MA(t-8,6),100),4)+752,s}function LA(e,t){return e<=6?31:e<=11||0===FA(t).leap?30:29}class VA extends EP{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){switch(e=new kP(e.year,e.month,e.day),t){case"y":return(e=function(e,t){return e.year=+t,e}(e,e.year+n)).month=1,e.day=1,e;case"m":return(e=PA(e,e.month+n)).day=1,e;case"d":return function(e,t){let n=LA(e.month,e.year);if(t<=0)for(;t<=0;)n=LA((e=PA(e,e.month-1)).month,e.year),t+=n;else if(t>n)for(;t>n;)t-=n,n=LA((e=PA(e,e.month+1)).month,e.year);return e.day=t,e}(e,e.day+n);default:return e}}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){const t=OA(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=e[(11-t)%7],s=OA(n);s.setDate(s.getDate()+4-(s.getDay()||7));const i=s.getTime(),r=OA(new kP(n.year,1,1));return Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}getToday(){return IA(new Date)}isValid(e){return null!=e&&PI(e.year)&&PI(e.month)&&PI(e.day)&&!isNaN(OA(e).getTime())}}VA.\u0275fac=function(e){return jA(e||VA)},VA.\u0275prov=ve({token:VA,factory:VA.\u0275fac});const jA=ps(VA);function BA(e){return e%4==0&&e%100!=0||e%400==0}function $A(e){let t=Math.floor((235*e-234)/19),n=13753*t+12084,s=29*t+Math.floor(n/25920),i=n%25920,r=s%7;return 2!==r&&4!==r&&6!==r||(s++,r=s%7),1===r&&i>16404&&!qA(e)?s+=2:0===r&&i>23269&&qA(e-1)&&s++,s}function zA(e,t){let n=[31,28,31,30,31,30,31,31,30,31,30,31];
3return BA(t)&&n[1]++,n[e-1]}function UA(e){return qA(e)?13:12}function HA(e){return $A(e+1)-$A(e)}function qA(e){if(null!=e){let t=(12*e+17)%19;return t>=(t<0?-7:12)}return!1}function WA(e,t){let n=$A(t+1)-$A(t),s=(n<=380?n:n-30)-353,i=qA(t)?[30,29,29,29,30,30,29,30,29,30,29,30,29]:[30,29,29,29,30,29,30,29,30,29,30,29];return s>0&&i[2]++,s>1&&i[1]++,i[e-1]}function KA(e){let t=0;for(let n=1;n<e.month;n++)t+=WA(n,e.year);return t+e.day}function GA(e){const t=new Date(e),n=t.getFullYear(),s=t.getMonth(),i=t.getDate();let r=1721424.5+365*(n-1)+Math.floor((n-1)/4)-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(s+1)-362)/12+(s+1<=2?0:BA(n)?-1:-2)+i);r=Math.floor(r+.5);let o=r-347997,a=Math.floor(25920*o/765433),l=Math.floor((19*a+234)/235)+1,c=$A(l),u=o-c;for(;u<1;)l--,c=$A(l),u=o-c;let h=1,d=u;for(;d>WA(h,l);)d-=WA(h,l),h++;return new kP(l,h,d)}function ZA(e){const t=e.year,n=e.month,s=e.day;let i=$A(t);for(let u=1;u<n;u++)i+=WA(u,t);i+=s;let r=i-2092591,o=r>=0;o||(r=-r);let a=1970,l=1,c=1;for(;r>0;)o?r>=(BA(a)?366:365)?(r-=BA(a)?366:365,a++):r>=zA(l,a)?(r-=zA(l,a),l++):(c+=r,r=0):r>=(BA(a-1)?366:365)?(r-=BA(a-1)?366:365,a--):(l>1?l--:(l=12,a--),r>=zA(l,a)?r-=zA(l,a):(c=zA(l,a)-r+1,r=0));return new Date(a,l-1,c)}function QA(e){if(!e)return"";const t=["","\u05d0","\u05d1","\u05d2","\u05d3","\u05d4","\u05d5","\u05d6","\u05d7","\u05d8"],n=["\u05d9","\u05d9\u05d0","\u05d9\u05d1","\u05d9\u05d2","\u05d9\u05d3","\u05d8\u05d5","\u05d8\u05d6","\u05d9\u05d6","\u05d9\u05d7","\u05d9\u05d8"],s=["","","\u05db","\u05dc","\u05de","\u05e0","\u05e1","\u05e2","\u05e4","\u05e6"],i=["","\u05e7","\u05e8","\u05e9","\u05ea","\u05ea\u05e7","\u05ea\u05e8","\u05ea\u05e9","\u05ea\u05ea","\u05ea\u05ea\u05e7"],r=["","\u05d0","\u05d1","\u05d1\u05d0","\u05d1\u05d1","\u05d4","\u05d4\u05d0","\u05d4\u05d1","\u05d4\u05d1\u05d0","\u05d4\u05d1\u05d1"];let o=0,a=[],l=0;for(;e>0;){let c=e%10;if(0===l)o=c;else if(1===l)1!==c?a.unshift(s[c],t[o]):a.unshift(n[o]);else{if(2!==l){5!==c&&a.unshift(r[c],"\u05f3"," ");break}a.unshift(i[c])}e=Math.floor(e/10),0===l&&0===e&&a.unshift(t[c]),l++}return a=a.join("").split(""),1===a.length?a.push("\u05f3"):a.length>1&&a.splice(a.length-1,0,"\u05f4"),a.join("")}class YA extends EP{getDaysPerWeek(){return 7}getMonths(e){return e&&qA(e)?[1,2,3,4,5,6,7,8,9,10,11,12,13]:[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}isValid(e){if(null!=e){let t=II(e.year)&&II(e.month)&&II(e.day);return t=t&&e.month>0&&e.month<=(qA(e.year)?13:12),t=t&&e.day>0&&e.day<=WA(e.month,e.year),t&&!isNaN(ZA(e).getTime())}return!1}getNext(e,t="d",n=1){switch(e=new kP(e.year,e.month,e.day),t){case"y":return e.year+=n,e.month=1,e.day=1,e;case"m":return(e=function(e,t){let n=t>=0;for(n||(t=-t);t>0;)n?t>UA(e.year)-e.month?(t-=UA(e.year)-e.month+1,e.year++,e.month=1):(e.month+=t,t=0):t>=e.month?(e.year--,t-=e.month,e.month=UA(e.year)):(e.month-=t,t=0);return e}(e,n)).day=1,e;case"d":return function(e,t){let n=t>=0;for(n||(t=-t);t>0;)n?t>HA(e.year)-KA(e)?(t-=HA(e.year)-KA(e)+1,e.year++,e.month=1,e.day=1):t>WA(e.month,e.year)-e.day?(t-=WA(e.month,e.year)-e.day+1,e.month++,e.day=1):(e.day+=t,t=0):t>=e.day?(t-=e.day,e.month--,0===e.month&&(e.year--,e.month=UA(e.year)),e.day=WA(e.month,e.year)):(e.day-=t,t=0);return e}(e,n);default:return e}}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){const t=ZA(e).getDay();return 0===t?7:t}getWeekNumber(e,t){const n=e[e.length-1];return Math.ceil(KA(n)/7)}getToday(){return GA(new Date)}toGregorian(e){return SP(ZA(e))}fromGregorian(e){return GA(TP(e))}}YA.\u0275fac=function(e){return JA(e||YA)},YA.\u0275prov=ve({token:YA,factory:YA.\u0275fac});const JA=ps(YA),XA=["\u05e9\u05e0\u05d9","\u05e9\u05dc\u05d9\u05e9\u05d9","\u05e8\u05d1\u05d9\u05e2\u05d9","\u05d7\u05de\u05d9\u05e9\u05d9","\u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05ea","\u05e8\u05d0\u05e9\u05d5\u05df"],eM=["\u05ea\u05e9\u05e8\u05d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"],tM=["\u05ea\u05e9\u05e8\u
305d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8 \u05d0\u05f3","\u05d0\u05d3\u05e8 \u05d1\u05f3","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"];class nM extends LP{getMonthShortName(e,t){return this.getMonthFullName(e,t)}getMonthFullName(e,t){return qA(t)?tM[e-1]||"":eM[e-1]||""}getWeekdayShortName(e){return XA[e-1]||""}getDayAriaLabel(e){return`${QA(e.day)} ${this.getMonthFullName(e.month,e.year)} ${QA(e.year)}`}getDayNumerals(e){return QA(e.day)}getWeekNumerals(e){return QA(e)}getYearNumerals(e){return QA(e)}}nM.\u0275fac=function(e){return sM(e||nM)},nM.\u0275prov=ve({token:nM,factory:nM.\u0275fac});const sM=ps(nM);function iM(e){return new Date(e.year-543,e.month-1,e.day)}function rM(e){return new kP(e.getFullYear()+543,e.getMonth()+1,e.getDate())}class oM extends OP{getToday(){return rM(new Date)}getNext(e,t="d",n=1){let s=iM(e),i=!0,r=s.getMonth();switch(t){case"y":s.setFullYear(s.getFullYear()+n);break;case"m":r+=n,s.setMonth(r),r%=12,r<0&&(r+=12);break;case"d":s.setDate(s.getDate()+n),i=!1;break;default:return e}return i&&s.getMonth()!==r&&s.setDate(0),rM(s)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=iM(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=iM(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const s=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((s-n.getTime())/864e5)/7)+1}isValid(e){if(!(e&&PI(e.year)&&PI(e.month)&&PI(e.day)))return!1;if(0===e.year)return!1;const t=iM(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year-543&&t.getMonth()+1===e.month&&t.getDate()===e.day}}oM.\u0275fac=function(e){return aM(e||oM)},oM.\u0275prov=ve({token:oM,factory:oM.\u0275fac});const aM=ps(oM);class lM extends UP{fromModel(e){return e instanceof Date&&!isNaN(e.getTime())?this._fromNativeDate(e):null}toModel(e){return e&&PI(e.year)&&PI(e.month)&&PI(e.day)?this._toNativeDate(e):null}_fromNativeDate(e){return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}}_toNativeDate(e){const t=new Date(e.year,e.month-1,e.day,12);return t.setFullYear(e.year),t}}lM.\u0275fac=function(e){return cM(e||lM)},lM.\u0275prov=ve({token:lM,factory:lM.\u0275fac});const cM=ps(lM);class uM extends lM{_fromNativeDate(e){return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate()}}_toNativeDate(e){const t=new Date(Date.UTC(e.year,e.month-1,e.day));return t.setUTCFullYear(e.year),t}}uM.\u0275fac=function(e){return hM(e||uM)},uM.\u0275prov=ve({token:uM,factory:uM.\u0275fac});const hM=ps(uM);class dM{}dM.\u0275fac=function(e){return new(e||dM)},dM.\u0275mod=st({type:dM}),dM.\u0275inj=_e({imports:[[Rb,NC]]});class pM{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}pM.\u0275fac=function(e){return new(e||pM)},pM.\u0275prov=ve({factory:function(){return new pM},token:pM,providedIn:"root"});class fM{}fM.\u0275fac=function(e){return new(e||fM)},fM.\u0275dir=ot({type:fM,selectors:[["",8,"navbar"]]});class gM{constructor(e){this.elementRef=e,this._disabled=!1}set disabled(e){this._disabled=""===e||!0===e}get disabled(){return this._disabled}}gM.\u0275fac=function(e){return new(e||gM)(kc(Yd))},gM.\u0275dir=ot({type:gM,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(e,t){2&e&&yu("disabled",t.disabled)},inputs:{disabled:"disabled"}}),gM.ctorParameters=()=>[{type:Yd}],gM.propDecorators={disabled:[{type:Cg}]};class mM{constructor(e,t){this.dropdown=e,this.placement="bottom",this.isOpen=!1,this.nativeElement=t.nativeElement}}mM.\u0275fac=function(e){return new(e||mM)(kc(ae(()=>vM)),kc(Yd))},mM.\u0275dir=ot({type:mM,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(e,t,n){if(1&e&&$f(n,gM,0),2&e){let e;jf(e=zf())&&(t.menuItems=e)}},hostVars:5,hostBindings:function(e,t){1&e&&jc("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Enter",function(e){return t.dropdown.onKeyDown(e)})("keydown.Space",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&(Ol("x-placement",t.placement),yu("dropdown-menu",!0)("show",t.dropdown.isOpen()))}}),mM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[ae(()=>vM)]}]},{type:Yd}],mM.propDecorators={menuItems:[{type:Ds,args:[gM]}]};class yM{constructor(e,t){this.dropdown=e,this.nativeElement=t.nativeElement}}yM.\u0275fac=function(e){return new(e||yM)(kc(ae(()=>vM)),kc(Yd))},yM.\u0275dir=ot({type:yM,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){2&e&&Ol("aria-expanded",t.dropdown.isOpen())}}),yM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[ae(()=>vM)]}]},{type:Yd}];class bM extends yM{constructor(e,t){super(e,t)}}bM.\u0275fac=function(e){return new(e||bM)(kc(ae(()=>vM)),kc(Yd))},bM.\u0275dir=ot({type:bM,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(e,t){1&e&&jc("click",function(){return t.dropdown.toggle()})("keydown.ArrowUp",function(e){return t.dropdown.onKeyDown(e)})("keydown.ArrowDown",function(e){return t.dropdown.onKeyDown(e)})("keydown.Home",function(e){return t.dropdown.onKeyDown(e)})("keydown.End",function(e){return t.dropdown.onKeyDown(e)})("keydown.Tab",function(e){return t.dropdown.onKeyDown(e)})("keydown.Shift.Tab",function(e){return t.dropdown.onKeyDown(e)}),2&e&&Ol("aria-expanded",t.dropdown.isOpen())},features:[zd([{provide:yM,useExisting:ae(()=>bM)}]),ul]}),bM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[ae(()=>vM)]}]},{type:Yd}];class vM{constructor(e,t,n,s,i,r,o){this._changeDetector=e,this._document=n,this._ngZone=s,this._elementRef=i,this._renderer=r,this._closed$=new k,this._bodyContainer=null,this._open=!1,this.openChange=new Df,this.placement=t.placement,this.container=t.container,this.autoClose=t.autoClose,this.display=o?"static":"dynamic",this._zoneSubscription=s.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(nx(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.isFirstChange&&this._applyPlacementClasses(),e.dropdownClass){const{currentValue:t,previousValue:n}=e.dropdownClass;this._applyCustomDropdownClass(t,n)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){nA(this._ngZone,this._document,this.autoClose,e=>{this.close(),0===e&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(e){const t=e.which,n=this._getMenuElements();let s=-1,i=null;const r=this._isEventFromToggle(e);
3if(!r&&n.length&&n.forEach((t,n)=>{t.contains(e.target)&&(i=t),t===this._document.activeElement&&(s=n)}),t!==GP.Space&&t!==GP.Enter){if(t!==GP.Tab){if(r||i){if(this.open(),n.length){switch(t){case GP.ArrowDown:s=Math.min(s+1,n.length-1);break;case GP.ArrowUp:if(this._isDropup()&&-1===s){s=n.length-1;break}s=Math.max(s-1,0);break;case GP.Home:s=0;break;case GP.End:s=n.length-1}n[s].focus()}e.preventDefault()}}else if(e.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===e.target)return void("body"!==this.container||e.shiftKey?e.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const t=this._menu.nativeElement.querySelectorAll(sA);e.shiftKey&&e.target===t[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(this._anchor.nativeElement.focus(),this.close())}else lE(e.target,"focusout").pipe(nx(1)).subscribe(({relatedTarget:e})=>{this._elementRef.nativeElement.contains(e)||this.close()})}}else!i||!0!==this.autoClose&&"inside"!==this.autoClose||lE(i,"click").pipe(nx(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){const e=this._menu;return null==e?[]:e.menuItems.filter(e=>!e.disabled).map(e=>e.elementRef.nativeElement)}_positionMenu(){const e=this._menu;this.isOpen()&&e&&this._applyPlacementClasses("dynamic"===this.display?lA(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){const e=this._renderer;if(this._menu){const t=this._elementRef.nativeElement,n=this._menu.nativeElement;e.appendChild(t,n),e.removeStyle(n,"position"),e.removeStyle(n,"transform")}this._bodyContainer&&(e.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),"body"===e){const e=this._renderer,t=this._menu.nativeElement,n=this._bodyContainer=this._bodyContainer||e.createElement("div");e.setStyle(n,"position","absolute"),e.setStyle(t,"position","static"),e.setStyle(n,"z-index","1050"),e.appendChild(n,t),e.appendChild(this._document.body,n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,t){const n="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;n&&(t&&this._renderer.removeClass(n,t),e&&this._renderer.addClass(n,e))}_applyPlacementClasses(e){const t=this._menu;if(t){e||(e=this._getFirstPlacement(this.placement));const n=this._renderer,s=this._elementRef.nativeElement;n.removeClass(s,"dropup"),n.removeClass(s,"dropdown"),t.placement="static"===this.display?null:e;const i=-1!==e.search("^top")?"dropup":"dropdown";n.addClass(s,i);const r=this._bodyContainer;r&&(n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),n.addClass(r,i))}}}vM.\u0275fac=function(e){return new(e||vM)(kc(xp),kc(pM),kc(Vm),kc(Xg),kc(Yd),kc(ep),kc(fM,8))},vM.\u0275dir=ot({type:vM,selectors:[["","ngbDropdown",""]],contentQueries:function(e,t,n){if(1&e&&($f(n,mM,1),$f(n,yM,1)),2&e){let e;jf(e=zf())&&(t._menu=e.first),jf(e=zf())&&(t._anchor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&yu("show",t.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display",dropdownClass:"dropdownClass"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[_t]}),vM.ctorParameters=()=>[{type:xp},{type:pM},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:Xg},{type:Yd},{type:ep},{type:fM,decorators:[{type:di}]}],vM.propDecorators={_menu:[{type:Es,args:[mM,{static:!1}]}],_anchor:[{type:Es,args:[yM,{static:!1}]}],autoClose:[{type:Cg}],dropdownClass:[{type:Cg}],_open:[{type:Cg,args:["open"]}],placement:[{type:Cg}],container:[{type:Cg}],display:[{type:Cg}],openChange:[{type:xg}]};class _M{}_M.\u0275fac=function(e){return new(e||_M)},_M.\u0275mod=st({type:_M}),_M.\u0275inj=_e({});class wM{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}wM.\u0275fac=function(e){return new(e||wM)(ri(VI))},wM.\u0275prov=ve({factory:function(){return new wM(ri(VI))},token:wM,providedIn:"root"}),wM.ctorParameters=()=>[{type:VI}];class CM{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class xM{constructor(e,t,n,s,i,r,o){this._type=e,this._injector=t,this._viewContainerRef
3=n,this._renderer=s,this._ngZone=i,this._componentFactoryResolver=r,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(e,t,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,t),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:s}=this._windowRef.location,i=this._ngZone.onStable.pipe(nx(1),$(()=>UI(this._ngZone,s,({classList:e})=>e.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:i}}close(e=!1){return this._windowRef?UI(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:e,runningTransition:"stop"}).pipe(kx(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(e=this._contentRef)||void 0===e?void 0:e.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):$v(void 0)}_getContentRef(e,t){if(e){if(e instanceof Ip){const n=e.createEmbeddedView(t);return this._applicationRef.attachView(n),new CM([n.rootNodes],n)}return new CM([[this._renderer.createText(`${e}`)]])}return new CM([])}}const kM=()=>{};class SM{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):kM}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,s=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${s+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}SM.\u0275fac=function(e){return new(e||SM)(ri(Vm))},SM.\u0275prov=ve({factory:function(){return new SM(ri(Vm))},token:SM,providedIn:"root"}),SM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]}];class TM{constructor(e,t){this._el=e,this._zone=t}ngOnInit(){this._zone.onStable.asObservable().pipe(nx(1)).subscribe(()=>{UI(this._zone,this._el.nativeElement,(e,t)=>{t&&RI(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return UI(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}TM.\u0275fac=function(e){return new(e||TM)(kc(Yd),kc(Xg))},TM.\u0275cmp=Je({type:TM,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,t){2&e&&(_u("modal-backdrop"+(t.backdropClass?" "+t.backdropClass:"")),yu("show",!t.animation)("fade",t.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),TM.ctorParameters=()=>[{type:Yd},{type:Xg}],TM.propDecorators={animation:[{type:Cg}],backdropClass:[{type:Cg}]};class DM{close(e){}dismiss(e){}}class EM{constructor(e,t,n,s){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=s,this._closed=new k,this._dismissed=new k,this._hidden=new k,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(AT(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(AT(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():$v(void 0);e.subscribe(()=>{const{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),fE(e,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var OM;!function(e){e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC"}(OM||(OM={}));class IM{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new k,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Df,this.shown=new k,this.hidden=new k}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(nx(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,t={animation:this.animation,runningTransition:"stop"},n=fE(UI(this._zone,e,()=>e.classList.remove("show"),t),UI(this._zone,this._dialogEl.nativeElement,()=>{},t));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const e={animation:this.animation,runningTransition:"continue"};fE(UI(this._zone,this._elRef.nativeElement,(e,t)=>{t&&RI(e),e.classList.add("show")},e),UI(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{lE(e,"keydown").pipe(AT(this._closed$),Uv(e=>e.which===GP.Escape)).subscribe(e=>{this.keyboard?requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(OM.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let t=!1;lE(this._dialogEl.nativeElement,"mousedown").pipe(AT(this._closed$),kx(()=>
3t=!1),JC(()=>lE(e,"mouseup").pipe(AT(this._closed$),nx(1))),Uv(({target:t})=>e===t)).subscribe(()=>{t=!0}),lE(e,"click").pipe(AT(this._closed$)).subscribe(({target:n})=>{e===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||t||this._zone.run(()=>this.dismiss(OM.BACKDROP_CLICK))),t=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=iA(e)[0];(t||n||e).focus()}}_restoreFocus(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&UI(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}IM.\u0275fac=function(e){return new(e||IM)(kc(Vm),kc(Yd),kc(Xg))},IM.\u0275cmp=Je({type:IM,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){if(1&e&&Bf(vO,3),2&e){let e;jf(e=zf())&&(t._dialogEl=e.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,t){2&e&&(Ol("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),_u("modal d-block"+(t.windowClass?" "+t.windowClass:"")),yu("fade",t.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:BE,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(Wc(),Oc(0,"div",0,1),Oc(2,"div",2),Kc(3),Ic(),Ic()),2&e&&_u("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":"")+(t.modalDialogClass?" "+t.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),IM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:Yd},{type:Xg}],IM.propDecorators={_dialogEl:[{type:Is,args:["dialog",{static:!0}]}],animation:[{type:Cg}],ariaLabelledBy:[{type:Cg}],ariaDescribedBy:[{type:Cg}],backdrop:[{type:Cg}],centered:[{type:Cg}],keyboard:[{type:Cg}],scrollable:[{type:Cg}],size:[{type:Cg}],windowClass:[{type:Cg}],modalDialogClass:[{type:Cg}],dismissEvent:[{type:xg,args:["dismiss"]}]};class PM{constructor(e,t,n,s,i,r){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=s,this._rendererFactory=i,this._ngZone=r,this._activeWindowCmptHasChanged=new k,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new Df,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const e=this._windowCmpts[this._windowCmpts.length-1];rA(this._ngZone,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,s){const i=s.container instanceof HTMLElement?s.container:AI(s.container)?this._document.querySelector(s.container):this._document.body,r=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(r.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);const l=new DM,c=this._getContentRef(e,s.injector||t,n,l,s);let u=!1!==s.backdrop?this._attachBackdrop(e,i):void 0,h=this._attachWindowComponent(e,i,c),d=new EM(h,c,u,s.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=e=>{d.close(e)},l.dismiss=e=>{d.dismiss(e)}
3,this._applyWindowOptions(h.instance,s),1===this._modalRefs.length&&r.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,s),u.changeDetectorRef.detectChanges()),h.changeDetectorRef.detectChanges(),d}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(TM).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let s=e.resolveComponentFactory(IM).create(this._injector,n.nodes);return this._applicationRef.attachView(s.hostView),t.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{AI(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{AI(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,s,i){return n?n instanceof Ip?this._createFromTemplateRef(n,s):OI(n)?this._createFromString(n):this._createFromComponent(e,t,n,s,i):new CM([])}_createFromTemplateRef(e,t){const n={$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}},s=e.createEmbeddedView(n);return this._applicationRef.attachView(s),new CM([s.rootNodes],s)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new CM([[t]])}_createFromComponent(e,t,n,s,i){const r=e.resolveComponentFactory(n),o=il.create({providers:[{provide:DM,useValue:s}],parent:t}),a=r.create(o),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new CM([[l]],a.hostView,a)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&(this._modalRefs.splice(t,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}PM.\u0275fac=function(e){return new(e||PM)(ri(Cm),ri(il),ri(Vm),ri(SM),ri(Xd),ri(Xg))},PM.\u0275prov=ve({factory:function(){return new PM(ri(Cm),ri(za),ri(Vm),ri(SM),ri(Xd),ri(Xg))},token:PM,providedIn:"root"}),PM.ctorParameters=()=>[{type:Cm},{type:il},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:SM},{type:Xd},{type:Xg}];class AM{constructor(e,t,n,s){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=s}open(e,t={}){const n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}AM.\u0275fac=function(e){return new(e||AM)(ri(Kd),ri(il),ri(PM),ri(wM))},AM.\u0275prov=ve({factory:function(){return new AM(ri(Kd),ri(za),ri(PM),ri(wM))},token:AM,providedIn:"root"}),AM.ctorParameters=()=>[{type:Kd},{type:il},{type:PM},{type:wM}];class MM{}MM.\u0275fac=function(e){return new(e||MM)},MM.\u0275mod=st({type:MM}),MM.\u0275inj=_e({providers:[AM]});class FM{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}FM.\u0275fac=function(e){return new(e||FM)(ri(VI))},FM.\u0275prov=ve({factory:function(){return new FM(ri(VI))},token:FM,providedIn:"root"}),FM.ctorParameters=()=>[{type:VI}];const RM=e=>AI(e)&&""!==e;let NM=0;class LM{constructor(e){this.templateRef=e}}LM.\u0275fac=function(e){return new(e||LM)(kc(Ip))},LM.\u0275dir=ot({type:LM,selectors:[["ng-template","ngbNavContent",""]]}),LM.ctorParameters=()=>[{type:Ip}];class VM{constructor(e,t){this.elementRef=t,this.disabled=!1,this.shown=new Df,this.hidden=new Df,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){AI(this.domId)||(this.domId="ngb-nav-"+NM++)}get active(){return this._nav.activeId===this.id}get id(){return RM(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(AI(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}VM.\u0275fac=function(e){return new(e||VM)(kc(ae(()=>jM)),kc(Yd))},VM.\u0275dir=ot({type:VM,selectors:[["","ngbNavItem",""]],contentQueries:function(e,t,n){if(1&e&&$f(n,LM,0),2&e){let e;jf(e=zf())&&(t.contentTpls=e)}},hostVars:2,hostBindings:function(e,t){2&e&&yu("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),VM.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[ae(()=>jM)]}]},{type:Yd}],VM.propDecorators={destroyOnHide:[{type:Cg}],disabled:[{type:Cg}],domId:[{type:Cg}
3],_id:[{type:Cg,args:["ngbNavItem"]}],shown:[{type:xg}],hidden:[{type:xg}],contentTpls:[{type:Ds,args:[LM,{descendants:!1}]}]};class jM{constructor(e,t,n,s){this.role=e,this._cd=n,this._document=s,this.activeIdChange=new Df,this.shown=new Df,this.hidden=new Df,this.destroy$=new k,this.navItemChange$=new k,this.navChange=new Df,this.animation=t.animation,this.destroyOnHide=t.destroyOnHide,this.orientation=t.orientation,this.roles=t.roles,this.keyboard=t.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const t=e.which,n=this.links.filter(e=>!e.navItem.disabled),{length:s}=n;let i=-1;if(n.forEach((e,t)=>{e.elRef.nativeElement===this._document.activeElement&&(i=t)}),s){switch(t){case GP.ArrowLeft:if("vertical"===this.orientation)return;i=(i-1+s)%s;break;case GP.ArrowRight:if("vertical"===this.orientation)return;i=(i+1)%s;break;case GP.ArrowDown:if("horizontal"===this.orientation)return;i=(i+1)%s;break;case GP.ArrowUp:if("horizontal"===this.orientation)return;i=(i-1+s)%s;break;case GP.Home:i=0;break;case GP.End:i=s-1}"changeWithArrows"===this.keyboard&&this.select(n[i].navItem.id),n[i].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!AI(this.activeId)){const e=this.items.first?this.items.first.id:null;RM(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(AT(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,t=!0){if(this.activeId!==e){let n=!1;t&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(t=>t.id===e)||null}}jM.\u0275fac=function(e){return new(e||jM)(gs("role"),kc(FM),kc(xp),kc(Vm))},jM.\u0275dir=ot({type:jM,selectors:[["","ngbNav",""]],contentQueries:function(e,t,n){if(1&e&&($f(n,VM,0),$f(n,BM,1)),2&e){let e;jf(e=zf())&&(t.items=e),jf(e=zf())&&(t.links=e)}},hostVars:6,hostBindings:function(e,t){1&e&&jc("keydown.arrowLeft",function(e){return t.onKeyDown(e)})("keydown.arrowRight",function(e){return t.onKeyDown(e)})("keydown.arrowDown",function(e){return t.onKeyDown(e)})("keydown.arrowUp",function(e){return t.onKeyDown(e)})("keydown.Home",function(e){return t.onKeyDown(e)})("keydown.End",function(e){return t.onKeyDown(e)}),2&e&&(Ol("aria-orientation","vertical"===t.orientation&&"tablist"===t.roles?"vertical":void 0)("role",t.role?t.role:t.roles?"tablist":void 0),yu("nav",!0)("flex-column","vertical"===t.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[_t]}),jM.ctorParameters=()=>[{type:String,decorators:[{type:xs,args:["role"]}]},{type:FM},{type:xp},{type:void 0,decorators:[{type:hi,args:[Vm]}]}],jM.propDecorators={activeId:[{type:Cg}],activeIdChange:[{type:xg}],animation:[{type:Cg}],destroyOnHide:[{type:Cg}],orientation:[{type:Cg}],roles:[{type:Cg}],keyboard:[{type:Cg}],shown:[{type:xg}],hidden:[{type:xg}],items:[{type:Ds,args:[VM]}],links:[{type:Ds,args:[ae(()=>BM),{descendants:!0}]}],navChange:[{type:xg}]};class BM{constructor(e,t,n,s){this.role=e,this.navItem=t,this.nav=n,this.elRef=s}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}BM.\u0275fac=function(e){return new(e||BM)(gs("role"),kc(VM),kc(jM),kc(Yd))},BM.\u0275dir=ot({type:BM,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,t){1&e&&jc("click",function(e){return t.nav.click(t.navItem),e.preventDefault()}),2&e&&(yh("id",t.navItem.domId),Ol("role",t.role?t.role:t.nav.roles?"tab":void 0)("tabindex",t.navItem.disabled?-1:void 0)("aria-controls",t.navItem.isPanelInDom()?t.navItem.panelDomId:null)("aria-selected",t.navItem.active)("aria-disabled",t.navItem.disabled),yu("nav-link",!0)("nav-item",t.hasNavItemClass())("active",t.navItem.active)("disabled",t.navItem.disabled))}}),BM.ctorParameters=()=>[{type:String,decorators:[{type:xs,args:["role"]}]},{type:VM},{type:jM}
3,{type:Yd}];const $M=({classList:e})=>(e.remove("show"),()=>e.remove("active")),zM=(e,t)=>{t&&RI(e),e.classList.add("show")};class UM{constructor(e){this.elRef=e}}UM.\u0275fac=function(e){return new(e||UM)(kc(Yd))},UM.\u0275dir=ot({type:UM,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,t){2&e&&(yh("id",t.item.panelDomId),Ol("role",t.role?t.role:t.nav.roles?"tabpanel":void 0)("aria-labelledby",t.item.domId),yu("fade",t.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),UM.ctorParameters=()=>[{type:Yd}],UM.propDecorators={item:[{type:Cg}],nav:[{type:Cg}],role:[{type:Cg}]};class HM{constructor(e,t){this._cd=e,this._ngZone=t,this._activePane=null}isPanelTransitioning(e){var t;return(null===(t=this._activePane)||void 0===t?void 0:t.item)===e}ngAfterViewInit(){var e,t;this._updateActivePane(),this.nav.navItemChange$.pipe(AT(this.nav.destroy$),rx((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),_E(),(t=1,e=>e.lift(new IE(t)))).subscribe(e=>{const t={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?UI(this._ngZone,this._activePane.elRef.nativeElement,$M,t).subscribe(()=>{var n;const s=null===(n=this._activePane)||void 0===n?void 0:n.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),UI(this._ngZone,this._activePane.elRef.nativeElement,zM,t).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),s&&(s.hidden.emit(),this.nav.hidden.emit(s.id))}):this._updateActivePane()})}_updateActivePane(){var e,t;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(t=>t.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}HM.\u0275fac=function(e){return new(e||HM)(kc(xp),kc(Xg))},HM.\u0275cmp=Je({type:HM,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,t){if(1&e&&Bf(UM,1),2&e){let e;jf(e=zf())&&(t._panes=e)}},hostVars:2,hostBindings:function(e,t){2&e&&yu("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:["ngbNavOutlet",""],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&Gl(0,xO,1,1,"ng-template",0),2&e&&Tc("ngForOf",t.nav.items)},directives:[tb,sb,UM,pb],encapsulation:2,changeDetection:0}),HM.ctorParameters=()=>[{type:xp},{type:Xg}],HM.propDecorators={_panes:[{type:Os,args:[UM]}],paneRole:[{type:Cg}],nav:[{type:Cg,args:["ngbNavOutlet"]}]};class qM{}qM.\u0275fac=function(e){return new(e||qM)},qM.\u0275mod=st({type:qM}),qM.\u0275inj=_e({imports:[[Rb]]});class WM{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}WM.\u0275fac=function(e){return new(e||WM)},WM.\u0275prov=ve({factory:function(){return new WM},token:WM,providedIn:"root"});class KM{constructor(e){this.templateRef=e}}KM.\u0275fac=function(e){return new(e||KM)(kc(Ip))},KM.\u0275dir=ot({type:KM,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),KM.ctorParameters=()=>[{type:Ip}];class GM{constructor(e){this.templateRef=e}}GM.\u0275fac=function(e){return new(e||GM)(kc(Ip))},GM.\u0275dir=ot({type:GM,selectors:[["ng-template","ngbPaginationFirst",""]]}),GM.ctorParameters=()=>[{type:Ip}];class ZM{constructor(e){this.templateRef=e}}ZM.\u0275fac=function(e){return new(e||ZM)(kc(Ip))},ZM.\u0275dir=ot({type:ZM,selectors:[["ng-template","ngbPaginationLast",""]]}),ZM.ctorParameters=()=>[{type:Ip}];class QM{constructor(e){this.templateRef=e}}QM.\u0275fac=function(e){return new(e||QM)(kc(Ip))},QM.\u0275dir=ot({type:QM,selectors:[["ng-template","ngbPaginationNext",""]]}),QM.ctorParameters=()=>[{type:Ip}];class YM{constructor(e){this.templateRef=e}}YM.\u0275fac=function(e){return new(e||YM)(kc(Ip))}
3,YM.\u0275dir=ot({type:YM,selectors:[["ng-template","ngbPaginationNumber",""]]}),YM.ctorParameters=()=>[{type:Ip}];class JM{constructor(e){this.templateRef=e}}JM.\u0275fac=function(e){return new(e||JM)(kc(Ip))},JM.\u0275dir=ot({type:JM,selectors:[["ng-template","ngbPaginationPrevious",""]]}),JM.ctorParameters=()=>[{type:Ip}];class XM{constructor(e){this.templateRef=e}}XM.\u0275fac=function(e){return new(e||XM)(kc(Ip))},XM.\u0275dir=ot({type:XM,selectors:[["ng-template","ngbPaginationPages",""]]}),XM.ctorParameters=()=>[{type:Ip}];class eF{constructor(e){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new Df(!0),this.disabled=e.disabled,this.boundaryLinks=e.boundaryLinks,this.directionLinks=e.directionLinks,this.ellipses=e.ellipses,this.maxSize=e.maxSize,this.pageSize=e.pageSize,this.rotate=e.rotate,this.size=e.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(e){this._updatePages(e)}ngOnChanges(e){this._updatePages(this.page)}isEllipsis(e){return-1===e}_applyEllipses(e,t){this.ellipses&&(e>0&&(e>2?this.pages.unshift(-1):2===e&&this.pages.unshift(2),this.pages.unshift(1)),t<this.pageCount&&(t<this.pageCount-2?this.pages.push(-1):t===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let e=0,t=this.pageCount,n=Math.floor(this.maxSize/2),s=this.maxSize%2==0?n-1:n;return this.page<=n?t=this.maxSize:this.pageCount-this.page<n?e=this.pageCount-this.maxSize:(e=this.page-n-1,t=this.page+s),[e,t]}_applyPagination(){let e=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[e,e+this.maxSize]}_setPageInRange(e){const t=this.page;this.page=EI(e,this.pageCount,1),this.page!==t&&II(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(e){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),II(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let t=1;t<=this.pageCount;t++)this.pages.push(t);if(this._setPageInRange(e),this.maxSize>0&&this.pageCount>this.maxSize){let e=0,t=this.pageCount;this.rotate?[e,t]=this._applyRotation():[e,t]=this._applyPagination(),this.pages=this.pages.slice(e,t),this._applyEllipses(e,t)}}}eF.\u0275fac=function(e){return new(e||eF)(kc(WM))},eF.\u0275cmp=Je({type:eF,selectors:[["ngb-pagination"]],contentQueries:function(e,t,n){if(1&e&&($f(n,KM,1),$f(n,GM,1),$f(n,ZM,1),$f(n,QM,1),$f(n,YM,1),$f(n,JM,1),$f(n,XM,1)),2&e){let e;jf(e=zf())&&(t.tplEllipsis=e.first),jf(e=zf())&&(t.tplFirst=e.first),jf(e=zf())&&(t.tplLast=e.first),jf(e=zf())&&(t.tplNext=e.first),jf(e=zf())&&(t.tplNumber=e.first),jf(e=zf())&&(t.tplPrevious=e.first),jf(e=zf())&&(t.tplPages=e.first)}},hostAttrs:["role","navigation"],inputs:{page:"page",disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",maxSize:"maxSize",pageSize:"pageSize",rotate:"rotate",size:"size",collectionSize:"collectionSize"},outputs:{pageChange:"pageChange"},features:[_t],decls:20,vars:12,consts:function(){let e,t,n,s,i,r,o,a;return e="\xAB\xAB",t="\xAB",n="\xBB",s="\xBB\xBB",i="First",r="Previous",o="Next",a="Last",[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],e,t,n,s,["class","sr-only",4,"ngIf"],[1,"sr-only"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",i,"href","",1,"page-link",3,"click"],["aria-label",r,"href","",1,"page-link",3,"click"],["aria-label",o,"href","",1,"page-link",3,"click"],["aria-label",a,"href","",1,"page-link",3,"click"]]},template:function(e,t){if(1&e&&(Gl(0,kO,2,0,"ng-template",null,0,Wf),Gl(2,SO,2,0,"ng-template",null,1,Wf),Gl(4,TO,2,0,"ng-template",null,2,Wf),Gl(6,DO,2,0,"ng-template",null,3,Wf),Gl(8,EO,1,0,"ng-template",null,4,Wf),Gl(10,IO,2,2,"ng-template",null,5,Wf),Gl(12,VO,1,1,"ng-template",null,6,Wf),Oc(14,"ul"),Gl(15,$O,3,9,"li",7),Gl(16,HO,3,8,"li",7),Gl(17,qO,0,0,"ng-template",8),Gl(18,KO,3,9,"li",7),Gl(19,ZO,3,9,"li",7),Ic()),2&e){const e=Zl(13);Lo(14),_u("pagination"+(t.size?" pagination-"+t.size:"")),Lo(1),Tc("ngIf",t.boundaryLinks),Lo(1),Tc("ngIf",t.directionLinks),Lo(1),Tc("ngTemplateOutlet",(null==t.tplPages?null:t.tplPages.templateRef)||e)("ngTemplateOutletContext",rf(8,QO,t.page,t.pages,t.disabled)),Lo(1),Tc("ngIf",t.directionLinks),Lo(1),Tc("ngIf",t.boundaryLinks)}},directives:[sb,pb,tb],encapsulation:2,changeDetection:0}),eF.ctorParameters=()=>[{type:WM}],eF.propDecorators={tplEllipsis:[{type:Es,args:[KM,{static:!1}]}],tplFirst:[{type:Es,args:[GM,{static:!1}]}],tplLast:[{type:Es,args:[ZM,{static:!1}]}],tplNext:[{type:Es,args:[QM,{static:!1}]}],tplNumber:[{type:Es,args:[YM,{static:!1}]}
3],tplPrevious:[{type:Es,args:[JM,{static:!1}]}],tplPages:[{type:Es,args:[XM,{static:!1}]}],disabled:[{type:Cg}],boundaryLinks:[{type:Cg}],directionLinks:[{type:Cg}],ellipses:[{type:Cg}],rotate:[{type:Cg}],collectionSize:[{type:Cg}],maxSize:[{type:Cg}],page:[{type:Cg}],pageSize:[{type:Cg}],pageChange:[{type:xg}],size:[{type:Cg}]};class tF{}tF.\u0275fac=function(e){return new(e||tF)},tF.\u0275mod=st({type:tF}),tF.\u0275inj=_e({imports:[[Rb]]});class nF{constructor(e,t){this.open=e,this.close=t,t||(this.close=e)}isManual(){return"manual"===this.open||"manual"===this.close}}const sF={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};const iF=e=>e>0?TE(e):e=>e;function rF(e,t,n,s,i,r,o=0,a=0){const l=function(e,t=sF){const n=(e||"").trim();if(0===n.length)return[];const s=n.split(/\s+/).map(e=>e.split(":")).map(e=>{let n=t[e[0]]||e;return new nF(n[0],n[1])}),i=s.filter(e=>e.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return s}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(e,t,n,s){return new v(i=>{const r=[],o=()=>i.next(!0),a=()=>i.next(!1),l=()=>i.next(!s());return n.forEach(n=>{n.open===n.close?r.push(e.listen(t,n.open,l)):r.push(e.listen(t,n.open,o),e.listen(t,n.close,a))}),()=>{r.forEach(e=>e())}})}(e,t,l,s).pipe(function(e,t,n){return s=>{let i=null;const r=s.pipe(D(e=>({open:e})),Uv(e=>{const t=n();return t===e.open||i&&i.open!==t?(i&&i.open!==e.open&&(i=null),!1):(i=e,!0)}),te());return W(r.pipe(Uv(e=>e.open),iF(e)),r.pipe(Uv(e=>!e.open),iF(t))).pipe(Uv(e=>e===i&&(i=null,e.open!==n())),D(e=>e.open))}}(o,a,s)).subscribe(e=>e?i():r());return()=>c.unsubscribe()}class oF{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}oF.\u0275fac=function(e){return new(e||oF)(ri(VI))},oF.\u0275prov=ve({factory:function(){return new oF(ri(VI))},token:oF,providedIn:"root"}),oF.ctorParameters=()=>[{type:VI}];let aF=0;class lF{isTitleTemplate(){return this.title instanceof Ip}}lF.\u0275fac=function(e){return new(e||lF)},lF.\u0275cmp=Je({type:lF,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,t){2&e&&(yh("id",t.id),_u("popover"+(t.popoverClass?" "+t.popoverClass:"")),yu("fade",t.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:BE,decls:4,vars:1,consts:[[1,"arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(Wc(),Pc(0,"div",0),Gl(1,XO,4,2,"h3",1),Oc(2,"div",2),Kc(3),Ic()),2&e&&(Lo(1),Tc("ngIf",t.title))},directives:[sb,pb],styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{margin-top:-.5rem;top:50%}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{bottom:.7em;top:auto}"],encapsulation:2,changeDetection:0}),lF.propDecorators={animation:[{type:Cg}],title:[{type:Cg}],id:[{type:Cg}],popoverClass:[{type:Cg}],context:[{type:Cg}]};class cF{constructor(e,t,n,s,i,r,o,a,l,c){this._elementRef=e,this._renderer=t,this._ngZone=o,this._document=a,this._changeDetector=l,this.shown=new Df,this.hidden=new Df,this._ngbPopoverWindowId="ngb-popover-"+aF++,this._windowRef=null,this.animation=r.animation,this.autoClose=r.autoClose,this.placement=r.placement,this.triggers=r.triggers,this.container=r.container,this.disablePopover=r.disablePopover,this.popoverClass=r.popoverClass,this.openDelay=r.openDelay,this.closeDelay=r.closeDelay,this._popupService=new xM(lF,n,i,t,this._ngZone,s,c),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&lA(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:t,transition$:n}=this._popupService.open(this.ngbPopover,e,this.animation);this._windowRef=t,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=e,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),nA(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=rF(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:t,disablePopover:n,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(e||t||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}cF.\u0275fac=function(e){return new(e||cF)(kc(Yd),kc(ep),kc(il),kc(Kd),kc(Lp),kc(oF),kc(Xg),kc(Vm),kc(xp),kc(Cm))},cF.\u0275dir=ot({type:cF,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[_t]}),cF.ctorParameters=()=>[{type:Yd},{type:ep},{type:il},{type:Kd},{type:Lp},{type:oF},{type:Xg},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:xp},{type:Cm}],cF.propDecorators={animation:[{type:Cg}],autoClose:[{type:Cg}],ngbPopover:[{type:Cg}],popoverTitle:[{type:Cg}],placement:[{type:Cg}],triggers:[{type:Cg}],container:[{type:Cg}],disablePopover:[{type:Cg}],popoverClass:[{type:Cg}],openDelay:[{type:Cg}],closeDelay:[{type:Cg}],shown:[{type:xg}],hidden:[{type:xg}]};class uF{}uF.\u0275fac=function(e){return new(e||uF)},uF.\u0275mod=st({type:uF}),uF.\u0275inj=_e({imports:[[Rb]]});class hF{constructor(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}}hF.\u0275fac=function(e){return new(e||hF)},hF.\u0275prov=ve({factory:function(){return new hF},token:hF,providedIn:"root"});class dF{constructor(e){this.value=0,this.max=e.max,this.animated=e.animated,this.striped=e.striped,this.textType=e.textType,this.type=e.type,this.showValue=e.showValue,this.height=e.height}set max(e){this._max=!II(e)||e<=0?100:e}get max(){return this._max}getValue(){return EI(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}dF.\u0275fac=function(e){return new(e||dF)(kc(hF))},dF.\u0275cmp=Je({type:dF,selectors:[["ngb-progressbar"]],hostAttrs:[1,"progress"],hostVars:2,hostBindings:function(e,t){2&e&&mu("height",t.height)},inputs:{value:"value",max:"max",animated:"animated",striped:"str
3iped",textType:"textType",type:"type",showValue:"showValue",height:"height"},ngContentSelectors:BE,decls:3,vars:11,consts:function(){let e;return e="" + "\ufffd0\ufffd" + "%",[["role","progressbar","aria-valuemin","0"],[4,"ngIf"],e]},template:function(e,t){1&e&&(Wc(),Oc(0,"div",0),Gl(1,eI,3,3,"span",1),Kc(2),Ic()),2&e&&(Ku("progress-bar",t.type?" bg-"+t.type:"","",t.textType?" text-"+t.textType:"","\n    ",t.animated?" progress-bar-animated":"","",t.striped?" progress-bar-striped":"",""),mu("width",t.getPercentValue(),"%"),Ol("aria-valuenow",t.getValue())("aria-valuemax",t.max),Lo(1),Tc("ngIf",t.showValue))},directives:[sb],pipes:[Ib],encapsulation:2,changeDetection:0}),dF.ctorParameters=()=>[{type:hF}],dF.propDecorators={max:[{type:Cg}],animated:[{type:Cg}],striped:[{type:Cg}],showValue:[{type:Cg}],textType:[{type:Cg}],type:[{type:Cg}],value:[{type:Cg}],height:[{type:Cg},{type:kg,args:["style.height"]}]};class pF{}pF.\u0275fac=function(e){return new(e||pF)},pF.\u0275mod=st({type:pF}),pF.\u0275inj=_e({imports:[[Rb]]});class fF{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}fF.\u0275fac=function(e){return new(e||fF)},fF.\u0275prov=ve({factory:function(){return new fF},token:fF,providedIn:"root"});class gF{constructor(e,t){this._changeDetectorRef=t,this.contexts=[],this.disabled=!1,this.hover=new Df,this.leave=new Df,this.rateChange=new Df(!0),this.onChange=e=>{},this.onTouched=()=>{},this.max=e.max,this.readonly=e.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}isInteractive(){return!this.readonly&&!this.disabled}enter(e){this.isInteractive()&&this._updateState(e),this.hover.emit(e)}handleBlur(){this.onTouched()}handleClick(e){this.isInteractive()&&this.update(this.resettable&&this.rate===e?0:e)}handleKeyDown(e){switch(e.which){case GP.ArrowDown:case GP.ArrowLeft:this.update(this.rate-1);break;case GP.ArrowUp:case GP.ArrowRight:this.update(this.rate+1);break;case GP.Home:this.update(0);break;case GP.End:this.update(this.max);break;default:return}e.preventDefault()}ngOnChanges(e){e.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(e,t)=>({fill:0,index:t})),this._updateState(this.rate)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(e){this.disabled=e}update(e,t=!0){const n=EI(e,this.max,0);this.isInteractive()&&this.rate!==n&&(this.rate=n,this.rateChange.emit(this.rate)),t&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(e){this.update(e,!1),this._changeDetectorRef.markForCheck()}
3_updateState(e){this.nextRate=e,this.contexts.forEach((t,n)=>t.fill=Math.round(100*EI(e-n,1,0)))}}gF.\u0275fac=function(e){return new(e||gF)(kc(fF),kc(xp))},gF.\u0275cmp=Je({type:gF,selectors:[["ngb-rating"]],contentQueries:function(e,t,n){if(1&e&&$f(n,Ip,1),2&e){let e;jf(e=zf())&&(t.starTemplateFromContent=e.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(e,t){1&e&&jc("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)})("mouseleave",function(){return t.reset()}),2&e&&(yh("tabindex",t.disabled?-1:0),Ol("aria-valuemax",t.max)("aria-valuenow",t.nextRate)("aria-valuetext",t.ariaValueText())("aria-disabled",!!t.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[zd([{provide:A_,useExisting:ae(()=>gF),multi:!0}]),_t],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(Gl(0,tI,1,1,"ng-template",null,0,Wf),Gl(2,sI,4,5,"ng-template",1)),2&e&&(Lo(2),Tc("ngForOf",t.contexts))},directives:[tb,pb],encapsulation:2,changeDetection:0}),gF.ctorParameters=()=>[{type:fF},{type:xp}],gF.propDecorators={max:[{type:Cg}],rate:[{type:Cg}],readonly:[{type:Cg}],resettable:[{type:Cg}],starTemplate:[{type:Cg}],starTemplateFromContent:[{type:Es,args:[Ip,{static:!1}]}],hover:[{type:xg}],leave:[{type:xg}],rateChange:[{type:xg}]};class mF{}mF.\u0275fac=function(e){return new(e||mF)},mF.\u0275mod=st({type:mF}),mF.\u0275inj=_e({imports:[[Rb]]});class yF{constructor(e,t,n){this.hour=TI(e),this.minute=TI(t),this.second=TI(n)}changeHour(e=1){this.updateHour((isNaN(this.hour)?0:this.hour)+e)}updateHour(e){II(e)?this.hour=(e<0?24+e:e)%24:this.hour=NaN}changeMinute(e=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+e)}updateMinute(e){II(e)?(this.minute=e%60<0?60+e%60:e%60,this.changeHour(Math.floor(e/60))):this.minute=NaN}changeSecond(e=1){this.updateSecond((isNaN(this.second)?0:this.second)+e)}updateSecond(e){II(e)?(this.second=e<0?60+e%60:e%60,this.changeMinute(Math.floor(e/60))):this.second=NaN}isValid(e=!0){return II(this.hour)&&II(this.minute)&&(!e||II(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}class bF{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}function vF(){return new wF}bF.\u0275fac=function(e){return new(e||bF)},bF.\u0275prov=ve({factory:function(){return new bF},token:bF,providedIn:"root"});class _F{}_F.\u0275fac=function(e){return new(e||_F)},_F.\u0275prov=ve({factory:vF,token:_F,providedIn:"root"});class wF extends _F{fromModel(e){return e&&PI(e.hour)&&PI(e.minute)?{hour:e.hour,minute:e.minute,second:PI(e.second)?e.second:null}:null}toModel(e){return e&&PI(e.hour)&&PI(e.minute)?{hour:e.hour,minute:e.minute,second:PI(e.second)?e.second:null}:null}}wF.\u0275fac=function(e){return CF(e||wF)},wF.\u0275prov=ve({token:wF,factory:wF.\u0275fac});const CF=ps(wF);function xF(e){return new SF(e)}class kF{}kF.\u0275fac=function(e){return new(e||kF)},kF.\u0275prov=ve({factory:function(){return xF(ri(jg))},token:kF,providedIn:"root"});class SF extends kF{constructor(e){super(),this._periods=uy(e,ry.Standalone,oy.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}SF.\u0275fac=function(e){return new(e||SF)(ri(jg))},SF.\u0275prov=ve({token:SF,factory:SF.\u0275fac}),SF.ctorParameters=()=>[{type:String,decorators:[{type:hi,args:[jg]}]}];const TF=/[^0-9]/g;class DF{constructor(e,t,n,s){this._config=e,this._ngbTimeAdapter=t,this._cd=n,this.i18n=s,this.onChange=e=>{},this.onTouched=()=>{},this.meridian=e.meridian,this.spinners=e.spinners,this.seconds=e.seconds,this.hourStep=e.hourStep,this.minuteStep=e.minuteStep,this.secondStep=e.secondStep,this.disabled=e.disabled,this.readonlyInputs=e.readonlyInput
3s,this.size=e.size}set hourStep(e){this._hourStep=PI(e)?e:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(e){this._minuteStep=PI(e)?e:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(e){this._secondStep=PI(e)?e:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(e){const t=this._ngbTimeAdapter.fromModel(e);this.model=t?new yF(t.hour,t.minute,t.second):new yF,this.seconds||t&&II(t.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}changeHour(e){this.model.changeHour(e),this.propagateModelChange()}changeMinute(e){this.model.changeMinute(e),this.propagateModelChange()}changeSecond(e){this.model.changeSecond(e),this.propagateModelChange()}updateHour(e){const t=this.model.hour>=12,n=TI(e);this.meridian&&(t&&n<12||!t&&12===n)?this.model.updateHour(n+12):this.model.updateHour(n),this.propagateModelChange()}updateMinute(e){this.model.updateMinute(TI(e)),this.propagateModelChange()}updateSecond(e){this.model.updateSecond(TI(e)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(e){e.value=e.value.replace(TF,"")}formatHour(e){return II(e)?this.meridian?MI(e%12==0?12:e%12):MI(e%24):MI(NaN)}formatMinSec(e){return MI(II(e)?e:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(e){e.seconds&&!this.seconds&&this.model&&!II(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(e=!0){e&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}DF.\u0275fac=function(e){return new(e||DF)(kc(bF),kc(_F),kc(xp),kc(kF))},DF.\u0275cmp=Je({type:DF,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[zd([{provide:A_,useExisting:ae(()=>DF),multi:!0}]),_t],decls:16,vars:25,consts:function(){let e,t,n,s,i,r,o,a,l,c,u,h,d,p;return e="HH",t="Hours",n="MM",s="Minutes",i="Increment hours",r="Decrement hours",o="Increment minutes",a="Decrement minutes",l="SS",c="Seconds",u="Increment seconds",h="Decrement seconds",d="PM",p="AM",[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",e,"aria-label",t,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",s,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],i,[1,"chevron","ngb-tp-chevron","bottom"],r,o,a,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",l,"aria-label",c,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],u,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],d,p]},template:function(e,t){1&e&&(Oc(0,"fieldset",0),Oc(1,"div",1),Oc(2,"div",2),Gl(3,iI,4,7,"button",3),Oc(4,"input",4),jc("change",function(e){return t.updateHour(e.target.value)})("blur",function(){return t.handleBlur()})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeHour(t.hourStep),e.preventDefault()}
3)("keydown.ArrowDown",function(e){return t.changeHour(-t.hourStep),e.preventDefault()}),Ic(),Gl(5,rI,4,7,"button",3),Ic(),Oc(6,"div",5),Mu(7,":"),Ic(),Oc(8,"div",6),Gl(9,oI,4,7,"button",3),Oc(10,"input",7),jc("change",function(e){return t.updateMinute(e.target.value)})("blur",function(){return t.handleBlur()})("input",function(e){return t.formatInput(e.target)})("keydown.ArrowUp",function(e){return t.changeMinute(t.minuteStep),e.preventDefault()})("keydown.ArrowDown",function(e){return t.changeMinute(-t.minuteStep),e.preventDefault()}),Ic(),Gl(11,aI,4,7,"button",3),Ic(),Gl(12,lI,2,0,"div",8),Gl(13,hI,4,9,"div",9),Gl(14,dI,1,0,"div",8),Gl(15,gI,5,9,"div",10),Ic(),Ic()),2&e&&(yu("disabled",t.disabled),Tc("disabled",t.disabled),Lo(3),Tc("ngIf",t.spinners),Lo(1),yu("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),Tc("value",t.formatHour(null==t.model?null:t.model.hour))("readOnly",t.readonlyInputs)("disabled",t.disabled),Lo(1),Tc("ngIf",t.spinners),Lo(4),Tc("ngIf",t.spinners),Lo(1),yu("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),Tc("value",t.formatMinSec(null==t.model?null:t.model.minute))("readOnly",t.readonlyInputs)("disabled",t.disabled),Lo(1),Tc("ngIf",t.spinners),Lo(1),Tc("ngIf",t.seconds),Lo(1),Tc("ngIf",t.seconds),Lo(1),Tc("ngIf",t.meridian),Lo(1),Tc("ngIf",t.meridian))},directives:[sb],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{align-items:center;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{align-items:center;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}'],encapsulation:2}),DF.ctorParameters=()=>[{type:bF},{type:_F},{type:xp},{type:kF}],DF.propDecorators={meridian:[{type:Cg}],spinners:[{type:Cg}],seconds:[{type:Cg}],hourStep:[{type:Cg}],minuteStep:[{type:Cg}],secondStep:[{type:Cg}],readonlyInputs:[{type:Cg}],size:[{type:Cg}]};class EF{}EF.\u0275fac=function(e){return new(e||EF)},EF.\u0275mod=st({type:EF}),EF.\u0275inj=_e({imports:[[Rb]]});class OF{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=500,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}OF.\u0275fac=function(e){return new(e||OF)(ri(VI))},OF.\u0275prov=ve({factory:function(){return new OF(ri(VI))},token:OF,providedIn:"root"}),OF.ctorParameters=()=>[{type:VI}];const IF=(e,t)=>{const{classList:n}=e;if(t)return n.remove("hide"),RI(e),n.add("showing"),()=>{n.remove("showing"),n.add("show")};n.add("show")},PF=({classList:e})=>(e.remove("show"),()=>{e.add("hide")});class AF{}AF.\u0275fac=function(e){return new(e||AF)},AF.\u0275dir=ot({type:AF,selectors:[["","ngbToastHeader",""]]});class MF{constructor(e,t,n,s){this.ariaLive=e,this._zone=n,this._element=s,this.contentHeaderTpl=null,this.shown=new Df,this.hidden=new Df,null==this.ariaLive&&(this.ariaLive=t.ariaLive),this.delay=t.delay,this.autohide=t.autohide,this.animation=t.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(nx(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=UI(this._zone,this._element.nativeElement,PF,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=UI(this._zone,this._element.nativeElement,IF,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}MF.\u0275fac=function(e){return new(e||MF)(gs("aria-live"),kc(OF),kc(Xg),kc(Yd))},MF.\u0275cmp=Je({type:MF,selectors:[["ngb-toast"]],contentQueries:function(e,t,n){if(1&e&&$f(n,AF,3,Ip),2&e){let e;jf(e=zf())&&(t.contentHeaderTpl=e.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,t){2&e&&(Ol("aria-live",t.ariaLive),yu("fade",t.animation))},inputs:{delay:"delay",autohide:"autohide",animation:"animation",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],features:[_t],ngContentSelectors:BE,decls:5,vars:1,consts:function(){let e;return e="Close",[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"mr-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",e,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,t){1&e&&(Wc(),Gl(0,mI,2,1,"ng-template",null,0,Wf),Gl(2,bI,5,1,"ng-template",1),Oc(3,"div",2),Kc(4),Ic()),2&e&&(Lo(2),Tc("ngIf",t.contentHeaderTpl||t.header))},directives:[sb,pb],styles:[".ngb-toasts{margin:.5em;position:fixed;right:0;top:0;z-index:1200}ngb-toast{display:block}ngb-toast .toast-header .close{margin-bottom:.25rem;margin-left:auto}"],encapsulation:2}),MF.ctorParameters=()=>[{type:String,decorators:[{type:xs,args:["aria-live"]}]},{type:OF},{type:Xg},{type:Yd}],MF.propDecorators={animation:[{type:Cg}],delay:[{type:Cg}],autohide:[{type:Cg}],header:[{type:Cg}],contentHeaderTpl:[{type:Es,args:[AF,{read:Ip,static:!0}]}],shown:[{type:xg}],hidden:[{type:xg}]};class FF{}FF.\u0275fac=function(e){return new(e||FF)},FF.\u0275mod=st({type:FF}),FF.\u0275inj=_e({imports:[[Rb]]});class RF{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}RF.\u0275fac=function(e){return new(e||RF)(ri(VI))},RF.\u0275prov=ve({factory:function(){return new RF(ri(VI))},token:RF,providedIn:"root"}),RF.ctorParameters=()=>[{type:VI}];let NF=0;class LF{}LF.\u0275fac=function(e){return new(e||LF)},LF.\u0275cmp=Je({type:LF,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(e,t){2&e&&(yh("id",t.id),_u("tooltip"+(t.tooltipClass?" "+t.tooltipClass:"")),yu("fade",t.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:BE,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(Wc(),Pc(0,"div",0),Oc(1,"div",1),Kc(2),Ic())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),LF.propDecorators={animation:[{type:Cg}
3],id:[{type:Cg}],tooltipClass:[{type:Cg}]};class VF{constructor(e,t,n,s,i,r,o,a,l,c){this._elementRef=e,this._renderer=t,this._ngZone=o,this._document=a,this._changeDetector=l,this.shown=new Df,this.hidden=new Df,this._ngbTooltipWindowId="ngb-tooltip-"+NF++,this._windowRef=null,this.animation=r.animation,this.autoClose=r.autoClose,this.placement=r.placement,this.triggers=r.triggers,this.container=r.container,this.disableTooltip=r.disableTooltip,this.tooltipClass=r.tooltipClass,this.openDelay=r.openDelay,this.closeDelay=r.closeDelay,this._popupService=new xM(LF,n,i,t,this._ngZone,s,c),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&lA(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:t,transition$:n}=this._popupService.open(this._ngbTooltip,e,this.animation);this._windowRef=t,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),nA(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=rF(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&(this._windowRef.instance.tooltipClass=e.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}VF.\u0275fac=function(e){return new(e||VF)(kc(Yd),kc(ep),kc(il),kc(Kd),kc(Lp),kc(RF),kc(Xg),kc(Vm),kc(xp),kc(Cm))},VF.\u0275dir=ot({type:VF,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[_t]}),VF.ctorParameters=()=>[{type:Yd},{type:ep},{type:il},{type:Kd},{type:Lp},{type:RF},{type:Xg},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:xp},{type:Cm}],VF.propDecorators={animation:[{type:Cg}],autoClose:[{type:Cg}],placement:[{type:Cg}],triggers:[{type:Cg}],container:[{type:Cg}],disableTooltip:[{type:Cg}],tooltipClass:[{type:Cg}],openDelay:[{type:Cg}],closeDelay:[{type:Cg}],shown:[{type:xg}],hidden:[{type:xg}],ngbTooltip:[{type:Cg}]};class jF{}jF.\u0275fac=function(e){return new(e||jF)},jF.\u0275mod=st({type:jF}),jF.\u0275inj=_e({});class BF{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){this.accentSensitive||String.prototype.normalize||(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const t=DI(this.result),n=Array.isArray(this.term)?this.term:[this.term],s=e=>this.accentSensitive?e:NI(e),i=n.map(e=>s(DI(e)).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(e=>e),r=this.accentSensitive?t:NI(t),o=i.length?r.split(new RegExp(`(${i.join("|")})`,"gmi")):[t];if(this.accentSensitive)this.parts=o;else{let e=0;this.parts=o.map(n=>t.substring(e,e+=n.length))}}}BF.\u0275fac=function(e){return new(e||BF)},BF.\u0275cmp=Je({type:BF,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",accentSensitive:"accentSensitive",result:"result",term:"term"},features:[_t],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,t){1&e&&Gl(0,wI,3,2,"ng-template",0),2&e&&Tc("ngForOf",t.parts)},directives:[tb,sb],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),BF.propDecorators={highlightClass:[{type:Cg}],result:[{type:Cg}],term:[{type:Cg}],accentSensitive:[{type:Cg}]};class $F{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=DI,this.selectEvent=ne
3w Df,this.activeChangeEvent=new Df}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}$F.\u0275fac=function(e){return new(e||$F)},$F.\u0275cmp=Je({type:$F,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(e,t){1&e&&jc("mousedown",function(e){return e.preventDefault()}),2&e&&(yh("id",t.id),_u("dropdown-menu show"+(t.popupClass?" "+t.popupClass:"")))},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(Gl(0,CI,1,2,"ng-template",null,0,Wf),Gl(2,SI,2,9,"ng-template",1)),2&e&&(Lo(2),Tc("ngForOf",t.results))},directives:[tb,BF,pb],encapsulation:2}),$F.propDecorators={id:[{type:Cg}],focusFirst:[{type:Cg}],results:[{type:Cg}],term:[{type:Cg}],formatter:[{type:Cg}],resultTemplate:[{type:Cg}],popupClass:[{type:Cg}],selectEvent:[{type:xg,args:["select"]}],activeChangeEvent:[{type:xg,args:["activeChange"]}]};const zF=new ks("live announcer delay",{providedIn:"root",factory:function(){return 100}});function UF(e,t=!1){let n=e.body.querySelector("#ngb-live");return null==n&&t&&(n=e.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),e.body.appendChild(n)),n}class HF{constructor(e,t){this._document=e,this._delay=t}ngOnDestroy(){const e=UF(this._document);e&&e.parentElement.removeChild(e)}say(e){const t=UF(this._document,!0),n=this._delay;if(null!=t){t.textContent="";const s=()=>t.textContent=e;null===n?s():setTimeout(s,n)}}}HF.\u0275fac=function(e){return new(e||HF)(ri(Vm),ri(zF))},HF.\u0275prov=ve({factory:function(){return new HF(ri(Vm),ri(zF))},token:HF,providedIn:"root"}),HF.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:void 0,decorators:[{type:hi,args:[zF]}]}];class qF{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}qF.\u0275fac=function(e){return new(e||qF)},qF.\u0275prov=ve({factory:function(){return new qF},token:qF,providedIn:"root"});let WF=0;class KF{constructor(e,t,n,s,i,r,o,a,l,c,u,h){this._elementRef=e,this._renderer=n,this._live=a,this._document=l,this._ngZone=c,this._changeDetector=u,this._subscription=null,this._closed$=new k,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new Df,this.activeDescendant=null,this.popupId="ngb-typeahead-"+WF++,this._onTouched=()=>{},this._onChange=e=>{},this.container=r.container,this.editable=r.editable,this.focusFirst=r.focusFirst,this.showHint=r.showHint,this.placement=r.placement,this._valueChanges=lE(e.nativeElement,"input").pipe(D(e=>e.target.value)),this._resubscribeTypeahead=new jC(null),this._popupService=new xM($F,s,t,n,this._ngZone,i,h),this._zoneSubscription=o.onStable.subscribe(()=>{this.isPopupOpen()&&lA(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:e}){e&&!e.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.which){case GP.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case GP.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case GP.Enter:case GP.Tab:const t=this._windowRef.instance.getActive();AI(t)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(t)),this._closePopup()}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:e}=this._popupService.open();this._windowRef=e,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(e=>this._selectResultClosePopup(e)),this._windowRef.instance.activeChangeEvent.subscribe(e=>this.activeDescendant=e),this._windowRef.instance.popupClass=this.popupClass,"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),nA(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(e){let t=!1;this.selectItem.emit({item:e,preventDefault:()=>{t=!0}}),this._resubscribeTypeahead.next(null),t||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){var e;if(this.showHint&&(null===(e=this._windowRef)||void 0===e?void 0:e.instance.hasActive())&&null!=this._inputValueBackup){const e=this._inputValueBackup.toLowerCase(),t=this._formatItemForInput(this._windowRef.instance.getActive());e===t.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+t.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,t.length])):this._writeInputValue(t)}}_formatItemForInput(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):DI(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",DI(e))}_subscribeToUserInput(){const e=this._valueChanges.pipe(kx(e=>{this._inputValueBackup=this.showHint?e:null,this._onChange(this.editable?e:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>$v([]));this._subscription=this._resubscribeTypeahead.pipe(JC(()=>e)).subscribe(e=>{e&&0!==e.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=e,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const t=e?e.length:0;this._live.say(0===t?"No results available":`${t} result${1===t?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}KF.\u0275fac=function(e){return new(e||KF)(kc(Yd),kc(Lp),kc(ep),kc(il),kc(Kd),kc(qF),kc(Xg),kc(HF),kc(Vm),kc(Xg),kc(xp),kc(Cm))},KF.\u0275dir=ot({type:KF,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,t){1&e&&jc("blur",function(){return t.handleBlur()})("keydown",function(e){return t.handleKeyDown(e)}),2&e&&(yh("autocomplete",t.autocomplete),Ol("aria-autocomplete",t.showHint?"both":"list")("aria-activedescendant",t.activeDescendant)("aria-owns",t.isPopupOpen()?t.popupId:null)("aria-expanded",t.isPopupOpen()),yu("open",t.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[zd([{provide:A_,useExisting:ae(()=>KF),multi:!0}]),_t]}),KF.ctorParameters=()=>[{type:Yd},{type:Lp},{type:ep},{type:il},{type:Kd},{type:qF},{type:Xg},{type:HF},{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:Xg},{type:xp},{type:Cm}],KF.propDecorators={autocomplete:[{type:Cg}],container:[{type:Cg}],editable:[{type:Cg}],focusFirst:[{type:Cg}],inputFormatter:[{type:Cg}],ngbTypeahead:[{type:Cg}],resultFormatter:[{type:Cg}],resultTemplate:[{type:Cg}],showHint:[{type:Cg}],placement:[{type:Cg}],popupClass:[{type:Cg}],selectItem:[{type:xg}]};class GF{}GF.\u0275fac=function(e){return new(e||GF)},GF.\u0275mod=st({type:GF}),GF.\u0275inj=_e({imports:[[Rb]]});const ZF=[JI,nP,lP,_P,xP,dM,_M,MM,qM,tF,uF,pF,mF,EF,FF,jF,GF];class QF{}QF.\u0275fac=function(e){return new(e||QF)},QF.\u0275mod=st({type:QF}),QF.\u0275inj=_e({imports:[ZF,JI,nP,lP,_P,xP,dM,_M,MM,qM,tF,uF,pF,mF,EF,FF,jF,GF]});
3function YF(e,t,n,s){return new(n||(n=Promise))(function(i,r){function o(e){try{l(s.next(e))}catch(t){r(t)}}function a(e){try{l(s.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;class JF{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new XF(e,this.durationSelector))}}class XF extends j{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const s=B(n,new V(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function eR(e,t=sE){return n=()=>rE(e,t),function(e){return e.lift(new JF(n))};var n}class tR{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new nR(e,this.dueTime,this.scheduler))}}class nR extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(sR,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function sR(e){e.debouncedNext()}const iR=new class extends KD{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,s=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++s<i&&(e=t.shift()));if(this.active=!1,n){for(;++s<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends qD{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let rR=1;const oR=Promise.resolve(),aR={};function lR(e){return e in aR&&(delete aR[e],!0)}const cR={setImmediate(e){const t=rR++;return aR[t]=!0,oR.then(()=>lR(t)&&e()),t},clearImmediate(e){lR(e)}};const uR=new class extends KD{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,s=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++s<i&&(e=t.shift()));if(this.active=!1,n){for(;++s<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends qD{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=cR.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cR.clearImmediate(t),e.scheduled=void 0)}}),hR=["content"],dR=["scroll"],pR=["padding"],fR=function(e){return{searchTerm:e}};function gR(e,t){if(1&e&&(Oc(0,"div",6),Fc(1,7),Ic()),2&e){const e=Hc();Lo(1),Tc("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",nf(2,fR,e.filterValue))}}function mR(e,t){if(1&e&&(Oc(0,"div",8),Fc(1,7),Ic()),2&e){const e=Hc();Lo(1),Tc("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",nf(2,fR,e.filterValue))}}const yR=["*"],bR=["searchInput"];function vR(e,t){if(1&e){const e=Rc();Oc(0,"span",15),jc("click",function(){Yt(e);const t=Hc().$implicit;return Hc(2).unselect(t)}),Mu(1,"\xd7"),Ic(),Pc(2,"span",16)}if(2&e){const e=Hc().$implicit,t=Hc(2);Lo(2),Tc("ngItemLabel",e.label)("escape",t.escapeHTML)}}function _R(e,t){}const wR=function(e,t,n){return{item:e,clear:t,label:n}};function CR(e,t){if(1&e&&(Oc(0,"div",12),Gl(1,vR,3,2,"ng-template",null,13,Wf),Gl(3,_R,0,0,"ng-template",14),Ic()),2&e){const e=t.$implicit,n=Zl(2),s=Hc(2);yu("ng-value-disabled",e.disabled),Lo(3),Tc("ngTemplateOutlet",s.labelTemplate||n)("ngTemplateOutletContext",rf(4,wR,e.value,s.clearItem,e.label))}}function xR(e,t){if(1&e&&(Ac(0),Gl(1,CR,4,8,"div",11),Mc()),2&e){const e=Hc();Lo(1),Tc("ngForOf",e.selectedItems)("ngForTrackBy",e.trackByOption)}}function kR(e,t){}const SR=function(e,t){return{items:e,clear:t}};function TR(e,t){if(1&e&&Gl(0,kR,0,0,"ng-template",14),2&e){const e=Hc();Tc("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",sf(2,SR,e.selectedValues,e.clearItem))}}function DR(e,t){1&e&&Pc(0,"div",19)}function ER(e,t){}function OR(e,t){if(1&e&&(Ac(0),Gl(1,DR,1,0,"ng-template",null,17,Wf),Gl(3,ER,0,0,"ng-template",18),Mc()),2&e){const e=Zl(2),t=Hc();Lo(3),Tc("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function IR(e,t){if(1&e&&(Oc(0,"span",20),Oc(1,"span",21),Mu(2,"\xd7"),Ic(),Ic()),2&e){Gc("title",Hc().clearAllText)}}function PR(e,t){if(1&e&&Pc(0,"span",27),2&e){const e=Hc().$implicit,t=Hc(2);Tc("ngItemLabel",e.label)("escape",t.escapeHTML)}}function AR(e,t){}const MR=function(e,t,n,s){return{item:e,item$:t,index:n,searchTerm:s}};function FR(e,t){if(1&e){const e=Rc();Oc(0,"div",25),jc("click",function(){Yt(e);
3const n=t.$implicit;return Hc(2).toggleItem(n)})("mouseover",function(){Yt(e);const n=t.$implicit;return Hc(2).onItemHover(n)}),Gl(1,PR,1,2,"ng-template",null,26,Wf),Gl(3,AR,0,0,"ng-template",14),Ic()}if(2&e){const e=t.$implicit,n=Zl(2),s=Hc(2);yu("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===s.itemsList.markedItem),Ol("role",e.children?"group":"option")("aria-selected",e.selected)("id",null==e?null:e.htmlId),Lo(3),Tc("ngTemplateOutlet",e.children?s.optgroupTemplate||n:s.optionTemplate||n)("ngTemplateOutletContext",of(17,MR,e.value,e,e.index,s.searchTerm))}}function RR(e,t){if(1&e&&(Oc(0,"span"),Oc(1,"span",30),Mu(2),Ic(),Mu(3),Ic()),2&e){const e=Hc(3);Lo(2),Fu(e.addTagText),Lo(1),Ru('"',e.searchTerm,'"')}}function NR(e,t){}function LR(e,t){if(1&e){const e=Rc();Oc(0,"div",28),jc("mouseover",function(){Yt(e);return Hc(2).itemsList.unmarkItem()})("click",function(){Yt(e);return Hc(2).selectTag()}),Gl(1,RR,4,2,"ng-template",null,29,Wf),Gl(3,NR,0,0,"ng-template",14),Ic()}if(2&e){const e=Zl(2),t=Hc(2);yu("ng-option-marked",!t.itemsList.markedItem),Lo(3),Tc("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",nf(4,fR,t.searchTerm))}}function VR(e,t){if(1&e&&(Oc(0,"div",32),Mu(1),Ic()),2&e){const e=Hc(3);Lo(1),Fu(e.notFoundText)}}function jR(e,t){}function BR(e,t){if(1&e&&(Ac(0),Gl(1,VR,2,1,"ng-template",null,31,Wf),Gl(3,jR,0,0,"ng-template",14),Mc()),2&e){const e=Zl(2),t=Hc(2);Lo(3),Tc("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",nf(2,fR,t.searchTerm))}}function $R(e,t){if(1&e&&(Oc(0,"div",32),Mu(1),Ic()),2&e){const e=Hc(3);Lo(1),Fu(e.typeToSearchText)}}function zR(e,t){}function UR(e,t){if(1&e&&(Ac(0),Gl(1,$R,2,1,"ng-template",null,33,Wf),Gl(3,zR,0,0,"ng-template",18),Mc()),2&e){const e=Zl(2),t=Hc(2);Lo(3),Tc("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function HR(e,t){if(1&e&&(Oc(0,"div",32),Mu(1),Ic()),2&e){const e=Hc(3);Lo(1),Fu(e.loadingText)}}function qR(e,t){}function WR(e,t){if(1&e&&(Ac(0),Gl(1,HR,2,1,"ng-template",null,34,Wf),Gl(3,qR,0,0,"ng-template",14),Mc()),2&e){const e=Zl(2),t=Hc(2);Lo(3),Tc("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",nf(2,fR,t.searchTerm))}}function KR(e,t){if(1&e){const e=Rc();Oc(0,"ng-dropdown-panel",22),jc("update",function(t){Yt(e);return Hc().viewPortItems=t})("scroll",function(t){Yt(e);return Hc().scroll.emit(t)})("scrollToEnd",function(t){Yt(e);return Hc().scrollToEnd.emit(t)})("outsideClick",function(){Yt(e);return Hc().close()}),Ac(1),Gl(2,FR,4,22,"div",23),Gl(3,LR,4,6,"div",24),Mc(),Gl(4,BR,4,4,"ng-container",3),Gl(5,UR,4,1,"ng-container",3),Gl(6,WR,4,4,"ng-container",3),Ic()}if(2&e){const e=Hc();yu("ng-select-multiple",e.multiple),Tc("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.classes:null)("id",e.dropdownId),Lo(2),Tc("ngForOf",e.viewPortItems)("ngForTrackBy",e.trackByOption),Lo(1),Tc("ngIf",e.showAddTag),Lo(1),Tc("ngIf",e.showNoItemsFound()),Lo(1),Tc("ngIf",e.showTypeToSearch()),Lo(1),Tc("ngIf",e.loading&&0===e.itemsList.filteredItems.length)}}const GR=/[&<>"']/g,ZR=RegExp(GR.source),QR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function YR(e){return null!=e}function JR(e){return"object"==typeof e&&YR(e)}function XR(e){return e instanceof Function}class eN{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){var t;this.element.nativeElement.innerHTML=this.escape?(t=this.ngItemLabel)&&ZR.test(t)?t.replace(GR,e=>QR[e]):t:this.ngItemLabel}}eN.\u0275fac=function(e){return new(e||eN)(kc(Yd))},eN.\u0275dir=ot({type:eN,selectors:[["","ngItemLabel",""]],inputs:{escape:"escape",ngItemLabel:"ngItemLabel"},features:[_t]}),eN.ctorParameters=()=>[{type:Yd}],eN.propDecorators={ngItemLabel:[{type:Cg}],escape:[{type:Cg}]};class tN{constructor(e){this.template=e}}tN.\u0275fac=function(e){return new(e||tN)(kc(Ip))},tN.\u0275dir=ot({type:tN,selectors:[["","ng-option-tmp",""]]}),tN.ctorParameters=()=>[{type:Ip}];
3class nN{constructor(e){this.template=e}}nN.\u0275fac=function(e){return new(e||nN)(kc(Ip))},nN.\u0275dir=ot({type:nN,selectors:[["","ng-optgroup-tmp",""]]}),nN.ctorParameters=()=>[{type:Ip}];class sN{constructor(e){this.template=e}}sN.\u0275fac=function(e){return new(e||sN)(kc(Ip))},sN.\u0275dir=ot({type:sN,selectors:[["","ng-label-tmp",""]]}),sN.ctorParameters=()=>[{type:Ip}];class iN{constructor(e){this.template=e}}iN.\u0275fac=function(e){return new(e||iN)(kc(Ip))},iN.\u0275dir=ot({type:iN,selectors:[["","ng-multi-label-tmp",""]]}),iN.ctorParameters=()=>[{type:Ip}];class rN{constructor(e){this.template=e}}rN.\u0275fac=function(e){return new(e||rN)(kc(Ip))},rN.\u0275dir=ot({type:rN,selectors:[["","ng-header-tmp",""]]}),rN.ctorParameters=()=>[{type:Ip}];class oN{constructor(e){this.template=e}}oN.\u0275fac=function(e){return new(e||oN)(kc(Ip))},oN.\u0275dir=ot({type:oN,selectors:[["","ng-footer-tmp",""]]}),oN.ctorParameters=()=>[{type:Ip}];class aN{constructor(e){this.template=e}}aN.\u0275fac=function(e){return new(e||aN)(kc(Ip))},aN.\u0275dir=ot({type:aN,selectors:[["","ng-notfound-tmp",""]]}),aN.ctorParameters=()=>[{type:Ip}];class lN{constructor(e){this.template=e}}lN.\u0275fac=function(e){return new(e||lN)(kc(Ip))},lN.\u0275dir=ot({type:lN,selectors:[["","ng-typetosearch-tmp",""]]}),lN.ctorParameters=()=>[{type:Ip}];class cN{constructor(e){this.template=e}}cN.\u0275fac=function(e){return new(e||cN)(kc(Ip))},cN.\u0275dir=ot({type:cN,selectors:[["","ng-loadingtext-tmp",""]]}),cN.ctorParameters=()=>[{type:Ip}];class uN{constructor(e){this.template=e}}uN.\u0275fac=function(e){return new(e||uN)(kc(Ip))},uN.\u0275dir=ot({type:uN,selectors:[["","ng-tag-tmp",""]]}),uN.ctorParameters=()=>[{type:Ip}];class hN{constructor(e){this.template=e}}hN.\u0275fac=function(e){return new(e||hN)(kc(Ip))},hN.\u0275dir=ot({type:hN,selectors:[["","ng-loadingspinner-tmp",""]]}),hN.ctorParameters=()=>[{type:Ip}];class dN{warn(e){console.warn(e)}}function pN(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}dN.\u0275fac=function(e){return new(e||dN)},dN.\u0275prov=ve({factory:function(){return new dN},token:dN,providedIn:"root"});const fN
vendor: 10,560 bytes, line 3
3={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z"
3,"\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};function gN(e){return e.replace(/[^\u0000-\u007E]/g,e=>fN[e]||e)}class mN{constructor(e,t){this._ngSelect=e,this._selectionModel=t,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let e=this.selectedItems.length-1;for(;e>=0;e--){let t=this.selectedItems[e];if(!t.disabled)return t}return null}setItems(e){this._items=e.map((e,t)=>this.mapItem(e,t)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(e){if(e.selected||this.maxItemsSelected)return;const t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(e,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(e)}unselect(e){e.selected&&(this._selectionModel.unselect(e,this._ngSelect.multiple),this._ngSelect.hideSelected&&YR(e.index)&&this._ngSelect.multiple&&this._showSelected(e))}findItem(e){let t;return t=this._ngSelect.compareWith?t=>this._ngSelect.compareWith(t.value,e):this._ngSelect.bindValue?t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===e:t=>t.value===e||!t.children&&t.label&&t.label===this.resolveNested(e,this._ngSelect.bindLabel),this._items.find(e=>t(e))}addItem(e){const t=this.mapItem(e,this._items.length);return this._items.push(t),this._filteredItems.push(t),t}clearSelected(e=!1){this._selectionModel.clear(e),this._items.forEach(t=>{t.selected=e&&t.selected&&t.disabled,t.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(e){return e=gN(e).toLocaleLowerCase(),this.filteredItems.find(t=>gN(t.label).toLocaleLowerCase().substr(0,e.length)===e)}filter(e){if(!e)return void this.resetFilteredItems();this._filteredItems=[],e=this._ngSelect.searchFn?e:gN(e).toLocaleLowerCase();const t=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const s of Array.from(this._groups.keys())){const i=[];for(const r of this._groups.get(s)){if(n&&(r.parent&&r.parent.selected||r.selected))continue;t(e,this._ngSelect.searchFn?r.value:r)&&i.push(r)}if(i.length>0){const[e]=i.slice(-1);if(e.parent){const t=this._items.find(t=>t===e.parent);this._filteredItems.push(t)}this._filteredItems.push(...i)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(e=>!e.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(e){this._markedIndex=this._filteredItems.indexOf(e)}markSelectedOrDefault(e){if(0===this._filteredItems.length)return;const t=this._getLastMarkedIndex();this._markedIndex=t>-1?t:e?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(e,t){if(!JR(e))return e;if(-1===t.indexOf("."))return e[t];{let n=t.split("."),s=e;for(let e=0,t=n.length;e<t;++e){if(null==s)return null;s=s[n[e]]}return s}}mapItem(e,t){const n=YR(e.$ngOptionLabel)?e.$ngOptionLabel:this.resolveNested(e,this._ngSelect.bindLabel),s=YR(e.$ngOptionValue)?e.$ngOptionValue:e;return{index:t,label:YR(n)?n.toString():"",value:s,disabled:e.disabled,htmlId:`${this._ngSelect.dropdownId}-${t}`}}mapSelectedItems(){const e=this._ngSelect.multiple;for(const t of this.selectedItems){const n=this._ngSelect.bindValue?this.resolveNested(t.value,this._ngSelect.bindValue):t.value,s=YR(n)?this.findItem(n):null;this._selectionModel.unselect(t,e),this._selectionModel.select(s||t,e,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(e=>-1===this.selectedItems.indexOf(e)))}_showSelected(e){if(this._filteredItems.push(e),e.parent){const t=e.parent;this._filteredItems.find(e=>e===t)||this._filteredItems.push(t)}else if(e.children)for(const t of e.children)t.selected=!1,this._filteredItems.push(t);this._filteredItems=[...this._filteredItems.sort((e,t)=>
3e.index-t.index)]}_hideSelected(e){if(this._filteredItems=this._filteredItems.filter(t=>t!==e),e.parent){e.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==e.parent))}else e.children&&(this._filteredItems=this.filteredItems.filter(t=>t.parent!==e))}_defaultSearchFn(e,t){return gN(t.label).toLocaleLowerCase().indexOf(e)>-1}_getNextItemIndex(e){return e>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(e){0===this._filteredItems.length||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(e),this.markedItem.disabled&&this._stepToItem(e))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected)return-1;if(this._markedIndex>-1&&void 0===this.markedItem)return-1;const e=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&e<0?-1:Math.max(this.markedIndex,e)}_groupBy(e,t){const n=new Map;if(0===e.length)return n;if(Array.isArray(e[0].value[t])){for(const s of e){const e=(s.value[t]||[]).map((e,t)=>this.mapItem(e,t));n.set(s,e)}return n}const s=XR(this._ngSelect.groupBy),i=e=>{let n=s?t(e.value):e.value[t];return YR(n)?n:void 0};for(const r of e){let e=i(r);const t=n.get(e);t?t.push(r):n.set(e,[r])}return n}_flatten(e){const t=XR(this._ngSelect.groupBy),n=[];for(const s of Array.from(e.keys())){let i=n.length;if(void 0===s){const t=e.get(void 0)||[];n.push(...t.map(e=>(e.index=i++,e)));continue}const r=JR(s),o={label:r?"":String(s),children:void 0,parent:null,index:i++,disabled:!this._ngSelect.selectableGroup,htmlId:pN()},a=t?this._ngSelect.bindLabel:this._ngSelect.groupBy,l=this._ngSelect.groupValue||(()=>r?s.value:{[a]:s}),c=e.get(s).map(e=>(e.parent=o,e.children=void 0,e.index=i++,e));o.children=c,o.value=l(s,c.map(e=>e.value)),n.push(o),n.push(...c)}return n}}var yN;!function(e){e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=40]="ArrowDown",e[e.Backspace=8]="Backspace"}(yN||(yN={}));class bN{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){const s=this._dimensions,i=s.itemHeight*t,r=Math.max(0,e)/i*t;let o=Math.min(t,Math.ceil(r)+(s.itemsPerViewport+1));const a=o,l=Math.max(0,a-s.itemsPerViewport);let c=Math.min(l,Math.floor(r)),u=s.itemHeight*Math.ceil(c)-s.itemHeight*Math.min(c,n);return u=isNaN(u)?0:u,c=isNaN(c)?-1:c,o=isNaN(o)?-1:o,c-=n,c=Math.max(0,c),o+=n,o=Math.min(t,o),{topPadding:u,scrollHeight:i,start:c,end:o}}setDimensions(e,t){const n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){const{panelHeight:s}=this.dimensions,i=e+t,r=n+s;return s>=i&&n===e?null:i>r?n+i-r:e<=n?e:null}}bN.\u0275fac=function(e){return new(e||bN)},bN.\u0275prov=ve({token:bN,factory:bN.\u0275fac});const vN="undefined"!=typeof requestAnimationFrame?iR:uR;class _N{constructor(e,t,n,s,i){this._renderer=e,this._zone=t,this._panelService=n,this._document=i,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new Df,this.scroll=new Df,this.scrollToEnd=new Df,this.outsideClick=new Df,this._destroy$=new k,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=s.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:e,panelHeight:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}return 0}handleMousedown(e){"INPUT"!==e.target.tagName&&e.preventDefault()}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()}ngOnChanges(e){if(e.items){const t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;const n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let s;if(this.virtualScroll){const e=this._panelService.dimensions.itemHeight;s=this._panelService.getScrollTo(n*e,e,this._lastScrollPosition)}else{const n=this._dropdown.querySelector(`#${e.htmlId}`),i=t?n.offsetTop:this._lastScrollPosition;s=this._panelService.getScrollTo(n.offsetTop,n.clientHeight,i)}YR(s)&&(this._scrollablePanel.scrollTop=s)}scrollToTag(){const e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,"ng-select-top"),this._renderer.removeClass(this._dropdown,"ng-select-bottom"),this._renderer.addClass(this._select,"ng-select-top"),this._renderer.removeClass(this._select,"ng-select-bottom")):(this._renderer.addClass(this._dropdown,"ng-select-bottom"),this._renderer.removeClass(this._dropdown,"ng-select-top"),this._renderer.addClass(this._select,"ng-select-bottom"),this._renderer.removeClass(this._select,"ng-select-top")),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_handleScroll(){this._zone.runOutsideAngular(()=>{lE(this.scrollElementRef.nativeElement,"scroll").pipe(AT(this._destroy$),eR(0,vN)).subscribe(e=>{const t=e.path||e.composedPath&&e.composedPath(),n=t&&0!==t.length?t[0].scrollTop:e.target.scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{W(lE(this._document,"touchstart",{capture:!0}),lE(this._document,"mousedown",{capture:!0})).pipe(AT(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;const t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),!1!==e&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{const t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;const t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),YR(e)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{const t=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=t*this.itemsLength+"px";const n=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(t,n),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||0===e)return;const t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if("auto"!==this.position)return this.position;const t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return t.top+window.pageYOffset+t.height+e.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){const e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if("top"===this._currentPosition){const s=t.bottom-e.bottom;this._dropdown.style.bottom=s+n+"px",this._dropdown.style.top="auto"}else if("bottom"===this._currentPosition){const s=e.top-t.top;this._dropdown.style.top=s+n+"px",this._dropdown.style.bottom="auto"}}}_N.\u0275fac=function(e){return new(e||_N)(kc(ep),kc(Xg),kc(bN),kc(Yd),kc(Vm,8))},_N.\u0275cmp=Je({type:_N,selectors:[["ng-dropdown-panel"]],viewQuery:function(e,t){if(1&e&&(Bf(hR,3,Yd),Bf(dR,3,Yd),Bf(pR,3,Yd)),2&e){let e;jf(e=zf())&&(t.contentElementRef=e.first),jf(e=zf())&&(t.scrollElementRef=e.first),jf(e=zf())&&(t.paddingElementRef=e.first)}},hostBindings:function(e,t){1&e&&jc("mousedown",function(e){return t.handleMousedown(e)})},inputs:{items:"items",position:"position",virtualScroll:"virtualScroll",filterValue:"filterValue",markedItem:"markedItem",appendTo:"appendTo",bufferAmount:"bufferAmount",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[_t],ngContentSelectors:yR,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(e,t){1&e&&(Wc(),Gl(0,gR,2,4,"div",0),Oc(1,"div",1,2),Pc(3,"div",null,3),Oc(5,"div",null,4),Kc(7),Ic(),Ic(),Gl(8,mR,2,4,"div",5)),2&e&&(Tc("ngIf",t.headerTemplate),Lo(3),yu("total-padding",t.virtualScroll),Lo(2),yu("scrollable-content",t.virtualScroll&&t.items.length),Lo(3),Tc("ngIf",t.footerTemplate))},directives:[sb,pb],encapsulation:2,changeDetection:0}),_N.ctorParameters=()=>[{type:ep},{type:Xg},{type:bN},{type:Yd},{type:void 0,decorators:[{type:di},{type:hi,args:[Vm]}]}],_N.propDecorators={items:[{type:Cg}],markedItem:[{type:Cg}],position:[{type:Cg}],appendTo:[{type:Cg}],bufferAmount:[{type:Cg}],virtualScroll:[{type:Cg}],headerTemplate:[{type:Cg}],footerTemplate:[{type:Cg}],filterValue:[{type:Cg}],update:[{type:xg}],scroll:[{type:xg}],scrollToEnd:[{type:xg}],outsideClick:[{type:xg}],contentElementRef:[{type:Is,args:["content",{read:Yd,static:!0}]}],scrollElementRef:[{type:Is,args:["scroll",{read:Yd,static:!0}]}],paddingElementRef:[{type:Is,args:["padding",{read:Yd,static:!0}]}],handleMousedown:[{type:Sg,args:["mousedown",["$event"]]}]};class wN{constructor(e){this.elementRef=e,this.stateChange$=new k,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=this._isDisabled(e)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(e){return null!=e&&"false"!=`${e}`}}wN.\u0275fac=function(e){return new(e||wN)(kc(Yd))},wN.\u0275cmp=Je({type:wN,selectors:[["ng-option"]],inputs:{disabled:"disabled",value:"value"},features:[_t],ngContentSelectors:yR,decls:1,vars:0,template:function(e,t){1&e&&(Wc(),Kc(0))},encapsulation:2,changeDetection:0}),wN.ctorParameters=()=>[{type:Yd}],wN.propDecorators={value:[{type:Cg}],disabled:[{type:Cg}]};class CN{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}CN.\u0275fac=function(e){return new(e||CN)},CN.\u0275prov=ve({factory:function(){return new CN},token:CN,providedIn:"root"});const xN=new ks("ng-select-selection-model");class kN{constructor(e,t,n,s,i,r,o){this.classes=e,this.autoFocus=t,this._cd=r,this._console=o,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=e=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=ne
3w Df,this.focusEvent=new Df,this.changeEvent=new Df,this.openEvent=new Df,this.closeEvent=new Df,this.searchEvent=new Df,this.clearEvent=new Df,this.addEvent=new Df,this.removeEvent=new Df,this.scroll=new Df,this.scrollToEnd=new Df,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=pN(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new k,this._keyPress$=new k,this._onChange=e=>{},this._onTouched=()=>{},this.clearItem=e=>{const t=this.selectedItems.find(t=>t.value===e);this.unselect(t)},this.trackByOption=(e,t)=>this.trackByFn?this.trackByFn(t.value):t,this._mergeGlobalConfig(n),this.itemsList=new mN(this,s()),this.element=i.nativeElement}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e}get compareWith(){return this._compareWith}set compareWith(e){if(null!=e&&!XR(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return YR(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=YR(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),YR(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(yN[e.which]){if(!1===this.keyDownFn(e))return;this.handleKeyCode(e)}else e.key&&1===e.key.length&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){switch(e.which){case yN.ArrowDown:this._handleArrowDown(e);break;case yN.ArrowUp:this._handleArrowUp(e);break;case yN.Space:this._handleSpace(e);break;case yN.Enter:this._handleEnter(e);break;case yN.Tab:this._handleTab(e);break;case yN.Esc:this.close(),e.preventDefault();break;case yN.Backspace:this._handleBackspace()}}handleMousedown(e){const t=e.target;"INPUT"!==t.tagName&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")?this.handleClearClick():t.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!this.itemsList.noItemsToSelect)&&(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){this.isOpen&&!this._manualOpen&&(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.multiple&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e))}selectTag(){let e;e=XR(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const t=e=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(e,null):this.itemsList.addItem(e);e instanceof Promise?e.then(e=>this.select(t(e))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}
3get showAddTag(){if(!this._validTerm)return!1;const e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){const e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this.searchWhileComposing||this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(e=>e.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),this.isOpen||this.disabled||this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){const t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=YR(t)?!JR(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&YR(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const e=e=>{this.items=e.map(e=>({$ngOptionValue:e.value,$ngOptionLabel:e.elementRef.nativeElement.innerHTML,disabled:e.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{const e=W(this.ngOptions.changes,this._destroy$);W(...this.ngOptions.map(e=>e.stateChange$)).pipe(AT(e)).subscribe(e=>{const t=this.itemsList.findItem(e.value);t.disabled=e.disabled,t.label=e.label||t.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(rx(this.ngOptions),AT(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!YR(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;const t=e=>!(!YR(this.compareWith)&&JR(e)&&this.bindValue)||(this._console.warn(`Setting object(${JSON.stringify(e)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1);return this.multiple?Array.isArray(e)?e.every(e=>t(e)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;const t=e=>{let t=this.itemsList.findItem(e);if(t)this.itemsList.select(t);else{const n=JR(e),s=!n&&!this.bindValue;n||s?this.itemsList.select(this.itemsList.mapItem(e,null)):this.bindValue&&(t={[this.bindLabel]:null,[this.bindValue]:e},this.itemsList.select(this.itemsList.mapItem(t,null)))}};this.multiple?e.forEach(e=>t(e)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(AT(this._destroy$),kx(e=>this._pressedKeys.push(e)),function(e,t=sE){return n=>n.lift(new tR(e,t))}(200),Uv(()=>this._pressedKeys.length>0),D(()=>this._pressedKeys.join(""))).subscribe(e=>{const t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){const e=this.searchInput.nativeElement,t=Object.assign({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(const n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){const e=[];for(const n of this.selectedItems)if(this.bindValue){let t=null;if(n.children){const e=this.groupValue?this.bindValue:this.groupBy;t=n.value[e||this.groupBy]}else t=this.itemsList.resolveNested(n.value,this.bindValue);e.push(t)}else e.push(n.value);const t=this.selectedItems.map(e=>e.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(YR(e[0])?e[0]:null),this.changeEvent.emit(t[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){(!1!==this.isOpen||this.addTag)&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close())}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){const t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){!this.searchTerm&&this.clearable&&this.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=YR(this.virtualScroll)?this.virtualScroll:!!YR(e.disableVirtualScroll)&&!e.disableVirtualScroll,this.openOnEnter=YR(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.a
3ppendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}}kN.\u0275fac=function(e){return new(e||kN)(gs("class"),gs("autofocus"),kc(CN),kc(xN),kc(Yd),kc(xp),kc(dN))},kN.\u0275cmp=Je({type:kN,selectors:[["ng-select"]],contentQueries:function(e,t,n){if(1&e&&($f(n,tN,1,Ip),$f(n,nN,1,Ip),$f(n,sN,1,Ip),$f(n,iN,1,Ip),$f(n,rN,1,Ip),$f(n,oN,1,Ip),$f(n,aN,1,Ip),$f(n,lN,1,Ip),$f(n,cN,1,Ip),$f(n,uN,1,Ip),$f(n,hN,1,Ip),$f(n,wN,1)),2&e){let e;jf(e=zf())&&(t.optionTemplate=e.first),jf(e=zf())&&(t.optgroupTemplate=e.first),jf(e=zf())&&(t.labelTemplate=e.first),jf(e=zf())&&(t.multiLabelTemplate=e.first),jf(e=zf())&&(t.headerTemplate=e.first),jf(e=zf())&&(t.footerTemplate=e.first),jf(e=zf())&&(t.notFoundTemplate=e.first),jf(e=zf())&&(t.typeToSearchTemplate=e.first),jf(e=zf())&&(t.loadingTextTemplate=e.first),jf(e=zf())&&(t.tagTemplate=e.first),jf(e=zf())&&(t.loadingSpinnerTemplate=e.first),jf(e=zf())&&(t.ngOptions=e)}},viewQuery:function(e,t){if(1&e&&(Bf(_N,1),Bf(bR,3)),2&e){let e;jf(e=zf())&&(t.dropdownPanel=e.first),jf(e=zf())&&(t.searchInput=e.first)}},hostVars:20,hostBindings:function(e,t){1&e&&jc("keydown",function(e){return t.handleKeyDown(e)}),2&e&&yu("ng-select",t.useDefaultClass)("ng-select-single",!t.multiple)("ng-select-multiple",t.multiple)("ng-select-taggable",t.addTag)("ng-select-searchable",t.searchable)("ng-select-clearable",t.clearable)("ng-select-opened",t.isOpen)("ng-select-disabled",t.disabled)("ng-select-filtered",t.filtered)("ng-select-typeahead",t.typeahead)},inputs:{markFirst:"markFirst",dropdownPosition:"dropdownPosition",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",bufferAmount:"bufferAmount",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",bindLabel:"bindLabel",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",virtualScroll:"virtualScroll",openOnEnter:"openOnEnter",appendTo:"appendTo",bindValue:"bindValue",appearance:"appearance",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",tabIndex:"tabIndex",typeahead:"typeahead"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[zd([{provide:A_,useExisting:ae(()=>kN),multi:!0},bN]),_t],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(e,t){if(1&e){const e=Rc();Oc(0,"div",0),jc("mousedown",function(e){return t.handleMousedown(e)}),Oc(1,"div",1),Oc(2,"div",2),Mu(3),Ic(),Gl(4,xR,2,2,"ng-container",3),Gl(5,TR,1,5,void 0,3),Oc(6,"div",4),Oc(7,"input",5,6),jc("input",function(){Yt(e);const n=Zl(8);return t.filter(n.value)})("compositionstart",function(){return t.onCompositionStart()})("compositionend",function(){Yt(e);const n=Zl(8);return t.onCompositionEnd(n.value)})("focus",function(e){return t.onInputFocus(e)})("blur",function(e){return t.onInputBlur(e)})("change",function(e){return e.stopPropagation()}),Ic(),Ic(),Ic(),Gl(9,OR,4,1,"ng-container",3),Gl(10,IR,3,1,"span",7),Oc(11,"span",8),Pc(12,"span",9),Ic(),Ic(),Gl(13,KR,7,19,"ng-dropdown-panel",10)}2&e&&(yu("ng-appearance-outline","outline"===t.appearance)("ng-has-value",t.hasValue),Lo(3),Fu(t.placeholder),Lo(1),Tc("ngIf",(!t.multiLabelTemplate||!t.multiple)&&t.selectedItems.length>0),Lo(1),Tc("ngIf",t.multiple&&t.multiLabelTemplate&&t.selectedValues.length>0),Lo(1),Ol("aria-expanded",t.isOpen)("aria-owns",t.isOpen?t.dropdownId:null),Lo(1),Tc("readOnly",!t.searchable||t.itemsList.maxItemsSelected)("disabled",t.disabled)("value",t.searchTerm?t.searchTerm:""),Ol("id",t.labelForId)("tabindex",t.tabIndex)("aria-activedescendant",t.isOpen?null==t.itemsList||null==t.itemsList.markedItem?null:t.itemsList.markedItem.htmlId:null)("aria-controls",t.isOpen?t.dropdownId:null),Lo(2),Tc("ngIf",t.loading),Lo(1),Tc("ngIf",t.showClear()),Lo(3),Tc("ngIf",t.isOpen))},directives:[sb,tb,pb,eN,_N,Jy],styles:['.ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}
3.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}'],encapsulation:2,changeDetection:0}),kN.ctorParameters=()=>[{type:String,decorators:[{type:xs,args:["class"]}]},{type:void 0,decorators:[{type:xs,args:["autofocus"]}]},{type:CN},{type:void 0,decorators:[{type:hi,args:[xN]}]}
3,{type:Yd},{type:xp},{type:dN}],kN.propDecorators={bindLabel:[{type:Cg}],bindValue:[{type:Cg}],markFirst:[{type:Cg}],placeholder:[{type:Cg}],notFoundText:[{type:Cg}],typeToSearchText:[{type:Cg}],addTagText:[{type:Cg}],loadingText:[{type:Cg}],clearAllText:[{type:Cg}],appearance:[{type:Cg}],dropdownPosition:[{type:Cg}],appendTo:[{type:Cg}],loading:[{type:Cg}],closeOnSelect:[{type:Cg}],hideSelected:[{type:Cg}],selectOnTab:[{type:Cg}],openOnEnter:[{type:Cg}],maxSelectedItems:[{type:Cg}],groupBy:[{type:Cg}],groupValue:[{type:Cg}],bufferAmount:[{type:Cg}],virtualScroll:[{type:Cg}],selectableGroup:[{type:Cg}],selectableGroupAsModel:[{type:Cg}],searchFn:[{type:Cg}],trackByFn:[{type:Cg}],clearOnBackspace:[{type:Cg}],labelForId:[{type:Cg}],inputAttrs:[{type:Cg}],tabIndex:[{type:Cg}],readonly:[{type:Cg}],searchWhileComposing:[{type:Cg}],minTermLength:[{type:Cg}],editableSearchTerm:[{type:Cg}],keyDownFn:[{type:Cg}],typeahead:[{type:Cg},{type:kg,args:["class.ng-select-typeahead"]}],multiple:[{type:Cg},{type:kg,args:["class.ng-select-multiple"]}],addTag:[{type:Cg},{type:kg,args:["class.ng-select-taggable"]}],searchable:[{type:Cg},{type:kg,args:["class.ng-select-searchable"]}],clearable:[{type:Cg},{type:kg,args:["class.ng-select-clearable"]}],isOpen:[{type:Cg},{type:kg,args:["class.ng-select-opened"]}],items:[{type:Cg}],compareWith:[{type:Cg}],clearSearchOnAdd:[{type:Cg}],blurEvent:[{type:xg,args:["blur"]}],focusEvent:[{type:xg,args:["focus"]}],changeEvent:[{type:xg,args:["change"]}],openEvent:[{type:xg,args:["open"]}],closeEvent:[{type:xg,args:["close"]}],searchEvent:[{type:xg,args:["search"]}],clearEvent:[{type:xg,args:["clear"]}],addEvent:[{type:xg,args:["add"]}],removeEvent:[{type:xg,args:["remove"]}],scroll:[{type:xg,args:["scroll"]}],scrollToEnd:[{type:xg,args:["scrollToEnd"]}],optionTemplate:[{type:Es,args:[tN,{read:Ip}]}],optgroupTemplate:[{type:Es,args:[nN,{read:Ip}]}],labelTemplate:[{type:Es,args:[sN,{read:Ip}]}],multiLabelTemplate:[{type:Es,args:[iN,{read:Ip}]}],headerTemplate:[{type:Es,args:[rN,{read:Ip}]}],footerTemplate:[{type:Es,args:[oN,{read:Ip}]}],notFoundTemplate:[{type:Es,args:[aN,{read:Ip}]}],typeToSearchTemplate:[{type:Es,args:[lN,{read:Ip}]}],loadingTextTemplate:[{type:Es,args:[cN,{read:Ip}]}],tagTemplate:[{type:Es,args:[uN,{read:Ip}]}],loadingSpinnerTemplate:[{type:Es,args:[hN,{read:Ip}]}],dropdownPanel:[{type:Is,args:[ae(()=>_N)]}],searchInput:[{type:Is,args:["searchInput",{static:!0}]}],ngOptions:[{type:Ds,args:[wN,{descendants:!0}]}],disabled:[{type:kg,args:["class.ng-select-disabled"]}],filtered:[{type:kg,args:["class.ng-select-filtered"]}],handleKeyDown:[{type:Sg,args:["keydown",["$event"]]}]};class SN{constructor(){this._selected=[]}get value(){return this._selected}select(e,t,n){if(e.selected=!0,(!e.children||!t&&n)&&this._selected.push(e),t)if(e.parent){const t=e.parent.children.length,n=e.parent.children.filter(e=>e.selected).length;e.parent.selected=t===n}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),n&&this._activeChildren(e)?this._selected=[...this._selected.filter(t=>t.parent!==e),e]:this._selected=[...this._selected,...e.children.filter(e=>!e.disabled)])}unselect(e,t){if(this._selected=this._selected.filter(t=>t!==e),e.selected=!1,t)if(e.parent&&e.parent.selected){const t=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),this._selected.push(...t.filter(t=>t!==e&&!t.disabled)),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}clear(e){this._selected=e?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(e,t){for(const n of e)n.disabled||(n.selected=t)}_removeChildren(e){this._selected=[...this._selected.filter(t=>t.parent!==e),...e.children.filter(t=>t.parent===e&&t.disabled&&t.selected)]}_removeParent(e){this._selected=this._selected.filter(t=>t!==e)}_activeChildren(e){return e.children.every(e=>!e.disabled||e.selected)}}const TN=function(){return new SN};class DN{}DN.\u0275fac=function(e){return new(e||DN)},DN.\u0275mod=st({type:DN}),DN.\u0275inj=_e({providers:[{provide:xN,useValue:TN}],imports:[[Rb]]});const EN=new ks("AppEnv"),ON=new ks("AppConfig");class IN{constructor(e,t){this.environment=e,this.http=t}load(){const e=`assets/config/config.${this.environment.name}.json`;return new Promise((t,n)=>{this.http.get(e,{observe:"response"}).toPromise().then(e=>{IN.settings=e.body,t()},t=>{n(`Could not load file '${e}': ${JSON.stringify(t)}`)})})}getSettings(){return IN.settings}}IN.settings=null,IN.\u0275fac=function(e){return new(e||IN)(ri(EN),ri(l_))},IN.\u0275prov=ve({token:IN,factory:IN.\u0275fac,providedIn:"root"});class PN{constructor(e){this.http=e,this.apiServer=IN.settings.apiServer}postContactLetter(e){const t=this.apiServer.coreServer+"contacts/letter/";return this.http.post(t,e)}verifyRecaptcha(e){const t=this.apiServer.coreServer+"contacts/verifycaptcha";return this.http.post(t,e)}}PN.\u0275fac=function(e){return new(e||PN)(ri(l_))},PN.\u0275prov=ve({token:PN,factory:PN.\u0275fac});class AN{constructor(e,t){this.http=e,this.router=t,this.apiServer=IN.settings.apiServer,this.cdnLocation=IN.settings.apiServer.imageServer,this.app=IN.settings.app,this.linkSlugs=new jC({termsSlug:"default",basicSlug:"defaultBasic",advancedSlug:"defaultAdvanced"}),this.currentJson=this.linkSlugs.asObservable()}getPages(){return this.http.get(this.apiServer.coreServer+"pages/"+this.app.id)}getPageBySlug(e){return this.http.get(this.apiServer.coreServer+"page/"+this.app.id+"/"+e).pipe(D(e=>(e.content&&(e.content=e.content.replace(new RegExp("{{cdnLocation}}","g"),this.cdnLocation)),e)))}getPagesBySlug(e){return this.http.get(this.apiServer.coreServer+"pages/"+this.app.id+"/"+e).pipe(D(e=>{for(const t of e)t.content&&(t.content=t.content.replace(new RegExp("{{cdnLocation}}","g"),this.cdnLocation));return e}))}getPageByModuleLanguage(e,t){const n="page_main_terms"===e?5:this.app.id;return this.http.get(this.apiServer.coreServer+"page/"+n+"/"+e+"/"+t).pipe(D(e=>(e.content&&(e.content=e.content.replace(new RegExp("{{cdnLocation}}","g"),this.cdnLocation)),e)))}getSlugByParentAppAndModule(e,t){return this.http.get(this.apiServer.coreServer+"page/slugs/"+t+"/"+e)}changeSlug(e){this.linkSlugs.next(e)}}AN.\u0275fac=function(e){return new(e||AN)(ri(l_),ri(iT))},AN.\u0275prov=ve({token:AN,factory:AN.\u0275fac,providedIn:"root"});class MN{constructor(){this.routeMap={},this.toast={error:{est:"Viga",eng:"Error",rus:"O\u0448\u0438\u0431\u043a\u0430"},loaded:{est:"Laetud",eng:"Loaded",rus:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430"},notLoaded:{est:"Laadimine eba\xf5nnestus",eng:"Failed to load",rus:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438"},added:{est:"Lisatud",eng:"Added",rus:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e"},notAdded:{est:"Lisamine eba\xf5nnestus",eng:"Failed to add",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c"}
3,created:{est:"Loodud",eng:"Created",rus:"C\u043e\u0437\u0434\u0430\u043d\u043e"},notCreated:{est:"Loomine eba\xf5nnestus",eng:"Failed to create",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c"},changed:{est:"Muudetud",eng:"Changed",rus:"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043e"},notChanged:{est:"Muutmine eba\xf5nnestus",eng:"Failed to change",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c"},shared:{est:"Toitude jagamine \xf5nnestus",eng:"Food sharing was successful",rus:"\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0435\u0434\u043e\u0439"},notShared:{est:"Toitude jagamine eba\xf5nnestus",eng:"Failed to share foods",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0435\u0434\u043e\u0439"},sharedMenu:{est:"Men\xfc\xfcde jagamine \xf5nnestus",eng:"Menu sharing was successful",rus:"\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0435\u043d\u044e"},notSharedMenu:{est:"Men\xfc\xfcde jagamine eba\xf5nnestus",eng:"Failed to share menus",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0435\u043d\u044e"},deleted:{est:"Kustutatud",eng:"Deleted",rus:"\u0423\u0434\u0430\u043b\u0435\u043d\u043e"},userNotFound:{est:"Kasutajat ei leitud",eng:"User not found",rus:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d"},noIngredients:{est:"Koostisosad puuduvad",eng:"No ingredients",rus:"\u041d\u0435\u0442 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432"},noMenus:{est:"Men\xfc\xfcd puuduvad",eng:"No menus",rus:"\u041d\u0435\u0442 \u043c\u0435\u043d\u044e"},noDate:{est:"Palun vali kuup\xe4ev",eng:"Please select a date",rus:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443"},activityTimeExceeded:{est:"Tundide arv p\xe4eva kohta on \xfcletatud",eng:"Number of hours in a day is exceeded",rus:"\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0430\u0441\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c"},foodAccepted:{est:"Toit vastu v\xf5etud",eng:"Food accepted",rus:"\u0415\u0434\u0430 \u043f\u0440\u0438\u043d\u044f\u0442\u0430"},foodRejected:{est:"Toit tagasi l\xfckatud",eng:"Food rejected",rus:"\u041f\u0438\u0449\u0430 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0430"},recommended:{est:"Toidud soovitatud",eng:"Foods recommended",rus:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0435\u0434\u0430"},menuRecommended:{est:"Men\xfc\xfcd soovitatud",eng:"Menus recommended",rus:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043c\u0435\u043d\u044e"},noRecipes:{est:"Retseptid puuduvad",eng:"No recipes",rus:"\u0420\u0435\u0446\u0435\u043f\u0442\u043e\u0432 \u043d\u0435\u0442"},noRecipeIngredients:{est:"Lisa retsepti koostisosad, need puuduvad",eng:"Add ingredients to the recipe,  these are missing",rus:"\u0414\u043e\u0431\u0430\u0301\u0432\u044c \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u044b \u0432 \u0440\u0435\u0446\u0435\u043f\u0442. \u0420\u0435\u0446\u0435\u043f\u0442 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432"},duplicateMealRecipe:{est:"Toidukorras ei saa toitu olla rohkem kui \xfcks kord, palun eemalda \xfcleliigsed",eng:"Recipes in meals cannot occur more than once, please remove excess recipes",rus:"\u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u0446\u0435\u043f\u0442\u0430 \u043d\u0430 \u0435\u0434\u0443, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u043b\u0438\u0448\u043d\u0438\u0435"},missingValues:{est:"M\xe4rgistatud v\xe4ljad on t\xe4itmata",eng:"Marked fields are not filled",rus:"\u041e\u0442\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b"},missingAutomaticEmailTemplate:{est:"Automaatse e-kirja v\xe4ljad on t\xe4itmata",eng:"Automatic email response fields are not filled",rus:"\u041f\u043e\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u043f\u043e\u0447\u0442\u0443 \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b"},incorrectValues:{est:"V\xe4ljad on valesti t\xe4idetud",eng:"Incorrect values in fields",rus:"\u041f\u043e\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043d\u0435\u0432\u0435\u0440\u043d\u043e"},sumCantBeSmallerThan:{est:"Kogusumma ei saa olla v\xe4iksem kui",eng:"Sum total can't be smaller than",rus:"\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435"},subComponentSums:{est:"alamkomponentide arvutuslik summa!",eng:"subcomponents sums!",rus:"\u0441\u0443\u043c\u043c\u0430 \u043f\u043e\u0434\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432!"},emailSent:{est:"E-kiri saadetud",eng:"Email sent",rus:"\u041f\u0438\u0441\u044c\u043c\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e"},invalidEmail:{est:"Kontrolli oma e-posti aadressi kirjapilti, aadress on vigane",eng:"Check the spelling of your email address, email address is invali
3d",rus:"\u041f\u0440\u043e\u0432\u0435\u0301\u0440\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b, \u0430\u0434\u0440\u0435\u0441 \u043d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u0435\u043d"},minLettersIngredients:{est:"Retsepti koostisosadest otsimiseks sisesta v\xe4hemalt 3 t\xe4hte",eng:"At least 3 letters are required to search within a recipes ingredients",rus:"\u0412\u0432\u0435\u0434\u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 3 \u0431\u0443\u043a\u0432 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442\u043e\u0432 \u0440\u0435\u0446\u0435\u043f\u0442\u0430"},userDeleted:{est:"Kasutaja kustutamine \xf5nnestus",eng:"User deletion was successful",rus:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0434\u0430\u043b\u0451\u043d"},userDeletedError:{est:"Kasutaja kustutamisel tekkis viga",eng:"An error occurred while deleting the user",rus:"\u041f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430"},dataSuccess:{est:"Vastused saadetud",eng:"Answers sent",rus:"\u041e\u0442\u0432\u0435\u0442\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b"},dataFailed:{est:"S\xfcsteemiviga! Kirjuta kasutajatoele",eng:"System error. Contact helpdesk",rus:"\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041d\u0430\u043f\u0438\u0448\u0438 \u0432 \u0441\u043b\u0443\u0436\u0431\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438"},notCSVFile:{est:"Viga! Importimiseks tuleb kasutada CSV failit\xfc\xfcpi",eng:"Error! The file isn't valid CSV type",rus:"\u041e\u0448\u0438\u0431\u043a\u0430! \u0424\u0430\u0439\u043b \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u043c CSV"},CSVFileFieldMismatch:{est:"Hoiatus! Tabel v\xf5ib sisaldada vigaseid v\xf5i t\xfchje veerge/ridu!",eng:"Warning! The imported table may contain empty or incorrect columns/rows!",rus:"\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435! \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u0435 \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b/\u0441\u0442\u0440\u043e\u043a\u0438!"},CSVFileQuotes:{est:"Hoiatus! Leiti jutum\xe4rke v\xf5i \xfclakomasid, mis v\xf5ivad tekitada andmetes vigu",eng:"Warning! Quotes or apostrophes are found that may affect the accuracy of the data",rus:"\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041d\u0430\u0439\u0434\u0435\u043d\u044b \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438\u043b\u0438 \u0432\u0435\u0440\u0445\u043d\u0438\u0435 \u0437\u0430\u043f\u044f\u0442\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445"},CSVFileDelimiter:{est:"Viga! V\xe4\xe4rtuste eraldaja peaks olema semikoolon",eng:"Error! Incorrect delimiter, expected semicolon",rus:"\u041e\u0448\u0438\u0431\u043a\u0430! \u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u0430 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439"},addedRows:{est:" rida salvestatud.",eng:" rows saved.",rus:" \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b."}
3,foundRows:{est:"Dokumendist leitud ridu: ",eng:"Rows found in the file: ",rus:"\u0421\u0442\u0440\u043e\u043a\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435: "},incorrectFileFormat:{est:"Viga! Fail on vales formaadis",eng:"Error! The file has an invalid format",rus:"\u041e\u0448\u0438\u0431\u043a\u0430! \u0424\u0430\u0439\u043b \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442"},inProgress:{est:"Alustati \xfcleslaadimist",eng:"Upload has begun",rus:"\u041d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u0433\u0433\u0440\u0443\u0437\u043a\u0430"},uploadFailed:{est:"Faili \xfcleslaadimisel tekkis viga!",eng:"Upload failed",rus:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c"},requestSent:{est:"Saadetud!",eng:"Sent!",rus:"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e!"},requestFailed:{est:"S\xfcsteemiviga! Kirjuta kasutajatoele",eng:"System error. Contact helpdesk",rus:"\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041d\u0430\u043f\u0438\u0448\u0438 \u0432 \u0441\u043b\u0443\u0436\u0431\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438"},userAlreadyHasOrganization:{est:"Kasutaja on juba teise ettev\xf5ttega seotud, selle kasutajaga uut kontot luua ei saa",eng:"User is already associated with another organization",rus:"User is already associated with another organization rus"},formHasErrors:{est:"Vormil esineb vigu!",eng:"Form has errors!",rus:"Form has errors! rus"},organizationRegistered:{est:"Organisatsioon loodud",eng:"Organization created",rus:"Organization created rus"},regNoUsed:{est:"Antud registrikoodiga organisatsioon on juba varasemalt loodud, uut kontot sama koodiga luua ei saa",eng:"Organization with requested register code already exists",rus:"Organization with requested register code already exists rus"},maxFileSizeLimit:{est:"Fail on liiga suur!",eng:"File is too large",rus:"\u0444\u0430\u0439\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439"},userLoginSuccess:{est:"Olete edukalt sisse logitud",eng:"Login successful",rus:"\u0423\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0432\u0445\u043e\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443"},menuAccepted:{est:"Men\xfc\xfc vastu v\xf5etud",eng:"Menu accepted",rus:"\u041c\u0435\u043d\u044e \u043f\u0440\u0438\u043d\u044f\u0442\u043e"},menuRejected:{est:"Men\xfc\xfc tagasi l\xfckatud",eng:"Menu rejected",rus:"\u041c\u0435\u043d\u044e \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0430"},recipeRecursion:{est:"Retsepti koostisosaks ei saa lisada sama retsepti, mis on hetkel muutmisel",eng:"You cannot add the editable recipe itself as the recipe ingredient",rus:"\u0422\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0448\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 \u0440\u0435\u0446\u0435\u043f\u0442, \u0447\u0442\u043e \u0438 \u0438\u043d\u0433\u0440\u0435\u0434\u0438\u0435\u043d\u0442 \u0440\u0435\u0446\u0435\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f"},connectionError:{est:"\xdchendus serveriga puudub! Lehe funktsionaalsus v\xf5ib olla h\xe4iritud.",eng:"Connection to the server has been lost! Page functionality may be impaired.",rus:"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443! \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430."},portionModalInvalidPieces:{est:"Viga! Portsjon t\xe4itmata",eng:"Error! Portion blank",rus:"\u041e\u0448\u0438\u0431\u043a\u0430! \u041f\u043e\u0440\u0446\u0438\u044f \u043d\u0435\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f"},portionModalInvalidPortionSize:{est:"Viga! Kogus t\xe4itmata",eng:"Viga! Portion amount blank",rus:"\u041e\u0448\u0438\u0431\u043a\u0430! \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0434\u0430\u044e\u0449\u0438\u0445\u0441\u044f"},portionModalInvalidSupplementUnit:{est:"Viga! Toidulisandi \xfchik t\xe4itmata",eng:"Error! Supplement unit blank",rus:"\u041e\u0448\u0438\u0431\u043a\u0430!"},menuTooLarge:{est:"Palun v\xf5ta men\xfc\xfcd \xfchekaupa vastu! Valitud men\xfc\xfcd sisaldavad liiga palju p\xe4evi ja/v\xf5i retsepte.",eng:"Please accept menus one by one! 
3Selected menus contain too many days and/or recipes.",rus:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0439\u0442\u0435 \u043c\u0435\u043d\u044e \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443! \u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u043d\u044e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0434\u043d\u0435\u0439 \u0438/\u0438\u043b\u0438 \u0440\u0435\u0446\u0435\u043f\u0442\u043e\u0432."},foodNotFound:{est:"Toitu ei leitud. Otsi toitu nimetuse j\xe4rgi.",eng:"Food not found. Search by name",rus:"\u0415\u0434\u044b \u043d\u0435 \u043d\u0430\u0448\u043b\u0438. \u041f\u043e\u0438\u0441\u043a \u0435\u0434\u044b \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e"}},this.buttons={selectFile:{est:"Vali fail",eng:"Select file",rus:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b"},showAdditionalGroups:{est:"N\xe4ita lisagruppe",eng:"Show additional groups",rus:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b"},infoOk:{est:"Sain aru",eng:"Got it",rus:"\u041f\u043e\u043d\u044f\u0442\u043d\u043e"},showAll:{est:"N\xe4ita k\xf5iki",eng:"Show all",rus:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}},this.modalHeaders={uiUpdates:{est:"Viimased uuendused",eng:"Latest updates",rus:"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f"}},this.topBarNotification={databaseUpdate:{short:{est:"Teostame alates 26. veebruarist NutriData andmebaasi versiooni uuendust. Sellel ajal ei saa programmi kasutada.",eng:"Please be advised that we will be updating the NutriData database version starting February 26th. <br>During this period, the program will be unavailable.",rus:"\u0414\u043e\u0432\u043e\u0434\u0438\u043c \u0434\u043e \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0441 26 \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 NutriData. <br>\u0412 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430."},detailsLink:{est:"Loe rohkem.",eng:"For more details, please continue reading.",rus:"\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0439\u0442\u0435 \u0447\u0442\u0435\u043d\u0438\u0435."},details:{est:'<p class="text-center">Teostame 26. veebruaril NutriData andmebaasi versiooni uuendust. Sellel ajal ei saa programmi kasutada.</p><p class="text-center">Alustame hooldust\xf6id hommikul kell 10:00. Ligip\xe4\xe4s programmile taastub hiljemalt 27. veebruaril kell 12:00.</p><p class="text-center">Probleemide korral v\xf5tke meiega \xfchendust e-kirja ([email protected]) v\xf5i kl 10-16 telefoni (6593855) teel.</p><p class="text-center">Vabandame kaasnevate ebamugavuste p\xe4rast!</p>',eng:'<p class="text-center">Please be advised that we will be updating the NutriData database version starting February 26th. During this period, the program will be unavailable.</p><p class="text-center">Maintenance is scheduled to begin at 10:00 AM. Access to the program is expected to be restored by February 27th at 12:00 PM at the latest.</p><p class="text-center">Should you encounter any issues, please contact us via e-mail at [email protected] or by phone at 6593855 between 10 AM and 4 PM.</p><p class="text-center">We apologize for any inconvenience this may cause.</p>',rus:'<p class="text-center">\u041c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 NutriData \u0441 26 \u0444\u0435\u0432\u0440\u0430\u043b\u044f. \u0412 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430.</p><p class="text-center">\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0432 10:00. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0435 \u043f\u043e\u0437\u0434\u043d\u0435\u0435 12:00 27 \u0444\u0435\u0432\u0440\u0430\u043b\u044f.</p><p class="text-center">\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438 \u043f\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u0435 ([email protected]) \u0438\u043b\u0438 \u043f\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 \u0441 10:00 \u0434\u043e 16:00 (6593855).</p><p class="text-center">
3\u041f\u0440\u0438\u043d\u043e\u0441\u0438\u043c \u0438\u0437\u0432\u0438\u043d\u0435\u043d\u0438\u044f \u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430.</p>'}}},this.topBarAuth={login:{est:"Logi sisse",eng:"Log in",rus:"\u0412\u043e\u0439\u0442\u0438"},register:{est:"Loo konto",eng:"Create account",rus:"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442"}},this.topBarLanguage={button:{est:"EST",eng:"ENG",rus:"RUS"},menu:{est:"Eesti",eng:"English",rus:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"}},this.topBarApplicationSelector={chooseWebsite:{est:"Vali veebileht",eng:"Choose website",rus:"\u0412\u044b\u0431\u0435\u0440\u0438 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442"}},this.topBarUserMenu={profile:{est:"Minu profiil",eng:"My profile",rus:"\u041c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c"},instructions:{est:"Kasutusjuhend",eng:"User guide",rus:"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"},terms:{est:"Kasutus- ja privaatsustingimused",eng:"Terms of use and privacy terms",rus:"\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438"},updates:{est:"Programmi uuendused",eng:"Program updates",rus:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b"},logout:{est:"Logi v\xe4lja",eng:"Log out",rus:"\u0412\u044b\u0439\u0442\u0438"}},this.calculator={graph:{bmi:{est:"KMI",eng:"BMI",rus:"\u0418\u041c\u0422"},severeUnderWeight:{est:"Tugev alakaal",eng:"Severely underweight",rus:"C\u0438\u043b\u044c\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u0432\u0435\u0441"},underWeight:{est:"Alakaal",eng:"Underweight",rus:"\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u0432\u0435\u0441"},normalWeight:{est:"Normaalkaal",eng:"Normal",rus:"\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0441"},median:{est:"Mediaan",eng:"Median",rus:"\u041c\u0435\u0434\u0438\u0430\u043d\u0430"},overWeight:{est:"\xdclekaal",eng:"Overweight",rus:"\u0418\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0439 \u0432\u0435\u0441"},obesity:{est:"Rasvumine",eng:"Obesity",rus:"O\u0436\u0438\u0440\u0435\u043d\u0438\u0435"},bodyWeight:{est:"Kehakaal",eng:"Bodyweight",rus:"\u041c\u0430\u0441\u0441\u0430 \u0442\u0435\u043b\u0430"},bottomLabel:{est:"Vanus (aastad, kuud)",eng:"Age (years, months)",rus:"\u0412\u043e\u0437\u0440\u0430\u0441\u0442 (\u043b\u0435\u0442, \u043c\u0435\u0441\u044f\u0446\u0435\u0432)"},result:{est:"Tulemus",eng:"Result",rus:"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442"}},options:{trimester:{1:{est:"1. trimester",eng:"1. trimester",rus:"1. \u0442\u0440\u0438\u043c\u0435\u0441\u0442\u0440"},2:{est:"2. trimester",eng:"2. trimester",rus:"2. \u0442\u0440\u0438\u043c\u0435\u0441\u0442\u0440"},3:{est:"3. trimester",eng:"3. trimester",rus:"3. \u0442\u0440\u0438\u043c\u0435\u0441\u0442\u0440"}},breastfeeding:{1:{est:"Osaline toitmine",eng:"Partial feeding",rus:"\u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u043a\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435"},2:{est:"Ainus toitmisvahend",eng:"Only breastfeeding",rus:"\u0422\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u0434\u044c\u044e"}},childActivity:{inactive:{est:"Passiivne",eng:"Passive",rus:"\u041f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u0439"},low:{est:"V\xe4heaktiivne",eng:"Low activity",rus:"\u041d\u0438\u0437\u043a\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c"},moderate:{est:"Aktiivne",eng:"Active",rus:"\u0410\u043a\u0442\u0438\u0432\u043d\u044b\u0439"},high:{est:"V\xe4ga aktiivne",eng:"Very active",rus:"\u041e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439"}}}},this.analysis={sodiumMessage:{est:"toitainetest saadud",eng:"from nutrients",rus:"\u0438\u0437 \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0441\u0442\u0432"},graph:{mineralsAndVitamins:{est:"Mineraalained ja vitamiinid",eng:"Minerals and vitamins",rus:"\u041c\u0438\u043d\u0435\u0440\u0430\u043b\u044b \u0438 \u0432\u0438\u0442\u0430\u043c\u0438\u043d\u044b"},timeRangeAverage:{est:"ajavahemiku keskmine",eng:"average of period",rus:"\u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434"},dailyPercent:{est:"Keskmine tarbimine minimaalsest soovitusest",eng:"Average intake from the minimum recommendation",rus:"\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},fibers:{est:"kiudained",eng:"fibers",rus:"\u043a\u043b\u0435\u0442\u0447\u0430\u0442\u043a\u0430"}
3,cholesterol:{est:"kolesterool",eng:"cholesterol",rus:"\u0445\u043e\u043b\u0435\u0441\u0442\u0435\u0440\u0438\u043d"},day:{est:"P\xe4ev",eng:"Day",rus:"\u0414\u0435\u043d\u044c"},percentageDaily:{est:"Osakaal p\xe4evasest energiast",eng:"Percentage of daily energy",rus:"\u041f\u0440\u043e\u0446\u0435\u043d\u0442 \u0441\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438"},percentageRecommended:{est:"Osakaal soovituslikust energiast",eng:"Percentage of recommended energy",rus:"\u041f\u0440\u043e\u0446\u0435\u043d\u0442 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438"},toolTipOver:{est:"P\xe4evane maksimaalne lubatud kogus on \xfcletatud",eng:"Maximum daily amount exceeded",rus:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0430"},toolTipUnder:{est:"P\xe4evast maksimaalset lubatud kogust ei ole \xfcletatud",eng:"The daily maximum quantity has not been exceeded",rus:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u043e"}},byMeal:{pieChartTitle:{est:"Energia jaotumine toidukordade vahel",eng:"Energy distribution between meals",rus:"\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0438\u0435\u043c\u0430\u043c\u0438 \u043f\u0438\u0449\u0438"}},byFood:{sumRow:{est:"Toidukord kokku",eng:"Toidukord kokku eng",rus:"\u041f\u0440\u0438\u0435\u043c \u043f\u0438\u0449\u0438 \u0432\u0441\u0435\u0433\u043e"},percentOfDay:{est:"% p\xe4evast",eng:"% of the day",rus:"% \u0434\u043d\u044f"}},daySummary:{name:{est:"Toidukord",eng:"Meal",rus:"\u041f\u0440\u0438\u0435\u043c \u043f\u0438\u0449\u0438"},energyReceived:{est:"Saadud energia",eng:"Energy intake",rus:"\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f"},energyAdditional:{est:"P\xe4eva jooksul t\xe4iendavalt vajaminev energia",eng:"Additional energy required during the day",rus:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043d\u044f"},energyRecommended:{est:"Energiavajadus",eng:"Energy need",rus:"\u041f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u044d\u043d\u0435\u0440\u0433\u0438\u0438"}},email:{dailyMenu:{est:"P\xe4evamen\xfc\xfc",eng:"Daily menu",rus:"\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e"},foodDiary:{est:"Toidup\xe4evik",eng:"Food diary",rus:"\u0414\u043d\u0435\u0432\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f"},notSet:{est:"M\xe4\xe4ramata",eng:"Not set",rus:"\u041d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e"},mainDaySummaryTab:{est:"P\xe4eva kokkuv\xf5te",eng:"Summary of the day",rus:"\u0418\u0442\u043e\u0433\u0438 \u0434\u043d\u044f"},mainDayDetailTab:{est:"P\xe4eva detailselt",eng:"Day in detail",rus:"\u0414\u0435\u043d\u044c \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445"},mainMealTab:{est:"Toidukorrad",eng:"By meals",rus:"\u041f\u0440\u0438\u0435\u043c\u044b \u043f\u0438\u0449\u0438"},foodPyramid:{est:"Toidup\xfcramiid",eng:"Food pyramid",rus:"\u041f\u0438\u0449\u0435\u0432\u0430\u044f \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0430"},deepDayTab:{est:"P\xe4eva tasand",eng:"Day view",rus:"\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u043d\u044f"},deepMealTab:{est:"Toidukorrad",eng:"By meals",rus:"\u041f\u0440\u0438\u0435\u043c\u044b \u043f\u0438\u0449\u0438"},deepFoodsTab:{est:"Toitained toidus",eng:"Nutrients by foods",rus:"\u041f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0435\u0434\u0435"}
3,deepFoodGroupsTab:{est:"Toitained toidugruppides",eng:"Nutrients by food groups",rus:"\u041f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u043f\u0438\u0449\u0435\u0432\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445"},mainComponentsTab:{est:"Toidud grammides",eng:"Foods by grams",rus:"\u0415\u0434\u0430 \u0432 \u0433\u0440\u0430\u043c\u043c\u0430\u0445"},menus:{est:"men\xfc\xfcd",eng:"menus",rus:"\u043c\u0435\u043d\u044e"},days:{est:"p\xe4eva",eng:"days",rus:"\u0434\u043d\u0435\u0439"}},export:{missingNutrientText:{est:"* - Antud toitaine tulemused ei ole t\xe4psed v\xf5i on puudulikud kuna arvutusk\xe4igus on v\xe4hemalt 1 toit, kus on antud toitaine v\xe4\xe4rtus m\xe4\xe4ramata",eng:"* - The results for this nutrient are inaccurate or incomplete because there are at least 1 food in the calculation where the value of the given nutrient is undefined",rus:"* - \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0435\u0442\u043e\u0447\u043d\u044b\u043c\u0438 \u0438\u043b\u0438 \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0440\u0430\u0441\u0447\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 1 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e"},tapCopyright:{est:"\xa9NutriData toitumisprogramm",eng:"\xa9NutriData toitumisprogramm",rus:"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \xa9NutriData "},version:{est:"versioon",eng:"version",rus:"\u0432\u0435\u0440\u0441\u0438\u044f"},tai:{est:"Tervise Arengu Instituut",eng:"Institute for Health Development",rus:"\u0418\u043d\u0441\u0442\u0438\u0442\u0443\u0442 \u0420\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0417\u0434\u043e\u0440\u043e\u0432\u044c\u044f"},url:{est:"www.nutridata.ee",eng:"www.nutridata.ee/en",rus:"www.nutridata.ee/ru"},nutrient:{est:"Toitaine",eng:"Nutrient",rus:"\u041f\u0438\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u043e"},foods:{est:"Toidud",eng:"Foods",rus:"\u0415\u0434\u044b"},food:{est:"Toit",eng:"Food",rus:"\u0415\u0434\u0430"},code:{est:"Kood",eng:"Code",rus:"\u041a\u043e\u0434"},sum:{est:"Kokku",eng:"Total",rus:"\u0412\u0441\u0435\u0433\u043e"},gross:{est:"bruto",eng:"gross",rus:"\u0431\u0440\u0443\u0442\u0442\u043e"},net:{est:"neto",eng:"net",rus:"\u043d\u0435\u0442\u0442\u043e"},average:{est:"Keskmiselt",eng:"On average",rus:"B \u0441\u0440\u0435\u0434\u043d\u0435\u043c"},recommendation:{est:"Soovituslik",eng:"Recommended",rus:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0435"},percentOfRecommendation:{est:"% soovitusest",eng:"% of recommendation",rus:"% \u043e\u0442 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0433\u043e"},underConsuption:{est:"Alatarbimine",eng:"Under-consumption",rus:"\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435"},normalConsuption:{est:"Normaaltarbimine",eng:"Normal consumption",rus:"\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435"},overConsumption:{est:"\xdcletarbimine",eng:"Over-consumption",rus:"\u0427\u0440\u0435\u0437\u043c\u0435\u0440\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435"},comparedWithRecommendation:{est:"V\xf5rdlus soovitusega: ",eng:"Compared with recommendation: ",rus:"\u041f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0435\u0439: "},specifiedEnergyRequirement:{est:"T\xe4psustatud energiavajadus",eng:"Adjusted need for energy",rus:"\u0423\u0442\u043e\u0447\u043d\u0451\u043d\u043d\u0430\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u044d\u043d\u0435\u0440\u0433\u0438\u0438"}}},this.sex={man:{est:"Mees",eng:"Man",rus:"M\u0443\u0436\u0447\u0438\u043d\u0430"},woman:{est:"Naine",eng:"Woman",rus:"\u0416\u0435\u043d\u0449\u0438\u043d\u0430"}},this.undefinedFoodGroup={est:"Toidugrupp m\xe4\xe4ramata",eng:"Foodgroup undefined",rus:"\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u0430\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430"},this.undefinedTranslation={est:"m\xe4\xe4ramata",eng:"undefined",rus:"\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439"},this.menus={day:{day:{est:"P\xe4ev",eng:"Day",rus:"\u0414\u0435\u043d\u044c"},monday:{est:"Esmasp\xe4ev",eng:"Monday",rus:"\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a"},tuesday:{est:"Teisip\xe4ev",eng:"Tuesday",rus:"\u0412\u0442\u043e\u0440\u043d\u0438\u043a"},wednesday:{est:"Kolmap\xe4ev",eng:"Wednesday",rus:"\u0421\u0440\u0435\u0434\u0430"},thursday:{est:"Neljap\xe4ev",eng:"Thursday",rus:"\u0427\u0435\u0442\u0432\u0435\u0440\u0433"},friday:{est:"Reede",eng:"Friday",rus:"\u041f\u044f\u0442\u043d\u0438\u0446\u0430"},saturday:{est:"Laup\xe4ev",eng:"Saturday",rus:"\u0421\u0443\u0431\u0431\u043e\u0442\u0430"},sunday:{est:"P\xfchap\xe4ev",eng:"Sunday",rus:"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435"}},meal:{meal:{est:"S\xf6\xf6gikord",eng:"Meal",rus:"E\u0434\u0430 \u043f\u0440\u0438\u0451\u043c \u043f\u0438\u0449\u0438"},breakfast:{est:"Hommikus\xf6\xf6k",eng:"Breakfast",rus:"\u0417\u0430\u0432\u0442\u0440\u0430\u043a"},brunch:{est:"L\xf5unaoode",eng:"Brunch",rus:"\u041f\u0435\u0440\u0435\u043a\u0443\u0441"},lunch:{est:"L\xf5unas\xf6\xf6k",eng:"Lunch",rus:"\u041e\u0431\u0435\u0434"},eveningSnack:{est:"\xd5htuoode",eng:"Evening snack",rus:"\u041f\u0435\u0440\u0435\u043a\u0443\u0441"},dinner:{est:"\xd5htus\xf6\xf6k",eng:"Dinner",rus:"\u0423\u0436\u0438\u043d"},nightSnack:{est:"\xd6\xf6oode",eng:"Night snack",rus:"\u041f\u0435\u0440\u0435\u043a\u0443\u0441"}}},this.maths={min:{est:"min.",eng:"min.",rus:"\u043c\u0438\u043d."},max:{est:"max.",eng:"max.",rus:"\u043c\u0430\u043a\u0441."},mean:{est:"kesk.",eng:"mean",rus:"\u0441\u0440\u0435\u0434\u043d\u0435\u0435"}},this.comparison={nutrientName:{est:"Toitaine nimi",eng:"Nutrient name",rus:"\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432"},unit:{est:"\xdchik",eng:"Unit",rus:"\u0411\u043b\u043e\u043a"}},this.user={male:{est:this.sex.man.est,eng:this.sex.man.eng,rus:this.sex.man.rus},female:{est:this.sex.woman.est,eng:this.sex.woman.eng,rus:this.sex.woman.rus},goals:{diet:{est:"Toitumise j\xe4lgimine",eng:"Monitoring nutrition",rus:"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u0438\u0442\u0430\u043d\u0438\u044f"},research:{est:"Koolit\xf6\xf6 v\xf5i uurimust\xf6\xf6",eng:"Schoolwork or research",rus:"\u0428\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0438\u043b\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435"},catering:{est:"Toitlustus",eng:"Catering",rus:"\u041a\u0435\u0439\u0442\u0435\u0440\u0438\u043d\u0433"},production:{est:"Toidu tootmine",eng:"Food production",rus:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f"},other:{est:"Muu",eng:"Other",rus:"\u0414\u0440\u0443\u0433\u043e\u0439"}}},this.foodGroups={macro:{est:"Makrotoitained",eng:"Macronutrients",rus:"\u041c\u0430\u043a\u0440\u043e\u043d\u0443\u0442\u0440\u0438\u0435\u043d\u0442\u044b"},carbs:{est:"S\xfcsivesikute alamkomponendid",eng:"Carbohydrates",rus:"\u0423\u0433\u043b\u0435\u0432\u043e\u0434\u044b"},fats:{est:"Rasvade alamkomponendid",eng:"Fats",rus:"\u0416\u0438\u0440\u044b"},minerals:{est:"Mineraalained",eng:"Minerals",rus:"\u041c\u0438\u043d\u0435\u0440\u0430\u043b\u044b"},vitamins:{est:"Vitamiinid",eng:"Vitamins",rus:"B\u0438\u0442\u0430\u043c\u0438\u043d\u044b"},other:{est:"Muu",eng:"Other",rus:"\u041f\u0440\u043e\u0447\u0435\u0435"}},this.fixedSlugs={analysis:{est:{slug:"analuus",title:"Anal\xfc\xfcs"},eng:{slug:"analysis",title:"Analysis"},rus:{slug:"analiz",title:"\u0410\u043d\u0430\u043b\u0438\u0437"}},dailyMenu:{est:{slug:"paevamenuu",title:"P\xe4evamen\xfc\xfc"},eng:{slug:"daily-menu",title:"Daily menu"},rus:{slug:"ezhednevnoe-menyu",title:"\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0435 \u043c\u0435\u043d\u044e"}},month:{est:{slug:"kuu",title:"Kuu"},eng:{slug:"month",title:"Month"},rus:{slug:"mesyac",title:"\u041c\u0435\u0441\u044f\u0446"}},year:{est:{slug:"aasta",title:"Aasta"},eng:{slug:"year",title:"Year"},rus:{slug:"god",title:"\u0413\u043e\u0434"}},profile:{est:{slug:"profiil",title:"Profiil"},eng:{slug:"profile",title:"Profile"},rus:{slug:"profil",title:"\u041f\u0440\u043e\u0444\u0438\u043b\u044c"}},register:{est:{slug:"registreeri",title:"Registreeri"},eng:{slug:"register",title:"Register"},rus:{slug:"registr",title:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440"}},add:{est:{slug:"lisa",title:"Lisa"},eng:{slug:"add",title:"Add"},rus:{slug:"dobavlyat",title:"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c"}},edit:{est:{slug:"muuda",title:"Muuda"},eng:{slug:"edit",title:"Edit"},rus:{slug:"redaktirovat",title:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"}},pages:{est:{slug:"lehed",title:"Lehed"},eng:{slug:"pages",title:"Pages"},rus:{slug:"stranica",title:"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430"}}
3,respondents:{est:{slug:"vastajad",title:"Vastajad"},eng:{slug:"respondents",title:"Respondents"},rus:{slug:"respondentov",title:"\u0420\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u043e\u0432"}},settings:{est:{slug:"seaded",title:"Seaded"},eng:{slug:"settings",title:"Settings"},rus:{slug:"nastroyki",title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"}},copy:{est:{slug:"koopia",title:"Koopia"},eng:{slug:"copy",title:"Copy"},rus:{slug:"kopiya",title:"\u041a\u043e\u043f\u0438\u044f"}},preview:{est:{slug:"eelvaade",title:"Eelvaade"},eng:{slug:"preview",title:"Preview"},rus:{slug:"prosmotr",title:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440"}},feedback:{est:{slug:"vastused",title:"Vastused"},eng:{slug:"feedback",title:"Feedback"},rus:{slug:"otvety",title:"\u041e\u0442\u0432\u0435\u0442\u044b"}},accessMaintenance:{est:{slug:"ligip\xe4\xe4sud",title:"Ligip\xe4\xe4sud"},eng:{slug:"accesses",title:"Accesses"},rus:{slug:"dostup",title:"\u0414\u043e\u0441\u0442\u0443\u043f"}},proofing:{est:{slug:"kusimustik/testimine",title:"K\xfcsimustik - Testimine"},eng:{slug:"questionnaire/proofing",title:"Questionnaire - Proofing"},rus:{slug:"voprosnik/test",title:"\u0412\u043e\u043f\u0440\u043e\u0441\u043d\u0438\u043a - \u0422\u0435\u0441\u0442"}},questionnaire:{est:{slug:"kusimustik/vastamine",title:"K\xfcsimustik - Vastamine"},eng:{slug:"questionnaire/answering",title:"Questionnaire - Answering"},rus:{slug:"voprosnik/avtootvetchik",title:"\u0412\u043e\u043f\u0440\u043e\u0441\u043d\u0438\u043a - \u0410\u0432\u0442\u043e\u043e\u0442\u0432\u0435\u0442\u0447\u0438\u043a"}},altering:{est:{slug:"kusimustik/muutmine",title:"K\xfcsimustik - Muutmine"},eng:{slug:"questionnaire/alter",title:"Questionnaire - Alter"},rus:{slug:"voprosnik/izmenyat",title:"\u0412\u043e\u043f\u0440\u043e\u0441\u043d\u0438\u043a - \u0418\u0437\u043c\u0435\u043d\u044f\u0442\u044c"}},exportDocuments:{est:{slug:"ekspordi-andmed",title:"Ekspordi andmed"},eng:{slug:"export-data",title:"Export data"},rus:{slug:"eksport-dannykh",title:"\u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}},actionLog:{est:{slug:"logid",title:"Logid"},eng:{slug:"logs",title:"Logs"},rus:{slug:"brevna",title:"\u0431\u0440\u0435\u0432\u043d\u0430"}},print:{est:{slug:"kusimustik/prindi",title:"K\xfcsimustik - Printimine"},eng:{slug:"questionnaire/print",title:"Questionnaire - Print"},rus:{slug:"voprosnik/raspechatat",title:"\u0412\u043e\u043f\u0440\u043e\u0441\u043d\u0438\u043a - \u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c"}},questionExample:{est:{slug:"kusimus/tuubid",title:"K\xfcsimuste t\xfc\xfcbid"},eng:{slug:"question/types",title:"Question types"},rus:{slug:"\u0432\u043e\u043f\u0440\u043e\u0441/\u0442\u0438\u043f\u044b",title:"\u0442\u0438\u043f\u044b \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432"}},compare:{est:{slug:"vordle",title:"V\xf5rdle"},eng:{slug:"compare",title:"Compare"},rus:{slug:"\u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c",title:"\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u044c"}},printLandingPage:{est:{slug:"prindi",title:"Prindi"},eng:{slug:"print",title:"Print"},rus:{slug:"raspechatat",title:"\u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c"}},surveyRecipeDescriptors:{est:{slug:"lisak\xfcsimused",title:"Toitude lisak\xfcsimused"},eng:{slug:"additionalQuestions",title:"Additional questions about food"},rus:{slug:"voprosy",title:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0435\u0434\u0435"}},surveyRecipeDescriptorsFilters:{est:{slug:"lisak\xfcsimuste-filtrid",title:"Lisak\xfcsimuste filtrid"},eng:{slug:"additionalQuestions-filters",title:"Filters for additional questions"},rus:{slug:"voprosy-filtry",title:"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0435\u0434\u0435"}},questionFilters:{est:{slug:"filtrid",title:"Filtrid"},eng:{slug:"filters",title:"Filters"},rus:{slug:"filtry",title:"\u0444\u0438\u043b\u044c\u0442\u0440\u044b"}},updateRunning:{est:{slug:"uuendus/teade",title:"Uuendus"},eng:{slug:"update/message",title:"Update"},rus:{slug:"obnovit/soobshchenie",title:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c"}}},this.fixedPathVariables={modal:{est:"modaal",eng:"modal",rus:"modalnoe"},recipe:{est:"retsept",eng:"recipe",rus:"recept"}
3,foodstuff:{est:"toiduaine",eng:"foodstuff",rus:"pishevoj-produkt"},login:{est:"sisene",eng:"login",rus:"vojti"},register:{est:"registreeru",eng:"register",rus:"zaregistrirovatsya"}},this.componentGroupClassifiers={COMPONENT_GROUP_MACRO:{est:this.foodGroups.macro.est,eng:this.foodGroups.macro.eng,rus:this.foodGroups.macro.rus},COMPONENT_GROUP_CARBS:{est:this.foodGroups.carbs.est,eng:this.foodGroups.carbs.eng,rus:this.foodGroups.carbs.rus},COMPONENT_GROUP_FATS:{est:this.foodGroups.fats.est,eng:this.foodGroups.fats.eng,rus:this.foodGroups.fats.rus},COMPONENT_GROUP_MINERALS:{est:this.foodGroups.minerals.est,eng:this.foodGroups.minerals.eng,rus:this.foodGroups.minerals.rus},COMPONENT_GROUP_VITAMINS:{est:this.foodGroups.vitamins.est,eng:this.foodGroups.vitamins.eng,rus:this.foodGroups.vitamins.rus},COMPONENT_GROUP_OTHER:{est:this.foodGroups.other.est,eng:this.foodGroups.other.eng,rus:this.foodGroups.other.rus}},this.days={0:{est:this.menus.day.sunday.est,eng:this.menus.day.sunday.eng,rus:this.menus.day.sunday.rus},1:{est:this.menus.day.monday.est,eng:this.menus.day.monday.eng,rus:this.menus.day.monday.rus},2:{est:this.menus.day.tuesday.est,eng:this.menus.day.tuesday.eng,rus:this.menus.day.tuesday.rus},3:{est:this.menus.day.wednesday.est,eng:this.menus.day.wednesday.eng,rus:this.menus.day.wednesday.rus},4:{est:this.menus.day.thursday.est,eng:this.menus.day.thursday.eng,rus:this.menus.day.thursday.rus},5:{est:this.menus.day.friday.est,eng:this.menus.day.friday.eng,rus:this.menus.day.friday.rus},6:{est:this.menus.day.saturday.est,eng:this.menus.day.saturday.eng,rus:this.menus.day.saturday.rus}},this.activityDiaryChartLabels={energyRequired:{est:"Energiavajadus, kcal",eng:"Energy need, kcal",rus:"\u041f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u044d\u043d\u0435\u0440\u0433\u0438\u0438, \u043a\u043a\u0430\u043b"},energyFromFood:{est:"Toiduga saadud energia, kcal",eng:"Energy from food, kcal",rus:"\u042d\u043d\u0435\u0440\u0433\u0438\u044f \u0438\u0437 \u0435\u0434\u044b, \u043a\u043a\u0430\u043b"},weight:{est:"Kaal, kg",eng:"Weight, kg",rus:"\u0412\u0435\u0441, \u043a\u0433"},waist:{est:"V\xf6\xf6\xfcmberm\xf5\xf5t, cm",eng:"Waist measurement, cm",rus:"\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043b\u0438\u0438, \u0441\u043c"},hips:{est:"Puusa\xfcmberm\xf5\xf5t, cm",eng:"Hip measurement, cm",rus:"\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u0451\u0434\u0435\u0440, \u0441\u043c"}}}ngOnDestroy(){}}MN.\u0275fac=function(e){return new(e||MN)},MN.\u0275prov=ve({token:MN,factory:MN.\u0275fac});const FN=["recaptcha"];function RN(e,t){if(1&e&&(Oc(0,"li"),Oc(1,"a",54),Pc(2,"i",55),Mu(3),Ic(),Ic()),2&e){const e=Hc(2);Lo(1),Zc("href","tel:",e.contactPersons[0].phone,"",_r),Lo(2),Ru(" ",e.contactPersons[0].phone," ")}}function NN(e,t){if(1&e&&(Oc(0,"div",47),Oc(1,"div",48),Oc(2,"h3"),Id(3,49),Ic(),Ic(),Oc(4,"div",50),Pc(5,"img",51),Oc(6,"h3"),Mu(7),Ic(),Oc(8,"p"),Mu(9),Ic(),Oc(10,"ul"),Oc(11,"li"),Oc(12,"a",52),Mu(13),Ic(),Ic(),Gl(14,RN,4,2,"li",53),Ic(),Ic(),Ic()),2&e){const e=Hc();Lo(5),Gc("src",null==e.contactPersons[0].profilePicture?e.profilePicturesUrl+"0GK6GSKTD88U4B3BLZ.png":e.profilePicturesUrl+e.contactPersons[0].profilePicture,_r),Gc("alt",e.contactPersons[0].name),Lo(2),Fu(e.contactPersons[0].name),Lo(2),Fu(e.translateJobTitle(e.contactPersons[0].jobTitle)),Lo(3),Zc("href","mailto:",e.contactPersons[0].email,"",_r),Lo(1),Fu(e.contactPersons[0].email),Lo(1),Tc("ngIf",e.contactPersons[0].phone)}}function LN(e,t){1&e&&(Oc(0,"div"),Id(1,57),Ic())}function VN(e,t){if(1&e&&(Oc(0,"div",56),Gl(1,LN,2,0,"div",53),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.formControls.name.errors.required)}}function jN(e,t){1&e&&(Oc(0,"div"),Id(1,58),Ic())}function BN(e,t){1&e&&(Oc(0,"div"),Id(1,59),Ic())}function $N(e,t){if(1&e&&(Oc(0,"div",56),Gl(1,jN,2,0,"div",53),Gl(2,BN,2,0,"div",53),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.formControls.email.errors.required),Lo(1),Tc("ngIf",e.formControls.email.errors.email)}}function zN(e,t){1&e&&(Oc(0,"div"),Id(1,60),Ic())}function UN(e,t){1&e&&(Oc(0,"div"),Id(1,61),Ic())}function HN(e,t){if(1&e&&(Oc(0,"div",56),Gl(1,zN,2,0,"div",53),Gl(2,UN,2,0,"div",53),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.formControls.letter.errors.required),Lo(1),Tc("ngIf",e.formControls.letter.errors.minlength)}}function qN(e,t){1&e&&Pc(0,"i",62)}const WN=function(e){return{"is-invalid":e}};class KN{constructor(e,t,n,s,i,r,o){this.http=e,this.pagesService=t,this.fb=n,this.contactService=s,this.toastr=i,this.messages=r,this.apiServer=IN.settings.apiServer,this.cfg=IN.settings,this.submitted=!1,this.emailSent=!1,this.cdnServer=this.apiServer.imageServer,this.pagesService.getPageBySlug(this.slug),this.current_locale=o}getContactsInformation(){const e=this.apiServer.coreServer+"contacts/info/"+this.parentApp;return this.http.get(e)}get formControls(){return this.contactForm.controls}get profilePicturesUrl(){return this.apiServer.imageServer+"profilepictures/"}resolved(e){null!==e&&this.contactService.verifyRecaptcha(e).subscribe(e=>{e&&this.onSubmit()})}onSubmit(){this.submitted=!0,this.loading=!0,this.contactService.postContactLetter(this.contactForm.getRawValue()).subscribe(e=>
3{this.captchaRefrence.reset(),200===e?(this.emailSent=!0,this.toastr.success(this.messages.toast.emailSent[this.langSuffix.toLowerCase()])):this.submitted=!1,this.loading=!1})}executeRecaptcha(){this.submitted=!0,this.loading=!0,this.contactForm.invalid?this.loading=!1:(this.emailSent=!1,this.captchaRefrence.execute())}ngOnInit(){this.getContactsInformation().subscribe(e=>{this.contactPersons=e}),this.contactForm=this.fb.group({name:["",U_.required],email:["",[U_.required,U_.email]],phone:[""],letter:["",[U_.required,U_.minLength(10)]],captcha:new Fw(null),parentApp:this.parentApp}),"ru"===this.current_locale?this.langSuffix="Rus":"en"===this.current_locale?this.langSuffix="Eng":this.langSuffix="Est"}translateJobTitle(e=""){return"Toidu koostise andmebaasi haldur"===e.trim()?"" + e + "":e}}KN.\u0275fac=function(e){return new(e||KN)(kc(l_),kc(AN),kc(VC),kc(PN),kc(FD),kc(MN),kc(jg))},KN.\u0275cmp=Je({type:KN,selectors:[["tois-contact-page"]],viewQuery:function(e,t){if(1&e&&Bf(FN,1),2&e){let e;jf(e=zf())&&(t.captchaRefrence=e.first)}},inputs:{parentApp:"parentApp"},decls:72,vars:18,consts:function(){let e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,b,v;return e="V\xF5ta meiega \xFChendust",t="Nimi",n="E-post",s="Telefoni number",i="Kiri",r="Saada",o="Kiri saadetud",a="Aadress",l="Paldiski mnt 80, 10617, Tallinn",c="Telefon",u="tel:+372 659 3855",h="E-post",d="mailto:[email protected]",p="[email protected]",f="Administraator",g="Nimi on kohustuslik v\xE4li",m="E-post on kohustuslik v\xE4li",y="E-post ei ole korrektne",b="Kirjal peab olema sisu",v="Kiri peab olema v\xE4hemalt 10 t\xE4hem\xE4rki pikk\n                    ",[[1,"contact-page"],[1,"service-section","container-fluid"],[1,"row"],[1,"team-section","tois-team-section","container-fluid","col-lg-4","col-md-12","col-sm-12","col-xs-12","col-12"],["class","team-box team-box-left",4,"ngIf"],[1,"contact-form","col-lg-8","col-md-12","col-sm-12","col-xs-12","col-12",3,"ngClass"],[1,"contact-form-section"],[1,"section-header"],e,[1,"contact-form","container-fluid","d-flex","tois-d-md-block",3,"formGroup","ngSubmit"],[1,"w-max-240px","w-md-max-100","pr-4","tois-pr-md-0"],[1,"form-group"],t,[1,"text-danger"],["type","text","formControlName","name",1,"form-control","input-style","contact-input-sm",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],n,["type","text","formControlName","email",1,"form-control","input-style","contact-input-sm",3,"ngClass"],s,["type","text","formControlName","phone",1,"form-control","input-style","contact-input-sm"],[1,"flex-grow-1","w-md-max-100"],i,["formControlName","letter",1,"form-control","letter-textarea",3,"ngClass"],["formControlName","captcha","siteKey","6Le-QmYUAAAAACUPmrGCq9G_HK5Id4gJpxcXa_Qw","size","invisible",3,"resolved"],["recaptcha","reCaptcha"],[1,"btn","btn-tai-modal-add","btn-send-mail","tois-ml-sm-0",3,"disabled"],r,[1,"contact-email",3,"ngClass"],["class","fa fa-spinner fa-lg fa-spin sending",4,"ngIf"],[1,"fa","fa-envelope","fa-lg"],o,[1,"d-flex","tois-d-sm-block","mt-3","mb-3"],[1,"w-33","tois-w-sm-100","contact-block","tois-contact-block","text-center"],[1,"fa","fa-map-marker"],[1,"d-block"],a,["href","https://maps.app.goo.gl/dniYNCRiKifZwv276","target","_blank",1,"d-block"],l,[1,"w-33","tois-w-sm-100","contact-block","tois-contact-block"],[1,"fa","fa-mobile"],c,["href",u,"i81n",""],[1,"w-33","tois-w-sm-100","contact-block","tois-contact-block","br-0"],[1,"fa","fa-envelope"],h,["href",d],p,[1,"team-box","team-box-left"],[1,"section-header","text-left"],f,[1,"margin-md-auto"],[1,"max-w-100","img-fluid","mt-2","rounded",3,"src","alt"],["t
3itle","Email",3,"href"],[4,"ngIf"],["title","Phone",3,"href"],[1,"fa","fa-phone","contact-phone"],[1,"invalid-feedback"],g,m,y,b,v,[1,"fa","fa-spinner","fa-lg","fa-spin","sending"]]},template:function(e,t){1&e&&(Oc(0,"section",0),Oc(1,"div",1),Oc(2,"div",2),Oc(3,"div",3),Gl(4,NN,15,7,"div",4),Ic(),Oc(5,"div",5),Oc(6,"div",6),Oc(7,"div",7),Oc(8,"h3"),Id(9,8),Ic(),Ic(),Oc(10,"form",9),jc("ngSubmit",function(){return t.executeRecaptcha()}),Oc(11,"div",10),Oc(12,"div",11),Oc(13,"label"),Oc(14,"span"),Id(15,12),Ic(),Oc(16,"span",13),Mu(17,"\xa0*"),Ic(),Ic(),Pc(18,"input",14),Gl(19,VN,2,1,"div",15),Ic(),Oc(20,"div",11),Oc(21,"label"),Oc(22,"span"),Id(23,16),Ic(),Oc(24,"span",13),Mu(25,"\xa0*"),Ic(),Ic(),Pc(26,"input",17),Gl(27,$N,3,2,"div",15),Ic(),Oc(28,"div",11),Oc(29,"label"),Id(30,18),Ic(),Pc(31,"input",19),Ic(),Ic(),Oc(32,"div",20),Oc(33,"div",11),Oc(34,"label"),Oc(35,"span"),Id(36,21),Ic(),Oc(37,"span",13),Mu(38,"\xa0*"),Ic(),Ic(),Pc(39,"textarea",22),Gl(40,HN,3,2,"div",15),Ic(),Oc(41,"div",11),Oc(42,"re-captcha",23,24),jc("resolved",function(e){return t.resolved(e)}),Ic(),Oc(44,"button",25),Id(45,26),Ic(),Ic(),Oc(46,"div",27),Gl(47,qN,1,0,"i",28),Pc(48,"i",29),Oc(49,"p"),Id(50,30),Ic(),Ic(),Ic(),Ic(),Ic(),Ic(),Ic(),Pc(51,"hr"),Oc(52,"div",31),Oc(53,"div",32),Pc(54,"i",33),Oc(55,"span",34),Id(56,35),Ic(),Oc(57,"a",36),Id(58,37),Ic(),Ic(),Oc(59,"div",38),Pc(60,"i",39),Oc(61,"span"),Id(62,40),Ic(),Oc(63,"a",41),Mu(64,"+372 659 3855"),Ic(),Ic(),Oc(65,"div",42),Pc(66,"i",43),Oc(67,"span"),Id(68,44),Ic(),Oc(69,"p"),Oc(70,"a",45),Id(71,46),Ic(),Ic(),Ic(),Ic(),Ic(),Ic()),2&e&&(Lo(4),Tc("ngIf",t.contactPersons),Lo(1),Tc("ngClass",t.contactPersons?"col-lg-8 col-md-12 col-sm-12 col-xs-12 col-12":"col-12"),Lo(5),Tc("formGroup",t.contactForm),Lo(8),Tc("ngClass",nf(12,WN,t.submitted&&t.formControls.name.errors)),Lo(1),Tc("ngIf",t.submitted&&t.formControls.name.errors),Lo(7),Tc("ngClass",nf(14,WN,t.submitted&&t.formControls.email.errors)),Lo(1),Tc("ngIf",t.submitted&&t.formControls.email.errors),Lo(12),Tc("ngClass",nf(16,WN,t.submitted&&t.formControls.letter.errors)),Lo(1),Tc("ngIf",t.submitted&&t.formControls.letter.errors),Lo(4),Tc("disabled",t.loading),Lo(2),Tc("ngClass",t.emailSent?"email-sent":"email-not-sent"),Lo(1),Tc("ngIf",t.loading&&!t.emailSent))},directives:[sb,Jy,Kw,gw,oC,L_,fw,pC,UT,GT],styles:[".w-33[_ngcontent-%COMP%]{width:33%}.br-0[_ngcontent-%COMP%]{border-right:unset!important}.contact-button[_ngcontent-%COMP%]{background-color:transparent;letter-spacing:1px;width:100%;color:#74d600;font-size:12px;margin-left:0;padding:11px 13px;font-size:14px;font-weight:700;border:2px solid #74d600}.contact-button[_ngcontent-%COMP%]:hover{background-color:#74d600;color:#fff}.contact-email[_ngcontent-%COMP%]{transition:all .3s linear;position:relative}.email-sent[_ngcontent-%COMP%]{top:0}.contact-email[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#74d600}.contact-email[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline-block;padding:5px}.email-not-sent[_ngcontent-%COMP%]{color:transparent;top:-30px;visibility:hidden}.sending[_ngcontent-%COMP%]{color:#12dae1;visibility:visible;top:35px!important;position:absolute}.letter-textarea[_ngcontent-%COMP%]{height:126px;margin-bottom:23px!important}.max-w-33[_ngcontent-%COMP%]{max-width:33%}.max-w-100[_ngcontent-%COMP%]{max-width:100%}.btn-send-mail[_ngcontent-%COMP%]{width:100%;height:40px;margin-top:3px}.contact-page[_ngcontent-%COMP%]   .input-style[_ngcontent-%COMP%]{border-radius:5px!important;height:34px!important;color:#555!important}.contact-page[_ngcontent-%COMP%]   .letter-textarea[_ngcontent-%COMP%]{border-radius:5px!important;padding:12px}.w-max-240px[_ngcontent-%COMP%]{width:100%;max-width:240px}.team-box-left[_ngcontent-%COMP%]{margin-left:0}@media (max-width:992px){.team-box-left[_ngcontent-%COMP%]{width:100%;max-width:100%}.margin-md-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.w-md-max-100[_ngcontent-%COMP%]{width:100%;max-width:100%}.tois-d-md-block[_ngcontent-%COMP%]{display:block!important}.tois-pr-md-0[_ngcontent-%COMP%]{padding-right:0!important}.tois-team-section[_ngcontent-%COMP%]{padding-bottom:0}.team-box-left[_ngcontent-%COMP%]{margin:0}}@media (max-width:576px){.tois-d-sm-block[_ngcontent-%COMP%]{display:block!important}.tois-w-sm-100[_ngcontent-%COMP%]{width:100%!important}.tois-contact-block[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:0;border-right:0}.contact-input-sm[_ngcontent-%COMP%]{margin-right:0!important;width:100%!important}.contact-input-sm[_ngcontent-%COMP%], .tois-ml-sm-0[_ngcontent-%COMP%]{margin-left:0!important}}"]});class GN{constructor(e,t){this.http=e,this.router=t,this.apiServer=IN.settings.apiServer,this.app=IN.settings.app}getAnalyticsKey(){return this.http.get(this.apiServer.coreServer+"configuration/analytics/"+this.app.appKey)}getMapsKey(){return this.http.get(this.apiServer.coreServer+"configuration/maps")}}GN.\u0275fac=function(e){return new(e||GN)(ri(l_),ri(iT))},GN.\u0275prov=ve({token:GN,factory:GN.\u0275fac,providedIn:"root"});class ZN{constructor(e){this.injector=e,this.script="\n    window.dataLayer = window.dataLayer || [];\n    function gtag() {\n    dataLayer.push(arguments);\n    }\n    gtag('js', new Date());\n    gtag('config', 'APIKEY');"}load(){this.injector.get(GN).getAnalyticsKey().subscribe(e=>{const t=e.value;t&&this.initialyzeAnalytics(t)},e=>{})}initialyzeAnalytics(e){const t=document.getElementsByTagName("head")[0],n=document.createElement("script");
3n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=APIKEY".replace("APIKEY",e);const s=document.createElement("script"),i=this.script.replace("APIKEY",e);s.innerHTML=i,t.insertBefore(n,t.firstChild),t.insertBefore(s,t.firstChild)}}ZN.\u0275fac=function(e){return new(e||ZN)(ri(il))},ZN.\u0275prov=ve({token:ZN,factory:ZN.\u0275fac});class QN{constructor(e){this.http=e}getCurrentUser(){return this.http.get(IN.settings.apiServer.coreServer+"user")}updateUserProfile(e){return this.http.put(IN.settings.apiServer.coreServer+"user",e)}registerUser(e,t){return this.http.post(IN.settings.apiServer.coreServer+"user/register?language="+t,e)}requestPasswordReset(e,t){return this.http.post(IN.settings.apiServer.coreServer+"user/request-password-reset?language="+t,e)}verifyUserEmail(e){return this.http.post(IN.settings.apiServer.coreServer+"user/email-verification/"+e,null)}resetUserPassword(e){return this.http.put(IN.settings.apiServer.coreServer+"user/reset-password",e)}confirmUserCredentials(e){return this.http.put(IN.settings.apiServer.coreServer+"user/password",e)}deleteUser(e,t){return this.http.delete(IN.settings.apiServer.coreServer+"user/?password="+e,{headers:t})}requestKupAccess(e){return this.http.post(IN.settings.apiServer.coreServer+"user/request-kup-access",e)}}QN.\u0275fac=function(e){return new(e||QN)(ri(l_))},QN.\u0275prov=ve({token:QN,factory:QN.\u0275fac,providedIn:"root"});class YN{constructor(e,t){this.http=e,this.userService=t,this.currentUser=null,this.userSource=new tE(1),this.user$=this.userSource.asObservable();try{this.tokenInfo=JSON.parse(localStorage.getItem("tokenInfo"))}catch(n){this.tokenInfo=null,console.error("Error parsing tokenInfo from localStorage.",n)}}getAccessToken(){return this.tokenInfo?this.tokenInfo.access_token:null}hasAuthority(e){const t=this.currentUser&&this.currentUser.roles;return!!Array.isArray(t)&&t.some(t=>t&&t.code===e||t&&Array.isArray(t.permissions)&&t.permissions.some(t=>t&&t.code===e))}getRefreshToken(){return this.tokenInfo?this.tokenInfo.refresh_token:null}setTokenInfo(e){this.tokenInfo=e,localStorage.setItem("tokenInfo",JSON.stringify(e))}clearTokenInfo(){this.tokenInfo=null,localStorage.removeItem("userPreferences"),localStorage.removeItem("tokenInfo")}initLogin(){return new Promise((e,t)=>{this.userService.getCurrentUser().subscribe(t=>{this.setCurrentUser(t),e(t)},t=>{this.logout(),e(null)})})}loginWithUsernameAndPassword(e,t){return v.create(n=>{let s=new Gv;s=s.append("Authorization","Basic "+btoa("spa-client:")),s=s.append("Content-Type","application/x-www-form-urlencoded");const i=(new Yv).set("grant_type","password").set("username",e).set("password",t);return this.http.post(IN.settings.apiServer.coreServer+"oauth/token",i.toString(),{headers:s}).subscribe(e=>{e&&e.access_token?(this.setTokenInfo({access_token:e.access_token,refresh_token:e.refresh_token,expires_in:e.expires_in,userId:e.userId}),this.initLogin().then(e=>{n.next(e),n.complete()},e=>{n.error(e),n.complete()})):(this.clearTokenInfo(),n.error(new Error("Unable to parse oauthToken from server.")),n.complete())},e=>{this.clearTokenInfo(),n.error(e),n.complete()})})}refreshToken(){let e=new Gv;return e=e.append("Authorization","Basic "+btoa("spa-client:")),e=e.append("Content-Type","application/x-www-form-urlencoded"),this.http.post(IN.settings.apiServer.coreServer+"oauth/token","grant_type=refresh_token&refresh_token="+this.getRefreshToken(),{headers:e}).pipe(D(e=>e&&e.access_token?(this.setTokenInfo({access_token:e.access_token,refresh_token:e.refresh_token,expires_in:e.expires_in,userId:e.userId}),this.getAccessToken()):ZD("Unable to parse oauthToken from server response!")))}logout(){this.clearTokenInfo(),this.setCurrentUser(null)}setCurrentUser(e){this.currentUser=e,this.userSource.next(e)}confirmRegistrationToken(e){return this.http.get(IN.settings.apiServer.coreServer+"user/confirm/"+e)}}YN.\u0275fac=function(e){return new(e||YN)(ri(l_),ri(QN))},YN.\u0275prov=ve({token:YN,factory:YN.\u0275fac,providedIn:"root"});const JN=["recaptcha"];function XN(e,t){1&e&&Pc(0,"img",44)}function eL(e,t){1&e&&Pc(0,"img",45)}function tL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,47),Ic(),Ic())}function nL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,48),Ic(),Ic())}function sL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,tL,3,0,"div",16),Gl(2,nL,3,0,"div",16),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.logEmail.errors.required),Lo(1),Tc("ngIf",e.logEmail.errors.email)}}function iL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,49),Ic(),Ic())}function rL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,iL,3,0,"div",16),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.logPassword.errors.required)}}function oL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,50),Ic(),Ic())}function aL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,51),Ic(),Ic())}function lL(e,t){1&e&&(Oc(0,"header",52),Id(1,53),Ic())}function cL(e,t){1&e&&(Oc(0,"header",52),Id(1,54),Ic())}function uL(e,t){1&e&&(Ac(0),Oc(1,"div",46),Oc(2,"p"),Id(3,55),Ic(),Ic(),Mc())}function hL(e,t){1&e&&(Ac(0),Oc(1,"div",46),Oc(2,"p"),Id(3,56),Ic(),Oc(4,"p"),Id(5,57),Ic(),Ic(),Mc())}function dL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,58),Ic(),Ic())}function pL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,59),Ic(),Ic())}function fL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,dL,3,0,"div",16),Gl(2,pL,3,0,"div",16),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.resetMail.errors.required),Lo(1),Tc("ngIf",e.resetMail.errors.email)}}function gL(e,t){1&e&&(Oc(0,"div",60),Oc(1,"span"),Id(2,61),Ic(),Ic())}function mL(e,t){1&e&&(Oc(0,"div",60),Oc(1,"span"),Id(2,62),Ic(),Ic())}function yL(e,t){1&e&&(Oc(0,"div",63),Oc(1,"span"),Id(2,64),Ic(),Ic())}function bL(e,t){1&e&&(Oc(0,"div",63),Oc(1,"span"),Id(2,65),Ic(),Ic())}function vL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,80),Ic(),Ic())}function _L(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,81),Ic(),Ic())}function wL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,vL,3,0,"div",16),Gl(2,_L,3,0,"div",16),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.email.errors.required),Lo(1),Tc("ngIf",e.email.errors.email)}}function CL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,82),Ic(),Ic())}const xL=function(){return["password","password"]};function kL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,CL,3,0,"div",16),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.registerForm.get(tf(1,xL)).errors.required)}}function SL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,83),Ic(),Ic())}function TL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,SL,3,0,"div",16),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.registerForm.get(tf(1,xL)).errors.pattern)}}function DL(e,t){1&e&&(Oc(0,"div",46),Oc(1,"span"),Id(2,84),Ic(),Ic())}const EL=function(){return["password","confirmPassword"]};function OL(e,t){if(1&e&&(Oc(0,"div"),Gl(1,DL,3,0,"div",16),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.registerForm.get(tf(1,xL)).value!=e.registerForm.get(tf(2,EL)).value&&null!=e.registerForm.get(tf(3,EL)).value)}}const IL=function(e){return[e]};function PL(e,t){if(1&e&&(Oc(0,"div"),Oc(1,"div",66),Oc(2,"div",29),Oc(3,"label",9),Mu(4,"E-post"),Ic(),Pc(5,"input",67),Gl(6,wL,3,2,"div",12),Ic(),Oc(7,"div",68),Oc(8,"div",29),Oc(9,"label",13),Mu(10,"Parool"),Ic(),Pc(11,"input",69),Gl(12,kL,2,2,"div",12),Ic(),Oc(13,"div",29),Oc(14,"label",70),Mu(15,"Korda parooli"),Ic(),Pc(16,"input",71),Gl(17,TL,2,2,"div",12),Gl(18,OL,2,4,"div",12),Ic(),Ic(),Oc(19,"div",29),Oc(20,"div",72),Oc(21,"label"),Pc(22,"input",73),Oc(23,"span",74),Id(24,75),Ic(),Oc(25,"a",76),Id(26,77),Ic(),Ic(),Ic(),Ic(),Ic(),Oc(27,"button",78),Id(28,79),Ic(),Ic()),2&e){const e=Hc();Lo(6),Tc("ngIf",e.email.invalid&&(e.email.dirty||e.email.touched)),Lo(6),Tc("ngIf",e.registerForm.get(tf(6,xL)).invalid&&e.registerForm.get(tf(7,xL)).touched),Lo(5),Tc("ngIf",e.registerForm.get(tf(8,xL)).invalid&&e.registerForm.get(tf(9,xL)).touched),Lo(1),Tc("ngIf",e.registerForm.get(tf(10,EL)).invalid&&(e.registerForm.get(tf(11,EL)).dirty||e.registerForm.get(tf(12,EL)).touched)),Lo(7),Tc("routerLink",nf(13,IL,e.termsSlug)),Lo(2),Tc("disabled",!e.registerForm.valid||e.loading)}}function AL(e,t){1&e&&(Oc(0,"div",85),Oc(1,"span"),Id(2,86),Ic(),Ic())}class ML{constructor(e,t,n,s,i,r,o,a,l,c){this.locale=e,this.userService=t,this.formBuilder=n,this.router=s,this.route=i,this.authenticationService=r,this.modalService=o,this.toastr=a,this.modal=l,this.messages=c,this.modalStatus=!0,this.pwStatus=!1,this.signupStatus=!1,this.submitted=!1,this.error="",this.registerSuccess=!1,this.oldUser=!1,this.deactivatedUser=!1,this.suppressSuccessToast=!1,this.current_locale=e,"ru"===this.current_locale?this.langSuffix="Rus":"en"===this.current_locale?this.langSuffix="Eng":this.langSuffix="Est",this.termsSlug="/"+this.messages.routeMap.terms}createForm(){this.loginForm=this.formBuilder.group({email:["",[U_.required,U_.email]],password:["",U_.required]}),this.registerForm=this.formBuilder.group({password:this.formBuilder.group({password:["",[U_.required,U_.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]],confirmPassword:["",[U_.required,U_.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]]},{validator:this.pwdMatchValidator}),email:["",[U_.required,U_.email]],terms:[!1,U_.required],recaptcha:new Fw(null)}),this.resetForm=this.formBuilder.group({email:["",[U_.required,U_.email]]})}onRegistrationSubmit(e,t){e.valid?this.captchaReference.execute():this.toastr.error(this.messages.toast.incorrectValues[this.langSuffix.toLowerCase()]),t.preventDefault(),t.stopPropagation()}resolved(e){null!==e&&this.registerUser(this.registerForm)}onLoginSubmit(e,t){this.submitted=!0,e.valid?this.authenticationService.loginWithUsern
3ameAndPassword(this.f.email.value,this.f.password.value).subscribe(e=>{this.modal.close(),this.suppressSuccessToast||this.toastr.success(this.messages.toast.userLoginSuccess[this.langSuffix.toLowerCase()])},e=>{console.log(e),"too_many_attempts"===e.error.error_description?(this.loginRateLimit=!0,this.loginError=!1):401===e.status&&"old_user"===e.error.error_description?(this.loginRateLimit=!1,this.togglePassword(),this.oldUser=!0,this.resetForm.patchValue({email:this.loginForm.value.email}),this.loginError=!0):"deactivated_user"===e.error.error_description?(this.loginRateLimit=!1,this.togglePassword(),this.deactivatedUser=!0,this.resetForm.patchValue({email:this.loginForm.value.email}),this.loginError=!0):(this.loginRateLimit=!1,this.loginError=!0),this.error=e}):console.log("Vigane vorm"),t.preventDefault(),t.stopPropagation()}resetSubmit(e,t){this.submitted=!0,e.valid?this.sendResetEmail(e):console.log("Vigane vorm"),t.preventDefault(),t.stopPropagation()}registrationSuccess(){this.registerSuccess=!0}registerUser(e){this.loading=!0,e.value.password=e.value.password.password;const t={};t.email=this.registerForm.value.email,t.password=this.registerForm.value.password,t.returnUrl=IN.settings.app.localeUrl[this.locale],this.userService.registerUser(t,this.current_locale).subscribe(e=>console.log(e),e=>{this.registerError=!0,this.loading=!1,console.log(e.error)},()=>{this.registrationSuccess(),this.loading=!1,this.captchaReference.reset()})}sendResetEmail(e){const t={};t.email=e.value.email,t.returnUrl=IN.settings.app.localeUrl[this.locale],this.userService.requestPasswordReset(t,this.current_locale).subscribe(t=>{this.resetSuccess=!0,this.resetFail=!1,this.resetRateLimit=!1,e.controls.email.setErrors({incorrect:!0})},e=>{this.resetSuccess=!1,429===e.status?(this.resetRateLimit=!0,this.resetFail=!1):(this.resetFail=!0,this.resetRateLimit=!1),console.log(e.error)},()=>{this.oldUser=!1,this.toastr.success(this.messages.toast.emailSent[this.langSuffix.toLowerCase()])})}ngOnInit(){this.createForm(),!0===this.redirectToRegister&&this.toggleSignUp(),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/"}get f(){return this.loginForm.controls}get password(){return this.registerForm.get("password")}get email(){return this.registerForm.get("email")}get confirmPassword(){return this.registerForm.get("confirmPassword")}get logEmail(){return this.loginForm.get("email")}get logPassword(){return this.loginForm.get("password")}get resetMail(){return this.resetForm.get("email")}pwdMatchValidator(e){if(e.get("password").value!==e.get("confirmPassword").value)return{invalid:!0}}closeModal(){this.modal.close()}toggleModal(){this.modalStatus=!this.modalStatus,this.pwStatus=!1,this.signupStatus=!1}togglePassword(){this.pwStatus=!this.pwStatus,this.modalStatus=!1,this.signupStatus=!1}toggleSignUp(){this.signupStatus=!this.signupStatus,this.modalStatus=!1,this.pwStatus=!1}}ML.\u0275fac=function(e){return new(e||ML)(kc(jg),kc(QN),kc(VC),kc(iT),kc(Mk),kc(YN),kc(AM),kc(FD),kc(DM),kc(MN))},ML.\u0275cmp=Je({type:ML,selectors:[["tois-user-sign-in-modal"]],viewQuery:function(e,t){if(1&e&&Bf(JN,1),2&e){let e;jf(e=zf())&&(t.captchaReference=e.first)}},inputs:{redirectToRegister:"redirectToRegister",suppressSuccessToast:"suppressSuccessToast"},features:[zd([])],decls:64,vars:26,consts:function(){let e,t,n,s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,b,v,_,w,C,x,k,S,T,D,E,O,I,P,A,M,F,R,N,L,V,j,B,$;return e="E-post",t="E-post",n="Parool",s="Parool",i="Unustasid parooli?",r="Sisene",o="Sul puudub kasutajakonto?",a="Registreeru",l="E-post",c="Taasta parool",u="V\xF5i",h="Sisene keskkonda",d="Sul on juba kasutajakonto?",p="Sisene keskkonda",f="Kohustuslik v\xE4li",g="Kontrolli e-posti",m="Kohustuslik v\xE4li",y="Vigane e-post v\xF5i parool.",b="Liiga palju katseid. Palun proovi m\xF5ne aja p\xE4rast uuesti.",v="Parooli meeldetuletus",_="Kasutaja lukus",w="Sinu konto on deaktiveeritud, aga sul on hetkel veel v\xF5imalus see taastada. ",C="\n          Seoses s\xFCsteemi uuenemisega palume k\xF5ikidel endistel kasutajatel valida uus parool ja see e-postile saadetava lingi abil kinnitada.\n        ",x="\n          Juhul kui ligip\xE4\xE4s oma e-postile puudub, palume meiega \xFChendust v\xF5tta e-kirja ([email protected]) v\xF5i telefoni (659 3967) teel.\n        ",k="Kohustuslik v\xE4li",S="Kontrolli e-posti",T="Kui see e-posti aadress on andmebaasis olemas, saadetakse sellele edasised juhised.",D="Link konto taastamiseks on saadetud sinu e-postile.",E="Viga kasutaja leidmisel, kontrolli e-posti aadressi.",O="Liiga palju katseid. Palun proovi m\xF5ne aja p\xE4rast uuesti.",I="E-post",P="Parool",A="Korda parooli",M="Olen tutvunud",F="kasutamis- ja privaatsustingimustega",R="Registreeru",N="Kohustuslik v\xE4li",L="Kontrolli e-posti",V="Kohustuslik v\xE4li",j="Parool peab olema 8 s\xFCmbolit pikk ja sisaldama v\xE4hemalt \xFChte suurt t\xE4hte ja numbrit.",B="Paroolid ei kattu",$="Kui see e-posti aadress pole veel registreeritud, saate peagi kinnituslingi.",[[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body","sign-in-modal-body"],[1,"modal-avatar"],["src","assets/images/TAI_logo_black_text.svg","alt","Tervise Arengu Instituut",4,"ngIf"],["src","assets/images/TAI_logo_ENG_RGB-01.png","alt","Tervise Arengu Instituut",4,"ngIf"],["id","sign-box loginForm",3,"ngClass","formGroup","ngSubmit"],[1,"form-group","d-flex","flex-column"],["for","email"],e,["type","text","required","","placeholder",t,"formControlName","email",1,"form-control"],[4,"ngIf"],["for","password"],n,["type","password","required","","placeholder",s,"formControlName","password",1,"form-control"],["class","error-message",4,"ngIf"],[1,"form-group","clearfix"],[1,"pull-right","reset-link"],[1,"modal-link",3,"click"],i,["type","submit",1,"btn","btn","btn-tai-third","btn-block","btn-animation-fix",3,"disabled"],r,[1,"sign-note","mb-0"],o,["type","button",1,"btn","btn-tai-third","outlined","btn-block",3,"click"],a,["id","reset-password",3,"ngClass","formGroup","ngSubmit"],["class","sign-title",4,"ngIf"],[1,"form-group"],["type","text","required","","placeholder",l,"formControlName","email",1,"form-control","border-radius-4",3,"disabled"],["class","mt-3 success-message",4,"ngIf"],["class","mt-3 error-message",4,"ngIf"],["type","submit",1,"btn","btn","btn-tai-third","btn-block",3,"disabled"],c,u,h,["id","sign-up",3,"formGroup","ngClass","ngSubmit"],[4,"ngIf","ngIfElse"],d,p,["formControlName","recaptcha","size","invisible","siteKey","6Le-QmYUAAAAACUPmrGCq9G_HK5Id4gJpxcXa_Qw",3,"resolved"],["recaptcha","reCaptcha"],["success",""],["src","assets/images/TAI_logo_black_text.svg","alt","Tervise Arengu Instituut"],["src","assets/images/TAI_logo_ENG_RGB-01.png","alt","Tervise Arengu Instituut"],[1,"error-message"],f,g,m,y,b,[1,"sign-title"],v,_,w,C,x,k,S,[1,"mt-3","success-message"],T,D,[1,"mt-3","error-message"],E,O,["id","user"],["type","text","placeholder",I,"formControlName","email","required","",1,"form-control"],["formGroupName","password",1,"form-group"],["type","password","placeholder",P,"formControlName","password","required","",1,"form-control"],["for","confirmPassword"],["type","password","placeholder",A,"formControlName","confirmPassword","required","",1,"form-control"],[1,"checkbox"],["type","checkbox","formControlName","terms","required","",1,"mr-2","mt-2"],[1,"pr-1"],M,["target","_blank",3,"routerLink"],F,["type","submit",1,"btn","btn-tai-third","btn-block",3,"disabled"],R,N,L,V,j,B,[1,"registration-success"],$]},template:function(e,t){if(1&e&&(Oc(0,"div",0),Oc(1,"button",1),jc("click",function(){return t.closeModal()}),Oc(2,"span",2),Mu(3,"\xd7"),Ic(),Ic(),Ic(),Oc(4,"div",3),Oc(5,"div",4),Gl(6,XN,1,0,"img",5),Gl(7,eL,1,0,"img",6),Ic(),Oc(8,"form",7),jc("ngSubmit",function(e){return t.onLoginSubmit(t.loginForm,e)}),Oc(9,"div",8),Oc(10,"label",9),Id(11,10),Ic(),Pc(12,"input",11),Gl(13,sL,3,2,"div",12),Ic(),Oc(14,"div",8),Oc(15,"label",13),Id(16,14),Ic(),Pc(17,"input",15),Gl(18,rL,2,1,"div",12),Ic(),Gl(19,oL,3,0,"div",16),Gl(20,aL,3,0,"div",16),Oc(21,"div",17),Oc(22,"div",18),Oc(23,"a",19),jc("click",function(){return t.togglePassword()}),Id(24,20),Ic(),Ic(),Ic(),Oc(25,"button",21),Id(26,22),Ic(),Oc(27,"p",23),Oc(28,"span"),Id(29,24),Ic(),Ic(),Oc(30,"button",25),jc("click",function(){return t.toggleSignUp()}),Id(31,26),Ic(),Ic(),Oc(32,"form",27),jc("ngSubmit",function(e){return t.resetSubmit(t.resetForm,e)}),Gl(33,lL,2,0,"header",28),Gl(34,cL,2,0,"header",28),Gl(35,uL,4,0,"ng-container",12),Gl(36,hL,6,0,"ng-container",12),Oc(37,"div",29),Oc(38,"label",9),Mu(39,"E-post"),Ic(),Pc(40,"input",30),Gl(41,fL,3,2,"div",12),Gl(42,gL,3,0,"div",31),Gl(43,mL,3,0,"div",31),Gl(44,yL,3,0,"div",32),Gl(45,bL,3,0,"div",32),Ic(),Oc(46,"button",33),Id(47,34),Ic(),Oc(48,"p",23),Oc(49,"span"),Id(50,35),Ic(),Ic(),Oc(51,"button",25),jc("click",function(){return t.toggleModal()}),Id(52,36),Ic(),Ic(),Oc(53,"form",37),jc("ngSubmit",function(e){return t.onRegistrationSubmit(t.registerForm,e)}),Gl(54,PL,29,15,"div",38),Oc(55,"p",23),Oc(56,"span"),Id(57,39),Ic(),Ic(),Oc(58,"button",25),jc("click",function(){return t.toggleModal()}),Id(59,40),Ic(),Oc(60,"re-captcha",41,42),jc("resolved",function(e){return t.resolved(e)}),Ic(),Ic(),Gl(62,AL,3,0,"ng-template",null,43,Wf),Ic()),2&e){const e=Zl(63);Lo(6),Tc("ngIf","et"===t.current_locale||"ru"===t.current_locale),Lo(1),Tc("ngIf","en"===t.current_locale),Lo(1),Tc("ngClass",t.modalStatus?"d-block":"d-none")("formGroup",t.loginForm),Lo(5
3),Tc("ngIf",t.logEmail.invalid&&t.logEmail.touched),Lo(5),Tc("ngIf",t.logPassword.invalid&&t.logPassword.touched),Lo(1),Tc("ngIf",t.loginError),Lo(1),Tc("ngIf",t.loginRateLimit),Lo(5),Tc("disabled",!t.loginForm.valid),Lo(7),Tc("ngClass",t.pwStatus?"d-block":"d-none")("formGroup",t.resetForm),Lo(1),Tc("ngIf",t.oldUser),Lo(1),Tc("ngIf",t.deactivatedUser),Lo(1),Tc("ngIf",t.deactivatedUser),Lo(1),Tc("ngIf",t.oldUser),Lo(4),Tc("disabled",t.deactivatedUser),Lo(1),Tc("ngIf",t.resetMail.invalid&&(t.resetMail.dirty||t.resetMail.touched)),Lo(1),Tc("ngIf",t.resetSuccess&&!t.deactivatedUser),Lo(1),Tc("ngIf",t.resetSuccess&&t.deactivatedUser),Lo(1),Tc("ngIf",t.resetFail),Lo(1),Tc("ngIf",t.resetRateLimit),Lo(1),Tc("disabled",!t.resetForm.valid),Lo(7),Tc("formGroup",t.registerForm)("ngClass",t.signupStatus?"d-block":"d-none"),Lo(1),Tc("ngIf",!t.registerSuccess)("ngIfElse",e)}},directives:[sb,Kw,gw,Jy,oC,L_,kC,fw,pC,UT,GT,lC,F_,SC,oT],styles:[".registration-success[_ngcontent-%COMP%]{padding:20px;border:3px solid #74d600;border-radius:10px;font-size:15px;margin-top:25px;margin-bottom:15px}.modal-content[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-radius:2px}.sign-title[_ngcontent-%COMP%]{margin:20px 0}.form-group[_ngcontent-%COMP%]{margin-bottom:13px}.modal-header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{box-shadow:none;outline:none}.brd-none[_ngcontent-%COMP%]{border:none}input[_ngcontent-%COMP%]{border-radius:4px}.sign-in-modal-body[_ngcontent-%COMP%]   input.form-control[_ngcontent-%COMP%]{color:#555}.sign-in-modal-body[_ngcontent-%COMP%]   .btn-animation-fix[_ngcontent-%COMP%]{transition:backgound-color .3s linear,color .3s linear,border .3s linear!important}"]});class FL{constructor(e){this.http=e,this.closed=!1}load(){return YF(this,void 0,void 0,function*(){yield this.refresh()})}refresh(){const e=IN.settings.apiServer.coreServer+"configuration/public-access";return new Promise(t=>{this.http.get(e).subscribe(e=>{this.closed=!(!e||!e.publicAccessClosed),t(this.closed)},()=>{this.closed=!1,t(this.closed)})})}isClosed(){return this.closed}}function RL(e,t){1&e&&(Oc(0,"div"),Oc(1,"p"),Id(2,8),Ic(),Oc(3,"p"),Ed(4,9),Pc(5,"br"),Od(),Ic(),Oc(6,"p"),Id(7,10),Ic(),Ic())}function NL(e,t){1&e&&(Oc(0,"div"),Oc(1,"p"),Id(2,11),Ic(),Oc(3,"p"),Ed(4,12),Pc(5,"br"),Od(),Ic(),Oc(6,"p"),Id(7,13),Ic(),Ic())}function LL(e,t){1&e&&(Oc(0,"div"),Oc(1,"p"),Id(2,14),Ic(),Oc(3,"p"),Ed(4,15),Pc(5,"br"),Od(),Ic(),Oc(6,"p"),Id(7,16),Ic(),Ic())}FL.ADMIN_AUTHORITY="tois.admin.access",FL.\u0275fac=function(e){return new(e||FL)(ri(l_))},FL.\u0275prov=ve({token:FL,factory:FL.\u0275fac,providedIn:"root"});const VL=function(e){return{"background-color":e}};class jL{constructor(e,t,n,s,i,r){this.modalService=t,this.router=n,this.publicAccessService=s,this.authenticationService=i,this.toastr=r,this.locale=e;const o=IN.settings,a=o&&o.app?o.app.id:null;this.bannerColor=jL.bannerColors[a]||"#00c0f1"}ngOnInit(){this.pollSub=rE(0,jL.POLL_MS).pipe(JC(()=>this.publicAccessService.refresh())).subscribe(e=>{e||this.router.navigate(["/"])})}ngOnDestroy(){this.pollSub&&this.pollSub.unsubscribe()}openLogin(){const e=this.modalService.open(ML,{windowClass:"modal-dialog-primary sign-in-modal"});e.componentInstance.suppressSuccessToast=!0,e.result.then(()=>{this.authenticationService.hasAuthority(FL.ADMIN_AUTHORITY)?this.router.navigate(["/"]):this.toastr.warning(this.restrictedMessage())},()=>{})}restrictedMessage(){return"ru"===this.locale?"\u0418\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044e - \u0432\u0445\u043e\u0434 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.":"en"===this.locale?"The environment is under maintenance - access is temporarily limited.":"Keskkond on hoolduses - ligip\xe4\xe4s on ajutiselt piiratud."}}jL.bannerColors={0:"#73d600",1:"#73d600",2:"#e96e2b",3:"#cd7cff",4:"#fb3e46",5:"#16b2ed"},jL.POLL_MS=1e4,jL.\u0275fac=function(e){return new(e||jL)(kc(jg),kc(AM),kc(iT),kc(FL),kc(YN),kc(FD))},jL.\u0275cmp=Je({type:jL,selectors:[["tois-maintenance"]],decls:10,vars:7,consts:function(){let e,t,n,s,i,r,o,a,l,c,u;return e="" + "\ufffd0\ufffd" + "",t="TAI login",n="\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F\u0445 NutriData \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u043F\u043E \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044E.",s="\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435." + "\ufffd#5\ufffd\ufffd/#5\ufffd" + "\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0432\u043E\u0437\u043D\u0438\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0431\u043B\u0435\u043C \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435 ([email protected]) \u0438\u043B\u0438 \u043F\u043E \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443 \u0441 10:00 \u0434\u043E 16:00 (6593855).",i="\u041F\u0440\u0438\u043D\u043E\u0441\u0438\u043C \u0438\u0437\u0432\u0438\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u043D\u0435\u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430!",r="NutriData applications are currently undergoing maintenance.",o="Please try again later." + "\ufffd#5\ufffd\ufffd/#5\ufffd" + "In case of problems, contact us by e-mail ([email protected]) or from 10 am to 4 pm by phone (6593855).",a="We apologize for any inconvenience!",l="Hetkel toimuvad NutriData rakendustes hooldust\xF6\xF6d.",c="Palun proovige m\xF5ne aja p\xE4rast uuesti." + "\ufffd#5\ufffd\ufffd/#5\ufffd" + "Probleemide korral v\xF5tke meiega \xFChendust e-kirja ([email protected]) v\xF5i kl 10-16 telefoni (6593855) teel.",u="Vabandame kaasnevate ebamugavuste p\xE4rast!",[[1,"maintenance-banner",3,"ngStyle"],e,[1,"maintenance-content",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"maintenance-login"],["type","button",1,"btn","btn-tai-custom",3,"click"],t,n,s,i,r,o,a,l,c,u]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"h1"),Id(2,1),Ic(),Ic(),Oc(3,"section",2),Gl(4,RL,8,0,"div",3),Gl(5,NL,8,0,"div",3),Gl(6,LL,8,0,"div",4),Oc(7,"div",5),Oc(8,"button",6),jc("click",function(){return t.openLogin()}),Id(9,7),Ic(),Ic(),Ic()),2&e&&(Tc("ngStyle",nf(5,VL,t.bannerColor)),Lo(2),Ad("ru"===t.locale?"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435":"en"===t.locale?"Update":"Uuendus"),Md(2),Lo(1),Tc("ngSwitch",t.locale),Lo(1),Tc("ngSwitchCase","ru"),Lo(1),Tc("ngSwitchCase","en"))},directives:[db,ab,lb,cb],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;font-family:Raleway,Open Sans,sans-serif;color:#333;background:#f5f5f5}.maintenance-banner[_ngcontent-%COMP%]{padding:20px;min-height:150px;display:flex;justify-content:center;align-items:center}.maintenance-banner[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff;font-size:28px;font-weight:600;margin:0;text-align:center;text-transform:uppercase}.maintenance-content[_ngcontent-%COMP%]{max-width:1170px;width:90%;margin:40px auto;padding:40px;background:#fff;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.1);line-height:25px}.maintenance-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:15px}.maintenance-login[_ngcontent-%COMP%]{margin-top:25px}@media (max-width:768px){.maintenance-banner[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:24px}.maintenance-content[_ngcontent-%COMP%]{margin:20px 15px;padding:30px 20px}}"]});class BL{constructor(e){this.http=e,this.apiServer=IN.settings.apiServer}getProps(e,t){const n=this.apiServer.coreServer+"ui-settings?app="+e+"&component="+t;return this.http.get(n)}
3addProps(e,t,n){const s=this.apiServer.coreServer+"ui-settings?app="+e+"&component="+t;return this.http.put(s,n)}editKey(e,t,n,s){const i=this.apiServer.coreServer+"ui-settings/"+n+"?app="+e+"&component="+t;return this.http.patch(i,s)}}BL.\u0275fac=function(e){return new(e||BL)(ri(l_))},BL.\u0275prov=ve({token:BL,factory:BL.\u0275fac,providedIn:"root"});class $L{constructor(e,t,n){this.publicAccessService=e,this.authenticationService=t,this.router=n}canActivate(e,t){return this.check()}canActivateChild(e,t){return this.check()}check(){return YF(this,void 0,void 0,function*(){return!(yield this.publicAccessService.refresh())||(!!this.authenticationService.hasAuthority(FL.ADMIN_AUTHORITY)||this.router.parseUrl("/hooldus"))})}}$L.\u0275fac=function(e){return new(e||$L)(ri(FL),ri(YN),ri(iT))},$L.\u0275prov=ve({token:$L,factory:$L.\u0275fac,providedIn:"root"});class zL{}zL.\u0275fac=function(e){return new(e||zL)},zL.\u0275mod=st({type:zL}),zL.\u0275inj=_e({providers:[IN,PN,GN,ZN],imports:[[Rb,E_,LC,ZT,qT],qT]});class UL{constructor(e){this.modal=e}action(e){this.subject.next(e),this.subject.complete(),this.modal.close()}}UL.\u0275fac=function(e){return new(e||UL)(kc(DM))},UL.\u0275cmp=Je({type:UL,selectors:[["tois-confirmation-modal"]],decls:15,vars:0,consts:function(){let e,t,n;return e="Antud v\xE4ljade t\xE4itmine on kohustuslik, et kasutada toidu- ja liikumisp\xE4eviku funktsioone. Olete kindel, et soovite lahkuda?",t="Lahku lehelt",n="Tagasi vormi juurde",[[1,"modal-header","modal-block-primary"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"sr-only"],[1,"modal-body","clearfix"],[1,"modal-text"],e,[1,"modal-footer"],[1,"btn","btn-default",3,"click"],t,[1,"btn","btn-tai-form","active","py-1",3,"click"],n]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"button",1),jc("click",function(){return t.modal.close()}),Oc(2,"span",2),Mu(3,"\xd7"),Ic(),Oc(4,"span",3),Mu(5,"Close"),Ic(),Ic(),Ic(),Oc(6,"div",4),Oc(7,"div",5),Oc(8,"p"),Id(9,6),Ic(),Ic(),Ic(),Oc(10,"div",7),Oc(11,"button",8),jc("click",function(){return t.action(!0)}),Id(12,9),Ic(),Oc(13,"button",10),jc("click",function(){return t.action(!1)}),Id(14,11),Ic(),Ic())},styles:[""]});class HL{constructor(e){this.modalService=e}canDeactivate(e){if(e.userForm.dirty){const e=new k;return this.modalService.open(UL,{windowClass:"modal-dialog-primary"}).componentInstance.subject=e,e.asObservable()}return!0}}HL.\u0275fac=function(e){return new(e||HL)(ri(AM))},HL.\u0275prov=ve({token:HL,factory:HL.\u0275fac,providedIn:"root"});class qL{constructor(e,t,n,s){this.authenticationService=e,this.router=t,this.appConfig=n,this.messages=s,this.refreshTokenInProgress=!1,this.tokenSubject=new jC(null)}intercept(e,t){const n=this.authenticationService.getAccessToken();return e.headers.has("Authorization")||!n?t.handle(e):t.handle(this.addToken(e,n)).pipe(cx(n=>{if(!(n instanceof o_))return ZD(n);switch(n.status){case 400:return"invalid_grant"===n.error.error&&this.authenticationService.logout(),ZD(n);case 401:return"invalid_token"===n.error.error?this.handle401Error(e,t):(this.authenticationService.logout(),ZD(n));case 423:return"update_running"===n.error.message&&"tka"!==this.appConfig.getSettings().app.appKey&&this.handle423Error(e,t),ZD(n);default:return ZD(n)}}))}handle423Error(e,t){const n="/"+this.messages.routeMap.updateRunning;this.router.navigate([n])}handle401Error(e,t){return console.log("handle401Error",this.refreshTokenInProgress),this.refreshTokenInProgress||(this.refreshTokenInProgress=!0,this.tokenSubject.next(null),this.authenticationService.refreshToken().subscribe(e=>{e&&this.tokenSubject.next(e),this.tokenSubject.error("Unable to refresh access token!")},e=>{this.authenticationService.logout(),this.tokenSubject.error(e)},()=>{this.refreshTokenInProgress=!1})),this.tokenSubject.pipe(Uv(e=>null!=e),nx(1),JC(n=>t.handle(this.addToken(e,n))))}addToken(e,t){return e.clone({setHeaders:{Authorization:"Bearer "+t}})}}qL.\u0275fac=function(e){return new(e||qL)(ri(YN),ri(iT),ri(IN),ri(MN))},qL.\u0275prov=ve({token:qL,factory:qL.\u0275fac,providedIn:"root"});const WL={ru:"rus",en:"eng",et:"est"};function KL(e,t){1&e&&Fc(0)}const GL=function(e){return{locale:e}};class ZL{constructor(e,t,n){var s;this.modal=e,this.messages=t,this.componentName="",this.current_locale=n,this.langSuffix=null!==(s=WL[this.current_locale])&&void 0!==s?s:"est"}ngOnInit(){}action(e){this.subject.next(e),this.subject.complete(),this.modal.close()}}function QL(e,t){if(1&e&&(Ac(0),Fc(1,37),Mc()),2&e){Hc(2);const e=Zl(39);Lo(1),Tc("ngTemplateOutlet",e)}}function YL(e,t){1&e&&(Oc(0,"span",38),Mu(1,"\xd7"),Ic(),Oc(2,"span",39),Id(3,40),Ic())}function JL(e,t){if(1&e){const e=Rc();Oc(0,"button",34),jc("click",function(){Yt(e);
3return Hc().tabletMenuToggle.emit()}),Gl(1,QL,2,1,"ng-container",35),Gl(2,YL,4,0,"ng-template",null,36,Wf),Ic()}if(2&e){const e=Zl(3),t=Hc();yu("change",t.mobileMenuOpen),Lo(1),Tc("ngIf",!t.mobileMenuOpen)("ngIfElse",e)}}function XL(e,t){if(1&e&&Pc(0,"span",44),2&e){Tc("innerHTML",Hc(2).notification.text,br)}}function eV(e,t){if(1&e){const e=Rc();Oc(0,"span",45),jc("click",function(){Yt(e);const t=Hc(2),n=Zl(35);return t.openNotificationModal(n)}),Ic()}if(2&e){Tc("innerHTML",Hc(2).notification.detailsLink,br)}}function tV(e,t){if(1&e&&(Oc(0,"div",41),Kc(1,3),Gl(2,XL,1,1,"span",42),Gl(3,eV,1,1,"span",43),Ic()),2&e){const e=Hc();Tc("ngClass",e.notificationClass),Lo(2),Tc("ngIf",e.notification.text),Lo(1),Tc("ngIf",e.notification.hasDetails)}}function nV(e,t){if(1&e&&(Oc(0,"button",46),Oc(1,"span"),Mu(2),Ic(),Pc(3,"span",47),Ic()),2&e){const e=Hc();Lo(2),Fu(e.applicationSelectorButtonText)}}function sV(e,t){if(1&e&&Pc(0,"button",48),2&e){Tc("ngClass",Hc().applicationSelectorIconClass)}}function iV(e,t){if(1&e&&(Oc(0,"div",49),Fc(1,37),Ic()),2&e){Hc();const e=Zl(47);Lo(1),Tc("ngTemplateOutlet",e)}}function rV(e,t){1&e&&Pc(0,"span",47)}function oV(e,t){if(1&e&&(Oc(0,"div",56),Fc(1,37),Ic()),2&e){Hc(2);const e=Zl(49);Lo(1),Tc("ngTemplateOutlet",e)}}function aV(e,t){if(1&e&&(Oc(0,"div",50,51),Oc(2,"button",52),Pc(3,"span",53),Gl(4,rV,1,0,"span",54),Ic(),Gl(5,oV,2,1,"div",55),Ic()),2&e){const e=Zl(1),t=Hc();Tc("ngClass",t.languageSelectorClass),Lo(3),Tc("innerHtml",t.getLanguageButtonText(),br),Lo(1),Tc("ngIf",t.showLanguageChevron),Lo(1),Tc("ngIf",e.isOpen())}}function lV(e,t){if(1&e){const e=Rc();Oc(0,"a",60),jc("click",function(t){Yt(e);return Hc(2).openLoginModal(!0,t)}),Ic()}if(2&e){Tc("innerHTML",Hc(2).getRegisterText(),br)}}function cV(e,t){if(1&e){const e=Rc();Oc(0,"div",57),Oc(1,"a",58),jc("click",function(t){Yt(e);return Hc().openLoginModal(!1,t)}),Ic(),Gl(2,lV,1,1,"a",59),Ic()}if(2&e){const e=Hc();Tc("ngClass",e.authActionsClass),Lo(1),Tc("innerHTML",e.getLoginText(),br),Lo(1),Tc("ngIf",e.showRegisterAction)}}function uV(e,t){if(1&e&&Pc(0,"span",7),2&e){Tc("ngClass",Hc(2).userMenuIconClass)}}function hV(e,t){if(1&e&&(Oc(0,"span"),Mu(1),Ic()),2&e){const e=Hc().ngIf;Lo(1),Fu(e.email)}}function dV(e,t){if(1&e&&(Oc(0,"span"),Mu(1),Gl(2,hV,2,1,"span",65),Ic()),2&e){const e=t.ngIf;Lo(1),Ru(" ",e.name," "),Lo(1),Tc("ngIf",null==e.name||""==e.name)}}function pV(e,t){1&e&&Pc(0,"span",47)}ZL.\u0275fac=function(e){return new(e||ZL)(kc(DM),kc(MN),kc(jg))},ZL.\u0275cmp=Je({type:ZL,selectors:[["tois-ui-update-info-modal"]],inputs:{modalBodyTemplate:"modalBodyTemplate"},decls:15,vars:6,consts:function(){let e,t;return e="" + "\ufffd0\ufffd" + "",t="" + "\ufffd0\ufffd" + "",[[1,"modal-header","modal-block-primary","mt-lg-3"],[1,"w-100"],[1,"modal-title","pull-left"],e,["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"sr-only"],[1,"modal-body","clearfix"],[1,"modal-text"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modal-footer"],["aria-label","Close",1,"btn","btn-tai-form","active",3,"click"],t]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"div",1),Oc(2,"h5",2),Id(3,3),Ic(),Ic(),Oc(4,"button",4),jc("click",function(){return t.action(!0)}),Oc(5,"span",5),Mu(6,"\xd7"),Ic(),Oc(7,"span",6),Mu(8,"Close"),Ic(),Ic(),Ic(),Oc(9,"div",7),Oc(10,"div",8),Gl(11,KL,1,0,"ng-container",9),Ic(),Ic(),Oc(12,"div",10),Oc(13,"button",11),jc("click",function(){return t.action(!0)}),Id(14,12),Ic(),Ic()),2&e&&(Lo(3),Ad(t.messages.modalHeaders.uiUpdates[t.langSuffix]),Md(3),Lo(8),Tc("ngTemplateOutlet",t.componentBody)("ngTemplateOutletContext",nf(4,GL,t.current_locale)),Lo(3),Ad(t.messages.buttons.infoOk[t.langSuffix]),Md(14))},directives:[pb],styles:[""]});const fV=function(){return{mobile:!1}};function gV(e,t){if(1&e&&(Oc(0,"div",67),Fc(1,68),Ic()),2&e){Hc(2);const e=Zl(51);Lo(1),Tc("ngTemplateOutlet",e)("ngTemplateOutletContext",tf(2,fV))}}function mV(e,t){if(1&e&&(Oc(0,"div",57),Oc(1,"div",61,62),Oc(3,"button",63),Gl(4,uV,1,1,"span",64),Gl(5,dV,3,2,"span",65),bf(6,"async"),Gl(7,pV,1,0,"span",54),Ic(),Gl(8,gV,2,3,"div",66),Ic(),Ic()),2&e){const e=Zl(2),t=Hc();Tc("ngClass",t.userMenuClass),Lo(4),Tc("ngIf",t.userMenuIconClass),Lo(1),Tc("ngIf",vf(6,5,t.user$)),Lo(2),Tc("ngIf",t.showUserMenuChevron),Lo(1),Tc("ngIf",e.isOpen())}}function yV(e,t){1&e&&(Oc(0,"div",69),Kc(1,4),Ic())}function bV(e,t){if(1&e&&Fc(0,37),2&e){Hc();Tc("ngTemplateOutlet",Zl(41))}}function vV(e,t){if(1&e&&Fc(0,37),2&e){Hc();Tc("ngTemplateOutlet",Zl(45))}}function _V(e,t){if(1&e){const e=Rc();Oc(0,"button",70),jc("click",function(){Yt(e);return Hc().mobileMenuToggle.emit()}),Kc(1,5),Fc(2,37),Ic()}if(2&e){const e=Hc(),t=Zl(37);
3yu("change",e.mobileMenuOpen),Lo(2),Tc("ngTemplateOutlet",t)}}function wV(e,t){if(1&e&&Fc(0,37),2&e){Hc();Tc("ngTemplateOutlet",Zl(43))}}function CV(e,t){if(1&e){const e=Rc();Oc(0,"a",74),jc("click",function(t){Yt(e);return Hc(2).openLoginModal(!1,t)}),bf(1,"async"),Ic()}if(2&e){const e=Hc(2);Tc("hidden",vf(1,2,e.logStatus$))("innerHTML",e.getLoginText(),br)}}function xV(e,t){if(1&e){const e=Rc();Oc(0,"a",75),jc("click",function(t){Yt(e);return Hc(2).openLoginModal(!0,t)}),bf(1,"async"),Ic()}if(2&e){const e=Hc(2);Tc("hidden",vf(1,2,e.logStatus$))("innerHTML",e.getRegisterText(),br)}}function kV(e,t){if(1&e&&Fc(0,37),2&e){Hc(2);Tc("ngTemplateOutlet",Zl(43))}}function SV(e,t){if(1&e&&Fc(0,37),2&e){Hc(2);Tc("ngTemplateOutlet",Zl(41))}}function TV(e,t){if(1&e&&Fc(0,37),2&e){Hc(2);Tc("ngTemplateOutlet",Zl(45))}}function DV(e,t){if(1&e&&(Oc(0,"div",71),Gl(1,CV,2,4,"a",72),Gl(2,xV,2,4,"a",73),Gl(3,kV,1,1,"ng-container",22),Gl(4,SV,1,1,"ng-container",22),Gl(5,TV,1,1,"ng-container",22),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.showAuthActions),Lo(1),Tc("ngIf",e.showAuthActions&&e.showRegisterAction),Lo(1),Tc("ngIf","auth"===e.mobileUserMenuPlacement),Lo(1),Tc("ngIf","auth"===e.mobileApplicationSelectorPlacement),Lo(1),Tc("ngIf","auth"===e.mobileLanguageSelectorPlacement)}}function EV(e,t){if(1&e&&Pc(0,"span",44),2&e){Tc("innerHTML",Hc(2).notification.text,br)}}function OV(e,t){if(1&e){const e=Rc();Oc(0,"span",45),jc("click",function(){Yt(e);const t=Hc(2),n=Zl(35);return t.openNotificationModal(n)}),Ic()}if(2&e){Tc("innerHTML",Hc(2).notification.detailsLink,br)}}function IV(e,t){if(1&e&&(Oc(0,"div",41),Kc(1,6),Gl(2,EV,1,1,"span",42),Gl(3,OV,1,1,"span",43),Ic()),2&e){const e=Hc();Tc("ngClass",e.notificationClass),Lo(2),Tc("ngIf",e.notification.text),Lo(1),Tc("ngIf",e.notification.hasDetails)}}function PV(e,t){if(1&e&&Pc(0,"h5",81),2&e){Tc("innerHTML",Hc(2).notification.modalTitle,br)}}function AV(e,t){if(1&e&&Pc(0,"span",44),2&e){Tc("innerHTML",Hc(2).notification.details,br)}}function MV(e,t){if(1&e){const e=Rc();Oc(0,"div",76),Gl(1,PV,1,1,"h5",77),Oc(2,"button",78),jc("click",function(){Yt(e);return Hc().notificationModalRef.dismiss()}),Oc(3,"span",79),Mu(4,"\xd7"),Ic(),Ic(),Ic(),Oc(5,"div",80),Kc(6,7),Gl(7,AV,1,1,"span",42),Ic()}if(2&e){const e=Hc();Lo(1),Tc("ngIf",e.notification.modalTitle),Lo(6),Tc("ngIf",e.notification.details)}}function FV(e,t){1&e&&(Oc(0,"span",82),Pc(1,"span",83),Pc(2,"span",84),Pc(3,"span",85),Ic())}function RV(e,t){if(1&e&&(Fc(0,37),Oc(1,"span",39),Id(2,86),Ic()),2&e){Hc();Tc("ngTemplateOutlet",Zl(37))}}function NV(e,t){if(1&e&&(Oc(0,"button",46),Oc(1,"span"),Mu(2),Ic(),Pc(3,"span",47),Ic()),2&e){const e=Hc(2);Lo(2),Fu(e.applicationSelectorButtonText)}}function LV(e,t){if(1&e&&Pc(0,"button",48),2&e){Tc("ngClass",Hc(2).applicationSelectorIconClass)}}function VV(e,t){if(1&e&&(Oc(0,"div",49),Fc(1,37),Ic()),2&e){Hc(2);const e=Zl(47);Lo(1),Tc("ngTemplateOutlet",e)}}function jV(e,t){if(1&e&&(Oc(0,"div",87),Oc(1,"div",88,89),Gl(3,NV,4,1,"button",10),Gl(4,LV,1,1,"button",11),Gl(5,VV,2,1,"div",12),Ic(),Ic()),2&e){const e=Zl(2),t=Hc();Lo(3),Tc("ngIf","button"===t.mobileApplicationSelectorVariant),Lo(1),Tc("ngIf","icon"===t.mobileApplicationSelectorVariant),Lo(1),Tc("ngIf",e.isOpen())}}function BV(e,t){if(1&e&&Pc(0,"span",7),2&e){Tc("ngClass",Hc(3).userMenuIconClass)}}function $V(e,t){if(1&e&&(Oc(0,"span"),Mu(1),Ic()),2&e){const e=Hc().ngIf;Lo(1),Fu(e.email)}}function zV(e,t){if(1&e&&(Oc(0,"span"),Mu(1),Gl(2,$V,2,1,"span",65),Ic()),2&e){const e=t.ngIf;Lo(1),Ru(" ",e.name," "),Lo(1),Tc("ngIf",null==e.name||""==e.name)}}function UV(e,t){1&e&&Pc(0,"span",47)}const HV=function(){return{mobile:!0}};function qV(e,t){if(1&e&&(Oc(0,"div",67),Fc(1,68),Ic()),2&e){Hc(3);const e=Zl(51);Lo(1),Tc("ngTemplateOutlet",e)("ngTemplateOutletContext",tf(2,HV))}}function WV(e,t){if(1&e&&(Oc(0,"div",91),Oc(1,"div",92,93),Oc(3,"button",94),Gl(4,BV,1,1,"span",64),Gl(5,zV,3,2,"span",65),bf(6,"async"),Gl(7,UV,1,0,"span",54),Ic(),Gl(8,qV,2,3,"div",66),Ic(),Ic()),2&e){const e=Zl(2),t=Hc(2);Tc("ngClass",t.mobileUserMenuClass),Lo(3),Tc("ngClass","top"===t.mobileUserMenuPlacement?"p-0 m-0":""),Lo(1),Tc("ngIf",t.userMenuIconClass),Lo(1),Tc("ngIf",t.showMobileUserMenuName&&vf(6,6,t.user$)),Lo(2),Tc("ngIf",t.showUserMenuChevron),Lo(1),Tc("ngIf",e.isOpen())}}function KV(e,t){if(1&e&&(Gl(0,WV,9,8,"div",90),bf(1,"async")),2&e){const e=Hc();Tc("ngIf",e.showUserMenu&&vf(1,1,e.logStatus$))}}function GV(e,t){1&e&&Pc(0,"span",47)}function ZV(e,t){if(1&e&&(Oc(0,"div",56),Fc(1,37),Ic()),2&e){Hc(3);const e=Zl(49);Lo(1),Tc("ngTemplateOutlet",e)}}function QV(e,t){if(1&e&&(Oc(0,"div",96,97),Oc(2,"button",52),Pc(3,"span",53),Gl(4,GV,1,0,"span",54),Ic(),Gl(5,ZV,2,1,"div",55),Ic()),2&e){const e=Zl(1),t=Hc(2);Lo(3),Tc("innerHtml",t.getLanguageButtonText(),br),Lo(1),Tc("ngIf",t.showLanguageChevron),Lo(1),Tc("ngIf",e.isOpen())}}function YV(e,t){if(1&e&&Gl(0,QV,6,3,"div",95),2&e){Tc("ngIf",Hc().showLanguageSelector)}}function JV(e,t){if(1&e&&Pc(0,"span",7),2&e){Tc("ngClass",Hc(3).applicationSelectorItemIconClass)}}const XV=function(e){return[e]};function ej(e,t){if(1&e&&(Ac(0),Oc(1,"a",99),Gl(2,JV,1,1,"span",64),Pc(3,"span",44),Ic(),Mc()),2&e){const e=t.$implicit,n=Hc(2);Lo(1),Tc("ngClass",e.key===n.app.appKey?"active-nav":"")("href",n.getApplicationUrl(e),_r),Lo(1),Tc("ngIf",n.applicationSelectorItemIconClass),Lo(1),Tc("innerHTML",nf(4,XV,e.value.title[n.current_locale]),br)}}function tj(e,t){if(1&e&&(Gl(0,ej,4,6,"ng-container",98),bf(1,"keyvalue")),2&e){Tc("ngForOf",vf(1,1,Hc().toisApplications))}}function nj(e,t){if(1&e&&Pc(0,"a",101),2&e){const e=Hc(2);Tc("href",e.getLanguageUrl("et"),_r)("innerHtml",e.getLanguageMenuText("et"),br)}}function sj(e,t){if(1&e&&Pc(0,"a",101),2&e){const e=Hc(2);Tc("href",e.getLanguageUrl("en"),_r)("innerHtml",e.getLanguageMenuText("en"),br)}}function ij(e,t){if(1&e&&Pc(0,"a",101),2&e){const e=Hc(2);Tc("href",e.getLanguageUrl("ru"),_r)("innerHtml",e.getLanguageMenuText("ru"),br)}}function rj(e,t){if(1&e&&(Gl(0,nj,1,2,"a",100),Gl(1,sj,1,2,"a",100),Gl(2,ij,1,2,"a",100)),2&e){const e=Hc();Tc("ngIf","et"!==e.current_locale),Lo(1),Tc("ngIf","en"!==e.current_locale),Lo(1),Tc("ngIf","ru"!==e.current_locale)}}function oj(e,t){if(1&e&&(Oc(0,"a",103),Mu(1),bf(2,"async"),Ic()),2&e){const e=Hc(2);let t=null;Lo(1),Fu(null==(t=vf(2,1,e.user$))?null:t.name)}}function aj(e,t){if(1&e&&Pc(0,"span",7),2&e){Tc("ngClass",Hc(2).$implicit.iconClass)}}function lj(e,t){if(1&e){const e=Rc();Oc(0,"a",106),jc("click",function(t){Yt(e);const n=Hc().$implicit;return Hc(2).onProfileMenuItemClick(n,t)}),Gl(1,aj,1,1,"span",64),Pc(2,"span",44),Ic()}if(2&e){const e=Hc().$implicit,t=Hc(2);Tc("ngClass",e.cssClass)("routerLink",e.routerLink),Lo(1),Tc("ngIf",e.iconClass),Lo(1),Tc("innerHTML",t.getProfileMenuItemText(e),br)}}function cj(e,t){if(1&e&&Pc(0,"span",7),2&e){Tc("ngClass",Hc(2).$implicit.iconClass)}}function uj(e,t){if(1&e){const e=Rc();Oc(0,"a",107),jc("click",function(t){Yt(e);const n=Hc().$implicit;return Hc(2).onProfileMenuItemClick(n,t)}),Gl(1,cj,1,1,"span",64),Pc(2,"span",44),Ic()}if(2&e){const e=Hc().$implicit,t=Hc(2);Tc("ngClass",e.cssClass),Ol("href",e.href||"",_r),Lo(1),Tc("ngIf",e.iconClass),Lo(1),Tc("innerHTML",t.getProfileMenuItemText(e),br)}}function hj(e,t){if(1&e&&(Ac(0),Gl(1,lj,3,4,"a",104),Gl(2,uj,3,4,"a",105),Mc()),2&e){const e=t.$implicit,n=Hc(2);Lo(1),Tc("ngIf",n.isProfileMenuItemVisible(e)&&e.routerLink),Lo(1),Tc("ngIf",n.isProfileMenuItemVisible(e)&&!e.routerLink)}}function dj(e,t){if(1&e&&(Gl(0,oj,3,3,"a",102),Gl(1,hj,3,2,"ng-container",98)),2&e){const e=t.mobile,n=Hc();Tc("ngIf",e),Lo(1),Tc("ngForOf",e?n.mobileUserMenuItems:n.desktopUserMenuItems)}}const pj=["*",[["","toisTopBarMobileBrand",""]],[["","toisTopBarMobileActions",""]],[["","toisTopBarNotification",""]],[["","toisTopBarMobileLogo",""]],[["","toisTopBarMobileMenuToggle",""]],[["","toisTopBarMobileNotification",""]],[["","toisTopBarNotificationDetail
3s",""]]];class fj{constructor(e,t,n,s,i,r,o,a){this.pagesService=e,this.router=t,this.route=n,this.messages=s,this.authenticationService=i,this.titleService=r,this.modalService=o,this.showLanguageSelector=!0,this.topBarClass="",this.topBarMobileClass="",this.showMobileLogo=!0,this.languageSelectorClass="",this.applicationSelectorClass="",this.languageButtonTexts={},this.showLanguageChevron=!1,this.mobileLanguageSelectorPlacement="auth",this.applicationSelectorVariant="button",this.mobileApplicationSelectorVariant="button",this.mobileApplicationSelectorPlacement="auth",this.applicationSelectorIconClass="fab fa-buromobelexperte fa-lg px-2 mr-0",this.applicationSelectorItemIconClass="",this.applicationSelectorButtonText="Vali infos\xfcsteem",this.mobileMenuOpen=!1,this.showTabletMenuToggle=!0,this.showMobileMenuToggle=!0,this.showAuthActions=!0,this.showRegisterAction=!1,this.loginText="",this.authActionsClass="",this.addRedirectQueryOnLogin=!1,this.handleAuthRouteParameters=!1,this.showUserMenu=!0,this.userMenuClass="",this.mobileUserMenuClass="",this.userMenuIconClass="",this.mobileUserMenuPlacement="auth",this.showMobileUserMenuName=!1,this.showUserMenuChevron=!1,this.logoutRedirect=["/"],this.mobileInstructionsAction="",this.showNotification=!1,this.showNotificationDetails=!1,this.notificationText="",this.notificationDetailsText="",this.notificationDetailsLinkText="",this.notificationModalTitle="",this.notificationClass="",this.notificationModalWindowClass="modal-dialog-primary portion-size-modal",this.notificationModalSize=null,this.userMenuAction=new Df,this.mobileMenuToggle=new Df,this.tabletMenuToggle=new Df,this.app=IN.settings.app,this.toisApplications=IN.settings.toisApplications,this.langSuffix="Est",this.est_url="",this.eng_url="",this.rus_url="",this.linkSlugs={termsSlug:"default",basicSlug:"defaultBasic",advancedSlug:"defaultAdvanced"},this.user$=this.authenticationService.user$,this.logStatus$=this.user$.pipe(D(e=>null!=e)),this.notification={show:!1,text:"",details:"",detailsLink:"",hasDetails:!1,modalTitle:""},this.desktopUserMenuItems=[],this.mobileUserMenuItems=[],this.ngDestroy=new k,this.current_locale=a,this.setLanguageInfo(),this.listenPageLinkSlugs(),this.listenRouter()}get showMobileAuthRow(){return this.showAuthActions||"auth"===this.mobileApplicationSelectorPlacement||this.showLanguageSelector&&"auth"===this.mobileLanguageSelectorPlacement||this.showUserMenu&&"auth"===this.mobileUserMenuPlacement}ngOnInit(){this.buildNotification(),this.buildUserMenuItems(),this.handleAuthRouteParameters&&this.listenAuthRouteParameters()}ngOnChanges(e){["showNotification","showNotificationDetails","notificationText","notificationDetailsText","notificationDetailsLinkText","notificationModalTitle"].some(t=>t in e)&&this.buildNotification(),("userMenuItems"in e||"mobileInstructionsAction"in e)&&this.buildUserMenuItems()}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}setLanguageSlugs(e){const t=this.parseUrl(e),n=decodeURIComponent(t.path),s=this.getAppTitle();if("/"===n)return this.est_url="",this.eng_url="",this.rus_url="",void this.titleService.setTitle(s);const i=n.split("/");i.shift();const r=i[0],o=this.findCurrentPage(r),a=[],l=[],c=[],u=[];o&&(i.shift(),a.push(o.slugEst),l.push(o.slugEng),c.push(o.slugRus),u.push(o["title"+this.langSuffix]));for(const h of i){const e=this.getFixedSlug(h);e?(a.push(e.est.slug),l.push(e.eng.slug),c.push(e.rus.slug),u.push(e[this.langSuffix.toLowerCase()].title)):(a.push(h),l.push(h),c.push(h))}u.push(s),this.est_url=this.appendUrlSuffix(a.join("/"),t.query,t.fragment),this.eng_url=this.appendUrlSuffix(l.join("/"),t.query,t.fragment),this.rus_url=this.appendUrlSuffix(c.join("/"),t.query,t.fragment),this.titleService.setTitle(u.join(" - "))}getLanguageUrl(e){const t={et:this.est_url,en:this.eng_url,ru:this.rus_url};return this.app.baseUrl+e+"/"+t[e]}getLanguageButtonText(e=this.current_locale){return this.languageButtonTexts[e]||this.getDefaultLanguageButtonText(e)}getLanguageMenuText(e){const t=this.getMessageLanguageCode(e);return this.messages.topBarLanguage.menu[t]}getApplicationUrl(e){return e.value.link.concat(!0===e.value.translated?this.current_locale:"")}openLoginModal(e,t){t&&t.preventDefault(),this.modalRef=this.modalService.open(ML,{windowClass:"modal-dialog-primary sign-in-modal"}),this.modalRef.componentInstance.redirectToRegister=e,!e&&this.addRedirectQueryOnLogin&&this.modalRef.result.then(()=>{this.router.navigate([],{relativeTo:this.route,queryParams:{redirect:"true"},queryParamsHandling:"merge"})}).catch(()=>{})}getHomeUrl(){return this.app.baseUrl+this.current_locale+"/"}getLoginText(){return this.getLocalizedText(this.loginText)||this.getLocalizedText(this.messages.topBarAuth.login)}getRegisterText(){return this.getLocalizedText(this.messages.topBarAuth.register)}getUserMenuItems(e=!1){const t=this.userMenuItems||this.getDefaultUserMenuItems();return e&&this.mobileInstructionsAction?t.map(e=>this.isInstructionsMenuItem(e)?Object.assign(Object.assign({},e),{action:this.mobileInstructionsAction,routerLink:null}):e):t}buildUserMenuItems(){this.desktopUserMenuItems=this.getUserMenuItems(),this.mobileUserMenuItems=this.getUserMenuItems(!0)}getProfileMenuItemText(e){return this.getLocalizedText(e.label)}isProfileMenuItemVisible(e){return!1!==e.visible}onProfileMenuItemClick(e,t){e.action&&t.preventDefault(),"logout"!==e.action?e.action&&this.userMenuAction.emit(e):this.logOut()}logOut(){this.authenticationService.logout(),setTimeout(()=>{this.router.navigate(Array.isArray(this.logoutRedirect)?this.logoutRedirect:[this.logoutRedirect])},250)}openNotificationModal(e){this.notificationModalRef=this.modalService.open(e,{windowClass:this.notificationModalWindowClass,centered:!0,size:this.notificationModalSize})}listenRouter(){this.router.events.pipe(AT(this.ngDestroy)).subscribe(e=>{e instanceof Px&&(this.pages?this.setLanguageSlugs(e.url):this.pagesService.getPages().pipe(AT(this.ngDestroy)).subscribe({next:e=>{this.pages=e;for(const t of this.pages)this.setPageLinkSlug(t)},error:t=>{console.log(t),this.pages=[],this.setLanguageSlugs(e.url)},complete:()=>{this.setLanguageSlugs(e.url)}})),e instanceof Ix&&e.url==="/"+this.messages.routeMap.updateRunning&&this.modalService.dismissAll()})}getDefaultUserMenuItems(){return[{label:this.messages.topBarUserMenu.profile,routerLink:["/"+this.messages.routeMap.profile]},{label:this.messages.topBarUserMenu.instructions,routerLink:["/"+this.messages.routeMap.instructions]},{label:this.messages.topBarUserMenu.terms,routerLink:["/"+this.messages.routeMap.terms]},{label:this.messages.topBarUserMenu.updates,routerLink:["/"+this.messages.routeMap.updates]},{label:this.messages.topBarUserMenu.logout,action:"logout",iconClass:"fal fa-sign-out pr-2"}]}isInstructionsMenuItem(e){const t="/"+this.messages.routeMap.instructions;return Array.isArray(e.routerLink)?e.routerLink[0]===t:e.routerLink===t}listenPageLinkSlugs(){this.pagesService.currentJson.pipe(AT(this.ngDestroy)).subscribe(e=>{this.linkSlugs=e})}listenAuthRouteParameters(){this.route.queryParams.pipe(AT(this.ngDestroy)).subscribe(e=>{if(this.router.url.split("/").length>2)return;const t=e[this.messages.fixedPathVariables.modal[this.langSuffix.toLowerCase()]];t&&(t===this.messages.fixedPathVariables.register[this.langSuffix.toLowerCase()]?this.openLoginModal(!0):t===this.messages.fixedPathVariables.login[this.langSuffix.toLowerCase()]&&this.openLoginModal(!1))})}setPageLinkSlug(e){switch(e.module){case"page_terms":this.linkSlugs.termsSlug=e["slug"+this.langSuffix],this.pagesService.changeSlug(this.linkSlugs);break;case"page_basic":this.linkSlugs.basicSlug=e["slug"+this.langSuffix],this.pagesService.changeSlug(this.linkSlugs);break;case"page_advanced":this.linkSlugs.advancedSlug=e["slug"+this.langSuffix],this.pagesService.changeSlug(this.linkSlugs)}}setLanguageInfo(){"et"===this.current_locale?this.langSuffix="Est":"en"===this.current_locale?this.langSuffix="Eng":"ru"===this.current_locale&&(this.langSuffix="Rus")}getDefaultLanguageButtonText(e){const t=this.getMessageLanguageCode(e);return this.messages.topBarLanguage.button[t]}getMessageLanguageCode(e){return{et:"est",en:"eng",ru:"rus"}[e]}getAppTitle(){const e=this.app.appKey;return this.toisApplications[e].title[this.current_locale]}findCurrentPage(e){return(this.pages||[]).find(t=>t["slug"+this.langSuffix]===e)}parseUrl(e){let t=e,n="",s="";const i=t.split("#");i.length>1&&(t=i.shift(),s=i.join("#"));const r=t.split("?");return r.length>1&&(t=r.shift(),n=r.join("?")),{path:t,query:n,fragment:s}}buildNotification(){if(!this.showNotification)return void(this.notification={show:!1,text:"",details:"",detailsLink:"",hasDetail
3s:!1,modalTitle:""});const e=this.getLocalizedText(this.notificationDetailsText)||this.getLocalizedText(this.messages.topBarNotification.databaseUpdate.details);this.notification={show:!0,text:this.getLocalizedText(this.notificationText)||this.getLocalizedText(this.messages.topBarNotification.databaseUpdate.short),details:e,detailsLink:this.getLocalizedText(this.notificationDetailsLinkText)||this.getLocalizedText(this.messages.topBarNotification.databaseUpdate.detailsLink),hasDetails:this.showNotificationDetails&&!!e,modalTitle:this.getLocalizedText(this.notificationModalTitle)}}getFixedSlug(e){return Object.keys(this.messages.fixedSlugs).map(e=>this.messages.fixedSlugs[e]).find(t=>t[this.langSuffix.toLowerCase()].slug===e)}appendUrlSuffix(e,t,n){let s=e;return t&&(s=s.concat((s.includes("?")?"&":"?")+t)),n&&(s=s.concat("#"+n)),s}getLocalizedText(e){return e?"string"==typeof e?e:e[this.langSuffix.toLowerCase()]||"":""}}fj.\u0275fac=function(e){return new(e||fj)(kc(AN),kc(iT),kc(Mk),kc(MN),kc(YN),kc(Lv),kc(AM),kc(jg))},fj.\u0275cmp=Je({type:fj,selectors:[["tois-top-bar"]],inputs:{showLanguageSelector:"showLanguageSelector",topBarClass:"topBarClass",topBarMobileClass:"topBarMobileClass",showMobileLogo:"showMobileLogo",languageSelectorClass:"languageSelectorClass",applicationSelectorClass:"applicationSelectorClass",languageButtonTexts:"languageButtonTexts",showLanguageChevron:"showLanguageChevron",mobileLanguageSelectorPlacement:"mobileLanguageSelectorPlacement",applicationSelectorVariant:"applicationSelectorVariant",mobileAp
3plicationSelectorVariant:"mobileApplicationSelectorVariant",mobileApplicationSelectorPlacement:"mobileApplicationSelectorPlacement",applicationSelectorIconClass:"applicationSelectorIconClass",applicationSelectorItemIconClass:"applicationSelectorItemIconClass",applicationSelectorButtonText:"applicationSelectorButtonText",mobileMenuOpen:"mobileMenuOpen",showTabletMenuToggle:"showTabletMenuToggle",showMobileMenuToggle:"showMobileMenuToggle",showAuthActions:"showAuthActions",showRegisterAction:"showRegisterAction",loginText:"loginText",authActionsClass:"authActionsClass",addRedirectQueryOnLogin:"addRedirectQueryOnLogin",handleAuthRouteParameters:"handleAuthRouteParameters",showUserMenu:"showUserMenu",userMenuClass:"userMenuClass",mobileUserMenuClass:"mobileUserMenuClass",userMenuIconClass:"userMenuIconClass",mobileUserMenuPlacement:"mobileUserMenuPlacement",showMobileUserMenuName:"showMobileUserMenuName",showUserMenuChevron:"showUserMenuChevron",logoutRedirect:"logoutRedirect",userMenuItems:"userMenuItems",mobileInstructionsAction:"mobileInstructionsAction",showNotification:"showNotification",showNotificationDetails:"showNotificationDetails",notificationText:"notificationText",notificationDetailsText:"notificationDetailsText",notificationDetailsLinkText:"notificationDetailsLinkText",notificationModalTitle:"notificationModalTitle",notificationClass:"notificationClass",notificationModalWindowClass:"notificationModalWindowClass",notificationModalSize:"notificationModalSize"},outputs:{userMenuAction:"userMenuAction",mobileMenuToggle:"mobileMenuToggle",tabletMenuToggle:"tabletMenuToggle"},features:[_t],ngContentSelectors:["*","[toisTopBarMobileBrand]","[toisTopBarMobileActions]","[toisTopBarNotification]","[toisTopBarMobileLogo]","[toisTopBarMobileMenuToggle]","[toisTopBarMobileNotification]","[toisTopBarNotificationDetails]"],decls:52,vars:23,consts:function(){let e,t;return e="Sulge",t="Men\xFC\xFC",[["id","topBar",1,"d-none","d-lg-flex","container-fluid","no-padding","top-strip","px-lg-2",3,"ngClass"],[1,"d-inline-flex","justify-content-between","align-items-center","w-100"],[1,"tois-md-screen-menu-toggle"],["type","button","class","btn tois-main-menu-toggle tois-tablet-menu-toggle p-0",3,"change","click",4,"ngIf"],["class","maintenance-notification",3,"ngClass",4,"ngIf"],[1,"topbar","top-btn-group-spacing","flex-lg-nowrap","flex-sm-wrap"],[1,"top-btn-group-spacing","d-flex","align-items-center"],[3,"ngClass"],["ngbDropdown","","placement","bottom-right","display","dynamic",1,"dropdown"],["desktopApplicationDropdown","ngbDropdown"],["type","button","class","btn btn-tai-primary","ngbDropdownToggle","",4,"ngIf"],["type","button","class","btn tois-dropdown-icon-button","ngbDropdownToggle","",3,"ngClass",4,"ngIf"],["class","dropdown-menu tois-apps topbar-dropdown-menu","ngbDropdownMenu","",4,"ngIf"],["class"," btn-group language-selection dropdown order-1 order-xs-2 order-sm-1","ngbDropdown","","placement","bottom-right","display","dynamic",3,"ngClass",4,"ngIf"],["class"," top-btn-group-spacing d-flex align-items-center",3,"ngClass",4,"ngIf"],["id","topBarMobile",1,"d-flex","d-lg-none","flex-column","container-fluid","no-padding","top-strip","mx-0","px-0",3,"ngClass"],["class","mobile-logo-row",4,"ngIf"],[1,"mobile-main-menu","px-3"],[1,"topbar","w-100"],[1,"d-flex","top-btn-group-spacing","justify-content-between","align-items-center","w-100","mr-sm-0","mr-md-0"],[1,"d-flex","navbar-brand-area","fw-light","text-uppercase",3,"href"],[1,"d-flex","top-btn-group-spacing","align-items-center","justify-content-end","ml-auto"],[3,"ngTemplateOutlet",4,"ngIf"],["type","button","class","btn tois-main-menu-toggle p-0",3,"change","click",4,"ngIf"],["class","mobile-login top-btn-group-spacing",4,"ngIf"],["notificationDetailsModal",""],["menuToggleBars",""],["tabletMenuOpenLabel",""],["mobileApplicationSelector",""],["mobileUserMenu",""],["mobileLanguageSelector",""],["applicationMenuContent",""],["languageMenuContent",""],["userMenuContent",""],["type","button",1,"btn","tois-main-menu-toggle","tois-tablet-menu-toggle","p-0",3,"click"],[4,"ngIf","ngIfElse"],["tabletMe
3nuCloseLabel",""],[3,"ngTemplateOutlet"],[1,"tois-tablet-menu-close"],[1,"text-uppercase"],e,[1,"maintenance-notification",3,"ngClass"],[3,"innerHTML",4,"ngIf"],["class","maintenance-link pl-1",3,"innerHTML","click",4,"ngIf"],[3,"innerHTML"],[1,"maintenance-link","pl-1",3,"innerHTML","click"],["type","button","ngbDropdownToggle","",1,"btn","btn-tai-primary"],[1,"fa","fa-chevron-down","pl-1"],["type","button","ngbDropdownToggle","",1,"btn","tois-dropdown-icon-button",3,"ngClass"],["ngbDropdownMenu","",1,"dropdown-menu","tois-apps","topbar-dropdown-menu"],["ngbDropdown","","placement","bottom-right","display","dynamic",1,"btn-group","language-selection","dropdown","order-1","order-xs-2","order-sm-1",3,"ngClass"],["desktopLanguageDropdown","ngbDropdown"],["type","button","ngbDropdownToggle","",1,"btn","tois-language-toggle","text-uppercase"],[3,"innerHtml"],["class","fa fa-chevron-down pl-1",4,"ngIf"],["class","dropdown-menu dropdown-language topbar-dropdown-menu","ngbDropdownMenu","",4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu","dropdown-language","topbar-dropdown-menu"],[1,"top-btn-group-spacing","d-flex","align-items-center",3,"ngClass"],["href","",1,"btn","btn-link","text-decoration-none",3,"innerHTML","click"],["class","btn btn-tai-register","href","",3,"innerHTML","click",4,"ngIf"],["href","",1,"btn","btn-tai-register",3,"innerHTML","click"],["ngbDropdown","","placement","bottom-right","display","dynamic",1,"dropdown","py-0"],["desktopUserDropdown","ngbDropdown"],["type","button","ngbDropdownToggle","",1,"btn","tois-user-menu-toggle"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],["class","dropdown-menu profile-menu topbar-dropdown-menu","ngbDropdownMenu","",4,"ngIf"],["ngbDropdownMenu","",1,"dropdown-menu","profile-menu","topbar-dropdown-menu"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mobile-logo-row"],["type","button",1,"btn","tois-main-menu-toggle","p-0",3,"click"],[1,"mobile-login","top-btn-group-spacing"],["class","btn btn-link ","href","",3,"hidden","innerHTML","click",4,"ngIf"],["class","btn btn-tai-register","href","",3,"hidden","innerHTML","click",4,"ngIf"],["href","",1,"btn","btn-link",3,"hidden","innerHTML","click"],["href","",1,"btn","btn-tai-register",3,"hidden","innerHTML","click"],[1,"modal-header","maintenance-modal-header"],["class","modal-title pull-left",3,"innerHTML",4,"ngIf"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],[1,"modal-body","maintenance-modal-body"],[1,"modal-title","pull-left",3,"innerHTML"],[1,"tois-mobile-menu-toggle-bars"],[1,"bar1"],[1,"bar2"],[1,"bar3"],t,[1,"d-flex","align-items-center"],["ngbDropdown","","placement","bottom-right bottom-left top-right top-left","display","dynamic",1,"dropdown"],["mobileApplicationDropdown","ngbDropdown"],["class","  d-flex align-items-center",3,"ngClass",4,"ngIf"],[1,"d-flex","align-items-center",3,"ngClass"],["ngbDropdown","","placement","bottom-right bottom-left top-right top-left","display","dynamic",1,"dropdown","py-0"],["mobileUserDropdown","ngbDropdown"],["type","button","ngbDropdownToggle","",1,"btn","tois-user-menu-toggle","d-flex","align-items-center",3,"ngClass"],["class"," btn-group language-selection dropdown order-2 order-xs-2 order-sm-1","ngbDropdown","","placement","bottom-right bottom-left top-right top-left","display","dynamic",4,"ngIf"],["ngbDropdown","","placement","bottom-right bottom-left top-right top-left","display","dynamic",1,"btn-group","language-selection","dropdown","order-2","order-xs-2","order-sm-1"],["mobileLanguageDropdown","ngbDropdown"],[4,"ngFor","ngForOf"],[1,"dropdown-item","pl-3","d-flex","align-items-center",3,"ngClass","href"],["class","dropdown-item lang-select text-uppercase pl-3",3,"href","innerHtml",4,"ngIf"],[1,"dropdown-item","lang-select","text-uppercase","pl-3",3,"href","innerHtml"],["class","dropdown-item red-name",4,"ngIf"],[1,"dropdown-item","red-name"],["class","dropdown-item pl-4",3,"ngClass","routerLink","click",4,"ngIf"],["class","dropdown-item pl-4",3,"ngClass","click",4,"ngIf"],[1,"dropdown-item","pl-4",3,"ngClass","routerLink","click"],[1,"dropdown-item","pl-4",3,"ngClass","click"]]},template:function(e,t){if(1&e&&(Wc(pj),Oc(0,"div",0),Oc(1,"div",1),Oc(2,"div",2),Gl(3,JL,4,4,"button",3),Ic(),Gl(4,tV,4,3,"div",4),Oc(5,"div",5),Oc(6,"div",6),Oc(7,"div",7),Oc(8,"div",8,9),Gl(10,nV,4,1,"button",10),Gl(11,sV,1,1,"button",11),Gl(12,iV,2,1,"div",12),Ic(),Ic(),Gl(13,aV,6,4,"div",13),Ic(),Gl(14,cV,3,3,"div",14),bf(15,"async"),Gl(16,mV,9,7,"div",14),bf(17,"async"),Kc(18),Ic(),Ic(),Ic(),Oc(19,"div",15),Gl(20,yV,2,0,"div",16),Oc(21,"div",17),Oc(22,"div",18),Oc(23,"div",19),Oc(24,"a",20),Kc(25,1),Ic(),Oc(26,"div",21),Gl(27,bV,1,1,"ng-container",22),Gl(28,vV,1,1,"ng-container",22),Kc(29,2),Gl(30,_V,3,3,"button",23),Gl(31,wV,1,1,"ng-container",22),Ic(),Ic(),Ic(),Ic(),Gl(32,DV,6,5,"div",24),Gl(33,IV,4,3,"div",4),Ic(),Gl(34,MV,8,2,"ng-template",null,25,Wf),Gl(36,FV,4,0,"ng-template",null,26,Wf),Gl(38,RV,3,1,"ng-template",null,27,Wf),Gl(40,jV,6,3,"ng-template",null,28,Wf),Gl(42,KV,2,3,"ng-template",null,29,Wf),Gl(44,YV,1,1,"ng-template",null,30,Wf),Gl(46,tj,2,3,"ng-template",null,31,Wf),Gl(48,rj,3,3,"ng-template",null,32,Wf),Gl(50,dj,2,2,"ng-template",null,33,Wf)),2&e){const e=Zl(9);
vendor: 5,015 bytes, line 3
3Tc("ngClass",t.topBarClass),Lo(3),Tc("ngIf",t.showTabletMenuToggle),Lo(1),Tc("ngIf",t.notification.show),Lo(3),Tc("ngClass",t.applicationSelectorClass),Lo(3),Tc("ngIf","button"===t.applicationSelectorVariant),Lo(1),Tc("ngIf","icon"===t.applicationSelectorVariant),Lo(1),Tc("ngIf",e.isOpen()),Lo(1),Tc("ngIf",t.showLanguageSelector),Lo(1),Tc("ngIf",t.showAuthActions&&!vf(15,19,t.logStatus$)),Lo(2),Tc("ngIf",t.showUserMenu&&vf(17,21,t.logStatus$)),Lo(3),Tc("ngClass",t.topBarMobileClass),Lo(1),Tc("ngIf",t.showMobileLogo),Lo(4),Tc("href",t.getHomeUrl(),_r),Lo(3),Tc("ngIf","top"===t.mobileApplicationSelectorPlacement),Lo(1),Tc("ngIf","top"===t.mobileLanguageSelectorPlacement),Lo(2),Tc("ngIf",t.showMobileMenuToggle),Lo(1),Tc("ngIf","top"===t.mobileUserMenuPlacement),Lo(1),Tc("ngIf",t.showMobileAuthRow),Lo(1),Tc("ngIf",t.notification.show)}},directives:[Jy,sb,vM,pb,bM,mM,tb,oT],pipes:[yb,Db],styles:['[_nghost-%COMP%]{display:block}#topBar[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]{box-sizing:border-box;--tois-top-bar-dropdown-max-height:calc(100vh - 70px);background-color:#fff;border-bottom:var(--tois-top-bar-border-bottom,1px solid rgba(0,0,0,.08));height:var(--tois-top-bar-height,auto);padding:var(--tois-top-bar-padding,initial);position:var(--tois-top-bar-position,static);top:var(--tois-top-bar-top,auto);z-index:var(--tois-top-bar-z-index,1030)}#topBarMobile[_ngcontent-%COMP%]{padding-top:var(--tois-top-bar-mobile-sticky-offset,0)}#topBarMobile.tap-custom-sticky-topbar[_ngcontent-%COMP%]{padding-top:0}.dropdown-toggle[_ngcontent-%COMP%]:after{display:var(--tois-top-bar-dropdown-toggle-caret-display,none)}.topbar-dropdown-menu[_ngcontent-%COMP%]:not(.show){border:0!important;box-shadow:none!important;display:none!important}.maintenance-notification[_ngcontent-%COMP%]{color:#f24c4e;font-size:var(--tois-top-bar-notification-font-size,16px);padding:var(--tois-top-bar-notification-padding);width:var(--tois-top-bar-notification-max-width,60%)}.maintenance-link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline!important}.maintenance-modal-body[_ngcontent-%COMP%], .maintenance-modal-header[_ngcontent-%COMP%]{color:#333}.btn-link[_ngcontent-%COMP%], .btn-tai-register[_ngcontent-%COMP%]{align-items:center;display:inline-flex;justify-content:center;margin:0;text-decoration:none;background-color:var(--tois-top-bar-button-link-bg,transparent);border:var(--tois-top-bar-button-link-border,0);border-radius:var(--tois-top-bar-button-link-border-radius,0);color:var(--tois-top-bar-button-link-color,inherit);font-family:var(--tois-top-bar-button-link-font-family,"Roboto",sans-serif);font-size:var(--tois-top-bar-button-link-font-size,14px);font-weight:var(--tois-top-bar-button-link-font-weight,500);line-height:var(--tois-top-bar-button-link-line-height,18px);padding:var(--tois-top-bar-button-link-padding,initial);text-transform:var(--tois-top-bar-button-link-text-transform,none);transition:var(--tois-top-bar-button-link-transition,none);white-space:var(--tois-top-bar-button-link-white-space,normal)}.btn-link[_ngcontent-%COMP%]:active, .btn-link[_ngcontent-%COMP%]:focus, .btn-link[_ngcontent-%COMP%]:hover, .btn-tai-register[_ngcontent-%COMP%]:active, .btn-tai-register[_ngcontent-%COMP%]:focus, .btn-tai-register[_ngcontent-%COMP%]:hover{background-color:var(--tois-top-bar-button-link-hover-bg,var(--tois-top-bar-button-link-bg,transparent));border-color:var(--tois-top-bar-button-link-hover-border-color,var(--tois-top-bar-button-link-border-color,transparent));color:var(--tois-top-bar-button-link-hover-color,var(--tois-top-bar-button-link-color,inherit))}.btn-tai-register[_ngcontent-%COMP%]{text-transform:uppercase;font-size:var(--tois-top-bar-button-register-font-size,14px);font-weight:var(--tois-top-bar-button-link-font-weight,500);line-height:var(--tois-top-bar-button-link-line-height,18px);background-color:var(--tois-top-bar-button-register-bg,transparent);border-color:var(--tois-top-bar-button-register-bg,0);color:var(--tois-top-bar-button-register-color,inherit)}.btn-tai-register[_ngcontent-%COMP%]:active, .btn-tai-register[_ngcontent-%COMP%]:focus, .btn-tai-register[_ngcontent-%COMP%]:hover{background-color:var(--tois-top-bar-button-register-hover-bg,var(--tois-top-bar-button-register-bg,transparent));border-color:var(--tois-top-bar-button-register-hover-bg,var(--tois-top-bar-button-register-bg,transparent));color:var(--tois-top-bar-button-register-hover-color,var(--tois-top-bar-button-register-color,inherit))}.btn-tai-primary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;font-size:14px;min-width:0;margin:0;text-decoration:none;box-shadow:none;background-color:var(--tois-top-bar-app-selector-bg,transparent);color:var(--tois-top-bar-app-selector-color,var(--tois-top-bar-link-color,inherit));border:2px solid var(--tois-top-bar-app-selector-border-color,transparent);border-radius:var(--tois-top-bar-app-selector-border-radius,3px);font-family:var(--tois-top-bar-app-selector-font-family,inherit);
3font-weight:var(--tois-top-bar-app-selector-font-weight,500);line-height:var(--tois-top-bar-app-selector-line-height,18px);padding:var(--tois-top-bar-app-selector-padding,10px);text-transform:var(--tois-top-bar-app-selector-text-transform,uppercase);transition:var(--tois-top-bar-app-selector-transition,none);white-space:var(--tois-top-bar-app-selector-white-space,nowrap)}.btn-tai-primary[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:inherit}.btn-tai-primary[_ngcontent-%COMP%]:active, .btn-tai-primary[_ngcontent-%COMP%]:focus, .btn-tai-primary[_ngcontent-%COMP%]:hover{background-color:var(--tois-top-bar-app-selector-hover-bg,var(--tois-top-bar-app-selector-bg,transparent));border-color:var(--tois-top-bar-app-selector-hover-border-color,var(--tois-top-bar-app-selector-border-color,transparent));color:var(--tois-top-bar-app-selector-hover-color,var(--tois-top-bar-app-selector-color,inherit));text-decoration:none}.topbar[_ngcontent-%COMP%]{display:flex;flex-direction:var(--tois-top-bar-flex-direction,row);justify-content:var(--tois-top-bar-justify-content,center)}.topbar[_ngcontent-%COMP%], .topbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{align-items:center}.top-btn-group-spacing[_ngcontent-%COMP%]{gap:1rem}.btn-group[_ngcontent-%COMP%], .dropdown[_ngcontent-%COMP%]{align-items:center;display:flex}[ngbDropdownToggle][_ngcontent-%COMP%]{align-items:center;display:inline-flex}.tois-dropdown-icon-button[_ngcontent-%COMP%]{color:var(--tois-top-bar-link-color,inherit);cursor:pointer;font-size:var(--tois-top-bar-dropdown-icon-button-font-size,inherit)}.tois-dropdown-icon-button[_ngcontent-%COMP%], .tois-language-toggle[_ngcontent-%COMP%]{background:transparent;border:0;box-shadow:none;line-height:1;padding:var(--tois-top-bar-dropdown-toggle-padding,0)}.tois-user-menu-toggle[_ngcontent-%COMP%], .tois-user-menu-toggle.btn[_ngcontent-%COMP%]{background-color:var(--tois-top-bar-user-menu-button-bg,transparent);border-radius:var(--tois-top-bar-user-menu-button-border-radius,3px);border:2px solid var(--tois-top-bar-user-menu-button-border-color,transparent);box-shadow:none;color:var(--tois-top-bar-user-menu-button-color,#fff);line-height:1;padding:var(--tois-top-bar-user-menu-button-padding,0 .75rem);transition:var(--tois-top-bar-user-menu-button-transition,all .5s ease 0s)}.tois-user-menu-toggle.btn[_ngcontent-%COMP%]:active, .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:focus, .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:hover, .tois-user-menu-toggle[_ngcontent-%COMP%]:active, .tois-user-menu-toggle[_ngcontent-%COMP%]:focus, .tois-user-menu-toggle[_ngcontent-%COMP%]:hover{background-color:var(--tois-top-bar-user-menu-button-hover-bg,transparent);border-color:var(--tois-top-bar-user-menu-button-hover-border-color,transparent);color:var(--tois-top-bar-user-menu-button-hover-color,#fff)}.dropdown-menu[_ngcontent-%COMP%]{position:absolute;max-height:var(--tois-top-bar-dropdown-max-height);width:auto;background-color:#fff;z-index:var(--tois-top-bar-dropdown-z-index,1032);overflow-y:auto;padding:0;margin-top:7px;border:none;border-radius:0;box-shadow:5px 5px 15px rgba(0,0,0,.25)}.dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{color:#646a6e;font-size:16px;font-weight:400;line-height:55px}.dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover{color:var(--tois-top-bar-dropdown-item-hover-color,#f24c4e);background-color:var(--tois-top-bar-dropdown-item-hover-bg,#eee)}.dropdown-menu[_ngcontent-%COMP%]   .active-nav[_ngcontent-%COMP%]{background-color:var(--tois-top-bar-active-nav-bg,#ddd);color:var(--tois-top-bar-active-nav-color,#e74c3c)}.dropdown-menu[_ngcontent-%COMP%]   .red-name[_ngcontent-%COMP%]{color:var(--tois-top-bar-profile-name-color,inherit)}.profile-menu[_ngcontent-%COMP%]{overflow-x:visible;width:auto}.profile-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{white-space:nowrap}.language-selection[_ngcontent-%COMP%]   .tois-language-toggle[_ngcontent-%COMP%]{color:var(--tois-top-bar-language-color,inherit);font-size:var(--tois-top-bar-language-font-size,14px)}.language-selection[_ngcontent-%COMP%]   .lang-select[_ngcontent-%COMP%]{color:var(--tois-top-bar-dropdown-item-language-color,var(--tois-top-bar-language-color,inherit));font-size:var(--tois-top-bar-language-font-size,14px)}#topBarMobile[_ngcontent-%COMP%]{width:inherit}#topBarMobile[_ngcontent-%COMP%]   .mobile-logo-row[_ngcontent-%COMP%]{align-items:center;background-color:var(--tois-top-bar-mobile-logo-bg,#fff);display:flex;height:56px;justify-content:center;padding:0;width:inherit!important;position:var(--tois-top-bar-mobile-logo-position,static);top:var(--tois-top-bar-mobile-logo-top,auto);z-index:var(--tois-top-bar-mobile-logo-z-index,auto)}#topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]{align-items:center;background-color:var(--tois-top-bar-mobile-menu-bg,#fff);border-bottom:1px solid rgba(0,0,0,.08);display:inline-flex;justify-content:space-between;width:inherit!important;min-height:var(--tois-top-bar-mobile-menu-min-height,57px);padding:var(--tois-top-bar-mobile-menu-padding,initial);position:var(--tois-top-bar-mobile-main-menu-position,static);top:auto;z-index:var(--tois-top-bar-mobile-main-menu-z-index,auto)}#topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]{color:var(--tois-top-bar-user-menu-button-color,inherit)}#topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:active, #topB
3arMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:focus, #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:hover, #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:active, #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:focus, #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:hover{color:var(--tois-top-bar-user-menu-button-hover-color,inherit)}#topBarMobile[_ngcontent-%COMP%]   .mobile-login[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{box-sizing:border-box;max-width:calc(100vw - 1rem)!important;min-width:0}#topBarMobile[_ngcontent-%COMP%]   .mobile-login[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}#topBarMobile[_ngcontent-%COMP%]   .mobile-login[_ngcontent-%COMP%]   .profile-menu[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]   .mobile-main-menu[_ngcontent-%COMP%]   .profile-menu[_ngcontent-%COMP%]{min-width:0}#topBarMobile[_ngcontent-%COMP%]   .navbar-brand-area[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{flex:0 0 auto}#topBarMobile[_ngcontent-%COMP%]   .navbar-brand-area[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;overflow:hidden;text-align:left;text-overflow:clip;white-space:nowrap;color:var(--tois-top-bar-mobile-brand-base-color,#777)!important;font-family:var(--tois-top-bar-mobile-brand-font-family,Raleway,"Open Sans",sans-serif);font-weight:var(--tois-top-bar-mobile-brand-font-weight,300);font-size:var(--tois-top-bar-mobile-brand-font-size,inherit)!important;line-height:var(--tois-top-bar-mobile-brand-line-height,normal)!important;letter-spacing:var(--tois-top-bar-mobile-brand-letter-spacing,normal)!important}#topBarMobile[_ngcontent-%COMP%]   .navbar-brand-area[_ngcontent-%COMP%]   .title-color[_ngcontent-%COMP%]{color:var(--tois-top-bar-mobile-brand-title-color,var(--tois-top-bar-mobile-logo-bg))!important}#topBarMobile[_ngcontent-%COMP%]   .navbar-brand-area[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap}#topBarMobile[_ngcontent-%COMP%]   .navbar-brand-area[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:clip}.tois-main-menu-toggle[_ngcontent-%COMP%]{align-items:center;background:transparent;border:0;color:#646a6e;cursor:pointer;display:inline-flex;font-size:18px;height:auto;justify-content:center;line-height:1;margin:0;transition:all .2s;box-shadow:none}.tois-main-menu-toggle[_ngcontent-%COMP%]   .tois-mobile-menu-toggle-bars[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;width:40px;box-sizing:content-box}.tois-main-menu-toggle[_ngcontent-%COMP%]   .bar1[_ngcontent-%COMP%], .tois-main-menu-toggle[_ngcontent-%COMP%]   .bar2[_ngcontent-%COMP%], .tois-main-menu-toggle[_ngcontent-%COMP%]   .bar3[_ngcontent-%COMP%]{background-color:#646a6e;display:block;height:var(--tois-top-bar-mobile-menu-toggle-bar-height,3px);margin:0;transition:.4s;width:35px}.tois-main-menu-toggle[_ngcontent-%COMP%]   .bar1[_ngcontent-%COMP%]{margin:0 5px 0 0}.tois-main-menu-toggle[_ngcontent-%COMP%]   .bar2[_ngcontent-%COMP%]{margin:9px 0}.tois-main-menu-toggle[_ngcontent-%COMP%]   .bar3[_ngcontent-%COMP%]{margin:0 5px 0 0}.tois-main-menu-toggle.change[_ngcontent-%COMP%]   .bar1[_ngcontent-%COMP%]{transform:rotate(-45deg) translate(-8px,7px)}.tois-main-menu-toggle.change[_ngcontent-%COMP%]   .bar2[_ngcontent-%COMP%]{opacity:0}.tois-main-menu-toggle.change[_ngcontent-%COMP%]   .bar3[_ngcontent-%COMP%]{transform:rotate(45deg) translate(-8px,-8px)}.tois-md-screen-menu-toggle[_ngcontent-%COMP%]{align-items:center;display:flex}.tois-tablet-menu-toggle[_ngcontent-%COMP%]{display:none;width:var(--tois-tablet-menu-toggle-width,8rem)}.tois-tablet-menu-close[_ngcontent-%COMP%]{box-sizing:content-box;display:inline-flex;align-items:center;justify-content:center;width:40px;font-size:60px;margin-top:-6px;line-height:1;font-weight:100}.tois-tablet-menu-close[_ngcontent-%COMP%], .tois-tablet-menu-toggle[_ngcontent-%COMP%]   .tois-mobile-menu-toggle-bars[_ngcontent-%COMP%]{padding-left:1rem;padding-right:.5rem}.mobile-login[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border-bottom:0;display:flex;flex-wrap:var(--tois-top-bar-mobile-login-flex-wrap,nowrap);gap:var(--tois-top-bar-mobile-login-gap,1rem);justify-content:center;min-height:auto;padding:0;padding-top:var(--tois-top-bar-mobile-sticky-offset,0);margin:8px 0;width:100%}.mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%], .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]{color:var(--tois-top-bar-user-menu-button-color,inherit)}.mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:active, .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:focus, .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle.btn[_ngcontent-%COMP%]:hover, .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:active, .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:focus, .mobile-login[_ngcontent-%COMP%]   .tois-user-menu-toggle[_ngcontent-%COMP%]:hover{color:var(--tois-top-bar-user-menu-button-hover-color,inherit)}.mobile-login[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover{background-color:var(--tois-top-bar-active-nav-bg,#ddd)}#topBarMobile.tap-custom-sticky-topbar[_ngcontent-%COMP%]   .mobile-login[_ngcontent-%COMP%]{margin:0;padding-top:calc(var(--tois-top-bar-mobile-sticky-offset, 0) + 8px);padding-bottom:8px}@media only screen and (min-width:992px) and (max-width:1365px){#topBar[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]{--tois-top-bar-notification-padding:0;--tois-top-bar-notification-max-width:50%;--tois-top-bar-notification-font-size:14px}#topBar[_ngcontent-%COMP%]   .tois-md-screen-menu-toggle[_ngcontent-%COMP%]{display:flex!important;visibility:visible!important}.tois-tablet-menu-toggle[_ngcontent-%COMP%]{display:inline-flex;margin-right:.5rem;transform:translateX(0);transition:transform .2s ease-in-out;visibility:visible!important}.tois-tablet-menu-toggle.change[_ngcontent-%COMP%]{transform:translateX(310px)}.tois-mobile-menu-toggle-bars[_ngcontent-%COMP%]{--tois-top-bar-mobile-menu-toggle-bar-height:3px}}@media only screen and (max-width:991px){#topBar[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]{--tois-top-bar-padding:0;--tois-top-bar-notification-padding:1rem;--tois-top-bar-notification-max-width:100%;--tois-top-bar-notification-font-size:16px}.dropdown-menu[_ngcontent-%COMP%]{--tois-top-bar-dropdown-max-height:calc(100vh - 70px)}.top-btn-group-spacing[_ngcontent-%COMP%]{gap:1.5rem}.maintenance-notification[_ngcontent-%COMP%]{border-bottom:var(--tois-top-bar-border-bottom,1px solid rgba(0,0,0,.08))}}@media only screen and (max-width:560px){#topBar[_ngcontent-%COMP%], #topBarMobile[_ngcontent-%COMP%]{--tois-top-bar-mobile-login-flex-wrap:wrap;--tois-top-bar-notification-font-size:14px}.top-btn-group-spacing[_ngcontent-%COMP%]{gap:1rem}}']});class gj{}function mj(e,t){1&e&&(Oc(0,"div",20),Id(1,21),Ic())}function yj(e,t){if(1&e&&(Oc(0,"div"),Gl(1,mj,2,0,"div",19),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.currentPassword.errors.required)}}function bj(e,t){1&e&&(Oc(0,"div",20),Id(1,22),Ic())}function vj(e,t){1&e&&(Oc(0,"div",20),Id(1,23),Ic())}gj.\u0275fac=function(e){return new(e||gj)},gj.\u0275mod=st({type:gj}),gj.\u0275inj=_e({providers:[HL,AN,qL,MN],imports:[[Rb,vT,_M]]});const _j=function(){return["newPassword","newPassword"]};function wj(e,t){if(1&e&&(Oc(0,"div"),Gl(1,bj,2,0,"div",19),Gl(2,vj,2,0,"div",19),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.passwordForm.get(tf(2,_j)).errors.required),Lo(1),Tc("ngIf",e.passwordForm.get(tf(3,_j)).errors.pattern)}}function Cj(e,t){1&e&&(Oc(0,"div",24),Mu(1," Paroolid ei kattu "),Ic())}const xj=function(){return["newPassword","confirmNewPassword"]};class kj{constructor(e,t,n,s){this.modal=e,this.fb=t,this.userService=n,this.toastr=s}createForm(){this.passwordForm=this.fb.group({id:[null],currentPassword:["",[U_.required]],newPassword:this.fb.group({newPassword:["",[U_.required,U_.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]],confirmNewPassword:["",[U_.required,U_.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]]},{validator:this.pwdMatchValidator})})}
3pwdMatchValidator(e){if(e.get("newPassword").value!==e.get("confirmNewPassword").value)return{invalid:!0}}changePassword(e,t){e.value.newPassword=e.value.newPassword.newPassword,this.userService.confirmUserCredentials(e.value).pipe(Cx()).subscribe(e=>{this.toastr.success("Parool on edukalt vahetatud","Teade"),this.modal.close()},e=>{e.error&&"invalid_password"===e.error.errorCode?this.toastr.error("Vana parool vigane","Viga"):this.toastr.error("Parooli muutmisel tekkis viga "+e.status,"Viga")}),t.preventDefault(),t.stopPropagation()}closeModal(){this.modal.dismiss()}get currentPassword(){return this.passwordForm.get("currentPassword")}get newPassword(){return this.passwordForm.get("newPassword")}get confirmNewPassword(){return this.passwordForm.get("confirmNewPassword")}ngOnInit(){this.createForm()}}function Sj(e,t){1&e&&(Oc(0,"div",18),Id(1,19),Ic())}function Tj(e,t){if(1&e&&(Oc(0,"div"),Gl(1,Sj,2,0,"div",12),Ic()),2&e){const e=Hc();Lo(1),Tc("ngIf",e.password.errors.required)}}function Dj(e,t){1&e&&(Oc(0,"div",20),Id(1,21),Ic())}function Ej(e,t){1&e&&(Oc(0,"div",18),Id(1,22),Ic())}kj.\u0275fac=function(e){return new(e||kj)(kc(DM),kc(VC),kc(QN),kc(FD))},kj.\u0275cmp=Je({type:kj,selectors:[["tois-change-password-modal"]],decls:23,vars:11,consts:function(){let e,t,n,s,i,r,o,a,l;return e="Parooli muutmine",t="Vana parool",n="Uus parool",s="Korda uut parooli",i="T\xFChista",r="Muuda",o="\n          Kohustuslik v\xE4li\n        ",a="\n            Kohustuslik v\xE4li\n          ",l="\n            Parool peab olema 8 s\xFCmbolit pikk ja sisaldama v\xE4hemalt \xFChte suurt t\xE4hte ja numbrit.\n          ",[[1,"modal-header"],[1,"modal-title","pull-left"],e,["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["id","sign-box",1,"text-center",3,"formGroup","ngSubmit"],[1,"form-group"],["type","password","required","","placeholder",t,"formControlName","currentPassword",1,"form-control"],[4,"ngIf"],["formGroupName","newPassword",1,"form-group"],["type","password","placeholder",n,"formControlName","newPassword","required","",1,"form-control"],["type","password","placeholder",s,"formControlName","confirmNewPassword","required","",1,"form-control"],["class","error-message",4,"ngIf"],[1,"float-right"],[1,"btn","btn-tai-cancel","mr-2",3,"click"],i,["type","submit",1,"btn","btn-tai-primary-big","mt-3","mb-0",3,"disabled"],r,["style","color:#F24C4E",4,"ngIf"],[2,"color","#F24C4E"],o,a,l,[1,"error-message"]]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"h5",1),Id(2,2),Ic(),Oc(3,"button",3),jc("click",function(){return t.modal.close()}),Oc(4,"span",4),Mu(5,"\xd7"),Ic(),Ic(),Ic(),Oc(6,"div",5),Oc(7,"form",6),jc("ngSubmit",function(e){return t.changePassword(t.passwordForm,e)}),Oc(8,"div",7),Pc(9,"input",8),Gl(10,yj,2,1,"div",9),Ic(),Oc(11,"div",10),Oc(12,"div",7),Pc(13,"input",11),Gl(14,wj,3,4,"div",9),Ic(),Oc(15,"div",7),Pc(16,"input",12),Gl(17,Cj,2,0,"div",13),Ic(),Ic(),Oc(18,"span",14),Oc(19,"button",15),jc("click",function(){return t.closeModal()}),Id(20,16),Ic(),Oc(21,"button",17),Id(22,18),Ic(),Ic(),Ic(),Ic()),2&e&&(Lo(7),Tc("formGroup",t.passwordForm),Lo(3),Tc("ngIf",t.currentPassword.invalid&&(t.currentPassword.dirty||t.currentPassword.touched)),Lo(4),Tc("ngIf",t.passwordForm.get(tf(5,_j)).invalid&&(t.passwordForm.get(tf(6,_j)).dirty||t.passwordForm.get(tf(7,_j)).touched)),Lo(3),Tc("ngIf",t.passwordForm.get(tf(8,_j)).value!=t.passwordForm.get(tf(9,xj)).value&&null!=t.passwordForm.get(tf(10,xj)).value),Lo(4),Tc("disabled",!t.passwordForm.valid))},directives:[Kw,gw,oC,L_,kC,fw,pC,sb,lC],styles:["input[_ngcontent-%COMP%]{border-radius:4px}.btn-tai-cancel[_ngcontent-%COMP%]{font-size:14px;text-decoration:none;text-transform:uppercase;transition:all .25s ease 0s;font-family:Roboto,sans-serif;font-weight:500!important;background-color:#93999c;color:#fff;border:1px solid silver}.btn-tai-cancel.active[_ngcontent-%COMP%], .btn-tai-cancel[_ngcontent-%COMP%]:active, .btn-tai-cancel[_ngcontent-%COMP%]:hover{background-color:#e38d7c}"]});class Oj{constructor(e,t,n,s,i,r){this.locale=e,this.modal=t,this.fb=n,this.userService=s,this.router=i,this.authenticationService=r,this.changeSuccess=!1,this.changeFail=!1,this.headers={},this.current_locale=e,"ru"===this.current_locale?this.langSuffix="Rus":"en"===this.current_locale?this.langSuffix="Eng":this.langSuffix="Est",this.headers={"Accept-Language":this.current_locale}}createForm(){this.deleteForm=this.fb.group({currentPassword:["",[U_.required]]})}
3pwdMatchValidator(e){if(e.get("newPassword").value!==e.get("confirmNewPassword").value)return{invalid:!0}}deleteAccount(e,t){const n=new Gv({"Accept-Language":this.current_locale||"et"});this.userService.deleteUser(e.value.currentPassword,n).pipe(Cx()).subscribe(e=>{this.changeSuccess=!0,this.changeFail=!1},e=>{console.log(e),this.changeFail=!0,this.changeSuccess=!1},()=>{localStorage.removeItem("tokenInfo"),localStorage.removeItem("userPreferences"),localStorage.removeItem("userNutrientFilters"),this.authenticationService.logout(),this.router.navigate(["/avaleht"])}),t.preventDefault(),t.stopPropagation()}get password(){return this.deleteForm.get("currentPassword")}closeModal(){this.modal.dismiss()}ngOnInit(){this.createForm()}}Oj.\u0275fac=function(e){return new(e||Oj)(kc(jg),kc(DM),kc(VC),kc(QN),kc(iT),kc(YN))},Oj.\u0275cmp=Je({type:Oj,selectors:[["tois-user-delete-account-modal"]],decls:20,vars:5,consts:function(){let e,t,n,s,i,r,o,a;return e="Konto kustutamine",t="Kustutades oma konto kustuvad sinu poolt sisestatud men\xFC\xFCd, retseptid, toiduained jms. Konto kustamiseks sisesta oma parool.",n="Parool",s="T\xFChista",i="Kustuta konto",r="\n          Kohustuslik v\xE4li\n        ",o="\n      Konto edukalt kustutatud!\n    ",a="\n      Kontrolli sisestatud parooli\n    ",[[1,"modal-header"],[1,"modal-title","pull-left"],e,["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["id","sign-box",3,"formGroup","ngSubmit"],t,[1,"form-group"],["type","password","required","","placeholder",n,"formControlName","currentPassword",1,"form-control"],[4,"ngIf"],["class","success-color",4,"ngIf"],["style","color:#F24C4E",4,"ngIf"],[1,"text-right"],[1,"btn","btn-tai-cancel","mb-0","mr-2",3,"click"],s,["type","submit",1,"btn","btn-tai-form","btn-tai-delete","mb-0","mt-3",3,"disabled"],i,[2,"color","#F24C4E"],r,[1,"success-color"],o,a]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"h5",1),Id(2,2),Ic(),Oc(3,"button",3),jc("click",function(){return t.modal.close()}),Oc(4,"span",4),Mu(5,"\xd7"),Ic(),Ic(),Ic(),Oc(6,"div",5),Oc(7,"form",6),jc("ngSubmit",function(e){return t.deleteAccount(t.deleteForm,e)}),Oc(8,"p"),Id(9,7),Ic(),Oc(10,"div",8),Pc(11,"input",9),Gl(12,Tj,2,1,"div",10),Ic(),Gl(13,Dj,2,0,"div",11),Gl(14,Ej,2,0,"div",12),Oc(15,"div",13),Oc(16,"button",14),jc("click",function(){return t.closeModal()}),Id(17,15),Ic(),Oc(18,"button",16),Id(19,17),Ic(),Ic(),Ic(),Ic()),2&e&&(Lo(7),Tc("formGroup",t.deleteForm),Lo(5),Tc("ngIf",t.password.invalid&&(t.password.dirty||t.password.touched)),Lo(1),Tc("ngIf",t.changeSuccess),Lo(1),Tc("ngIf",t.changeFail),Lo(4),Tc("disabled",!t.deleteForm.valid))},directives:[Kw,gw,oC,L_,kC,fw,pC,sb],styles:[".btn-tai-cancel[_ngcontent-%COMP%]{font-size:14px;text-decoration:none;text-transform:uppercase;transition:all .25s ease 0s;font-family:Roboto,sans-serif;font-weight:500!important;background-color:#93999c;color:#fff;border:1px solid silver}.btn-tai-cancel.active[_ngcontent-%COMP%], .btn-tai-cancel[_ngcontent-%COMP%]:active, .btn-tai-cancel[_ngcontent-%COMP%]:hover{background-color:#e38d7c}.btn-tai-delete[_ngcontent-%COMP%], .btn-tai-delete[disabled][_ngcontent-%COMP%]:active, .btn-tai-delete[disabled][_ngcontent-%COMP%]:hover{background-color:#fff;color:#f24c4e;border:1px solid #f24c4e}.btn-tai-delete.active[_ngcontent-%COMP%], .btn-tai-delete[_ngcontent-%COMP%]:active, .btn-tai-delete[_ngcontent-%COMP%]:hover{background-color:#f24c4e;color:#fff;border:1px solid #f24c4e}"]});class Ij{constructor(e,t,n,s,i,r){this.http=e,this.router=t,this.route=n,this.userService=s,this.modalService=i,this.toastr=r,this.ngDestroy=new k,this.passwordResetToken=null,this.route.queryParams.pipe(aE("emailVerificationToken")).pipe(AT(this.ngDestroy)).subscribe(e=>{e&&this.userService.verifyUserEmail(e).subscribe(()=>{this.router.navigate([],{relativeTo:this.route,queryParams:{}}),this.modalService.open(ML,{windowClass:"modal-dialog-primary sign-in-modal"}),this.toastr.success("Kasutaja on edukalt aktiveeritud","Teade")},e=>{e.error&&"invalid_token"===e.error.errorCode&&this.toastr.error("Vigane aktiveerimistunnus","Viga"),e.error&&"already_verified"===e.error.errorCode&&this.toastr.error("Kasutaja on juba aktiveeritud","Viga")})}),this.route.queryParams.pipe(aE("emailVerificationPasswordResetToken")).pipe(AT(this.ngDestroy)).subscribe(e=>{e&&this.userService.verifyUserEmail(e).subscribe(()=>{this.router.navigate([],{relativeTo:this.route,queryParams:{}}),this.passwordResetToken=e,this.modalService.open(Pj,{windowClass:"modal-dialog-primary change-password-modal"}),this.toastr.success("Kasutaja on edukalt aktiveeritud","Teade")},e=>{e.error&&"invalid_token"===e.error.errorCode&&this.toastr.error("Vigane aktiveerimistunnus","Viga"),e.error&&"already_verified"===e.error.errorCode&&this.toastr.error("Kasutaja on juba aktiveeritud","Viga")})}),this.route.queryParams.pipe(aE("passwordResetToken")).pipe(AT(this.ngDestroy)).subscribe(e=>{e&&(this.passwordResetToken=e,this.modalService.open(Pj,{windowClass:"modal-dialog-primary change-password-modal"}))})}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}}Ij.\u0275fac=function(e){return new(e||Ij)(ri(l_),ri(iT),ri(Mk),ri(QN),ri(AM),ri(FD))},Ij.\u0275prov=ve({token:Ij,factory:Ij.\u0275fac,providedIn:"root"});class Pj{constructor(e,t,n,s,i,r,o){this.fb=e,this.authenticationService=t,this.userService=n,this.signInService=s,this.toastr=i,this.modalService=r,this.modal=o,this.show
3FormErrors=!1,this.form=this.fb.group({password:["",[U_.required,U_.pattern("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$")]],passwordRepeat:["",[U_.required]]},{validator:this.pwdMatchValidator})}pwdMatchValidator(e){return e.get("password").value!==e.get("passwordRepeat").value?(e.get("passwordRepeat").setErrors({invalid:!0}),{invalid:!0}):null}isInvalid(e){const t=this.form.get(e);return t.invalid&&(this.showFormErrors||t.touched)}submit(e){if(this.form.valid){const e={};e.token=this.signInService.passwordResetToken,e.password=this.form.value.password,this.userService.resetUserPassword(e).subscribe(e=>{this.toastr.success("Parooli muutmine \xf5nnestus","Teade"),this.modal.close(),this.modalService.open(ML,{windowClass:"modal-dialog-primary sign-in-modal"})},e=>{e.error&&"invalid_token"===e.error.errorCode?this.toastr.error("Viga: paroolivahetuslink ei ole aktiivne.","Viga"):e.error&&"token_expired"===e.error.errorCode?this.toastr.error("Viga: paroolivahetuslink on aegunud.","Viga"):this.toastr.error("Parooli muutmisel tekkis viga "+e.status,"Viga"),this.modal.close()})}else this.showFormErrors=!0;event.preventDefault(),event.stopPropagation()}close(){this.modal.close()}}Pj.\u0275fac=function(e){return new(e||Pj)(kc(VC),kc(YN),kc(QN),kc(Ij),kc(FD),kc(AM),kc(DM))},Pj.\u0275cmp=Je({type:Pj,selectors:[["ng-component"]],features:[zd([])],decls:24,vars:10,consts:function(){let e,t,n,s,i;return e="Uus parool",t="\n          Kohustuslik v\xE4li\n        ",n="\n          Parool peab olema 8 s\xFCmbolit pikk ja sisaldama v\xE4hemalt \xFChte suurt t\xE4hte ja numbrit.\n        ",s="Korda uut parooli",i="Muuda parool",[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",3,"formGroup"],[1,"modal-avatar"],["src","assets/images/TAI_logo_black_text.svg","alt","Tervise Arengu Instituut"],[1,"sign-title"],[3,"formGroup"],[1,"form-group","row"],[1,"col-12"],["type","password","placeholder",e,"formControlName","password",1,"form-control"],[1,"invalid-feedback",3,"hidden"],t,n,["type","password","placeholder",s,"formControlName","passwordRepeat",1,"form-control"],["type","submit",1,"btn","btn-tai-primary-big","btn-block","mt-3",3,"disabled","click"],i]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"button",1),jc("click",function(){return t.modal.close()}),Oc(2,"span",2),Mu(3,"\xd7"),Ic(),Ic(),Ic(),Oc(4,"div",3),Oc(5,"div",4),Pc(6,"img",5),Ic(),Oc(7,"header",6),Mu(8,"Parooli taastamine"),Ic(),Oc(9,"form",7),Oc(10,"div",8),Oc(11,"div",9),Pc(12,"input",10),Oc(13,"div",11),Id(14,12),Ic(),Oc(15,"div",11),Id(16,13),Ic(),Ic(),Ic(),Oc(17,"div",8),Oc(18,"div",9),Pc(19,"input",14),Oc(20,"div",11),Mu(21," Paroolid ei kattu "),Ic(),Ic(),Ic(),Oc(22,"button",15),jc("click",function(e){return t.submit(e)}),Id(23,16),Ic(),Ic(),Ic()),2&e&&(Lo(4),Tc("formGroup",t.form),Lo(5),Tc("formGroup",t.form),Lo(3),yu("is-invalid",t.isInvalid("password")),Lo(1),Tc("hidden",!(null!=t.form.get("password").errors&&t.form.get("password").errors.required)),Lo(2),Tc("hidden",!(null!=t.form.get("password").errors&&t.form.get("password").errors.pattern)),Lo(4),yu("is-invalid",t.isInvalid("passwordRepeat")),Lo(1),Tc("hidden",!(null!=t.form.get("passwordRepeat").errors&&t.form.get("passwordRepeat").errors.invalid)),Lo(2),Tc("disabled",!t.form.valid))},directives:[gw,oC,Kw,L_,fw,pC],styles:[".border-radius-3[_ngcontent-%COMP%]{border-radius:3px}input[_ngcontent-%COMP%]{border-radius:4px}"]});class Aj{}Aj.\u0275fac=function(e){return new(e||Aj)},Aj.\u0275mod=st({type:Aj}),Aj.\u0275inj=_e({providers:[YN,QN],imports:[[Rb,vT,NC,LC,xP,MM,dM,DN,qT,ZT,gj]]});function Mj(e,t,n={}){if("number"!=typeof e||!Number.isFinite(e))return void 0!==n.noValue?n.noValue:"-";const s=Math.min(Math.max(Math.trunc(t)||0,0),20),i=Math.abs(e),r=e<0?"-":"";if("UNIT_NO_ROUNDING"===n.unit){const e=Math.round(i);return 0===e?"0":r+e.toString()}if(0===parseFloat(i.toFixed(s)))return"0";let o=Math.floor(i);const a=o.toString().length;let l=Math.max(s-a,0);const c=i-o;return 0===o&&(l=s),1===parseFloat(c.toFixed(l))&&(o+=1),0===l?r+Math.round(i).toString():r+o.toString()+("en"===n.locale?".":",")+c.toFixed(l).split(".")[1]}class Fj{transform(e){return function(e){if(null===e)return null;if(!e)return 0;const t=parseFloat(e);switch(!0){case t>=100:return Math.round(t);case t>=10:return t.toFixed(1);case t>=1:return t.toFixed(2);case t>0:return t.toFixed(3);default:return t.toFixed(0)}}(e)}}Fj.\u0275fac=function(e){return new(e||Fj)},Fj.\u0275pipe=at({name:"toisAmount",type:Fj,pure:!0});class Rj{transform(e,t,n,s,i){return void 0===t&&Array.isArray(e)?(r=e)?r.length<4?r:Mj(r[0],r[1],{unit:r[2],locale:r[3]}):r:Mj(e,t,{unit:n,locale:s,noValue:i});var r}}Rj.\u0275fac=function(e){return new(e||Rj)},Rj.\u0275pipe=at({name:"toisRound",type:Rj,pure:!0});class Nj{}function Lj(e,t,n){let s;return s=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let i,r,o=0,a=!1,l=!1;return function(c){let u;o++,!i||a?(a=!1,i=new tE(e,t,s),u=i.subscribe(this),r=c.subscribe({next(e){i.next(e)},error(e){a=!0,i.error(e)},complete(){l=!0,r=void 0,i.complete()}}),l&&(r=void 0)):u=i.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,r&&!l&&n&&0===o&&(r.unsubscribe(),r=void 0,i=void 0)})}}(s))}Nj.\u0275fac=function(e){return new(e||Nj)},Nj.\u0275mod=st({type:Nj}
3),Nj.\u0275inj=_e({});new Gv({"Content-Type":"application/json"});const Vj={headers:new Gv({Authorization:"Basic Yml0d2ViOkFzNzZ0YWxhdmlzdGE="})};class jj{constructor(e,t){this.http=e,this.router=t,this.apiServer=IN.settings.apiServer,this.pagesSubject=new k,this.pages$=this.pagesSubject.asObservable().pipe(Lj(1)),this.childInit=new k,this.childInit$=this.childInit.asObservable()}handleError(e){return e.error instanceof ErrorEvent?console.error("An error occurred:",e.error.message):(this.router.navigate(["/404"]),console.error(`Backend returned code ${e.status}`)),ZD("Something bad happened; please try again later.")}setChildInit(){this.childInit.next(!0)}loadAllPages(){const e=this.apiServer.coreServer+"pages/5";this.http.get(e,Vj).subscribe(e=>{this.pagesSubject.next(e)})}getContactInfoByApp(e){const t=this.apiServer.coreServer+"contacts/info/"+e;return this.http.get(t)}postContactLetter(e){const t=this.apiServer.coreServer+"contacts/letter/";return this.http.post(t,e)}verifyRecaptcha(e){const t=this.apiServer.coreServer+"contacts/verifycaptcha";return this.http.post(t,e)}}function Bj(e,t){if(1&e){const e=Rc();Oc(0,"div",23),jc("click",function(){Yt(e);return Hc().menuToggle()}),Oc(1,"span",24),Mu(2,"\xd7"),Ic(),Oc(3,"span"),Id(4,25),Ic(),Ic()}}function $j(e,t){if(1&e){const e=Rc();Oc(0,"div",26),jc("click",function(){Yt(e);return Hc().menuToggle()}),Oc(1,"span",27),Pc(2,"div",15),Pc(3,"div",16),Pc(4,"div",17),Ic(),Oc(5,"span"),Id(6,28),Ic(),Ic()}if(2&e){Tc("ngClass","inactive"==Hc().state?"closed-btn-padding":"")}}function zj(e,t){1&e&&(Oc(0,"a",29),Oc(1,"span",30),Id(2,31),Ic(),Oc(3,"span",32),Id(4,33),Ic(),Ic())}function Uj(e,t){1&e&&(Oc(0,"a",29),Oc(1,"span"),Id(2,34),Ic(),Oc(3,"span",32),Id(4,35),Ic(),Ic())}function Hj(e,t){if(1&e){const e=Rc();Oc(0,"div",38),Oc(1,"a",39),jc("click",function(){Yt(e);return Hc(2).closeOnClick()}),Oc(2,"span",40),Pc(3,"img",41),Ic(),Mu(4),Ic(),Ic()}if(2&e){const e=Hc(),t=e.$implicit,n=e.index,s=Hc();Lo(1),Gc("href",s.getSlugLang(t),_r),Tc("ngClass","/"===s.router.url&&0===n?"active":"")("fragment",s.getSlugLang(t)),Lo(2),Zc("src","assets/images/food-icon/",t.icon,"",_r),Lo(1),Ru(" ",s.getTitle(t)," ")}}function qj(e,t){if(1&e&&(Oc(0,"li",36),Gl(1,Hj,5,5,"div",37),Ic()),2&e){const e=t.$implicit;Lo(1),Tc("ngIf",e.isParent&&e.isPublic)}}jj.\u0275fac=function(e){return new(e||jj)(ri(l_),ri(iT))},jj.\u0275prov=ve({token:jj,factory:jj.\u0275fac});const Wj=function(e){return{"menu-block-inactive":e}};class Kj{constructor(e,t,n,s){this.pagesService=e,this.route=n,this.router=s,this.mobileMenuOpenChange=new Df,this.sizeShow=!1,this.burgerStatus=!0,this.state="active",this.statuses={},this.pagesService.getPages(),this.current_locale=t}ngOnInit(){this.getPages(),window.innerWidth>991?(this.sizeShow=!0,this.menuText=!0,this.burgerStatus=!0):(this.sizeShow=!1,this.menuText=!1,this.burgerStatus=!1),window.innerWidth>991&&window.innerWidth<1366&&(this.state="inactive",this.mobileMenuOpenChange.emit(!1))}changeChevron(e){document.getElementById("subMenu"+e).classList.contains("collapsing")||(this.statuses[e]=!this.statuses[e])}burgerToggle(){document.getElementById("navbar").classList.contains("collapsing")||(this.burgerStatus=!this.burgerStatus,this.mobileMenuOpenChange.emit(this.burgerStatus))}menuToggle(){window.innerWidth>991&&(this.burgerStatus=!0),this.state="active"===this.state?"inactive":"active",window.innerWidth>991&&window.innerWidth<1366&&this.mobileMenuOpenChange.emit("active"===this.state)}getPages(){this.pagesService.getPages().subscribe(e=>{this.pages=e,this.pages.sort((e,t)=>t.isParent-e.isParent);for(const t of this.pages){switch(this.current_locale){case"ru":t.title=t.titleRus,t.slug=t.slugRus;break;case"en":t.title=t.titleEng,t.slug=t.slugEng;break;default:t.title=t.titleEst,t.slug=t.slugEst}this.route.snapshot.params.slug===t.slug&&t.groupId&&(this.parentId=t.groupId)}},e=>console.error(e),()=>{})}onResize(e){e.target.innerWidth>991?(this.sizeShow=!0,this.menuText=!0,this.burgerStatus=!0):(this.sizeShow=!1,this.menuText=!1,this.burgerStatus=!1,this.state="active",this.mobileMenuOpenChange.emit(this.burgerStatus)),e.target.innerWidth>1365&&(this.state="active"),window.innerWidth>991&&window.innerWidth<1366&&(this.state="inactive",this.mobileMenuOpenChange.emit(!1))}
3getTitle(e){return OT(e,this.current_locale)}getSlugLang(e){return"et"===this.current_locale?e.slugEst:"en"===this.current_locale?e.slugEng:"ru"===this.current_locale?e.slugRus:void 0}closeOnClick(){window.innerWidth<1366&&window.innerWidth>991?(this.state="active"===this.state?"inactive":"active",this.mobileMenuOpenChange.emit("active"===this.state)):window.innerWidth<992&&(this.burgerStatus=!this.burgerStatus,this.mobileMenuOpenChange.emit(this.burgerStatus))}}Kj.\u0275fac=function(e){return new(e||Kj)(kc(AN),kc(jg),kc(Mk),kc(iT))},Kj.\u0275cmp=Je({type:Kj,selectors:[["app-main-menu"]],hostBindings:function(e,t){1&e&&jc("resize",function(e){return t.onResize(e)},!1,Nr)},outputs:{mobileMenuOpenChange:"mobileMenuOpenChange"},decls:26,vars:16,consts:function(){let e,t,n,s,i,r;return e="Sulge",t="Men\xFC\xFC",n="Toitumise",s="infos\xFCsteem",i="Toitumise",r="infos\xFCsteem",[[1,"menu-block",3,"ngClass"],[3,"hidden"],[1,"navbar-top-part"],[1,"nutriData-title"],[1,"navbar-brand-area","nutriData-title-color"],["src","assets/images/Nutridata_TAI_logo_EST_oranz.svg","usemap","#logo-map"],["name","logo-map"],["shape","rect","coords","0,0, 103,40","href","https://www.tai.ee/et/","target","_blank","alt","Tervise Arengu Instituut"],["shape","rect","coords","105,0, 258,40","href","https://www.nutridata.ee/et/","alt","Toidu koostise andmebaas"],["class","d-flex align-content-center","id","menu-toggle",3,"click",4,"ngIf","ngIfElse"],["open",""],[1,"overflow-hidden","w-100"],[1,"scroll-container"],[1,"navbar-header","w-100","px-4","text-lg-center"],["id","menu-burger","data-target","#navbar","aria-expanded","false","aria-controls","navbar",1,"d-lg-none","float-right","navbar-toggle",3,"ngClass","click"],[1,"bar1"],[1,"bar2"],[1,"bar3"],["class","navbar-brand-area mx-auto",3,"routerLink",4,"ngIf","ngIfElse"],["smallScreen",""],["id","navbar",1,"navbar-collapse","collapse",3,"ngClass","ngbCollapse"],[1,"nav","navbar-nav"],["class","position-relative ",4,"ngFor","ngForOf"],["id","menu-toggle",1,"d-flex","align-content-center",3,"click"],[1,"menu-close-X"],e,["id","menu-toggle",1,"d-flex","align-content-center",3,"ngClass","click"],[1,"mr-1","menu-close-X"],t,[1,"navbar-brand-area","mx-auto",3,"routerLink"],[1,"d-block","pb-2","mr-1"],n,[1,"title-color"],s,i,r,[1,"position-relative"],["class","tai-sidemenu-toggle",4,"ngIf"],[1,"tai-sidemenu-toggle"],[1,"h-100","d-block",3,"routerLink","ngClass","href","fragment","click"],[1,"icon-bg"],["alt","Toitumisinfos\xfcsteemi eesm\xe4rk",1,"menu-icon",3,"src"]]},template:function(e,t){if(1&e&&(Oc(0,"div",0),Oc(1,"nav",1),Oc(2,"div",2),Oc(3,"div",3),Oc(4,"span",4),Pc(5,"img",5),Oc(6,"map",6),Pc(7,"area",7),Pc(8,"area",8),Ic(),Ic(),Ic(),Gl(9,Bj,5,0,"div",9),Gl(10,$j,7,1,"ng-template",null,10,Wf),Ic(),Oc(12,"div",11),Oc(13,"div",12),Oc(14,"div",13),Oc(15,"div",14),jc("click",function(){return t.burgerToggle()}),Pc(16,"div",15),Pc(17,"div",16),Pc(18,"div",17),Ic(),Gl(19,zj,5,0,"a",18),Gl(20,Uj,5,0,"ng-template",null,19,Wf),Ic(),Oc(22,"div",20),Oc(23,"ul",21),Gl(24,qj,2,1,"li",22),Ic(),Ic(),Ic(),Ic(),Ic(),Ic(),Pc(25,"router-outlet")),2&e){const e=Zl(11),n=Zl(21);Tc("ngClass",nf(14,Wj,t.sizeShow&&"inactive"===t.state)),Lo(1),Hu("navbar navbar-default ow-navigation ",t.state,""),Tc("@menuToggle",t.state)("hidden",!t.sizeShow&&!t.burgerStatus),Lo(8),Tc("ngIf","active"==t.state)("ngIfElse",e),Lo(6),Tc("ngClass",t.burgerStatus?"change":""),Lo(4),Tc("ngIf",t.menuText)("ngIfElse",n),Lo(3),Tc("ngClass",t.sizeShow?"show":"")("ngbCollapse",!t.burgerStatus),Lo(2),Tc("ngForOf",t.pages)}},directives:[Jy,sb,CP,tb,cT,oT],styles:[".menu-block{z-index:1032;overflow:visible}.menu-block .navbar-nav li{width:310px}.menu-block .navbar-top-part{height:56px;display:table}.menu-block .navbar-top-part #menu-toggle{display:none!important;position:absolute;right:-100px;cursor:pointer;margin-top:15px;visibility:visible!important;text-transform:uppercase;color:#646a6e;font-size:18px;line-height:25px}.menu-block .navbar-top-part #menu-toggle .menu-close-X{font-size:75px;font-weight:100;margin-top:-6px}.menu-block .navbar-top-part #menu-toggle .bar1,.menu-block .navbar-top-part #menu-toggle .bar2,.menu-block .navbar-top-part #menu-toggle .bar3{width:35px;height:3px;background-color:#646a6e;transition:.4s;margin-right:5px}.menu-block .navbar-top-part #menu-toggle .bar2{margin-top:8px;margin-bottom:8px}.menu-block .navbar-top-part #menu-toggle .bar1{margin-top:5px}.menu-block .navbar-top-part .closed-btn-padding{right:-140px!important}.nutriData-title-color{font-size:30px!important;color:#fff!important;font-weight:400!important}.nutriData-title{font-size:30px;font-weight:700;margin:0;text-align:center;display:table-cell;vertical-align:middle;text-transform:uppercase}@media only screen and (min-width:992px){.navbar-header{border-right:1px solid #ebebeb!important}.menu-block{float:left;overflow-y:visible;max-height:100vh}.menu-block .scroll-container{width:100%!important;max-height:calc(100vh - 56px);overflow-y:auto;overflow-x:hidden}.menu-block .scroll-container::-webkit-scrollbar{width:8px}.menu-block .scroll-container::-webkit-scrollbar-track{background:rgba(0,0,0,.05)}.menu-block .scroll-container::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:4px}.menu-block .navbar-header{float:none;height:160px}.menu-block .navbar-collapse{float:none}}.inactive{visibility:hidden}@media only screen and (min-width:992px) and (max-width:1365px){.menu-block .ow-navigation.inactive,.menu-block.menu-block-inactive{pointer-events:none}.menu-block .ow-navigation.active{pointer-events:auto}.menu-block .navbar-top-part #menu-toggle{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.menu-block{margin-left:0}}li .active .icon-bg{background-color:#00c0f1!important;margin-right:35px!important}li .active .icon-bg:before{right:-8px!important;border-left:12px solid #00c0f1!important}.ow-navigation .nav.navbar-nav li>a:hover .icon-bg:after,.ow-navigation .nav.navbar-nav li>div a:hover .icon-bg:after,.ow-navigation .nav.navbar-nav li>ul li a:hover .icon-bg:after{background-color:#888d90!important}.font-size-20,.small-screen-en-title{font-size:20px!important}.small-screen-en-title .title-color{margin-left:10px}@media only screen and (max-width:479px){.small-screen-en-title{font-size:14px!important;line-height:4px!important}.navbar-brand-area{line-height:3px!important}}@media (max-width:480px){.ow-navigation .navbar-header{padding:27px 10px}.menu-block{width:100%!important;float:none}}@media only screen and (max-width:991px){.menu-block{background:transparent;line-height:0;padding-left:0;padding-right:0}.ow-navigation{background:transparent;border:0;margin:0;min-height:0;padding:0}.overflow-hidden,.scroll-container{line-height:0;min-height:0}.navbar-header,.navbar-top-part{display:none!important}.navbar-collapse{border-top:0;box-shadow:none}}"],encapsulation:2,data:{animation:[eD("menuToggle",[iD("inactive",sD({left:"-100%",height:"60px"})),iD("active",sD({left:"0",height:"auto"})),rD("inactive => active",tD("200ms ease-in")),rD("active => inactive",tD("200ms ease-out"))])]}});class Gj{constructor(){this.mobileMenuToggle=new Df,this.tabletMe
3nuToggle=new Df,this.mobileMenuOpen=!1}handleMobileMenuToggle(){this.mobileMenuToggle.emit()}handleTabletMenuToggle(){this.tabletMenuToggle.emit()}setMobileMenuOpen(e){this.mobileMenuOpen=e}}Gj.\u0275fac=function(e){return new(e||Gj)},Gj.\u0275cmp=Je({type:Gj,selectors:[["app-top-bar"]],outputs:{mobileMenuToggle:"mobileMenuToggle",tabletMenuToggle:"tabletMenuToggle"},decls:8,vars:4,consts:function(){let e,t;return e="Toitumise",t="infos\xFCsteem",[[1,"main-top-bar","always-sticky",3,"showLanguageSelector","showAuthActions","showUserMenu","mobileMenuOpen","tabletMenuToggle","mobileMenuToggle"],["toisTopBarMobileLogo","",1,"main-mobile-logo"],["src","assets/images/Nutridata_TAI_logo_EST_oranz.svg","alt","Nutridata"],["toisTopBarMobileBrand","",1,"main-mobile-brand-title"],e,[1,"title-color"],t]},template:function(e,t){1&e&&(Oc(0,"tois-top-bar",0),jc("tabletMenuToggle",function(){return t.handleTabletMenuToggle()})("mobileMenuToggle",function(){return t.handleMobileMenuToggle()}),Oc(1,"div",1),Pc(2,"img",2),Ic(),Oc(3,"span",3),Oc(4,"span"),Id(5,4),Ic(),Oc(6,"span",5),Id(7,6),Ic(),Ic(),Ic()),2&e&&Tc("showLanguageSelector",!1)("showAuthActions",!1)("showUserMenu",!1)("mobileMenuOpen",t.mobileMenuOpen)},directives:[fj],styles:['.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-position:sticky;--tois-top-bar-z-index:1031;--tois-top-bar-justify-content:flex-end;--tois-top-bar-height:56px;--tois-top-bar-mobile-menu-padding:0 24px 0 48px;--tois-top-bar-mobile-brand-font-size:23px;--tois-top-bar-mobile-brand-letter-spacing:4.7px;--tois-top-bar-mobile-logo-bg:#00c0f1;--tois-top-bar-mobile-brand-line-height:57px;--tois-top-bar-mobile-menu-toggle-bar-height:2px;--tois-top-bar-mobile-menu-min-height:56px;--tois-top-bar-mobile-sticky-offset:var(--tois-top-bar-mobile-menu-min-height);--tois-top-bar-mobile-main-menu-position:fixed;--tois-top-bar-language-color:#646a6e;--tois-top-bar-link-color:#646a6e;--tois-top-bar-link-hover-color:#333;--tois-top-bar-app-selector-border-color:#00c0f1;--tois-top-bar-app-selector-color:#00c0f1;--tois-top-bar-app-selector-font-family:"Karla",sans-serif;--tois-top-bar-app-selector-padding:10px;--tois-top-bar-app-selector-hover-bg:#00c0f1;--tois-top-bar-app-selector-hover-border-color:#00c0f1;--tois-top-bar-app-selector-hover-color:#fff;--tois-top-bar-button-link-bg:#fff;--tois-top-bar-button-link-padding:10px;--tois-top-bar-active-nav-bg:#eee;--tois-top-bar-active-nav-color:#646a6e;--tois-top-bar-dropdown-item-hover-color:#333}.main-mobile-logo[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;width:100%}.main-mobile-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;max-height:56px;max-width:430px;width:34%}.always-sticky[_ngcontent-%COMP%]{--tois-top-bar-mobile-sticky-offset:var(--tois-top-bar-mobile-menu-min-height);position:var(--tois-top-bar-mobile-main-menu-position,fixed);z-index:var(--tois-top-bar-z-index,1035)}@media only screen and (min-width:1366px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-position:relative;width:100%;max-width:var(--tois-client-content-width,100%)}}@media only screen and (max-width:1365px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-position:relative;width:var(--tois-client-content-width,100%)}}@media only screen and (max-width:991px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-height:auto;--tois-top-bar-border-bottom:0;--tois-top-bar-padding:0;--tois-top-bar-mobile-logo-top:0;--tois-top-bar-mobile-logo-z-index:1035;--tois-top-bar-mobile-main-menu-top:56px;--tois-top-bar-mobile-main-menu-z-index:1034;--tois-top-bar-dropdown-max-height:calc(100vh - 112px);position:sticky;--tois-top-bar-mobile-sticky-offset:var(--tois-top-bar-mobile-menu-min-height,56px);--tois-top-bar-mobile-logo-position:fixed;--tois-top-bar-mobile-main-menu-position:fixed}}@media (max-width:767px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-position:static;--tois-top-bar-mobile-logo-top:0;--tois-top-bar-mobile-logo-z-index:1035;--tois-top-bar-mobile-main-menu-z-index:1034}}@media only screen and (max-width:560px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-mobile-menu-padding:0 12px 0 16px;--tois-top-bar-mobile-brand-font-size:18px;--tois-top-bar-mobile-brand-line-height:57px;--tois-top-bar-mobile-brand-letter-spacing:3px}.main-mobile-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:40px;width:60%}}
3@media only screen and (max-width:479px){.main-top-bar[_ngcontent-%COMP%]{--tois-top-bar-button-link-padding:8px;--tois-top-bar-app-selector-padding:8px;--tois-top-bar-mobile-brand-font-size:13px;--tois-top-bar-mobile-brand-line-height:21px;--tois-top-bar-mobile-brand-letter-spacing:1.8px;--tois-top-bar-mobile-menu-padding:0 8px;--tois-top-bar-notification-font-size:12px}}']});class Zj{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}Zj.\u0275fac=function(e){return new(e||Zj)(kc(Tv))},Zj.\u0275pipe=at({name:"safe",type:Zj,pure:!0});const Qj=["childChangeDetector"],Yj=function(e){return{active:e}};function Jj(e,t){if(1&e){const e=Rc();Oc(0,"li",8),Oc(1,"a",9),jc("mouseenter",function(){Yt(e);const n=t.$implicit;return Hc().onHover(n.module)})("click",function(){Yt(e);const n=t.$implicit;return Hc().onClickRedirect(n.url)}),Oc(2,"i",10),Pc(3,"span"),Ic(),Oc(4,"span",11),Mu(5),Ic(),Ic(),Ic()}if(2&e){const e=t.$implicit,n=Hc();Hu("",e.module+"-bg"," tab-area d-inline-block"),Tc("ngClass",nf(9,Yj,n.activeModule===e.module)),Lo(1),Zc("href","#",e.module,"",_r),Lo(2),Hu("c-icon ",e.module+"-icon",""),Lo(2),Ru(" ",e.title," ")}}const Xj=function(e,t,n,s,i){return{"tai-green":e,"tai-red":t,"tai-lilac":n,"tai-dark-green":s,"tai-yellow":i}};function eB(e,t){if(1&e&&(Oc(0,"div",12),Oc(1,"div",3),Oc(2,"div",13),Oc(3,"h3"),Mu(4),Ic(),Oc(5,"div",13),Oc(6,"a",14),Id(7,15),Ic(),Ic(),Ic(),Ic(),Pc(8,"div",16),bf(9,"safe"),Ic()),2&e){const e=t.$implicit,n=Hc();Hu("tab-pane ",e.module+"-bg "+(n.activeModule===e.module?"active":""),""),Gc("id",e.module),Lo(4),Fu(e.title),Lo(2),Tc("ngClass",af(10,Xj,"page_tap"===e.module,"page_tka"===e.module,"page_asp"===e.module,"page_kup"===e.module,"page_diet"===e.module))("href",e.url,_r),Lo(2),Tc("innerHTML",vf(9,8,e.content),br)}}class tB{constructor(e,t,n,s,i,r,o){this.route=e,this.router=t,this.location=n,this.commonService=s,this.pageService=i,this.sanitizer=r,this.ngDestroy=new k,this.subPagesDetailedList=[],this.current_locale=o}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{e&&(this.page=e.find(e=>"group_subparts"===e.module),this.subPages=e.filter(e=>!1===e.isParent&&e.groupId===this.page.id&&null!==e.module),this.getSubPagesContent(this.subPages),this.pageTitle=OT(this.page,this.current_locale),this.activeModule=this.subPages[0].module,this.slug=IT(this.page,this.current_locale))})}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}ngAfterViewInit(){this.childChangeDetector.changes.subscribe(e=>{this.commonService.setChildInit()})}onHover(e){this.activeModule=e}onClickRedirect(e){e&&window.open(e,"_blank")}getSubPagesContent(e){const t=[];for(const n of e)this.pageService.getPageByModuleLanguage(n.module,this.current_locale).subscribe(e=>{e&&t.push(e)},e=>{},()=>{t.length===this.subPages.length&&(this.subPagesDetailedList=t,this.subPagesDetailedList.sort((e,t)=>e.pageOrder-t.pageOrder),this.commonService.setChildInit())})}}tB.\u0275fac=function(e){return new(e||tB)(kc(Mk),kc(iT),kc(Xm),kc(jj),kc(AN),kc(Tv),kc(jg))},tB.\u0275cmp=Je({type:tB,selectors:[["app-subparts"]],viewQuery:function(e,t){if(1&e&&Bf(Qj,1),2&e){let e;jf(e=zf())&&(t.childChangeDetector=e)}},decls:10,vars:4,consts:function(){let e;return e="Mine lehele",[[1,"features-section",3,"id"],["childChangeDetector",""],[1,"section-header"],[1,"row"],["role","tablist",1,"nav","nav-tabs","d-flex","flex-wrap","justify-content-around"],["role","presentation",3,"class","ngClass",4,"ngFor","ngForOf"],[1,"tab-content","container-fluid","no-padding"],["role","tabpanel",3,"class","id",4,"ngFor","ngForOf"],["role","presentation",3,"ngClass"],["role","tab","data-toggle","tab","aria-expanded","true",1,"w-100",3,"href","mouseenter","click"],["aria-hidden","true"],[1,"d-none","d-md-inline"],["role","tabpanel",3,"id"],[1,"col-xs-12","text-center"],["target","_blank","rel","noopener",1,"btn","btn-tai-primary",3,"ngClass","href"],e,[1,"service-section","container-fluid",3,"innerHTML"]]},template:function(e,t){1&e&&(Oc(0,"div",0,1),Oc(2,"div",2),Oc(3,"h3"),Mu(4),Ic(),Ic(),Oc(5,"div",3),Oc(6,"ul",4),Gl(7,Jj,6,11,"li",5),Ic(),Oc(8,"div",6),Gl(9,eB,10,16,"div",7),Ic(),Ic(),Ic()),2&e&&(Gc("id",t.slug),Lo(4),Fu(t.pageTitle),Lo(3),Tc("ngForOf",t.subPagesDetailedList),Lo(2),Tc("ngForOf",t.subPagesDetailedList))},directives:[tb,Jy],pipes:[Zj],styles:['.service-section .nav-tabs li a{font-family:Roboto,sans-serif;text-transform:uppercase}  .entry-content p{font-family:Roboto,sans-serif}  .features-section .nav-tabs li a{font-family:Roboto,sans-serif}  .features-section .nav-tabs li a .c-icon{position:absolute;width:103px;height:103px;left:0}  .features-section .nav-tabs li a .c-icon.page_tka-icon{background:url(icon_01.df2653a7927b5b59ab43.svg) no-repeat 50%;background-size:40%}  .features-section .nav-tabs li a .c-icon.page_tap-icon{background:url(icon_02.e563919991f935b6d7f3.svg) no-repeat 50%;background-size:40%}  .features-section .nav-tabs li a .c-icon.page_asp-icon{background:url(icon_03.ad18d512b5932637219a.svg) no-repeat 50%;background-size:40%}  .features-section .nav-tabs li a .c-icon.page_diet-icon{background:url(icon_04.e4a3654b88f6fe089226.svg) no-repeat 50%;background-size:40%}  .features-section .nav-tabs li a .c-icon.page_kup-icon{background:url(icon_05.6cef7a4cf896307b20ca.svg) no-repeat 50%;background-size:40%}  .features-section .nav-tabs li a:hover .c-icon{position:absolute;width:111px;height:111px;left:0;transition:all .3s ease 0s}  .features-section .nav-tabs li a:hover .c-icon.page_tka-icon{background:url(icon_01_h.98657b29d9180f95b5da.svg) 
3no-repeat 50%;background-size:60%}  .features-section .nav-tabs li a:hover .c-icon.page_tap-icon{background:url(icon_02_h.a29d8474aab38df0b551.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li a:hover .c-icon.page_asp-icon{background:url(icon_03_h.a3f4381f7f2f0e648a31.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li a:hover .c-icon.page_diet-icon{background:url(icon_04_h.d7bbb710087843100e4d.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li a:hover .c-icon.page_kup-icon{background:url(icon_05_h.bd0efcd441e36dffc894.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li.active a .c-icon{position:absolute;width:111px;height:111px;left:0}  .features-section .nav-tabs li.active a .c-icon.page_tka-icon,   .features-section .nav-tabs li.active a:hover .c-icon.page_tka-icon{background:url(icon_01_h.98657b29d9180f95b5da.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li.active a .c-icon.page_tap-icon,   .features-section .nav-tabs li.active a:hover .c-icon.page_tap-icon{background:url(icon_02_h.a29d8474aab38df0b551.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li.active a .c-icon.page_asp-icon,   .features-section .nav-tabs li.active a:hover .c-icon.page_asp-icon{background:url(icon_03_h.a3f4381f7f2f0e648a31.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li.active a .c-icon.page_diet-icon,   .features-section .nav-tabs li.active a:hover .c-icon.page_diet-icon{background:url(icon_04_h.d7bbb710087843100e4d.svg) no-repeat 50%;background-size:60%}  .features-section .nav-tabs li.active a .c-icon.page_kup-icon,   .features-section .nav-tabs li.active a:hover .c-icon.page_kup-icon{background:url(icon_05_h.bd0efcd441e36dffc894.svg) no-repeat 50%;background-size:60%}  .features-section{padding-top:45px}  .features-section .nav-tabs{padding-left:30px;padding-right:30px;border:none;width:100%}  .features-section .nav-tabs>li.active>a{border:none;color:#00c0f1}  .features-section .nav-tabs>li.active>a i{font-size:25px;line-height:111px;color:#fff}  .features-section .nav-tabs>li.active>a:focus{border:none;color:#00c0f1}  .features-section .nav-tabs>li.active>a:focus i{background-color:#00c0f1;width:111px;height:111px;box-shadow:none;margin-top:0;margin-bottom:33px;color:#fff}  .features-section .nav-tabs>li.active>a:focus i:after{content:"";background-image:url(active-shadow.9c4a01b5a3ab007496d8.png);background-repeat:no-repeat;background-position:bottom;left:0;right:0;z-index:0;height:40px;bottom:-25px;position:absolute;z-index:-1}  .features-section .nav-tabs>li.active>a:hover{border:none;color:#00c0f1}  .features-section .nav-tabs>li.active>a:hover i{background-color:#00c0f1;width:111px;height:111px;box-shadow:none;margin-top:0;margin-bottom:33px}  .features-section .nav-tabs>li.active>a:hover i:after{content:"";background-image:url(active-shadow.9c4a01b5a3ab007496d8.png);background-repeat:no-repeat;background-position:bottom;left:0;right:0;z-index:0;height:40px;bottom:-25px;position:absolute;z-index:-1}  .features-section .nav-tabs>li.active>a i{background-color:#00c0f1;width:111px;height:111px;box-shadow:none;margin-top:0;margin-bottom:33px}  .features-section .nav-tabs>li.active>a i:after{content:"";background-image:url(active-shadow.9c4a01b5a3ab007496d8.png);background-repeat:no-repeat;background-position:bottom;left:0;right:0;z-index:0;height:40px;bottom:-25px;position:absolute;z-index:-1}  .features-section .nav-tabs>li>a i{font-size:25px}  .features-section .nav-tabs>li>a:hover{border:none;background-color:transparent;color:#00c0f1}  .features-section .nav-tabs>li>a:hover i{background-color:#00c0f1;width:111px;height:111px;box-shadow:none;margin-top:0;margin-bottom:33px;font-size:25px;line-height:111px;color:#fff}  .features-section .nav-tabs>li>a:hover i:after{content:"";background-image:url(active-shadow.9c4a01b5a3ab007496d8.png);background-repeat:no-repeat;background-position:bottom;left:0;right:0;z-index:0;height:40px;bottom:-25px;position:absolute;z-index:-1}  .features-section .nav-tabs>li>a:focus{border:none;background-color:transparent;color:#00c0f1}  .features-section .nav-tabs>li>a:focus i{background-color:#00c0f1;width:111px;height:111px;box-shadow:none;margin-top:0;margin-bottom:33px}  .features-section .nav-tabs>li>a:focus i:after{content:"";background-image:url(active-shadow.9c4a01b5a3ab007496d8.png);background-repeat:no-repeat;background-position:bottom;left:0;right:0;z-index:0;height:40px;bottom:-25px;position:absolute;z-index:-1}  .features-section .nav-tabs li{width:20%;text-align:center;margin-bottom:0;padding-bottom:35px;position:relative}  .features-section .nav-tabs li:hover:before{content:"";width:23px;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:10px solid #e6e6e6;position:absolute;
3left:0;margin:0 auto;bottom:-1px;right:0}  .features-section .nav-tabs li:focus:before{content:"";width:23px;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:10px solid #e6e6e6;position:absolute;left:0;margin:0 auto;bottom:-1px;right:0}  .features-section .nav-tabs li a{font-size:15px;color:rgba(0,0,0,.7);margin:0}  .features-section .nav-tabs li a i{display:block;width:103px;height:103px;margin:15px auto 25px;border:1px solid #ededed;border-radius:100%;line-height:103px;box-shadow:0 0 10px 6px rgba(0,0,0,.03);position:relative;z-index:1;transition:all .3s ease 0s}  .features-section .nav-tabs li.active:before{content:"";width:23px;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:10px solid #e6e6e6;position:absolute;left:0;margin:0 auto;bottom:-1px;right:0}  .nav-tabs>li{display:flex;align-items:center;justify-content:center}  .features-section .nav-tabs>li.active.page_asp-bg>a{color:#d896ff}  .features-section .nav-tabs>li.active.page_asp-bg>a:focus{color:#d896ff}  .features-section .nav-tabs>li.active.page_asp-bg>a:focus i{background-color:#d896ff}  .features-section .nav-tabs>li.active.page_asp-bg>a:hover{color:#d896ff}  .features-section .nav-tabs>li.active.page_asp-bg>a:hover i{background-color:#d896ff}  .features-section .nav-tabs>li.active.page_asp-bg>a i{background-color:#d896ff}  .features-section .nav-tabs>li.page_asp-bg>a:hover{color:#d896ff}  .features-section .nav-tabs>li.page_asp-bg>a:hover i{background-color:#d896ff}  .features-section .nav-tabs>li.page_asp-bg>a:focus{color:#d896ff}  .features-section .nav-tabs>li.page_asp-bg>a:focus i{background-color:#d896ff}  .features-section .nav-tabs>li.active.page_tap-bg>a{color:#74d600}  .features-section .nav-tabs>li.active.page_tap-bg>a:focus{color:#74d600}  .features-section .nav-tabs>li.active.page_tap-bg>a:focus i{background-color:#74d600}  .features-section .nav-tabs>li.active.page_tap-bg>a:hover{color:#74d600}  .features-section .nav-tabs>li.active.page_tap-bg>a:hover i{background-color:#74d600}  .features-section .nav-tabs>li.active.page_tap-bg>a i{background-color:#74d600}  .features-section .nav-tabs>li.page_tap-bg>a:hover{color:#74d600}  .features-section .nav-tabs>li.page_tap-bg>a:hover i{background-color:#74d600}  .features-section .nav-tabs>li.page_tap-bg>a:focus{color:#74d600}  .features-section .nav-tabs>li.page_tap-bg>a:focus i{background-color:#74d600}  .features-section .nav-tabs>li.active.page_tka-bg>a{color:#fe5757}  .features-section .nav-tabs>li.active.page_tka-bg>a:focus{color:#fe5757}  .features-section .nav-tabs>li.active.page_tka-bg>a:focus i{background-color:#fe5757}  .features-section .nav-tabs>li.active.page_tka-bg>a:hover{color:#fe5757}  .features-section .nav-tabs>li.active.page_tka-bg>a:hover i{background-color:#fe5757}  .features-section .nav-tabs>li.active.page_tka-bg>a i{background-color:#fe5757}  .features-section .nav-tabs>li.page_tka-bg>a:hover{color:#fe5757}  .features-section .nav-tabs>li.page_tka-bg>a:hover i{background-color:#fe5757}  .features-section .nav-tabs>li.page_tka-bg>a:focus{color:#fe5757}  .features-section .nav-tabs>li.page_tka-bg>a:focus i{background-color:#fe5757}  .features-section .nav-tabs>li.active.page_kup-bg>a{color:#028900}  .features-section .nav-tabs>li.active.page_kup-bg>a:focus{color:#028900}  .features-section .nav-tabs>li.active.page_kup-bg>a:focus i{background-color:#028900}  .features-section .nav-tabs>li.active.page_kup-bg>a:hover{color:#028900}  .features-section .nav-tabs>li.active.page_kup-bg>a:hover i{background-color:#028900}  .features-section .nav-tabs>li.active.page_kup-bg>a i{background-color:#028900}  .features-section .nav-tabs>li.page_kup-bg>a:hover{color:#028900}  .features-section .nav-tabs>li.page_kup-bg>a:hover i{background-color:#028900}  .features-section .nav-tabs>li.page_kup-bg>a:focus{color:#028900}  .features-section .nav-tabs>li.page_kup-bg>a:focus i{background-color:#028900}  .features-section .nav-tabs>li.active.page_diet-bg>a{color:#f8b624}  .features-section .nav-tabs>li.active.page_diet-bg>a:focus{color:#f8b624}  .features-section .nav-tabs>li.active.page_diet-bg>a:focus i{background-color:#f8b624}  .features-section .nav-tabs>li.active.page_diet-bg>a:hover{color:#f8b624}  .features-section .nav-tabs>li.active.page_diet-bg>a:hover i{background-color:#f8b624}  .features-section .nav-tabs>li.active.page_diet-bg>a i{background-color:#f8b624}  .features-section .nav-tabs>li.page_diet-bg>a:hover{color:#f8b624}  .features-section .nav-tabs>li.page_diet-bg>a:hover i{background-color:#f8b624}  .features-section .nav-tabs>li.page_diet-bg>a:focus{color:#f8b624}  .features-section .nav-tabs>li.page_diet-bg>a:focus i{background-color:#f8b624}  .features-section .tab-pane.page_asp-bg h3{color:#d896ff}  .features-section .tab-pane.page_tap-bg h3{color:#74d600}  .features-section .tab-pane.page_tka-bg h3{color:#fe5757}  .features-section .tab-pane.page_kup-bg h3{color:#028900}  .features-section .tab-pane.page_diet-bg h3{color:#f8b624}  .service-section .tab-content{border:1px solid #f2f2f2;padding:40px 49px}  .service-section .tab-content .tab-pane>a{background-color:#00c0f1;display:inline-block;padding:17px 34px;font-weight:700;font-size:15px;line-height:26px;border-radius:3px;letter-spacing:.4px;text-decoration:none;font-size:14px;margin-top:10px}  .service-section .tab-content .tab-pane>a:hover{background-color:#888d90}  .service-section .tab-content .tab-pane h3{margin-top:0;margin-bottom:15px;font-size:20px;line-height:36px;letter-spacing:1.3px;color:#333;font-weight:400}  .service-section .tab-content .tab-pane p{line-height:25px;margin-bottom:30px;font-size:16px;font-weight:300;color:#878787}  .features-section .tab-content{background:#e6e6e6;padding:30px;width:1170px}  .features-section .tab-content .tab-pane .block{margin-bottom:40px;padding:0 20px}  .features-section .tab-content .tab-pane h3{font-size:36px;text-transform:uppercase;letter-spacing:2px;
3height:auto;padding:20px 0;margin-bottom:20px;line-height:35px;font-family:walkway_semiboldregular;font-weight:700;width:100%;text-align:center}  .features-section .tab-content .tab-pane h4{text-transform:uppercase;font-size:16px;font-weight:700;line-height:21px;letter-spacing:2px}  .tabs-container .tab-content{border:1px solid #ebebeb;border-top:none;display:inline-block;width:100%;padding:48px 36px}  .tabs-container .tab-content .tab-pane h3{margin-top:0;margin-bottom:37px;font-weight:600;font-size:21px}  .tabs-container .tab-content .tab-pane p{font-family:Karla,sans-serif;font-size:16px;color:#757575;line-height:24px;margin-bottom:25px}  .tabs-container .tab-content .tab-pane ul{margin-bottom:0}  .tabs-container .tab-content .tab-pane ul li{font-family:Karla,sans-serif;font-size:16px;display:inline-block;width:100%;margin-bottom:20px}  .tabs-container .tab-content .tab-pane ul li:last-child{margin-bottom:0}  .tabs-container .tab-content .tab-pane ul li:before{content:"\\f101";font-family:FontAwesome;margin-right:10px}  .features-section .tab-content .tab-pane .col-md-4{margin-left:0}@media (max-width:991px){  .service-section .tab-content{border-bottom:none;padding-left:40px;padding-right:40px}  .service-section .nav-tabs li:nth-child(odd){border-left:1px solid #f2f2f2}  .recent-work>div.pull-right{display:inline-block;width:100%;position:relative;margin-bottom:10px}  .recent-work>div .portfolio-switch{position:absolute;top:-70px;right:0}  .portfolio .recent-work>div .portfolio-switch{position:relative;top:0}  .team-section .row>.col-md-3:nth-child(2n-1){clear:left}  .team-box{max-width:255px;margin:0 auto 60px;display:block}  .price-table{max-width:100%;width:450px;display:block;margin:0 auto 30px}  .post-comment .media-list .media .media-left{position:absolute}  .post-comment .media-list .media .media-left a{width:51px;height:61px}  .post-comment .media-list .media .media-body{display:inline-block;max-width:100%}  .post-comment .media-list .media .media-body .media-content{margin-left:65px}  .post-comment .media-content span{margin-left:-20px}  .promo-section{background-image:none;background-color:#f2f2f2}  .product-section .sort{text-align:left;margin-top:15px}  .products nav .pagination li{float:left}  .products nav .pagination li:last-child{float:left}  .single-product-slider{border-bottom:1px solid #ebebeb;border-right:none}}  .service-section .tab-content .tab-pane p{font-family:Roboto,sans-serif}  .service-section .tab-content .tab-pane>a{text-transform:uppercase;color:#fff;transition:all 1s ease 0s}  .service-section .tab-content .tab-pane h3{text-transform:uppercase}  .modal .tab-content{margin-top:30px}  ul.custom{list-style:none;padding:0;margin:0 0 10px}  ul.custom li{position:relative;padding-left:23px}  ul.custom li:before{position:absolute;left:0;
3font-family:FontAwesome;content:"\\f00c";color:#00c0f1}  ul.custom.custom-dark li:before{color:#333}  .tai-green{background:transparent;color:#74d600;border:2px solid #74d600}  .tai-green:hover{background-color:#74d600!important;color:#fff;border:2px solid #74d600}  .tabs-container .nav-tabs>li.active>a{border-radius:0;border-color:transparent}  .tabs-container .nav-tabs>li.active>a:focus{border-radius:0;border-color:transparent}  .tabs-container .nav-tabs>li.active>a:hover{border-radius:0;border-color:transparent}  .ow-navigation .nav.navbar-nav li.active>a{background-color:transparent}  .ow-navigation .ddl-active>.ddl-switch:before{content:"\\f106"}  .ow-navigation .navbar-collapse>.nav.navbar-nav>li.active>a:before{height:2px;bottom:0;left:0;right:0}  .text-center{margin:auto}  .section-header{padding-left:15px}  .tab-area{min-width:150px}@media only screen and (max-width:991px) and (min-width:768px){  .tab-area{min-width:100px!important}  .tab-area i{width:70px!important;height:70px!important}  .tab-area .c-icon{width:71px!important;height:68px!important}  .tab-area a:hover i{width:80px!important;height:80px!important}  .tab-area a:hover .c-icon{width:81px!important;height:79px!important}  li.active i{width:80px!important;height:80px!important}  li.active .c-icon{width:81px!important;height:79px!important}}@media (max-width:767px){  .features-section .nav-tabs>li.active:before{content:"";width:23px;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:10px solid #e6e6e6;position:absolute;left:0;margin:0 auto;bottom:-1px;right:0}  .features-section .nav-tabs>li>a i{width:3rem!important;height:3rem!important;padding:20px}  .features-section .nav-tabs>li.active>a i{width:3.5rem!important;height:3.5rem!important;margin-bottom:10px}  .features-section .nav-tabs li.active a .c-icon,   .features-section .nav-tabs>li>a .c-icon{height:100%!important;width:100%!important;top:0}  .tab-area{min-width:15px}  .features-section .tab-content{width:100%}  .tab-content h3{font-size:24px!important}  .tab-content h4{font-size:18px!important}}  .grecaptcha-badge{z-index:5}']});const nB=["childChangeDetector"];function sB(e,t){if(1&e&&(Oc(0,"div",10),Oc(1,"div",11),Oc(2,"h4",12),Oc(3,"a",13),Pc(4,"span",14),Oc(5,"span",15),Mu(6),Ic(),Ic(),Ic(),Ic(),Oc(7,"div",16),Oc(8,"div",17),Oc(9,"div",18),Pc(10,"div",19),bf(11,"safe"),Ic(),Ic(),Ic(),Ic()),2&e){const e=t.$implicit,n=t.index;Lo(1),Zc("id","heading",n,""),Lo(2),Zc("href","#calendar",n,"",_r),Lo(3),Fu(e.title),Lo(1),Zc("id","calendar",n,""),Lo(3),Tc("innerHTML",vf(11,5,e.content),br)}}function iB(e,t){if(1&e&&(Ac(0),Gl(1,sB,12,7,"div",9),Mc()),2&e){const e=Hc(2);Lo(1),Tc("ngForOf",e.events)}}function rB(e,t){1&e&&(Oc(0,"span"),Id(1,20),Ic())}function oB(e,t){if(1&e&&(Oc(0,"div",1,2),Oc(2,"div",3),Oc(3,"div",4),Oc(4,"div",5),Oc(5,"h3"),Mu(6),Ic(),Ic(),Ic(),Ic(),Oc(7,"div",6),Gl(8,iB,2,1,"ng-container",7),Gl(9,rB,2,0,"ng-template",null,8,Wf),Ic(),Ic()),2&e){const e=Zl(10),t=Hc();Gc("id",t.slug),Lo(6),Fu(t.pageTitle),Lo(2),Tc("ngIf",t.events.length>0)("ngIfElse",e)}}class aB{constructor(e,t,n){this.commonService=e,this.pageService=t,this.ngDestroy=new k,this.events=[],this.current_locale=n}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{e&&(this.page=e.find(e=>"group_calendar"===e.module),this.pageTitle=OT(this.page,this.current_locale),this.slug=IT(this.page,this.current_locale),this.getEvents(this.slug))})}ngAfterViewInit(){this.childChangeDetector.changes.subscribe(e=>{this.commonService.setChildInit()})}getEvents(e){this.pageService.getPagesBySlug(e).subscribe(e=>{for(const t of e)t.title&&t.content&&this.events.push(t)},e=>{})}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}}aB.\u0275fac=function(e){return new(e||aB)(kc(jj),kc(AN),kc(jg))},aB.\u0275cmp=Je({type:aB,selectors:[["app-calendar"]],viewQuery:function(e,t){if(1&e&&Bf(nB,1),2&e){let e;jf(e=zf())&&(t.childChangeDetector=e)}},decls:1,vars:1,consts:function(){let e;return e="\n                S\xFCndmused puuduvad.\n            ",[["class","main-container container-fluid nutridata",3,"id",4,"ngIf"],[1,"main-container","container-fluid","nutridata",3,"id"],["childChangeDetector",""],[1,"container-fluid","no-padding"],[1,"no-padding","banner-header","about-banner","row"],[1,"banner-text"],["id","calendar","role","tablist","aria-multiselectable","true",1,"panel-group","panel-group-styled","service-section"],[4,"ngIf","ngIfElse"],["noEvents",""],["class","panel card panel-default ml-5",4,"ngFor","ngForOf"],[1,"panel","card","panel-default","ml-5"],["role","tab",1,"panel-heading","card-header",3,"id"],[1,"panel-title","d-inline-block"],["role","button","data-toggle","collapse","data-parent","#calendar","aria-expanded","true","aria-controls","collapseOne",1,"collapsed","d-inline-block","event-text",3,"href"],[1,"fa","fa-calendar-o","event-icon"],[1,"ml-2"],["role","tabpanel","aria-labelledby","headingOne","data-parent","#calendar",1,"panel-collapse","collapse","in",3,"id"],[1,"panel-body","card-body"],[1,"panel-content"],[3,"innerHTML"],e]},template:function(e,t){1&e&&Gl(0,oB,11,4,"div",0),2&e&&Tc("ngIf",t.pageTitle)},directives:[sb,tb],pipes:[Zj],styles:['@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
3src:url(https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2")}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.event-text[_ngcontent-%COMP%]{text-indent:-15px}.event-icon[_ngcontent-%COMP%]{font-size:24px;color:#00c0f1}.container-fluid[_ngcontent-%COMP%]{margin-top:-25px!important}']});const lB=["childChangeDetector"];function cB(e,t){if(1&e&&(Oc(0,"div",7),Oc(1,"div",8),Oc(2,"h4",9),Oc(3,"a",10),Oc(4,"i",11),Mu(5,"lightbulb_outline"),Ic(),Oc(6,"span"),Mu(7),Ic(),Ic(),Ic(),Ic(),Oc(8,"div",12),Oc(9,"div",13),Oc(10,"div",14),Pc(11,"div",15),bf(12,"safe"),Ic(),Ic(),Ic(),Ic()),2&e){const e=t.$implicit,n=t.index;Lo(1),Zc("id","heading",n,""),Lo(2),Zc("href","#collapse",n,"",_r),Lo(4),Fu(e.title),Lo(1),Zc("id","collapse",n,""),Lo(3),Tc("innerHTML",vf(12,5,e.content),br)}}function uB(e,t){if(1&e&&(Oc(0,"div",1,2),Oc(2,"div",3),Oc(3,"div",4),Oc(4,"h3"),Mu(5),Ic(),Ic(),Ic(),Oc(6,"div",5),Gl(7,cB,13,7,"div",6),Ic(),Ic()),2&e){const e=Hc();Gc("id",e.slug),Lo(5),Fu(e.pageTitle),Lo(2),Tc("ngForOf",e.questions)}}class hB{constructor(e,t,n,s,i){this.route=e,this.router=t,this.commonService=n,this.pageService=s,this.ngDestroy=new k,this.questions=[],"ru"===this.current_locale?this.langSuffix="Rus":"en"===this.current_locale?this.langSuffix="Eng":this.langSuffix="Est",this.current_locale=i}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{e&&(this.page=e.find(e=>"group_faq_main"===e.module),this.pageTitle=OT(this.page,this.current_locale),this.slug=IT(this.page,this.current_locale),this.getQuestions(this.slug))})}getQuestions(e){this.pageService.getPagesBySlug(e).subscribe(e=>{for(const t of e)t.title&&t.content&&this.questions.push(t)},e=>{})}ngAfterViewInit(){this.childChangeDetector.changes.subscribe(e=>{this.commonService.setChildInit()})}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}}hB.\u0275fac=function(e){return new(e||hB)(kc(Mk),kc(iT),kc(jj),kc(AN),kc(jg))},hB.\u0275cmp=Je({type:hB,selectors:[["app-faq"]],viewQuery:function(e,t){if(1&e&&Bf(lB,1),2&e){let e;jf(e=zf())&&(t.childChangeDetector=e)}},decls:1,vars:1,consts:[["class","main-container container-fluid nutridata",3,"id",4,"ngIf"],[1,"main-container","container-fluid","nutridata",3,"id"],["childChangeDetector",""],[1,"no-padding","banner-header","about-banner","row"],[1,"banner-text"],["id","accordion","role","tablist","aria-multiselectable","true",1,"panel-group","panel-group-styled","service-section"],["class","panel card panel-default ml-5",4,"ngFor","ngForOf"],[1,"panel","card","panel-default","ml-5"],["role","tab",1,"panel-heading","card-header",3,"id"],[1,"panel-title","d-inline-block"],["role","button","data-toggle","collapse","data-parent","#accordion","aria-expanded","true","aria-controls","collapseOne",1,"collapsed","d-inline-block","faq-text",3,"href"],[1,"material-icons","d-inline-block"],["role","tabpanel","aria-labelledby","headingOne","data-parent","#accordion",1,"panel-collapse","collapse","in",3,"id"],[1,"panel-body","card-body"],[1,"panel-content"],[3,"innerHTML"]],template:function(e,t){1&e&&Gl(0,uB,8,3,"div",0),2&e&&Tc("ngIf",t.pageTitle)},directives:[sb,tb],pipes:[Zj],styles:['@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2")}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.faq-text[_ngcontent-%COMP%]{text-indent:-18px}']});const dB=["recaptcha"];function pB(e,t){if(1&e&&(Pc(0,"div",37),bf(1,"safe")),2&e){Tc("innerHTML",vf(1,1,Hc(2).pageContent),br)}}function fB(e,t){if(1&e&&(Oc(0,"div",40),Oc(1,"div",41),Pc(2,"img",42),Oc(3,"h3"),Mu(4),Ic(),Oc(5,"p"),Mu(6),Ic(),Oc(7,"ul"),Oc(8,"li"),Oc(9,"a",43),Mu(10),Ic(),Ic(),Oc(11,"li"),Oc(12,"a",44),Pc(13,"i",45),Mu(14),Ic(),Ic(),Ic(),Ic(),Ic()),2&e){const e=t.$implicit,n=Hc(3);Lo(2),Qc("src","",n.cfg.apiServer.imageServer,"profilepictures/",null==e.profilePicture?"0GK6GSKTD88U4B3BLZ.png":e.profilePicture,"",_r),Gc("alt",e.name),Lo(2),Fu(e.name),Lo(2),Fu(e.jobTitle),Lo(4),Fu(e.email),Lo(4),Ru(" ",e.phone," ")}}function gB(e,t){if(1&e&&(Oc(0,"div",38),Oc(1,"div",12),Gl(2,fB,15,7,"div",39),Ic(),Ic()),2&e){const e=Hc(2);Lo(2),Tc("ngForOf",e.contactInfo)}}function mB(e,t){1&e&&(Oc(0,"div"),Id(1,48),Ic())}function yB(e,t){if(1&e&&(Oc(0,"div",46),Gl(1,mB,2,0,"div",47),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.formControls.name.errors.required)}}function bB(e,t){1&e&&(Oc(0,"div"),Id(1,49),Ic())}function vB(e,t){1&e&&(Oc(0,"div"),Id(1,50),Ic())}function _B(e,t){if(1&e&&(Oc(0,"div",46),Gl(1,bB,2,0,"div",47),Gl(2,vB,2,0,"div",47),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.formControls.email.errors.required),Lo(1),Tc("ngIf",e.formControls.email.errors.email)}}function wB(e,t){1&e&&(Oc(0,"div"),Id(1,51),Ic())}function CB(e,t){1&e&&(Oc(0,"div"),Id(1,52),Ic())}function xB(e,t){if(1&e&&(Oc(0,"div",46),Gl(1,wB,2,0,"div",47),Gl(2,CB,2,0,"div",47),Ic()),2&e){const e=Hc(2);Lo(1),Tc("ngIf",e.formControls.letter.errors.required),Lo(1),Tc("ngIf",e.formControls.letter.errors.minlength)}}function kB(e,t){1&e&&Pc(0,"i",53)}const SB=function(e){return{"is-invalid":e}};function TB(e,t){if(1&e){const e=Rc();Oc(0,"div",1),Oc(1,"div",2),Oc(2,"div",3),Oc(3,"div",4),Oc(4,"h3"),Mu(5),Ic(),Ic(),Ic(),Ic(),Gl(6,pB,2,3,"div",5),Gl(7,gB,3,1,"div",6),Pc(8,"div",7),Oc(9,"div",8),Oc(10,"div",9),Oc(11,"h3"),Id(12,10),Ic(),Ic(),Oc(13,"form",11),jc("ngSubmit",function(){Yt(e);return Hc().executeRecaptcha()}),Oc(14,"div",12),Oc(15,"div",13),Oc(16,"div",14),Oc(17,"label",15),Id(18,16),Ic(),Pc(19,"input",17),Gl(20,yB,2,1,"div",18),Ic(),Oc(21,"div",14),Oc(22,"label",19),Id(23,20),Ic(),Pc(24,"input",21),Gl(25,_B,3,2,"div",18),Ic(),Oc(26,"div",14),Oc(27,"label",22),Id(28,23),Ic(),Pc(29,"input",24),Ic(),Ic(),Oc(30,"div",13),Oc(31,"div",14),Oc(32,"label",25),Id(33,26),Ic(),Pc(34,"textarea",27),Gl(35,xB,3,2,"div",18),Ic(),Oc(36,"div",28),Oc(37,"re-captcha",29,30),jc("resolved",function(t){Yt(e);return Hc().resolved(t)}),Ic(),Oc(39,"button",31),Id(40,32),Ic(),Ic(),Oc(41,"div",33),Gl(42,kB,1,0,"i",34),Pc(43,"i",35),Oc(44,"p"),Id(45,36),Ic(),Ic(),Ic(),Ic(),Ic(),Ic(),Ic()}if(2&e){const e=Hc();
3Gc("id",e.slug),Lo(5),Fu(e.pageTitle),Lo(1),Tc("ngIf",e.pageContent),Lo(1),Tc("ngIf",e.contactInfo),Lo(6),Tc("formGroup",e.contactForm),Lo(6),Tc("ngClass",nf(14,SB,e.submitted&&e.formControls.name.errors)),Lo(1),Tc("ngIf",e.formControls.name.errors),Lo(4),Tc("ngClass",nf(16,SB,e.submitted&&e.formControls.email.errors)),Lo(1),Tc("ngIf",e.formControls.email.errors),Lo(9),Tc("ngClass",nf(18,SB,e.submitted&&e.formControls.letter.errors)),Lo(1),Tc("ngIf",e.formControls.letter.errors),Lo(4),Tc("disabled",e.loading),Lo(2),Tc("ngClass",e.emailSent?"email-sent":"email-not-sent"),Lo(1),Tc("ngIf",e.loading&&!e.emailSent)}}class DB{constructor(e,t,n,s,i,r,o,a){this.route=e,this.router=t,this.location=n,this.commonService=s,this.pageService=i,this.sanitizer=r,this.formBuilder=a,this.cfg=IN.settings,this.ngDestroy=new k,this.submitted=!1,this.current_locale=o,this.pageService.getPageBySlug(this.slug),this.commonService.getContactInfoByApp(5)}ngOnInit(){this.contactForm=this.formBuilder.group({name:["",U_.required],email:["",[U_.required,U_.email]],phone:[""],letter:["",[U_.required,U_.minLength(10)]],captcha:new Fw(null),parentApp:5}),this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{e&&(this.page=e.find(e=>"group_team"===e.module),this.pageTitle=OT(this.page,this.current_locale),this.slug=IT(this.page,this.current_locale))}),this.commonService.getContactInfoByApp(5).subscribe(e=>{this.contactInfo=e}),this.onChanges()}ngAfterViewInit(){this.commonService.setChildInit()}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}get formControls(){return this.contactForm.controls}resolved(e){null!==e&&this.commonService.verifyRecaptcha(e).subscribe(e=>{e&&this.onSubmit()})}executeRecaptcha(){this.submitted=!0,this.contactForm.invalid||this.captchaRefrence.execute()}onSubmit(){this.submitted=!0,this.loading=!0,this.commonService.postContactLetter(this.contactForm.getRawValue()).subscribe(e=>{this.captchaRefrence.reset(),200===e?this.emailSent=!0:this.submitted=!1,this.loading=!1})}onChanges(){this.contactForm.valueChanges.subscribe(e=>{this.emailSent=!1,this.submitted=!1,this.loading=!1})}}DB.\u0275fac=function(e){return new(e||DB)(kc(Mk),kc(iT),kc(Xm),kc(jj),kc(AN),kc(Tv),kc(jg),kc(VC))},DB.\u0275cmp=Je({type:DB,selectors:[["app-team"]],viewQuery:function(e,t){if(1&e&&Bf(dB,1),2&e){let e;jf(e=zf())&&(t.captchaRefrence=e.first)}},decls:1,vars:1,consts:function(){let e,t,n,s,i,r,o,a,l,c,u,h;return e="V\xF5ta meiega \xFChendust",t="Nimi",n="E-Mail",s="Telefoni number",i="Kiri",r="Saada",o="Kiri saadetud",a="Nimi on kohustuslik v\xE4li",l="E-mail on kohustuslik v\xE4li",c="E-mail ei ole korrektne",u="Kirjal peab olema sisu",h="Kiri peab olema v\xE4hemalt 10 t\xE4hem\xE4rki pikk\n                            ",[["class","main-container container-fluid nutridata",3,"id",4,"ngIf"],[1,"main-container","container-fluid","nutridata",3,"id"],[1,"container-fluid","no-padding"],[1,"no-padding","banner-header","about-banner","row"],[1,"banner-text"],["class","container-fluid",3,"innerHTML",4,"ngIf"],["class","team-section container-fluid",4,"ngIf"],[1,"seprator-border","row"],[1,"contact-form-section"],[1,"section-header"],e,[1,"contact-form","container-fluid",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-6","col-sm-6"],[1,"mb-2"],["for","name",1,"required-asterix"],t,["type","text","formControlName","name","id","name",1,"form-control","rounded","contact-input-sm",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],["for","email",1,"required-asterix"],n,["type","text","formControlName","email","id","email",1,"form-control","rounded","contact-input-sm",3,"ngClass"],["for","phone"],s,["type","text","formControlName","phone","id","phone",1,"form-control","rounded","contact-input-sm"],[1,"required-asterix"],i,["formControlName","letter",1,"form-control","letter-textarea",3,"ngClass"],[1,"form-group"],["formControlName","captcha","siteKey","6Le-QmYUAAAAACUPmrGCq9G_HK5Id4gJpxcXa_Qw","size","invisible",3,"resolved"],["recaptcha","reCaptcha"],["type","submit",1,"btn","contact-button","text-uppercase",3,"disabled"],r,[1,"contact-email",3,"ngClass"],["class","fa fa-spinner fa-lg fa-spin sending",4,"ngIf"],[1,"fa","fa-envelope","fa-lg"],o,[1,"container-fluid",3,"innerHTML"],[1,"team-section","container-fluid"],["class","col-md-3 col-sm-6 col-xs-6",4,"ngFor","ngForOf"],[1,"col-md-3","col-sm-6","col-xs-6"],[1,"team-box"],[3,"src","alt"],["href","#","title","Email"],["href","#","title","Phone"],[1,"fa","fa-phone","contact-phone"],[1,"invalid-feedback"],[4,"ngIf"],a,l,c,u,h,[1,"fa","fa-spinner","fa-lg","fa-spin","sending"]]},template:function(e,t){1&e&&Gl(0,TB,46,20,"div",0),2&e&&Tc("ngIf",t.pageTitle)},directives:[sb,Kw,gw,oC,L_,fw,pC,Jy,UT,GT,tb],pipes:[Zj],styles:['.contact-button[_ngcontent-%COMP%]{background-color:transparent;letter-spacing:1px;width:100%;color:#00c0f1;font-size:12px;margin-left:0;padding:11px 13px;font-size:14px;font-weight:700;border:2px solid #00c0f1}.contact-button[_ngcontent-%COMP%]:hover{background-color:#00c0f1;color:#fff}.contact-email[_ngcontent-%COMP%]{transition:all .3s linear;position:relative}
3.email-sent[_ngcontent-%COMP%]{top:0}.contact-email[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#00c0f1}.contact-email[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline-block;padding:5px}.email-not-sent[_ngcontent-%COMP%]{color:transparent;top:-30px;visibility:hidden}.sending[_ngcontent-%COMP%]{color:#00c0f1;visibility:visible;bottom:-.4rem!important;position:absolute}.letter-textarea[_ngcontent-%COMP%]{height:137px}.required-asterix[_ngcontent-%COMP%]:after{content:"*";color:red;font-weight:900}@media (max-width:576px){.contact-input-sm[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important;width:100%!important}}.contact-form[_ngcontent-%COMP%]   .input-style[_ngcontent-%COMP%]{border-radius:5px!important;height:34px!important;color:#555!important}.contact-form[_ngcontent-%COMP%]   .letter-textarea[_ngcontent-%COMP%]{border-radius:5px!important;padding:12px;margin-bottom:0}.contact-form[_ngcontent-%COMP%]   .contact-button[_ngcontent-%COMP%]{margin-top:.5rem}.contact-form[_ngcontent-%COMP%]   .ng-touched.ng-invalid[_ngcontent-%COMP%]{border-color:#f24c4e}']});const EB=["gmap"];function OB(e,t){if(1&e&&(Oc(0,"div",1),Oc(1,"div",2),Oc(2,"div",3),Oc(3,"div",4),Oc(4,"h3"),Mu(5),Ic(),Ic(),Ic(),Ic(),Oc(6,"div",5),Oc(7,"div",6),Pc(8,"i",7),Pc(9,"span",8),Pc(10,"a",9),Ic(),Oc(11,"div",10),Pc(12,"i",11),Oc(13,"span",12),Mu(14,"Telefon"),Ic(),Pc(15,"a",13),Ic(),Oc(16,"div",14),Pc(17,"i",15),Oc(18,"span",12),Mu(19,"E-post"),Ic(),Oc(20,"p"),Pc(21,"a",16),Ic(),Ic(),Ic(),Ic()),2&e){const e=Hc();Gc("id",e.slug),Lo(5),Fu(e.pageTitle),Lo(4),Tc("innerHTML",e.getSubPageTitle("page_contact_main_address"),br),Lo(1),Tc("innerHTML",e.getSubPageContent("page_contact_main_address"),br),Lo(3),Tc("innerHTML",e.getSubPageTitle("page_contact_main_phone"),br),Lo(2),Tc("innerHTML",e.getSubPageContent("page_contact_main_phone"),br),Lo(3),Tc("innerHTML",e.getSubPageTitle("page_contact_main_email"),br),Lo(3),Tc("innerHTML",e.getSubPageContent("page_contact_main_email"),br)}}class IB{constructor(e,t,n,s,i,r){this.route=e,this.router=t,this.location=n,this.commonService=s,this.pageService=i,this.ngDestroy=new k,this.subPagesDetailedList=[],this.current_locale=r}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{if(e){this.page=e.find(e=>"group_contact_main"===e.module),this.subPages=e.filter(e=>!1===e.isParent&&e.groupId===this.page.id&&null!==e.module),this.pageTitle=OT(this.page,this.current_locale),this.slug=IT(this.page,this.current_locale);for(const e of this.subPages)this.pageService.getPageBySlug(PT(e,this.current_locale)).subscribe(e=>{e&&this.subPagesDetailedList.push(e)})}})}ngAfterViewInit(){this.commonService.setChildInit()}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}getSubPageTitle(e){return OT(this.subPages.find(t=>t.module===e),this.current_locale)}getSubPageContent(e){if(!e)return;const t=this.subPagesDetailedList.find(t=>t.module===e);return t?t.content:void 0}}function PB(e,t){if(1&e&&(Oc(0,"div",1),Pc(1,"div",2),bf(2,"safe"),Ic()),2&e){const e=Hc();Lo(1),Tc("innerHTML",vf(2,1,e.page_content),br)}}IB.\u0275fac=function(e){return new(e||IB)(kc(Mk),kc(iT),kc(Xm),kc(jj),kc(AN),kc(jg))},IB.\u0275cmp=Je({type:IB,selectors:[["app-contact"]],viewQuery:function(e,t){if(1&e&&Bf(EB,1),2&e){let e;jf(e=zf())&&(t.gmapElement=e.first)}},decls:1,vars:1,consts:[["class","main-container container-fluid nutridata",3,"id",4,"ngIf"],[1,"main-container","container-fluid","nutridata",3,"id"],[1,"container-fluid","no-padding"],[1,"no-padding","banner-header","about-banner","row"],[1,"banner-text"],[1,"d-flex","tois-d-sm-block","mt-3","mb-3"],[1,"w-33","w-sm-100","contact-block","text-center"],[1,"fa","fa-map-marker"],[1,"d-block",3,"innerHTML"],["href","https://goo.gl/maps/ZV7Eb9FUeR82","target","_blank",1,"d-block",3,"innerHTML"],[1,"w-33","w-sm-100","contact-block"],[1,"fa","fa-mobile"],[3,"innerHTML"],["href","tel:+372 659 3900",3,"innerHTML"],[1,"w-33","w-sm-100","contact-block","br-0"],[1,"fa","fa-envelope"],["href","mailto:[email protected]",3,"innerHTML"]],template:function(e,t){1&e&&Gl(0,OB,22,8,"div",0),2&e&&Tc("ngIf",t.pageTitle)},directives:[sb],styles:["#gmap[_ngcontent-%COMP%]{width:100%;height:407px;display:inline-table}.service-section[_ngcontent-%COMP%]{padding-top:25px!important;padding-bottom:30px!important}.w-33[_ngcontent-%COMP%]{width:33%}.br-0[_ngcontent-%COMP%]{border-right:unset!important}.main-container[_ngcontent-%COMP%]{z-index:1}
3.contact-block[_ngcontent-%COMP%]{border-right:1px solid #f0f0f0;padding:35px 0;text-align:center}@media (max-width:576px){.tois-d-sm-block[_ngcontent-%COMP%]{display:block!important}.w-sm-100[_ngcontent-%COMP%]{width:100%!important}.contact-block[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:0;border-right:0}.contact-input-sm[_ngcontent-%COMP%]{margin-right:0!important;width:100%!important}.contact-input-sm[_ngcontent-%COMP%], .tois-ml-sm-0[_ngcontent-%COMP%]{margin-left:0!important}}"]});class AB{constructor(e,t){this.pagesService=e,this.ngDestroy=new k,this.page_content=null,this.page_title=null,this.page_bannerUrl="1A0VWTCMAI0FIU5S53.jpg",this.current_locale=t,this.pagesService.getPageByModuleLanguage("page_main_terms",this.current_locale).pipe(AT(this.ngDestroy)).subscribe(e=>{this.pages=e,this.page_content=this.pages.content,this.page_title=this.pages.title,this.page_module=this.pages.module,this.page_banner_link=this.pages.bannerLink,this.pages.banner?this.page_bannerUrl=this.pages.banner:this.page_bannerUrl="1A0VWTCMAI0FIU5S53.jpg"})}ngOnInit(){}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}}AB.\u0275fac=function(e){return new(e||AB)(kc(AN),kc(jg))},AB.\u0275cmp=Je({type:AB,selectors:[["app-terms-modal"]],decls:1,vars:1,consts:[["class","page-content pt-0",4,"ngIf"],[1,"page-content","pt-0"],[1,"p-3","pt-1",3,"innerHTML"]],template:function(e,t){1&e&&Gl(0,PB,3,3,"div",0),2&e&&Tc("ngIf",t.page_content)},directives:[sb],pipes:[Zj],styles:[".page-content[_ngcontent-%COMP%]{-webkit-hyphens:manual;hyphens:manual;overflow-x:scroll}"]});class MB{constructor(e,t,n,s){this.modalService=e,this.commonService=t,this.pageService=n,this.information={module:"kontakt"},this.ngDestroy=new k,this.current_locale=s}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{if(!e)return;const t=e.find(e=>"group_contact_main"===e.module);this.slug=IT(t,this.current_locale)})}openTermsModal(){this.modalRef=this.modalService.open(AB,{windowClass:"modal-dialog-primary",size:"lg"})}ngOnDestroy(){this.ngDestroy.next(),this.ngDestroy.complete()}}MB.\u0275fac=function(e){return new(e||MB)(kc(AM),kc(jj),kc(AN),kc(jg))},MB.\u0275cmp=Je({type:MB,selectors:[["app-footer"]],decls:24,vars:3,consts:function(){let e,t;return e="Kasutus- ja\n                privaatsustingimused\n            ",t="Tervise Arengu Instituut",[["id","footer",1,"bottom-footer","footer-main","justify-content-between","align-items-center","px-4","py-3","d-flex"],[1,"col-md-3"],["alt","",1,"eas-kaksiklogo",3,"src"],[1,"contact-info","text-right","no-padding"],["title","Phone",3,"routerLink","fragment"],[1,"fa","fa-phone"],["title","Email",3,"routerLink","fragment"],[1,"fa","fa-envelope"],["href","https://www.facebook.com/TerviseArenguInstituut/","title","Facebook"],[1,"fa","fa-facebook"],[1,"text-small","m-0"],[1,"text-small","footer-terms-btn",3,"click"],e,[1,"mx-2"],t,[1,"to-top-container"],["href","#","id","back-to-top",2,"display","inline"]]},template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"div",1),Pc(2,"img",2),Ic(),Oc(3,"div",3),Oc(4,"ul"),Oc(5,"li"),Oc(6,"a",4),Pc(7,"i",5),Ic(),Ic(),Oc(8,"li"),Oc(9,"a",6),Pc(10,"i",7),Ic(),Ic(),Oc(11,"li"),Oc(12,"a",8),Pc(13,"i",9),Ic(),Ic(),Ic(),Oc(14,"p",10),Oc(15,"button",11),jc("click",function(){return t.openTermsModal()}),Id(16,12),Ic(),Oc(17,"span",13),Mu(18,"|"),Ic(),Mu(19,"\xa9 "),Oc(20,"span"),Id(21,14),Ic(),Ic(),Ic(),Ic(),Oc(22,"div",15),Pc(23,"a",16),Ic()),2&e&&(Lo(2),Tc("src","assets/images/eas/eas_logo_"+t.current_locale+".jpg",_r),Lo(4),Tc("fragment",t.slug),Lo(3),Tc("fragment",t.slug))},directives:[oT],styles:[".footer-terms-btn[_ngcontent-%COMP%]{color:#fff;border:unset;padding:0;background-color:transparent}.footer-terms-btn[_ngcontent-%COMP%]:hover{color:#00c0f1;text-decoration:underline}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.logo[_ngcontent-%COMP%]{width:250px!important}}#footer[_ngcontent-%COMP%] > .logo[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{vertical-align:middle;border-style:none;max-width:100%;height:auto}.footer-main[_ngcontent-%COMP%]{z-index:10}"]}
3);const FB=["container"];function RB(e,t){if(1&e&&(Oc(0,"a",14),Pc(1,"img",15),Ic()),2&e){const e=Hc();Gc("href",e.page_banner_link,_r),Lo(1),Gc("src",e.cfg.apiServer.imageServer+"banners/"+e.page_bannerUrl,_r)}}function NB(e,t){if(1&e&&Pc(0,"img",15),2&e){const e=Hc();Gc("src",e.cfg.apiServer.imageServer+"banners/"+e.page_bannerUrl,_r)}}class LB{constructor(e,t,n,s,i,r){this.route=e,this.router=t,this.location=n,this.commonService=s,this.pageService=i,this.ngDestroy=new k,this.cfg=IN.settings,this.page_bannerUrl="1A0VWTCMAI0FIU5S53.jpg",this.allPages=[],this.current_locale=r,this.commonService.loadAllPages(),this.listenChildInit(),this.scrollToPage()}ngOnInit(){this.commonService.pages$.pipe(AT(this.ngDestroy)).subscribe(e=>{this.allPages=e,this.page=this.allPages.find(e=>"group_subparts"===e.module),this.page_content=function(e,t){if(e)return"en"===t?e.contentEng:"ru"===t?e.contentRus:e.contentEst}(this.page,this.current_locale),this.page_title=OT(this.page,this.current_locale),this.pageService.getPageByModuleLanguage(this.page.module,this.current_locale).subscribe(e=>{e&&(this.page=e,this.page.banner&&(this.page_bannerUrl=this.page.banner))})}),this.route.fragment.subscribe(e=>{this.fragment=e}),this.fragmentSub=this.route.fragment.subscribe(e=>{this.fragment=e})}ngAfterViewInit(){this.scrollToPageQuick(),this.container.changes.subscribe(e=>{this.scrollToPageQuick()})}listenChildInit(){this.commonService.childInit$.pipe(AT(this.ngDestroy)).subscribe(e=>{this.scrollToPageQuick()},e=>{console.log("error",e)})}scrollToPage(){this.route.fragment.subscribe(e=>{const t=document.getElementById(encodeURIComponent(e));if(t){const e=35;window.scrollTo({top:t.offsetTop-e,behavior:"smooth"})}})}scrollToPageQuick(){this.route.fragment.pipe(nx(1)).subscribe(e=>{const t=document.getElementById(encodeURIComponent(e));if(t){const e=35;window.scrollTo({top:t.offsetTop-e,behavior:"auto"})}})}ngOnDestroy(){this.fragmentSub.unsubscribe(),this.ngDestroy.next(),this.ngDestroy.complete()}onReady(e){const t=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)+55,n=document.querySelectorAll(".navbar-collapse.collapse.show > ul > li a");for(let s=0;s<n.length;s++){const e=n.item(s).getAttribute("href"),i=document.getElementById(e.slice(5));if(i&&i.offsetTop&&i.offsetTop<=t&&i.offsetTop+i.getBoundingClientRect().height>t){for(let e=0;e<n.length;e++)e!==s&&n.item(e).classList.remove("active");n.item(s).classList.add("active")}}}}LB.\u0275fac=function(e){return new(e||LB)(kc(Mk),kc(iT),kc(Xm),kc(jj),kc(AN),kc(jg))},LB.\u0275cmp=Je({type:LB,selectors:[["app-page-template"]],viewQuery:function(e,t){if(1&e&&Bf(FB,1),2&e){let e;jf(e=zf())&&(t.container=e)}},hostBindings:function(e,t){1&e&&jc("scroll",function(e){return t.onReady(e)},!1,Nr)},decls:21,vars:2,consts:[["id","top"],[1,"main-container","container-fluid","no-padding"],[3,"mobileMenuOpenChange"],["mainMenu",""],[1,"top-bar-container"],[3,"mobileMenuToggle","tabletMenuToggle"],["topBar",""],[1,"container","page-content","desktop-sticky-top-bar-offset"],["container",""],["id","slider-section",1,"slider-section","container-fluid","no-padding"],["id","photo-slider","data-ride","carousel",1,"carousel","slide","row"],[1,"item","active","w-100"],[3,"href",4,"ngIf","ngIfElse"],["noLinkBanner",""],[3,"href"],["alt","TOIS",3,"src"]],template:function(e,t){if(1&e){const e=Rc();Pc(0,"a",0),Oc(1,"div",1),Oc(2,"app-main-menu",2,3),jc("mobileMenuOpenChange",function(t){Yt(e);return Zl(6).setMobileMenuOpen(t)}),Ic(),Oc(4,"div",4),Oc(5,"app-top-bar",5,6),jc("mobileMenuToggle",function(){Yt(e);return Zl(3).burgerToggle()})("tabletMenuToggle",function(){Yt(e);return Zl(3).menuToggle()}),Ic(),Ic(),Oc(7,"div",7,8),Oc(9,"div",9),Oc(10,"div",10),Oc(11,"div",11),Gl(12,RB,2,2,"a",12),Gl(13,NB,1,1,"ng-template",null,13,Wf),Ic(),Ic(),Ic(),Pc(15,"app-subparts"),Pc(16,"app-calendar"),Pc(17,"app-faq"),Pc(18,"app-team"),Pc(19,"app-contact"),Pc(20,"app-footer"),Ic(),Ic()}if(2&e){const e=Zl(14);Lo(12),Tc("ngIf",t.page_banner_link)("ngIfElse",e)}},directives:[Kj,Gj,sb,tB,aB,hB,DB,IB,MB],styles:[".top-bar-container[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;max-width:100%;width:var(--tois-client-content-width,100%);z-index:1031}.top-bar-container[_ngcontent-%COMP%]   .container-fluid[_ngcontent-%COMP%]{width:100%!important;max-width:100%;box-sizing:border-box}.page-content[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;max-width:100%;padding-top:0;width:var(--tois-client-content-width,100%)}.page-banner[_ngcontent-%COMP%]{margin-right:-15px!important;margin-left:-15px!important;max-height:344px!important;min-height:344px!important}@media only screen and (max-width:991px){.main-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.top-bar-container[_ngcontent-%COMP%]{order:1}app-main-menu[_ngcontent-%COMP%]{order:2;position:sticky;top:112px;max-height:calc(100vh - 112px);overflow-y:auto;z-index:1033}.page-content[_ngcontent-%COMP%]{order:3}}@media (min-width:992px){.pt-55px[_ngcontent-%COMP%]{padding-top:55px}}
3@media only screen and (min-width:1366px){.page-content[_ngcontent-%COMP%], .top-bar-container[_ngcontent-%COMP%]{margin-left:310px;margin-right:0}}@media only screen and (min-width:1366px) and (max-width:1479px){.page-content[_ngcontent-%COMP%]{margin-left:310px;margin-right:0;width:calc(100% - 310px)}}@media only screen and (min-width:992px){.desktop-sticky-top-bar-offset[_ngcontent-%COMP%]{padding-top:var(--tois-top-bar-height,56px)}}"]});class VB{constructor(e){this.router=e}ngOnInit(){}returnToHome(){this.router.navigate(["/"])}}VB.\u0275fac=function(e){return new(e||VB)(kc(iT))},VB.\u0275cmp=Je({type:VB,selectors:[["app-not-found"]],decls:7,vars:0,consts:[[1,"container-fluid","text-center","mt-5","pt-5"],[1,"btn","tai-blue","mr-0",3,"click"]],template:function(e,t){1&e&&(Oc(0,"div",0),Oc(1,"h1"),Mu(2,"404"),Ic(),Oc(3,"p"),Mu(4,"Lehek\xfclge ei leitud!"),Ic(),Oc(5,"div",1),jc("click",function(){return t.returnToHome()}),Mu(6,"Tagasi pealehele"),Ic(),Ic())},styles:[""]});const jB=[{path:"#",component:LB,pathMatch:"full"},{path:"",component:LB,pathMatch:"full"},{path:"404",component:VB,pathMatch:"full"},{path:":slug",component:LB,pathMatch:"full"},{path:"**",component:VB,pathMatch:"full"}];class BB{}BB.\u0275fac=function(e){return new(e||BB)},BB.\u0275mod=st({type:BB}),BB.\u0275inj=_e({imports:[[vT.forRoot(jB,{useHash:!1,enableTracing:!1})],vT]});class $B{constructor(e,t,n){this.router=t,this.titleService=n,this.toisApplications=IN.settings.toisApplications,this.apiServer=IN.settings.apiServer,this.title="app",this.slug="avaleht",this.current_locale=e,this.titleService.setTitle(this.toisApplications.uld.title.et)}ngOnInit(){}}function zB(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function UB(e){switch(e.length){case 0:return new aD;case 1:return e[0];default:return new lD(e)}}function HB(e,t,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=i[n];break;case"*":a=r[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function qB(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&WB(n,"start",e)));break;case"done":e.onDone(()=>s(n&&WB(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&WB(n,"destroy",e)))}}function WB(e,t,n){const s=n.totalTime,i=!!n.disabled,r=KB(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,i),o=e._data;return null!=o&&(r._data=o),r}function KB(e,t,n,s,i="",r=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function GB(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function ZB(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}$B.\u0275fac=function(e){return new(e||$B)(kc(jg),kc(iT),kc(Lv))},$B.\u0275cmp=Je({type:$B,selectors:[["app-root"]],features:[zd([AN])],decls:1,vars:0,template:function(e,t){1&e&&Pc(0,"router-outlet")},directives:[cT],styles:[""]});let QB=(e,t)=>!1;let YB=(e,t)=>!1;let JB=(e,t,n)=>[];const XB=zB();(XB||"undefined"!=typeof Element)&&(QB=(e,t)=>e.contains(t),YB=(()=>{if(XB||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):YB}})(),JB=(e,t,n)=>{let s=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)s.push(n[e])}else{const n=e.querySelector(t);n&&s.push(n)}return s});let e$=null,t$=!1;function n$(e){e$||(e$=function(){if("undefined"!=typeof document)return document.body;return null}()||{},t$=!!e$.style&&"WebkitAppearance"in e$.style);let t=!0;if(e$.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in e$.style,!t&&t$)){t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in e$.style}return t}const s$=YB,i$=QB,r$=JB;function o$(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}class a${validateStyleProperty(e){return n$(e)}matchesElement(e,t){return s$(e,t)}containsElement(e,t){return i$(e,t)}query(e,t,n){return r$(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,i,r=[],o){return new aD(n,s)}}a$.\u0275fac=function(e){return new(e||a$)},a$.\u0275prov=ve({token:a$,factory:a$.\u0275fac});class l${}l$.NOOP=new a$;function c$(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:u$(parseFloat(t[1]),t[2])}function u$(e,t){switch(t){case"s":return 1e3*e;default:return e}}function h$(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){const s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,r=0,o="";if("string"==typeof e){const n=e.match(s);if(null===n)return t.push(`The provided timing value "${e}
3" is invalid.`),{duration:0,delay:0,easing:""};i=u$(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(r=u$(parseFloat(a),n[4]));const l=n[5];l&&(o=l)}else i=e;if(!n){let n=!1,s=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:r,easing:o}}(e,t,n)}function d$(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function p$(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else d$(e,n);return n}function f$(e,t,n){return n?t+":"+n+";":""}function g$(e){let t="";for(let n=0;n<e.style.length;n++){const s=e.style.item(n);t+=f$(0,s,e.style.getPropertyValue(s))}for(const n in e.style){if(!e.style.hasOwnProperty(n)||n.startsWith("_"))continue;t+=f$(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n])}e.setAttribute("style",t)}function m$(e,t,n){e.style&&(Object.keys(t).forEach(s=>{const i=k$(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[i]),e.style[i]=t[s]}),zB()&&g$(e))}function y$(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=k$(t);e.style[n]=""}),zB()&&g$(e))}function b$(e){return Array.isArray(e)?1==e.length?e[0]:nD(e):e}const v$=new RegExp("{{\\s*(.+?)\\s*}}","g");function _$(e){let t=[];if("string"==typeof e){let n;for(;n=v$.exec(e);)t.push(n[1]);v$.lastIndex=0}return t}function w$(e,t,n){const s=e.toString(),i=s.replace(v$,(e,s)=>{let i=t[s];return t.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),i=""),i.toString()});return i==s?e:i}function C$(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const x$=/-+([a-z0-9])/g;function k$(e){return e.replace(x$,(...e)=>e[1].toUpperCase())}function S$(e,t){return 0===e||0===t}function T$(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let r=t[0],o=[];if(s.forEach(e=>{r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var i=1;i<t.length;i++){let n=t[i];o.forEach(function(t){n[t]=E$(e,t)})}}return t}function D$(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function E$(e,t){return window.getComputedStyle(e)[t]}function O$(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const i=s[1],r=s[2],o=s[3];t.push(A$(i,o));const a="*"==i&&"*"==o;"<"!=r[0]||a||t.push(A$(o,i))}(e,n,t)):n.push(e),n}const I$=new Set(["true","1"]),P$=new Set(["false","0"]);function A$(e,t){const n=I$.has(e)||P$.has(e),s=I$.has(t)||P$.has(t);return(i,r)=>{let o="*"==e||e==i,a="*"==t||t==r;return!o&&n&&"boolean"==typeof i&&(o=i?I$.has(e):P$.has(e)),!a&&s&&"boolean"==typeof r&&(a=r?I$.has(t):P$.has(t)),o&&a}}const M$=new RegExp("s*:selfs*,?","g");function F$(e,t,n){return new R$(e).build(t,n)}class R${constructor(e){this._driver=e}build(e,t){const n=new N$(t);return this._resetContextStyleTimingState(n),D$(this,b$(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const i=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e
3=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,i.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const i=this.visitTransition(e,t);n+=i.queryCount,s+=i.depCount,r.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(e=>{if(L$(e)){const t=e;Object.keys(t).forEach(e=>{_$(t[e]).forEach(e=>{r.hasOwnProperty(e)||i.add(e)})})}}),i.size){const n=C$(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=D$(this,b$(e.animation),t);return{type:1,matchers:O$(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:V$(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>D$(this,e,t)),options:V$(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const i=e.steps.map(e=>{t.currentTime=n;const i=D$(this,e,t);return s=Math.max(s,t.currentTime),i});return t.currentTime=s,{type:3,steps:i,options:V$(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e){return j$(h$(e,t).duration,0,"")}const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=j$(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||h$(s,t),j$(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let i=e.styles?e.styles:sD({});if(5==i.type)s=this.visitKeyframes(i,t);else{let i=e.styles,r=!1;if(!i){r=!0;const e={};n.easing&&(e.easing=n.easing),i=sD(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,t);o.isEmptyStep=r,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,i=null;return n.forEach(e=>{if(L$(e)){const t=e,n=t.easing;if(n&&(i=n,delete t.easing),!s)for(let e in t){if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=t.collectedStyles[t.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},i=_$(e);i.length&&i.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const i=[];let r=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(L$(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(L$(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;
3return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;s>0&&s<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,s)=>{const r=u>0?s==h?1:u*s:i[s],o=r*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:D$(this,b$(e.animation),t),options:V$(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:V$(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:V$(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[i,r]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);t&&(e=e.replace(M$,""));return[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,GB(t.collectedStyles,t.currentQuerySelector,{});const o=D$(this,b$(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:V$(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:h$(e.timings,t.errors,!0);return{type:12,animation:D$(this,b$(e.animation),t),timings:n,options:null}}}class N${constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function L$(e){return!Array.isArray(e)&&"object"==typeof e}function V$(e){var t;return e?(e=d$(e)).params&&(e.params=(t=e.params)?d$(t):null):e={},e}function j$(e,t,n){return{duration:e,delay:t,easing:n}}function B$(e,t,n,s,i,r,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class $${constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const z$=new RegExp(":enter","g"),U$=new RegExp(":leave","g");function H$(e,t,n,s,i,r={},o={},a,l,c=[]){return(new q$).buildKeyframes(e,t,n,s,i,r,o,a,l,c)}class q${buildKeyframes(e,t,n,s,i,r,o,a,l,c=[]){l=l||new $$;const u=new K$(e,t,l,s,i,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),D$(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[B$(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const i=null!=n.duration?c$(n.duration):null,r=null!=n.delay?c$(n.delay):null;return 0!==i&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),D$(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const i=e.options;if(i&&(i.params||i.delay)&&(s=t.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=W$);const e=c$(i.delay);s.delayNextStep(e)}
vendor: 3,678 bytes, line 3
3e.steps.length&&(e.steps.forEach(e=>D$(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?c$(e.options.delay):0;e.steps.forEach(r=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),D$(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return h$(t.params?w$(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,i=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(e=>{const n=e.offset||0;r.forwardTime(n*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(s+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},i=s.delay?c$(s.delay):0;i&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=W$);let r=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);i&&o.delayNextStep(i),n===t.element&&(a=o.currentTimeline),D$(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe();const l=o.currentTimeline.currentTime;r=Math.max(r,l)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),o=r*(t.currentQueryTotal-1);let a=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;D$(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const W$={};class K${constructor(e,t,n,s,i,r,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=W$,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new G$(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=c$(n.duration)),null!=n.delay&&(s.delay=c$(n.delay));const i=n.params;if(i){let e=s.params;e||(e=this.options.params={}
3),Object.keys(i).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=w$(i[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,i=new K$(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=W$,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Z$(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,i,r){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(z$,"."+this._enterClassName)).replace(U$,"."+this._leaveClassName);const t=1!=n;let s=this._driver.query(this.element,e,t);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push(...s)}return i||0!=o.length||r.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class G${constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new G$(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const i=s&&s.params||{},r=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]="*"})):p$(e,!1,n)}),n}(e,this._globalTimelineStyles);
3Object.keys(r).forEach(e=>{const t=w$(r[e],i,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{const n=e[t];this._currentKeyframe[t]=n}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=p$(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):"*"==s&&t.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=e.size?C$(e.values()):[],r=t.size?C$(t.values()):[];if(n){const e=s[0],t=d$(e);e.offset=0,t.offset=1,s=[e,t]}return B$(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class Z$ extends G${constructor(e,t,n,s,i,r,o=!1){super(e,t,r.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],r=n+t,o=t/r,a=p$(e[0],!1);a.offset=0,i.push(a);const l=p$(e[0],!1);l.offset=Q$(o),i.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=p$(e[s],!1);const a=t+o.offset*n;o.offset=Q$(a/r),i.push(o)}n=r,t=0,s="",e=i}return B$(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function Q$(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Y${}class J$ extends Y${normalizePropertyName(e,t){return k$(e)}normalizeStyleValue(e,t,n,s){let i="";const r=n.toString().trim();if(X$[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return r+i}}const X$=function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function ez(e,t,n,s,i,r,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const tz={};class nz{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,i){return e.some(e=>e(t,n,s,i))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],i=this._stateStyles[e],r=s?s.buildStyles(t,n):{};return i?i.buildStyles(t,n):r}build(e,t,n,s,i,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||tz,d=o&&o.params||tz,p=this.buildStyles(n,d,u),f=a&&a.params||tz,g=this.buildStyles(s,f,u),m=new Set,y=new Map,b=new Map,v="void"===s,_={params:Object.assign(Object.assign({},h),f)},w=c?[]:H$(e,t,this.ast.animation,i,r,p,g,_,l,u);let C=0;if(w.forEach(e=>{C=Math.max(e.duration+e.delay,C)}),u.length)return ez(t,this._triggerName,n,s,v,p,g,[],[],y,b,C,u);w.forEach(e=>{const n=e.element,s=GB(y,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const i=GB(b,n,{});
3e.postStyleProps.forEach(e=>i[e]=!0),n!==t&&m.add(n)});const x=C$(m.values());return ez(t,this._triggerName,n,s,v,p,g,w,x,y,b,C)}}class sz{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=d$(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let r=i[e];r.length>1&&(r=w$(r,s,t)),n[e]=r})}}),n}}class iz{constructor(e,t){var n,s;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new sz(e.style,t)}),rz(this.states,"true","1"),rz(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new nz(e,t,this.states))}),this.fallbackTransition=(n=e,s=this.states,new nz(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},s))}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(i=>i.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function rz(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const oz=new $$;class az{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=F$(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,i=HB(this._driver,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],i=this._animations[e];let r;const o=new Map;if(i?(r=H$(this._driver,t,i,"ng-enter","ng-leave",{},{},n,oz,s),r.forEach(e=>{const t=GB(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const a=UB(r.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,s){const i=KB(t,"","","");return qB(this._getPlayer(e),n,i,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n){const n=s[0]||{};return void this.create(e,t,n)}const i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const lz=[],cz={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class hz{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value"),s=n?e.value:e;if(this.value=function(e){return null!=e?e:null}(s),n){const t=d$(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const dz=new hz("void");class pz{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
3+e,_z(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var i;const r=GB(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};r.push(o);const a=GB(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(_z(e,"ng-trigger"),_z(e,"ng-trigger-"+t),a[t]=dz),()=>{this._engine.afterFlush(()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const i=this._getTrigger(t),r=new gz(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(_z(e,"ng-trigger"),_z(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new hz(n,this.id);!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=dz);if(!("void"===l.value)&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}(a.params,l.params)){const t=[],n=i.matchStyles(a.value,a.params,t),s=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{y$(e,n),m$(e,s)})}return}const c=GB(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=i.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(_z(e,"ng-animate-queued"),r.onStart(()=>{wz(e,"ng-animate-queued")})),r.onDone(()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(r);e>=0&&n.splice(e,1)}}),this.players.push(r),c.push(r),r}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const i=this._engine.statesByElement.get(e);if(i){const r=[];
3if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&UB(r).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const s=new Set;t.forEach(t=>{const i=t.name;if(s.has(i))return;s.add(i);const r=this._triggers[i].fallbackTransition,o=n[i]||dz,a=new hz("void"),l=new gz(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;){if(n.statesByElement.get(t)){s=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==cz||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){_z(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(t=>{if(t.name==n.triggerName){const s=KB(i,n.triggerName,n.fromState.value,n.toState.value);s._data=e,qB(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class fz{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new pz(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--){const n=this._namespaceList[i];if(this.driver.containsElement(n.hostElement,t)){this._namespaceList.splice(i+1,0,e),s=!0;break}}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s<e.length;s++){const i=n[e[s]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,n,s){if(mz(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,n,s),!0}return!1}insertNode(e,t,n,s){if(!mz(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_z(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),wz(e,"ng-animate-disabled"))}removeNode(e,t,n,s){if(mz(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,i){return mz(t)?this._fetchNamespace(e).listen(t,n,s,i):()=>{}}_buildInstruction(e,t,n,s,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.o
3ptions,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return UB(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=cz,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){_z(this.collectedEnterElements[n],"ng-star-inserted")}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){const e=this.collectedLeaveElements[n];this.processLeaveNode(e)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?UB(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new $$,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)c.add(t[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=vz(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n="ng-enter"+f++;p.set(t,n),e.forEach(e=>_z(e,n))});const g=[],m=new Set,y=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const e=this.collectedLeaveElements[I],t=e.__ng_removed;t&&t.setForRemoval&&(g.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):y.add(e))}const b=new Map,v=vz(h,Array.from(m));v.forEach((e,t)=>{const n="ng-leave"+f++;b.set(t,n),e.forEach(e=>_z(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>wz(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>wz(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--){this._namespaceList[I].drainQueuedTransitions(t).forEach(e=>{const t=e.player,i=e.element;if(_.push(t),this.collectedEnterElements.length){const e=i.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,i),h=b.get(i),d=p.get(i),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)return void w.push(f);if(c)return t.onStart(()=>y$(i,f.fromStyles)),t.onDestroy(()=>m$(i,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>y$(i,f.fromStyles)),t.onDestroy(()=>m$(i,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(i,f.timelines);const g={instruction:f,player:t,element:i};r.push(g),f.queriedElements.forEach(e=>GB(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);
3s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})})}if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,x=new Map;r.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{GB(C,t,[]).push(e),e.destroy()})});const k=g.filter(e=>kz(e,a,l)),S=new Map;bz(S,this.driver,y,l,"*").forEach(e=>{kz(e,a,l)&&k.push(e)});const T=new Map;d.forEach((e,t)=>{bz(T,this.driver,new Set(e),a,"!")}),k.forEach(e=>{const t=S.get(e),n=T.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const D=[],E=[],O={};r.forEach(e=>{const{element:t,player:r,instruction:o}=e;if(n.has(t)){if(c.has(t))return r.onDestroy(()=>m$(t,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let e=O;if(x.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>x.set(t,e))}const n=this._buildAnimation(r.namespaceId,o,C,i,T,S);if(r.setRealPlayer(n),e===O)D.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=UB(t)),s.push(r)}}else y$(t,o.fromStyles),r.onDestroy(()=>m$(t,o.toStyles)),E.push(r),c.has(t)&&s.push(r)}
3),E.forEach(e=>{const t=i.get(e.element);if(t&&t.length){const n=UB(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let I=0;I<g.length;I++){const e=g[I],t=e.__ng_removed;if(wz(e,"ng-leave"),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let s=this.driver.query(e,".ng-animating",!0);for(let e=0;e<s.length;e++){let t=o.get(s[e]);t&&t.length&&n.push(...t)}}const s=n.filter(e=>!e.destroyed);s.length?Cz(this,e,s):this.processLeaveNode(e)}return g.length=0,D.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),D}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,i){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||"void"==i;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&r.push(t)})}}return(n||s)&&(r=r.filter(e=>(!n||n==e.namespaceId)&&(!s||s==e.triggerName))),r}_beforeAnimationBuild(e,t,n){const s=t.triggerName,i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:s;for(const a of t.timelines){const e=a.element,s=e!==i,l=GB(n,e,[]);this._getPreviousPlayers(e,s,r,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}y$(i,t.fromStyles)}_buildAnimation(e,t,n,s,i,r){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new aD(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return xz(e,t),t}((n.get(h)||lz).map(e=>e.getRealPlayer())).filter(e=>{const t=e;return!!t.element&&t.element===h}),g=i.get(h),m=r.get(h),y=HB(this.driver,this._normalizer,0,t.keyframes,g,m),b=this._buildPlayer(t,y,f);if(t.subTimeline&&s&&u.add(h),p){const t=new gz(e,o,h);t.setRealPlayer(b),l.push(t)}return b});l.forEach(e=>{GB(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}
3else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>_z(e,"ng-animating"));const d=UB(h);return d.onDestroy(()=>{c.forEach(e=>wz(e,"ng-animating")),m$(a,t.toStyles)}),u.forEach(e=>{GB(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new aD(e.duration,e.delay)}}class gz{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new aD,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>qB(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){GB(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function mz(e){return e&&1===e.nodeType}function yz(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function bz(e,t,n,s,i){const r=[];n.forEach(e=>r.push(yz(e)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(e=>{const n=r[e]=t.computeStyle(s,e,i);n&&0!=n.length||(s.__ng_removed=uz,o.push(s))}),e.set(s,r)});let a=0;return n.forEach(e=>yz(e,r[a++])),o}function vz(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),i=new Map;function r(e){if(!e)return 1;let t=i.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:s.has(o)?1:r(o),i.set(e,t),t}return t.forEach(e=>{const t=r(e);1!==t&&n.get(t).push(e)}),n}function _z(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function wz(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Cz(e,t,n){UB(n).onDone(()=>e.processLeaveNode(t))}function xz(e,t){for(let n=0;n<e.length;n++){const s=e[n];s instanceof lD?xz(s.players,t):t.push(s)}}function kz(e,t,n){const s=n.get(e);if(!s)return!1;let i=t.get(e);return i?s.forEach(e=>i.add(e)):t.set(e,s),n.delete(e),!0}class Sz{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new fz(e,t,n),this._timelineEngine=new az(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,i){const r=e+"-"+s;let o=this._triggerCache[r];if(!o){const e=[],t=F$(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new iz(e,t)}(s,t),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,i]=ZB(n),r=s;this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,i){if("@"==n.charAt(0)){const[e,s]=ZB(n);return this._timelineEngine.listen(e,t,s,i)}return this._transitionEngine.listen(e,t,n,s,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Tz(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Ez(t[0]),t.length>1&&(s=Ez(t[t.length-1]))):t&&(n=Ez(t)),n||s?new Dz(e,n,s):null}class Dz{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let s=Dz.initialStylesByElement.get(e);s||Dz.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&m$(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(m$(this._element,this._initialStyles),this._endStyles&&(m$(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Dz.initialStylesByElement.delete(this._element),this._startStyles&&(y$(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(y$(this._element,this._endStyles),this._endStyles=null),m$(this._element,this._initialStyles),this._state=3)}}function Ez(e){let t=null;const n=Object.keys(e);for(let s=0;s<n.length;s++){const i=n[s];Oz(i)&&(t=t||{},t[i]=e[i])}return t}function Oz(e){return"display"===e||"position"===e}Dz.initialStylesByElement=new WeakMap;class Iz{constructor(e,t,n,s,i,r,o){this._element=e,this._name=t,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e
3=>this._handleCallback(e)}apply(){!function(e,t){const n=Nz(e,"").trim();let s=0;n.length&&(s=function(e,t){let n=0;for(let s=0;s<e.length;s++){e.charAt(s)===t&&n++}return n}(n,",")+1,t=`${n}, ${t}`);Rz(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Fz(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Pz(this._element,this._name,"paused")}resume(){Pz(this._element,this._name,"running")}setPosition(e){const t=Az(this._element,this._name);this._position=e*this._duration,Rz(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Fz(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Nz(e,"").split(","),s=Mz(n,t);if(s>=0){n.splice(s,1);Rz(e,"",n.join(","))}}(this._element,this._name))}}function Pz(e,t,n){Rz(e,"PlayState",n,Az(e,t))}function Az(e,t){const n=Nz(e,"");if(n.indexOf(",")>0){return Mz(n.split(","),t)}return Mz([n],t)}function Mz(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Fz(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Rz(e,t,n,s){const i="animation"+t;if(null!=s){const t=e.style[i];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[i]=n}function Nz(e,t){return e.style["animation"+t]||""}class Lz{constructor(e,t,n,s,i,r,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=i,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=s+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){if(this._state>=1)return;this._state=1;this.element;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 Iz(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:E$(this.element,n))})}this.currentSnapshot=e}}class Vz extends aD{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=o$(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEac
3h(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class jz{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return n$(e)}matchesElement(e,t){return s$(e,t)}containsElement(e,t){return i$(e,t)}query(e,t,n){return r$(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>o$(e));let s=`@keyframes ${t} {\n`,i="";n.forEach(e=>{i=" ";const t=parseFloat(e.offset);s+=`${i}${100*t}% {\n`,i+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${t}: ${n};\n`)}}),s+=`${i}}\n`}),s+="}\n";const r=document.createElement("style");return r.textContent=s,r}animate(e,t,n,s,i,r=[],o){const a=r.filter(e=>e instanceof Lz),l={};S$(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};if(e){(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})})}return t}(t=T$(e,t,l));if(0==n)return new Vz(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Tz(e,t),p=new Lz(e,t,u,n,s,i,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class Bz{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:E$(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class $z{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(zz().toString()),this._cssKeyframesDriver=new jz}validateStyleProperty(e){return n$(e)}matchesElement(e,t){return s$(e,t)}containsElement(e,t){return i$(e,t)}query(e,t,n){return r$(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};
3i&&(a.easing=i);const l={},c=r.filter(e=>e instanceof Bz);S$(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=Tz(e,t=T$(e,t=t.map(e=>p$(e,!1)),l));return new Bz(e,t,a,u)}}function zz(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}class Uz extends XT{constructor(e,t){super(),this._nextAnimationId=0;const n={id:"0",encapsulation:Re.None,styles:[],data:{animation:[]}};this._renderer=e.createRenderer(t.body,n)}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?nD(e):e;return Wz(this._renderer,null,t,"register",[n]),new Hz(t,this._renderer)}}Uz.\u0275fac=function(e){return new(e||Uz)(ri(Xd),ri(Vm))},Uz.\u0275prov=ve({token:Uz,factory:Uz.\u0275fac}),Uz.ctorParameters=()=>[{type:Xd},{type:void 0,decorators:[{type:hi,args:[Vm]}]}];class Hz extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new qz(this._id,e,t||{},this._renderer)}}class qz{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Wz(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Wz(e,t,n,s,i){return e.setProperty(t,`@@${n}:${s}`,i)}class Kz{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Gz("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const r=t=>{Array.isArray(t)?t.forEach(r):this.engine.registerTrigger(s,i,e,t.name,t)};return t.data.animation.forEach(r),new Zz(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}Kz.\u0275fac=function(e){return new(e||Kz)(ri(Xd),ri(Sz),ri(Xg))},Kz.\u0275prov=ve({token:Kz,factory:Kz.\u0275fac}),Kz.ctorParameters=()=>[{type:Xd},{type:Sz},{type:Xg}];class Gz{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}
3listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Zz extends Gz{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?(n=void 0===n||!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.substr(1),r="";return"@"!=i.charAt(0)&&([i,r]=function(e){const t=e.indexOf("."),n=e.substring(0,t),s=e.substr(t+1);return[n,s]}(i)),this.engine.listen(this.namespaceId,s,i,r,e=>{const t=e._data||-1;this.factory.scheduleListenerCallback(t,n,e)})}return this.delegate.listen(e,t,n)}}class Qz extends Sz{constructor(e,t,n){super(e.body,t,n)}}Qz.\u0275fac=function(e){return new(e||Qz)(ri(Vm),ri(l$),ri(Y$))},Qz.\u0275prov=ve({token:Qz,factory:Qz.\u0275fac}),Qz.ctorParameters=()=>[{type:void 0,decorators:[{type:hi,args:[Vm]}]},{type:l$},{type:Y$}];const Yz=new ks("AnimationModuleType"),Jz=[{provide:XT,useClass:Uz},{provide:Y$,useFactory:function(){return new J$}},{provide:Sz,useClass:Qz},{provide:Xd,useFactory:function(e,t,n){return new Kz(e,t,n)},deps:[lv,Sz,Xg]}],Xz=[{provide:l$,useFactory:function(){return"function"==typeof zz()?new $z:new jz}},{provide:Yz,useValue:"BrowserAnimations"},...Jz],eU=[{provide:l$,useClass:a$},{provide:Yz,useValue:"NoopAnimations"},...Jz];class tU{}tU.\u0275fac=function(e){return new(e||tU)},tU.\u0275mod=st({type:tU}),tU.\u0275inj=_e({providers:Xz,imports:[Av]});class nU{}nU.\u0275fac=function(e){return new(e||nU)},nU.\u0275mod=st({type:nU}),nU.\u0275inj=_e({providers:eU,imports:[Av]});const sU={name:"live",production:!0};class iU{}iU.\u0275fac=function(e){return new(e||iU)},iU.\u0275mod=st({type:iU,bootstrap:[$B]}),iU.\u0275inj=_e({providers:[jj,AN,IN,ZN,{provide:Ig,useFactory:function(e,t){return()=>e.load().then(()=>{t.load()})},deps:[IN,ZN],multi:!0},{provide:EN,useValue:sU},{provide:ON,useExisting:IN}],imports:[[Av,E_,BB,NC,LC,QF,tU,qT,ZT,zL,gj]]}),sU.production&&function(){if(hm)throw new Error("Cannot enable prod mode after platform setup.");um=!1}(),Iv().bootstrapModule(iU).catch(e=>console.log(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.