(self.webpackChunktorenderit=self.webpackChunktorenderit||[]).push([[179],{255:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=255,e.exports=t},589:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=Array.isArray||(e=>e&&"number"==typeof e.length);function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();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:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof h)t.remove(this);else if(null!==t)for(let r=0;re.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 r=new f(e,t,n);return r.syncErrorThrowable=!1,r}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,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!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}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=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.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class _ extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends f{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(e){const t=new k(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,r=t.slice();for(let s=0;snew k(e,t),e})();class k extends S{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function x(e){return e&&"function"==typeof e.schedule}function T(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 A(e,this.project,this.thisArg))}}class A 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,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function D(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const R=e=>{if(e&&"function"==typeof e[m])return n=e,e=>{const t=n[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(P(e))return I(e);if(D(e))return(e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t))(e);if(e&&"function"==typeof e[O])return t=e,e=>{const n=t[O]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),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};function M(e,t){return new v(n=>{const r=new h;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function N(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new v(n=>{const r=new h;return r.add(t.schedule(()=>{const s=e[m]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(D(e))return function(e,t){return new v(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(P(e))return M(e,t);if(function(e){return e&&"function"==typeof e[O]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[O](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(R(e))}class U 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 F extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function j(e,t){if(!t.closed)return e instanceof v?e.subscribe(t):R(e)(t)}function L(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(L((n,r)=>N(e(n,r)).pipe(T((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new V(e,n)))}class V{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new H(e,this.project,this.concurrent))}}class H extends F{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.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(e=Number.POSITIVE_INFINITY){return L(y,e)}function z(e,t){return t?M(e,t):new v(I(e))}function q(){return function(e){return e.lift(new B(e))}}class B{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new W(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class W 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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class G 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 q()(this)}}const Z=(()=>{const e=G.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 C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function K(){return new S}function Y(e){for(let t in e)if(e[t]===Y)return t;throw Error("Could not find renamed property on target object.")}function Q(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).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 ee(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const te=Y({__forward_ref__:Y});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return X(this())},e}function re(e){return se(e)?e():e}function se(e){return"function"==typeof e&&e.hasOwnProperty(te)&&e.__forward_ref__===ne}class ie extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function oe(e){return"string"==typeof e?e:null==e?"":String(e)}function ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():oe(e)}function le(e,t){const n=t?` in ${t}`:"";throw new ie("201",`No provider for ${ae(e)} found${n}`)}function ce(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function he(e){return de(e,fe)||de(e,me)}function de(e,t){return e.hasOwnProperty(t)?e[t]:null}function pe(e){return e&&(e.hasOwnProperty(ge)||e.hasOwnProperty(ye))?e[ge]:null}const fe=Y({"\u0275prov":Y}),ge=Y({"\u0275inj":Y}),me=Y({ngInjectableDef:Y}),ye=Y({ngInjectorDef:Y});var ve=(()=>((ve=ve||{})[ve.Default=0]="Default",ve[ve.Host=1]="Host",ve[ve.Self=2]="Self",ve[ve.SkipSelf=4]="SkipSelf",ve[ve.Optional=8]="Optional",ve))();let be;function we(e){const t=be;return be=e,t}function _e(e,t,n){const r=he(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ve.Optional?null:void 0!==t?t:void le(X(e),"Injector")}function Ce(e){return{toString:e}.toString()}var Se=(()=>((Se=Se||{})[Se.OnPush=0]="OnPush",Se[Se.Default=1]="Default",Se))(),ke=(()=>((ke=ke||{})[ke.Emulated=0]="Emulated",ke[ke.None=2]="None",ke[ke.ShadowDom=3]="ShadowDom",ke))();const xe="undefined"!=typeof globalThis&&globalThis,Te="undefined"!=typeof window&&window,Ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ae="undefined"!=typeof global&&global,Ie=xe||Ae||Te||Ee,Oe={},Pe=[],De=Y({"\u0275cmp":Y}),Re=Y({"\u0275dir":Y}),Me=Y({"\u0275pipe":Y}),Ne=Y({"\u0275mod":Y}),Ue=Y({"\u0275loc":Y}),Fe=Y({"\u0275fac":Y}),je=Y({__NG_ELEMENT_ID__:Y});let Le=0;function Ve(e){return Ce(()=>{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===Se.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Pe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ke.Emulated,id:"c",styles:e.styles||Pe,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,i=e.pipes;return n.id+=Le++,n.inputs=Be(e.inputs,t),n.outputs=Be(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(He):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map($e):null,n})}function He(e){return Ze(e)||function(e){return e[Re]||null}(e)}function $e(e){return function(e){return e[Me]||null}(e)}const ze={};function qe(e){return Ce(()=>{const t={type:e.type,bootstrap:e.bootstrap||Pe,declarations:e.declarations||Pe,imports:e.imports||Pe,exports:e.exports||Pe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ze[e.id]=e.type),t})}function Be(e,t){if(null==e)return Oe;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const We=Ve;function Ge(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ze(e){return e[De]||null}function Je(e,t){const n=e[Ne]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}const Ke=20,Ye=10;function Qe(e){return Array.isArray(e)&&"object"==typeof e[1]}function Xe(e){return Array.isArray(e)&&!0===e[1]}function et(e){return 0!=(8&e.flags)}function tt(e){return 2==(2&e.flags)}function nt(e){return 1==(1&e.flags)}function rt(e){return null!==e.template}function st(e,t){return e.hasOwnProperty(Fe)?e[Fe]:null}class it{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function ot(){return at}function at(e){return e.type.prototype.ngOnChanges&&(e.setInput=ct),lt}function lt(){const e=ut(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Oe)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function ct(e,t,n,r){const s=ut(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Oe,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new it(l&&l.currentValue,t,o===Oe),e[r]=t}function ut(e){return e.__ngSimpleChanges__||null}let ht;function dt(e){return!!e.listen}ot.ngInherit=!0;const pt={createRenderer:(e,t)=>void 0!==ht?ht:"undefined"!=typeof document?document:void 0};function ft(e){for(;Array.isArray(e);)e=e[0];return e}function gt(e,t){return ft(t[e])}function mt(e,t){return ft(t[e.index])}function yt(e,t){return e.data[t]}function vt(e,t){return e[t]}function bt(e,t){const n=t[e];return Qe(n)?n:n[0]}function wt(e){return 4==(4&e[2])}function _t(e){return 128==(128&e[2])}function Ct(e,t){return null==t?null:e[t]}function St(e){e[18]=0}function kt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const xt={lFrame:Zt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tt(){return xt.bindingsEnabled}function Et(){return xt.lFrame.lView}function At(){return xt.lFrame.tView}function It(e){return xt.lFrame.contextLView=e,e[8]}function Ot(){let e=Pt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Pt(){return xt.lFrame.currentTNode}function Dt(e,t){const n=xt.lFrame;n.currentTNode=e,n.isParent=t}function Rt(){return xt.lFrame.isParent}function Mt(){return xt.isInCheckNoChangesMode}function Nt(e){xt.isInCheckNoChangesMode=e}function Ut(){const e=xt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ft(){return xt.lFrame.bindingIndex}function jt(){return xt.lFrame.bindingIndex++}function Lt(e){const t=xt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vt(e,t){const n=xt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ht(t)}function Ht(e){xt.lFrame.currentDirectiveIndex=e}function $t(){return xt.lFrame.currentQueryIndex}function zt(e){xt.lFrame.currentQueryIndex=e}function qt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Bt(e,t,n){if(n&ve.SkipSelf){let r=t,s=e;for(;r=r.parent,!(null!==r||n&ve.Host||(r=qt(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;t=r,e=s}const r=xt.lFrame=Gt();return r.currentTNode=t,r.lView=e,!0}function Wt(e){const t=Gt(),n=e[1];xt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Gt(){const e=xt.lFrame,t=null===e?null:e.child;return null===t?Zt(e):t}function Zt(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 Jt(){const e=xt.lFrame;return xt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Kt=Jt;function Yt(){const e=Jt();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 Qt(){return xt.lFrame.selectedIndex}function Xt(e){xt.lFrame.selectedIndex=e}function en(){const e=xt.lFrame;return yt(e.tView,e.selectedIndex)}function tn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}const ln=-1;class cn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function un(e,t,n){const r=dt(e);let s=0;for(;st){o=i-1;break}}}for(;i>16,r=t;for(;n>0;)r=r[15],n--;return r}let vn=!0;function bn(e){const t=vn;return vn=e,t}let wn=0;function _n(e,t){const n=Sn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Cn(r.data,e),Cn(t,null),Cn(r.blueprint,null));const s=kn(e,t),i=e.injectorIndex;if(gn(s)){const e=mn(s),n=yn(s,t),r=n[1].data;for(let s=0;s<8;s++)t[i+s]=n[e+s]|r[e+s]}return t[i+8]=s,i}function Cn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Sn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(r=2===t?e.declTNode:1===t?s[6]:null,null===r)return ln;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ln}function xn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(je)&&(r=n[je]),null==r&&(r=n[je]=wn++);const s=255&r;t.data[e+(s>>5)]|=1<=0?255&t:On:t}(n);if("function"==typeof i){if(!Bt(t,e,r))return r&ve.Host?Tn(s,n,r):En(t,n,r,s);try{const e=i(r);if(null!=e||r&ve.Optional)return e;le(n)}finally{Kt()}}else if("number"==typeof i){let s=null,o=Sn(e,t),a=ln,l=r&ve.Host?t[16][6]:null;for((-1===o||r&ve.SkipSelf)&&(a=-1===o?kn(e,t):t[o+8],a!==ln&&Nn(r,!1)?(s=t[1],o=mn(a),t=yn(a,t)):o=-1);-1!==o;){const e=t[1];if(Mn(i,o,e.data)){const e=Pn(o,t,n,s,r,l);if(e!==In)return e}a=t[o+8],a!==ln&&Nn(r,t[1].data[o+8]===l)&&Mn(i,o,t)?(s=e,o=mn(a),t=yn(a,t)):o=-1}}}return En(t,n,r,s)}const In={};function On(){return new Un(Ot(),Et())}function Pn(e,t,n,r,s,i){const o=t[1],a=o.data[e+8],l=Dn(a,o,n,null==r?tt(a)&&vn:r!=o&&0!=(3&a.type),s&ve.Host&&i===a);return null!==l?Rn(t,o,l,a):In}function Dn(e,t,n,r,s){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=s?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&e.type===n)return h}if(s){const e=o[l];if(e&&rt(e)&&e.type===n)return l}return null}function Rn(e,t,n,r){let s=e[n];const i=t.data;if(s instanceof cn){const o=s;o.resolving&&function(e,t){throw new ie("200",`Circular dependency in DI detected for ${e}`)}(ae(i[n]));const a=bn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?we(o.injectImpl):null;Bt(e,r,ve.Default);try{s=e[n]=o.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const r=at(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&we(l),bn(a),o.resolving=!1,Kt()}}return s}function Mn(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Fe]||jn(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const e=s[Fe]||jn(s);if(e&&e!==n)return e;s=Object.getPrototypeOf(s)}return e=>new e})}function jn(e){return se(e)?()=>{const t=jn(re(e));return t&&t()}:st(e)}function Ln(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 r=0;for(;r{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(Vn)?e[Vn]:Object.defineProperty(e,Vn,{value:[]})[Vn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class $n{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=ce({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const zn=new $n("AnalyzeForEntryComponents"),qn=Function;function Bn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?Wn(e,t):t(e))}function Gn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jn(e,t,n){let r=Yn(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Kn(e,t){const n=Yn(e,t);if(n>=0)return e[1|n]}function Yn(e,t){return function(e,t,n){let r=0,s=e.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=e[n<<1];if(t===i)return n<<1;i>t?s=n:r=n+1}return~(s<<1)}(e,t)}const Qn={},Xn=/\n/gm,er="__source",tr=Y({provide:String,useValue:Y});let nr;function rr(e){const t=nr;return nr=e,t}function sr(e,t=ve.Default){if(void 0===nr)throw new Error("inject() must be called from an injection context");return null===nr?_e(e,void 0,t):nr.get(e,t&ve.Optional?null:void 0,t)}function ir(e,t=ve.Default){return(be||sr)(re(e),t)}function or(e){const t=[];for(let n=0;n({token:e})),-1),cr=ar(Hn("Optional"),8),ur=ar(Hn("SkipSelf"),4);class hr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function dr(e){return e instanceof hr?e.changingThisBreaksApplicationSecurity:e}const pr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,fr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var gr=(()=>((gr=gr||{})[gr.NONE=0]="NONE",gr[gr.HTML=1]="HTML",gr[gr.STYLE=2]="STYLE",gr[gr.SCRIPT=3]="SCRIPT",gr[gr.URL=4]="URL",gr[gr.RESOURCE_URL=5]="RESOURCE_URL",gr))();function mr(e){const t=function(){const e=Et();return e&&e[12]}();return t?t.sanitize(gr.URL,e)||"":function(e,t){const n=function(e){return e instanceof hr&&e.getTypeName()||null}(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}(e,"URL")?dr(e):(n=oe(e),(n=String(n)).match(pr)||n.match(fr)?n:"unsafe:"+n);var n}function yr(e,t){e.__ngContext__=t}function vr(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function br(e){return e.ngOriginalError}function wr(e,...t){e.error(...t)}class _r{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||wr}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?function(e){return e.ngDebugContext}(e)||this._findContext(br(e)):null}_findOriginalError(e){let t=br(e);for(;t&&br(t);)t=br(t);return t}}const Cr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie))();function Sr(e){return e.ownerDocument.defaultView}function kr(e){return e instanceof Function?e():e}var xr=(()=>((xr=xr||{})[xr.Important=1]="Important",xr[xr.DashCase=2]="DashCase",xr))();function Tr(e,t){return(void 0)(e,t)}function Er(e){const t=e[3];return Xe(t)?t[3]:t}function Ar(e){return Or(e[13])}function Ir(e){return Or(e[4])}function Or(e){for(;null!==e&&!Xe(e);)e=e[4];return e}function Pr(e,t,n,r,s){if(null!=r){let i,o=!1;Xe(r)?i=r:Qe(r)&&(o=!0,r=r[0]);const a=ft(r);0===e&&null!==n?null==s?jr(t,n,a):Fr(t,n,a,s||null,!0):1===e&&null!==n?Fr(t,n,a,s||null,!0):2===e?function(e,t,n){const r=Vr(e,t);r&&function(e,t,n,r){dt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,s){const i=n[7];i!==ft(n)&&Pr(t,e,r,i,s);for(let o=Ye;o0&&(e[n-1][4]=r[4]);const o=Zn(e,Ye+t);Wr(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Nr(e,t){if(!(256&t[2])){const n=t[11];dt(n)&&n.destroyNode&&Wr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ur(e[1],e);for(;t;){let n=null;if(Qe(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Qe(t)&&Ur(t[1],t),t=t[3];null===t&&(t=e),Qe(t)&&Ur(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ur(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const e=r[s=n[i+1]];n[i].call(e)}if(null!==r){for(let e=s+1;ei?"":s[u+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Kr(t,c,0)||2&r&&c!==e){if(ns(r))return!1;o=!0}}}}else{if(!o&&!ns(r)&&!ns(l))return!1;if(o&&ns(l))continue;o=!1,r=l|1&r}}return ns(r)||o}function ns(e){return 0==(1&e)}function rs(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||ns(o)||(t+=is(i,s),s=""),r=o,i=i||!ns(r);n++}return""!==s&&(t+=is(i,s)),t}const as={};function ls(e){cs(At(),Et(),Qt()+e,Mt())}function cs(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&nn(t,r,n)}else{const r=e.preOrderHooks;null!==r&&rn(t,r,0,n)}Xt(n)}function us(e,t){return e<<17|t<<2}function hs(e){return e>>17&32767}function ds(e){return 2|e}function ps(e){return(131068&e)>>2}function fs(e,t){return-131069&e|t<<2}function gs(e){return 1|e}function ms(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rKe&&cs(e,t,Ke,Mt()),n(r,s)}finally{Xt(i)}}function ks(e,t,n){Tt()&&(function(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||_n(n,t),yr(r,t);const o=n.initialInputs;for(let a=s;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function Rs(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ms(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ns(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&zs(n)}}function zs(e){for(let n=Ar(e);null!==n;n=Ir(n))for(let e=Ye;e0&&zs(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&zs(r)}}function qs(e,t){const n=bt(t,e),r=n[1];!function(e,t){for(let n=t.length;nPromise.resolve(null))();function Ys(e){return e[7]||(e[7]=[])}function Qs(e){return e.cleanup||(e.cleanup=[])}function Xs(e,t){const n=e[9],r=n?n.get(_r,null):null;r&&r.handleError(t)}function ei(e,t,n,r,s){for(let i=0;ithis.processProvider(n,e,t)),Wn([e],e=>this.processInjectorType(e,[],s)),this.records.set(ri,fi(void 0,this));const i=this.records.get(ii);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof e?null:X(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=Qn,n=ve.Default){this.assertNotDestroyed();const r=rr(this),s=we(void 0);try{if(!(n&ve.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof $n)&&he(e);t=n&&this.injectableDefInScope(n)?fi(di(e),oi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ve.Self?ci():this.parent).get(e,t=n&ve.Optional&&t===Qn?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(X(e)),r)throw o;return function(e,t,n,r){const s=e.ngTempTokenPath;throw t[er]&&s.unshift(t[er]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=X(t);if(Array.isArray(t))s=t.map(X).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):X(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Xn,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{we(s),rr(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(X(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=re(e)))return!1;let r=pe(e);const s=null==r&&e.ngModule||void 0,i=void 0===s?e:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=pe(s)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(i);try{Wn(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Pe))}}this.injectorDefTypes.add(i);const a=st(i)||(()=>new i);this.records.set(i,fi(a,oi));const l=r.providers;if(null!=l&&!o){const t=e;Wn(l,e=>this.processProvider(e,t,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=mi(e=re(e))?e:re(e&&e.provide);const s=function(e,t,n){return gi(e)?fi(void 0,e.useValue):fi(pi(e),oi)}(e);if(mi(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=fi(void 0,oi,!0),t.factory=()=>or(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){var n;return t.value===oi&&(t.value=ai,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=re(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function di(e){const t=he(e),n=null!==t?t.factory:st(e);if(null!==n)return n;if(e instanceof $n)throw new Error(`Token ${X(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new Error("unreachable")}function pi(e,t,n){let r;if(mi(e)){const t=re(e);return st(t)||di(t)}if(gi(e))r=()=>re(e.useValue);else if((s=e)&&s.useFactory)r=()=>e.useFactory(...or(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>ir(re(e.useExisting));else{const t=re(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return st(t)||di(t);r=()=>new t(...or(e.deps))}var s;return r}function fi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function gi(e){return null!==e&&"object"==typeof e&&tr in e}function mi(e){return"function"==typeof e}const yi=function(e,t,n){return function(e,t=null,n=null,r){const s=ui(e,t,n,r);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};class vi{static create(e,t){return Array.isArray(e)?yi(e,t,""):yi(e.providers,e.parent,e.name||"")}}function bi(e,t){tn(vr(e)[1],Ot())}function wi(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const r=[e];for(;t;){let s;if(rt(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){r.push(s);const t=e;t.inputs=_i(e.inputs),t.declaredInputs=_i(e.declaredInputs),t.outputs=_i(e.outputs);const n=s.hostBindings;n&&ki(e,n);const i=s.viewQuery,o=s.contentQueries;if(i&&Ci(e,i),o&&Si(e,o),Q(e.inputs,s.inputs),Q(e.declaredInputs,s.declaredInputs),Q(e.outputs,s.outputs),rt(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let r=0;r=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=pn(s.hostAttrs,n=pn(n,s.hostAttrs))}}(r)}function _i(e){return e===Oe?{}:e===Pe?[]:e}function Ci(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Si(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,s)=>{t(e,r,s),n(e,r,s)}:t}function ki(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}vi.THROW_IF_NOT_FOUND=Qn,vi.NULL=new si,vi.\u0275prov=ce({token:vi,providedIn:"any",factory:()=>ir(ri)}),vi.__NG_ELEMENT_ID__=-1;let xi=null;function Ti(){if(!xi){const e=Ie.Symbol;if(e&&e.iterator)xi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(ft(e[r.index])):r.index;if(dt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;in?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Wi(r,t,0,i,!1);const e=n.listen(p,s,i);u.push(i,e),c&&c.push(s,g,f,f+1)}}else i=Wi(r,t,0,i,!0),p.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,f,o)}else i=Wi(r,t,0,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,xt.lFrame.contextLView))[8]}(e)}function Zi(e,t,n,r,s){const i=e[n+1],o=null===t;let a=r?hs(i):ps(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Ji(e[a],t)&&(l=!0,e[a+1]=r?gs(n):ds(n)),a=r?hs(n):ps(n)}l&&(e[n+1]=r?ds(i):gs(i))}function Ji(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Yn(e,t)>=0}const Ki={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yi(e){return e.substring(Ki.key,Ki.keyEnd)}function Qi(e,t){const n=Ki.textEnd;return n===t?-1:(t=Ki.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ki.key=t,n),Xi(e,t,n))}function Xi(e,t,n){for(;t=0;n=Qi(t,n))Jn(e,Yi(t),!0)}function so(e,t,n,r){const s=Et(),i=At(),o=Lt(2);i.firstUpdatePass&&oo(i,e,o,r),t!==as&&Pi(s,o,t)&&co(i,i.data[Qt()],s,s[11],e,s[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(dr(e)))),e}(t,n),r,o)}function io(e,t){return t>=e.expandoStartIndex}function oo(e,t,n,r){const s=e.data;if(null===s[n+1]){const i=s[Qt()],o=io(e,n);po(i,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){const s=function(e){const t=xt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=lo(n=ao(null,e,t,n,r),t.attrs,r),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==s)if(n=ao(s,e,t,n,r),null===i){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ps(r))return e[hs(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=ao(null,e,t,n[1],r),n=lo(n,t.attrs,r),function(e,t,n,r){e[hs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else i=function(e,t,n){let r;const s=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)}else c=n;if(s)if(0!==l){const t=hs(e[a+1]);e[r+1]=us(t,a),0!==t&&(e[t+1]=fs(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=us(a,0),0!==a&&(e[a+1]=fs(e[a+1],r)),a=r;else e[r+1]=us(l,0),0===a?a=r:e[l+1]=fs(e[l+1],r),l=r;u&&(e[r+1]=ds(e[r+1])),Zi(e,c,r,!0),Zi(e,c,r,!1),function(e,t,n,r,s){const i=s?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Yn(i,t)>=0&&(n[r+1]=gs(n[r+1]))}(t,c,e,r,i),o=us(a,l),i?t.classBindings=o:t.styleBindings=o}(s,i,t,n,o,r)}}function ao(e,t,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[s],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[s+1];u===as&&(u=c?Pe:void 0);let h=c?Kn(u,r):l===r?u:void 0;if(i&&!ho(h)&&(h=Kn(t,r)),ho(h)&&(a=h,o))return a;const d=e[s+1];s=o?hs(d):ps(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=Kn(e,r))}return a}function ho(e){return void 0!==e}function po(e,t){return 0!=(e.flags&(t?16:32))}function fo(e,t=""){const n=Et(),r=At(),s=e+Ke,i=r.firstCreatePass?vs(r,s,1,t,null):r.data[s],o=n[s]=function(e,t){return dt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Hr(r,n,o,i),Dt(i,!1)}function go(e){return mo("",e,""),go}function mo(e,t,n){const r=Et(),s=function(e,t,n,r){return Pi(e,jt(),n)?t+oe(n)+r:as}(r,e,t,n);return s!==as&&ti(r,Qt(),s),mo}function yo(e,t,n,r,s){const i=Et(),o=function(e,t,n,r,s,i){const o=Di(e,Ft(),n,s);return Lt(2),o?t+oe(n)+r+oe(s)+i:as}(i,e,t,n,r,s);return o!==as&&ti(i,Qt(),o),yo}function vo(e,t,n,r,s,i,o){const a=Et(),l=function(e,t,n,r,s,i,o,a){const l=function(e,t,n,r,s){const i=Di(e,t,n,r);return Pi(e,t+2,s)||i}(e,Ft(),n,s,o);return Lt(3),l?t+oe(n)+r+oe(s)+i+oe(o)+a:as}(a,e,t,n,r,s,i,o);return l!==as&&ti(a,Qt(),l),vo}function bo(e,t,n){const r=Et();return Pi(r,jt(),t)&&Os(At(),en(),r,e,t,r[11],n,!0),bo}const wo=void 0;var _o=["en",[["a","p"],["AM","PM"],wo],[["AM","PM"],wo,wo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],wo,[["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"]],wo,[["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}",wo,"{1} 'at' {0}",wo],[".",",",";","%","+","-","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 Co={};function So(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ko(t);if(n)return n;const r=t.split("-")[0];if(n=ko(r),n)return n;if("en"===r)return _o;throw new Error(`Missing locale data for the locale "${e}".`)}function ko(e){return e in Co||(Co[e]=Ie.ng&&Ie.ng.common&&Ie.ng.common.locales&&Ie.ng.common.locales[e]),Co[e]}var xo=(()=>((xo=xo||{})[xo.LocaleId=0]="LocaleId",xo[xo.DayPeriodsFormat=1]="DayPeriodsFormat",xo[xo.DayPeriodsStandalone=2]="DayPeriodsStandalone",xo[xo.DaysFormat=3]="DaysFormat",xo[xo.DaysStandalone=4]="DaysStandalone",xo[xo.MonthsFormat=5]="MonthsFormat",xo[xo.MonthsStandalone=6]="MonthsStandalone",xo[xo.Eras=7]="Eras",xo[xo.FirstDayOfWeek=8]="FirstDayOfWeek",xo[xo.WeekendRange=9]="WeekendRange",xo[xo.DateFormat=10]="DateFormat",xo[xo.TimeFormat=11]="TimeFormat",xo[xo.DateTimeFormat=12]="DateTimeFormat",xo[xo.NumberSymbols=13]="NumberSymbols",xo[xo.NumberFormats=14]="NumberFormats",xo[xo.CurrencyCode=15]="CurrencyCode",xo[xo.CurrencySymbol=16]="CurrencySymbol",xo[xo.CurrencyName=17]="CurrencyName",xo[xo.Currencies=18]="Currencies",xo[xo.Directionality=19]="Directionality",xo[xo.PluralCase=20]="PluralCase",xo[xo.ExtraData=21]="ExtraData",xo))();const To="en-US";let Eo=To;function Ao(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Eo=e.toLowerCase().replace(/_/g,"-"))}function Io(e,t,n,r,s){if(e=re(e),Array.isArray(e))for(let i=0;i>20;if(mi(e)||!e.multi){const r=new cn(l,s,Ni),p=Do(a,t,s?u:u+d,h);-1===p?(xn(_n(c,o),i,a),Oo(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=Do(a,t,u+d,h),f=Do(a,t,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){xn(_n(c,o),i,a);const u=function(e,t,n,r,s){const i=new cn(e,n,Ni);return i.multi=[],i.index=t,i.componentProviders=0,Po(i,s,r&&!n),i}(s?Mo:Ro,n.length,s,r,l);!s&&m&&(n[f].providerFactory=u),Oo(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Oo(i,e,p>-1?p:f,Po(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function Oo(e,t,n,r){const s=mi(t);if(s||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[r,i]):o[e+1].push(r,i)}else o.push(n,i)}}}function Po(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Do(e,t,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(e,t,n){const r=At();if(r.firstCreatePass){const s=rt(e);Io(n,r.data,r.blueprint,s,!0),Io(t,r.data,r.blueprint,s,!1)}}(n,r?r(e):e,t)}}class Fo{}class jo{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}class Lo{}function Vo(...e){}function Ho(e,t){return new zo(mt(e,t))}Lo.NULL=new jo;const $o=function(){return Ho(Ot(),Et())};let zo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=$o,e})();function qo(e){return e instanceof zo?e.nativeElement:e}class Bo{}let Wo=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Go(),e})();const Go=function(){const e=Et(),t=bt(Ot().index,e);return function(e){return e[11]}(Qe(t)?t:e)};let Zo=(()=>{class e{}return e.\u0275prov=ce({token:e,providedIn:"root",factory:()=>null}),e})();class Jo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ko=new Jo("12.1.3");class Yo{constructor(){}supports(e){return Ai(e)}create(e){return new Xo(e)}}const Qo=(e,t)=>t;class Xo{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||Qo}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),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,r){let s;return null===e?s=this._itTail:(s=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,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new ea(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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 r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new na),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new na),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ea{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 ta{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 na{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ta,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ra(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),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 r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new oa(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 oa{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 aa(){return new la([new Yo])}let la=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||aa()),deps:[[e,new ur,new cr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=ce({token:e,providedIn:"root",factory:aa}),e})();function ca(){return new ua([new sa])}let ua=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ca()),deps:[[e,new ur,new cr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ce({token:e,providedIn:"root",factory:ca}),e})();function ha(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(ft(i)),Xe(i))for(let e=Ye;e-1&&(Mr(e,n),Zn(t,n))}this._attachedToViewContainer=!1}Nr(this._lView[1],this._lView)}onDestroy(e){As(this._lView[1],this._lView,null,e)}markForCheck(){Ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Gs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Nt(!0);try{Gs(e,t,n)}finally{Nt(!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;this._appRef=null,Wr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class pa extends da{constructor(e){super(e),this._view=e}detectChanges(){Zs(this._view)}checkNoChanges(){!function(e){Nt(!0);try{Zs(e)}finally{Nt(!1)}}(this._view)}get context(){return null}}const fa=function(e){return function(e,t,n){if(tt(e)&&!n){const n=bt(e.index,t);return new da(n,n)}return 47&e.type?new da(t[16],t):null}(Ot(),Et(),16==(16&e))};let ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=fa,e})();const ma=[new sa],ya=new la([new Yo]),va=new ua(ma),ba=function(){return Sa(Ot(),Et())};let wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=ba,e})();const _a=wa,Ca=class extends _a{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ys(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),ws(t,n,e),new da(n)}};function Sa(e,t){return 4&e.type?new Ca(t,e,Ho(e,t)):null}class ka{}class xa{}const Ta=function(){return Da(Ot(),Et())};let Ea=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ta,e})();const Aa=Ea,Ia=class extends Aa{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Ho(this._hostTNode,this._hostLView)}get injector(){return new Un(this._hostTNode,this._hostLView)}get parentInjector(){const e=kn(this._hostTNode,this._hostLView);if(gn(e)){const t=yn(e,this._hostLView),n=mn(e);return new Un(t[1].data[n+8],t)}return new Un(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Oa(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Ye}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;if(!s&&null==e.ngModule&&i){const e=i.get(ka,null);e&&(s=e)}const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(Xe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Ia(t,t[6],t[3]);r.detach(r.indexOf(e))}}const s=this._adjustIndex(t),i=this._lContainer;!function(e,t,n,r){const s=Ye+r,i=n.length;r>0&&(n[s-1][4]=t),rCr});class Fa extends Fo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(os).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Na(this.componentDef.inputs)}get outputs(){return Na(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const i=e.get(n,Ra,s);return i!==Ra||r===Ra?i:t.get(n,r,s)}}}(e,r.injector):e,i=s.get(Bo,pt),o=s.get(Zo,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(dt(e))return e.selectRootElement(t,n===ke.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Dr(i.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Cr,clean:Ks,playerHandler:null,flags:0},d=Es(0,null,null,1,0,null,null,null,null,null),p=ys(null,d,h,u,null,null,i,a,o,s);let f,g;Wt(p);try{const e=function(e,t,n,r,s,i){const o=n[1];n[20]=e;const a=vs(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(ni(a,l,!0),null!==e&&(un(s,e,l),null!==a.classes&&Jr(s,e,a.classes),null!==a.styles&&Zr(s,e,a.styles)));const c=r.createRenderer(e,t),u=ys(n,Ts(t),null,t.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(xn(_n(a,n),o,t.type),Ms(o,a),Us(a,n.length,1)),Bs(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)un(a,c,["ng-version",Ko.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,s=2;for(;r0&&Jr(a,c,t.join(" "))}if(g=yt(d,Ke),void 0!==t){const e=g.projection=[];for(let n=0;ne(o,t)),t.contentQueries){const e=Ot();t.contentQueries(1,o,e.directiveStart)}const a=Ot();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Xt(a.index),Ds(n[1],a,0,a.directiveStart,a.directiveEnd,t),Rs(t,o)),o}(e,this.componentDef,p,h,[bi]),ws(d,p,null)}finally{Yt()}return new ja(this.componentType,f,Ho(g,p),p,g)}}class ja extends class{}{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new pa(r),this.componentType=e}get injector(){return new Un(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const La=new Map;class Va extends ka{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ma(this);const n=Je(e),r=e[Ue]||null;r&&Ao(r),this._bootstrapComponents=kr(n.bootstrap),this._r3Injector=ui(e,t,[{provide:ka,useValue:this},{provide:Lo,useValue:this.componentFactoryResolver}],X(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=vi.THROW_IF_NOT_FOUND,n=ve.Default){return e===vi||e===ka||e===ri?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 Ha extends xa{constructor(e){super(),this.moduleType=e,null!==Je(e)&&function(e){const t=new Set;!function e(n){const r=Je(n,!0),s=r.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(s,La.get(s),n),La.set(s,n));const i=kr(r.imports);for(const o of i)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Va(this.moduleType,e)}}function $a(e,t){const n=e[t];return n===as?void 0:n}function za(e,t){const n=At();let r;const s=e+Ke;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new ie("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=st(r.type)),o=we(Ni);try{const e=bn(!1),t=i();return bn(e),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Et(),s,t),t}finally{we(o)}}function qa(e,t,n){const r=e+Ke,s=Et(),i=vt(s,r);return Ga(s,Wa(s,r)?function(e,t,n,r,s,i){const o=t+n;return Pi(e,o,s)?Oi(e,o+1,i?r.call(i,s):r(s)):$a(e,o+1)}(s,Ut(),t,i.transform,n,i):i.transform(n))}function Ba(e,t,n,r){const s=e+Ke,i=Et(),o=vt(i,s);return Ga(i,Wa(i,s)?function(e,t,n,r,s,i,o){const a=t+n;return Di(e,a,s,i)?Oi(e,a+2,o?r.call(o,s,i):r(s,i)):$a(e,a+2)}(i,Ut(),t,o.transform,n,r,o):o.transform(n,r))}function Wa(e,t){return e[1].data[t].pure}function Ga(e,t){return Ei.isWrapped(t)&&(t=Ei.unwrap(t),e[Ft()]=as),t}function Za(e){return t=>{setTimeout(e,void 0,t)}}const Ja=class extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,s,i;let o=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;o=null===(r=t.next)||void 0===r?void 0:r.bind(t),a=null===(s=t.error)||void 0===s?void 0:s.bind(t),l=null===(i=t.complete)||void 0===i?void 0:i.bind(t)}this.__isAsync&&(a=Za(a),o&&(o=Za(o)),l&&(l=Za(l)));const c=super.subscribe({next:o,error:a,complete:l});return e instanceof h&&e.add(c),c}};function Ka(){return this._results[Ti()]()}class Ya{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=Ti(),n=Ya.prototype;n[t]||(n[t]=Ka)}get changes(){return this._changes||(this._changes=new Ja)}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)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=Bn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(o[e/2]);else{const s=i[e+1],o=t[-n];for(let e=Ye;e{class e{constructor(e){this.appInits=e,this.resolve=Vo,this.reject=Vo,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{t.subscribe({complete:e,error:n})});e.push(n)}}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(ir(dl,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const fl=new $n("AppId"),gl={provide:fl,useFactory:function(){return`${ml()}${ml()}${ml()}`},deps:[]};function ml(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yl=new $n("Platform Initializer"),vl=new $n("Platform ID"),bl=new $n("appBootstrapListener");let wl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const _l=new $n("LocaleId"),Cl=new $n("DefaultCurrencyCode");class Sl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const kl=function(e){return new Ha(e)},xl=kl,Tl=function(e){return Promise.resolve(kl(e))},El=function(e){const t=kl(e),n=kr(Je(e).declarations).reduce((e,t)=>{const n=Ze(t);return n&&e.push(new Fa(n)),e},[]);return new Sl(t,n)},Al=El,Il=function(e){return Promise.resolve(El(e))};let Ol=(()=>{class e{constructor(){this.compileModuleSync=xl,this.compileModuleAsync=Tl,this.compileModuleAndAllComponentsSync=Al,this.compileModuleAndAllComponentsAsync=Il}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Pl=(()=>Promise.resolve(0))();function Dl(e){"undefined"==typeof Zone?Pl.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Rl{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ja(!1),this.onMicrotaskEmpty=new Ja(!1),this.onStable=new Ja(!1),this.onError=new Ja(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Ie.requestAnimationFrame,t=Ie.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ie,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ul(e),e.isCheckStableRunning=!0,Nl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ul(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return Fl(e),n.invokeTask(s,i,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),jl(e)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return Fl(e),n.invoke(s,i,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),jl(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Ul(e),Nl(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Rl.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,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,Ml,Vo,Vo);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Ml={};function Nl(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 Ul(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Fl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jl(e){e._nesting--,Nl(e)}class Ll{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ja,this.onMicrotaskEmpty=new Ja,this.onStable=new Ja,this.onError=new Ja}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,r){return e.apply(t,n)}}let Vl=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Rl.assertNotInAngularZone(),Dl(()=>{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())Dl(()=>{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 r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(ir(Rl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Hl=(()=>{class e{constructor(){this._applications=new Map,ql.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 ql.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class $l{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let zl,ql=new $l,Bl=!0,Wl=!1;const Gl=new $n("AllowMultipleToken");class Zl{constructor(e,t){this.name=e,this.token=t}}function Jl(e,t,n=[]){const r=`Platform: ${t}`,s=new $n(r);return(t=[])=>{let i=Kl();if(!i||i.injector.get(Gl,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:ii,useValue:"platform"});!function(e){if(zl&&!zl.destroyed&&!zl.injector.get(Gl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zl=e.get(Yl);const t=e.get(yl,null);t&&t.forEach(e=>e())}(vi.create({providers:e,name:r}))}return function(e){const t=Kl();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}(s)}}function Kl(){return zl&&!zl.destroyed?zl:null}let Yl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Ll:("zone.js"===e?void 0:e)||new Rl({enableLongStackTrace:(Wl=!0,Bl),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:Rl,useValue:n}];return n.run(()=>{const t=vi.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(_r,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{i.handleError(e)}});s.onDestroy(()=>{ec(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const r=n();return $i(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(pl);return e.runInitializers(),e.donePromise.then(()=>(Ao(s.injector.get(_l,To)||To),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Ql({},t);return function(e,t,n){const r=new Ha(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${X(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(ir(vi))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Ql(e,t){return Array.isArray(t)?t.reduce(Ql,e):Object.assign(Object.assign({},e),t)}let Xl=(()=>{class e{constructor(e,t,n,r,s){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=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(()=>{Rl.assertNotInAngularZone(),Dl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Rl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return x(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:$(t)(z(e,n))}(i,o.pipe(e=>{return q()((t=K,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,Z);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Fo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ka),s=n.create(vi.NULL,[],t||n.selector,r),i=s.location.nativeElement,o=s.injector.get(Vl,null),a=o&&s.injector.get(Hl);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),ec(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}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;ec(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(bl,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ir(Rl),ir(vi),ir(_r),ir(Lo),ir(pl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function ec(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class tc{}class nc{}const rc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let sc=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||rc}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n(255)(t).then(e=>e[r]).then(e=>ic(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n(255)(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>ic(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(ir(Ol),ir(nc,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function ic(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const oc=Jl(null,"core",[{provide:vl,useValue:"unknown"},{provide:Yl,deps:[vi]},{provide:Hl,deps:[]},{provide:wl,deps:[]}]),ac=[{provide:Xl,useClass:Xl,deps:[Rl,vi,_r,Lo,pl]},{provide:Ua,deps:[Rl],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:pl,useClass:pl,deps:[[new cr,dl]]},{provide:Ol,useClass:Ol,deps:[]},gl,{provide:la,useFactory:function(){return ya},deps:[]},{provide:ua,useFactory:function(){return va},deps:[]},{provide:_l,useFactory:function(e){return Ao(e=e||"undefined"!=typeof $localize&&$localize.locale||To),e},deps:[[new lr(_l),new cr,new ur]]},{provide:Cl,useValue:"USD"}];let lc=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(ir(Xl))},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({providers:ac}),e})(),cc=null;function uc(){return cc}const hc=new $n("DocumentToken");let dc=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({factory:pc,token:e,providedIn:"platform"}),e})();function pc(){return ir(gc)}const fc=new $n("Location Initialized");let gc=(()=>{class e extends dc{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return uc().getBaseHref(this._doc)}onPopState(e){const t=uc().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=uc().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}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){mc()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){mc()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({factory:yc,token:e,providedIn:"platform"}),e})();function mc(){return!!window.history.pushState}function yc(){return new gc(ir(hc))}function vc(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 bc(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function wc(e){return e&&"?"!==e[0]?"?"+e:e}let _c=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({factory:Cc,token:e,providedIn:"root"}),e})();function Cc(e){const t=ir(hc).location;return new kc(ir(dc),t&&t.origin||"")}const Sc=new $n("appBaseHref");let kc=(()=>{class e extends _c{constructor(e,t){if(super(),this._platformLocation=e,this._removeListenerFns=[],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}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return vc(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+wc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+wc(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+wc(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(ir(dc),ir(Sc,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),xc=(()=>{class e extends _c{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(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=vc(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+wc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+wc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(ir(dc),ir(Sc,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Tc=(()=>{class e{constructor(e,t){this._subject=new Ja,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=bc(Ac(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+wc(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ac(t)))}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+wc(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wc(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformStrategy).historyGo)||void 0===n||n.call(t,e)}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})}}return e.\u0275fac=function(t){return new(t||e)(ir(_c),ir(dc))},e.normalizeQueryParams=wc,e.joinWithSlash=vc,e.stripTrailingSlash=bc,e.\u0275prov=ce({factory:Ec,token:e,providedIn:"root"}),e})();function Ec(){return new Tc(ir(_c),ir(dc))}function Ac(e){return e.replace(/\/index.html$/,"")}var Ic=(()=>((Ic=Ic||{})[Ic.Decimal=0]="Decimal",Ic[Ic.Percent=1]="Percent",Ic[Ic.Currency=2]="Currency",Ic[Ic.Scientific=3]="Scientific",Ic))(),Oc=(()=>((Oc=Oc||{})[Oc.Zero=0]="Zero",Oc[Oc.One=1]="One",Oc[Oc.Two=2]="Two",Oc[Oc.Few=3]="Few",Oc[Oc.Many=4]="Many",Oc[Oc.Other=5]="Other",Oc))(),Pc=(()=>((Pc=Pc||{})[Pc.Format=0]="Format",Pc[Pc.Standalone=1]="Standalone",Pc))(),Dc=(()=>((Dc=Dc||{})[Dc.Narrow=0]="Narrow",Dc[Dc.Abbreviated=1]="Abbreviated",Dc[Dc.Wide=2]="Wide",Dc[Dc.Short=3]="Short",Dc))(),Rc=(()=>((Rc=Rc||{})[Rc.Short=0]="Short",Rc[Rc.Medium=1]="Medium",Rc[Rc.Long=2]="Long",Rc[Rc.Full=3]="Full",Rc))(),Mc=(()=>((Mc=Mc||{})[Mc.Decimal=0]="Decimal",Mc[Mc.Group=1]="Group",Mc[Mc.List=2]="List",Mc[Mc.PercentSign=3]="PercentSign",Mc[Mc.PlusSign=4]="PlusSign",Mc[Mc.MinusSign=5]="MinusSign",Mc[Mc.Exponential=6]="Exponential",Mc[Mc.SuperscriptingExponent=7]="SuperscriptingExponent",Mc[Mc.PerMille=8]="PerMille",Mc[Mc[1/0]=9]="Infinity",Mc[Mc.NaN=10]="NaN",Mc[Mc.TimeSeparator=11]="TimeSeparator",Mc[Mc.CurrencyDecimal=12]="CurrencyDecimal",Mc[Mc.CurrencyGroup=13]="CurrencyGroup",Mc))();function Nc(e,t){return Vc(So(e)[xo.DateFormat],t)}function Uc(e,t){return Vc(So(e)[xo.TimeFormat],t)}function Fc(e,t){return Vc(So(e)[xo.DateTimeFormat],t)}function jc(e,t){const n=So(e),r=n[xo.NumberSymbols][t];if(void 0===r){if(t===Mc.CurrencyDecimal)return n[xo.NumberSymbols][Mc.Decimal];if(t===Mc.CurrencyGroup)return n[xo.NumberSymbols][Mc.Group]}return r}function Lc(e){if(!e[xo.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[xo.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Vc(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 Hc(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const $c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zc={},qc=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?: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}|c{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 Bc=(()=>((Bc=Bc||{})[Bc.Short=0]="Short",Bc[Bc.ShortGMT=1]="ShortGMT",Bc[Bc.Long=2]="Long",Bc[Bc.Extended=3]="Extended",Bc))(),Wc=(()=>((Wc=Wc||{})[Wc.FullYear=0]="FullYear",Wc[Wc.Month=1]="Month",Wc[Wc.Date=2]="Date",Wc[Wc.Hours=3]="Hours",Wc[Wc.Minutes=4]="Minutes",Wc[Wc.Seconds=5]="Seconds",Wc[Wc.FractionalSeconds=6]="FractionalSeconds",Wc[Wc.Day=7]="Day",Wc))(),Gc=(()=>((Gc=Gc||{})[Gc.DayPeriods=0]="DayPeriods",Gc[Gc.Days=1]="Days",Gc[Gc.Months=2]="Months",Gc[Gc.Eras=3]="Eras",Gc))();function Zc(e,t,n,r){let s=function(e){if(au(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,r=1]=e.split("-").map(e=>+e);return Jc(t,n-1,r)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match($c))return function(e){const t=new Date(0);let n=0,r=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,o,a,l,c),t}(n)}const t=new Date(e);if(!au(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Kc(n,t)||t;let i,o=[];for(;t;){if(i=qc.exec(t),!i){o.push(t);break}{o=o.concat(i.slice(1));const e=o.pop();if(!e)break;t=e}}let a=s.getTimezoneOffset();r&&(a=ou(r,a),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ou(t,r)-r))}(s,r));let l="";return o.forEach(e=>{const t=function(e){if(iu[e])return iu[e];let t;switch(e){case"G":case"GG":case"GGG":t=eu(Gc.Eras,Dc.Abbreviated);break;case"GGGG":t=eu(Gc.Eras,Dc.Wide);break;case"GGGGG":t=eu(Gc.Eras,Dc.Narrow);break;case"y":t=Xc(Wc.FullYear,1,0,!1,!0);break;case"yy":t=Xc(Wc.FullYear,2,0,!0,!0);break;case"yyy":t=Xc(Wc.FullYear,3,0,!1,!0);break;case"yyyy":t=Xc(Wc.FullYear,4,0,!1,!0);break;case"Y":t=su(1);break;case"YY":t=su(2,!0);break;case"YYY":t=su(3);break;case"YYYY":t=su(4);break;case"M":case"L":t=Xc(Wc.Month,1,1);break;case"MM":case"LL":t=Xc(Wc.Month,2,1);break;case"MMM":t=eu(Gc.Months,Dc.Abbreviated);break;case"MMMM":t=eu(Gc.Months,Dc.Wide);break;case"MMMMM":t=eu(Gc.Months,Dc.Narrow);break;case"LLL":t=eu(Gc.Months,Dc.Abbreviated,Pc.Standalone);break;case"LLLL":t=eu(Gc.Months,Dc.Wide,Pc.Standalone);break;case"LLLLL":t=eu(Gc.Months,Dc.Narrow,Pc.Standalone);break;case"w":t=ru(1);break;case"ww":t=ru(2);break;case"W":t=ru(1,!0);break;case"d":t=Xc(Wc.Date,1);break;case"dd":t=Xc(Wc.Date,2);break;case"c":case"cc":t=Xc(Wc.Day,1);break;case"ccc":t=eu(Gc.Days,Dc.Abbreviated,Pc.Standalone);break;case"cccc":t=eu(Gc.Days,Dc.Wide,Pc.Standalone);break;case"ccccc":t=eu(Gc.Days,Dc.Narrow,Pc.Standalone);break;case"cccccc":t=eu(Gc.Days,Dc.Short,Pc.Standalone);break;case"E":case"EE":case"EEE":t=eu(Gc.Days,Dc.Abbreviated);break;case"EEEE":t=eu(Gc.Days,Dc.Wide);break;case"EEEEE":t=eu(Gc.Days,Dc.Narrow);break;case"EEEEEE":t=eu(Gc.Days,Dc.Short);break;case"a":case"aa":case"aaa":t=eu(Gc.DayPeriods,Dc.Abbreviated);break;case"aaaa":t=eu(Gc.DayPeriods,Dc.Wide);break;case"aaaaa":t=eu(Gc.DayPeriods,Dc.Narrow);break;case"b":case"bb":case"bbb":t=eu(Gc.DayPeriods,Dc.Abbreviated,Pc.Standalone,!0);break;case"bbbb":t=eu(Gc.DayPeriods,Dc.Wide,Pc.Standalone,!0);break;case"bbbbb":t=eu(Gc.DayPeriods,Dc.Narrow,Pc.Standalone,!0);break;case"B":case"BB":case"BBB":t=eu(Gc.DayPeriods,Dc.Abbreviated,Pc.Format,!0);break;case"BBBB":t=eu(Gc.DayPeriods,Dc.Wide,Pc.Format,!0);break;case"BBBBB":t=eu(Gc.DayPeriods,Dc.Narrow,Pc.Format,!0);break;case"h":t=Xc(Wc.Hours,1,-12);break;case"hh":t=Xc(Wc.Hours,2,-12);break;case"H":t=Xc(Wc.Hours,1);break;case"HH":t=Xc(Wc.Hours,2);break;case"m":t=Xc(Wc.Minutes,1);break;case"mm":t=Xc(Wc.Minutes,2);break;case"s":t=Xc(Wc.Seconds,1);break;case"ss":t=Xc(Wc.Seconds,2);break;case"S":t=Xc(Wc.FractionalSeconds,1);break;case"SS":t=Xc(Wc.FractionalSeconds,2);break;case"SSS":t=Xc(Wc.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=tu(Bc.Short);break;case"ZZZZZ":t=tu(Bc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=tu(Bc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=tu(Bc.Long);break;default:return null}return iu[e]=t,t}(e);l+=t?t(s,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Jc(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Kc(e,t){const n=function(e){return So(e)[xo.LocaleId]}(e);if(zc[n]=zc[n]||{},zc[n][t])return zc[n][t];let r="";switch(t){case"shortDate":r=Nc(e,Rc.Short);break;case"mediumDate":r=Nc(e,Rc.Medium);break;case"longDate":r=Nc(e,Rc.Long);break;case"fullDate":r=Nc(e,Rc.Full);break;case"shortTime":r=Uc(e,Rc.Short);break;case"mediumTime":r=Uc(e,Rc.Medium);break;case"longTime":r=Uc(e,Rc.Long);break;case"fullTime":r=Uc(e,Rc.Full);break;case"short":const t=Kc(e,"shortTime"),n=Kc(e,"shortDate");r=Yc(Fc(e,Rc.Short),[t,n]);break;case"medium":const s=Kc(e,"mediumTime"),i=Kc(e,"mediumDate");r=Yc(Fc(e,Rc.Medium),[s,i]);break;case"long":const o=Kc(e,"longTime"),a=Kc(e,"longDate");r=Yc(Fc(e,Rc.Long),[o,a]);break;case"full":const l=Kc(e,"fullTime"),c=Kc(e,"fullDate");r=Yc(Fc(e,Rc.Full),[l,c])}return r&&(zc[n][t]=r),r}function Yc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Qc(e,t,n="-",r,s){let i="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,i=n));let o=String(e);for(;o.length0||a>-n)&&(a+=n),e===Wc.Hours)0===a&&-12===n&&(a=12);else if(e===Wc.FractionalSeconds)return l=t,Qc(a,3).substr(0,l);var l;const c=jc(o,Mc.MinusSign);return Qc(a,t,c,r,s)}}function eu(e,t,n=Pc.Format,r=!1){return function(s,i){return function(e,t,n,r,s,i){switch(n){case Gc.Months:return function(e,t,n){const r=So(e),s=Vc([r[xo.MonthsFormat],r[xo.MonthsStandalone]],t);return Vc(s,n)}(t,s,r)[e.getMonth()];case Gc.Days:return function(e,t,n){const r=So(e),s=Vc([r[xo.DaysFormat],r[xo.DaysStandalone]],t);return Vc(s,n)}(t,s,r)[e.getDay()];case Gc.DayPeriods:const o=e.getHours(),a=e.getMinutes();if(i){const e=function(e){const t=So(e);return Lc(t),(t[xo.ExtraData][2]||[]).map(e=>"string"==typeof e?Hc(e):[Hc(e[0]),Hc(e[1])])}(t),n=function(e,t,n){const r=So(e);Lc(r);const s=Vc([r[xo.ExtraData][0],r[xo.ExtraData][1]],t)||[];return Vc(s,n)||[]}(t,s,r),i=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,r=o>=t.hours&&a>=t.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(e){case Bc.Short:return(s>=0?"+":"")+Qc(o,2,i)+Qc(Math.abs(s%60),2,i);case Bc.ShortGMT:return"GMT"+(s>=0?"+":"")+Qc(o,1,i);case Bc.Long:return"GMT"+(s>=0?"+":"")+Qc(o,2,i)+":"+Qc(Math.abs(s%60),2,i);case Bc.Extended:return 0===r?"Z":(s>=0?"+":"")+Qc(o,2,i)+":"+Qc(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}function nu(e){return Jc(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ru(e,t=!1){return function(n,r){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=nu(n),t=function(e){const t=Jc(e,0,1).getDay();return Jc(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();s=1+Math.round(r/6048e5)}return Qc(s,e,jc(r,Mc.MinusSign))}}function su(e,t=!1){return function(n,r){return Qc(nu(n).getFullYear(),e,jc(r,Mc.MinusSign),t)}}const iu={};function ou(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function au(e){return e instanceof Date&&!isNaN(e.valueOf())}const lu=/^(\d+)?\.((\d+)(-(\d+))?)?$/,cu=".",uu="0";function hu(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class du{}let pu=(()=>{class e extends du{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return So(e)[xo.PluralCase]}(t||this.locale)(e)){case Oc.Zero:return"zero";case Oc.One:return"one";case Oc.Two:return"two";case Oc.Few:return"few";case Oc.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(ir(_l))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function fu(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class gu{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mu=(()=>{class e{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,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new gu(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new yu(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new yu(e,s);t.push(i)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ni(Ea),Ni(wa),Ni(la))},e.\u0275dir=We({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class yu{constructor(e,t){this.record=e,this.view=t}}let vu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new bu,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){wu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){wu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(Ni(Ea),Ni(wa))},e.\u0275dir=We({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class bu{constructor(){this.$implicit=null,this.ngIf=null}}function wu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${X(t)}'.`)}function _u(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${X(e)}'`)}let Cu=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",r,s){if(null==t||""===t||t!=t)return null;try{return Zc(t,n,s||this.locale,r)}catch(i){throw _u(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(Ni(_l,16))},e.\u0275pipe=Ge({name:"date",type:e,pure:!0}),e})(),Su=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;r=r||this._locale;try{return function(e,t,n){return function(e,t,n,r,s,i,o=!1){let a="",l=!1;if(isFinite(e)){let c=function(e){let t,n,r,s,i,o=Math.abs(e)+"",a=0;for((n=o.indexOf(cu))>-1&&(o=o.replace(cu,"")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;o.charAt(r)===uu;r++);if(r===(i=o.length))t=[0],n=1;else{for(i--;o.charAt(i)===uu;)i--;for(n-=r,t=[],s=0;r<=i;r++,s++)t[s]=Number(o.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{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;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));let u=t.minInt,h=t.minFrac,d=t.maxFrac;if(i){const e=i.match(lu);if(null===e)throw new Error(`${i} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(u=hu(t)),null!=n&&(h=hu(n)),null!=r?d=hu(r):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 r=e.digits,s=r.length-e.integerLen;const i=Math.min(Math.max(t,s),n);let o=i+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let e=o;e=5)if(o-1<0){for(let t=0;t>o;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;s=c?r.pop():l=!1),t>=10?1:0},0);u&&(r.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);f0?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(jc(n,r)),m.length&&(a+=jc(n,s)+m.join("")),g&&(a+=jc(n,Mc.Exponential)+"+"+g)}else a=jc(n,Mc.Infinity);return a=e<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(e,function(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),s=r[0],i=r[1],o=-1!==s.indexOf(cu)?s.split(cu):[s.substring(0,s.lastIndexOf(uu)+1),s.substring(s.lastIndexOf(uu)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({providers:[{provide:du,useClass:pu}]}),e})(),xu=(()=>{class e{}return e.\u0275prov=ce({token:e,providedIn:"root",factory:()=>new Tu(ir(hc),window)}),e})();class Tu{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e: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 r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=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,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Eu(this.window.history)||Eu(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 Eu(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Au{}class Iu extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new Iu,cc||(cc=e)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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}getBaseHref(e){const t=(Pu=Pu||document.querySelector("base"),Pu?Pu.getAttribute("href"):null);return null==t?null:function(e){Ou=Ou||document.createElement("a"),Ou.setAttribute("href",e);const t=Ou.pathname;return"/"===t.charAt(0)?t:`/${t}`}(t)}resetBaseElement(){Pu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return fu(document.cookie,e)}}let Ou,Pu=null;const Du=new $n("TRANSITION_ID"),Ru=[{provide:dl,useFactory:function(e,t,n){return()=>{n.get(pl).donePromise.then(()=>{const n=uc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Du,hc,vi],multi:!0}];class Mu{static init(){var e;e=new Mu,ql=e}addToWindow(e){Ie.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ie.getAllAngularRootElements=()=>e.getAllRootElements(),Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push(e=>{const t=Ie.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?uc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let Nu=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Uu=new $n("EventManagerPlugins");let Fu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Vu=(()=>{class e extends Lu{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}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(Hu),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Hu))}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Hu(e){uc().remove(e)}const $u={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/"},zu=/%COMP%/g;function qu(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Wu=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Gu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case ke.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Zu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case ke.ShadowDom:return new Ju(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=qu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(ir(Fu),ir(Vu),ir(fl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class Gu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS($u[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,r){if(r){t=r+":"+t;const s=$u[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=$u[n];r?e.removeAttributeNS(r,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,r){r&(xr.DashCase|xr.Important)?e.style.setProperty(t,n,r&xr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&xr.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,Bu(n)):this.eventManager.addEventListener(e,t,Bu(n))}}class Zu extends Gu{constructor(e,t,n,r){super(e),this.component=n;const s=qu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(zu,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(zu,r+"-"+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 Ju extends Gu{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qu(r.id,r.styles,[]);for(let i=0;i{class e extends ju{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Yu=["alt","control","meta","shift"],Qu={"\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"},Xu={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"},eh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let th=(()=>{class e extends ju{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>uc().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(Yu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Xu.hasOwnProperty(t)&&(t=Xu[t]))}return Qu[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Yu.forEach(r=>{r!=n&&(0,eh[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const nh=Jl(oc,"browser",[{provide:vl,useValue:"browser"},{provide:yl,useValue:function(){Iu.makeCurrent(),Mu.init()},multi:!0},{provide:hc,useFactory:function(){return function(e){ht=e}(document),document},deps:[]}]),rh=[[],{provide:ii,useValue:"root"},{provide:_r,useFactory:function(){return new _r},deps:[]},{provide:Uu,useClass:Ku,multi:!0,deps:[hc,Rl,vl]},{provide:Uu,useClass:th,multi:!0,deps:[hc]},[],{provide:Wu,useClass:Wu,deps:[Fu,Vu,fl]},{provide:Bo,useExisting:Wu},{provide:Lu,useExisting:Vu},{provide:Vu,useClass:Vu,deps:[hc]},{provide:Vl,useClass:Vl,deps:[Rl]},{provide:Fu,useClass:Fu,deps:[Uu,Rl]},{provide:Au,useClass:Nu,deps:[]},[]];let sh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:fl,useValue:t.appId},{provide:Du,useExisting:fl},Ru]}}}return e.\u0275fac=function(t){return new(t||e)(ir(e,12))},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({providers:rh,imports:[ku,lc]}),e})();function ih(){return new oh(ir(hc))}let oh=(()=>{class e{constructor(e){this._doc=e,this._dom=uc()}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)}_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTags(t).filter(t=>this._containsAttributes(e,t))[0];if(void 0!==n)return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(e,n),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 ah[e]||e}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({factory:ih,token:e,providedIn:"root"}),e})();const ah={httpEquiv:"http-equiv"};function lh(){return new ch(ir(hc))}let ch=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275fac=function(t){return new(t||e)(ir(hc))},e.\u0275prov=ce({factory:lh,token:e,providedIn:"root"}),e})();function uh(...e){let t=e[e.length-1];return x(t)?(e.pop(),M(e,t)):z(e)}function hh(e,t){return L(e,t,1)}function dh(e,t){return function(n){return n.lift(new ph(e,t))}}"undefined"!=typeof window&&window;class ph{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new fh(e,this.predicate,this.thisArg))}}class fh 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 gh{}class mh{}class yh{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),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}: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 yh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>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 yh;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof yh?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 r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.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 vh{encodeKey(e){return bh(e)}encodeValue(e){return bh(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function bh(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,"/")}function wh(e){return`${e}`}class _h{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new vh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),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 r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,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 _h({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(wh(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(wh(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)}}class Ch{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Sh(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function kh(e){return"undefined"!=typeof Blob&&e instanceof Blob}function xh(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Th{constructor(e,t,n,r){let s;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)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new yh),this.context||(this.context=new Ch),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new Th(n,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var Eh=(()=>((Eh=Eh||{})[Eh.Sent=0]="Sent",Eh[Eh.UploadProgress=1]="UploadProgress",Eh[Eh.ResponseHeader=2]="ResponseHeader",Eh[Eh.DownloadProgress=3]="DownloadProgress",Eh[Eh.Response=4]="Response",Eh[Eh.User=5]="User",Eh))();class Ah{constructor(e,t=200,n="OK"){this.headers=e.headers||new yh,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 Ih extends Ah{constructor(e={}){super(e),this.type=Eh.ResponseHeader}clone(e={}){return new Ih({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 Oh extends Ah{constructor(e={}){super(e),this.type=Eh.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Oh({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 Ph extends Ah{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Dh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Rh=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Th)r=e;else{let s,i;s=n.headers instanceof yh?n.headers:new yh(n.headers),n.params&&(i=n.params instanceof _h?n.params:new _h({fromObject:n.params})),r=new Th(e,t,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=uh(r).pipe(hh(e=>this.handler.handle(e)));if(e instanceof Th||"events"===n.observe)return s;const i=s.pipe(dh(e=>e instanceof Oh));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(T(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(T(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(T(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe(T(e=>e.body))}case"response":return i;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 _h).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,Dh(n,t))}post(e,t,n={}){return this.request("POST",e,Dh(n,t))}put(e,t,n={}){return this.request("PUT",e,Dh(n,t))}}return e.\u0275fac=function(t){return new(t||e)(ir(gh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class Mh{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Nh=new $n("HTTP_INTERCEPTORS");let Uh=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Fh=/^\)\]\}',?\n/;let jh=(()=>{class e{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.forEach((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 r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new yh(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 s=new Ih({headers:i,status:t,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Fh,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new Oh({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new Ph({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new Ph({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const c=r=>{l||(t.next(i()),l=!0);let s={type:Eh.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},u=e=>{let n={type:Eh.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!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:Eh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(ir(Au))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Lh=new $n("XSRF_COOKIE_NAME"),Vh=new $n("XSRF_HEADER_NAME");class Hh{}let $h=(()=>{class e{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=fu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(ir(hc),ir(vl),ir(Lh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),zh=(()=>{class e{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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(ir(Hh),ir(Vh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),qh=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(Nh,[]);this.chain=e.reduceRight((e,t)=>new Mh(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(ir(mh),ir(vi))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Bh=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:zh,useClass:Uh}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Lh,useValue:t.cookieName}:[],t.headerName?{provide:Vh,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({providers:[zh,{provide:Nh,useExisting:zh,multi:!0},{provide:Hh,useClass:$h},{provide:Lh,useValue:"XSRF-TOKEN"},{provide:Vh,useValue:"X-XSRF-TOKEN"}]}),e})(),Wh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({providers:[Rh,{provide:gh,useClass:qh},jh,{provide:mh,useExisting:jh}],imports:[[Bh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Gh extends S{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 Zh extends f{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Jh 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 Kh(e,t,n,r,s=new Jh(e,n,r)){if(!s.closed)return t instanceof v?t.subscribe(s):R(t)(s)}const Yh={};class Qh{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Xh(e,this.resultSelector))}}class Xh extends Zh{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Yh),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{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 td(...e){return $(1)(uh(...e))}const nd=new v(e=>e.complete());function rd(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):nd}function sd(e){return new v(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?N(n):rd()).subscribe(t)})}function id(e,t){return"function"==typeof t?n=>n.pipe(id((n,r)=>N(e(n,r)).pipe(T((e,s)=>t(n,e,r,s))))):t=>t.lift(new od(e))}class od{constructor(e){this.project=e}call(e,t){return t.subscribe(new ad(e,this.project))}}class ad extends F{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(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new U(this),r=this.destination;r.add(n),this.innerSubscription=j(e,n),this.innerSubscription!==n&&r.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 ld=(()=>{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 cd(e){return t=>0===e?rd():t.lift(new ud(e))}class ud{constructor(e){if(this.total=e,this.total<0)throw new ld}call(e,t){return t.subscribe(new hd(e,this.total))}}class hd 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 dd(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new pd(e,t,n))}}class pd{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new fd(e,this.accumulator,this.seed,this.hasSeed))}}class fd extends f{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function gd(e){return function(t){const n=new md(e),r=t.lift(n);return n.caught=r}}class md{constructor(e){this.selector=e}call(e,t){return t.subscribe(new yd(e,this.selector,this.caught))}}class yd extends F{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 r=new U(this);this.add(r);const s=j(n,r);s!==r&&this.add(s)}}}function vd(e){return function(t){return 0===e?rd():t.lift(new bd(e))}}class bd{constructor(e){if(this.total=e,this.total<0)throw new ld}call(e,t){return t.subscribe(new wd(e,this.total))}}class wd 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,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.lift(new Cd(e))}class Cd{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Sd(e,this.errorFactory))}}class Sd 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 kd(){return new ed}function xd(e=null){return t=>t.lift(new Td(e))}class Td{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Ed(e,this.defaultValue))}}class Ed 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 Ad(e,t){const n=arguments.length>=2;return r=>r.pipe(e?dh((t,n)=>e(t,n,r)):y,cd(1),n?xd(t):_d(()=>new ed))}function Id(){}function Od(e,t,n){return function(r){return r.lift(new Pd(e,t,n))}}class Pd{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Dd(e,this.nextOrObserver,this.error,this.complete))}}class Dd extends f{constructor(e,t,n,s){super(e),this._tapNext=Id,this._tapError=Id,this._tapComplete=Id,this._tapError=n||Id,this._tapComplete=s||Id,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Id,this._tapError=t.error||Id,this._tapComplete=t.complete||Id)}_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 Rd{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Md(e,this.callback))}}class Md extends f{constructor(e,t){super(e),this.add(new h(t))}}class Nd{constructor(e,t){this.id=e,this.url=t}}class Ud extends Nd{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fd extends Nd{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jd extends Nd{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ld extends Nd{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vd extends Nd{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hd extends Nd{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $d extends Nd{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class zd extends Nd{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qd extends Nd{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bd{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wd{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Gd{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zd{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jd{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kd{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yd{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Qd="primary";class Xd{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 ep(e){return new Xd(e)}function tp(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function np(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.lengthr[t]===e)}return e===t}function ip(e){return Array.prototype.concat.apply([],e)}function op(e){return e.length>0?e[e.length-1]:null}function ap(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function lp(e){return zi(e)?e:$i(e)?N(Promise.resolve(e)):uh(e)}const cp={exact:function e(t,n,r){if(!vp(t.segments,n.segments))return!1;if(!fp(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!t.children[s])return!1;if(!e(t.children[s],n.children[s],r))return!1}return!0},subset:dp},up={exact:function(e,t){return rp(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>sp(e[n],t[n]))},ignored:()=>!0};function hp(e,t,n){return cp[n.paths](e.root,t.root,n.matrixParams)&&up[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function dp(e,t,n){return pp(e,t,t.segments,n)}function pp(e,t,n,r){if(e.segments.length>n.length){const s=e.segments.slice(0,n.length);return!!vp(s,n)&&!t.hasChildren()&&!!fp(s,n,r)}if(e.segments.length===n.length){if(!vp(e.segments,n))return!1;if(!fp(e.segments,n,r))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!dp(e.children[n],t.children[n],r))return!1}return!0}{const s=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!vp(e.segments,s)&&!!fp(e.segments,s,r)&&!!e.children.primary&&pp(e.children.primary,t,i,r)}}function fp(e,t,n){return t.every((t,r)=>up[n](e[r].parameters,t.parameters))}class gp{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ep(this.queryParams)),this._queryParamMap}toString(){return _p.serialize(this)}}class mp{constructor(e,t){this.segments=e,this.children=t,this.parent=null,ap(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cp(this)}}class yp{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ep(this.parameters)),this._parameterMap}toString(){return Ip(this)}}function vp(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class bp{}class wp{parse(e){const t=new Mp(e);return new gp(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${Sp(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${xp(t)}=${xp(e)}`).join("&"):`${xp(t)}=${xp(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const _p=new wp;function Cp(e){return e.segments.map(e=>Ip(e)).join("/")}function Sp(e,t){if(!e.hasChildren())return Cp(e);if(t){const t=e.children.primary?Sp(e.children.primary,!1):"",n=[];return ap(e.children,(e,t)=>{t!==Qd&&n.push(`${t}:${Sp(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return ap(e.children,(e,r)=>{r===Qd&&(n=n.concat(t(e,r)))}),ap(e.children,(e,r)=>{r!==Qd&&(n=n.concat(t(e,r)))}),n}(e,(t,n)=>n===Qd?[Sp(e.children.primary,!1)]:[`${n}:${Sp(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Cp(e)}/${t[0]}`:`${Cp(e)}/(${t.join("//")})`}}function kp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xp(e){return kp(e).replace(/%3B/gi,";")}function Tp(e){return kp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ep(e){return decodeURIComponent(e)}function Ap(e){return Ep(e.replace(/\+/g,"%20"))}function Ip(e){return`${Tp(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Tp(e)}=${Tp(t[e])}`).join("")}`;var t}const Op=/^[^\/()?;=#]+/;function Pp(e){const t=e.match(Op);return t?t[0]:""}const Dp=/^[^=?&#]+/,Rp=/^[^?&#]+/;class Mp{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mp([],{}):new mp([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){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 mp(e,t)),n}parseSegment(){const e=Pp(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new yp(Ep(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Pp(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Pp(this.remaining);e&&(n=e,this.capture(n))}e[Ep(t)]=Ep(n)}parseQueryParam(e){const t=function(e){const t=e.match(Dp);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(Rp);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=Ap(t),s=Ap(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Pp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Qd);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i.primary:new mp([],i),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 Np{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=Up(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Up(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Fp(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Fp(e,this._root).map(e=>e.value)}}function Up(e,t){if(e===t.value)return t;for(const n of t.children){const t=Up(e,n);if(t)return t}return null}function Fp(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Fp(e,n);if(r.length)return r.unshift(t),r}return[]}class jp{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Lp(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Vp extends Np{constructor(e,t){super(e),this.snapshot=t,Wp(this,e)}toString(){return this.snapshot.toString()}}function Hp(e,t){const n=function(e,t){const n=new qp([],{},{},"",{},Qd,t,null,e.root,-1,{});return new Bp("",new jp(n,[]))}(e,t),r=new Gh([new yp("",{})]),s=new Gh({}),i=new Gh({}),o=new Gh({}),a=new Gh(""),l=new $p(r,s,o,a,i,Qd,t,n.root);return l.snapshot=n.root,new Vp(new jp(l,[]),n)}class $p{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,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(T(e=>ep(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(e=>ep(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function zp(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({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(r))}class qp{constructor(e,t,n,r,s,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,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=ep(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ep(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bp extends Np{constructor(e,t){super(t),this.url=e,Wp(this,t)}toString(){return Gp(this._root)}}function Wp(e,t){t.value._routerState=e,t.children.forEach(t=>Wp(e,t))}function Gp(e){const t=e.children.length>0?` { ${e.children.map(Gp).join(", ")} } `:"";return`${e.value}${t}`}function Zp(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,rp(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),rp(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nrp(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Jp(e.parent,t.parent))}function Kp(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const s=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return Kp(e,t,r);return Kp(e,t)})}(e,t,n);return new jp(r,s)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return Yp(t,e),e}}const n=new $p(new Gh((r=t.value).url),new Gh(r.params),new Gh(r.queryParams),new Gh(r.fragment),new Gh(r.data),r.outlet,r.component,r),s=t.children.map(t=>Kp(e,t));return new jp(n,s)}var r}function Yp(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{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new gp(n.root===e?t:tf(n.root,e,t),i,s)}function tf(e,t,n){const r={};return ap(e.children,(e,s)=>{r[s]=e===t?n:tf(e,t,n)}),new mp(e.segments,r)}class nf{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Qp(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(Xp);if(r&&r!==op(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class rf{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function sf(e,t,n){if(e||(e=new mp([],{})),0===e.segments.length&&e.hasChildren())return of(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const t=e.segments[s],o=n[r];if(Xp(o))break;const a=`${o}`,l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!uf(a,l,t))return i;r+=2}else{if(!uf(a,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=sf(e.children[r],t,n))}),ap(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new mp(e.segments,s)}}function af(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=af(new mp([],{}),0,e))}),t}function cf(e){const t={};return ap(e,(e,n)=>t[n]=`${e}`),t}function uf(e,t,n){return e==n.path&&rp(t,n.parameters)}class hf{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Zp(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Lp(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),ap(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,s=Lp(e);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const r=Lp(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new Kd(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Zd(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(Zp(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),df(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}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function df(e){Zp(e.value),e.children.forEach(df)}class pf{constructor(e,t){this.routes=e,this.module=t}}function ff(e){return"function"==typeof e}function gf(e){return e instanceof gp}const mf=Symbol("INITIAL_VALUE");function yf(){return id(e=>function(...e){let t,n;return x(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]),z(e,n).lift(new Qh(t))}(e.map(e=>e.pipe(cd(1),function(...e){const t=e[e.length-1];return x(t)?(e.pop(),n=>td(e,n,t)):t=>td(e,t)}(mf)))).pipe(dd((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==mf)return e;if(r===mf&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||gf(r))return r}return e},e)},mf),dh(e=>e!==mf),T(e=>gf(e)?e:!0===e),cd(1)))}let vf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Vi(0,"router-outlet")},directives:function(){return[mg]},encapsulation:2}),e})();function bf(e,t=""){for(let n=0;nSf(e)===t);return n.push(...e.filter(e=>Sf(e)!==t)),n}const xf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Tf(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},xf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||np)(n,e,t);if(!s)return Object.assign({},xf);const i={};ap(s.posParams,(e,t)=>{i[t]=e.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Ef(e,t,n,r,s="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Af(e,t,n)&&Sf(n)!==Qd)}(e,n,r)){const s=new mp(t,function(e,t,n,r){const s={};s.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Sf(i)!==Qd){const n=new mp([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Sf(i)]=n}return s}(e,t,r,new mp(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Af(e,t,n))}(e,n,r)){const i=new mp(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(Af(e,n,a)&&!s[Sf(a)]){const n=new mp([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Sf(a)]=n}return Object.assign(Object.assign({},s),o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new mp(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Af(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function If(e,t,n,r){return!!(Sf(e)===r||r!==Qd&&Af(t,n,e))&&("**"===e.path||Tf(t,e,n).matched)}function Of(e,t,n){return 0===t.length&&!e.children[n]}class Pf{constructor(e){this.segmentGroup=e||null}}class Df{constructor(e){this.urlTree=e}}function Rf(e){return new v(t=>t.error(new Pf(e)))}function Mf(e){return new v(t=>t.error(new Df(e)))}function Nf(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Uf{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(ka)}apply(){const e=Ef(this.urlTree.root,[],[],this.config).segmentGroup,t=new mp(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,Qd).pipe(T(e=>this.createUrlTree(Ff(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(gd(e=>{if(e instanceof Df)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Pf)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Qd).pipe(T(t=>this.createUrlTree(Ff(t),e.queryParams,e.fragment))).pipe(gd(e=>{if(e instanceof Pf)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new mp([],{[Qd]:e}):e;return new gp(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(T(e=>new mp([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return N(r).pipe(hh(r=>{const s=n.children[r],i=kf(t,r);return this.expandSegmentGroup(e,i,s,r).pipe(T(e=>({segment:e,outlet:r})))}),dd((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?dh((t,n)=>e(t,n,r)):y,vd(1),n?xd(t):_d(()=>new ed))}())}expandSegment(e,t,n,r,s,i){return N(n).pipe(hh(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(gd(e=>{if(e instanceof Pf)return uh(null);throw e}))),Ad(e=>!!e),gd((e,n)=>{if(e instanceof ed||"EmptyError"===e.name){if(Of(t,r,s))return uh(new mp([],{}));throw new Pf(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return If(r,t,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):Rf(t):Rf(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mf(s):this.lineralizeSegments(n,s).pipe(L(n=>{const s=new mp(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Tf(t,r,s);if(!o)return Rf(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Mf(u):this.lineralizeSegments(r,u).pipe(L(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?uh(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(T(e=>(n._loadedConfig=e,new mp(r,{})))):uh(new mp(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=Tf(t,n,r);if(!i)return Rf(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(L(e=>{const r=e.module,i=e.routes,{segmentGroup:a,slicedSegments:c}=Ef(t,o,l,i),u=new mp(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,i,u).pipe(T(e=>new mp(o,e)));if(0===i.length&&0===c.length)return uh(new mp(o,{}));const h=Sf(n)===s;return this.expandSegment(r,u,i,c,h?Qd:s,!0).pipe(T(e=>new mp(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?uh(new pf(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?uh(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(L(n=>n?this.configLoader.load(e.injector,t).pipe(T(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(tp(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):uh(new pf([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;return r&&0!==r.length?uh(r.map(r=>{const s=e.get(r);let i;if(function(e){return e&&ff(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!ff(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return lp(i)})).pipe(yf(),Od(e=>{if(!gf(e))return;const t=tp(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),T(e=>!0===e)):uh(!0)}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return uh(n);if(r.numberOfChildren>1||!r.children.primary)return Nf(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new gp(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return ap(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return ap(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new mp(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Ff(e){const t={};for(const n of Object.keys(e.children)){const r=Ff(e.children[n]);(r.segments.length>0||r.hasChildren())&&(t[n]=r)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new mp(e.segments.concat(t.segments),t.children)}return e}(new mp(e.segments,t))}class jf{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Lf{constructor(e,t){this.component=e,this.route=t}}function Vf(e,t,n){const r=e._root;return $f(r,t?t._root:null,n,[r.value])}function Hf(e,t,n){const r=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(r?r.module.injector:n).get(e)}function $f(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Lp(t);return e.children.forEach(e=>{!function(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!vp(e.url,t.url);case"pathParamsOrQueryParamsChange":return!vp(e.url,t.url)||!rp(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jp(e,t)||!rp(e.queryParams,t.queryParams);case"paramsChange":default:return!Jp(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new jf(r)):(i.data=o.data,i._resolvedData=o._resolvedData),$f(e,t,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Lf(a.outlet.component,o))}else o&&zf(t,a,s),s.canActivateChecks.push(new jf(r)),$f(e,null,i.component?a?a.children:null:n,r,s)}(e,i[e.value.outlet],n,r.concat([e.value]),s),delete i[e.value.outlet]}),ap(i,(e,t)=>zf(e,n.getContext(t),s)),s}function zf(e,t,n){const r=Lp(e),s=e.value;ap(r,(e,r)=>{zf(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Lf(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class qf{}function Bf(e){return new v(t=>t.error(e))}class Wf{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const e=Ef(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Qd);if(null===t)return null;const n=new qp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Qd,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new jp(n,t),s=new Bp(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,n=zp(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 s of Object.keys(t.children)){const r=t.children[s],i=kf(e,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=Zf(n);return r.sort((e,t)=>e.value.outlet===Qd?-1:t.value.outlet===Qd?1:e.value.outlet.localeCompare(t.value.outlet)),r}processSegment(e,t,n,r){for(const s of e){const e=this.processSegmentAgainstRoute(s,t,n,r);if(null!==e)return e}return Of(t,n,r)?[]:null}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo||!If(e,t,n,r))return null;let s,i=[],o=[];if("**"===e.path){const r=n.length>0?op(n).parameters:{};s=new qp(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yf(e),Sf(e),e.component,e,Jf(t),Kf(t)+n.length,Qf(e))}else{const r=Tf(t,e,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new qp(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yf(e),Sf(e),e.component,e,Jf(t),Kf(t)+i.length,Qf(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Ef(t,i,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 jp(s,e)]}if(0===a.length&&0===c.length)return[new jp(s,[])];const u=Sf(e)===r,h=this.processSegment(a,l,c,u?Qd:r);return null===h?null:[new jp(s,h)]}}function Gf(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Zf(e){const t=[],n=new Set;for(const r of e){if(!Gf(r)){t.push(r);continue}const e=t.find(e=>r.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const r of n){const e=Zf(r.children);t.push(new jp(r.value,e))}return t.filter(e=>!n.has(e))}function Jf(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Kf(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 Yf(e){return e.data||{}}function Qf(e){return e.resolve||{}}function Xf(e){return id(t=>{const n=e(t);return n?N(n).pipe(T(()=>t)):uh(t)})}class eg 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 tg=new $n("ROUTES");class ng{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new pf(ip(r.injector.get(tg,void 0,ve.Self|ve.Optional)).map(Cf),r)}),gd(e=>{throw t._loader$=void 0,e}));return t._loader$=new G(n,()=>new S).pipe(q()),t._loader$}loadModuleFactory(e){return"string"==typeof e?N(this.loader.load(e)):lp(e()).pipe(L(e=>e instanceof xa?uh(e):N(this.compiler.compileModuleAsync(e))))}}class rg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sg,this.attachRef=null}}class sg{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 rg,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class ig{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function og(e){throw e}function ag(e,t,n){return t.parse("/")}function lg(e,t){return uh(null)}const cg={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ug={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let hg=(()=>{class e{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=og,this.malformedUriErrorHandler=ag,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:lg,afterPreactivation:lg},this.urlHandlingStrategy=new ig,this.routeReuseStrategy=new eg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ka),this.console=s.get(wl);const l=s.get(Rl);this.isNgZoneEnabled=l instanceof Rl&&Rl.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new gp(new mp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ng(i,o,e=>this.triggerEvent(new Bd(e)),e=>this.triggerEvent(new Wd(e))),this.routerState=Hp(this.currentUrlTree,this.rootComponentType),this.transitions=new Gh({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe(dh(e=>0!==e.id),T(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),id(e=>{let n=!1,r=!1;return uh(e).pipe(Od(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}}),id(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return uh(e).pipe(id(e=>{const n=this.transitions.getValue();return t.next(new Ud(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?nd:Promise.resolve(e)}),function(e,t,n,r){return id(s=>function(e,t,n,r,s){return new Uf(e,t,n,r,s).apply()}(e,t,n,s.extractedUrl,r).pipe(T(e=>Object.assign(Object.assign({},s),{urlAfterRedirects:e}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Od(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return L(i=>function(e,t,n,r,s="emptyOnly",i="legacy"){try{const o=new Wf(e,t,n,r,s,i).recognize();return null===o?Bf(new qf):uh(o)}catch(o){return Bf(o)}}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(T(e=>Object.assign(Object.assign({},i),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Od(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,e),this.browserUrlTree=e.urlAfterRedirects);const n=new Vd(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:r,source:s,restoredState:i,extras:o}=e,a=new Ud(n,this.serializeUrl(r),s,i);t.next(a);const l=Hp(r,this.rootComponentType).snapshot;return uh(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),nd}),Xf(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Od(e=>{const t=new Hd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),T(e=>Object.assign(Object.assign({},e),{guards:Vf(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return L(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?uh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return N(e).pipe(L(e=>function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?uh(i.map(i=>{const o=Hf(i,t,s);let a;if(function(e){return e&&ff(e.canDeactivate)}(o))a=lp(o.canDeactivate(e,t,n,r));else{if(!ff(o))throw new Error("Invalid CanDeactivate guard");a=lp(o(e,t,n,r))}return a.pipe(Ad())})).pipe(yf()):uh(!0)}(e.component,e.route,n,t,r)),Ad(e=>!0!==e,!0))}(o,r,s,e).pipe(L(n=>n&&"boolean"==typeof n?function(e,t,n,r){return N(t).pipe(hh(t=>td(function(e,t){return null!==e&&t&&t(new Gd(e)),uh(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new Jd(e)),uh(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],s=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=>sd(()=>uh(t.guards.map(s=>{const i=Hf(s,t.node,n);let o;if(function(e){return e&&ff(e.canActivateChild)}(i))o=lp(i.canActivateChild(r,e));else{if(!ff(i))throw new Error("Invalid CanActivateChild guard");o=lp(i(r,e))}return o.pipe(Ad())})).pipe(yf())));return uh(s).pipe(yf())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?uh(r.map(r=>sd(()=>{const s=Hf(r,t,n);let i;if(function(e){return e&&ff(e.canActivate)}(s))i=lp(s.canActivate(t,e));else{if(!ff(s))throw new Error("Invalid CanActivate guard");i=lp(s(t,e))}return i.pipe(Ad())}))).pipe(yf()):uh(!0)}(e,t.route,n))),Ad(e=>!0!==e,!0))}(r,i,e,t):uh(n)),T(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Od(e=>{if(gf(e.guardsResult)){const t=tp(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new $d(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),dh(e=>!!e.guardsResult||(this.cancelNavigationTransitionRestoreHistory(e,""),!1)),Xf(e=>{if(e.guards.canActivateChecks.length)return uh(e).pipe(Od(e=>{const t=new zd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),id(e=>{let t=!1;return uh(e).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,L(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return uh(e);let i=0;return N(s).pipe(hh(e=>function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return uh({});const i={};return N(s).pipe(L(s=>function(e,t,n,r){const s=Hf(e,t,r);return lp(s.resolve?s.resolve(t,n):s(t,n))}(e[s],t,n,r).pipe(Od(e=>{i[s]=e}))),vd(1),L(()=>Object.keys(i).length===s.length?uh(i):nd))}(e._resolve,e,t,r).pipe(T(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),zp(e,n).resolve),null)))}(e.route,t,n,r)),Od(()=>i++),vd(1),L(t=>i===s.length?uh(e):nd))})),Od({next:()=>t=!0,complete:()=>{t||this.cancelNavigationTransitionRestoreHistory(e,"At least one route resolver didn't emit any value.")}}));var n,r}),Od(e=>{const t=new qd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Xf(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),T(e=>{const t=function(e,t,n){const r=Kp(e,t._root,n?n._root:void 0);return new Vp(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Od(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),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),T(e=>(new hf(o,e.targetRouterState,e.currentRouterState,a).activate(i),e))),Od({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){const t=`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?this.cancelNavigationTransitionRestoreHistory(e,t):this.cancelNavigationTransition(e,t)}this.currentNavigation=null},e=>e.lift(new Rd(s))),gd(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=gf(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new jd(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Ld(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var s;return nd}));var s,i,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:r}=t,s={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(s.state=e)}this.scheduleNavigation(r,e,n,s)},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){bf(e),this.config=e.map(Cf),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:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return ef(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nf(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return ap(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new nf(n,t,r)}(n);if(i.toRoot())return ef(t.root,new mp([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new rf(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new rf(e,e===t.root,0)}const r=Qp(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new rf(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?of(o.segmentGroup,o.index,i.commands):sf(o.segmentGroup,o.index,i.commands);return ef(o.segmentGroup,a,t,r,s)}(a,this.currentUrlTree,e,c,null!=l?l:null)}navigateByUrl(e,t={skipLocationChange:!1}){const n=gf(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Fd(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,r,s){var i,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==t&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===e.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((e,t)=>{u=e,h=t});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(e=>Promise.reject(e))}setBrowserUrl(e,t){const n=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}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),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransitionRestoreHistory(e,t){"computed"===this.canceledNavigationResolution?"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-e.targetPageId):this.resetUrlToCurrentUrlTree(),this.cancelNavigationTransition(e,t)}cancelNavigationTransition(e,t){const n=new jd(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}return e.\u0275fac=function(t){return new(t||e)(ir(qn),ir(bp),ir(sg),ir(Tc),ir(vi),ir(tc),ir(Ol),ir(void 0))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),dg=(()=>{class e{constructor(e,t,n,r,s){this.router=e,this.route=t,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(s.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:fg(this.skipLocationChange),replaceUrl:fg(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:fg(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Ni(hg),Ni($p),Ln("tabindex"),Ni(Wo),Ni(zo))},e.\u0275dir=We({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&qi("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:[ot]}),e})(),pg=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=e.events.subscribe(e=>{e instanceof Fd&&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,r,s){if(0!==e||t||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:fg(this.skipLocationChange),replaceUrl:fg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!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:fg(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(Ni(hg),Ni($p),Ni(_c))},e.\u0275dir=We({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&qi("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(bo("href",t.href,mr),Ri("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:[ot]}),e})();function fg(e){return""===e||!!e}let gg=(()=>{class e{constructor(e,t,n,r,s,i){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof Fd&&this.update()})}ngAfterContentInit(){uh(this.links.changes,this.linksWithHrefs.changes,uh(null)).pipe($()).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=N(t).pipe($()).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.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){const t="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>e.isActive(n.urlTree,t)}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)}}return e.\u0275fac=function(t){return new(t||e)(Ni(hg),Ni(zo),Ni(Wo),Ni(ga),Ni(dg,8),Ni(pg,8))},e.\u0275dir=We({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&(ll(n,dg,5),ll(n,pg,5)),2&e){let e;al(e=cl())&&(t.links=e),al(e=cl())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ot]}),e})(),mg=(()=>{class e{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ja,this.deactivateEvents=new Ja,this.name=r||Qd,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=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new yg(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(Ni(sg),Ni(Ea),Ni(Lo),Ln("name"),Ni(ga))},e.\u0275dir=We({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class yg{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===$p?this.route:e===sg?this.childContexts:this.parent.get(e,t)}}class vg{}class bg{preload(e,t){return uh(null)}}let wg=(()=>{class e{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new ng(t,n,t=>e.triggerEvent(new Bd(t)),t=>e.triggerEvent(new Wd(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(dh(e=>e instanceof Fd),hh(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ka);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return N(n).pipe($(),T(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?uh(t._loadedConfig):this.loader.load(e.injector,t)).pipe(L(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(ir(hg),ir(tc),ir(Ol),ir(vi),ir(vg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),_g=(()=>{class e{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.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ud?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fd&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Yd&&(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 Yd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(ir(hg),ir(xu),ir(void 0))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Cg=new $n("ROUTER_CONFIGURATION"),Sg=new $n("ROUTER_FORROOT_GUARD"),kg=[Tc,{provide:bp,useClass:wp},{provide:hg,useFactory:function(e,t,n,r,s,i,o,a={},l,c){const u=new hg(null,e,t,n,r,s,i,ip(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(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)}(a,u),a.enableTracing&&u.events.subscribe(e=>{var t,n;null===(t=console.group)||void 0===t||t.call(console,`Router Event: ${e.constructor.name}`),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[bp,sg,Tc,vi,tc,Ol,tg,Cg,[class{},new cr],[class{},new cr]]},sg,{provide:$p,useFactory:function(e){return e.routerState.root},deps:[hg]},{provide:tc,useClass:sc},wg,bg,class{preload(e,t){return t().pipe(gd(()=>uh(null)))}},{provide:Cg,useValue:{enableTracing:!1}}];function xg(){return new Zl("Router",hg)}let Tg=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[kg,Og(t),{provide:Sg,useFactory:Ig,deps:[[hg,new cr,new ur]]},{provide:Cg,useValue:n||{}},{provide:_c,useFactory:Ag,deps:[dc,[new lr(Sc),new cr],Cg]},{provide:_g,useFactory:Eg,deps:[hg,xu,Cg]},{provide:vg,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:bg},{provide:Zl,multi:!0,useFactory:xg},[Pg,{provide:dl,multi:!0,useFactory:Dg,deps:[Pg]},{provide:Mg,useFactory:Rg,deps:[Pg]},{provide:bl,multi:!0,useExisting:Mg}]]}}static forChild(t){return{ngModule:e,providers:[Og(t)]}}}return e.\u0275fac=function(t){return new(t||e)(ir(Sg,8),ir(hg,8))},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({}),e})();function Eg(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new _g(e,t,n)}function Ag(e,t,n={}){return n.useHash?new xc(e,t):new kc(e,t)}function Ig(e){return"guarded"}function Og(e){return[{provide:zn,multi:!0,useValue:e},{provide:tg,multi:!0,useValue:e}]}let Pg=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(fc,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let e=null;const t=new Promise(t=>e=t),n=this.injector.get(hg),r=this.injector.get(Cg);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?uh(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(Cg),n=this.injector.get(wg),r=this.injector.get(_g),s=this.injector.get(hg),i=this.injector.get(Xl);e===i.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(ir(vi))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Dg(e){return e.appInitializer.bind(e)}function Rg(e){return e.bootstrapListener.bind(e)}const Mg=new $n("Router Initializer");class Ng{constructor(e){this.userName="",e&&e.userName&&e.userName.S&&(this.userName=e.userName.S)}}class Ug{constructor(e){e&&(e.hasOwnProperty("cashCredit")&&e.cashCredit.hasOwnProperty("N")&&(this.cashCredit=+e.cashCredit.N),e.hasOwnProperty("freeCredit")&&e.freeCredit.hasOwnProperty("N")&&(this.freeCredit=+e.freeCredit.N),e.hasOwnProperty("reserveCredit")&&e.reserveCredit.hasOwnProperty("N")&&(this.reserveCredit=+e.reserveCredit.N))}get availableCredit(){return this.cashCredit+this.freeCredit+this.reserveCredit}}class Fg{constructor(e){e&&(e.Currency&&e.Currency.S&&(this.Currency=e.Currency.S),e.Price&&e.Price.N&&(this.Price=e.Price.N))}}class jg{constructor(){}static createFromAPI(e){let t=new jg;return e&&(e.Profile&&(t.profile=new Ng(e.Profile)),e.RenderCredit&&(t.renderCredit=new Ug(e.RenderCredit)),e.RenderJobs&&(t.renderJobs=e.RenderJobs),e.CreditPrice&&(t.newCreditPrice=new Fg(e.CreditPrice))),t}}let Lg=(()=>{class e{constructor(e){this.http=e}getAccountObservable(e){let t={cacheKiller:btoa(JSON.stringify(Math.random()))};e.getRenderJobs&&(t.getRenderJobs=e.getRenderJobs),e.getCreditBalances&&(t.getCreditBalances=e.getCreditBalances),e.getCreditPrice&&(t.getCreditPrice=e.getCreditPrice);let n=JSON.stringify(t);const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>jg.createFromAPI(e)))}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Vg extends h{constructor(e,t){super()}schedule(e,t=0){return this}}let Hg=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class $g extends Hg{constructor(e,t=Hg.now){super(e,()=>$g.delegate&&$g.delegate!==this?$g.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return $g.delegate&&$g.delegate!==this?$g.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 zg=new $g(class extends Vg{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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,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,r=!1;try{this.work(e)}catch(s){r=!0,n=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}});function qg(e){return!l(e)&&e-parseFloat(e)+1>=0}function Bg(e=0,t,n){let r=-1;return qg(t)?r=Number(t)<1?1:Number(t):x(t)&&(n=t),x(n)||(n=zg),new v(t=>{const s=qg(e)?e:+e-n.now();return n.schedule(Wg,s,{index:0,period:r,subscriber:t})})}function Wg(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}class Gg{constructor(){this.authCode=null,this.accessToken=null,this.idToken=null,this.refreshToken=null,this.tokenExpiryDate=null}}let Zg=(()=>{class e{constructor(e){this.http=e}getTokenObservable(e){let t="grant_type="+e.grant_type+"&client_id="+e.client_id+"&redirect_uri="+e.redirect_uri;e.code&&(t+="&code="+e.code),e.scope&&(t+="&scope="+e.scope),e.refresh_token&&(t+="&refresh_token="+e.refresh_token);const n=new yh({"Content-Type":"application/x-www-form-urlencoded"});return this.http.post(e.endPointUrl,t,{headers:n,observe:"body"})}getLogoutObservable(e){console.log("getToken: params = "+JSON.stringify(e));let t=(new _h).append("client_id",e.client_id);t.append("logout_uri",e.logout_uri);const n=new yh({"Access-Control-Allow-Origin":""});return this.http.get(e.endPointUrl,{headers:n,params:t,observe:"body"})}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Jg=(()=>{class e{constructor(e,t){this.http=e,this.router=t,this.url="https://to-render-it.auth.eu-west-2.amazoncognito.com",this.redirectUri="https://www.to-render-it.com/userauth",this.postLogoutUri="https://www.to-render-it.com",this.clientId="5662c640j1hap6a37bksoms6m7",this.state="",this.defaultTokenRefreshInterval=36e5,this._authData=new Gg,this._errorMessage=null,this._loggedIn=!1,this.refreshTimerSubscription=null}ngOnDestroy(){this.refreshTimerSubscription&&this.refreshTimerSubscription.unsubscribe()}checkAuthorisation(e){if(this._loggedIn||this.getLocalStorage(),this._loggedIn&&this._authData.tokenExpiryDate&&this._authData.tokenExpiryDate>this.Now())this.router.navigate([this.getNavigationTarget()]);else if(e.code){if(!e.state)return void(this._errorMessage="A network error occurred (a)");if(this.state=localStorage.getItem("state"),!this.state)return void(this._errorMessage="A network error occurred (b)");if(this.state!=atob(e.state))return void(this._errorMessage="A network error occurred (c)");this._authData.authCode=e.code,this.fetchToken()}else this._authData.authCode?this.fetchToken():this.authorise()}getNavigationTarget(){return"/account"}authorise(){this.state=JSON.stringify(Math.random()),localStorage.setItem("state",this.state);let e=this.url;e+="/login",e+="?client_id="+this.clientId,e+="&redirect_uri="+this.redirectUri,e+="&response_type=code",e+="&state="+btoa(this.state),document.location.href=e}fetchToken(){let e=!!this._authData.refreshToken,t={endPointUrl:this.url+"/oauth2/token",grant_type:e?"refresh_token":"authorization_code",client_id:this.clientId,scope:"phone+openid+profile+email",redirect_uri:this.redirectUri};e?t.refresh_token=this._authData.refreshToken:t.code=this._authData.authCode,this.http.getTokenObservable(t).subscribe(t=>{this._loggedIn=!0,this._errorMessage=null,this._authData.idToken=t.id_token,t.refresh_token&&(this._authData.refreshToken=t.refresh_token),this._authData.tokenExpiryDate=JSON.parse(JSON.stringify(new Date((new Date).getTime()+1e3*t.expires_in))),this._authData.authCode=null,localStorage.setItem("authData",JSON.stringify(this._authData)),this.setRefreshTimer(this._authData.tokenExpiryDate),e||this.router.navigate([this.getNavigationTarget()])},e=>{console.log(e),this._errorMessage=e.statusText?e.statusText:e.message?e.message:"Unknown error occurred",this._loggedIn=!1})}setRefreshTimer(e){if(this.refreshTimerSubscription)return;let t=new Date(e).getTime()-(new Date).getTime();t=t<6e4?0:t-6e4,this.refreshTimerSubscription=Bg(t,this.defaultTokenRefreshInterval-6e4).subscribe(e=>{this.fetchToken()})}reset(){const e=this._loggedIn;this._authData=new Gg,this._loggedIn=!1,this._errorMessage=null,localStorage.clear(),e&&this.logoutFromIdP()}logoutFromIdP(){document.location.href=this.url+"/logout?client_id="+this.clientId+"&logout_uri="+this.postLogoutUri}get errorMessage(){return this._errorMessage}get loggedIn(){return this._loggedIn||this.getLocalStorage(),this._loggedIn&&(!this._authData.tokenExpiryDate||this._authData.tokenExpiryDatethis.Now()?(this._loggedIn=!0,this.refreshTimerSubscription||this.setRefreshTimer(this._authData.tokenExpiryDate)):(localStorage.removeItem("authData"),this._authData=new Gg))}Now(){return JSON.parse(JSON.stringify(new Date))}}return e.\u0275fac=function(t){return new(t||e)(ir(Zg),ir(hg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Kg{constructor(){this.active=!0,this.workingData={},this.UIData={displayDetail:!1,downloadInProgress:!1,packedFileConfirmed:!1}}get isUploaded(){return"Not uploaded"!=this.jobStatus&&"Uploading"!=this.jobStatus&&"Upload failed"!=this.jobStatus}get watchUpdates(){return!!this.isUploaded&&"Process error"!=this.jobStatus&&"Complete"!=this.jobStatus&&"Insufficient credits"!=this.jobStatus}get progress(){return this.workingData.progress?this.workingData.progress:null}setJobStatus(e){this.jobStatus=e,this.workingData.progress=null,this.workingData.filePartsLoaded=[],this.workingData.filePartsTotal=[],this.workingData.filePartsETag=[]}calcFileLoadProgress(){let e=0,t=0;for(let n=0;n=0;n--)if(e[n].fileKey==t)return{index:n,render:e[n]};return null}}let Yg=(()=>{class e{constructor(e){this.http=e}registerFile(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t,fileName:e.render.localFileName,fileSize:e.render.fileSize});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>e.errorMessage?e:Kg.createFromAPI(e)))}putFilePart(e,t,n,r,s,i){const o=new yh({});let a=new _h;return a.set("partNumber",String(r)),a.append("uploadId",s),this.http.put(t,n,{headers:o,observe:"events",reportProgress:!0})}confirmFileUploadComplete(e){const t=btoa(JSON.stringify(Math.random()));let n=[];for(let i=0;ie.errorMessage?e:Kg.createFromAPI(e)))}setAttributes(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t,fileKey:e.fileKey,renderFrame1Only:e.renderFrame1Only});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>e.errorMessage?e:Kg.createFromAPI(e)))}downloadFile(e){let t=e.substr(0,e.indexOf("?"));return t=decodeURI(t.substr(t.lastIndexOf("/")+1)),this.http.get(e,{responseType:"blob"}).pipe(Od(e=>{let n=e.type,r=[];r.push(e);let s=document.createElement("a");s.href=window.URL.createObjectURL(new Blob(r,{type:n})),t&&s.setAttribute("download",t),document.body.appendChild(s),s.click()}))}renewDownloadUrl(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t,fileKey:e.fileKey});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>e.errorMessage?e:Kg.createFromAPI(e)))}getSelectedRenderJobs(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t,fileKeys:e.fileKeys});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>{if(e.errorMessage)return e;let t=[];for(let n of e)t.push(Kg.createFromAPI(n));return t}))}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Qg{constructor(){this.availableCredits=0,this.reservedCredits=0,this.creditsTime=new Date}}let Xg=(()=>{class e{constructor(){this.pageHeaderData=new Qg}ngOnInit(){}isAvailableCreditsOld(){return(new Date).getTime()-this.pageHeaderData.creditsTime.getTime()>3e4}setCredits(e,t){this.pageHeaderData.availableCredits=e,this.pageHeaderData.reservedCredits=t,this.pageHeaderData.creditsTime=new Date}get availableCredits(){return this.pageHeaderData.availableCredits}get reservedCredits(){return this.pageHeaderData.reservedCredits}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),em=(()=>{class e{constructor(e,t,n,r){this.rendersHttp=e,this.userAuth=t,this.accountHttp=n,this.pageHeader=r,this.registerUrl="https://g3s3txeql3.execute-api.eu-west-2.amazonaws.com/stable",this.confirmFileUploadCompleteUrl="https://4hl3s1eahb.execute-api.eu-west-2.amazonaws.com/stable",this.setAttributesUrl="https://eadv4wsyr6.execute-api.eu-west-2.amazonaws.com/stable/",this.renewDownloadUrlUrl=" https://6cj7mybwug.execute-api.eu-west-2.amazonaws.com/stable",this.getSelectedRenderJobsUrl=" https://87ejjnyox7.execute-api.eu-west-2.amazonaws.com/stable",this.creditsUrl="https://xex7wybkdb.execute-api.eu-west-2.amazonaws.com/stable",this._renders=[],this._busyFlag=!1}get renders(){return this._renders.slice()}get busyFlag(){return this._busyFlag}get countRenders(){return this._renders.length}keyToRender(e){return Kg.keyToRender(this._renders,e)}addLocalFile(e){let t=Kg.createFromLocalFile(e);return t.jobStatus="Updating...",this._busyFlag=!0,this.rendersHttp.registerFile({endPointUrl:this.registerUrl,id_token:this.userAuth.idToken,render:t}).subscribe(e=>{this._busyFlag=!1,e.errorMessage?this.addError(t.localFileName+": "+e.errorMessage):(e.workingData.file=t.workingData.file,this._renders.push(e))},e=>{this._busyFlag=!1,this.addError(t.localFileName+": Unknown error"),console.log("Error",e)})}addAPIRenders(e){for(let t of this._renders)t.active=!1;for(let t of e){let e=Kg.createFromAPI(t),n=this.keyToRender(e.fileKey);if(!e.isUploaded){if(n&&("Uploading"==n.render.jobStatus||"Updating..."==n.render.jobStatus)){this._renders[n.index].active=!0;continue}if(e.uploadPresignedUrlExpiry<=new Date)continue;if(n&&(e.workingData=n.render.workingData),!e.workingData.file)continue}e.downloadReady&&e.downloadPresignedUrlExpiry<=new Date&&(e.downloadReady=!1,e.downloadPresignedUrl=null),n?(e.UIData=n.render.UIData,this._renders[n.index]=e):this._renders.push(e)}}uploadFile(e){if(e.workingData.file&&"Not uploaded"==e.jobStatus){e.setJobStatus("Uploading");for(let t=0;t{t.type==Eh.UploadProgress?(e.workingData.filePartsLoaded[n]=t.loaded,e.calcFileLoadProgress()):t.type==Eh.Response&&200==t.status&&(e.workingData.filePartsLoaded[n]=e.workingData.filePartsTotal[n],e.workingData.filePartsETag[n]=t.headers.get("etag"),e.calcFileLoadProgress(),1==e.workingData.progress&&this.confirmFileUpload(e))},t=>{this.addError(e.localFileName+": Unknown error"),e.jobStatus="Upload failed",console.log(t)})}get errorMessage(){return this._errorMessage}confirmFileUpload(e){return e.UIData.displayDetail=!0,e.jobStatus="Updating...",this.rendersHttp.confirmFileUploadComplete({endPointUrl:this.confirmFileUploadCompleteUrl,fileKey:e.fileKey,partETags:e.workingData.filePartsETag,id_token:this.userAuth.idToken}).subscribe(t=>{if(t.errorMessage)return this.addError(e.localFileName+": "+t.errorMessage),void e.setJobStatus("Upload failed");let n=this.keyToRender(t.fileKey);t.UIData=e.UIData,this._renders[n.index]=t},t=>{this._errorMessage=e.localFileName+": Unknown error",e.setJobStatus("Upload failed"),console.log("Error",t)})}toggleRenderFrame1Only(e){let t=this._renders[e];t.renderFrame1Only=!t.renderFrame1Only,t.blockUpload=!0,this.sendAttributes(t)}sendAttributes(e){return this.rendersHttp.setAttributes({endPointUrl:this.setAttributesUrl,fileKey:e.fileKey,renderFrame1Only:e.renderFrame1Only,id_token:this.userAuth.idToken}).subscribe(t=>{if(t.errorMessage)return void this.addError(e.localFileName+": "+t.errorMessage);let n=this.keyToRender(t.fileKey);n.render.workingData.file&&(t.workingData.file=n.render.workingData.file),this._renders[n.index]=t},t=>{this._errorMessage=e.localFileName+": Unknown error",e.setJobStatus("Upload failed"),console.log("Error",t)})}uploadFileAt(e){let t=this._renders[e];"Not uploaded"==t.jobStatus&&this.uploadFile(t)}resetErrorMessage(){this._errorMessage=null}downloadFile(e){let t=e.downloadPresignedUrl;if(!t||""==t)return void this.addError("Invalid download URL");const n=JSON.parse('{"'+decodeURI(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}'),r=n["X-Amz-Date"];let s=+n["X-Amz-Expires"];if(s<600)return void this.renewUrlThenDownloadFile(e);if(s>18e3&&(s=18e3),!r)return void this.addError("Invalid download URL");e.UIData.downloadInProgress=!0;let i=r.substr(0,4)+"-"+r.substr(4,2)+"-"+r.substr(6,5)+":"+r.substr(11,2)+":"+r.substr(13,2)+".000"+r.substr(15,99);const o=new Date(i);new Date(o.getTime()+1e3*s)<=new Date?this.renewUrlThenDownloadFile(e):this.downloadFileNow(e,t)}downloadFileNow(e,t){this.rendersHttp.downloadFile(t).subscribe(t=>{e.UIData.downloadInProgress=!1},t=>{e.UIData.downloadInProgress=!1,t.statusText&&this.addError(t.statusText)})}renewUrlThenDownloadFile(e){return this.rendersHttp.renewDownloadUrl({endPointUrl:this.renewDownloadUrlUrl,fileKey:e.fileKey,id_token:this.userAuth.idToken}).subscribe(t=>{if(t.errorMessage)return void this.addError(e.localFileName+": "+t.errorMessage);let n=this.keyToRender(t.fileKey);t.UIData=e.UIData,this._renders[n.index]=t,this.downloadFileNow(e,t.downloadPresignedUrl)},t=>{e.UIData.downloadInProgress=!1,this.addError(e.localFileName+": Unknown error"),console.log("Error",t)})}getSelectedRenderJobs(e){return this.rendersHttp.getSelectedRenderJobs({endPointUrl:this.getSelectedRenderJobsUrl,fileKeys:e,id_token:this.userAuth.idToken}).subscribe(e=>{if(e.errorMessage)return void this.addError(e.errorMessage);let t=!1;for(let n of e){let e=this.keyToRender(n.fileKey);n.costCredits!=e.render.costCredits&&(t=!0),n.UIData=this._renders[e.index].UIData,this._renders[e.index]=n}t&&this.fetchCredits()},e=>{this.addError("Unknown error attempting to retrieve details of selected render jobs"),console.log("Error",e)})}fetchCredits(){return this.accountHttp.getAccountObservable({endPointUrl:this.creditsUrl,id_token:this.userAuth.idToken,getCreditBalances:"True"}).subscribe(e=>{e.errorMessage||(this._availableCredit=e.renderCredit.cashCredit+e.renderCredit.freeCredit+e.renderCredit.reserveCredit,this.pageHeader.setCredits(this._availableCredit,e.renderCredit.reserveCredit))},e=>{})}get availableCredit(){return this._availableCredit}set availableCredit(e){this._availableCredit=e}get allDownloadsDisabled(){return this._availableCredit<0}addError(e){this._errorMessage?this._errorMessage+=", \n"+e:this._errorMessage=e}}return e.\u0275fac=function(t){return new(t||e)(ir(Yg),ir(Jg),ir(Lg),ir(Xg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tm=(()=>{class e{constructor(e,t,n,r){this.http=e,this.userAuthService=t,this.manageRendersService=n,this.pageHeaderService=r,this.url="https://xex7wybkdb.execute-api.eu-west-2.amazonaws.com/stable",this._errorMessage=null,this._account=new jg}fetchAccount(){let e={endPointUrl:this.url,id_token:this.userAuthService.idToken,getCreditBalances:"True",getCreditPrice:"True"};return this._account.profile||(e.getRenderJobs="True"),this.http.getAccountObservable(e).pipe(Od(e=>{e.errorMessage&&(this._errorMessage="Something went wrong when trying to retrieve account information"),this._account=e,e.renderJobs&&this.manageRendersService.addAPIRenders(e.renderJobs),this.manageRendersService.availableCredit=this.availableCredit,this.pageHeaderService.setCredits(this.availableCredit,this._account.renderCredit.reserveCredit)},e=>{this._errorMessage=e.statusText?e.statusText:e.message?e.message:"Something went wrong when trying to retrieve account information"}))}get errorMessage(){return this._errorMessage}resetErrorMessage(){this._errorMessage=null}get account(){return this._account}get availableCredit(){return this._account.renderCredit.availableCredit}}return e.\u0275fac=function(t){return new(t||e)(ir(Lg),ir(Jg),ir(em),ir(Xg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nm=(()=>{class e{constructor(e){this.accountService=e}resolve(e,t){const n=this.accountService.account;return n.profile&&n.profile.userName?n:this.accountService.fetchAccount()}}return e.\u0275fac=function(t){return new(t||e)(ir(tm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rm=(()=>{class e{constructor(){this.close=new Ja}ngOnInit(){}onClose(){this.close.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-alert"]],inputs:{message:"message"},outputs:{close:"close"},decls:7,vars:1,consts:[[1,"backdrop",3,"click"],[1,"alert-box"],[1,"alert-box-actions"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(ji(0,"div",0),qi("click",function(){return t.onClose()}),Li(),ji(1,"div",1),ji(2,"p"),fo(3),Li(),ji(4,"div",2),ji(5,"button",3),qi("click",function(){return t.onClose()}),fo(6,"Close"),Li(),Li(),Li()),2&e&&(ls(3),go(t.message))},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#000000bf;z-index:50}.alert-box[_ngcontent-%COMP%]{position:fixed;top:30vh;left:20vw;width:60vw;padding:16px;z-index:100;background:#fff;box-shadow:0 2px 8px #00000042}.alert-box-actions[_ngcontent-%COMP%]{text-align:right}"]}),e})(),sm=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-wait-spinner"]],decls:5,vars:0,consts:[[1,"row"],[1,"col-sm-2","col-sm-offset-5",2,"text-align","center"],[1,"lds-ripple"]],template:function(e,t){1&e&&(ji(0,"div",0),ji(1,"div",1),ji(2,"div",2),Vi(3,"div"),Vi(4,"div"),Li(),Li(),Li())},styles:[".lds-ripple[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ripple[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;border:4px solid #000;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.lds-ripple[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:36px;left:36px;width:0;height:0;opacity:1}to{top:0;left:0;width:72px;height:72px;opacity:0}}"]}),e})();function im(e,t){if(1&e){const e=Hi();ji(0,"app-alert",3),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function om(e,t){1&e&&Vi(0,"app-wait-spinner")}function am(e,t){if(1&e&&(ji(0,"tr"),ji(1,"td"),fo(2,"Free credits"),Li(),ji(3,"td",5),fo(4),za(5,"number"),Li(),Li()),2&e){const e=Gi(2);ls(4),go(qa(5,1,e.account.renderCredit.freeCredit))}}function lm(e,t){if(1&e&&(ji(0,"tr"),ji(1,"td"),fo(2,"Credits reserved for renders in progress"),Li(),ji(3,"td",5),fo(4),za(5,"number"),Li(),Li()),2&e){const e=Gi(2);ls(4),go(qa(5,1,e.account.renderCredit.reserveCredit))}}function cm(e,t){if(1&e&&(ji(0,"div"),ji(1,"h2"),fo(2),Li(),ji(3,"h3"),fo(4,"Your account balances:"),Li(),ji(5,"table",4),ji(6,"thead"),ji(7,"tr"),ji(8,"th"),fo(9,"Credit type"),Li(),ji(10,"th",5),fo(11,"Balance"),Li(),Li(),Li(),ji(12,"tbody"),Mi(13,am,6,3,"tr",1),ji(14,"tr"),ji(15,"td"),fo(16,"Cash Credits"),Li(),ji(17,"td",5),fo(18),za(19,"number"),Li(),Li(),Mi(20,lm,6,3,"tr",1),ji(21,"tr"),ji(22,"th"),fo(23,"Total available"),Li(),ji(24,"th",5),fo(25),za(26,"number"),Li(),Li(),Li(),Li(),Li()),2&e){const e=Gi();ls(2),mo("Welcome ",e.account.profile.userName," !"),ls(11),Ui("ngIf",e.account.renderCredit.freeCredit>0),ls(5),go(qa(19,5,e.account.renderCredit.cashCredit)),ls(2),Ui("ngIf",0!=e.account.renderCredit.reserveCredit),ls(5),mo(" ",qa(26,7,e.account.renderCredit.freeCredit+e.account.renderCredit.cashCredit+e.account.renderCredit.reserveCredit)," ")}}let um=(()=>{class e{constructor(e){this.accountService=e,this.loading=!1}ngOnInit(){this.loading=!0,this.account.profile&&this.account.profile.userName&&(this.loading=!1),this.accountService.fetchAccount().subscribe(e=>{this.loading=!1},e=>{this.loading=!1})}get errorMessage(){return this.accountService.errorMessage}closeAlert(){this.accountService.resetErrorMessage()}get account(){return this.accountService.account}}return e.\u0275fac=function(t){return new(t||e)(Ni(tm))},e.\u0275cmp=Ve({type:e,selectors:[["app-account"]],decls:4,vars:3,consts:[[3,"message","close",4,"ngIf"],[4,"ngIf"],[1,"container-fluid"],[3,"message","close"],[1,"table","table-striped",2,"max-width","400px"],[1,"text-right"]],template:function(e,t){1&e&&(Mi(0,im,1,1,"app-alert",0),Mi(1,om,1,0,"app-wait-spinner",1),ji(2,"div",2),Mi(3,cm,27,9,"div",1),Li()),2&e&&(Ui("ngIf",t.errorMessage),ls(1),Ui("ngIf",!t.errorMessage&&t.loading),ls(2),Ui("ngIf",!t.loading))},directives:[vu,rm,sm],pipes:[Su],styles:[""]}),e})(),hm=(()=>{class e{constructor(e){this.http=e}createStripeSession(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t,quantityHundreds:e.quantityHundreds});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>(e.errorMessage&&(e.statusCode="400",e.body=e.errorMessage),e)))}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),dm=(()=>{class e{constructor(e,t){this.addCreditHttpService=e,this.userAuth=t,this.createStripeSessionURL="https://lbmxi1v8r4.execute-api.eu-west-2.amazonaws.com/stable/",this._loading=!1}createStripeSession(e){return this.addCreditHttpService.createStripeSession({endPointUrl:this.createStripeSessionURL,id_token:this.userAuth.idToken,quantityHundreds:e}).pipe(T(e=>("303"!=e.statusCode&&(this._errorMessage=e.body),e)))}resetErrorMessage(){this._errorMessage=null}get loading(){return this._loading}get errorMessage(){return this._errorMessage}}return e.\u0275fac=function(t){return new(t||e)(ir(hm),ir(Jg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pm=(()=>{class e{constructor(e){this.router=e,this.googleId="G-DL7LR9CQSX",this.router.events.subscribe(e=>{e instanceof Fd&>ag("config",this.googleId,{page_path:e.urlAfterRedirects})})}eventEmitter(e,t,n,r=null,s=null){gtag("event",e,{eventCategory:t,eventLabel:r,eventAction:n,eventValue:s})}}return e.\u0275fac=function(t){return new(t||e)(ir(hg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function fm(e,t){return new v(n=>{const r=e.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==r&&c||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}let gm=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(Ni(Wo),Ni(zo))},e.\u0275dir=We({type:e}),e})(),mm=(()=>{class e extends gm{}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Fn(e)))(n||e)}}(),e.\u0275dir=We({type:e,features:[wi]}),e})();const ym=new $n("NgValueAccessor"),vm={provide:ym,useExisting:ne(()=>wm),multi:!0},bm=new $n("CompositionEventMode");let wm=(()=>{class e extends gm{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=uc()?uc().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(Ni(Wo),Ni(zo),Ni(bm,8))},e.\u0275dir=We({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&qi("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:[Uo([vm]),wi]}),e})();const _m=new $n("NgValidators"),Cm=new $n("NgAsyncValidators");function Sm(e){return null!=e}function km(e){const t=$i(e)?N(e):e;return zi(t),t}function xm(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Tm(e,t){return t.map(t=>t(e))}function Em(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Am(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Sm);return 0==t.length?null:function(e){return xm(Tm(e,t))}}(Em(e)):null}function Im(e){return null!=e?function(e){if(!e)return null;const t=e.filter(Sm);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return fm(t,null);if(c(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return fm(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return fm(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(T(e=>t(...e)))}return fm(e,null)}(Tm(e,t).map(km)).pipe(T(xm))}}(Em(e)):null}function Om(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}let Pm=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Am(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Im(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}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=We({type:e}),e})(),Dm=(()=>{class e extends Pm{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Fn(e)))(n||e)}}(),e.\u0275dir=We({type:e,features:[wi]}),e})();class Rm extends Pm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Mm=(()=>{class e extends class{constructor(e){this._cd=e}is(e){var t,n,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[e])}}{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(Ni(Rm,2))},e.\u0275dir=We({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&to("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:[wi]}),e})();function Nm(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Um(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Fm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jm="VALID",Lm="INVALID",Vm="PENDING",Hm="DISABLED";function $m(e){return(Wm(e)?e.validators:e)||null}function zm(e){return Array.isArray(e)?Am(e):e||null}function qm(e,t){return(Wm(t)?t.asyncValidators:e)||null}function Bm(e){return Array.isArray(e)?Im(e):e||null}function Wm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Gm{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=zm(this._rawValidators),this._composedAsyncValidatorFn=Bm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===jm}get invalid(){return this.status===Lm}get pending(){return this.status==Vm}get disabled(){return this.status===Hm}get enabled(){return this.status!==Hm}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=zm(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Bm(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Vm,!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=Hm,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=jm,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==jm&&this.status!==Vm||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()?Hm:jm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Vm,this._hasOwnPendingAsyncValidator=!0;const t=km(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof Jm?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Km&&r.at(e)||null}),r}(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 Ja,this.statusChanges=new Ja}_calculateStatus(){return this._allControlsDisabled()?Hm:this.errors?Lm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vm)?Vm:this._anyControlsHaveStatus(Lm)?Lm:jm}_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){Wm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Zm extends Gm{constructor(e=null,t,n){super($m(t),qm(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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){Fm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Fm(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 Jm extends Gm{constructor(e,t,n){super($m(t),qm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{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 Zm?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,r)=>{n=t(n,e,r)}),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 Km extends Gm{constructor(e,t,n){super($m(t),qm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),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,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Zm?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_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 Ym={provide:Rm,useExisting:ne(()=>Xm)},Qm=(()=>Promise.resolve(null))();let Xm=(()=>{class e extends Rm{constructor(e,t,n,r){super(),this.control=new Zm,this._registered=!1,this.update=new Ja,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=function(e,t){if(!t)return null;let n,r,s;return Array.isArray(t),t.forEach(e=>{e.constructor===wm?n=e:Object.getPrototypeOf(e.constructor)===mm?r=e:s=e}),s||r||n||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){var e,t;(function(e,t){const n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(Om(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(Om(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const s=()=>e.updateValueAndValidity();Nm(t._rawValidators,s),Nm(t._rawAsyncValidators,s)})(e=this.control,t=this),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Um(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&&Um(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),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Qm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Qm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(Ni(Dm,9),Ni(_m,10),Ni(Cm,10),Ni(ym,10))},e.\u0275dir=We({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Uo([Ym]),wi,ot]}),e})();const ey={provide:ym,useExisting:ne(()=>ty),multi:!0};let ty=(()=>{class e extends mm{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=Fn(e)))(n||e)}}(),e.\u0275dir=We({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&qi("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Uo([ey]),wi]}),e})(),ny=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({}),e})(),ry=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({imports:[[ny]]}),e})(),sy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({imports:[ry]}),e})();function iy(e,t){if(1&e){const e=Hi();ji(0,"app-alert",6),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function oy(e,t){if(1&e&&(ji(0,"div"),ji(1,"h4"),fo(2,"Pricing"),Li(),ji(3,"p"),fo(4),Li(),Li()),2&e){const e=Gi();ls(4),yo("The price for each credit is ",100*e.newCreditPrice,"p (",e.newCreditPrice," GBP).")}}function ay(e,t){1&e&&(ji(0,"div"),ji(1,"h4"),fo(2,"Pricing"),Li(),ji(3,"p"),fo(4,"Current pricing information is not available. Sorry, you cannot buy new credits at the moment. Please try later."),Li(),Li())}function ly(e,t){if(1&e){const e=Hi();ji(0,"div"),ji(1,"h4"),fo(2,"Order"),Li(),ji(3,"div",7),ji(4,"div",8),ji(5,"label",9),fo(6,"Quantity (hundreds):"),Li(),ji(7,"input",10),qi("ngModelChange",function(t){return It(e),Gi().quantityHundreds=t}),Li(),Li(),ji(8,"div",8),ji(9,"label",11),fo(10,"Quantity:"),Li(),Vi(11,"input",12),Li(),ji(12,"div",8),ji(13,"label",13),fo(14,"Price per credit:"),Li(),Vi(15,"input",14),Li(),ji(16,"div",8),ji(17,"label",15),fo(18,"Cost:"),Li(),Vi(19,"input",16),Li(),Li(),ji(20,"div",17),ji(21,"button",18),qi("click",function(){return It(e),Gi().onClickCheckout()}),fo(22,"Checkout (redirect to Stripe) "),Li(),Li(),Li()}if(2&e){const e=Gi();ls(7),Ui("ngModel",e.quantityHundreds),ls(4),Ui("value",(100*e.quantityHundreds).toLocaleString()),ls(4),Ui("value","\xa3 "+e.newCreditPrice.toLocaleString()),ls(4),Ui("value","\xa3 "+e.convertQuantityHundredsToCost(e.quantityHundreds)),ls(2),Ui("disabled",e.checkoutDisabled)}}function cy(e,t){1&e&&Vi(0,"app-wait-spinner")}let uy=(()=>{class e{constructor(e,t,n,r,s){this.accountService=e,this.addCreditService=t,this.router=n,this.route=r,this.googleAnalyticsService=s,this.quantityHundreds=1,this._loadingAccount=!0,this._checkoutDisabled=!1}ngOnInit(){this._loadingAccount=!0,this.account.profile&&this.account.profile.userName&&(this._loadingAccount=!1),this.accountService.fetchAccount().subscribe(e=>{this._loadingAccount=!1},e=>{this._loadingAccount=!1})}closeAlert(){this.accountService.resetErrorMessage(),this.addCreditService.resetErrorMessage()}convertQuantityHundredsToCost(e){return Math.round(e*this.newCreditPrice*100*100)/100}onClickCheckout(){this._checkoutDisabled=!0,this.googleAnalyticsService.eventEmitter("buycredits","shop","checkout","click",this.convertQuantityHundredsToCost(this.quantityHundreds)),this.addCreditService.createStripeSession(this.quantityHundreds).subscribe(e=>{console.log("response = "+JSON.stringify(e)),"303"==e.statusCode&&(window.location.href=e.body),this._checkoutDisabled=!1})}get account(){return this.accountService.account}get errorMessage(){let e;return e=null,this.accountService.errorMessage&&(e=this.accountService.errorMessage),this.addCreditService.errorMessage&&(e?e+="; ":e="",e+=this.addCreditService.errorMessage),e}get checkoutDisabled(){return this.quantityHundreds<1||this._checkoutDisabled}get loadingAccount(){return this._loadingAccount}get loading(){return!!this._loadingAccount||!!this.addCreditService.loading}get newCreditPriceAvailable(){return!this.loading&&!!this.accountService.account.newCreditPrice}get newCreditPrice(){return this.accountService.account.newCreditPrice.Price}}return e.\u0275fac=function(t){return new(t||e)(Ni(tm),Ni(dm),Ni(hg),Ni($p),Ni(pm))},e.\u0275cmp=Ve({type:e,selectors:[["app-add-credit"]],decls:28,vars:5,consts:[[3,"message","close",4,"ngIf"],[1,"container-fluid"],[2,"margin-top","6px"],["href","www.stripe.com"],["target","_blank","href","https://www.stripe.com"],[4,"ngIf"],[3,"message","close"],[1,"orderform"],[1,"form-group"],["for","quantityHundreds"],["type","number","id","quantityHundreds",1,"form-control",3,"ngModel","ngModelChange"],["for","quantity"],["type","text","id","quantity","disabled","",1,"form-control",3,"value"],["for","price"],["type","text","id","price","disabled","",1,"form-control",3,"value"],["for","cost"],["type","text","id","cost","disabled","",1,"form-control",3,"value"],[1,"form-group",2,"width","100%"],[1,"btn","btn-success",3,"disabled","click"]],template:function(e,t){1&e&&(Mi(0,iy,1,1,"app-alert",0),ji(1,"div",1),ji(2,"div"),ji(3,"h3",2),fo(4,"Buy More Credits"),Li(),ji(5,"h4"),fo(6,"How credits work"),Li(),ji(7,"p"),fo(8," Each credit provides 1 minute of 1 GPU for handling your render jobs. Minutes are rounded up. This is actual minutes x number of GPUs (currently NVIDIA T4 Tensor Core GPUs) and is not benchmarked against any historic processor capacity. Please make use of the free credits granted to new users to callibrate how many credits will be needed for your jobs. "),Li(),ji(9,"p"),fo(10,"GPU / processor types may change over time, but if that involves a downgrade in speed per cost and you have remaining credits, you will be given additional credits to compensate."),Li(),ji(11,"p"),fo(12,"Unused credit balances of more than \xa31 (1 GBP) are refundable on request subject to a 25p + 2% charge. This does not apply to free credits."),Li(),Li(),ji(13,"div"),ji(14,"h4"),fo(15,"Security"),Li(),ji(16,"p"),fo(17," Our payment processing is securely handled by "),ji(18,"a",3),fo(19,"Stripe"),Li(),fo(20," according to industry standards. We do not process or store your card details, they are sent directly to "),ji(21,"a",4),fo(22,"Stripe"),Li(),fo(23,". "),Li(),Li(),Mi(24,oy,5,2,"div",5),Mi(25,ay,5,0,"div",5),Mi(26,ly,23,5,"div",5),Mi(27,cy,1,0,"app-wait-spinner",5),Li()),2&e&&(Ui("ngIf",t.errorMessage),ls(24),Ui("ngIf",t.newCreditPriceAvailable),ls(1),Ui("ngIf",!t.loadingAccount&&!t.newCreditPriceAvailable),ls(1),Ui("ngIf",t.newCreditPriceAvailable&&!t.loading),ls(1),Ui("ngIf",!t.errorMessage&&t.loading))},directives:[vu,rm,ty,wm,Mm,Xm,sm],styles:[".orderform[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;border:2px solid #87cefa;border-radius:10px;padding:5px;margin:0 0 10px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.orderform[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{width:160px;margin:5px}"]}),e})(),hy=(()=>{class e{constructor(e){this.http=e}sendMessage(e){let t={cacheKiller:btoa(JSON.stringify(Math.random())),title:e.title,message:e.message};e.email&&(t.email=e.email);let n=JSON.stringify(t),r={"Content-Type":"application/json"};e.id_token&&(r.Authorization=e.id_token);const s=new yh(r);return this.http.post(e.endPointUrl,n,{headers:s,observe:"body"}).pipe(T(e=>(e.errorMessage&&(e.statusCode="400",e.body=e.errorMessage),e)))}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),dy=(()=>{class e{constructor(e,t){this.contactHttpService=e,this.userAuth=t,this.apiemailurl="https://figrdd3wka.execute-api.eu-west-2.amazonaws.com/stable",this.apiuseridurl="https://w392iko8yb.execute-api.eu-west-2.amazonaws.com/stable"}ngOnInit(){}sendMessage(e,t,n){let r={endPointUrl:this.userAuth.idToken?this.apiuseridurl:this.apiemailurl,title:t,message:n};return this.userAuth.idToken?r.id_token=this.userAuth.idToken:r.email=e,this.contactHttpService.sendMessage(r).pipe(T(e=>("200"!=e.statusCode&&(this._errorMessage=e.body),e)),Od(e=>{},e=>{this.errorMessage="An error occurred sending the message"}))}resetErrorMessage(){this._errorMessage=null}get errorMessage(){return this._errorMessage}set errorMessage(e){this._errorMessage?this._errorMessage+="; ":this._errorMessage="",this._errorMessage+=e}}return e.\u0275fac=function(t){return new(t||e)(ir(hy),ir(Jg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function py(e,t){if(1&e){const e=Hi();ji(0,"app-alert",12),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function fy(e,t){if(1&e&&(ji(0,"div",4),ji(1,"label",13),fo(2,"From User ID:"),Li(),Vi(3,"input",14),Li()),2&e){const e=Gi();ls(3),no(e.userIdClass),Ui("value",e.userId)}}function gy(e,t){if(1&e){const e=Hi();ji(0,"div",4),ji(1,"label",15),fo(2,"From Email:"),Li(),ji(3,"input",16),qi("ngModelChange",function(t){return It(e),Gi().email=t}),Li(),Li()}if(2&e){const e=Gi();ls(3),no(e.emailClass),Ui("ngModel",e.email)}}function my(e,t){if(1&e){const e=Hi();ji(0,"button",17),qi("click",function(){return It(e),Gi().onClickSend()}),fo(1,"Send message "),Li()}2&e&&Ui("disabled",Gi().sendDisabled)}function yy(e,t){1&e&&(ji(0,"h4"),fo(1,"Message has been sent"),Li())}let vy=(()=>{class e{constructor(e,t,n,r){this.userAuth=e,this.accountService=t,this.contactService=n,this.googleAnalyticsService=r,this.userId="",this.email="",this.title="",this.message="",this.maxMessageLength=900,this.maxTitleLength=100,this.formControlClass="form-control",this._showValidation=!1,this._messageSent=!1}ngOnInit(){this.loggedIn&&(this.accountService.account.profile?this.userId=this.accountService.account.profile.userName:this.accountService.fetchAccount().subscribe(e=>{this.userId=this.accountService.account.profile.userName}))}closeAlert(){this.contactService.resetErrorMessage()}isEmailValid(e){if(""==e)return!1;let t;return t=new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e),t}onClickSend(){this._showValidation=!0,this._messageSent=!0,this.googleAnalyticsService.eventEmitter("sendmessage","contact","send","click",0),this.contactService.sendMessage(this.email,this.title,this.message).subscribe(e=>{"200"==e.statusCode&&(this.contactService.errorMessage="Message sent")},e=>{this._messageSent=!1})}get errorMessage(){return this.contactService.errorMessage}get loggedIn(){return this.userAuth.loggedIn}get sendDisabled(){return""==this.message||this.message.length>this.maxMessageLength||""==this.userId&&!this.isEmailValid(this.email)||""==this.title||this.title.length>this.maxTitleLength||this._messageSent}get userIdClass(){return this.formControlClass}get emailClass(){let e=this.formControlClass;return(this.showValidation||""!=this.email)&&(this.isEmailValid(this.email)||(e+=" inputwarning")),e}get titleClass(){let e=this.formControlClass;return this.showValidation&&(""==this.title||this.title.length>this.maxTitleLength)&&(e+=" inputwarning"),e}get messageClass(){let e=this.formControlClass;return this.showValidation&&(""==this.message||this.message.length>this.maxMessageLength)&&(e+=" inputwarning"),e}get showValidation(){return!!this._showValidation||""!=this.email||""!=this.title||""!=this.message}get messageSent(){return this._messageSent}get remainingTitleLength(){return this.maxTitleLength-this.title.length}get remainingMessageLength(){return this.maxMessageLength-this.message.length}}return e.\u0275fac=function(t){return new(t||e)(Ni(Jg),Ni(tm),Ni(dy),Ni(pm))},e.\u0275cmp=Ve({type:e,selectors:[["app-contact"]],decls:21,vars:13,consts:[[3,"message","close",4,"ngIf"],[1,"container-fluid"],[2,"margin-top","6px"],["class","form-group",4,"ngIf"],[1,"form-group"],["for","title"],["type","text","id","title","placeholder","message title",3,"ngModel","ngModelChange"],["for","message"],["id","message","placeholder","message",3,"ngModel","ngModelChange"],[1,"form-group",2,"width","100%"],["class","btn btn-primary","type","submit",3,"disabled","click",4,"ngIf"],[4,"ngIf"],[3,"message","close"],["for","userId"],["type","text","id","userid","disabled","",3,"value"],["for","email"],["type","email","id","email","placeholder","email",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary",3,"disabled","click"]],template:function(e,t){1&e&&(Mi(0,py,1,1,"app-alert",0),ji(1,"div",1),ji(2,"div"),ji(3,"h3",2),fo(4,"Please send us a message"),Li(),ji(5,"div"),Mi(6,fy,4,3,"div",3),Mi(7,gy,4,3,"div",3),ji(8,"div",4),ji(9,"label",5),fo(10,"Message Title:"),Li(),fo(11),ji(12,"input",6),qi("ngModelChange",function(e){return t.title=e}),Li(),Li(),ji(13,"div",4),ji(14,"label",7),fo(15,"Your Message:"),Li(),fo(16),ji(17,"textarea",8),qi("ngModelChange",function(e){return t.message=e}),Li(),Li(),ji(18,"div",9),Mi(19,my,2,1,"button",10),Mi(20,yy,2,0,"h4",11),Li(),Li(),Li(),Li()),2&e&&(Ui("ngIf",t.errorMessage),ls(6),Ui("ngIf",t.loggedIn),ls(1),Ui("ngIf",!t.loggedIn),ls(4),mo(" (remaining characters ",t.remainingTitleLength," ) "),ls(1),no(t.titleClass),Ui("ngModel",t.title),ls(4),mo(" (remaining characters ",t.remainingMessageLength," ) "),ls(1),no(t.messageClass),Ui("ngModel",t.message),ls(2),Ui("ngIf",!t.messageSent),ls(1),Ui("ngIf",t.messageSent))},directives:[vu,wm,Mm,Xm,rm],styles:[".inputwarning[_ngcontent-%COMP%]{border-color:red}"]}),e})();class by{static createFromAPI(e){let t=new by;return e&&(t.storeString(e,"creditType"),t.storeNumber(e,"amount"),t.storeDate(e,"updateDate"),t.storeString(e,"updateDesc"),t.storeString(e,"localFileName")),t}storeString(e,t){e[t]&&e[t].S&&(this[t]=e[t].S)}storeNumber(e,t){e[t]&&e[t].N&&(this[t]=+e[t].N)}storeDate(e,t){if(e[t]&&e[t].S){let n=e[t].S;"+"!=n.slice(-5,-4)&&(n+="+0000");let r=new Date(n);this[t]=r}}}class wy{constructor(){this.transactions=[]}static createFromAPI(e){let t=new wy;if(e&&(e.hasOwnProperty("Balance")&&(t.balance=new Ug(e.Balance)),e.hasOwnProperty("Transactions")))for(let n of e.Transactions){let e=by.createFromAPI(n);t.transactions.push(e)}return t}}let _y=(()=>{class e{constructor(e){this.http=e}getCreditTransactions(e){const t=btoa(JSON.stringify(Math.random()));let n=JSON.stringify({cacheKiller:t});const r=new yh({"Content-Type":"application/json",Authorization:e.id_token});return this.http.post(e.endPointUrl,n,{headers:r,observe:"body"}).pipe(T(e=>e.errorMessage?e:wy.createFromAPI(e)))}}return e.\u0275fac=function(t){return new(t||e)(ir(Rh))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Cy=(()=>{class e{constructor(e,t,n){this.userAuthService=e,this.http=t,this.pageHeaderService=n,this.getCreditTransactionsUrl="https://0ikgcve85e.execute-api.eu-west-2.amazonaws.com/stable/",this._creditTransactions=[]}ngOnInit(){}fetchTransactions(){return this.http.getCreditTransactions({endPointUrl:this.getCreditTransactionsUrl,id_token:this.userAuthService.idToken}).pipe(Od(e=>{if(e.errorMessage)return void(this._errorMessage=e.errorMessage);e.hasOwnProperty("balance")&&this.pageHeaderService.setCredits(e.balance.availableCredit,e.balance.reserveCredit);let t=0,n=-1,r=0;if(this._creditTransactions=[],e.hasOwnProperty("transactions"))for(let s of e.transactions){if("reserveCredit"==s.creditType)if(t+=s.amount,s.amount>0){if(0==t&&n>=0){this._creditTransactions.splice(n,1),n=-1,r--;continue}n=-1,t=0}else s.amount<0&&(n=r);this._creditTransactions.push(s),r++}},e=>{this._errorMessage=e.statusText?e.statusText:e.message?e.message:"Something went wrong when trying to retrieve account information"}))}resetErrorMessage(){this._errorMessage=null}get countTransactions(){return this._creditTransactions.length}get creditTransactions(){return this._creditTransactions.slice()}get errorMessage(){return this._errorMessage}}return e.\u0275fac=function(t){return new(t||e)(ir(Jg),ir(_y),ir(Xg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sy(e,t){if(1&e){const e=Hi();ji(0,"app-alert",4),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function ky(e,t){if(1&e){const e=Hi();ji(0,"div",10),ji(1,"label"),ji(2,"input",11),qi("click",function(){return It(e),Gi(2).onClickShowAll()}),Li(),fo(3,"Show all"),Li(),Li()}if(2&e){const e=Gi(2);ls(2),Ui("checked",e.showAll)}}function xy(e,t){if(1&e&&(ji(0,"tr"),ji(1,"td"),fo(2),za(3,"date"),Li(),ji(4,"td",8),fo(5),za(6,"number"),Li(),ji(7,"td"),fo(8),Li(),ji(9,"td"),fo(10),Li(),ji(11,"td"),fo(12),Li(),Li()),2&e){const e=t.$implicit,n=Gi(2);ls(2),go(Ba(3,5,e.updateDate,"d LLL YYYY HH:mm:ss")),ls(3),go(qa(6,8,e.amount)),ls(3),go(n.displayCreditType(e.creditType)),ls(2),go(e.updateDesc),ls(2),go(e.localFileName)}}function Ty(e,t){if(1&e&&(ji(0,"div"),ji(1,"h3",5),fo(2,"Credit Transactions"),Li(),Mi(3,ky,4,1,"div",6),ji(4,"table",7),ji(5,"thead"),ji(6,"tr"),ji(7,"th"),fo(8,"Date"),Li(),ji(9,"th",8),fo(10,"Amount"),Li(),ji(11,"th"),fo(12,"Credit Type"),Li(),ji(13,"th"),fo(14,"Description"),Li(),ji(15,"th"),fo(16,"File Name"),Li(),Li(),Li(),ji(17,"tbody"),Mi(18,xy,13,10,"tr",9),Li(),Li(),Li()),2&e){const e=Gi();ls(3),Ui("ngIf",e.countAllTransactions>e.shortListSize),ls(15),Ui("ngForOf",e.creditTransactions)}}function Ey(e,t){1&e&&Vi(0,"app-wait-spinner")}let Ay=(()=>{class e{constructor(e){this.creditTransactionsService=e,this._loading=!1,this._creditTransactions=[],this.showAll=!1,this.shortListSize=10}ngOnInit(){0==this.countAllTransactions&&(this._loading=!0),this.creditTransactionsService.fetchTransactions(),this.creditTransactionsService.fetchTransactions().subscribe(e=>{this._loading=!1},e=>{this._loading=!1})}displayCreditType(e){switch(e){case"freeCredit":return"Free credit";case"reserveCredit":return"Reserve credit";case"cashCredit":return"Cash credit";default:return"Unknown credit type"}}get creditTransactions(){return this._creditTransactions=this.creditTransactionsService.creditTransactions,this._creditTransactions.length>this.shortListSize&&!this.showAll?this._creditTransactions.slice(this._creditTransactions.length-this.shortListSize):this._creditTransactions}onClickShowAll(){this.showAll=!this.showAll}closeAlert(){this.creditTransactionsService.resetErrorMessage()}get countAllTransactions(){return this.creditTransactionsService.countTransactions}get errorMessage(){return this.creditTransactionsService.errorMessage}get loading(){return this._loading}}return e.\u0275fac=function(t){return new(t||e)(Ni(Cy))},e.\u0275cmp=Ve({type:e,selectors:[["app-credit-transactions"]],decls:6,vars:3,consts:[[3,"message","close",4,"ngIf"],[1,"container-fluid"],[4,"ngIf"],["routerLink","/addcredit",1,"btn","btn-primary"],[3,"message","close"],[2,"margin-top","6px"],["class","checkbox",4,"ngIf"],[1,"table","table-striped"],[1,"text-right"],[4,"ngFor","ngForOf"],[1,"checkbox"],["type","checkbox","value","",3,"checked","click"]],template:function(e,t){1&e&&(Mi(0,Sy,1,1,"app-alert",0),ji(1,"div",1),Mi(2,Ty,19,2,"div",2),ji(3,"button",3),fo(4,"Buy more credits "),Li(),Mi(5,Ey,1,0,"app-wait-spinner",2),Li()),2&e&&(Ui("ngIf",t.errorMessage),ls(2),Ui("ngIf",!t.loading||t.creditTransactions.length>0),ls(3),Ui("ngIf",!t.errorMessage&&t.loading))},directives:[vu,dg,rm,mu,sm],pipes:[Cu,Su],styles:[""]}),e})();const Iy={bytes:0,KB:0,MB:1,GB:1,TB:2,PB:2};let Oy=(()=>{class e{constructor(){this.units=["bytes","KB","MB","GB","TB","PB"]}transform(e=0,t=Iy){if(isNaN(parseFloat(String(e)))||!isFinite(e))return"?";let n=0;for(;e>=1024;)e/=1024,n++;const r=this.units[n];return"number"==typeof t?`${e.toFixed(+t)} ${r}`:`${e.toFixed(t[r])} ${r}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ge({name:"fileSize",type:e,pure:!0}),e})(),Py=(()=>{class e{transform(e,t){return e.filter(e=>!!t[e.fieldName])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ge({name:"filterRenderDateFields",type:e,pure:!0}),e})();function Dy(e,t){if(1&e){const e=Hi();ji(0,"app-alert",3),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function Ry(e,t){if(1&e){const e=Hi();ji(0,"div",8),ji(1,"label"),ji(2,"input",9),qi("click",function(){return It(e),Gi(2).onClickShowAll()}),Li(),fo(3,"Show all"),Li(),Li()}if(2&e){const e=Gi(2);ls(2),Ui("checked",e.showAll)}}function My(e,t){1&e&&(ji(0,"div"),ji(1,"p"),fo(2,"You don't have any jobs yet"),Li(),ji(3,"p"),fo(4,"Select a file for upload. After upload rendering will start."),Li(),ji(5,"p"),fo(6,"Make sure the file includes all of the resources it needs (like textures etc)."),Li(),ji(7,"p"),fo(8,"By default only frame 1 is rendered - make sure you are happy with the first frame of output before requesting a larger render."),Li(),Li())}function Ny(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2,"Estimated Cost to Complete (Credits): "),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),go(e.estCreditsRequired)}}function Uy(e,t){if(1&e&&(ji(0,"tr",23),ji(1,"th"),fo(2,"Cost (Credits): "),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),go(e.costCredits)}}function Fy(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2,"Render Host:"),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),go(e.hostName)}}function jy(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2,"Processor Type:"),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),go(e.processorType)}}function Ly(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2,"Processor / Core Count:"),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),go(e.processorCount)}}function Vy(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2,"Frames (first / last / step):"),Li(),ji(3,"td"),fo(4),Li(),Li()),2&e){const e=Gi(2).$implicit;ls(4),vo("",e.frameStart," / ",e.frameEnd," / ",e.frameStep,"")}}function Hy(e,t){if(1&e&&(ji(0,"tr"),ji(1,"th"),fo(2),Li(),ji(3,"td"),fo(4),za(5,"date"),Li(),Li()),2&e){const e=t.$implicit,n=Gi(2).$implicit;no(n.isDownloadUrlNearExpiry&&e.warnDownloadExpiry?"alert-warning":""),ls(2),go(e.displayFieldName+": "),ls(2),go(Ba(5,4,n[e.fieldName],"d LLL YYYY HH:mm:ss"))}}function $y(e,t){if(1&e){const e=Hi();ji(0,"td",19),ji(1,"table",20),ji(2,"tr"),ji(3,"th"),fo(4,"Filename: "),Li(),ji(5,"td"),fo(6),Li(),Li(),ji(7,"tr"),ji(8,"th"),fo(9,"File Size: "),Li(),ji(10,"td"),fo(11),za(12,"fileSize"),Li(),Li(),Mi(13,Ny,5,1,"tr",2),Mi(14,Uy,5,1,"tr",21),Mi(15,Fy,5,1,"tr",2),Mi(16,jy,5,1,"tr",2),Mi(17,Ly,5,1,"tr",2),Mi(18,Vy,5,3,"tr",2),ji(19,"tr"),ji(20,"th"),fo(21,"Render First Frame Only:"),Li(),ji(22,"td"),ji(23,"input",18),qi("click",function(){It(e);const t=Gi().index;return Gi(3).onClickRenderFrame1Only(t)}),Li(),Li(),Li(),Mi(24,Hy,6,7,"tr",22),za(25,"filterRenderDateFields"),ji(26,"tr"),ji(27,"th"),fo(28,"Status: "),Li(),ji(29,"td"),fo(30),za(31,"number"),Li(),Li(),Li(),Li()}if(2&e){const e=Gi().$implicit,t=Gi(3);ls(6),go(e.localFileName),ls(5),go(qa(12,14,e.fileSize)),ls(2),Ui("ngIf",e.estCreditsRequired>0),ls(1),Ui("ngIf",e.costCredits>0),ls(1),Ui("ngIf",e.hostName),ls(1),Ui("ngIf",e.processorType),ls(1),Ui("ngIf",e.processorCount),ls(1),Ui("ngIf",e.frameStart||e.frameEnd||e.frameStep),ls(5),Ui("disabled","Not uploaded"!=e.jobStatus)("checked",e.renderFrame1Only),ls(1),Ui("ngForOf",Ba(25,16,t.displayDateFieldsList,e)),ls(2),no("Complete"==e.jobStatus?"alert-success":"Process error"==e.jobStatus?"alert-danger":"Insufficient credits"==e.jobStatus?"alert-warning":"alert-info"),ls(4),mo(" ",e.jobStatus+(e.progress>0?" ("+Ba(31,19,100*e.progress,"1.1-1")+"%)":"")+(e.progressStr&&e.progressStr.length>0?" ("+e.progressStr.trim()+")":"")," ")}}function zy(e,t){if(1&e&&(ji(0,"td"),fo(1),Li(),ji(2,"td",11),fo(3),Li(),ji(4,"td"),fo(5),za(6,"number"),Li()),2&e){const e=Gi().$implicit;ls(1),go(e.localFileName),ls(2),go(e.costCredits),ls(2),mo(" ",e.jobStatus+(e.progress>0?" ("+Ba(6,3,100*e.progress,"1.1-1")+"%)":"")+(e.progressStr&&e.progressStr.length>0?" ("+e.progressStr.trim()+")":"")," ")}}function qy(e,t){if(1&e){const e=Hi();ji(0,"button",24),qi("click",function(){It(e);const t=Gi().$implicit;return Gi(3).onClickDownload(t)}),fo(1," Download "),Li()}if(2&e){const e=Gi().$implicit,t=Gi(3);no("btn"+(e.isDownloadUrlNearExpiry?" btn-warning":" btn-success")+(e.UIData.downloadInProgress?" wait":"")),Ui("disabled",e.UIData.downloadInProgress||t.allDownloadsDisabled)}}function By(e,t){if(1&e){const e=Hi();ji(0,"button",25),qi("click",function(){It(e);const t=Gi().$implicit;return Gi(3).onClickConfirmPacked(t)}),fo(1," Confirm all data is packed into .blender file "),Li()}if(2&e){const e=Gi().$implicit,t=Gi(3);Ui("disabled",e.blockUpload||t.availableCredits<500)}}function Wy(e,t){if(1&e){const e=Hi();ji(0,"button",26),qi("click",function(){It(e);const t=Gi().index;return Gi(3).onClickUploadNow(t)}),fo(1," Upload and render "),Li()}if(2&e){const e=Gi().$implicit,t=Gi(3);Ui("disabled",e.blockUpload||t.availableCredits<500)}}function Gy(e,t){if(1&e){const e=Hi();ji(0,"tr"),ji(1,"td"),fo(2),za(3,"number"),Li(),Mi(4,$y,32,22,"td",13),Mi(5,zy,7,6,"ng-template",null,14,hl),ji(7,"td"),Mi(8,qy,2,3,"button",15),Mi(9,By,2,1,"button",16),Mi(10,Wy,2,1,"button",17),Li(),ji(11,"td"),ji(12,"input",18),qi("click",function(){return It(e).$implicit.toggleDisplayDetail()}),Li(),Li(),Li()}if(2&e){const e=t.$implicit,n=t.index,r=vt(xt.lFrame.contextLView,26),s=Gi(3);ls(2),go(qa(3,8,n+1+s.firstItem)),ls(2),Ui("ngIf",e.isDisplayDetail)("ngIfElse",r),ls(4),Ui("ngIf",e.downloadReady),ls(1),Ui("ngIf","Not uploaded"==e.jobStatus&&!e.UIData.packedFileConfirmed),ls(1),Ui("ngIf","Not uploaded"==e.jobStatus&&e.UIData.packedFileConfirmed),ls(2),Ui("disabled",!e.isUploaded)("checked",e.isDisplayDetail)}}function Zy(e,t){if(1&e&&(ji(0,"table",10),ji(1,"thead"),ji(2,"tr"),ji(3,"th"),fo(4,"Item"),Li(),ji(5,"th"),fo(6,"File Name"),Li(),ji(7,"th",11),fo(8,"Cost (Credits)"),Li(),ji(9,"th"),fo(10,"Job Status"),Li(),Vi(11,"th"),ji(12,"th"),fo(13,"Display Detail"),Li(),Li(),Li(),ji(14,"tbody"),Mi(15,Gy,13,10,"tr",12),Li(),Li()),2&e){const e=Gi(2);ls(15),Ui("ngForOf",e.renders)}}function Jy(e,t){if(1&e){const e=Hi();ji(0,"div",27),ji(1,"label",28),fo(2,"Select file for rendering "),ji(3,"input",29),qi("change",function(t){return It(e),Gi(2).handleFileInput(t.target.files)}),Li(),Li(),Li()}}function Ky(e,t){1&e&&(ji(0,"div"),ji(1,"p"),fo(2,"You need at least 500 credits to initiate an upload"),Li(),Li())}function Yy(e,t){if(1&e&&(ji(0,"div"),ji(1,"h3",4),fo(2),Li(),Mi(3,Ry,4,1,"div",5),Mi(4,My,9,0,"div",2),Mi(5,Zy,16,1,"table",6),Mi(6,Jy,4,0,"div",7),Mi(7,Ky,3,0,"div",2),Li()),2&e){const e=Gi();ls(2),mo("Renders (",e.countAllRenders,")"),ls(1),Ui("ngIf",e.countAllRenders>e.shortListSize),ls(1),Ui("ngIf",0==e.countAllRenders),ls(1),Ui("ngIf",e.renders.length>0),ls(1),Ui("ngIf",!e.loading&&e.availableCredits>=500),ls(1),Ui("ngIf",e.availableCredits<500)}}function Qy(e,t){1&e&&Vi(0,"app-wait-spinner")}let Xy=(()=>{class e{constructor(e,t){this.accountService=e,this.manageRendersService=t,this._loading=!1,this.showAll=!1,this.firstItem=0,this.shortListSize=10,this.uploadInProgress=!1,this.refreshJobsTimerSubscription=null,this.displayDateFieldsList=[{displayFieldName:"Download By",fieldName:"downloadPresignedUrlExpiry",warnDownloadExpiry:!0},{displayFieldName:"Uploaded",fieldName:"uploadDate"},{displayFieldName:"Render Started",fieldName:"jobStartTime"},{displayFieldName:"Render Completed",fieldName:"jobCompleteTime"},{displayFieldName:"Updated",fieldName:"updateDate"}]}ngOnInit(){this._loading=!0,this.account.profile&&this.account.profile.userName&&(this._loading=!1),this.accountService.fetchAccount().subscribe(e=>{this._loading=!1},e=>{this._loading=!1})}ngOnDestroy(){this.destroyRefreshJobsTimer()}get account(){return this.accountService.account}get renders(){let e=[];this.showAll||this.manageRendersService.renders.length<=this.shortListSize?(this.firstItem=0,e=this.manageRendersService.renders):(this.firstItem=this.manageRendersService.renders.length-this.shortListSize,e=this.manageRendersService.renders.slice(this.firstItem));let t=!1;for(let n of e)if(n.watchUpdates){t=!0;break}this.uploadInProgress=!1;for(let n of e)if("Uploading"==n.jobStatus){this.uploadInProgress=!0;break}return t?this.createRefreshJobsTimer():this.destroyRefreshJobsTimer(),e}createRefreshJobsTimer(){this.refreshJobsTimerSubscription||(this.refreshJobsTimerSubscription=Bg(2e4,2e4).subscribe(e=>{let t=[],n=this.renders;for(let r of n)r.watchUpdates&&r.fileKey&&t.push(r.fileKey);0!=t.length&&this.manageRendersService.getSelectedRenderJobs(t)}))}destroyRefreshJobsTimer(){this.refreshJobsTimerSubscription&&(this.refreshJobsTimerSubscription.unsubscribe(),this.refreshJobsTimerSubscription=null)}handleFileInput(e){for(let t=0;t0),ls(1),Ui("ngIf",!t.errorMessage&&t.loading))},directives:[vu,rm,mu,sm],pipes:[Su,Oy,Py,Cu],styles:["table.table-fit[_ngcontent-%COMP%]{table-layout:auto!important}table.table-fit[_ngcontent-%COMP%], table.table-fit[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.table-fit[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.table-fit[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.table-fit[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:auto!important}[hidden][_ngcontent-%COMP%]{display:none im!important}.my-table-condensed[_ngcontent-%COMP%]{background-color:initial}.my-table-condensed.table[_ngcontent-%COMP%]{table-layout:fixed;width:100%}.creditbox[_ngcontent-%COMP%]{padding:5px;margin-top:0;margin-left:10px;text-align:right;width:-webkit-max-content;width:max-content}.wait[_ngcontent-%COMP%]{cursor:wait}"]}),e})(),ev=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-privacy-policy"]],decls:468,vars:0,consts:[["href","mailto:info@to-renderit.com"],["href","mailto:info@to-render-it.com"],["href","http://www.knowyourprivacyrights.org/"],["href","https://ico.org.uk/make-a-complaint/","target","_blank"]],template:function(e,t){1&e&&(ji(0,"h1"),fo(1,"Website privacy notice"),Li(),ji(2,"p"),fo(3,"This is the privacy notice of Michael Thompson trading as ToRenderIt. "),Li(),ji(4,"h2"),fo(5,"Introduction"),Li(),ji(6,"p"),fo(7,"This notice describes how we collect, store, transfer and use personal\ndata. It tells you about your privacy rights and how the law protects\nyou."),Li(),ji(8,"p"),fo(9,"In the context of the law and this notice, \u2018personal data\u2019\nis information that clearly identifies you as an individual or which\ncould be used to identify you if combined with other information.\nActing in any way on personal data is referred to as \u2018processing\u2019."),Li(),ji(10,"p"),fo(11,"This notice applies to personal data collected through our website and\nthrough social media platforms and online retail platforms, including\nAmazon AWS Cognito and Stripe."),Li(),ji(12,"p"),fo(13,"Except as set out below, we do not share, or sell, or disclose to a third\nparty, any information collected through our website."),Li(),ji(14,"h2"),fo(15,"Personal data we process"),Li(),ji(16,"h3"),fo(17,"1. How we obtain personal data"),Li(),ji(18,"p"),fo(19,"The information we process about you includes information:"),Li(),ji(20,"ul"),ji(21,"li"),ji(22,"p"),fo(23,"you have directly provided to us"),Li(),Li(),ji(24,"li"),ji(25,"p"),fo(26,"that we gather from third party databases and service providers"),Li(),Li(),ji(27,"li"),ji(28,"p"),fo(29,"as a result of monitoring how you use our website or our services"),Li(),Li(),Li(),ji(30,"h3"),fo(31,"2. Types of personal data we collect directly"),Li(),ji(32,"p"),fo(33,"When you use our website, our services or buy from us, for\nexample, when you create an account on our website,\nwe ask you to provide personal data. This can be categorised into the\nfollowing groups:"),Li(),ji(34,"ul"),ji(35,"li"),ji(36,"p"),fo(37," personal identifiers, such as your first and last names and your title"),Li(),Li(),ji(38,"li"),ji(39,"p"),fo(40," contact information, such as your email address, your telephone number and your postal addresses for billing and communication"),Li(),Li(),ji(41,"li"),ji(42,"p"),fo(43," account information, including your username and password"),Li(),Li(),ji(44,"li"),ji(45,"p"),fo(46," note we use a third party for processing payments and do not at any time hold your payment details (e.g. credit card number)"),Li(),Li(),ji(47,"li"),ji(48,"p"),fo(49," records of communication between us including messages sent through our website, email messages and telephone conversations"),Li(),Li(),ji(50,"li"),ji(51,"p"),fo(52," marketing preferences that tell us what types of marketing you would like to receive"),Li(),Li(),Li(),ji(53,"h3"),fo(54,"3. Types of personal data we collect from your use of our services"),Li(),ji(55,"p"),fo(56,"\nBy using our website and our services, we process:"),Li(),ji(57,"ul"),ji(58,"li"),ji(59,"p"),fo(60," your username and password and other information used to access our website and our services"),Li(),Li(),ji(61,"li"),ji(62,"p"),fo(63," information you contribute to our community, including reviews"),Li(),Li(),ji(64,"li"),ji(65,"p"),fo(66," your replies to polls and surveys"),Li(),Li(),ji(67,"li"),ji(68,"p"),fo(69," technical information about the hardware and the software you use to access our website and use our services, including your Internet Protocol (IP) address, your browser type and version and your device\u2019s operating system"),Li(),Li(),ji(70,"li"),ji(71,"p"),fo(72," usage information, including the frequency you use our services, the pages of our website that you visit, whether you receive messages from us and whether you reply to those messages"),Li(),Li(),ji(73,"li"),ji(74,"p"),fo(75," transaction information that includes the details of the products services you have bought from us and payments made to us for those services"),Li(),Li(),ji(76,"li"),ji(77,"p"),fo(78," your preferences to receive marketing from us; how you wish to communicate with us; and responses and actions in relation to your use of our services."),Li(),Li(),Li(),ji(79,"h3"),fo(80,"4. Our use of aggregated information"),Li(),ji(81,"p"),fo(82,"We may aggregate anonymous information such as statistical or\ndemographic data for any purpose. Anonymous information is that which\ndoes not identify you as an individual. Aggregated information may be\nderived from your personal data but is not considered as such in law\nbecause it does not reveal your identity."),Li(),ji(83,"p"),fo(84,"For example, we may aggregate usage information to assess whether a\nfeature of our website is useful."),Li(),ji(85,"p"),fo(86,"However, if we combine or connect aggregated information with your\npersonal data so that it can identify you in any way, we treat the\ncombined information as personal data, and it will be used in\naccordance with this privacy notice."),Li(),ji(87,"h3"),fo(88,"5. Special personal data"),Li(),ji(89,"p"),fo(90,"Special personal data is data about your race or ethnicity, religious\nor philosophical beliefs, sex life, sexual orientation, political\nopinions, trade union membership, information about your health and\ngenetic and biometric data."),Li(),ji(91,"p"),fo(92,"It also includes information about criminal convictions and offences."),Li(),ji(93,"p"),fo(94,"We do not collect any special personal data about you."),Li(),ji(95,"h3"),fo(96,"6. If you do not provide personal data we need"),Li(),ji(97,"p"),fo(98,"Where we need to collect personal data by law, or under the terms of\na contract we have with you, and you fail to provide that data when\nrequested, we may not be able to perform that contract."),Li(),ji(99,"p"),fo(100,"In that case, we may have to stop providing a service to you. If so,\nwe will notify you of this at the time."),Li(),ji(101,"h2"),fo(102,"The bases on which we process information about you"),Li(),ji(103,"p"),fo(104,"The law requires us to determine under which of six defined bases we\nprocess different categories of your personal data, and to notify you\nof the basis for each category."),Li(),ji(105,"p"),fo(106,"If a basis on which we process your personal data is no longer relevant\nthen we shall immediately stop processing your data."),Li(),ji(107,"p"),fo(108,"If the basis changes then if required by law we shall notify you of the\nchange and of any new basis under which we have determined that we\ncan continue to process your information."),Li(),ji(109,"h3"),fo(110,"7. Information we process because we have a contractual obligation with you"),Li(),ji(111,"p"),fo(112,"When you create an account on our website, buy a product or service\nfrom us, or otherwise agree to our terms and conditions, a contract\nis formed between you and us."),Li(),ji(113,"p"),fo(114,"In order to carry out our obligations under that contract we must\nprocess the information you give us. Some of this information may be\npersonal data."),Li(),ji(115,"p"),fo(116,"We may use it in order to:"),Li(),ji(117,"ul"),ji(118,"li"),ji(119,"p"),fo(120," verify your identity for security purposes when you use our services"),Li(),Li(),ji(121,"li"),ji(122,"p"),fo(123," sell products to you"),Li(),Li(),ji(124,"li"),ji(125,"p"),fo(126," provide you with our services"),Li(),Li(),ji(127,"li"),ji(128,"p"),fo(129," provide you with suggestions and advice on products, services and how to obtain the most from using our website"),Li(),Li(),Li(),ji(130,"p"),fo(131,"We process this information on the basis there is a contract between\nus, or that you have requested we use the information before we enter\ninto a legal contract."),Li(),ji(132,"p"),fo(133,"We shall continue to process this information until the contract\nbetween us ends or is terminated by either party under the terms of\nthe contract."),Li(),ji(134,"h3"),fo(135,"8. Information we process with your consent"),Li(),ji(136,"p"),fo(137,"Through certain actions when otherwise there is no contractual\nrelationship between us, such as when you browse our website or ask\nus to provide you more information about our business, including our products and services, you provide your\nconsent to us to process information that may be personal data."),Li(),ji(138,"p"),fo(139,"Wherever possible, we aim to obtain your explicit consent to process\nthis information, for example, we ask you to agree to our use of\nnon-essential cookies when you access our website."),Li(),ji(140,"p"),fo(141,"If you have given us explicit permission to do so, we may from time\nto time pass your name and contact information to selected associates\nwhom we consider may provide services or products you would find\nuseful."),Li(),ji(142,"p"),fo(143,"We continue to process your information on this basis until you\nwithdraw your consent or it can be reasonably assumed that your\nconsent no longer exists."),Li(),ji(144,"p"),fo(145,"You may withdraw your consent at any time by instructing us by email at "),ji(146,"a",0),fo(147,"info@to-render-it.com"),Li(),fo(148,". However, if you do so, you may not\nbe able to use our website or our services further."),Li(),ji(149,"p"),fo(150,"We aim to obtain and keep your consent to process your information.\nHowever, while we take your consent into account in decisions about\nwhether or not to process your personal data, the withdrawal of your\nconsent does not necessarily prevent us from continuing to process\nit. The law may allow us to continue to process your personal data,\nprovided that there is another basis on which we may do so. For\nexample, we may have a legal obligation to do so."),Li(),ji(151,"h3"),fo(152,"9. Information we process for the purposes of legitimate interests"),Li(),ji(153,"p"),fo(154,"We may process information on the basis there is a legitimate\ninterest, either to you or to us, of doing so."),Li(),ji(155,"p"),fo(156,"Where we process your information on this basis, we do after having\ngiven careful consideration to:"),Li(),ji(157,"ul"),ji(158,"li"),ji(159,"p"),fo(160," whether the same objective could be achieved through other means"),Li(),Li(),ji(161,"li"),ji(162,"p"),fo(163," whether processing (or not processing) might cause you harm"),Li(),Li(),ji(164,"li"),ji(165,"p"),fo(166," whether you would expect us to process your data, and whether you would, in the round, consider it reasonable to do so"),Li(),Li(),Li(),ji(167,"p"),fo(168,"For example, we may process your data on this basis for the purposes\nof:"),Li(),ji(169,"ul"),ji(170,"li"),ji(171,"p"),fo(172," improving our services"),Li(),Li(),ji(173,"li"),ji(174,"p"),fo(175,"record-keeping for the proper and necessary administration of our business"),Li(),Li(),ji(176,"li"),ji(177,"p"),fo(178,"responding to unsolicited communication from you to which we believe you would expect a response"),Li(),Li(),ji(179,"li"),ji(180,"p"),fo(181,"preventing fraudulent use of our services"),Li(),Li(),ji(182,"li"),ji(183,"p"),fo(184,"exercising our legal rights, including to detect and prevent fraud and to protect our intellectual property"),Li(),Li(),ji(185,"li"),ji(186,"p"),fo(187,"insuring against or obtaining professional advice that is required to manage business risk"),Li(),Li(),ji(188,"li"),ji(189,"p"),fo(190,"protecting your interests where we believe we have a duty to do so"),Li(),Li(),Li(),ji(191,"h3"),fo(192,"10. Information we process because we have a legal obligation"),Li(),ji(193,"p"),fo(194,"Sometimes, we must process your information in order to comply with a\nstatutory obligation."),Li(),ji(195,"p"),fo(196,"For example, we may be required to give information to legal\nauthorities if they so request or if they have the proper\nauthorisation such as a search warrant or court order."),Li(),ji(197,"p"),fo(198,"This may include your personal data."),Li(),ji(199,"h3"),fo(200,"11. Sharing of your personal data"),Li(),ji(201,"p"),fo(202,"We do not share or disclose to a third party,\nany information collected through our website except for the following:"),Li(),ji(203,"ul"),ji(204,"li"),ji(205,"p"),fo(206,"Where we use a third party to perform part of the service (e.g. for payment processing, data storage, automated processing purposes)"),Li(),Li(),ji(207,"li"),ji(208,"p"),fo(209,"As mentioned elsewhere in this policy"),Li(),Li(),Li(),ji(210,"h3"),fo(211,"12. Information you provide"),Li(),ji(212,"p"),fo(213,"Our website allows you to post information with a view to that\ninformation being read, copied, downloaded, or used by other people."),Li(),ji(214,"p"),fo(215,"For example, when you leave a review or post a message on our website, we\nreasonably assume that you consent for the message to be seen by\nothers. We may include your username with your message, and your\nmessage may contain information that is personal data."),Li(),ji(216,"p"),fo(217,"Other examples include:"),Li(),ji(218,"ul"),ji(219,"li"),ji(220,"p"),fo(221,"tagging an image"),Li(),Li(),ji(222,"li"),ji(223,"p"),fo(224,"clicking on an icon next to another visitor\u2019s message to convey your agreement, disagreement or thanks"),Li(),Li(),Li(),ji(225,"p"),fo(226,"In posting personal data, it is up to you to satisfy yourself about\nthe privacy level of every person who might use it."),Li(),ji(227,"p"),fo(228,"We do not specifically use this information except to allow it to be\ndisplayed or shared."),Li(),ji(229,"p"),fo(230,"We do store it, and we reserve a right to use it in the future in any\nway we decide."),Li(),ji(231,"p"),fo(232,"If we provide you with a public profile page, the information on it may\nbe indexed by search engines or used by third parties. The\ninformation you provide on that profile page may be made available to\nthe public."),Li(),ji(233,"p"),fo(234,"Once your information enters the public domain, we have no control\nover what any individual third party may do with it. We accept no\nresponsibility for their actions at any time."),Li(),ji(235,"p"),fo(236,"Provided your request is reasonable and there is no legal basis for\nus to retain it, then at our discretion we may agree to your request\nto delete personal data that you have posted. You can make a request\nby contacting us at "),ji(237,"a",1),fo(238,"info@to-render-it.com"),Li(),fo(239,"."),Li(),ji(240,"h3"),fo(241,"13. Payment information"),Li(),ji(242,"p"),fo(243,"Payment information is never taken by us or\ntransferred to us either through our website or otherwise. Our\nemployees and contractors never have access to it."),Li(),ji(244,"p"),fo(245,"At the point of payment, all payment information is sent securely directly\nfrom your browser to the secure facitilities of our payment services provicer (Stripe) or some other reputable payment service\nprovider. The payment information (e.g. card details) are not seen or controlled\nby us. "),Li(),ji(246,"h3"),fo(247,"14. Job application and employment"),Li(),ji(248,"p"),fo(249,"\nIf you send us information in connection with a job application, we\nmay keep it for up to three years in\ncase we decide to contact you at a later date."),Li(),ji(250,"p"),fo(251,"If we employ you, we collect information about you and your work from\ntime to time throughout the period of your employment. This\ninformation will be used only for purposes directly relevant to your\nemployment. After your employment has ended, we will keep your file\nfor six years before destroying or\ndeleting it."),Li(),ji(252,"h3"),fo(253,"15. Information obtained from third parties"),Li(),ji(254,"p"),fo(255,"Although we do not disclose your personal data to any third party\n(except as set out in this notice), we sometimes receive data that is\nindirectly made up from your personal data from third parties whose\nservices we use."),Li(),ji(256,"h3"),fo(257,"16. Third party advertising on our website"),Li(),ji(258,"p"),fo(259,"Third parties may advertise on our website. In doing so, those\nparties, their agents or other companies working for them may use\ntechnology that automatically collects information about you when\ntheir advertisement is displayed on our website."),Li(),ji(260,"p"),fo(261,"They may also use other technology such as cookies or JavaScript to\npersonalise the content of, and to measure the performance of their\nadverts."),Li(),ji(262,"p"),fo(263,"We do not have control over these technologies or the data that these\nparties obtain. Accordingly, this privacy notice does not cover the\ninformation practices of these third parties."),Li(),ji(264,"h3"),fo(265,"17. Credit reference"),Li(),ji(266,"p"),fo(267,"To assist in combating fraud, we share information with credit\nreference agencies, so far as it relates to clients or customers who\ninstruct their credit card issuer to cancel payment to us without\nhaving first provided an acceptable reason to us and given us the\nopportunity to refund their money."),Li(),ji(268,"h3"),fo(269,"18. Disputes between users"),Li(),ji(270,"p"),fo(271,"In the event of a dispute between you and another user, provided that\nyou consent, we may share your basic personal data, business\ninformation and contact information with the other user."),Li(),ji(272,"p"),fo(273,"At our discretion, we may share other information to enable the\ndispute to be resolved through litigation or alternative dispute\nresolution methods."),Li(),ji(274,"h3"),fo(275,"19. Service providers and business partners"),Li(),ji(276,"p"),fo(277,"We may share your personal data with businesses that provide services\nto us, or with business partners."),Li(),ji(278,"p"),fo(279,"As examples:"),Li(),ji(280,"ul"),ji(281,"li"),ji(282,"p"),fo(283," we may pass your payment information to our payment service provider to take payments from you"),Li(),Li(),ji(284,"li"),ji(285,"p"),fo(286," we may use fraud prevention agencies and credit reference agencies to verify your identity and we may pass your information to those agencies if we strongly suspect fraud on our website"),Li(),Li(),ji(287,"li"),ji(288,"p"),fo(289," we may pass your contact information to advertising agencies to use to promote our services to you"),Li(),Li(),Li(),ji(290,"h3"),fo(291,"20. Referral partners"),Li(),ji(292,"p"),fo(293,"This is information given to us by you in your capacity as an\naffiliate of us or as a referral partner."),Li(),ji(294,"p"),fo(295,"It allows us to recognise visitors that you have referred to us, and\nto credit to you commission due for such referrals. It also includes\ninformation that allows us to transfer commission to you."),Li(),ji(296,"p"),fo(297,"The information is not used for any other purpose."),Li(),ji(298,"p"),fo(299,"We undertake to preserve the confidentiality of the information and\nof the terms of our relationship. "),Li(),ji(300,"p"),fo(301,"We expect any affiliate or partner to agree to reciprocate this\npolicy."),Li(),ji(302,"h2"),fo(303,"Use of information we collect through automated systems"),Li(),ji(304,"h3"),fo(305,"21. Cookies"),Li(),ji(306,"p"),fo(307,"Cookies are small text files that are placed on your computer's hard\ndrive by your web browser when you visit a website that uses them.\nThey allow information gathered on one web page to be stored until it\nis needed for use at a later date."),Li(),ji(308,"p"),fo(309,"They are commonly used to provide you with a personalised experience\nwhile you browse a website, for example, allowing your preferences to\nbe remembered."),Li(),ji(310,"p"),fo(311,"They can also provide core functionality such as security, network\nmanagement, and accessibility; record how you interact with the\nwebsite so that the owner can understand how to improve the\nexperience of other visitors; and serve you advertisements that are\nrelevant to your browsing history."),Li(),ji(312,"p"),fo(313,"Some cookies may last for a defined period of time, such as one visit\n(known as a session), one day or until you close your browser. Others\nlast indefinitely until you delete them."),Li(),ji(314,"p"),fo(315,"Your web browser should allow you to delete any cookie you choose. It\nshould also allow you to prevent or limit their use. Your web browser\nmay support a plug-in or add-on that helps you manage which cookies\nyou wish to allow to operate. "),Li(),ji(316,"p"),fo(317,"The law requires you to give explicit consent for use of any cookies\nthat are not strictly necessary for the operation of a website."),Li(),ji(318,"p"),fo(319,"When you first visit our website, we ask you whether you wish us to use\ncookies. If you choose not to accept them, we shall not use them for\nyour visit except to record that you have not consented to their use\nfor any other purpose."),Li(),ji(320,"p"),fo(321,"If you choose not to use cookies or you prevent their use through your\nbrowser settings, you may not be able to use all the functionality of\nour website."),Li(),ji(322,"p"),fo(323,"We use cookies in the following ways:"),Li(),ji(324,"ul"),ji(325,"li"),ji(326,"p"),fo(327," to track how you use our website"),Li(),Li(),ji(328,"li"),ji(329,"p"),fo(330,"to keep you signed in to our website"),Li(),Li(),ji(331,"li"),ji(332,"p"),fo(333,"to record your answers to surveys and questionnaires on our site while you complete them"),Li(),Li(),ji(334,"li"),ji(335,"p"),fo(336,"to record the conversation thread during a live chat with our support team"),Li(),Li(),Li(),ji(337,"h3"),fo(338,"22. Personal identifiers from your browsing activity"),Li(),ji(339,"p"),fo(340,"Requests by your web browser to our servers for web pages and other\ncontent on our website are recorded."),Li(),ji(341,"p"),fo(342,"We record information such as your geographical location, your\nInternet service provider and your IP address. We also record\ninformation about the software you are using to browse our website,\nsuch as the type of computer or device and the screen resolution."),Li(),ji(343,"p"),fo(344,"We use this information in aggregate to assess the popularity of the\nwebpages on our website and how we perform in providing content to\nyou."),Li(),ji(345,"p"),fo(346,"If combined with other information we know about you from previous\nvisits, the data possibly could be used to identify you personally,\neven if you are not signed in to our website. "),Li(),ji(347,"h3"),fo(348,"23. Re-marketing"),Li(),ji(349,"p"),fo(350,"Re-marketing involves placing a \u2018tracking technology\u2019\nsuch as a cookie, a \u2018web beacon\u2019 (also known as an\n\u2018action tag\u2019 or a \u2018single-pixel GIF\u2019) to\ntrack which pages you visit and to serve you relevant adverts for our\nservices when you visit some other website."),Li(),ji(351,"p"),fo(352,"The benefit of re-marketing technology is that we can provide you\nwith more useful and relevant adverts, and not show you ones\nrepeatedly that you may have already seen."),Li(),ji(353,"p"),fo(354,"We may use a third-party advertising service to provide us with\nre-marketing services from time to time. If you have consented to our\nuse of such tracking technologies, you may see advertisements for our\nproducts and services on other websites."),Li(),ji(355,"p"),fo(356,"We do not provide your personal data to advertisers or to third-party\nre-marketing service providers. However, if you are already a member\nof a website whose affiliated business provides such services, that\naffiliated business may learn of your preferences in relation to your\nuse of our website."),Li(),ji(357,"h2"),fo(358,"Other matters"),Li(),ji(359,"h3"),fo(360,"24. Your rights"),Li(),ji(361,"p"),fo(362,"The law requires us to tell you about your rights and our obligations\nto you in regard to the processing and control of your personal data."),Li(),ji(363,"p"),fo(364,"We do this now, by requesting that you read the information provided\nat "),ji(365,"a",2),fo(366,"http://www.knowyourprivacyrights.org"),Li(),Li(),ji(367,"h3"),fo(368,"25. Use of our services by children"),Li(),ji(369,"p"),fo(370,"We do not sell products or provide services for purchase by children,\nnor do we market to children."),Li(),ji(371,"p"),fo(372,"If you are under 18, you may use our website only with consent from a\nparent or guardian."),Li(),ji(373,"p"),fo(374,"We collect data about all users of and visitors to these areas\nregardless of age, and we anticipate that some of those users and\nvisitors will be children."),Li(),ji(375,"h3"),fo(376,"26. Encryption of data sent between us"),Li(),ji(377,"p"),fo(378,"We use Secure Sockets Layer (SSL) certificates to verify our identity to\nyour browser and to encrypt any data you give us."),Li(),ji(379,"p"),fo(380,"Whenever information is transferred between us, you can check that it is done\nso using SSL by looking for a closed padlock symbol or other trust\nmark in your browser\u2019s URL bar or toolbar."),Li(),ji(381,"h3"),fo(382,"27. Data may be processed outside the UK"),Li(),ji(383,"p"),fo(384,"Our websites are hosted in the UK."),Li(),ji(385,"p"),fo(386,"We may also use outsourced services in countries outside the UK from\ntime to time in other aspects of our business."),Li(),ji(387,"p"),fo(388,"Accordingly data obtained within the UK or any other country could be\nprocessed outside the UK."),Li(),ji(389,"p"),fo(390,"We use the following safeguards with respect to data transferred\noutside the UK:"),Li(),ji(391,"ul"),ji(392,"li"),ji(393,"p"),fo(394,"the data protection clauses in our contracts with data processors include transfer clauses written by or approved by a supervisory authority."),Li(),Li(),Li(),ji(395,"h3"),fo(396,"28. Control over your own information"),Li(),ji(397,"p"),fo(398,"It is important that the personal data we hold about you is accurate\nand up to date. Please inform us if your personal data changes."),Li(),ji(399,"p"),fo(400,"At any time, you may contact us to request that we provide you with the\npersonal data we hold about you."),Li(),ji(401,"p"),fo(402,"At any time you may review or update personally identifiable information\nthat we hold about you, by signing in to your account on our website."),Li(),ji(403,"p"),fo(404,"To obtain a copy of any information that is not provided on our website\nyou should contact us to make that request."),Li(),ji(405,"p"),fo(406,"When we receive any request to access, edit or delete personal data\nwe first take reasonable steps to verify your identity before\ngranting you access or otherwise taking any action. This is important\nto safeguard your information."),Li(),ji(407,"p"),fo(408,"Please be aware that we are not obliged by law to provide you with\nall personal data we hold about you, and that if we do provide you\nwith information, the law allows us to charge for such provision if\ndoing so incurs costs for us. After receiving your request, we will\ntell you when we expect to provide you with the information, and\nwhether we require any fee for providing it to you."),Li(),ji(409,"p"),fo(410,"If you wish us to remove personally identifiable information from our\nwebsite, you should contact us to make your request."),Li(),ji(411,"p"),fo(412,"This may limit the service we can provide to you."),Li(),ji(413,"p"),fo(414,"We remind you that we are not obliged by law to delete your personal\ndata or to stop processing it simply because you do not consent to us\ndoing so. While having your consent is an important consideration as\nto whether to process it, if there is another legitimate basis on\nwhich we may process it, we may do so on that basis."),Li(),ji(415,"h3"),fo(416,"29. Communicating with us"),Li(),ji(417,"p"),fo(418,"When you contact us, whether by telephone, through our website or by\nemail, we collect the data you have given to us in order to reply\nwith the information you need."),Li(),ji(419,"p"),fo(420,"We record your request and our reply in order to increase the\nefficiency of our business."),Li(),ji(421,"p"),fo(422,"We may keep personally identifiable information associated with your\nmessage, such as your name and email address so as to be able to\ntrack our communications with you to provide a high quality service."),Li(),ji(423,"h3"),fo(424,"30. Complaining"),Li(),ji(425,"p"),fo(426,"If you are not happy with our privacy policy, or if you have any\ncomplaint, then you should tell us."),Li(),ji(427,"p"),fo(428,"When we receive a complaint, we record the information you have given\nto us on the basis of consent. We use that information to resolve\nyour complaint."),Li(),ji(429,"p"),fo(430,"We aim to investigate all complaints relating to user generated content.\nHowever, we may not be able to do so as soon as a complaint is made.\nIf we feel that it is justified or if we believe that the law\nrequires us to do so, we shall remove the content while we do so."),Li(),ji(431,"p"),fo(432,"Making a complaint may not result in the removal of the content. Ultimately,\nwe have to make a judgment as to whose right will be obstructed:\nyours, or that of the person who posted the content that offends you."),Li(),ji(433,"p"),fo(434,"If we think your complaint is vexatious or without any basis, we shall\nnot correspond with you about it."),Li(),ji(435,"p"),fo(436,"If your complaint reasonably requires us to notify some other person,\nwe may decide to give to that other person some of the information\ncontained in your complaint. We do this as infrequently as possible,\nbut it is a matter for our sole discretion whether we do give\ninformation, and if we do, what that information is."),Li(),ji(437,"p"),fo(438,"We may also compile statistics showing information obtained from this\nsource to assess the level of service we provide, but not in a way\nthat could identify you or any other person."),Li(),ji(439,"p"),fo(440,"If a dispute is not settled then we hope you will agree to attempt to\nresolve it by engaging in good faith with us in a process of\nmediation or arbitration."),Li(),ji(441,"p"),fo(442,"If you are in any way dissatisfied about how we process your personal\ndata, you have a right to lodge a complaint with the Information\nCommissioner's Office (ICO). This can be done at\n"),ji(443,"a",3),fo(444,"https://ico.org.uk/make-a-complaint/"),Li(),fo(445,".\nWe would, however, appreciate the opportunity to talk to you about\nyour concern before you approach the ICO."),Li(),ji(446,"h3"),fo(447,"31. Retention period"),Li(),ji(448,"p"),fo(449,"Except as otherwise mentioned in this privacy notice, we keep your\npersonal data only for as long as required by us:"),Li(),ji(450,"ul"),ji(451,"li"),ji(452,"p"),fo(453," to provide you with the services you have requested"),Li(),Li(),ji(454,"li"),ji(455,"p"),fo(456," to comply with other law, including for the period demanded by our tax authorities"),Li(),Li(),ji(457,"li"),ji(458,"p"),fo(459," to support a claim or defence in court"),Li(),Li(),Li(),ji(460,"h3"),fo(461,"32. Compliance with the law"),Li(),ji(462,"p"),fo(463,"Our privacy policy complies with the law in the United Kingdom,\nspecifically with the Data Protection Act 2018 (the \u2018Act\u2019)\naccordingly incorporating the EU General Data Protection Regulation\n(\u2018GDPR\u2019) and the Privacy and Electronic Communications\nRegulations (\u2018PECR\u2019)."),Li(),ji(464,"h3"),fo(465,"33. Review of this privacy policy"),Li(),ji(466,"p"),fo(467,"We shall update this privacy notice from time to time as necessary."),Li())},styles:[""]}),e})(),tv=(()=>{class e{constructor(e,t){this.router=e,this.userAuth=t}canActivate(e,t){return!!this.userAuth.loggedIn||(this.router.navigate(["/userauth"]),!1)}}return e.\u0275fac=function(t){return new(t||e)(ir(hg),ir(Jg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nv=(()=>{class e{constructor(e,t){this.userAuth=e,this.router=t}ngOnInit(){this.userAuth.reset(),this.router.navigate(["/"])}}return e.\u0275fac=function(t){return new(t||e)(Ni(Jg),Ni(hg))},e.\u0275cmp=Ve({type:e,selectors:[["app-logout"]],decls:1,vars:0,template:function(e,t){1&e&&Vi(0,"app-wait-spinner")},directives:[sm],styles:[""]}),e})();function rv(e,t){if(1&e){const e=Hi();ji(0,"app-alert",2),qi("close",function(){return It(e),Gi().closeAlert()}),Li()}2&e&&Ui("message",Gi().errorMessage)}function sv(e,t){1&e&&Vi(0,"app-wait-spinner")}function iv(e,t){1&e&&(ji(0,"p"),fo(1,"You are logged in"),Li())}let ov=(()=>{class e{constructor(e,t,n){this.userAuthService=e,this.activatedRoute=t,this.router=n}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{this.userAuthService.checkAuthorisation(e)})}get errorMessage(){return this.userAuthService.errorMessage}closeAlert(){this.router.navigate(["/"]),this.userAuthService.reset()}get loggedIn(){return this.userAuthService.loggedIn}}return e.\u0275fac=function(t){return new(t||e)(Ni(Jg),Ni($p),Ni(hg))},e.\u0275cmp=Ve({type:e,selectors:[["app-user-auth"]],decls:3,vars:3,consts:[[3,"message","close",4,"ngIf"],[4,"ngIf"],[3,"message","close"]],template:function(e,t){1&e&&(Mi(0,rv,1,1,"app-alert",0),Mi(1,sv,1,0,"app-wait-spinner",1),Mi(2,iv,2,0,"p",1)),2&e&&(Ui("ngIf",t.errorMessage),ls(1),Ui("ngIf",!t.errorMessage&&!t.loggedIn),ls(1),Ui("ngIf",t.loggedIn))},directives:[vu,rm,sm],styles:[""]}),e})();function av(e,t){if(1&e){const e=Hi();ji(0,"div",11),ji(1,"div",12),ji(2,"h3"),fo(3,"Start your "),ji(4,"span",4),fo(5,"free trial"),Li(),fo(6," now with just your email address. No credit card required."),Li(),Li(),ji(7,"div",12),ji(8,"button",13),qi("click",function(){return It(e),Gi().onClickRegisterLogon()}),fo(9,"Register or logon "),Li(),Li(),Li()}}const lv=[{path:"cloud-rendering-services",component:(()=>{class e{constructor(e,t,n){this.userAuth=e,this.googleAnalyticsService=t,this.router=n,this.backgroundImages=["cloud-rendering-services.jpg","cloud-rendering-services-03.jpg","cloud-rendering-services-05.jpg","cloud-rendering-services-07.jpg","cloud-rendering-services-09.jpg","cloud-rendering-services-11.jpg","cloud-rendering-services-13.jpg","cloud-rendering-services-15.jpg","cloud-rendering-services-17.jpg","cloud-rendering-services-19.jpg","cloud-rendering-services-21.jpg","cloud-rendering-services-23.jpg","cloud-rendering-services-25.jpg","cloud-rendering-services-27.jpg","cloud-rendering-services-29.jpg","cloud-rendering-services-31.jpg","cloud-rendering-services-33.jpg","cloud-rendering-services-35.jpg","cloud-rendering-services-37.jpg","cloud-rendering-services-39.jpg","cloud-rendering-services-41.jpg","cloud-rendering-services-43.jpg","cloud-rendering-services-45.jpg","cloud-rendering-services-47.jpg","cloud-rendering-services-49.jpg"],this.backgroundImage1="./assets/images/"+this.backgroundImages[0],this.backgroundImage2=this.backgroundImage1,this.maxopacity=1,this.opacity1=0,this.opacity2=0,this.imageIndex=0,this.oddeven=1,this.refreshImageTimerSubscription=null}ngOnInit(){this.createImageTimer()}ngOnDestroy(){this.destroyImageTimer()}createImageTimer(){this.refreshImageTimerSubscription||(this.refreshImageTimerSubscription=Bg(0,5e3).subscribe(e=>{this.oddeven++%2==0?(this.backgroundImage2=this.backgroundImage1,this.opacity2=this.maxopacity,this.opacity1=0):(this.oddeven=0,this.backgroundImage1="./assets/images/"+this.backgroundImages[this.imageIndex],this.opacity1=this.maxopacity,++this.imageIndex>=this.backgroundImages.length&&(this.imageIndex=0,this.destroyImageTimer()))}))}destroyImageTimer(){this.refreshImageTimerSubscription&&(this.refreshImageTimerSubscription.unsubscribe(),this.refreshImageTimerSubscription=null)}onClickRegisterLogon(){this.googleAnalyticsService.eventEmitter("subscribe","trial","subscribe","click",0),this.router.navigate(["/userauth"])}get loggedIn(){return this.userAuth.loggedIn}}return e.\u0275fac=function(t){return new(t||e)(Ni(Jg),Ni(pm),Ni(hg))},e.\u0275cmp=Ve({type:e,selectors:[["app-welcome"]],decls:69,vars:7,consts:[[1,"container-fluid","overlaytext"],[1,"row"],[1,"col-lg-4"],[2,"margin-top","6px"],[1,"highlight"],[1,"highlight2"],["class","calltoaction bg-warning",4,"ngIf"],[1,"col-lg-8"],[1,"background"],["alt","cloud-rendering-services",1,"backgroundimage","backgroundimage-transition",2,"z-index","2",3,"src"],["alt","cloud-rendering-services background image",1,"backgroundimage",2,"z-index","1",3,"src"],[1,"calltoaction","bg-warning"],[1,"flexinner"],[1,"btn","btn-success",2,"font-size","large",3,"click"]],template:function(e,t){1&e&&(ji(0,"div",0),ji(1,"div",1),ji(2,"div",2),ji(3,"h2",3),fo(4,"Cloud Rendering Services"),Li(),ji(5,"h3"),fo(6,"Render your 3D software files"),Li(),ji(7,"ul"),ji(8,"li"),fo(9,"We use NVIDIA T4 Tensor Core "),ji(10,"span",4),fo(11,"GPUs"),Li(),fo(12," to render your images quickly. "),Li(),ji(13,"li"),fo(14,"All new users are given "),ji(15,"span",4),fo(16,"free credits"),Li(),fo(17," to try the service, to test the speed and value for money."),Li(),ji(18,"li"),fo(19,"Currently supports files produced by "),ji(20,"span",4),fo(21,"Blender"),Li(),Li(),Li(),ji(22,"h3"),fo(23,"How it works in 5 easy steps"),Li(),ji(24,"ol"),ji(25,"li"),ji(26,"span",4),fo(27,"Register"),Li(),fo(28," your account (no credit card required)"),Li(),ji(29,"li"),ji(30,"span",4),fo(31,"Click on the link"),Li(),fo(32," in our confirmation email."),Li(),ji(33,"li"),ji(34,"span",4),fo(35,"Upload your file"),Li(),fo(36," in the My Renders page"),Li(),ji(37,"li"),ji(38,"span",4),fo(39,"Wait a little"),Li(),fo(40," while the render completes"),Li(),ji(41,"li"),ji(42,"span",4),fo(43,"Download"),Li(),fo(44," the result"),Li(),Li(),ji(45,"h3"),fo(46,"Why use our service?"),Li(),ji(47,"ul"),ji(48,"li"),fo(49,"We render while you carry on working, "),ji(50,"span",5),fo(51,"improving your productivity"),Li(),Li(),ji(52,"li"),fo(53,"Fast turn-around means you can quickly assess the results and make changes if necessary, "),ji(54,"span",5),fo(55,"improving the quality of the final result"),Li(),Li(),ji(56,"li"),fo(57,"No need to invest in expensive hardware, "),ji(58,"span",5),fo(59,"saving you money"),Li(),Li(),ji(60,"li"),fo(61,"Our pricing means "),ji(62,"span",5),fo(63,"value for money"),Li(),Li(),Li(),Mi(64,av,10,0,"div",6),Li(),ji(65,"div",7),ji(66,"div",8),Vi(67,"img",9),Vi(68,"img",10),Li(),Li(),Li(),Li()),2&e&&(ls(64),Ui("ngIf",!t.loggedIn),ls(3),eo("opacity",t.opacity1),Ui("src",t.backgroundImage1,mr),ls(1),eo("opacity",t.opacity2),Ui("src",t.backgroundImage2,mr))},directives:[vu],styles:[".backgroundimage[_ngcontent-%COMP%]{border-radius:10px;position:absolute;width:calc(100% - 30px);height:auto;background-color:#000}.backgroundimage-transition[_ngcontent-%COMP%]{transition:opacity 1.5s}.overlaytext[_ngcontent-%COMP%]{font-size:larger}.highlight[_ngcontent-%COMP%]{color:#87cefa;font-weight:bolder}.highlight2[_ngcontent-%COMP%]{color:#9acd32;font-weight:bolder}.calltoaction[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;border:px solid grey;border-radius:10px;padding:10px 0;margin-top:15px;margin-bottom:15px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.flexinner[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.flexinner[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0}"]}),e})()},{path:"account",component:um,canActivate:[tv],resolve:[nm]},{path:"renders",component:Xy,canActivate:[tv]},{path:"credit",component:Ay,canActivate:[tv]},{path:"addcredit",component:uy,canActivate:[tv]},{path:"contact",component:vy},{path:"privacypolicy",component:ev},{path:"userauth",component:ov},{path:"logout",component:nv},{path:"**",redirectTo:"cloud-rendering-services"}];let cv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e}),e.\u0275inj=ue({imports:[[Tg.forRoot(lv)],Tg]}),e})(),uv=(()=>{class e{constructor(e,t,n){this.meta=e,this.title=t,this.router=n,this.metadatas=[{route:"*",title:"Cloud Rendering Services for Blender",keywords:"cloud rendering service, blender cloud rendering, best render farms, render blender online",description:"Render your Blender projects easily, quickly and cheaply using our Cloud Rendering Services - improve productivity, quality, meet deadlines and save money!"}],console.log("constructor"),this.router.events.subscribe(e=>{e instanceof Fd&&this.setMetaData(e.urlAfterRedirects)})}setMetaData(e){for(let t of this.metadatas){if(t.route!=e&&"*"!=t.route)continue;let n=t.title;return""!=n&&(n+=" ["+(new Date).getFullYear()+"]"),this.title.setTitle(n),this.meta.updateTag({name:"keywords",content:t.keywords},"name=keywords"),void this.meta.updateTag({name:"description",content:t.description},"name=description")}}}return e.\u0275fac=function(t){return new(t||e)(ir(oh),ir(ch),ir(hg))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),hv=(()=>{class e{constructor(){this._cookieConsent=0,this._privacyPolicyConsent=0,this.retrievedLocalData=!1}retrieveLocalData(){this.retrievedLocalData=!0;const e=localStorage.getItem("privacyPolicyConsent");this._privacyPolicyConsent=e?+e:0;const t=localStorage.getItem("cookieConsent");this._cookieConsent=t?+t:0}agreeCookies(){this._cookieConsent=1,localStorage.setItem("cookieConsent",this._cookieConsent.toString()),localStorage.setItem("privacyPolicyConsent",this._privacyPolicyConsent.toString())}disagreeCookies(){this._cookieConsent=-1,localStorage.clear()}agreePrivacyPolicy(){this._privacyPolicyConsent=1,1==this._cookieConsent&&localStorage.setItem("privacyPolicyConsent",this._privacyPolicyConsent.toString())}get cookieConsent(){return this.retrievedLocalData||this.retrieveLocalData(),this._cookieConsent}get privacyPolicyConsent(){return this.retrievedLocalData||this.retrieveLocalData(),this._privacyPolicyConsent}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dv(e,t){if(1&e){const e=Hi();ji(0,"div",1),ji(1,"div",2),fo(2," This site temporarily stores information on your machine, including cookies. "),ji(3,"a",3),fo(4,"More info (external site)"),Li(),Li(),ji(5,"div",4),ji(6,"button",5),qi("click",function(){return It(e),Gi().onClickOKCookies()}),fo(7," I'm OK with that "),Li(),Li(),Li()}}let pv=(()=>{class e{constructor(e){this.cookieControlService=e}ngOnInit(){}onClickOKCookies(){this.cookieControlService.agreeCookies()}onClickNotOKCookies(){this.cookieControlService.disagreeCookies()}onClickOKPrivacyPolicy(){this.cookieControlService.agreePrivacyPolicy()}get cookieConsent(){return this.cookieControlService.cookieConsent}get privacyPolicyConsent(){return this.cookieControlService.privacyPolicyConsent}}return e.\u0275fac=function(t){return new(t||e)(Ni(hv))},e.\u0275cmp=Ve({type:e,selectors:[["app-cookie-control"]],decls:1,vars:1,consts:[["class","alert-warning cookiewarningouter",4,"ngIf"],[1,"alert-warning","cookiewarningouter"],[1,"col-md-9"],["target","_blank","href","https://www.allaboutcookies.org/cookies/",1,"btn","btn-info","buttonpadding"],[1,"col-md-3"],[1,"btn","btn-success","pull-right","buttonpadding",3,"click"]],template:function(e,t){1&e&&Mi(0,dv,8,0,"div",0),2&e&&Ui("ngIf",0==t.cookieConsent)},directives:[vu],styles:[".cookiewarningouter[_ngcontent-%COMP%]{position:fixed;bottom:0;display:block;overflow:auto;padding:10px;margin-top:10px;margin-bottom:0;width:100%;z-index:10}.buttonpadding[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px;margin-left:10px}"]}),e})();function fv(e,t){1&e&&Vi(0,"span",15)}function gv(e,t){1&e&&(ji(0,"li",8),ji(1,"a",16),fo(2,"My Renders"),Li(),Li())}function mv(e,t){1&e&&(ji(0,"li",8),ji(1,"a",17),fo(2,"My Credit Transactions"),Li(),Li())}function yv(e,t){1&e&&(ji(0,"li",8),ji(1,"a",18),fo(2,"Buy More Credits"),Li(),Li())}function vv(e,t){if(1&e&&(ji(0,"li"),ji(1,"a"),fo(2),za(3,"number"),Li(),Li()),2&e){const e=Gi();ls(1),no("alert alert-warning"+(e.isAvailableCreditsOld?" gray":"")+" creditboxinner"),ls(1),mo("Reserved credits: ",qa(3,3,e.reservedCredits)," ")}}function bv(e,t){if(1&e&&(ji(0,"li"),ji(1,"a"),fo(2),za(3,"number"),Li(),Li()),2&e){const e=Gi();ls(1),no("alert "+(e.availableCredits>=500?"alert-info":"alert-warning")+(e.isAvailableCreditsOld?" gray":"")+" creditboxinner"),ls(1),mo("Available credits: ",qa(3,3,e.availableCredits)," ")}}function wv(e,t){1&e&&(ji(0,"li",8),ji(1,"a",19),fo(2,"Authentication"),Li(),Li())}function _v(e,t){1&e&&(ji(0,"li",8),ji(1,"a",20),fo(2,"Logout"),Li(),Li())}const Cv=function(){return[1,2,3]};let Sv=(()=>{class e{constructor(e,t,n){this.userAuth=e,this.pageHeaderService=t,this.metadata=n,this.collapsed=!0,this.isAvailableCreditsOld=!0,this.refreshTimerSubscription=null}ngOnInit(){this.refreshTimerSubscription=Bg(1e3,1e3).subscribe(e=>{this.isAvailableCreditsOld=this.pageHeaderService.isAvailableCreditsOld()})}ngOnDestroy(){this.refreshTimerSubscription&&this.refreshTimerSubscription.unsubscribe()}get loggedIn(){return this.userAuth.loggedIn}get availableCredits(){return this.pageHeaderService.availableCredits}get reservedCredits(){return this.pageHeaderService.reservedCredits}}return e.\u0275fac=function(t){return new(t||e)(Ni(Jg),Ni(Xg),Ni(uv))},e.\u0275cmp=Ve({type:e,selectors:[["app-page-header"]],decls:27,vars:11,consts:[[1,"navbar","navbar-default"],[1,"container-fluid"],[1,"navbar-header"],["type","button",1,"navbar-toggle",3,"click"],["class","icon-bar",4,"ngFor","ngForOf"],["routerLink","/cloud-rendering-services",1,"navbar-brand"],[1,"navbar-collapse",3,"resize"],[1,"nav","navbar-nav"],["routerLinkActive","active"],["routerLink","/account"],["routerLinkActive","active",4,"ngIf"],[1,"nav","navbar-nav","navbar-right"],[4,"ngIf"],["routerLink","/privacypolicy"],["routerLink","/contact"],[1,"icon-bar"],["routerLink","/renders"],["routerLink","/credit"],["routerLink","/addcredit"],["routerLink","/userauth"],["routerLink","/logout"]],template:function(e,t){1&e&&(ji(0,"nav",0),ji(1,"div",1),ji(2,"div",2),ji(3,"button",3),qi("click",function(){return t.collapsed=!t.collapsed}),Mi(4,fv,1,0,"span",4),Li(),ji(5,"a",5),fo(6,"ToRenderIT"),Li(),Li(),ji(7,"div",6),qi("resize",function(){return t.collapsed=!0},!1,Sr),ji(8,"ul",7),ji(9,"li",8),ji(10,"a",9),fo(11,"My Account"),Li(),Li(),Mi(12,gv,3,0,"li",10),Mi(13,mv,3,0,"li",10),Mi(14,yv,3,0,"li",10),Li(),ji(15,"ul",11),Mi(16,vv,4,5,"li",12),Mi(17,bv,4,5,"li",12),ji(18,"li",8),ji(19,"a",13),fo(20,"Privacy Policy"),Li(),Li(),ji(21,"li",8),ji(22,"a",14),fo(23,"Contact Us"),Li(),Li(),Mi(24,wv,3,0,"li",10),Mi(25,_v,3,0,"li",10),Li(),Li(),Li(),Li(),Vi(26,"app-cookie-control")),2&e&&(ls(4),Ui("ngForOf",function(e,t,n){const r=Ut()+10,s=Et();return s[r]===as?Oi(s,r,t()):function(e,t){return e[t]}(s,r)}(0,Cv)),ls(3),to("collapse",t.collapsed),ls(5),Ui("ngIf",t.loggedIn),ls(1),Ui("ngIf",t.loggedIn),ls(1),Ui("ngIf",t.loggedIn),ls(2),Ui("ngIf",0!=t.reservedCredits&&t.loggedIn),ls(1),Ui("ngIf",t.loggedIn&&0!=t.availableCredits),ls(7),Ui("ngIf",!t.loggedIn),ls(1),Ui("ngIf",t.loggedIn))},directives:[mu,pg,gg,vu,pv],pipes:[Su],styles:[".creditboxinner[_ngcontent-%COMP%]{position:relative;top:-px;padding:5px;margin:8px 10px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.gray[_ngcontent-%COMP%]{background-color:#e0e0e0;color:gray;border-color:gray}"]}),e})(),kv=(()=>{class e{constructor(e){this.googleAnalyticsService=e,this.title="torenderit"}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(Ni(pm))},e.\u0275cmp=Ve({type:e,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"container-fluid","page-background-image"]],template:function(e,t){1&e&&(Vi(0,"app-page-header"),ji(1,"div",0),Vi(2,"router-outlet"),Li())},directives:[Sv,mg],styles:[""]}),e})(),xv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=qe({type:e,bootstrap:[kv]}),e.\u0275inj=ue({providers:[],imports:[[sh,cv,Wh,sy]]}),e})();(function(){if(Wl)throw new Error("Cannot enable prod mode after platform setup.");Bl=!1})(),nh().bootstrapModule(xv).catch(e=>console.error(e))}},e=>{"use strict";e(e.s=589)}]);