(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function s(e){return"function"==typeof e}n.r(t);let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof u?t.errors:t),[])}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 m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends f{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;s(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==a&&(o=Object.create(t),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const g=(()=>"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:s}=this,r=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(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=_(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[g](){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=_(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function _(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 b 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 S extends f{constructor(e){super(e),this.destination=e}}let x=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(e){const t=new C(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;rnew C(e,t),e})();class C extends x{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 k(e){return e&&"function"==typeof e.schedule}function E(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const I=e=>t=>{for(let n=0,s=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function N(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const D=e=>{if(e&&"function"==typeof e[g])return s=e,e=>{const t=s[g]();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(N(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[R])return t=e,e=>{const n=t[R]();for(;;){let t;try{t=n.next()}catch(s){return e.error(s),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,s};function F(e,t){return new v(n=>{const s=new h;let r=0;return s.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()})),s})}function j(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[g]}(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>{const r=e[g]();s.add(r.subscribe({next(e){s.add(t.schedule(()=>n.next(e)))},error(e){s.add(t.schedule(()=>n.error(e)))},complete(){s.add(t.schedule(()=>n.complete()))}}))})),s})}(e,t);if(N(e))return function(e,t){return new v(n=>{const s=new h;return s.add(t.schedule(()=>e.then(e=>{s.add(t.schedule(()=>{n.next(e),s.add(t.schedule(()=>n.complete()))}))},e=>{s.add(t.schedule(()=>n.error(e)))}))),s})}(e,t);if(P(e))return F(e,t);if(function(e){return e&&"function"==typeof e[R]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const s=new h;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(()=>{r=e[R](),s.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(s){return void n.error(s)}t?n.complete():(n.next(e),this.schedule())}))})),s})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(D(e))}class M 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 L extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function U(e,t){if(t.closed)return;if(e instanceof v)return e.subscribe(t);let n;try{n=D(e)(t)}catch(s){t.error(s)}return n}function q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?s=>s.pipe(q((n,s)=>j(e(n,s)).pipe(E((e,r)=>t(n,e,s,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new H(e,n)))}class H{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new $(e,this.project,this.concurrent))}}class $ extends L{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 B(e=Number.POSITIVE_INFINITY){return q(y,e)}function V(e,t){return t?F(e,t):new v(I(e))}function z(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return k(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:B(t)(V(e,n))}function W(){return function(e){return e.lift(new Q(e))}}class Q{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new K(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class K extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class 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 Y(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return W()(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 Y extends S{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 J(){return new x}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("Could not find renamed property on target object.")}function ee(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ee).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 te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ne=X({__forward_ref__:X});function se(e){return e.__forward_ref__=se,e.toString=function(){return ee(this())},e}function re(e){return"function"==typeof(t=e)&&t.hasOwnProperty(ne)&&t.__forward_ref__===se?e():e;var t}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,ge)}function de(e,t){return e.hasOwnProperty(t)?e[t]:null}function pe(e){return e&&(e.hasOwnProperty(me)||e.hasOwnProperty(ye))?e[me]:null}const fe=X({"\u0275prov":X}),me=X({"\u0275inj":X}),ge=X({ngInjectableDef:X}),ye=X({ngInjectorDef:X});var ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let _e;function we(e){const t=_e;return _e=e,t}function be(e,t,n){const s=he(e);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:n&ve.Optional?null:void 0!==t?t:void le(ee(e),"Injector")}function Se(e){return{toString:e}.toString()}var xe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ce=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const ke="undefined"!=typeof globalThis&&globalThis,Ee="undefined"!=typeof window&&window,Te="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ae="undefined"!=typeof global&&global,Ie=ke||Ae||Ee||Te,Oe={},Re=[],Pe=[],Ne=X({"\u0275cmp":X}),De=X({"\u0275dir":X}),Fe=X({"\u0275pipe":X}),je=X({"\u0275mod":X}),Me=X({"\u0275loc":X}),Le=X({"\u0275fac":X}),Ue=X({__NG_ELEMENT_ID__:X});let qe=0;function He(e){return Se(()=>{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===xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Pe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ce.Emulated,id:"c",styles:e.styles||Pe,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,r=e.features,i=e.pipes;return n.id+=qe++,n.inputs=We(e.inputs,t),n.outputs=We(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map($e):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(Be):null,n})}function $e(e){return Ge(e)||function(e){return e[De]||null}(e)}function Be(e){return function(e){return e[Fe]||null}(e)}const Ve={};function ze(e){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&&Se(()=>{Ve[e.id]=e.type}),t}function We(e,t){if(null==e)return Oe;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),n[r]=s,t&&(t[r]=i)}return n}const Qe=He;function Ke(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ge(e){return e[Ne]||null}function Ze(e,t){const n=e[je]||null;if(!n&&!0===t)throw new Error(`Type ${ee(e)} does not have '\u0275mod' property.`);return n}const Ye=20,Je=10;function Xe(e){return Array.isArray(e)&&"object"==typeof e[1]}function et(e){return Array.isArray(e)&&!0===e[1]}function tt(e){return 0!=(8&e.flags)}function nt(e){return 2==(2&e.flags)}function st(e){return 1==(1&e.flags)}function rt(e){return null!==e.template}function it(e,t){return e.hasOwnProperty(Le)?e[Le]:null}class ot{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function at(){return lt}function lt(e){return e.type.prototype.ngOnChanges&&(e.setInput=ut),ct}function ct(){const e=ht(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 ut(e,t,n,s){const r=ht(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Oe,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new ot(l&&l.currentValue,t,o===Oe),e[s]=t}function ht(e){return e.__ngSimpleChanges__||null}at.ngInherit=!0;const dt="http://www.w3.org/2000/svg";let pt;function ft(){return void 0!==pt?pt:"undefined"!=typeof document?document:void 0}function mt(e){return!!e.listen}const gt={createRenderer:(e,t)=>ft()};function yt(e){for(;Array.isArray(e);)e=e[0];return e}function vt(e,t){return yt(t[e])}function _t(e,t){return yt(t[e.index])}function wt(e,t){return e.data[t]}function bt(e,t){return e[t]}function St(e,t){const n=t[e];return Xe(n)?n:n[0]}function xt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ct(e){return 4==(4&e[2])}function kt(e){return 128==(128&e[2])}function Et(e,t){return null==t?null:e[t]}function Tt(e){e[18]=0}function At(e,t){e[5]+=t;let n=e,s=e[3];for(;null!==s&&(1===t&&1===n[5]||-1===t&&0===n[5]);)s[5]+=t,n=s,s=s[3]}const It={lFrame:Xt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ot(){return It.bindingsEnabled}function Rt(){return It.lFrame.lView}function Pt(){return It.lFrame.tView}function Nt(e){It.lFrame.contextLView=e}function Dt(){let e=Ft();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ft(){return It.lFrame.currentTNode}function jt(e,t){const n=It.lFrame;n.currentTNode=e,n.isParent=t}function Mt(){return It.lFrame.isParent}function Lt(){It.lFrame.isParent=!1}function Ut(){return It.isInCheckNoChangesMode}function qt(e){It.isInCheckNoChangesMode=e}function Ht(){const e=It.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return It.lFrame.bindingIndex++}function Bt(e){const t=It.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vt(e,t){const n=It.lFrame;n.bindingIndex=n.bindingRootIndex=e,zt(t)}function zt(e){It.lFrame.currentDirectiveIndex=e}function Wt(e){const t=It.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Qt(){return It.lFrame.currentQueryIndex}function Kt(e){It.lFrame.currentQueryIndex=e}function Gt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Zt(e,t,n){if(n&ve.SkipSelf){let s=t,r=e;for(;s=s.parent,!(null!==s||n&ve.Host||(s=Gt(r),null===s)||(r=r[15],10&s.type)););if(null===s)return!1;t=s,e=r}const s=It.lFrame=Jt();return s.currentTNode=t,s.lView=e,!0}function Yt(e){const t=Jt(),n=e[1];It.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jt(){const e=It.lFrame,t=null===e?null:e.child;return null===t?Xt(e):t}function Xt(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 en(){const e=It.lFrame;return It.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tn=en;function nn(){const e=en();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 sn(){return It.lFrame.selectedIndex}function rn(e){It.lFrame.selectedIndex=e}function on(){const e=It.lFrame;return wt(e.tView,e.selectedIndex)}function an(){It.lFrame.currentNamespace=dt}function ln(){It.lFrame.currentNamespace=null}function cn(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n=s)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 mn=-1;class gn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function yn(e,t,n){const s=mt(e);let r=0;for(;rt){o=i-1;break}}}for(;i>16,s=t;for(;n>0;)s=s[15],n--;return s}let kn=!0;function En(e){const t=kn;return kn=e,t}let Tn=0;function An(e,t){const n=On(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,In(s.data,e),In(t,null),In(s.blueprint,null));const r=Rn(e,t),i=e.injectorIndex;if(Sn(r)){const e=xn(r),n=Cn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[i+r]=n[e+r]|s[e+r]}return t[i+8]=r,i}function In(e,t){e.push(0,0,0,0,0,0,0,0,t)}function On(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Rn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,s=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(s=2===t?e.declTNode:1===t?r[6]:null,null===s)return mn;if(n++,r=r[15],-1!==s.injectorIndex)return s.injectorIndex|n<<16}return mn}function Pn(e,t,n){!function(e,t,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ue)&&(s=n[Ue]),null==s&&(s=n[Ue]=Tn++);const r=255&s;t.data[e+(r>>5)]|=1<=0?255&t:Mn:t}(n);if("function"==typeof i){if(!Zt(t,e,s))return s&ve.Host?Nn(r,n,s):Dn(t,n,s,r);try{const e=i();if(null!=e||s&ve.Optional)return e;le(n)}finally{tn()}}else if("number"==typeof i){let r=null,o=On(e,t),a=mn,l=s&ve.Host?t[16][6]:null;for((-1===o||s&ve.SkipSelf)&&(a=-1===o?Rn(e,t):t[o+8],a!==mn&&$n(s,!1)?(r=t[1],o=xn(a),t=Cn(a,t)):o=-1);-1!==o;){const e=t[1];if(Hn(i,o,e.data)){const e=Ln(o,t,n,r,s,l);if(e!==jn)return e}a=t[o+8],a!==mn&&$n(s,t[1].data[o+8]===l)&&Hn(i,o,t)?(r=e,o=xn(a),t=Cn(a,t)):o=-1}}}return Dn(t,n,s,r)}const jn={};function Mn(){return new Bn(Dt(),Rt())}function Ln(e,t,n,s,r,i){const o=t[1],a=o.data[e+8],l=Un(a,o,n,null==s?nt(a)&&kn:s!=o&&0!=(3&a.type),r&ve.Host&&i===a);return null!==l?qn(t,o,l,a):jn}function Un(e,t,n,s,r){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=r?a+c:e.directiveEnd;for(let h=s?a:a+c;h=l&&e.type===n)return h}if(r){const e=o[l];if(e&&rt(e)&&e.type===n)return l}return null}function qn(e,t,n,s){let r=e[n];const i=t.data;if(r instanceof gn){const o=r;o.resolving&&function(e,t){throw new ie("200",`Circular dependency in DI detected for ${e}`)}(ae(i[n]));const a=En(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?we(o.injectImpl):null;Zt(e,s,ve.Default);try{r=e[n]=o.factory(void 0,i,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{ngOnChanges:s,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(s){const s=lt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&we(l),En(a),o.resolving=!1,tn()}}return r}function Hn(e,t,n){return!!(n[t+(e>>5)]&1<{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty(Vn)?e[Vn]:Object.defineProperty(e,Vn,{value:[]})[Vn];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class Wn{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 Qn=new Wn("AnalyzeForEntryComponents"),Kn=Function;function Gn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?Zn(e,t):t(e))}function Yn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Xn(e,t){const n=[];for(let s=0;s=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function ts(e,t){const n=ns(e,t);if(n>=0)return e[1|n]}function ns(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),i=e[n<<1];if(t===i)return n<<1;i>t?r=n:s=n+1}return~(r<<1)}(e,t)}const ss={},rs=/\n/gm,is="__source",os=X({provide:String,useValue:X});let as;function ls(e){const t=as;return as=e,t}function cs(e,t=ve.Default){if(void 0===as)throw new Error("inject() must be called from an injection context");return null===as?be(e,void 0,t):as.get(e,t&ve.Optional?null:void 0,t)}function us(e,t=ve.Default){return(_e||cs)(re(e),t)}function hs(e){const t=[];for(let n=0;n({token:e})),-1),fs=ds(zn("Optional"),8),ms=ds(zn("SkipSelf"),4);let gs,ys;function vs(e){var t;return(null===(t=function(){if(void 0===gs&&(gs=null,Ie.trustedTypes))try{gs=Ie.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return gs}())||void 0===t?void 0:t.createHTML(e))||e}function _s(e){var t;return(null===(t=function(){if(void 0===ys&&(ys=null,Ie.trustedTypes))try{ys=Ie.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return ys}())||void 0===t?void 0:t.createHTML(e))||e}class ws{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class bs extends ws{getTypeName(){return"HTML"}}class Ss extends ws{getTypeName(){return"Style"}}class xs extends ws{getTypeName(){return"Script"}}class Cs extends ws{getTypeName(){return"URL"}}class ks extends ws{getTypeName(){return"ResourceURL"}}function Es(e){return e instanceof ws?e.changingThisBreaksApplicationSecurity:e}function Ts(e,t){const n=As(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function As(e){return e instanceof ws&&e.getTypeName()||null}class Is{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(vs(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Os{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=vs(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=vs(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let s=t.length-1;0Ns(e.trim())).join(", ")),this.buf.push(" ",t,'="',Ks(o),'"')}var s;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();qs.hasOwnProperty(t)&&!js.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Ks(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Ws=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qs=/([^\#-~ |!])/g;function Ks(e){return e.replace(/&/g,"&").replace(Ws,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Qs,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Gs;function Zs(e,t){let n=null;try{Gs=Gs||function(e){const t=new Os(e);return function(){try{return!!(new window.DOMParser).parseFromString(vs(""),"text/html")}catch(e){return!1}}()?new Is(t):t}(e);let s=t?String(t):"";n=Gs.getInertBodyElement(s);let r=5,i=s;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,s=i,i=n.innerHTML,n=Gs.getInertBodyElement(s)}while(s!==i);return vs((new zs).sanitizeChildren(Ys(n)||n))}finally{if(n){const e=Ys(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Ys(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Js=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Xs(e){const t=tr();return t?_s(t.sanitize(Js.HTML,e)||""):Ts(e,"HTML")?_s(Es(e)):Zs(ft(),oe(e))}function er(e){const t=tr();return t?t.sanitize(Js.URL,e)||"":Ts(e,"URL")?Es(e):Ns(oe(e))}function tr(){const e=Rt();return e&&e[12]}function nr(e){return e.ngDebugContext}function sr(e){return e.ngOriginalError}function rr(e,...t){e.error(...t)}class ir{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),s=function(e){return e.ngErrorLogger||rr}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?nr(e)?nr(e):this._findContext(sr(e)):null}_findOriginalError(e){let t=sr(e);for(;t&&sr(t);)t=sr(t);return t}}function or(e,t){e.__ngContext__=t}const ar=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie))();function lr(e){return{name:"window",target:e.ownerDocument.defaultView}}function cr(e){return e instanceof Function?e():e}var ur=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function hr(e,t){return(void 0)(e,t)}function dr(e){const t=e[3];return et(t)?t[3]:t}function pr(e){return mr(e[13])}function fr(e){return mr(e[4])}function mr(e){for(;null!==e&&!et(e);)e=e[4];return e}function gr(e,t,n,s,r){if(null!=s){let i,o=!1;et(s)?i=s:Xe(s)&&(o=!0,s=s[0]);const a=yt(s);0===e&&null!==n?null==r?Cr(t,n,a):xr(t,n,a,r||null,!0):1===e&&null!==n?xr(t,n,a,r||null,!0):2===e?function(e,t,n){const s=Er(e,t);s&&function(e,t,n,s){mt(e)?e.removeChild(t,n,s):t.removeChild(n)}(e,s,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,s,r){const i=n[7];i!==yt(n)&&gr(t,e,s,i,r);for(let o=Je;o0&&(e[n-1][4]=s[4]);const o=Jn(e,Je+t);Dr(s[1],r=s,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var r;return s}function wr(e,t){if(!(256&t[2])){const n=t[11];mt(n)&&n.destroyNode&&Dr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return br(e[1],e);for(;t;){let n=null;if(Xe(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Xe(t)&&br(t[1],t),t=t[3];null===t&&(t=e),Xe(t)&&br(t[1],t),n=t&&t[4]}t=n}}(t)}}function br(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s=0?s[r=l]():s[r=-l].unsubscribe(),i+=2}else{const e=s[r=n[i+1]];n[i].call(e)}if(null!==s){for(let e=r+1;ei?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==Lr(t,c,0)||2&s&&c!==e){if(Vr(s))return!1;o=!0}}}}else{if(!o&&!Vr(s)&&!Vr(l))return!1;if(o&&Vr(l))continue;o=!1,s=l|1&s}}return Vr(s)||o}function Vr(e){return 0==(1&e)}function zr(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||Vr(o)||(t+=Qr(i,r),r=""),s=o,i=i||!Vr(s);n++}return""!==r&&(t+=Qr(i,r)),t}const Gr={};function Zr(e){Yr(Pt(),Rt(),sn()+e,Ut())}function Yr(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&un(t,s,n)}else{const s=e.preOrderHooks;null!==s&&hn(t,s,0,n)}rn(n)}function Jr(e,t){return e<<17|t<<2}function Xr(e){return e>>17&32767}function ei(e){return 2|e}function ti(e){return(131068&e)>>2}function ni(e,t){return-131069&e|t<<2}function si(e){return 1|e}function ri(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;sYe&&Yr(e,t,Ye,Ut()),n(s,r)}finally{rn(i)}}function di(e,t,n){if(tt(t)){const s=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(s,r,o)}}function Si(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function xi(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ci(e,t,n){if(n){if(t.exportAs)for(let s=0;s0&&Pi(n)}}function Pi(e){for(let n=pr(e);null!==n;n=fr(n))for(let e=Je;e0&&Pi(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&Pi(s)}}function Ni(e,t){const n=St(t,e),s=n[1];!function(e,t){for(let n=t.length;nPromise.resolve(null))();function qi(e){return e[7]||(e[7]=[])}function Hi(e){return e.cleanup||(e.cleanup=[])}function $i(e,t){const n=e[9],s=n?n.get(ir,null):null;s&&s.handleError(t)}function Bi(e,t,n,s,r){for(let i=0;ithis.processProvider(n,e,t)),Zn([e],e=>this.processInjectorType(e,[],r)),this.records.set(zi,no(void 0,this));const i=this.records.get(Qi);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof e?null:ee(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=ss,n=ve.Default){this.assertNotDestroyed();const s=ls(this);try{if(!(n&ve.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Wn)&&he(e);t=n&&this.injectableDefInScope(n)?no(to(e),Ki):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ve.Self?Ji():this.parent).get(e,t=n&ve.Optional&&t===ss?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(ee(e)),s)throw i;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t[is]&&r.unshift(t[is]),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=ee(t);if(Array.isArray(t))r=t.map(ee).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):ee(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(rs,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{ls(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ee(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 s=pe(e);const r=null==s&&e.ngModule||void 0,i=void 0===r?e:r,o=-1!==n.indexOf(i);if(void 0!==r&&(s=pe(r)),null==s)return!1;if(null!=s.imports&&!o){let e;n.push(i);try{Zn(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,s||Zi))}}this.injectorDefTypes.add(i);const a=it(i)||(()=>new i);this.records.set(i,no(a,Ki));const l=s.providers;if(null!=l&&!o){const t=e;Zn(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=ro(e=re(e))?e:re(e&&e.provide);const r=function(e,t,n){return so(e)?no(void 0,e.useValue):no(function(e,t,n){let s;if(ro(e)){const t=re(e);return it(t)||to(t)}if(so(e))s=()=>re(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...hs(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>us(re(e.useExisting));else{const t=re(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return it(t)||to(t);s=()=>new t(...hs(e.deps))}var r;return s}(e),Ki)}(e);if(ro(e)||!0!==e.multi)this.records.get(s);else{let t=this.records.get(s);t||(t=no(void 0,Ki,!0),t.factory=()=>hs(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===Ki&&(t.value=Gi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function to(e){const t=he(e),n=null!==t?t.factory:it(e);if(null!==n)return n;if(e instanceof Wn)throw new Error(`Token ${ee(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=Xn(t,"?");throw new Error(`Can't resolve all parameters for ${ee(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[fe]||e[ge]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function no(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function so(e){return null!==e&&"object"==typeof e&&os in e}function ro(e){return"function"==typeof e}const io=function(e,t,n){return function(e,t=null,n=null,s){const r=Xi(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let oo=(()=>{class e{static create(e,t){return Array.isArray(e)?io(e,t,""):io(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=ss,e.NULL=new Wi,e.\u0275prov=ce({token:e,providedIn:"any",factory:()=>us(zi)}),e.__NG_ELEMENT_ID__=-1,e})();function ao(e,t){cn(xt(e)[1],Dt())}let lo=null;function co(){if(!lo){const e=Ie.Symbol;if(e&&e.iterator)lo=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(yt(e[s.index])).target:s.index;if(mt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let i=0;in?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,r,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=No(s,t,0,i,!1);const e=n.listen(p.name||f,r,i);u.push(i,e),c&&c.push(r,g,m,m+1)}}else i=No(s,t,0,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}else i=No(s,t,0,i,!1);const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,It.lFrame.contextLView))[8]}(e)}function Fo(e,t,n){return jo(e,"",t,"",n),Fo}function jo(e,t,n,s,r){const i=Rt(),o=yo(i,t,n,s);return o!==Gr&&_i(Pt(),on(),i,e,o,i[11],r,!1),jo}function Mo(e,t,n,s,r){const i=e[n+1],o=null===t;let a=s?Xr(i):ti(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Lo(e[a],t)&&(l=!0,e[a+1]=s?si(n):ei(n)),a=s?Xr(n):ti(n)}l&&(e[n+1]=s?ei(i):si(i))}function Lo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ns(e,t)>=0}const Uo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qo(e){return e.substring(Uo.key,Uo.keyEnd)}function Ho(e,t){const n=Uo.textEnd;return n===t?-1:(t=Uo.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Uo.key=t,n),$o(e,t,n))}function $o(e,t,n){for(;t=0;n=Ho(t,n))es(e,qo(t),!0)}function Wo(e,t){return t>=e.expandoStartIndex}function Qo(e,t,n,s){const r=e.data;if(null===r[n+1]){const i=r[sn()],o=Wo(e,n);Xo(i,s)&&null===t&&!o&&(t=!1),t=function(e,t,n,s){const r=Wt(e);let i=s?t.residualClasses:t.residualStyles;if(null===r)0===(s?t.classBindings:t.styleBindings)&&(n=Go(n=Ko(null,e,t,n,s),t.attrs,s),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ko(r,e,t,n,s),null===i){let n=function(e,t,n){const s=n?t.classBindings:t.styleBindings;if(0!==ti(s))return e[Xr(s)]}(e,t,s);void 0!==n&&Array.isArray(n)&&(n=Ko(null,e,t,n[1],s),n=Go(n,t.attrs,s),function(e,t,n,s){e[Xr(n?t.classBindings:t.styleBindings)]=s}(e,t,s,n))}else i=function(e,t,n){let s;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)}else c=n;if(r)if(0!==l){const t=Xr(e[a+1]);e[s+1]=Jr(t,a),0!==t&&(e[t+1]=ni(e[t+1],s)),e[a+1]=131071&e[a+1]|s<<17}else e[s+1]=Jr(a,0),0!==a&&(e[a+1]=ni(e[a+1],s)),a=s;else e[s+1]=Jr(l,0),0===a?a=s:e[l+1]=ni(e[l+1],s),l=s;u&&(e[s+1]=ei(e[s+1])),Mo(e,c,s,!0),Mo(e,c,s,!1),function(e,t,n,s,r){const i=r?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ns(i,t)>=0&&(n[s+1]=si(n[s+1]))}(t,c,e,s,i),o=Jr(a,l),i?t.classBindings=o:t.styleBindings=o}(r,i,t,n,o,s)}}function Ko(e,t,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[r],i=Array.isArray(t),l=i?t[1]:t,c=null===l;let u=n[r+1];u===Gr&&(u=c?Re:void 0);let h=c?ts(u,s):l===s?u:void 0;if(i&&!Jo(h)&&(h=ts(t,s)),Jo(h)&&(a=h,o))return a;const d=e[r+1];r=o?Xr(d):ti(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=ts(e,s))}return a}function Jo(e){return void 0!==e}function Xo(e,t){return 0!=(e.flags&(t?16:32))}function ea(e,t=""){const n=Rt(),s=Pt(),r=e+Ye,i=s.firstCreatePass?oi(s,r,1,t,null):s.data[r],o=n[r]=function(e,t){return mt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ir(s,n,o,i),jt(i,!1)}function ta(e){return na("",e,""),ta}function na(e,t,n){const s=Rt(),r=yo(s,e,t,n);return r!==Gr&&function(e,t,n){const s=vt(t,e);!function(e,t,n){mt(e)?e.setValue(t,n):t.textContent=n}(e[11],s,n)}(s,sn(),r),na}function sa(e,t,n){const s=Rt();if(mo(s,$t(),t)){const r=Pt(),i=on();_i(r,i,s,e,t,function(e,t,n){return(null===e||rt(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(Wt(r.data),i,s),n,!0)}return sa}const ra=void 0;var ia=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["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"]],ra,[["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"]],ra,[["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}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","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 oa={};function aa(e){return e in oa||(oa[e]=Ie.ng&&Ie.ng.common&&Ie.ng.common.locales&&Ie.ng.common.locales[e]),oa[e]}var la=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const ca="en-US";let ua=ca;function ha(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(ua=e.toLowerCase().replace(/_/g,"-"))}class da{}class pa{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ee(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let fa=(()=>{class e{}return e.NULL=new pa,e})();function ma(...e){}function ga(e,t){return new va(_t(e,t))}const ya=function(){return ga(Dt(),Rt())};let va=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ya,e})();function _a(e){return e instanceof va?e.nativeElement:e}class wa{}let ba=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Sa(),e})();const Sa=function(){const e=Rt(),t=St(Dt().index,e);return function(e){return e[11]}(Xe(t)?t:e)};let xa=(()=>{class e{}return e.\u0275prov=ce({token:e,providedIn:"root",factory:()=>null}),e})();class Ca{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const ka=new Ca("11.2.11");class Ea{constructor(){}supports(e){return ho(e)}create(e){return new Aa(e)}}const Ta=(e,t)=>t;class Aa{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||Ta}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const i=!n||t&&t.currentIndex{s=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,e,s,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),i=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=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,r,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):e=this._addAfter(new Ia(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Ra),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 Ra),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 Ia{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 Oa{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 Ra{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Oa,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 Pa(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Fa(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 Fa{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 ja(){return new Ma([new Ea])}let Ma=(()=>{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||ja()),deps:[[e,new ms,new fs]]}}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:ja}),e})();function La(){return new Ua([new Na])}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||La()),deps:[[e,new ms,new fs]]}}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:La}),e})();function qa(e,t,n,s,r=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&s.push(yt(i)),et(i))for(let e=Je;e-1&&(_r(e,n),Jn(t,n))}this._attachedToViewContainer=!1}wr(this._lView[1],this._lView)}onDestroy(e){yi(this._lView[1],this._lView,null,e)}markForCheck(){Fi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ji(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){qt(!0);try{ji(e,t,n)}finally{qt(!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,Dr(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 $a extends Ha{constructor(e){super(e),this._view=e}detectChanges(){Mi(this._view)}checkNoChanges(){!function(e){qt(!0);try{Mi(e)}finally{qt(!1)}}(this._view)}get context(){return null}}const Ba=function(e=!1){return function(e,t,n){if(!n&&nt(e)){const n=St(e.index,t);return new Ha(n,n)}return 47&e.type?new Ha(t[16],t):null}(Dt(),Rt(),e)};let Va=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ba,e.__ChangeDetectorRef__=!0,e})();const za=[new Na],Wa=new Ma([new Ea]),Qa=new Ua(za),Ka=function(){return Ja(Dt(),Rt())};let Ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ka,e})();const Za=Ga,Ya=class extends Za{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ii(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(t)),li(t,n,e),new Ha(n)}};function Ja(e,t){return 4&e.type?new Ya(t,e,ga(e,t)):null}class Xa{}class el{}const tl=function(){return al(Dt(),Rt())};let nl=(()=>{class e{}return e.__NG_ELEMENT_ID__=tl,e})();const sl=nl,rl=class extends sl{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Bn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Rn(this._hostTNode,this._hostLView);if(Sn(e)){const t=Cn(e,this._hostLView),n=xn(e);return new Bn(t[1].data[n+8],t)}return new Bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=il(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Je}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const i=n||this.parentInjector;if(!r&&null==e.ngModule&&i){const e=i.get(Xa,null);e&&(r=e)}const o=e.create(i,s,void 0,r);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,s=n[1];if(et(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new rl(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t),i=this._lContainer;!function(e,t,n,s){const r=Je+s,i=n.length;s>0&&(n[r-1][4]=t),sar});class dl extends da{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Kr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ul(this.componentDef.inputs)}get outputs(){return ul(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const i=e.get(n,ll,r);return i!==ll||s===ll?i:t.get(n,s,r)}}}(e,s.injector):e,i=r.get(wa,gt),o=r.get(xa,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(mt(e))return e.selectRootElement(t,n===Ce.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(a,n,this.componentDef.encapsulation):yr(i.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?dt:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:ar,clean:Ui,playerHandler:null,flags:0},d=gi(0,null,null,1,0,null,null,null,null,null),p=ii(null,d,h,u,null,null,i,a,o,r);let f,m;Yt(p);try{const e=function(e,t,n,s,r,i){const o=n[1];n[20]=e;const a=oi(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Vi(a,l,!0),null!==e&&(yn(r,e,l),null!==a.classes&&Mr(r,e,a.classes),null!==a.styles&&jr(r,e,a.styles)));const c=s.createRenderer(e,t),u=ii(n,mi(t),null,t.onPush?64:16,n[20],a,s,c,null,null);return o.firstCreatePass&&(Pn(An(a,n),o,t.type),xi(o,a),ki(a,n.length,1)),Di(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)yn(a,c,["ng-version",ka.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s0&&Mr(a,c,t.join(" "))}if(m=wt(d,Ye),void 0!==t){const e=m.projection=[];for(let n=0;ne(o,t)),t.contentQueries){const e=Dt();t.contentQueries(1,o,e.directiveStart)}const a=Dt();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(rn(a.index),bi(n[1],a,0,a.directiveStart,a.directiveEnd,t),Si(t,o)),o}(e,this.componentDef,p,h,[ao]),li(d,p,null)}finally{nn()}return new pl(this.componentType,f,ga(m,p),p,m)}}class pl extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new $a(s),this.componentType=e}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const fl=new Map;class ml extends Xa{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const n=Ze(e),s=e[Me]||null;s&&ha(s),this._bootstrapComponents=cr(n.bootstrap),this._r3Injector=Xi(e,t,[{provide:Xa,useValue:this},{provide:fa,useValue:this.componentFactoryResolver}],ee(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=oo.THROW_IF_NOT_FOUND,n=ve.Default){return e===oo||e===Xa||e===zi?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 gl extends el{constructor(e){super(),this.moduleType=e,null!==Ze(e)&&function(e){const t=new Set;!function e(n){const s=Ze(n,!0),r=s.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ee(t)} vs ${ee(t.name)}`)}(r,fl.get(r),n),fl.set(r,n));const i=cr(s.imports);for(const o of i)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new ml(this.moduleType,e)}}function yl(e,t,n,s){return _l(Rt(),Ht(),e,t,n,s)}function vl(e,t){const n=e[t];return n===Gr?void 0:n}function _l(e,t,n,s,r,i){const o=t+n;return mo(e,o,r)?fo(e,o+1,i?s.call(i,r):s(r)):vl(e,o+1)}function wl(e,t){const n=Pt();let s;const r=e+Ye;n.firstCreatePass?(s=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const s=t[n];if(e===s.name)return s}throw new ie("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,s.onDestroy)):s=n.data[r];const i=s.factory||(s.factory=it(s.type)),o=we(wo);try{const e=En(!1),t=i();return En(e),function(e,t,n,s){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=s}(n,Rt(),r,t),t}finally{we(o)}}function bl(e,t,n){const s=e+Ye,r=Rt(),i=bt(r,s);return xl(r,Sl(r,s)?_l(r,Ht(),t,i.transform,n,i):i.transform(n))}function Sl(e,t){return e[1].data[t].pure}function xl(e,t){return uo.isWrapped(t)&&(t=uo.unwrap(t),e[It.lFrame.bindingIndex]=Gr),t}function Cl(e){return t=>{setTimeout(e,void 0,t)}}const kl=class extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var s,r,i;let o=e,a=t||(()=>null),l=n;if(e&&"object"==typeof e){const t=e;o=null===(s=t.next)||void 0===s?void 0:s.bind(t),a=null===(r=t.error)||void 0===r?void 0:r.bind(t),l=null===(i=t.complete)||void 0===i?void 0:i.bind(t)}this.__isAsync&&(a=Cl(a),o&&(o=Cl(o)),l&&(l=Cl(l)));const c=super.subscribe({next:o,error:a,complete:l});return e instanceof h&&e.add(c),c}};function El(){return this._results[co()]()}class Tl{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=co(),n=Tl.prototype;n[t]||(n[t]=El)}get changes(){return this._changes||(this._changes=new kl)}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 s=Gn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let s=0;s0)s.push(o[e/2]);else{const r=i[e+1],o=t[-n];for(let e=Je;e{class e{constructor(e){this.appInits=e,this.resolve=ma,this.reject=ma,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()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(us(Vl,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Wl=new Wn("AppId"),Ql={provide:Wl,useFactory:function(){return`${Kl()}${Kl()}${Kl()}`},deps:[]};function Kl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gl=new Wn("Platform Initializer"),Zl=new Wn("Platform ID"),Yl=new Wn("appBootstrapListener");let Jl=(()=>{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 Xl=new Wn("LocaleId"),ec=new Wn("DefaultCurrencyCode");class tc{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const nc=function(e){return new gl(e)},sc=nc,rc=function(e){return Promise.resolve(nc(e))},ic=function(e){const t=nc(e),n=cr(Ze(e).declarations).reduce((e,t)=>{const n=Ge(t);return n&&e.push(new dl(n)),e},[]);return new tc(t,n)},oc=ic,ac=function(e){return Promise.resolve(ic(e))};let lc=(()=>{class e{constructor(){this.compileModuleSync=sc,this.compileModuleAsync=rc,this.compileModuleAndAllComponentsSync=oc,this.compileModuleAndAllComponentsAsync=ac}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const cc=(()=>Promise.resolve(0))();function uc(e){"undefined"==typeof Zone?cc.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class hc{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kl(!1),this.onMicrotaskEmpty=new kl(!1),this.onStable=new kl(!1),this.onError=new kl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&t,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let e=Ie.requestAnimationFrame,t=Ie.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ie,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fc(e),pc(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,s,r,i,o,a)=>{try{return mc(e),n.invokeTask(r,i,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),gc(e)}},onInvoke:(n,s,r,i,o,a,l)=>{try{return mc(e),n.invoke(r,i,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),gc(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,fc(e),pc(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!hc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(hc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,e,dc,ma,ma);try{return r.runTask(i,t,n)}finally{r.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const dc={};function pc(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 fc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function mc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gc(e){e._nesting--,pc(e)}class yc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kl,this.onMicrotaskEmpty=new kl,this.onStable=new kl,this.onError=new kl}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let vc=(()=>{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:()=>{hc.assertNotInAngularZone(),uc(()=>{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())uc(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(us(hc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),_c=(()=>{class e{constructor(){this._applications=new Map,Sc.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 Sc.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class wc{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let bc,Sc=new wc,xc=!0,Cc=!1;const kc=new Wn("AllowMultipleToken");class Ec{constructor(e,t){this.name=e,this.token=t}}function Tc(e,t,n=[]){const s=`Platform: ${t}`,r=new Wn(s);return(t=[])=>{let i=Ac();if(!i||i.injector.get(kc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Qi,useValue:"platform"});!function(e){if(bc&&!bc.destroyed&&!bc.injector.get(kc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bc=e.get(Ic);const t=e.get(Gl,null);t&&t.forEach(e=>e())}(oo.create({providers:e,name:s}))}return function(e){const t=Ac();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ac(){return bc&&!bc.destroyed?bc:null}let Ic=(()=>{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 yc:("zone.js"===e?void 0:e)||new hc({enableLongStackTrace:(Cc=!0,xc),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}),s=[{provide:hc,useValue:n}];return n.run(()=>{const t=oo.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),i=r.injector.get(ir,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)}});r.onDestroy(()=>{Pc(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const s=n();return Oo(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(i,n,()=>{const e=r.injector.get(zl);return e.runInitializers(),e.donePromise.then(()=>(ha(r.injector.get(Xl,ca)||ca),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Oc({},t);return function(e,t,n){const s=new gl(n);return Promise.resolve(s)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Rc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ee(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)(us(oo))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Oc(e,t){return Array.isArray(t)?t.reduce(Oc,e):Object.assign(Object.assign({},e),t)}let Rc=(()=>{class e{constructor(e,t,n,s,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const 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(()=>{hc.assertNotInAngularZone(),uc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{hc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=z(i,o.pipe(e=>{return W()((t=J,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,Z);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof da?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Xa),r=n.create(oo.NULL,[],t||n.selector,s),i=r.location.nativeElement,o=r.injector.get(vc,null),a=o&&r.injector.get(_c);return o&&a&&a.registerApplication(i,o),r.onDestroy(()=>{this.detachView(r.hostView),Pc(this.components,r),a&&a.unregisterApplication(i)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}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;Pc(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Yl,[]).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)(us(hc),us(oo),us(ir),us(fa),us(zl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Pc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nc{}class Dc{}const Fc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Fc}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,s]=e.split("#");return void 0===s&&(s="default"),n("zn8P")(t).then(e=>e[s]).then(e=>Mc(e,t,s)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,s]=e.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[s+r]).then(e=>Mc(e,t,s))}}return e.\u0275fac=function(t){return new(t||e)(us(lc),us(Dc,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Mc(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const Lc=Tc(null,"core",[{provide:Zl,useValue:"unknown"},{provide:Ic,deps:[oo]},{provide:_c,deps:[]},{provide:Jl,deps:[]}]),Uc=[{provide:Rc,useClass:Rc,deps:[hc,oo,ir,fa,zl]},{provide:hl,deps:[hc],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:zl,useClass:zl,deps:[[new fs,Vl]]},{provide:lc,useClass:lc,deps:[]},Ql,{provide:Ma,useFactory:function(){return Wa},deps:[]},{provide:Ua,useFactory:function(){return Qa},deps:[]},{provide:Xl,useFactory:function(e){return ha(e=e||"undefined"!=typeof $localize&&$localize.locale||ca),e},deps:[[new ps(Xl),new fs,new ms]]},{provide:ec,useValue:"USD"}];let qc=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(us(Rc))},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:Uc}),e})(),Hc=null;function $c(){return Hc}const Bc=new Wn("DocumentToken");let Vc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({factory:zc,token:e,providedIn:"platform"}),e})();function zc(){return us(Qc)}const Wc=new Wn("Location Initialized");let Qc=(()=>{class e extends Vc{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=$c().getLocation(),this._history=$c().getHistory()}getBaseHrefFromDOM(){return $c().getBaseHref(this._doc)}onPopState(e){$c().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){$c().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Kc()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Kc()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(us(Bc))},e.\u0275prov=ce({factory:Gc,token:e,providedIn:"platform"}),e})();function Kc(){return!!window.history.pushState}function Gc(){return new Qc(us(Bc))}function Zc(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 Yc(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 Jc(e){return e&&"?"!==e[0]?"?"+e:e}let Xc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({factory:eu,token:e,providedIn:"root"}),e})();function eu(e){const t=us(Bc).location;return new nu(us(Vc),t&&t.origin||"")}const tu=new Wn("appBaseHref");let nu=(()=>{class e extends Xc{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Zc(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Jc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,s){const r=this.prepareExternalUrl(n+Jc(s));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,s){const r=this.prepareExternalUrl(n+Jc(s));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(us(Vc),us(tu,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),su=(()=>{class e extends Xc{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Zc(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,s){let r=this.prepareExternalUrl(n+Jc(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,s){let r=this.prepareExternalUrl(n+Jc(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(us(Vc),us(tu,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),ru=(()=>{class e{constructor(e,t){this._subject=new kl,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Yc(ou(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+Jc(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ou(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+Jc(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jc(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(us(Xc),us(Vc))},e.normalizeQueryParams=Jc,e.joinWithSlash=Zc,e.stripTrailingSlash=Yc,e.\u0275prov=ce({factory:iu,token:e,providedIn:"root"}),e})();function iu(){return new ru(us(Xc),us(Vc))}function ou(e){return e.replace(/\/index.html$/,"")}var au=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class lu{}let cu=(()=>{class e extends lu{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=aa(t);if(n)return n;const s=t.split("-")[0];if(n=aa(s),n)return n;if("en"===s)return ia;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[la.PluralCase]}(t||this.locale)(e)){case au.Zero:return"zero";case au.One:return"one";case au.Two:return"two";case au.Few:return"few";case au.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(us(Xl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function uu(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}let hu=(()=>{class e{constructor(e,t,n,s){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(ho(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ee(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(wo(Ma),wo(Ua),wo(va),wo(ba))},e.\u0275dir=Qe({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class du{constructor(e,t,n,s){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pu=(()=>{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,s)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new du(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new fu(e,n);t.push(r)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const i=new fu(e,r);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)(wo(nl),wo(Ga),wo(Ma))},e.\u0275dir=Qe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class fu{constructor(e,t){this.record=e,this.view=t}}let mu=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new gu,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){yu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){yu("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)(wo(nl),wo(Ga))},e.\u0275dir=Qe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class gu{constructor(){this.$implicit=null,this.ngIf=null}}function yu(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ee(t)}'.`)}class vu{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _u=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new vu(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(wo(nl),wo(Ga),wo(_u,1))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),bu=(()=>{class e{constructor(e,t,n){n._addDefault(new vu(e,t))}}return e.\u0275fac=function(t){return new(t||e)(wo(nl),wo(Ga),wo(_u,1))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Su=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(wo(nl))},e.\u0275dir=Qe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[at]}),e})(),xu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:[{provide:lu,useClass:cu}]}),e})(),Cu=(()=>{class e{}return e.\u0275prov=ce({token:e,providedIn:"root",factory:()=>new ku(us(Bc),window)}),e})();class ku{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 s=n.currentNode;for(;s;){const e=s.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}s=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[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 Tu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new Tu,Hc||(Hc=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Iu||(Iu=document.querySelector("base"),Iu)?Iu.getAttribute("href"):null;return null==t?null:(n=t,Au||(Au=document.createElement("a")),Au.setAttribute("href",n),"/"===Au.pathname.charAt(0)?Au.pathname:"/"+Au.pathname);var n}resetBaseElement(){Iu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return uu(document.cookie,e)}}let Au,Iu=null;const Ou=new Wn("TRANSITION_ID"),Ru=[{provide:Vl,useFactory:function(e,t,n){return()=>{n.get(zl).donePromise.then(()=>{const n=$c();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Ou,Bc,oo],multi:!0}];class Pu{static init(){var e;e=new Pu,Sc=e}addToWindow(e){Ie.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ie.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ie.getAllAngularRootElements=()=>e.getAllRootElements(),Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push(e=>{const t=Ie.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach(function(e){e.whenStable(r)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?$c().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Nu=new Wn("EventManagerPlugins");let Du=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s{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})(),Mu=(()=>{class e extends ju{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>$c().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(us(Bc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Lu={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/"},Uu=/%COMP%/g;function qu(e,t,n){for(let s=0;s{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let $u=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Bu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ce.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new Vu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Ce.ShadowDom:return new zu(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)(us(Du),us(Mu),us(Wl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class Bu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Lu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=Lu[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=Lu[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&(ur.DashCase|ur.Important)?e.style.setProperty(t,n,s&ur.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ur.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,Hu(n)):this.eventManager.addEventListener(e,t,Hu(n))}}class Vu extends Bu{constructor(e,t,n,s){super(e),this.component=n;const r=qu(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Uu,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Uu,s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class zu extends Bu{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=qu(s.id,s.styles,[]);for(let i=0;i{class e extends Fu{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)(us(Bc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Qu=["alt","control","meta","shift"],Ku={"\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"},Gu={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"},Zu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Yu=(()=>{class e extends Fu{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),i=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$c().onAndCancel(t,r.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let i="";if(Qu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Gu.hasOwnProperty(t)&&(t=Gu[t]))}return Ku[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Qu.forEach(s=>{s!=n&&(0,Zu[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(us(Bc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Ju=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({factory:function(){return us(Xu)},token:e,providedIn:"root"}),e})(),Xu=(()=>{class e extends Ju{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Js.NONE:return t;case Js.HTML:return Ts(t,"HTML")?Es(t):Zs(this._doc,String(t)).toString();case Js.STYLE:return Ts(t,"Style")?Es(t):t;case Js.SCRIPT:if(Ts(t,"Script"))return Es(t);throw new Error("unsafe value used in a script context");case Js.URL:return As(t),Ts(t,"URL")?Es(t):Ns(String(t));case Js.RESOURCE_URL:if(Ts(t,"ResourceURL"))return Es(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return new bs(e)}bypassSecurityTrustStyle(e){return new Ss(e)}bypassSecurityTrustScript(e){return new xs(e)}bypassSecurityTrustUrl(e){return new Cs(e)}bypassSecurityTrustResourceUrl(e){return new ks(e)}}return e.\u0275fac=function(t){return new(t||e)(us(Bc))},e.\u0275prov=ce({factory:function(){return e=us(zi),new Xu(e.get(Bc));var e},token:e,providedIn:"root"}),e})();const eh=Tc(Lc,"browser",[{provide:Zl,useValue:"browser"},{provide:Gl,useValue:function(){Tu.makeCurrent(),Pu.init()},multi:!0},{provide:Bc,useFactory:function(){return function(e){pt=e}(document),document},deps:[]}]),th=[[],{provide:Qi,useValue:"root"},{provide:ir,useFactory:function(){return new ir},deps:[]},{provide:Nu,useClass:Wu,multi:!0,deps:[Bc,hc,Zl]},{provide:Nu,useClass:Yu,multi:!0,deps:[Bc]},[],{provide:$u,useClass:$u,deps:[Du,Mu,Wl]},{provide:wa,useExisting:$u},{provide:ju,useExisting:Mu},{provide:Mu,useClass:Mu,deps:[Bc]},{provide:vc,useClass:vc,deps:[hc]},{provide:Du,useClass:Du,deps:[Nu,hc]},[]];let nh=(()=>{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:Wl,useValue:t.appId},{provide:Ou,useExisting:Wl},Ru]}}}return e.\u0275fac=function(t){return new(t||e)(us(e,12))},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:th,imports:[xu,qc]}),e})();function sh(...e){let t=e[e.length-1];return k(t)?(e.pop(),F(e,t)):V(e)}"undefined"!=typeof window&&window;class rh extends x{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 ih extends f{notifyNext(e,t,n,s,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class oh 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 ah(e,t,n,s,r=new oh(e,n,s)){if(!r.closed)return t instanceof v?t.subscribe(r):D(t)(r)}const lh={};class ch{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new uh(e,this.resultSelector))}}class uh extends ih{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(lh),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 dh(...e){return B(1)(sh(...e))}const ph=new v(e=>e.complete());function fh(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):ph}function mh(e){return new v(t=>{let n;try{n=e()}catch(s){return void t.error(s)}return(n?j(n):fh()).subscribe(t)})}function gh(e,t){return"function"==typeof t?n=>n.pipe(gh((n,s)=>j(e(n,s)).pipe(E((e,r)=>t(n,e,s,r))))):t=>t.lift(new yh(e))}class yh{constructor(e){this.project=e}call(e,t){return t.subscribe(new vh(e,this.project))}}class vh extends L{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new M(this),s=this.destination;s.add(n),this.innerSubscription=U(e,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const _h=(()=>{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 wh(e){return t=>0===e?fh():t.lift(new bh(e))}class bh{constructor(e){if(this.total=e,this.total<0)throw new _h}call(e,t){return t.subscribe(new Sh(e,this.total))}}class Sh 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 xh(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new Ch(e,t,n))}}class Ch{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new kh(e,this.accumulator,this.seed,this.hasSeed))}}class kh extends f{constructor(e,t,n,s){super(e),this.accumulator=t,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function Eh(e,t){return function(n){return n.lift(new Th(e,t))}}class Th{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ah(e,this.predicate,this.thisArg))}}class Ah 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)}}function Ih(e){return function(t){const n=new Oh(e),s=t.lift(n);return n.caught=s}}class Oh{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Rh(e,this.selector,this.caught))}}class Rh extends L{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const s=new M(this);this.add(s);const r=U(n,s);r!==s&&this.add(r)}}}function Ph(e,t){return q(e,t,1)}function Nh(e){return function(t){return 0===e?fh():t.lift(new Dh(e))}}class Dh{constructor(e){if(this.total=e,this.total<0)throw new _h}call(e,t){return t.subscribe(new Fh(e,this.total))}}class Fh extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,s=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;rt.lift(new Mh(e))}class Mh{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new Lh(e,this.errorFactory))}}class Lh 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 Uh(){return new hh}function qh(e=null){return t=>t.lift(new Hh(e))}class Hh{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new $h(e,this.defaultValue))}}class $h 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 Bh(e,t){const n=arguments.length>=2;return s=>s.pipe(e?Eh((t,n)=>e(t,n,s)):y,wh(1),n?qh(t):jh(()=>new hh))}function Vh(){}function zh(e,t,n){return function(s){return s.lift(new Wh(e,t,n))}}class Wh{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Qh(e,this.nextOrObserver,this.error,this.complete))}}class Qh extends f{constructor(e,t,n,r){super(e),this._tapNext=Vh,this._tapError=Vh,this._tapComplete=Vh,this._tapError=n||Vh,this._tapComplete=r||Vh,s(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Vh,this._tapError=t.error||Vh,this._tapComplete=t.complete||Vh)}_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 Kh{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Gh(e,this.callback))}}class Gh extends f{constructor(e,t){super(e),this.add(new h(t))}}class Zh{constructor(e,t){this.id=e,this.url=t}}class Yh extends Zh{constructor(e,t,n="imperative",s=null){super(e,t),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Jh extends Zh{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xh extends Zh{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ed extends Zh{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class td extends Zh{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nd extends Zh{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sd extends Zh{constructor(e,t,n,s,r){super(e,t),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rd extends Zh{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class id extends Zh{constructor(e,t,n,s){super(e,t),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class od{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ad{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ld{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cd{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ud{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hd{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dd{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 pd="primary";class fd{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 md(e){return new fd(e)}function gd(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function yd(e,t,n){const s=n.path.split("/");if(s.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||s.lengths[t]===e)}return e===t}function wd(e){return Array.prototype.concat.apply([],e)}function bd(e){return e.length>0?e[e.length-1]:null}function Sd(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xd(e){return(t=e)&&"function"==typeof t.subscribe?e:Oo(e)?j(Promise.resolve(e)):sh(e);var t}function Cd(e,t,n){return n?function(e,t){return vd(e,t)}(e.queryParams,t.queryParams)&&kd(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>_d(e[n],t[n]))}(e.queryParams,t.queryParams)&&Ed(e.root,t.root)}function kd(e,t){if(!Rd(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!kd(e.children[n],t.children[n]))return!1}return!0}function Ed(e,t){return Td(e,t,t.segments)}function Td(e,t,n){if(e.segments.length>n.length)return!!Rd(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Rd(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Ed(e.children[n],t.children[n]))return!1}return!0}{const s=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!Rd(e.segments,s)&&!!e.children.primary&&Td(e.children.primary,t,r)}}class Ad{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return Dd.serialize(this)}}class Id{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Sd(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fd(this)}}class Od{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}toString(){return $d(this)}}function Rd(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class Pd{}class Nd{parse(e){const t=new Qd(e);return new Ad(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${jd(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Ld(t)}=${Ld(e)}`).join("&"):`${Ld(t)}=${Ld(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Dd=new Nd;function Fd(e){return e.segments.map(e=>$d(e)).join("/")}function jd(e,t){if(!e.hasChildren())return Fd(e);if(t){const t=e.children.primary?jd(e.children.primary,!1):"",n=[];return Sd(e.children,(e,t)=>{t!==pd&&n.push(`${t}:${jd(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return Sd(e.children,(e,s)=>{s===pd&&(n=n.concat(t(e,s)))}),Sd(e.children,(e,s)=>{s!==pd&&(n=n.concat(t(e,s)))}),n}(e,(t,n)=>n===pd?[jd(e.children.primary,!1)]:[`${n}:${jd(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Fd(e)}/${t[0]}`:`${Fd(e)}/(${t.join("//")})`}}function Md(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ld(e){return Md(e).replace(/%3B/gi,";")}function Ud(e){return Md(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qd(e){return decodeURIComponent(e)}function Hd(e){return qd(e.replace(/\+/g,"%20"))}function $d(e){return`${Ud(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Ud(e)}=${Ud(t[e])}`).join("")}`;var t}const Bd=/^[^\/()?;=#]+/;function Vd(e){const t=e.match(Bd);return t?t[0]:""}const zd=/^[^=?&#]+/,Wd=/^[^?&#]+/;class Qd{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Id([],{}):new Id([],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 Id(e,t)),n}parseSegment(){const e=Vd(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Od(qd(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Vd(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Vd(this.remaining);e&&(n=e,this.capture(n))}e[qd(t)]=qd(n)}parseQueryParam(e){const t=function(e){const t=e.match(zd);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(Wd);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const s=Hd(t),r=Hd(n);if(e.hasOwnProperty(s)){let t=e[s];Array.isArray(t)||(t=[t],e[s]=t),t.push(r)}else e[s]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Vd(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=pd);const i=this.parseChildren();t[r]=1===Object.keys(i).length?i.primary:new Id([],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 Kd{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=Gd(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Gd(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Zd(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Zd(e,this._root).map(e=>e.value)}}function Gd(e,t){if(e===t.value)return t;for(const n of t.children){const t=Gd(e,n);if(t)return t}return null}function Zd(e,t){if(e===t.value)return[t];for(const n of t.children){const s=Zd(e,n);if(s.length)return s.unshift(t),s}return[]}class Yd{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Jd(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Xd extends Kd{constructor(e,t){super(e),this.snapshot=t,ip(this,e)}toString(){return this.snapshot.toString()}}function ep(e,t){const n=function(e,t){const n=new sp([],{},{},"",{},pd,t,null,e.root,-1,{});return new rp("",new Yd(n,[]))}(e,t),s=new rh([new Od("",{})]),r=new rh({}),i=new rh({}),o=new rh({}),a=new rh(""),l=new tp(s,r,o,a,i,pd,t,n.root);return l.snapshot=n.root,new Xd(new Yd(l,[]),n)}class tp{constructor(e,t,n,s,r,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=r,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(E(e=>md(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(e=>md(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function np(e,t="emptyOnly"){const n=e.pathFromRoot;let s=0;if("always"!==t)for(s=n.length-1;s>=1;){const e=n[s],t=n[s-1];if(e.routeConfig&&""===e.routeConfig.path)s--;else{if(t.component)break;s--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class sp{constructor(e,t,n,s,r,i,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=s,this.data=r,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=md(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rp extends Kd{constructor(e,t){super(t),this.url=e,ip(this,t)}toString(){return op(this._root)}}function ip(e,t){t.value._routerState=e,t.children.forEach(t=>ip(e,t))}function op(e){const t=e.children.length>0?` { ${e.children.map(op).join(", ")} } `:"";return`${e.value}${t}`}function ap(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vd(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),vd(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nvd(e.parameters,s[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||lp(e.parent,t.parent))}function cp(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const s of n.children)if(e.shouldReuseRoute(t.value,s.value.snapshot))return cp(e,t,s);return cp(e,t)})}(e,t,n);return new Yd(s,r)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return up(t,e),e}}const n=new tp(new rh((s=t.value).url),new rh(s.params),new rh(s.queryParams),new rh(s.fragment),new rh(s.data),s.outlet,s.component,s),r=t.children.map(t=>cp(e,t));return new Yd(n,r)}var s}function up(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 Ad(n.root===e?t:fp(n.root,e,t),i,r)}function fp(e,t,n){const s={};return Sd(e.children,(e,r)=>{s[r]=e===t?n:fp(e,t,n)}),new Id(e.segments,s)}class mp{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&hp(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(dp);if(s&&s!==bd(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gp{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function yp(e,t,n){if(e||(e=new Id([],{})),0===e.segments.length&&e.hasChildren())return vp(e,t,n);const s=function(e,t,n){let s=0,r=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return i;const t=e.segments[r],o=n[s];if(dp(o))break;const a=`${o}`,l=s0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sp(a,l,t))return i;s+=2}else{if(!Sp(a,{},t))return i;s++}r++}return{match:!0,pathIndex:r,commandIndex:s}}(e,t,n),r=n.slice(s.commandIndex);if(s.match&&s.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[s]=yp(e.children[s],t,n))}),Sd(e.children,(e,t)=>{void 0===s[t]&&(r[t]=e)}),new Id(e.segments,r)}}function _p(e,t,n){const s=e.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=_p(new Id([],{}),0,e))}),t}function bp(e){const t={};return Sd(e,(e,n)=>t[n]=`${e}`),t}function Sp(e,t,n){return e==n.path&&vd(t,n.parameters)}class xp{constructor(e,t,n,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=s}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),ap(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const s=Jd(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,s[t],n),delete s[t]}),Sd(s,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const s=e.value,r=t?t.value:null;if(s===r)if(s.component){const r=n.getContext(s.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:s})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),s=n&&e.value.component?n.children:t,r=Jd(e);for(const i of Object.keys(r))this.deactivateRouteAndItsChildren(r[i],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const s=Jd(t);e.children.forEach(e=>{this.activateRoutes(e,s[e.value.outlet],n),this.forwardEvent(new hd(e.value.snapshot))}),e.children.length&&this.forwardEvent(new cd(e.value.snapshot))}activateRoutes(e,t,n){const s=e.value,r=t?t.value:null;if(ap(s),s===r)if(s.component){const r=n.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(s.component){const t=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const e=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Cp(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=s,t.resolver=r,t.outlet&&t.outlet.activateWith(s,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Cp(e){ap(e.value),e.children.forEach(Cp)}class kp{constructor(e,t){this.routes=e,this.module=t}}function Ep(e){return"function"==typeof e}function Tp(e){return e instanceof Ad}const Ap=Symbol("INITIAL_VALUE");function Ip(){return gh(e=>function(...e){let t,n;return k(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]),V(e,n).lift(new ch(t))}(e.map(e=>e.pipe(wh(1),function(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>dh(e,n,t)):t=>dh(e,t)}(Ap)))).pipe(xh((e,t)=>{let n=!1;return t.reduce((e,s,r)=>{if(e!==Ap)return e;if(s===Ap&&(n=!0),!n){if(!1===s)return s;if(r===t.length-1||Tp(s))return s}return e},e)},Ap),Eh(e=>e!==Ap),E(e=>Tp(e)?e:!0===e),wh(1)))}let Op=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ko(0,"router-outlet")},directives:function(){return[xf]},encapsulation:2}),e})();function Rp(e,t=""){for(let n=0;nFp(e)===t);return n.push(...e.filter(e=>Fp(e)!==t)),n}const Mp={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Lp(e,t,n){var s;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},Mp):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||yd)(n,e,t);if(!r)return Object.assign({},Mp);const i={};Sd(r.posParams,(e,t)=>{i[t]=e.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(s=r.posParams)&&void 0!==s?s:{}}}function Up(e,t,n,s,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>qp(e,t,n)&&Fp(n)!==pd)}(e,n,s)){const r=new Id(t,function(e,t,n,s){const r={};r.primary=s,s._sourceSegment=e,s._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Fp(i)!==pd){const n=new Id([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[Fp(i)]=n}return r}(e,t,s,new Id(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>qp(e,t,n))}(e,n,s)){const i=new Id(e.segments,function(e,t,n,s,r,i){const o={};for(const a of s)if(qp(e,n,a)&&!r[Fp(a)]){const n=new Id([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Fp(a)]=n}return Object.assign(Object.assign({},r),o)}(e,t,n,s,e.children,r));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Id(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function qp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Hp(e,t,n,s){return!!(Fp(e)===s||s!==pd&&qp(t,n,e))&&("**"===e.path||Lp(t,e,n).matched)}function $p(e,t,n){return 0===t.length&&!e.children[n]}class Bp{constructor(e){this.segmentGroup=e||null}}class Vp{constructor(e){this.urlTree=e}}function zp(e){return new v(t=>t.error(new Bp(e)))}function Wp(e){return new v(t=>t.error(new Vp(e)))}function Qp(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Kp{constructor(e,t,n,s,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(Xa)}apply(){const e=Up(this.urlTree.root,[],[],this.config).segmentGroup,t=new Id(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,pd).pipe(E(e=>this.createUrlTree(Gp(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ih(e=>{if(e instanceof Vp)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Bp)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,pd).pipe(E(t=>this.createUrlTree(Gp(t),e.queryParams,e.fragment))).pipe(Ih(e=>{if(e instanceof Bp)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const s=e.segments.length>0?new Id([],{[pd]:e}):e;return new Ad(s,t,n)}expandSegmentGroup(e,t,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(E(e=>new Id([],e))):this.expandSegment(e,n,t,n.segments,s,!0)}expandChildren(e,t,n){const s=[];for(const r of Object.keys(n.children))"primary"===r?s.unshift(r):s.push(r);return j(s).pipe(Ph(s=>{const r=n.children[s],i=jp(t,s);return this.expandSegmentGroup(e,i,r,s).pipe(E(e=>({segment:e,outlet:s})))}),xh((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return s=>s.pipe(e?Eh((t,n)=>e(t,n,s)):y,Nh(1),n?qh(t):jh(()=>new hh))}())}expandSegment(e,t,n,s,r,i){return j(n).pipe(Ph(o=>this.expandSegmentAgainstRoute(e,t,n,o,s,r,i).pipe(Ih(e=>{if(e instanceof Bp)return sh(null);throw e}))),Bh(e=>!!e),Ih((e,n)=>{if(e instanceof hh||"EmptyError"===e.name){if($p(t,s,r))return sh(new Id([],{}));throw new Bp(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,s,r,i,o){return Hp(s,t,r,i)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i):zp(t):zp(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,s,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,s){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Wp(r):this.lineralizeSegments(n,r).pipe(q(n=>{const r=new Id(n,{});return this.expandSegment(e,r,t,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,s,r,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Lp(t,s,r);if(!o)return zp(t);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?Wp(u):this.lineralizeSegments(s,u).pipe(q(s=>this.expandSegment(e,t,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,s,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?sh(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(E(e=>(n._loadedConfig=e,new Id(s,{})))):sh(new Id(s,{}));const{matched:i,consumedSegments:o,lastChild:a}=Lp(t,n,s);if(!i)return zp(t);const l=s.slice(a);return this.getChildConfig(e,n,s).pipe(q(e=>{const s=e.module,i=e.routes,{segmentGroup:a,slicedSegments:c}=Up(t,o,l,i),u=new Id(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(s,i,u).pipe(E(e=>new Id(o,e)));if(0===i.length&&0===c.length)return sh(new Id(o,{}));const h=Fp(n)===r;return this.expandSegment(s,u,i,c,h?pd:r,!0).pipe(E(e=>new Id(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?sh(new kp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?sh(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(q(n=>n?this.configLoader.load(e.injector,t).pipe(E(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(gd(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):sh(new kp([],e))}runCanLoadGuards(e,t,n){const s=t.canLoad;return s&&0!==s.length?sh(s.map(s=>{const r=e.get(s);let i;if(function(e){return e&&Ep(e.canLoad)}(r))i=r.canLoad(t,n);else{if(!Ep(r))throw new Error("Invalid CanLoad guard");i=r(t,n)}return xd(i)})).pipe(Ip(),zh(e=>{if(!Tp(e))return;const t=gd(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),E(e=>!0===e)):sh(!0)}lineralizeSegments(e,t){let n=[],s=t.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return sh(n);if(s.numberOfChildren>1||!s.children.primary)return Qp(e.redirectTo);s=s.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,s){const r=this.createSegmentGroup(e,t.root,n,s);return new Ad(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Sd(e,(e,s)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[s]=t[r]}else n[s]=e}),n}createSegmentGroup(e,t,n,s){const r=this.createSegments(e,t.segments,n,s);let i={};return Sd(t.children,(t,r)=>{i[r]=this.createSegmentGroup(e,t,n,s)}),new Id(r,i)}createSegments(e,t,n,s){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,s):this.findOrReturn(t,n))}findPosParam(e,t,n){const s=n[t.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let n=0;for(const s of t){if(s.path===e.path)return t.splice(n),s;n++}return e}}function Gp(e){const t={};for(const n of Object.keys(e.children)){const s=Gp(e.children[n]);(s.segments.length>0||s.hasChildren())&&(t[n]=s)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Id(e.segments.concat(t.segments),t.children)}return e}(new Id(e.segments,t))}class Zp{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Yp{constructor(e,t){this.component=e,this.route=t}}function Jp(e,t,n){const s=e._root;return ef(s,t?t._root:null,n,[s.value])}function Xp(e,t,n){const s=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(s?s.module.injector:n).get(e)}function ef(e,t,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=Jd(t);return e.children.forEach(e=>{!function(e,t,n,s,r={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!Rd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Rd(e.url,t.url)||!vd(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lp(e,t)||!vd(e.queryParams,t.queryParams);case"paramsChange":default:return!lp(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Zp(s)):(i.data=o.data,i._resolvedData=o._resolvedData),ef(e,t,i.component?a?a.children:null:n,s,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Yp(a.outlet.component,o))}else o&&tf(t,a,r),r.canActivateChecks.push(new Zp(s)),ef(e,null,i.component?a?a.children:null:n,s,r)}(e,i[e.value.outlet],n,s.concat([e.value]),r),delete i[e.value.outlet]}),Sd(i,(e,t)=>tf(e,n.getContext(t),r)),r}function tf(e,t,n){const s=Jd(e),r=e.value;Sd(s,(e,s)=>{tf(e,r.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Yp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class nf{}function sf(e){return new v(t=>t.error(e))}class rf{constructor(e,t,n,s,r,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=i}recognize(){const e=Up(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,pd);if(null===t)return null;const n=new sp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pd,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Yd(n,t),r=new rp(this.url,s);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=np(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 r of Object.keys(t.children)){const s=t.children[r],i=jp(e,r),o=this.processSegmentGroup(i,s,r);if(null===o)return null;n.push(...o)}const s=af(n);return s.sort((e,t)=>e.value.outlet===pd?-1:t.value.outlet===pd?1:e.value.outlet.localeCompare(t.value.outlet)),s}processSegment(e,t,n,s){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,s);if(null!==e)return e}return $p(t,n,s)?[]:null}processSegmentAgainstRoute(e,t,n,s){if(e.redirectTo||!Hp(e,t,n,s))return null;let r,i=[],o=[];if("**"===e.path){const s=n.length>0?bd(n).parameters:{};r=new sp(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,uf(e),Fp(e),e.component,e,lf(t),cf(t)+n.length,hf(e))}else{const s=Lp(t,e,n);if(!s.matched)return null;i=s.consumedSegments,o=n.slice(s.lastChild),r=new sp(i,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,uf(e),Fp(e),e.component,e,lf(t),cf(t)+i.length,hf(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Up(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 Yd(r,e)]}if(0===a.length&&0===c.length)return[new Yd(r,[])];const u=Fp(e)===s,h=this.processSegment(a,l,c,u?pd:s);return null===h?null:[new Yd(r,h)]}}function of(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function af(e){const t=[],n=new Set;for(const s of e){if(!of(s)){t.push(s);continue}const e=t.find(e=>s.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...s.children),n.add(e)):t.push(s)}for(const s of n){const e=af(s.children);t.push(new Yd(s.value,e))}return t.filter(e=>!n.has(e))}function lf(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function cf(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 uf(e){return e.data||{}}function hf(e){return e.resolve||{}}function df(e){return gh(t=>{const n=e(t);return n?j(n).pipe(E(()=>t)):sh(t)})}class pf 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 ff=new Wn("ROUTES");class mf{constructor(e,t,n,s){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=s}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const s=n.create(e);return new kp(wd(s.injector.get(ff,void 0,ve.Self|ve.Optional)).map(Dp),s)}),Ih(e=>{throw t._loader$=void 0,e}));return t._loader$=new G(n,()=>new x).pipe(W()),t._loader$}loadModuleFactory(e){return"string"==typeof e?j(this.loader.load(e)):xd(e()).pipe(q(e=>e instanceof el?sh(e):j(this.compiler.compileModuleAsync(e))))}}class gf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new yf,this.attachRef=null}}class yf{constructor(){this.contexts=new Map}onChildOutletCreated(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 gf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class vf{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function _f(e){throw e}function wf(e,t,n){return t.parse("/")}function bf(e,t){return sh(null)}let Sf=(()=>{class e{constructor(e,t,n,s,r,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new x,this.errorHandler=_f,this.malformedUriErrorHandler=wf,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bf,afterPreactivation:bf},this.urlHandlingStrategy=new vf,this.routeReuseStrategy=new pf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(Xa),this.console=r.get(Jl);const l=r.get(hc);this.isNgZoneEnabled=l instanceof hc&&hc.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Ad(new Id([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new mf(i,o,e=>this.triggerEvent(new od(e)),e=>this.triggerEvent(new ad(e))),this.routerState=ep(this.currentUrlTree,this.rootComponentType),this.transitions=new rh({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Eh(e=>0!==e.id),E(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),gh(e=>{let n=!1,s=!1;return sh(e).pipe(zh(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}}),gh(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return sh(e).pipe(gh(e=>{const n=this.transitions.getValue();return t.next(new Yh(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ph:Promise.resolve(e)}),(s=this.ngModule.injector,r=this.configLoader,i=this.urlSerializer,o=this.config,gh(e=>function(e,t,n,s,r){return new Kp(e,t,n,s,r).apply()}(s,r,i,e.extractedUrl,o).pipe(E(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),zh(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,s,r){return q(i=>function(e,t,n,s,r="emptyOnly",i="legacy"){try{const o=new rf(e,t,n,s,r,i).recognize();return null===o?sf(new nf):sh(o)}catch(o){return sf(o)}}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(E(e=>Object.assign(Object.assign({},i),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),zh(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new td(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var s,r,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:i,extras:o}=e,a=new Yh(n,this.serializeUrl(s),r,i);t.next(a);const l=ep(s,this.rootComponentType).snapshot;return sh(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ph}),df(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),zh(e=>{const t=new nd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),E(e=>Object.assign(Object.assign({},e),{guards:Jp(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return q(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?sh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,s){return j(e).pipe(q(e=>function(e,t,n,s,r){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?sh(i.map(i=>{const o=Xp(i,t,r);let a;if(function(e){return e&&Ep(e.canDeactivate)}(o))a=xd(o.canDeactivate(e,t,n,s));else{if(!Ep(o))throw new Error("Invalid CanDeactivate guard");a=xd(o(e,t,n,s))}return a.pipe(Bh())})).pipe(Ip()):sh(!0)}(e.component,e.route,n,t,s)),Bh(e=>!0!==e,!0))}(o,s,r,e).pipe(q(n=>n&&"boolean"==typeof n?function(e,t,n,s){return j(t).pipe(Ph(t=>dh(function(e,t){return null!==e&&t&&t(new ld(e)),sh(!0)}(t.route.parent,s),function(e,t){return null!==e&&t&&t(new ud(e)),sh(!0)}(t.route,s),function(e,t,n){const s=t[t.length-1],r=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=>mh(()=>sh(t.guards.map(r=>{const i=Xp(r,t.node,n);let o;if(function(e){return e&&Ep(e.canActivateChild)}(i))o=xd(i.canActivateChild(s,e));else{if(!Ep(i))throw new Error("Invalid CanActivateChild guard");o=xd(i(s,e))}return o.pipe(Bh())})).pipe(Ip())));return sh(r).pipe(Ip())}(e,t.path,n),function(e,t,n){const s=t.routeConfig?t.routeConfig.canActivate:null;return s&&0!==s.length?sh(s.map(s=>mh(()=>{const r=Xp(s,t,n);let i;if(function(e){return e&&Ep(e.canActivate)}(r))i=xd(r.canActivate(t,e));else{if(!Ep(r))throw new Error("Invalid CanActivate guard");i=xd(r(t,e))}return i.pipe(Bh())}))).pipe(Ip()):sh(!0)}(e,t.route,n))),Bh(e=>!0!==e,!0))}(s,i,e,t):sh(n)),E(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),zh(e=>{if(Tp(e.guardsResult)){const t=gd(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new sd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Eh(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Xh(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),df(e=>{if(e.guards.canActivateChecks.length)return sh(e).pipe(zh(e=>{const t=new rd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),gh(e=>{let n=!1;return sh(e).pipe((s=this.paramsInheritanceStrategy,r=this.ngModule.injector,q(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return sh(e);let i=0;return j(n).pipe(Ph(e=>function(e,t,n,s){return function(e,t,n,s){const r=Object.keys(e);if(0===r.length)return sh({});const i={};return j(r).pipe(q(r=>function(e,t,n,s){const r=Xp(e,t,s);return xd(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,s).pipe(zh(e=>{i[r]=e}))),Nh(1),q(()=>Object.keys(i).length===r.length?sh(i):ph))}(e._resolve,e,t,s).pipe(E(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),np(e,n).resolve),null)))}(e.route,t,s,r)),zh(()=>i++),Nh(1),q(t=>i===n.length?sh(e):ph))})),zh({next:()=>n=!0,complete:()=>{if(!n){const n=new Xh(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var s,r}),zh(e=>{const t=new id(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),df(e=>{const{targetSnapshot:t,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),E(e=>{const t=function(e,t,n){const s=cp(e,t._root,n?n._root:void 0);return new Xd(s,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),zh(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=e=>this.triggerEvent(e),E(e=>(new xp(o,e.targetRouterState,e.currentRouterState,a).activate(i),e))),zh({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new Xh(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null},e=>e.lift(new Kh(r))),Ih(n=>{if(s=!0,(r=n)&&r.ngNavigationCancelingError){const s=Tp(n.url);s||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new Xh(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),s?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 s=new ed(e.id,this.serializeUrl(e.extractedUrl),n);t.next(s);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var r;return ph}));var r,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:s}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(s,e,n,r)},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){Rp(e),this.config=e.map(Dp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:s,fragment:r,queryParamsHandling:i,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r;let c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,s,r){if(0===n.length)return pp(t.root,t.root,t,s,r);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new mp(!0,0,e);let t=0,n=!1;const s=e.reduce((e,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const t={};return Sd(s.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(s.segmentPath)return[...e,s.segmentPath]}return"string"!=typeof s?[...e,s]:0===r?(s.split("/").forEach((s,r)=>{0==r&&"."===s||(0==r&&""===s?n=!0:".."===s?t++:""!=s&&e.push(s))}),e):[...e,s]},[]);return new mp(n,t,s)}(n);if(i.toRoot())return pp(t.root,new Id([],{}),t,s,r);const o=function(e,t,n){if(e.isAbsolute)return new gp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new gp(e,e===t.root,0)}const s=hp(e.commands[0])?0:1;return function(e,t,n){let s=e,r=t,i=n;for(;i>r;){if(i-=r,s=s.parent,!s)throw new Error("Invalid number of '../'");r=s.segments.length}return new gp(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?vp(o.segmentGroup,o.index,i.commands):yp(o.segmentGroup,o.index,i.commands);return pp(o.segmentGroup,a,t,s,r)}(a,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=Tp(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const s=e[n];return null!=s&&(t[n]=s),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Jh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,s,r){if(this.disposed)return Promise.resolve(!1);const i=this.getTransition(),o="imperative"!==t&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((e,t)=>{l=e,c=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,s){const r=this.urlSerializer.serialize(e);s=s||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},s),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},s),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(us(Kn),us(Pd),us(yf),us(ru),us(oo),us(Nc),us(lc),us(void 0))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),xf=(()=>{class e{constructor(e,t,n,s,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new kl,this.deactivateEvents=new kl,this.name=s||pd,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),s=this.parentContexts.getOrCreateContext(this.name).children,r=new Cf(e,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(wo(yf),wo(nl),wo(fa),("name",function(e,t){const n=e.attrs;if(n){const e=n.length;let s=0;for(;s{class e{constructor(e,t,n,s,r){this.router=e,this.injector=s,this.preloadingStrategy=r,this.loader=new mf(t,n,t=>e.triggerEvent(new od(t)),t=>e.triggerEvent(new ad(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Eh(e=>e instanceof Jh),Ph(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Xa);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const s of t)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const e=s._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(e,s)):s.children&&n.push(this.processRoutes(e,s.children));return j(n).pipe(B(),E(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?sh(t._loadedConfig):this.loader.load(e.injector,t)).pipe(q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(us(Sf),us(Nc),us(lc),us(oo),us(kf))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Af=(()=>{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 Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jh&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof dd&&(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 dd(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)(us(Sf),us(Cu),us(void 0))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const If=new Wn("ROUTER_CONFIGURATION"),Of=new Wn("ROUTER_FORROOT_GUARD"),Rf=[ru,{provide:Pd,useClass:Nd},{provide:Sf,useFactory:function(e,t,n,s,r,i,o,a={},l,c){const u=new Sf(null,e,t,n,s,r,i,wd(o));if(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){const e=$c();u.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u},deps:[Pd,yf,ru,oo,Nc,lc,ff,If,[class{},new fs],[class{},new fs]]},yf,{provide:tp,useFactory:function(e){return e.routerState.root},deps:[Sf]},{provide:Nc,useClass:jc},Tf,Ef,class{preload(e,t){return t().pipe(Ih(()=>sh(null)))}},{provide:If,useValue:{enableTracing:!1}}];function Pf(){return new Ec("Router",Sf)}let Nf=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[Rf,Mf(t),{provide:Of,useFactory:jf,deps:[[Sf,new fs,new ms]]},{provide:If,useValue:n||{}},{provide:Xc,useFactory:Ff,deps:[Vc,[new ps(tu),new fs],If]},{provide:Af,useFactory:Df,deps:[Sf,Cu,If]},{provide:kf,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ef},{provide:Ec,multi:!0,useFactory:Pf},[Lf,{provide:Vl,multi:!0,useFactory:Uf,deps:[Lf]},{provide:Hf,useFactory:qf,deps:[Lf]},{provide:Yl,multi:!0,useExisting:Hf}]]}}static forChild(t){return{ngModule:e,providers:[Mf(t)]}}}return e.\u0275fac=function(t){return new(t||e)(us(Of,8),us(Sf,8))},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({}),e})();function Df(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Af(e,t,n)}function Ff(e,t,n={}){return n.useHash?new su(e,t):new nu(e,t)}function jf(e){return"guarded"}function Mf(e){return[{provide:Qn,multi:!0,useValue:e},{provide:ff,multi:!0,useValue:e}]}let Lf=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new x}appInitializer(){return this.injector.get(Wc,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Sf),s=this.injector.get(If);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?sh(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(If),n=this.injector.get(Tf),s=this.injector.get(Af),r=this.injector.get(Sf),i=this.injector.get(Rc);e===i.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),s.init(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(us(oo))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Uf(e){return e.appInitializer.bind(e)}function qf(e){return e.bootstrapListener.bind(e)}const Hf=new Wn("Router Initializer");let $f=(()=>{class e{constructor(){this.hashCode=e=>e.split("").reduce((e,t)=>(e=(e<<5)-e+t.charCodeAt(0))&e,0)}unsubscribe(...e){e.forEach(e=>{try{e.unsubscribe()}catch(t){console.error("UtilService.unsubscribe",t)}})}scroll(e,t=50){setTimeout(()=>{(document.scrollingElement||document.body).scrollTop=e},t)}questionAnswered(e){return e.reduce((e,t)=>e+(null!=t.response?1:0),0)}questionsCompleted(e){return!!(e&&e.length>0)&&this.questionAnswered(e)===e.length}scrollTop(){window.scrollTo(0,0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bf="https://echeckup.sdsu.edu",Vf={resourcesLocation:"https://interwork.sdsu.edu/echeckup/resources/campus/",imgLocation:"https://interwork.sdsu.edu/echeckup/images/",echeckupLogo:"https://interwork.sdsu.edu/echeckup/images/screener/echeckup.svg",footerLogo:"https://interwork.sdsu.edu/echeckup/images/echeckup_logo_white.png"},zf=[{id:"audit",display:"Alcohol",desc:"Thinking about my drinking habits",instructions:"Please answer the following questions about your use of alcoholic beverages during this past year.",survey:"Alcohol Use Disorders Identification Test (AUDIT)"},{id:"anxiety",display:"Anxiety",desc:"Tense and worried in general",instructions:"Over the last 2 weeks, how often have you been bothered by any of the following problems?",survey:"General Anxiety Disorder-7 (GAD-7)"},{id:"cudit",display:"Cannabis",desc:"Concerned about my cannabis usage",instructions:"Please answer the following questions about your cannabis use during the last 6 months.",survey:"Cannabis Use Disorder Identification Test (CUDIT-R)"},{id:"eating",display:"Eating and Food Concerns",desc:"Concerned about my eating habits",instructions:"This assessment may be able to help you determine if you need to speak to a mental health professional or a physician about problematic eating behaviors. It is not designed to make a diagnosis of an eating disorder. Only a qualified health care professional can provide a diagnosis. Please provide a response for each of the following statements.",survey:"Eating Attitudes Test (EAT-26)"},{id:"bipolar",display:"Bipolar",desc:"Mood changes from very high to low",instructions:"Please answer the following questions to the best of your ability.",survey:"The Mood Disorder Questionnaire (MDQ)"},{id:"depression",display:"Depression",desc:"Feeling sad, empty or down",instructions:"Over the last 2 weeks, how often have you been bothered by any of the following problems?",survey:"PATIENT HEALTH QUESTIONNAIRE-9 (PHQ-9)"},{id:"opioid",display:"Opioid",desc:"Concerned about my opioid usage",instructions:"When completing this assessment, consider opioid use that is either illicit or involves taking prescribed opioids at higher doses, more often, or for different reasons than prescribed. If opioids are taken exactly as prescribed by a doctor, do not include them in answering these questions.",survey:"Opioid questions adapted from the Alcohol, Smoking and Substance Involvement Screening Test (ASSIST)"},{id:"ptsd",display:"PTSD",desc:"Troubled by past shocking painful events",instructions:"For the trauma causing you concern, please answer the following questions about your experiences related to that trauma for the past week.",survey:"Short Post-Traumatic Stress Disorder Rating Interview (SPRINT)"}];class Wf extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class Qf extends Wf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,s=!1;try{this.work(e)}catch(r){s=!0,n=!!r&&r||new Error(r)}if(s)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Kf extends Qf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let Gf=(()=>{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 Zf extends Gf{constructor(e,t=Gf.now){super(e,()=>Zf.delegate&&Zf.delegate!==this?Zf.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Zf.delegate&&Zf.delegate!==this?Zf.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}}}class Yf extends Zf{}const Jf=new Yf(Kf);let Xf=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return sh(this.value);case"E":return e=this.error,new v(t=>t.error(e));case"C":return fh()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class em extends f{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(em.dispatch,this.delay,new tm(e,this.destination)))}_next(e){this.scheduleMessage(Xf.createNext(e))}_error(e){this.scheduleMessage(Xf.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Xf.createComplete()),this.unsubscribe()}}class tm{constructor(e,t){this.notification=e,this.destination=t}}class nm extends x{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new sm(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=n.length;let i;if(this.closed)throw new w;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(e),i=new b(this,e)),s&&e.add(e=new em(e,s)),t)for(let o=0;ot&&(i=Math.max(i,r-t)),i>0&&s.splice(0,i),s}}class sm{constructor(e,t){this.time=e,this.value=t}}class rm{}class im{}class om{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),s=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const s=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof om?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 om;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof om?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const s=("a"===e.op?this.headers.get(t):void 0)||[];s.push(...n),this.headers.set(t,s);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.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 am{encodeKey(e){return lm(e)}encodeValue(e){return lm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function lm(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class cm{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new am,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 s=e.indexOf("="),[r,i]=-1==s?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,s)),t.decodeValue(e.slice(s+1))],o=n.get(r)||[];o.push(i),n.set(r,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 s=e[n];Array.isArray(s)?s.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:s,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new cm({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function um(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function hm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function dm(e){return"undefined"!=typeof FormData&&e instanceof FormData}class pm{constructor(e,t,n,s){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new om),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]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new pm(t,n,r,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:i})}}var fm=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class mm{constructor(e,t=200,n="OK"){this.headers=e.headers||new om,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 gm extends mm{constructor(e={}){super(e),this.type=fm.ResponseHeader}clone(e={}){return new gm({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 ym extends mm{constructor(e={}){super(e),this.type=fm.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ym({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 vm extends mm{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 _m(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let wm=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let s;if(e instanceof pm)s=e;else{let r,i;r=n.headers instanceof om?n.headers:new om(n.headers),n.params&&(i=n.params instanceof cm?n.params:new cm({fromObject:n.params})),s=new pm(e,t,void 0!==n.body?n.body:null,{headers:r,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=sh(s).pipe(Ph(e=>this.handler.handle(e)));if(e instanceof pm||"events"===n.observe)return r;const i=r.pipe(Eh(e=>e instanceof ym));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return i.pipe(E(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(E(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(E(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(E(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 cm).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,_m(n,t))}post(e,t,n={}){return this.request("POST",e,_m(n,t))}put(e,t,n={}){return this.request("PUT",e,_m(n,t))}}return e.\u0275fac=function(t){return new(t||e)(us(rm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class bm{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const Sm=new Wn("HTTP_INTERCEPTORS");let xm=(()=>{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 Cm=/^\)\]\}',?\n/;class km{}let Em=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Tm=(()=>{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 s=e.serializeBody();let r=null;const i=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,s=n.statusText||"OK",i=new om(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 r=new gm({headers:i,status:t,statusText:s,url:o}),r},o=()=>{let{headers:s,status:r,statusText:o,url:a}=i(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Cm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new ym({body:l,headers:s,status:r,statusText:o,url:a||void 0})),t.complete()):t.error(new vm({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=e=>{const{url:s}=i(),r=new vm({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});t.error(r)};let l=!1;const c=s=>{l||(t.next(i()),l=!0);let r={type:fm.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(r.total=s.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:fm.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),t.next({type:fm.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(us(km))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Am=new Wn("XSRF_COOKIE_NAME"),Im=new Wn("XSRF_HEADER_NAME");class Om{}let Rm=(()=>{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=uu(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(us(Bc),us(Zl),us(Am))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Pm=(()=>{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 s=this.tokenService.getToken();return null===s||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,s)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(us(Om),us(Im))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Nm=(()=>{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(Sm,[]);this.chain=e.reduceRight((e,t)=>new bm(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(us(im),us(oo))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Dm=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Pm,useClass:xm}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Am,useValue:t.cookieName}:[],t.headerName?{provide:Im,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:[Pm,{provide:Sm,useExisting:Pm,multi:!0},{provide:Om,useClass:Rm},{provide:Am,useValue:"XSRF-TOKEN"},{provide:Im,useValue:"X-XSRF-TOKEN"}]}),e})(),Fm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:[wm,{provide:rm,useClass:Nm},Tm,{provide:im,useExisting:Tm},Em,{provide:km,useExisting:Em}],imports:[[Dm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class jm{constructor(e,t,n,s,r){this.campusId=e,this.name=t,this.country=n,this.state=s,this.url=r}}let Mm=(()=>{class e{adapt(e){return new jm(e.campusId,e.campusName,e.country,e.state,e.url)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Lm=(()=>{class e{constructor(e,t,n){this.http=e,this.campusAdapter=t,this.rendererFactory=n,this.campusSubject=new nm(1),this.campusObservable=this.campusSubject.asObservable(),this.modules=[],this.renderer=n.createRenderer(null,null)}init(e){this.http.get(`${Bf}/screener/configs/${e}`).subscribe(e=>{const t=this.campusAdapter.adapt(e.campus);this.campus=t,this.modules=e.modules,this.campusSubject.next(t)})}fetch(e,t){return this.http.get(`${Bf}/screener/${e}/fetch`,{params:{uid:t}})}loadCss(e){const t=this.renderer.createElement("link");this.renderer.setProperty(t,"rel","stylesheet"),this.renderer.setProperty(t,"href",`${Bf}/cssss/${e}`),this.renderer.insertBefore(document.head,t,document.head.firstChild)}setProduct(e){this.product=e}print(e){window.open(`${Bf}/screener/${this.campus.campusId}/${this.product}/print-api/${e}`,"_blank")}getQuestions(e){return new v(t=>{const n=setInterval(()=>{this.campus&&(e||this.product)&&(this.http.get(`${Bf}/screener/q/${this.campus.campusId}/${e||this.product}`).subscribe(e=>{t.next(e)},e=>{t.error(e)}),clearInterval(n))},500)})}get takeAScreener(){return`screener/${this.campus.campusId}/take-a-screener`}startSession(e){return`screener/${this.campus.campusId}/${e}/demographic`}get assessment(){return`screener/${this.campus.campusId}/${this.product}/assessment`}get assessmentFeedback(){return`screener/${this.campus.campusId}/${this.product}/assessment-feedback`}get changeQuestionFeedback(){return`screener/${this.campus.campusId}/${this.product}/change-question-feedback`}}return e.\u0275fac=function(t){return new(t||e)(us(wm),us(Mm),us(wa))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Um=(()=>{class e{constructor(e){this.config=e}ngOnInit(){}get campus(){return this.config.campus}onImgSrcError(e){e.target.src="https://interwork.sdsu.edu/echeckup/resources/campuses/_DEFAULT/logo_horizontal.png"}}return e.\u0275fac=function(t){return new(t||e)(wo(Lm))},e.\u0275cmp=He({type:e,selectors:[["app-header"]],decls:4,vars:2,consts:[[1,"bg-dark"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2","logo-container"],[3,"src","alt","error"]],template:function(e,t){1&e&&(xo(0,"header",0),xo(1,"div",1),xo(2,"div",2),xo(3,"img",3),Ro("error",function(e){return t.onImgSrcError(e)}),Co(),Co(),Co(),Co()),2&e&&(Zr(3),jo("src","https://interwork.sdsu.edu/echeckup/resources/campuses/",t.campus.campusId,"/logo_horizontal.png",er),jo("alt","",t.campus.name," Logo"))},styles:[""]}),e})(),qm=(()=>{class e{constructor(e,t){this.router=e,this.util=t}ngOnInit(){this.router.events.subscribe(e=>{e instanceof Jh&&this.util.scrollTop()})}}return e.\u0275fac=function(t){return new(t||e)(wo(Sf),wo($f))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:2,vars:0,template:function(e,t){1&e&&(ko(0,"app-header"),ko(1,"router-outlet"))},directives:[Um,xf],styles:[""]}),e})(),Hm=(()=>{class e{constructor(e,t){this.router=e,this.config=t,this.asset=Vf}ngOnInit(){sessionStorage.removeItem("screenerau")}takeAScreener(){this.router.navigate([this.config.takeAScreener])}}return e.\u0275fac=function(t){return new(t||e)(wo(Sf),wo(Lm))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:94,vars:1,consts:[["role","main",1,"bg-light","mt-1","round-0"],[1,"jumbotron","mt-1","mb-0","welcome-jumbo","text-center"],[1,"container"],[1,"row"],[1,"col-md-12","col-sm-12","mx-auto","welcome_container"],[1,"col-md-7","col-sm-12","mx-auto"],[1,"justlovely","display-xl"],[1,"lead","teal","roboto","p-3"],[1,"col-md-4"],[1,"mb-4"],[1,"card-body"],["role","presentation","alt","Stopwatch icon representing speed",1,"img-responsive",2,"width","100%","height","6em !important","margin","0 0 1em 0","fill","#111111"],[0,"xlink","href","assets/img/icons.svg#stopwatch"],[1,"card-text"],["role","presentation","alt","Question mark representing unknown identity",1,"img-responsive",2,"width","100%","height","5em !important","margin","1em 0"],[0,"xlink","href","assets/img/icons.svg#question_mark"],["role","presentation","alt","Circle with three range sliders in it",1,"img-responsive",2,"width","100%","height","5em !important","margin","1em 0"],[0,"xlink","href","assets/img/icons.svg#settings"],[1,"row","mb-3"],[1,"col"],[1,"btn","screener-btn",3,"click"],[1,"jumbotron","mt-1","mb-0","what-to-expect-jumbo"],[1,"row","what-to-expect-bg"],[1,"col","mx-auto","p-2","teal-bg","text-center"],[1,"justlovely","display-xl","text-white"],[1,"p-0","col-md-10","col-sm-12","mx-auto","what_to_expect_container"],[1,"row","text-white"],[1,"col-md-3"],[1,"round","teal-bg","justlovely","mb-4"],[1,"font-weight-bold"],[1,"col-md-3","mt-5"],[1,"row","pt-4","pb-4"],[1,"col","text-center"],[1,"bg-white"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"]],template:function(e,t){1&e&&(xo(0,"main",0),xo(1,"section",1),xo(2,"div",2),xo(3,"div",3),xo(4,"div",4),xo(5,"div",3),xo(6,"div",5),xo(7,"h1",6),ea(8,"Welcome"),Co(),Co(),Co(),xo(9,"div",3),xo(10,"p",7),ea(11,"We're glad you're here. eCHECKUP Screeners allow you to gain more clarity on your emotional well-being, an area that directly impacts your ability to thrive in college and beyond. Let's see what has been going on for you and how we can support your mental health."),Co(),Co(),xo(12,"div",3),xo(13,"div",8),xo(14,"div",9),xo(15,"div",10),an(),xo(16,"svg",11),ko(17,"use",12),Co(),ln(),xo(18,"p",13),ea(19,"Takes less than 5 minutes to complete"),Co(),Co(),Co(),Co(),xo(20,"div",8),xo(21,"div",9),xo(22,"div",10),an(),xo(23,"svg",14),ko(24,"use",15),Co(),ln(),xo(25,"p",13),ea(26,"Screeners are 100% anonymous"),Co(),Co(),Co(),Co(),xo(27,"div",8),xo(28,"div",9),xo(29,"div",10),an(),xo(30,"svg",16),ko(31,"use",17),Co(),ln(),xo(32,"p",13),ea(33,"Results are customized to you"),Co(),Co(),Co(),Co(),Co(),xo(34,"div",18),xo(35,"div",19),xo(36,"button",20),Ro("click",function(){return t.takeAScreener()}),ea(37,"TAKE A SCREENER"),Co(),Co(),Co(),Co(),Co(),Co(),Co(),xo(38,"section",21),xo(39,"div",22),xo(40,"div",23),xo(41,"h2",24),ea(42,"What to Expect"),Co(),Co(),Co(),xo(43,"div",2),xo(44,"div",3),xo(45,"div",25),xo(46,"div",26),xo(47,"div",27),xo(48,"div",9),xo(49,"div",10),xo(50,"div",28),ea(51," 1 "),Co(),xo(52,"p",13),xo(53,"span",29),ea(54,"Reflect"),Co(),ea(55," on how you are feeling to determine which screener to take "),Co(),Co(),Co(),Co(),xo(56,"div",30),xo(57,"div",9),xo(58,"div",10),xo(59,"div",28),ea(60," 2 "),Co(),xo(61,"p",13),xo(62,"span",29),ea(63,"Start"),Co(),ea(64," the screener and "),xo(65,"span",29),ea(66,"answer"),Co(),ea(67," a brief series of questions "),Co(),Co(),Co(),Co(),xo(68,"div",30),xo(69,"div",9),xo(70,"div",10),xo(71,"div",28),ea(72," 3 "),Co(),xo(73,"p",13),ea(74," Receive helpful feedback with "),xo(75,"span",29),ea(76,"strategies and skills"),Co(),Co(),Co(),Co(),Co(),xo(77,"div",27),xo(78,"div",9),xo(79,"div",10),xo(80,"div",28),ea(81," 4 "),Co(),xo(82,"p",13),xo(83,"span",29),ea(84,"Discover"),Co(),ea(85," relevant resources "),Co(),Co(),Co(),Co(),Co(),xo(86,"div",31),xo(87,"div",32),xo(88,"button",20),Ro("click",function(){return t.takeAScreener()}),ea(89,"TAKE A SCREENER"),Co(),Co(),Co(),Co(),Co(),Co(),Co(),xo(90,"section",33),xo(91,"div",34),xo(92,"div",35),ko(93,"img",36),Co(),Co(),Co(),Co()),2&e&&(Zr(93),bo("src",t.asset.echeckupLogo,er))},styles:[".jumbotron[_ngcontent-%COMP%]{padding:0}.welcome_container[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.8);font-weight:700}.welcome_container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:700}.what_to_expect_container[_ngcontent-%COMP%]{margin-top:20em!important}@media screen and (max-width:768px){.what_to_expect_container[_ngcontent-%COMP%]{margin:0!important;background:rgba(0,0,0,.6)}}"]}),e})(),$m=(()=>{class e{transform(e,t){return e&&t?e.filter(e=>t(e)):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ke({name:"filter",type:e,pure:!1}),e})();function Bm(e,t){1&e&&(xo(0,"div",6),xo(1,"div",12),ea(2," TAKE ANOTHER SCREENER "),Co(),Co())}function Vm(e,t){1&e&&(xo(0,"div",6),xo(1,"div",13),ea(2," How have you been feeling? "),Co(),Co())}function zm(e,t){1&e&&(xo(0,"div",14),ea(1,"> "),xo(2,"div",15),ea(3," How have you been feeling? "),Co(),Co())}function Wm(e,t){if(1&e){const e=Io();xo(0,"div",16),xo(1,"div",17),Ro("click",function(){Nt(e);const n=t.$implicit;return Do().startSession(n.id)}),xo(2,"div",18),xo(3,"div",19),xo(4,"p"),ea(5),Co(),Co(),xo(6,"div",20),xo(7,"p"),ea(8),Co(),Co(),Co(),Co(),Co()}if(2&e){const e=t.$implicit;Zr(5),ta(e.desc),Zr(3),ta(e.display)}}let Qm=(()=>{class e{constructor(e,t){this.router=e,this.config=t,this.asset=Vf,this.product=zf,this.takeAnotherScreener=!1,this.showModule=e=>this.config.modules.includes(e.id);let n=this.router.getCurrentNavigation().extras.state;n&&(this.takeAnotherScreener=n.takeAnotherScreener)}startSession(e){this.router.navigate([this.config.startSession(e)])}}return e.\u0275fac=function(t){return new(t||e)(wo(Sf),wo(Lm))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"jumbotron","mb-0","bg-white","how-have-jumbo","pt-0","px-0","mt-1"],["class","row",4,"ngIf"],["class","row what-to-expect-bg",4,"ngIf"],[1,"container","p-4"],[1,"row","text-white","mt-5"],[1,"col-md-12","col-lg-9","mx-auto"],[1,"row"],["class","col-lg-3 col-md-4 col-xs-6","style","width:auto !important",4,"ngFor","ngForOf"],[1,"bg-white"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"],[1,"col","mx-auto","pt-5","p-2","display-4","text-black","text-center"],[1,"col-8","mx-auto","pt-5","p-2","display-xl","justlovely","text-black","text-center",2,"border-top","1px solid white"],[1,"row","what-to-expect-bg"],[1,"col","mx-auto","pt-5","p-2","display-xl","justlovely","text-black","text-center"],[1,"col-lg-3","col-md-4","col-xs-6",2,"width","auto !important"],[1,"mb-4","flip-card","cursor-pointer",3,"click"],[1,"card-body","flip-card-inner","p-0"],[1,"round","round-lg","purple-outline","mb-4","roboto","flip-card-front"],[1,"round","round-lg","purple-bg","mb-4","roboto","flip-card-back"]],template:function(e,t){1&e&&(xo(0,"section",0),vo(1,Bm,3,0,"div",1),vo(2,Vm,3,0,"div",1),vo(3,zm,4,0,"div",2),xo(4,"div",3),xo(5,"div",4),xo(6,"div",5),xo(7,"div",6),vo(8,Wm,9,2,"div",7),wl(9,"filter"),Co(),Co(),Co(),Co(),Co(),xo(10,"section",8),xo(11,"div",9),xo(12,"div",10),ko(13,"img",11),Co(),Co(),Co()),2&e&&(Zr(1),bo("ngIf",t.takeAnotherScreener),Zr(1),bo("ngIf",t.takeAnotherScreener),Zr(1),bo("ngIf",!t.takeAnotherScreener),Zr(5),bo("ngForOf",function(e,t,n,s){const r=Rt(),i=bt(r,29);return xl(r,Sl(r,29)?function(e,t,n,s,r,i,o){const a=t+n;return function(e,t,n,s){const r=mo(e,t,n);return mo(e,t+1,s)||r}(e,a,r,i)?fo(e,a+2,o?s.call(o,r,i):s(r,i)):vl(e,a+2)}(r,Ht(),5,i.transform,n,s,i):i.transform(n,s))}(0,0,t.product,t.showModule)),Zr(5),bo("src",t.asset.echeckupLogo,er))},directives:[mu,pu],pipes:[$m],styles:[""]}),e})(),Km=(()=>{class e{constructor(e,t){this.http=e,this.config=t,this.applicationUserSubject=new nm(1),this.applicationUserObservable=this.applicationUserSubject.asObservable()}update(e){sessionStorage.setItem("screenerau",JSON.stringify(e)),this.save(e),this.applicationUserSubject.next(e)}save(e){this.http.post(`${Bf}/screener/${this.config.campus.campusId}/save`,this.applicationUserToJson(e)).subscribe(e=>{},e=>{})}applicationUserToJson(e){let t={};return e.hasOwnProperty("demographic")&&(t=e.demographic.reduce((e,t)=>(e[t.name]=t.response,e),{})),this.config.modules.forEach(n=>{e.product&&e.product[n]&&(t[n]=e.product[n].assessment.reduce((e,t)=>(e[t.name]=`${t.response}`,e),{}),e.product[n].change&&e.product[n].change.hasOwnProperty("response")&&(t[n].changeResponse=e.product[n].change.response),t[n].lookForward=e.product[n].lookForward?JSON.stringify(e.product[n].lookForward):"")}),t.uid=e.uid,t}}return e.\u0275fac=function(t){return new(t||e)(us(wm),us(Lm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gm=(()=>{class e{constructor(){this.questionAnsweredSubject=new x,this.questionAnsweredObservable=this.questionAnsweredSubject.asObservable(),this.questionIncrementSubject=new x,this.questionIncrementObservable=this.questionIncrementSubject.asObservable()}questionAnswered(){this.questionAnsweredSubject.next()}nextQuestion(e){this.questionIncrementSubject.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Zm{constructor(e,t,n,s){this.template=e,this.inputType=t,this.modal=n,this.options=s}}let Ym=(()=>{class e{adapt(e){return new Zm(e.template,e.inputType,e.modal,e.options)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Jm{constructor(e,t,n,s,r,i,o,a,l,c,u,h){this.questionId=e,this.category=t,this.qClass=n,this.group=s,this.inputText=r,this.name=i,this.options=o,this.outputText=a,this.product=l,this.type=c,this.response=u,this.hidden=h}}let Xm=(()=>{class e{constructor(e,t){this.resourceOptionsAdapterService=e,this.util=t}adapt(e){return new Jm(this.util.hashCode(e.name),e.category,e.class,e.group,e.inputText,e.name,this.resourceOptionsAdapterService.adapt(e.options),e.outputText,e.product,e.type,null,!0)}}return e.\u0275fac=function(t){return new(t||e)(us(Ym),us($f))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class eg{}const tg="*";function ng(e,t=null){return{type:4,styles:t,timings:e}}function sg(e,t=null){return{type:2,steps:e,options:t}}function rg(e){return{type:6,styles:e,offset:null}}function ig(e,t,n){return{type:0,name:e,styles:t,options:n}}function og(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function ag(e){Promise.resolve(null).then(e)}class lg{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ag(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class cg{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?ag(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const ug=["toast-component",""];function hg(e,t){if(1&e){const e=Io();xo(0,"button",5),Ro("click",function(){return Nt(e),Do().remove()}),xo(1,"span",6),ea(2,"\xd7"),Co(),Co()}}function dg(e,t){if(1&e&&(Eo(0),ea(1),To()),2&e){const e=Do(2);Zr(1),na("[",e.duplicatesCount+1,"]")}}function pg(e,t){if(1&e&&(xo(0,"div"),ea(1),vo(2,dg,2,1,"ng-container",4),Co()),2&e){const e=Do();Vo(e.options.titleClass),go("aria-label",e.title),Zr(1),na(" ",e.title," "),Zr(1),bo("ngIf",e.duplicatesCount)}}function fg(e,t){if(1&e&&ko(0,"div",7),2&e){const e=Do();Vo(e.options.messageClass),bo("innerHTML",e.message,Xs)}}function mg(e,t){if(1&e&&(xo(0,"div",8),ea(1),Co()),2&e){const e=Do();Vo(e.options.messageClass),go("aria-label",e.message),Zr(1),na(" ",e.message," ")}}function gg(e,t){if(1&e&&(xo(0,"div"),ko(1,"div",9),Co()),2&e){const e=Do();Zr(1),Bo("width",e.width+"%")}}function yg(e,t){if(1&e){const e=Io();xo(0,"button",5),Ro("click",function(){return Nt(e),Do().remove()}),xo(1,"span",6),ea(2,"\xd7"),Co(),Co()}}function vg(e,t){if(1&e&&(Eo(0),ea(1),To()),2&e){const e=Do(2);Zr(1),na("[",e.duplicatesCount+1,"]")}}function _g(e,t){if(1&e&&(xo(0,"div"),ea(1),vo(2,vg,2,1,"ng-container",4),Co()),2&e){const e=Do();Vo(e.options.titleClass),go("aria-label",e.title),Zr(1),na(" ",e.title," "),Zr(1),bo("ngIf",e.duplicatesCount)}}function wg(e,t){if(1&e&&ko(0,"div",7),2&e){const e=Do();Vo(e.options.messageClass),bo("innerHTML",e.message,Xs)}}function bg(e,t){if(1&e&&(xo(0,"div",8),ea(1),Co()),2&e){const e=Do();Vo(e.options.messageClass),go("aria-label",e.message),Zr(1),na(" ",e.message," ")}}function Sg(e,t){if(1&e&&(xo(0,"div"),ko(1,"div",9),Co()),2&e){const e=Do();Zr(1),Bo("width",e.width+"%")}}class xg{constructor(e,t,n,s,r,i){this.toastId=e,this.config=t,this.message=n,this.title=s,this.toastType=r,this.toastRef=i,this._onTap=new x,this._onAction=new x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}}const Cg={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},kg=new Wn("ToastConfig");class Eg{constructor(e,t){this.component=e,this.injector=t}attach(e,t){return this._attachedHost=e,e.attach(this,t)}detach(){const e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Tg extends class{attach(e,t){return this._attachedPortal=e,this.attachComponentPortal(e,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}}{constructor(e,t,n){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=n}attachComponentPortal(e,t){const n=this._componentFactoryResolver.resolveComponentFactory(e.component);let s;return s=n.create(e.injector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(s),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(s)),s}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let Ag=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return e.\u0275fac=function(t){return new(t||e)(us(Bc))},e.\u0275prov=ce({factory:function(){return new e(us(Bc))},token:e,providedIn:"root"}),e})();class Ig{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let Og=(()=>{class e{constructor(e,t,n,s){this._overlayContainer=e,this._componentFactoryResolver=t,this._appRef=n,this._document=s,this._paneElements=new Map}create(e,t){return this._createOverlayRef(this.getPaneElement(e,t))}getPaneElement(e="",t){return this._paneElements.get(t)||this._paneElements.set(t,{}),this._paneElements.get(t)[e]||(this._paneElements.get(t)[e]=this._createPaneElement(e,t)),this._paneElements.get(t)[e]}_createPaneElement(e,t){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(e),n.classList.add("toast-container"),t?t.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(e){return new Tg(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new Ig(this._createPortalHost(e))}}return e.\u0275fac=function(t){return new(t||e)(us(Ag),us(fa),us(Rc),us(Bc))},e.\u0275prov=ce({factory:function(){return new e(us(Ag),us(fa),us(Rc),us(Bc))},token:e,providedIn:"root"}),e})();class Rg{constructor(e){this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new x,this._activate=new x,this._manualClose=new x,this._resetTimeout=new x,this._countDuplicate=new x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,t){e&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Pg{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,n){return e===xg?this._toastPackage:this._parentInjector.get(e,t,n)}}let Ng=(()=>{class e{constructor(e,t,n,s,r){this.overlay=t,this._injector=n,this.sanitizer=s,this.ngZone=r,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},e.default),e.config),e.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},e.default.iconClasses),e.config.iconClasses))}show(e,t,n={},s=""){return this._preBuildNotification(s,e,t,this.applyConfig(n))}success(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,t,this.applyConfig(n))}error(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,t,this.applyConfig(n))}info(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,t,this.applyConfig(n))}warning(e,t,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,t,this.applyConfig(n))}clear(e){for(const t of this.toasts)if(void 0!==e){if(t.toastId===e)return void t.toastRef.manualClose()}else t.toastRef.manualClose()}remove(e){const t=this._findToast(e);if(!t)return!1;if(t.activeToast.toastRef.close(),this.toasts.splice(t.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActivethis._buildNotification(e,t,n,s)):this._buildNotification(e,t,n,s)}_buildNotification(e,t,n,s){if(!s.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(n,t,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||t)&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=t;let i=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(i=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const o=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let a=t;t&&s.enableHtml&&(a=this.sanitizer.sanitize(Js.HTML,t));const l=new Rg(o),c=new xg(this.index,s,a,n,e,l),u=new Pg(c,this._injector),h=new Eg(s.toastComponent,u),d=o.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=d.instance;const p={toastId:this.index,title:n||"",message:t||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:c.onTap(),onAction:c.onAction(),portal:d};return i||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return e.\u0275fac=function(t){return new(t||e)(us(kg),us(Og),us(oo),us(Ju),us(hc))},e.\u0275prov=ce({factory:function(){return new e(us(kg),us(Og),us(zi),us(Ju),us(hc))},token:e,providedIn:"root"}),e})(),Dg=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),t)):this.timeout=setTimeout(()=>e(),t)}outsideInterval(e,t){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),t)):this.intervalId=setInterval(()=>e(),t)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}var t;return e.\u0275fac=function(t){return new(t||e)(wo(Ng),wo(xg),wo(hc))},e.\u0275cmp=He({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,t){1&e&&Ro("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(sa("@flyInOut",t.state),Vo(t.toastClasses),Bo("display",t.displayStyle))},attrs:ug,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(vo(0,hg,3,0,"button",0),vo(1,pg,3,5,"div",1),vo(2,fg,1,3,"div",2),vo(3,mg,2,4,"div",3),vo(4,gg,2,2,"div",4)),2&e&&(bo("ngIf",t.options.closeButton),Zr(1),bo("ngIf",t.title),Zr(1),bo("ngIf",t.message&&t.options.enableHtml),Zr(1),bo("ngIf",t.message&&!t.options.enableHtml),Zr(1),bo("ngIf",t.options.progressBar))},directives:[mu],encapsulation:2,data:{animation:[(t=[ig("inactive",rg({opacity:0})),ig("active",rg({opacity:1})),ig("removed",rg({opacity:0})),og("inactive => active",ng("{{ easeTime }}ms {{ easing }}")),og("active => removed",ng("{{ easeTime }}ms {{ easing }}"))],{type:7,name:"flyInOut",definitions:t,options:{}})]}}),e})();const Fg=Object.assign(Object.assign({},Cg),{toastComponent:Dg});let jg=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:kg,useValue:{default:Fg,config:t}}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({imports:[[xu]]}),e})(),Mg=(()=>{class e{constructor(e,t,n){this.toastrService=e,this.toastPackage=t,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=t.message,this.title=t.title,this.options=t.config,this.originalTimeout=t.config.timeOut,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=t.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=t.toastRef.countDuplicate().subscribe(e=>{this.duplicatesCount=e})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return e.\u0275fac=function(t){return new(t||e)(wo(Ng),wo(xg),wo(Rc))},e.\u0275cmp=He({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,t){1&e&&Ro("click",function(){return t.tapToast()})("mouseenter",function(){return t.stickAround()})("mouseleave",function(){return t.delayedHideToast()}),2&e&&(Vo(t.toastClasses),Bo("display",t.displayStyle))},attrs:ug,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(e,t){1&e&&(vo(0,yg,3,0,"button",0),vo(1,_g,3,5,"div",1),vo(2,wg,1,3,"div",2),vo(3,bg,2,4,"div",3),vo(4,Sg,2,2,"div",4)),2&e&&(bo("ngIf",t.options.closeButton),Zr(1),bo("ngIf",t.title),Zr(1),bo("ngIf",t.message&&t.options.enableHtml),Zr(1),bo("ngIf",t.message&&!t.options.enableHtml),Zr(1),bo("ngIf",t.options.progressBar))},directives:[mu],encapsulation:2}),e})();Object.assign(Object.assign({},Cg),{toastComponent:Mg});const Lg=function(e){return{disabled:e}};function Ug(e,t){if(1&e){const e=Io();xo(0,"button",6),Ro("click",function(){return Nt(e),Do().next()}),ea(1),Co()}if(2&e){const e=Do();bo("ngClass",yl(2,Lg,!e.canNext())),Zr(1),na("",e.nextLabel," >")}}function qg(e,t){if(1&e){const e=Io();xo(0,"button",7),Ro("click",function(){return Nt(e),Do().back()}),ea(1),Co()}if(2&e){const e=Do();bo("ngClass",yl(2,Lg,!e.canReturn())),Zr(1),na("< ",e.returnLabel,"")}}let Hg=(()=>{class e{constructor(){this.showReturnBtn=!0,this.canReturn=()=>!0,this.returnAction=()=>console.error("Return action is not defined"),this.showNextBtn=!0,this.canNext=()=>!0,this.nextAction=()=>console.error("Next action is not defined"),this.nextLabel="Next",this.returnLabel="Back"}next(){this.canNext(!0)&&this.nextAction()}back(){this.canReturn(!0)&&this.returnAction()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=He({type:e,selectors:[["app-navigation"]],inputs:{showReturnBtn:"showReturnBtn",canReturn:"canReturn",returnAction:"returnAction",showNextBtn:"showNextBtn",canNext:"canNext",nextAction:"nextAction",nextLabel:"nextLabel",returnLabel:"returnLabel"},decls:6,vars:2,consts:[[1,"bg-light"],[1,"container"],[1,"row"],[1,"col","py-3"],["class","btn btn-sm btn-outline-primary float-right",3,"ngClass","click",4,"ngIf"],["class","btn btn-sm btn-outline-primary float-left",3,"ngClass","click",4,"ngIf"],[1,"btn","btn-sm","btn-outline-primary","float-right",3,"ngClass","click"],[1,"btn","btn-sm","btn-outline-primary","float-left",3,"ngClass","click"]],template:function(e,t){1&e&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"div",3),vo(4,Ug,2,4,"button",4),vo(5,qg,2,4,"button",5),Co(),Co(),Co(),Co()),2&e&&(Zr(4),bo("ngIf",t.showNextBtn),Zr(1),bo("ngIf",t.showReturnBtn))},directives:[mu,hu],styles:[""]}),e})();function $g(e,t){if(1&e&&ko(0,"app-navigation",6),2&e){const e=Do();bo("showNextBtn",e.showNextBtn)("showReturnBtn",e.showReturnBtn)("canNext",e.canNext)("canReturn",e.canReturn)("nextAction",e.nextAction)("returnAction",e.returnAction)("returnLabel",e.returnLabel)("nextLabel",e.nextLabel)}}let Bg=(()=>{class e{constructor(){this.asset=Vf,this.showReturnBtn=!0,this.canReturn=()=>!0,this.returnAction=()=>console.error("Return action is not defined"),this.showNextBtn=!0,this.canNext=()=>!0,this.nextAction=()=>console.error("Next action is not defined"),this.nextLabel="Next",this.returnLabel="Back"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=He({type:e,selectors:[["app-footer"]],inputs:{showNavigation:"showNavigation",showReturnBtn:"showReturnBtn",canReturn:"canReturn",returnAction:"returnAction",showNextBtn:"showNextBtn",canNext:"canNext",nextAction:"nextAction",nextLabel:"nextLabel",returnLabel:"returnLabel"},decls:8,vars:2,consts:[[1,"fixed-bottom"],[3,"showNextBtn","showReturnBtn","canNext","canReturn","nextAction","returnAction","returnLabel","nextLabel",4,"ngIf"],[1,"footer","bg-dark"],[1,"container"],["alt","eCHECKUP TO GO Logo",1,"logo",2,"max-height","25px","width","auto",3,"src"],[1,"text-muted","small"],[3,"showNextBtn","showReturnBtn","canNext","canReturn","nextAction","returnAction","returnLabel","nextLabel"]],template:function(e,t){1&e&&(xo(0,"footer",0),vo(1,$g,1,8,"app-navigation",1),xo(2,"div",2),xo(3,"div",3),ko(4,"img",4),ea(5,"\xa0 "),xo(6,"span",5),ea(7,"\xa9 2003-2021 SDSU Research Foundation"),Co(),Co(),Co(),Co()),2&e&&(Zr(1),bo("ngIf",t.showNavigation),Zr(3),bo("src",t.asset.footerLogo,er))},directives:[mu,Hg],styles:[".footer[_ngcontent-%COMP%]{margin:auto;text-align:center;line-height:40px}"]}),e})();class Vg{constructor(e,t){this.open=e,this.close=t||e}isManual(){return"manual"===this.open||"manual"===this.close}}const zg={hover:["mouseover","mouseout"],focus:["focusin","focusout"]},Wg="undefined"!=typeof window&&window||{};let Qg;function Kg(){return void 0===Wg||(void 0===Wg.__theme?(Qg||(Qg=function(){if("undefined"==typeof document)return null;const e=document.createElement("span");e.innerText="test bs version",document.body.appendChild(e),e.classList.add("d-none");const t=e.getBoundingClientRect();return document.body.removeChild(e),t&&0===t.top?"bs4":"bs3"}()),"bs3"===Qg):"bs4"!==Wg.__theme)}function Gg(e,t,n,r){return s(n)&&(r=n,n=void 0),r?Gg(e,t,n).pipe(E(e=>l(e)?r(...e):r(e))):new v(s=>{Zg(e,t,function(e){s.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},s,n)})}function Zg(e,t,n,s,r){let i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const s=e;e.addEventListener(t,n,r),i=()=>s.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const s=e;e.on(t,n),i=()=>s.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const s=e;e.addListener(t,n),i=()=>s.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let i=0,o=e.length;i0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}class Jg extends Zf{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,s=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++sObject.assign(Object.assign({key:e},l[e]),{area:wy(l[e])})).sort((e,t)=>t.area-e.area);let u=c.filter(({width:e,height:t})=>e>=n.clientWidth&&t>=n.clientHeight);u=u.filter(e=>r.some(t=>t===e.key));const h=u.length>0?u[0].key:c[0].key,d=e.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${h}`),h+(d?`-${d}`:"")}function Sy(e){const t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),s=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:Number(e.offsetWidth)+s,height:Number(e.offsetHeight)+n}}function xy(e,t,n=null){return gy(t,n?vy(e):cy(e,t),n)}function Cy(e,t,n){const s=n.split(" ")[0],r=Sy(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(s),a=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[l]=s===l?t[l]-r[u]:t[function(e){const t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,e=>t[e])}(l)],i}function ky(e,t){return e&&e.modifiers&&e.modifiers[t]&&e.modifiers[t].enabled}function Ey(e,t,n){Object.keys(t).forEach(s=>{let r="";var i;-1!==["width","height","top","right","bottom","left"].indexOf(s)&&""!==(i=t[s])&&!isNaN(parseFloat(i))&&isFinite(i)&&(r="px"),n?n.setStyle(e,s,`${String(t[s])}${r}`):e.style[s]=String(t[s])+r})}function Ty(e){let t=e.offsets.target;const n=e.instance.target.querySelector(".arrow");if(!n)return e;const s=-1!==["left","right"].indexOf(e.placement.split(" ")[0]),r=s?"height":"width",i=s?"Top":"Left",o=i.toLowerCase(),a=s?"left":"top",l=s?"bottom":"right",c=Sy(n)[r],u=e.placement.split(" ")[1];e.offsets.host[l]-ct[l]&&(t[o]+=Number(e.offsets.host[o])+Number(c)-Number(t[l])),t=fy(t);const h=ey(e.instance.target),d=parseFloat(h[`margin${i}`]),p=parseFloat(h[`border${i}Width`]);let f;if(u){const t=parseFloat(h.borderRadius),n=Number(d+p+t);f=o===u?Number(e.offsets.host[o])+n:Number(e.offsets.host[o])+Number(e.offsets.host[r]-n)}else f=Number(e.offsets.host[o])+Number(e.offsets.host[r]/2-c/2);let m=f-t[o]-d-p;return m=Math.max(Math.min(t[r]-c,m),0),e.offsets.arrow={[o]:Math.round(m),[a]:""},e.instance.arrow=n,e}function Ay(e){if(e.offsets.target=fy(e.offsets.target),!ky(e.options,"flip"))return e.offsets.target=Object.assign(Object.assign({},e.offsets.target),Cy(e.instance.target,e.offsets.host,e.placement)),e;const t=_y(e.instance.target,e.instance.host,0,"viewport",!1);let n=e.placement.split(" ")[0],s=e.placement.split(" ")[1]||"";const r=by("auto",e.offsets.host,e.instance.target,e.instance.host,e.options.allowedPositions),i=[n,r];return i.forEach((r,o)=>{if(n!==r||i.length===o+1)return e;n=e.placement.split(" ")[0];const a="left"===n&&Math.floor(e.offsets.target.right)>Math.floor(e.offsets.host.left)||"right"===n&&Math.floor(e.offsets.target.left)Math.floor(e.offsets.host.top)||"bottom"===n&&Math.floor(e.offsets.target.top)Math.floor(t.right),u=Math.floor(e.offsets.target.top)Math.floor(t.bottom),d="left"===n&&l||"right"===n&&c||"top"===n&&u||"bottom"===n&&h,p=-1!==["top","bottom"].indexOf(n),f=p&&"left"===s&&l||p&&"right"===s&&c||!p&&"left"===s&&u||!p&&"right"===s&&h;(a||d||f)&&((a||d)&&(n=i[o+1]),f&&(s=function(e){return"right"===e?"left":"left"===e?"right":e}(s)),e.placement=n+(s?` ${s}`:""),e.offsets.target=Object.assign(Object.assign({},e.offsets.target),Cy(e.instance.target,e.offsets.host,e.placement)))}),e}function Iy(e){if(!ky(e.options,"preventOverflow"))return e;const t="transform",n=e.instance.target.style,{top:s,left:r,[t]:i}=n;n.top="",n.left="",n[t]="";const o=_y(e.instance.target,e.instance.host,0,"scrollParent",!1);n.top=s,n.left=r,n[t]=i;const a={primary(t){let n=e.offsets.target[t];return e.offsets.target[t]o[t]&&(s=Math.min(e.offsets.target[n],o[t]-("right"===t?e.offsets.target.width:e.offsets.target.height))),{[n]:s}}};let l;return["left","right","top","bottom"].forEach(t=>{l=-1!==["left","top"].indexOf(t)?"primary":"secondary",e.offsets.target=Object.assign(Object.assign({},e.offsets.target),a[l](t))}),e}function Oy(e){const t=e.placement,n=t.split(" ")[0],s=t.split(" ")[1];if(s){const{host:t,target:r}=e.offsets,i=-1!==["bottom","top"].indexOf(n),o=i?"left":"top",a=i?"width":"height",l={start:{[o]:t[o]},end:{[o]:t[o]+t[a]-r[a]}};e.offsets.target=Object.assign(Object.assign({},r),{[o]:o===s?l.start[o]:l.end[o]})}return e}const Ry=new class{position(e,t,n=!0){return this.offset(e,t,!1)}offset(e,t,n=!0){return xy(t,e)}positionElements(e,t,n,s,r){return[Ay,Oy,Iy,Ty].reduce((e,t)=>t(e),function(e,t,n,s){const r=xy(e,t);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)||(n="auto");const i=!!n.match(/auto/g);let o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;const a=o.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(o)&&(o="auto");const l=Cy(e,r,o);return o=by(o,r,e,t,s?s.allowedPositions:void 0),{options:s,instance:{target:e,host:t,arrow:null},offsets:{target:l,host:r,arrow:null},positionFixed:!1,placement:o,placementAuto:i}}(t,e,n,r))}};let Py=(()=>{class e{constructor(e,t,n){this.update$$=new x,this.positionElements=new Map,this.isDisabled=!1,function(e){return"browser"===e}(n)&&e.runOutsideAngular(()=>{this.triggerEvent$=z(Gg(window,"scroll",{passive:!0}),Gg(window,"resize",{passive:!0}),sh(0,Xg),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(e=>{!function(e,t,n,s,r,i){const o=Ry.positionElements(e,t,n,s,r),a=function(e){return{width:e.offsets.target.width,height:e.offsets.target.height,left:Math.floor(e.offsets.target.left),top:Math.round(e.offsets.target.top),bottom:Math.round(e.offsets.target.bottom),right:Math.floor(e.offsets.target.right)}}(o);Ey(t,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},i),o.instance.arrow&&Ey(o.instance.arrow,o.offsets.arrow,i),function(e,t){const n=e.instance.target;let s=n.className;e.placementAuto&&(s=s.replace(/bs-popover-auto/g,`bs-popover-${e.placement}`),s=s.replace(/bs-tooltip-auto/g,`bs-tooltip-${e.placement}`),s=s.replace(/\sauto/g,` ${e.placement}`),-1!==s.indexOf("popover")&&-1===s.indexOf("popover-auto")&&(s+=" popover-auto"),-1!==s.indexOf("tooltip")&&-1===s.indexOf("tooltip-auto")&&(s+=" tooltip-auto")),s=s.replace(/left|right|top|bottom/g,`${e.placement.split(" ")[0]}`),t?t.setAttribute(n,"class",s):n.className=s}(o,i)}(Ny(e.target),Ny(e.element),e.attachment,e.appendToBody,this.options,t.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(Ny(e.element),e)}calcPosition(){this.update$$.next()}deletePositionElement(e){this.positionElements.delete(Ny(e))}setOptions(e){this.options=e}}return e.\u0275fac=function(t){return new(t||e)(us(hc),us(wa),us(Zl))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();function Ny(e){return"string"==typeof e?document.querySelector(e):e instanceof va?e.nativeElement:e}class Dy{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}class Fy{constructor(e,t,n,s,r,i,o,a){this._viewContainerRef=e,this._renderer=t,this._elementRef=n,this._injector=s,this._componentFactoryResolver=r,this._ngZone=i,this._applicationRef=o,this._posService=a,this.onBeforeShow=new kl,this.onShown=new kl,this.onBeforeHide=new kl,this.onHidden=new kl,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(e){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(e),this}to(e){return this.container=e||this.container,this}position(e){return this.attachment=e.attachment||this.attachment,this._elementRef=e.target||this._elementRef,this}provide(e){return this._providers.push(e),this}show(e={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(e.content,e.context,e.initialState);const t=oo.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(t,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,e),this.container instanceof va&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(e.id?{id:e.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(e){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(e?{id:e}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(e){this.triggers=e.triggers||this.triggers,this._listenOpts.outsideClick=e.outsideClick,this._listenOpts.outsideEsc=e.outsideEsc,e.target=e.target||this._elementRef.nativeElement;const t=this._listenOpts.hide=()=>e.hide?e.hide():void this.hide(),n=this._listenOpts.show=t=>{e.show?e.show(t):this.show(t),t()};return this._unregisterListenersFn=function(e,t){const n=function(e,t=zg){const n=(e||"").trim();if(0===n.length)return[];const s=n.split(/\s+/).map(e=>e.split(":")).map(e=>{const n=t[e[0]]||e;return new Vg(n[0],n[1])}),r=s.filter(e=>e.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&s.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return s}(t.triggers),s=t.target;if(1===n.length&&n[0].isManual())return Function.prototype;const r=[],i=[],o=()=>{i.forEach(e=>r.push(e())),i.length=0};return n.forEach(n=>{const a=n.open===n.close,l=a?t.toggle:t.show;a||i.push(()=>e.listen(s,n.close,t.hide)),r.push(e.listen(s,n.open,()=>l(o)))}),()=>{r.forEach(e=>e())}}(this._renderer,{target:e.target,triggers:e.triggers,show:n,hide:t,toggle:e=>{this.isShown?t():n(e)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(e,t){return this._inlineViewRef=e.createEmbeddedView(t),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const e=this._componentRef.location.nativeElement;setTimeout(()=>{var t;this._globalListener=(t={targets:[e,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()}).outsideClick?this._renderer.listen("document","click",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(t=>t.contains(e.target))||t.hide()}):Function.prototype})}var e;this._listenOpts.outsideEsc&&(this._globalListener=(e={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?this._renderer.listen("document","keyup.esc",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype)}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(e,t,n){if(!e)return new Dy([]);if(e instanceof Ga){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(e,t);return n.markForCheck(),new Dy([n.rootNodes],n)}const n=e.createEmbeddedView({});return this._applicationRef.attachView(n),new Dy([n.rootNodes],n)}if("function"==typeof e){const t=this._componentFactoryResolver.resolveComponentFactory(e),s=oo.create({providers:this._providers,parent:this._injector}),r=t.create(s);return Object.assign(r.instance,n),this._applicationRef.attachView(r.hostView),new Dy([[r.location.nativeElement]],r.hostView,r)}return new Dy([[this._renderer.createText(`${e}`)]])}}let jy=(()=>{class e{constructor(e,t,n,s,r){this._componentFactoryResolver=e,this._ngZone=t,this._injector=n,this._posService=s,this._applicationRef=r}createLoader(e,t,n){return new Fy(t,n,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return e.\u0275fac=function(t){return new(t||e)(us(fa),us(hc),us(oo),us(Py),us(Rc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const My=["*"];let Ly=(()=>{class e{constructor(){this.hide=Function,this.setClass=Function}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Uy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const qy={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{}},Hy=new Wn("override-default-config"),$y="modal-open",By="show";let Vy=(()=>{class e{constructor(e,t,n){this._element=t,this._renderer=n,this.isShown=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},e)}ngOnInit(){this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,Kg()?"in":By)},this.isAnimated?150:0),document&&document.body&&(1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,$y)),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(e){this.clickStartedInContent=e.target!==this._element.nativeElement}onClickStop(e){this.config.ignoreBackdropClick||"static"===this.config.backdrop||e.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService.setDismissReason("backdrop-click"),this.hide())}onPopState(){this.bsModalService.setDismissReason("browser-back-navigation-clicked"),this.hide()}onEsc(e){this.isShown&&(27!==e.keyCode&&"Escape"!==e.key||e.preventDefault(),this.config.keyboard&&this.level===this.bsModalService.getModalsCount()&&(this.bsModalService.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this.hide()}hide(){!this.isModalHiding&&this.isShown&&(this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,Kg()?"in":By),setTimeout(()=>{this.isShown=!1,document&&document.body&&1===this.bsModalService.getModalsCount()&&this._renderer.removeClass(document.body,$y),this.bsModalService.hide(this.config.id),this.isModalHiding=!1},this.isAnimated?300:0))}}return e.\u0275fac=function(t){return new(t||e)(wo(Uy),wo(va),wo(ba))},e.\u0275cmp=He({type:e,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(e,t){1&e&&Ro("mousedown",function(e){return t.onClickStarted(e)})("mouseup",function(e){return t.onClickStop(e)})("popstate",function(){return t.onPopState()},!1,lr)("keydown.esc",function(e){return t.onEsc(e)},!1,lr),2&e&&go("aria-modal",!0)("aria-labelledby",t.config.ariaLabelledBy)("aria-describedby",t.config.ariaDescribedby)},ngContentSelectors:My,decls:3,vars:2,consts:[["role","document"],[1,"modal-content"]],template:function(e,t){1&e&&(function(e){const t=Rt()[16][6];if(!t.projection){const e=t.projection=Xn(1,null),n=e.slice();let s=t.child;for(;null!==s;){const t=0;null!==t&&(n[t]?n[t].projectionNext=s:e[t]=s,n[t]=s),s=s.next}}}(),xo(0,"div",0),xo(1,"div",1),function(e,t=0,n){const s=Rt(),r=Pt(),i=oi(r,Ye+e,16,null,n||null);null===i.projection&&(i.projection=t),Lt(),64!=(64&i.flags)&&function(e,t,n){Fr(t[11],0,t,n,Sr(e,n,t),Tr(n.parent||t[6],n,t))}(r,s,i)}(2),Co(),Co()),2&e&&Vo("modal-dialog"+(t.config.class?" "+t.config.class:""))},encapsulation:2}),e})(),zy=(()=>{class e{constructor(e,t){this._isShown=!1,this.element=e,this.renderer=t}get isAnimated(){return this._isAnimated}set isAnimated(e){this._isAnimated=e}get isShown(){return this._isShown}set isShown(e){this._isShown=e,e?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),Kg()||(e?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),class{static reflow(e){}static getStyles(e){let t=e.ownerDocument.defaultView;return t&&t.opener||(t=Wg),t.getComputedStyle(e)}}.reflow(this.element.nativeElement)),this.isShown=!0}}return e.\u0275fac=function(t){return new(t||e)(wo(va),wo(ba))},e.\u0275cmp=He({type:e,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e})(),Wy=(()=>{class e{constructor(e,t,n){this.clf=t,this.modalDefaultOption=n,this.onShow=new kl,this.onShown=new kl,this.onHide=new kl,this.onHidden=new kl,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason=null,this.loaders=[],this._backdropLoader=this.clf.createLoader(null,null,null),this._renderer=e.createRenderer(null,null),this.config=n?Object.assign({},qy,n):qy}show(e,t){this.modalsCount++,this._createLoaders();const n=(null==t?void 0:t.id)||(new Date).getUTCMilliseconds();return this.config=this.modalDefaultOption?Object.assign({},qy,this.modalDefaultOption,t):Object.assign({},qy,t),this.config.id=n,this._showBackdrop(),this.lastDismissReason=null,this._showModal(e)}hide(e){1!==this.modalsCount&&null!=e||(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=e?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(e),this.removeLoaders(e)},this.config.animated?150:0)}_showBackdrop(){const e=this.config.backdrop||"static"===this.config.backdrop,t=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),e&&t&&(this._backdropLoader.attach(zy).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(e){var t;const n=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const i of this.config.providers)n.provide(i);const s=new Ly,r=n.provide({provide:Uy,useValue:this.config}).provide({provide:Ly,useValue:s}).attach(Vy).to("body");return s.hide=()=>r.instance.hide(),s.setClass=e=>{r.instance.config.class=e},s.onHidden=new kl,s.onHide=new kl,this.copyEvent(n.onBeforeHide,s.onHide),this.copyEvent(n.onHidden,s.onHidden),r.show({content:e,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),r.instance.level=this.getModalsCount(),s.content=n.getInnerComponent()||null,s.id=null===(t=r.instance.config)||void 0===t?void 0:t.id,s}_hideModal(e){if(null!=e){const t=this.loaders.findIndex(t=>t.instance.config.id===e),n=this.loaders[t];n&&n.hide(e)}else this.loaders.forEach(e=>{e.hide(e.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(e){this.lastDismissReason=e}removeBackdrop(){this._renderer.removeClass(document.body,$y),this._backdropLoader.hide(),this.backdropRef=null}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidtht.instance.config.id===e);t>=0&&(this.loaders.splice(t,1),this.loaders.forEach((e,t)=>{e.instance.level=t+1}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(e,t){e.subscribe(e=>{t.emit(this.lastDismissReason||e)})}}return e.\u0275fac=function(t){return new(t||e)(us(wa),us(jy),us(Hy,8))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),Qy=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Wy,jy,Py]}}static forChild(){return{ngModule:e,providers:[Wy,jy,Py]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({}),e})(),Ky=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t}onKeydownHandler(e){e.preventDefault(),this.elementRef.nativeElement.click()}ngOnInit(){this.renderer.setAttribute(this.elementRef.nativeElement,"role","radio")}}return e.\u0275fac=function(t){return new(t||e)(wo(va),wo(ba))},e.\u0275dir=Qe({type:e,selectors:[["","radio",""]],hostBindings:function(e,t){1&e&&Ro("keydown.space",function(e){return t.onKeydownHandler(e)})}}),e})(),Gy=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.keyEvents=["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],this.leftEvents=["ArrowLeft","ArrowUp"]}onKeydownHandler(e){if(this.keyEvents.includes(e.code)){e.preventDefault();let n=parseInt(e.target.dataset.index),s=this.leftEvents.includes(e.code)?-1:1;try{this.radios.find(e=>e.elementRef.nativeElement.dataset.index==`${n+s}`).elementRef.nativeElement.focus()}catch(t){}}}ngOnInit(){this.renderer.setAttribute(this.elementRef.nativeElement,"role","radiogroup")}}return e.\u0275fac=function(t){return new(t||e)(wo(va),wo(ba))},e.\u0275dir=Qe({type:e,selectors:[["","radiogroup",""]],contentQueries:function(e,t,n){if(1&e&&function(e,t,n,s){const r=Pt();if(r.firstCreatePass){const n=Dt();Hl(r,new Ol(t,1,void 0),n.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e)}ql(r,Rt(),1)}(n,Ky),2&e){let e;Ml(e=Ul())&&(t.radios=e)}},hostBindings:function(e,t){1&e&&Ro("keydown",function(e){return t.onKeydownHandler(e)})}}),e})();const Zy=["si"],Yy=["app-question-template",""];function Jy(e,t){if(1&e){const e=Io();xo(0,"li",10),Ro("click",function(){Nt(e);const n=t.$implicit;return Do(3).selectAnswer(n.display,n.value)}),xo(1,"div",11),xo(2,"label",12),ea(3),Co(),Co(),Co()}if(2&e){const e=t.$implicit,n=t.index,s=Do(3);bo("tabindex",0==n?0:-1)("ngClass",s.getActive(e.display,e.value)),go("data-index",n),Zr(3),na(" ",e.display," ")}}function Xy(e,t){if(1&e&&(xo(0,"ul",7),xo(1,"li",8),xo(2,"h4"),ea(3),Co(),Co(),vo(4,Jy,4,4,"li",9),Co()),2&e){const e=Do(2);Zr(3),ta(e.question.inputText),Zr(1),bo("ngForOf",e.question.options.options)}}function ev(e,t){if(1&e){const e=Io();xo(0,"div",17),Ro("click",function(){Nt(e);const n=t.$implicit;return Do(3).selectAnswer(n.display,n.value)}),xo(1,"div",18),xo(2,"p",19),ea(3),Co(),Co(),Co()}if(2&e){const e=t.$implicit,n=t.index,s=Do(3);bo("tabindex",0==n?0:-1),go("data-index",n),Zr(1),bo("ngClass",s.getSelectionClass(e.display,e.value)),Zr(2),ta(e.display)}}function tv(e,t){if(1&e){const e=Io();xo(0,"div",20),Ro("click",function(){Nt(e);const t=Do(3),n=_o(5);return t.openModal(n),t.siModalShown=!0}),ea(1,"National Suicide Hotline Information"),Co()}}function nv(e,t){if(1&e&&(xo(0,"div",13),xo(1,"h4"),ea(2),Co(),xo(3,"fieldset",14),vo(4,ev,4,4,"div",15),Co(),vo(5,tv,2,0,"div",16),Co()),2&e){const e=Do(2);Zr(2),na(" ",e.question.inputText," "),Zr(2),bo("ngForOf",e.question.options.options),Zr(1),bo("ngIf","depression_9"==e.question.name&&e.question.response>0)}}function sv(e,t){if(1&e){const e=Io();xo(0,"div",17),Ro("click",function(){Nt(e);const n=t.$implicit;return Do(3).selectAnswer(n.display,n.value)}),xo(1,"div",26),xo(2,"p",19),ko(3,"i"),ea(4),Co(),Co(),Co()}if(2&e){const e=t.$implicit,n=t.index,s=Do(3);bo("tabindex",0==n?0:-1),go("data-index",n),Zr(1),bo("ngClass",s.getSelectionClass(e.display,e.value)),Zr(2),Vo(e.icon),Zr(1),na(" ",e.display," ")}}function rv(e,t){if(1&e){const e=Io();xo(0,"a",29),Ro("click",function(){Nt(e);const t=Do(4),n=_o(3);return t.openModal(n)}),ea(1),Co()}if(2&e){const e=Do(4);Zr(1),ta(e.question.options.modal.modalTitle)}}function iv(e,t){if(1&e&&(xo(0,"p",27),vo(1,rv,2,1,"a",28),Co()),2&e){const e=Do(3);Zr(1),bo("ngIf",e.question.options.modal.modalTitle.length>0)}}function ov(e,t){if(1&e&&(xo(0,"div",21),xo(1,"div",22),xo(2,"h4"),ea(3),Co(),Co(),xo(4,"div",23),xo(5,"fieldset",24),vo(6,sv,5,6,"div",15),Co(),vo(7,iv,2,1,"p",25),Co(),Co()),2&e){const e=Do(2);Zr(3),na(" ",e.question.inputText," "),Zr(3),bo("ngForOf",e.question.options.options),Zr(1),bo("ngIf",e.question.options.modal)}}function av(e,t){if(1&e&&(xo(0,"span",37),ea(1),Co()),2&e){const e=Do(3);Zr(1),ta(e.question.options.options[0].display)}}function lv(e,t){if(1&e){const e=Io();xo(0,"a",29),Ro("click",function(){Nt(e);const t=Do(4),n=_o(3);return t.openModal(n)}),ea(1),Co()}if(2&e){const e=Do(4);Zr(1),ta(e.question.options.modal.modalTitle)}}function cv(e,t){if(1&e&&(xo(0,"p",38),vo(1,lv,2,1,"a",28),Co()),2&e){const e=Do(3);Zr(1),bo("ngIf",e.question.options.modal.modalTitle.length>0)}}function uv(e,t){if(1&e){const e=Io();xo(0,"div",21),xo(1,"div",22),xo(2,"h4"),ea(3),Co(),Co(),xo(4,"div",23),xo(5,"div",30),xo(6,"div",31),xo(7,"input",32,33),Ro("change",function(){Nt(e);const t=_o(8),n=Do(2);return n.selectAnswer(n.question.inputText,t.value)}),Co(),xo(9,"div",34),vo(10,av,2,1,"span",35),Co(),Co(),Co(),vo(11,cv,2,1,"p",36),Co(),Co()}if(2&e){const e=Do(2);Zr(3),na(" ",e.question.inputText," "),Zr(4),bo("value",e.question.response),Zr(3),bo("ngIf",1==e.question.options.options.length),Zr(1),bo("ngIf",e.question.options.modal)}}function hv(e,t){if(1&e&&(xo(0,"span"),ea(1),Co()),2&e){const e=Do(4);Zr(1),na("",e.campusName," Student")}}function dv(e,t){if(1&e&&(xo(0,"span"),ea(1),Co()),2&e){const e=Do(4);Zr(1),na("",e.campusName," Faculty/Staff")}}function pv(e,t){if(1&e&&(xo(0,"span"),ea(1),Co()),2&e){const e=Do().$implicit;Zr(1),ta(e.display)}}function fv(e,t){if(1&e){const e=Io();xo(0,"li",10),Ro("click",function(){Nt(e);const n=t.$implicit;return Do(3).selectAnswer(n.display,n.value)}),xo(1,"div",11),xo(2,"label",39),vo(3,hv,2,1,"span",40),vo(4,dv,2,1,"span",40),vo(5,pv,2,1,"span",41),Co(),Co(),Co()}if(2&e){const e=t.$implicit,n=t.index,s=Do(3);bo("tabindex",0==n?0:-1)("ngClass",s.getActive(e.display,e.value)),go("data-index",n),Zr(2),bo("ngSwitch",e.display),Zr(1),bo("ngSwitchCase","campusNameStudentTmp"),Zr(1),bo("ngSwitchCase","campusNameFacultyTmp")}}function mv(e,t){if(1&e){const e=Io();xo(0,"a",29),Ro("click",function(){Nt(e);const t=Do(4),n=_o(3);return t.openModal(n)}),ea(1),Co()}if(2&e){const e=Do(4);Zr(1),ta(e.question.options.modal.modalTitle)}}function gv(e,t){if(1&e&&(xo(0,"p",27),vo(1,mv,2,1,"a",28),Co()),2&e){const e=Do(3);Zr(1),bo("ngIf",e.question.options.modal.modalTitle.length>0)}}function yv(e,t){if(1&e&&(xo(0,"div",21),xo(1,"div",22),xo(2,"h4"),ea(3),Co(),Co(),xo(4,"fieldset",23),xo(5,"ul",7),vo(6,fv,6,6,"li",9),Co(),vo(7,gv,2,1,"p",25),Co(),Co()),2&e){const e=Do(2);Zr(3),na(" ",e.question.inputText," "),Zr(3),bo("ngForOf",e.question.options.options),Zr(1),bo("ngIf",e.question.options.modal)}}function vv(e,t){if(1&e){const e=Io();xo(0,"div",13),xo(1,"h4"),ea(2),Co(),xo(3,"div",42),xo(4,"div",43),xo(5,"label",43),xo(6,"span"),ea(7),Co(),xo(8,"span",44),ea(9),Co(),Co(),xo(10,"input",45,46),Ro("change",function(){Nt(e);const t=_o(11);return Do(2).selectAnswer("",t.value)}),Co(),xo(12,"label",47),xo(13,"span",48),ea(14),Co(),xo(15,"span",49),ea(16),Co(),xo(17,"span",44),ea(18),Co(),Co(),Co(),Co(),Co()}if(2&e){const e=_o(11),t=Do(2);Zr(2),na(" ",t.question.inputText," "),Zr(5),ta(t.question.options.options.lowerDisplay),Zr(2),ta(t.question.options.options.upperDisplay),Zr(1),bo("value",t.question.options.options.lowerScale)("min",t.question.options.options.lowerScale)("max",t.question.options.options.upperScale),Zr(4),ta(t.question.options.options.lowerScale),Zr(2),na("",e.value,"%"),Zr(2),ta(t.question.options.options.upperScale)}}function _v(e,t){1&e&&(Eo(0),vo(1,Xy,5,2,"ul",4),vo(2,nv,6,3,"div",5),vo(3,ov,8,3,"div",6),vo(4,uv,12,4,"div",6),vo(5,yv,8,3,"div",6),vo(6,vv,19,9,"div",5),To()),2&e&&(Zr(2),bo("ngSwitchCase","card"),Zr(1),bo("ngSwitchCase","column-card"),Zr(1),bo("ngSwitchCase","column-input"),Zr(1),bo("ngSwitchCase","column-list"),Zr(1),bo("ngSwitchCase","scale"))}function wv(e,t){if(1&e){const e=Io();xo(0,"div",50),xo(1,"h4",51),ea(2),Co(),xo(3,"button",52),Ro("click",function(){return Nt(e),Do().closeModal()}),xo(4,"span",53),ea(5,"\xd7"),Co(),Co(),Co(),xo(6,"div",54),ea(7),Co(),xo(8,"div",55),xo(9,"button",56),Ro("click",function(){return Nt(e),Do().closeModal()}),ea(10,"Close"),Co(),Co()}if(2&e){const e=Do();Zr(2),ta(e.modalTitle),Zr(5),na(" ",e.modalBody," ")}}function bv(e,t){if(1&e){const e=Io();xo(0,"div",50),xo(1,"h4",51),ea(2,"Attention"),Co(),xo(3,"button",52),Ro("click",function(){return Nt(e),Do().closeModal()}),xo(4,"span",53),ea(5,"\xd7"),Co(),Co(),Co(),xo(6,"div",54),ea(7," If you are considering suicide or concerned about the safety of someone else, there is help. Please call the National Suicide Hotline at 800-273-8255, call 911, or go to your nearest hospital. "),Co(),xo(8,"div",55),xo(9,"button",56),Ro("click",function(){return Nt(e),Do().closeModal()}),ea(10,"Close"),Co(),Co()}}let Sv=(()=>{class e{constructor(e,t,n,s){this.questionService=e,this.modalService=t,this.util=n,this.config=s,this.index=0,this.siModalShown=!1}ngOnInit(){this.timeoutTime="scale"===this.question.options.template?1500:0}next(e){this.questionService.nextQuestion(e)}get campusName(){return this.config.campus.name}selectAnswer(e,t){null==this.question.response?(this.question.response=t,this.question.responseId=this.util.hashCode(e+t),this.next(this.index+1)):(this.question.response=t,this.question.responseId=this.util.hashCode(e+t)),"depression_9"==this.question.name&&parseInt(this.question.response)>0&&!this.siModalShown&&(this.openModal(this.siModal),this.siModalShown=!0),this.questionService.questionAnswered()}openModal(e){console.log("openModal"),this.modalRef=this.modalService.show(e)}closeModal(){this.modalRef.hide()}get modalBody(){return this.question.options.modal.modalBody}get modalTitle(){return this.question.options.modal.modalTitle}getActive(e,t){return this.question.responseId==this.util.hashCode(e+t)?"active":""}getSelectionClass(e,t){return this.question.responseId==this.util.hashCode(e+t)?"btn-primary":"btn-light"}}return e.\u0275fac=function(t){return new(t||e)(wo(Gm),wo(Wy),wo($f),wo(Lm))},e.\u0275cmp=He({type:e,selectors:[["","app-question-template",""]],viewQuery:function(e,t){if(1&e&&Ll(Zy,1),2&e){let e;Ml(e=Ul())&&(t.siModal=e.first)}},inputs:{question:"question",index:"index"},attrs:Yy,decls:6,vars:2,consts:[[1,"mb-4",3,"ngSwitch"],[4,"ngIf"],["whyWeAskTemplate",""],["si",""],["class","list-group my-3","radiogroup","",4,"ngSwitchDefault"],["class","my-5",4,"ngSwitchCase"],["class","row my-5",4,"ngSwitchCase"],["radiogroup","",1,"list-group","my-3"],[1,"list-unstyled"],["class","list-group-item p-0","radio","",3,"tabindex","ngClass","click",4,"ngFor","ngForOf"],["radio","",1,"list-group-item","p-0",3,"tabindex","ngClass","click"],[1,"form-check"],[1,"form-check-label","col","p-2","pl-3","cursor-pointer"],[1,"my-5"],["radiogroup","",1,"card-deck","p-2"],["class","card shadow","radio","",3,"tabindex","click",4,"ngFor","ngForOf"],["class","cursor-pointer pt-3 text-danger",3,"click",4,"ngIf"],["radio","",1,"card","shadow",3,"tabindex","click"],[1,"card-body","btn",3,"ngClass"],[1,"card-text","text-center"],[1,"cursor-pointer","pt-3","text-danger",3,"click"],[1,"row","my-5"],[1,"col-7"],[1,"col-5"],["radiogroup","",1,"card-deck"],["class","card-deck mt-3",4,"ngIf"],[1,"card-body","btn","p-2",3,"ngClass"],[1,"card-deck","mt-3"],["class","text-primary cursor-pointer",3,"click",4,"ngIf"],[1,"text-primary","cursor-pointer",3,"click"],[1,"card-deck"],[1,"input-group"],["type","text",1,"form-control",3,"value","change"],["input",""],[1,"input-group-append"],["class","input-group-text bg-transparent",4,"ngIf"],["class","card-deck mt-2",4,"ngIf"],[1,"input-group-text","bg-transparent"],[1,"card-deck","mt-2"],[1,"form-check-label","col","p-2","pl-3","cursor-pointer",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"card-deck","p-2"],[1,"col"],[1,"float-right"],["type","range",1,"form-control-range","custom-range","range-bg-primary",3,"value","min","max","change"],["rangeSlide",""],[1,"col","text-center","mt-1"],[1,"float-left"],[1,"font-weight-bold"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","pull-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,t){1&e&&(xo(0,"div",0),vo(1,_v,7,5,"ng-container",1),vo(2,wv,11,2,"ng-template",null,2,Bl),vo(4,bv,11,0,"ng-template",null,3,Bl),Co()),2&e&&(bo("ngSwitch",t.question.options.template),Zr(1),bo("ngIf",!t.question.hidden))},directives:[_u,mu,bu,wu,Gy,pu,Ky,hu],styles:["div[radio][_ngcontent-%COMP%]:focus, li[radio][_ngcontent-%COMP%]:focus{outline:1px auto -webkit-focus-ring-color!important}"]}),e})();const xv=function(e){return{"d-none":e}};function Cv(e,t){if(1&e&&ko(0,"div",9),2&e){const e=t.$implicit,n=t.index;bo("ngClass",yl(3,xv,e.hidden))("question",e)("index",n)}}let kv=(()=>{class e{constructor(e,t,n,s,r,i,o){this.applicationUserService=e,this.config=t,this.router=n,this.questionService=s,this.questionAdapterService=r,this.toast=i,this.util=o,this.questions=[]}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>{this.applicationUser=e,e.demographic?this.questions=e.demographic:this.getQuestions()}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.demographic=this.questions,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionAnsweredSubscription,this.applicationUserSubscription)}getQuestions(){this.config.getQuestions("demographic").subscribe(e=>{let t=e.resourceItems.map(e=>{let t=this.questionAdapterService.adapt(e);return t.hidden=!1,t});e.demo.push({class:"demographic",name:"accessibility",inputText:"Would you like to turn on the accessibility features of this web site?",category:"",outputText:"",product:"screener",type:"coll",group:null,options:{template:"column-card",modal:{modalTitle:"Why do we ask if you would like to turn on the accessibility features of this web site?",modalBody:"Accessibility features allow users to utilize a screen reader or other adaptive technologies to access all information within the program. All content is identical, only the presentation format will change if \u201cyes\u201d is selected."},options:[{display:"No",value:"N"},{display:"Yes",value:"Y"}]},secondaryResponse:null});let n=e.demo.map(e=>{let t=this.questionAdapterService.adapt(e);return t.hidden=!1,t});this.questions=t.concat(n),this.applicationUser.demographic=this.questions,this.applicationUserService.update(this.applicationUser)})}back(){return()=>this.router.navigate([this.config.takeAScreener])}next(){return()=>this.router.navigate([this.config.assessment])}canNext(){return e=>{let t=this.util.questionsCompleted(this.questions);return e&&!t&&this.toast.error("Please answer all questions before continuing."),t}}}return e.\u0275fac=function(t){return new(t||e)(wo(Km),wo(Lm),wo(Sf),wo(Gm),wo(Xm),wo(Ng),wo($f))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:19,vars:5,consts:[[1,"row","mb-5"],[1,"interstitial","demographics"],[1,"container","pb-5"],[1,"row"],[1,"col"],[1,"h4","font-weight-bold"],[1,"font-weight-bold"],["app-question-template","",3,"ngClass","question","index",4,"ngFor","ngForOf"],[1,"mt-2",3,"showNavigation","returnAction","canNext","nextAction"],["app-question-template","",3,"ngClass","question","index"]],template:function(e,t){1&e&&(xo(0,"div",0),xo(1,"div",1),ea(2,"\xa0"),Co(),Co(),xo(3,"div",2),xo(4,"div",3),xo(5,"div",4),xo(6,"h1"),ea(7,"Demographics"),Co(),xo(8,"p",5),ea(9,"All answers are confidential."),Co(),xo(10,"p"),ea(11," Your name and your personally identifiable information "),xo(12,"u",6),ea(13,"will not"),Co(),ea(14," be stored or associated with your responses. "),Co(),Co(),Co(),xo(15,"div",0),xo(16,"div",4),vo(17,Cv,1,5,"div",7),Co(),Co(),Co(),ko(18,"app-footer",8)),2&e&&(Zr(17),bo("ngForOf",t.questions),Zr(1),bo("showNavigation",!0)("returnAction",t.back())("canNext",t.canNext())("nextAction",t.next()))},directives:[pu,Bg,Sv,hu],styles:[""]}),e})();const Ev=function(e){return{"d-none":e}};function Tv(e,t){if(1&e&&ko(0,"div",11),2&e){const e=t.$implicit,n=t.index;bo("ngClass",yl(3,Ev,e.hidden))("question",e)("index",n)}}let Av=(()=>{class e{constructor(e,t,n,s,r,i,o){this.config=e,this.questionAdapterService=t,this.questionService=n,this.util=s,this.router=r,this.toast=i,this.applicationUserService=o,this.questions=[]}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>{this.applicationUser=e,e.product&&e.product[this.config.product]&&e.product[this.config.product].assessment?(this.questions=e.product[this.config.product].assessment,void 0===this.questionIncrementSubscription&&this.listenQuestionIncrement()):this.getQuestions()}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.product[this.config.product].assessment=this.questions,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionIncrementSubscription,this.questionAnsweredSubscription,this.applicationUserSubscription)}getQuestions(){this.config.getQuestions().subscribe(e=>{this.questions=e.resourceItems.map(e=>this.questionAdapterService.adapt(e)),this.applicationUser.product||(this.applicationUser.product={}),this.applicationUser.product[this.config.product]={},this.applicationUser.product[this.config.product].assessment=this.questions,this.listenQuestionIncrement(),this.questionService.nextQuestion(0),this.applicationUserService.update(this.applicationUser)})}listenQuestionIncrement(){this.questionIncrementSubscription=this.questionService.questionIncrementObservable.subscribe(e=>{this.progress=this.util.questionAnswered(this.questions);let t=this.questions.find(e=>e.hidden);t&&(t.hidden=!1,this.util.scroll(5e3))})}getDisplayName(e){let t=zf.find(t=>t.id===e);return t?t.display:e}getInstructions(e){let t=zf.find(t=>t.id===e);return t?t.instructions:"Please answer the following questions."}get product(){return this.config.product}progressText(){return this.util.questionsCompleted(this.questions)?"All Done. Click next to continue.":`${this.progress?this.progress:0} / ${this.questions?this.questions.length:0}`}back(){return()=>this.router.navigate([this.config.startSession(this.product)])}next(){return()=>this.router.navigate([this.config.assessmentFeedback])}canNext(){return e=>{let t=this.util.questionsCompleted(this.questions);return e&&!t&&this.toast.error("Please check for completion before continuing."),t}}}return e.\u0275fac=function(t){return new(t||e)(wo(Lm),wo(Xm),wo(Gm),wo($f),wo(Sf),wo(Ng),wo(Km))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:15,vars:7,consts:[[1,"interstitial"],[1,"container"],[1,"row"],[1,"col-sm-12","mt-4","mb-3"],[1,"h3","text-white",2,"text-transform","uppercase !important"],[1,"container","pb-5"],[1,"col","my-3"],[1,"row","mb-5"],[1,"col"],["app-question-template","",3,"ngClass","question","index",4,"ngFor","ngForOf"],[1,"mt-2",3,"showNavigation","canNext","returnAction","nextAction"],["app-question-template","",3,"ngClass","question","index"]],template:function(e,t){1&e&&(xo(0,"div",0),xo(1,"div",1),xo(2,"div",2),xo(3,"div",3),xo(4,"h1",4),ea(5),Co(),Co(),Co(),Co(),Co(),xo(6,"div",5),xo(7,"div",2),xo(8,"div",6),xo(9,"h3"),ea(10),Co(),Co(),Co(),xo(11,"div",7),xo(12,"div",8),vo(13,Tv,1,5,"div",9),Co(),Co(),Co(),ko(14,"app-footer",10)),2&e&&(Zr(5),na("",t.getDisplayName(t.product)," Screening"),Zr(5),ta(t.getInstructions(t.product)),Zr(3),bo("ngForOf",t.questions),Zr(1),bo("showNavigation",!0)("canNext",t.canNext())("returnAction",t.back())("nextAction",t.next()))},directives:[pu,Bg,Sv,hu],styles:[""]}),e})();function Iv(e,t,n,s){return new(n||(n=Promise))(function(r,i){function o(e){try{l(s.next(e))}catch(t){i(t)}}function a(e){try{l(s.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}l((s=s.apply(e,t||[])).next())})}class Ov{constructor(e){this.si=!1,this.score=e}get feedbackStatement(){return"Enter feedbackStatement in extended class"}get staticFeedback(){return"Enter staticFeedback in extended class"}get moreInfo(){return"Enter moreInfo in extended class"}get recommendationStatement(){return"Enter recommendationStatement in extended class"}get disclaimer(){return"Enter recommendationStatement in disclaimer class"}get lookingForwardText(){return"Enter lookingForwardText in disclaimer class"}get hasProblem(){return!1}get strategyAndSkill(){return[]}get learnMore(){return[]}get learnMoreOb(){return[]}get lookingForwardQuestions(){return[{model:"lf_improved_relationships",display:"Improved relationships"},{model:"lf_better_sleep",display:"Better sleep"},{model:"lf_deeper_connection",display:"Deeper connection with others"},{model:"lf_increase_comfort",display:"Increase comfort in my body"},{model:"lf_increase_confidence",display:"Increase confidence"},{model:"lf_improved_energy",display:"Improved energy"},{model:"lf_clearer_thinking",display:"Clearer thinking"},{model:"lf_healthier_thoughts",display:"Healthier thoughts"},{model:"lf_improved_health",display:"Improved general health"},{model:"lf_optimism",display:"Increased optimism"},{model:"lf_stable",display:"Feeling more stable"},{model:"lf_enhanced_joy",display:"Enhanced feeling of joy/flourishing"},{model:"lf_improved_communication",display:"Improved communication"}]}get changeFeedbackStatement(){switch(!0){case 0==this.changeResponse:case 1==this.changeResponse:return"Great, you are highly motivated to take the next step toward change. Remember, setting a specific day/time to follow-up can increase your chance of successfully following through.";case 2==this.changeResponse:return"Great, you are motivated to learn more. Please use the links and resources provided. There is help and change is possible.";case 3==this.changeResponse:return"While you are not yet ready to take your next step toward change, what you have done today is a brave start. It is important for you to know that issues like these are treatable and help is available. Please feel free to print or screenshot these resources or come back and complete another screener at a later date.";case 4==this.changeResponse:return"What you have done today by taking this screener is a brave start. Anything you do to follow up is your choice, and even the smallest changes can lead to large differences in your well-being. It makes sense that you are unsure about how to go forward. It is important for you to know that issues like these are treatable and help is available. Please feel free to print or screenshot these resources or come back and complete another screener at a later date."}}get nextSteps(){return{inputText:"How ready are you to follow up on your results? (Please select one)",class:"screener",name:"chg_ready",options:{template:"column",options:[{display:"I plan to follow-up in the next day or 2",value:0},{display:"I plan to follow-up in the next week",value:1},{display:"I'd like to explore on my own first",value:2},{display:"I'm not ready yet",value:3},{display:"I'm unsure",value:4}]}}}}class Rv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=4:return"Your responses do not suggest you are coping with depression.";case this.score<=9:return"Your responses indicate some features of depression.";case this.score<=14:return"Your responses indicate some features of moderate depression.";case this.score<=19:return"Your responses are consistent with people coping with depression.";default:return"Your responses are consistent with people coping with severe depression."}}get recommendationStatement(){switch(!0){case this.score<=4:return"If your experience makes you feel that this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";case this.score<=9:case this.score<=14:return"You should remain mindful of your mood and consider speaking with a professional if you are concerned about your well-being or safety, or if your mood worsens.";case this.score<=19:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood worsens.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood worsens.\n\nIf you are considering suicide, concerned about your safety, or the safety of someone else, there is help. Please call the National Suicide Hotline at 800-273-8255, call 911, or go to your nearest hospital."}}get staticFeedback(){return"Behavioral health issues such as depression are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"SI Trigger: Dube P, Kroenke K, Bair MJ, Theobald D, Williams L. The P4 screener: a brief measure for assessing potential suicidal risk. J Clin Psychiatry Primary Care Companion 2010 (in press). [Algorithm for following up on positive responses to 9th item of PHQ-9]\n\n Depression feedback source: Kroenke K, Spitzer RL, Psychiatric Annals 2002;32:509-521 "}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."},{title:"Feel Good Song",desc:"Listen to a song that makes you feel good, that makes you want to move or dance, or that reminds you of a good time in your life. Be mindful: listen closely and experience the music."},{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/depression/21-mh-8079-depression_161666.pdf","https://www.nami.org/getattachment/Learn-More/Fact-Sheet-Library/Depression-Fact-Sheet.pdf"]}get learnMoreOb(){return[{title:"What is Depression?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/depression/21-mh-8079-depression_161666.pdf"},{title:"Depression Fact Sheet",icon:"icon_pdf",url:"https://www.nami.org/getattachment/Learn-More/Fact-Sheet-Library/Depression-Fact-Sheet.pdf"}]}get lookingForwardText(){return"What would you look forward to if your mood improved?"}}class Pv extends Ov{constructor(e){super(e),this.condition="anxiety"}get feedbackStatement(){switch(!0){case this.score<=4:return"Your responses are consistent with minimal anxiety.";case this.score<=9:return"Your responses suggest a mild level of anxiety.";case this.score<=14:return"Your responses suggest a moderate level of anxiety.";default:return"Your responses suggest a high level of anxiety."}}get recommendationStatement(){switch(!0){case this.score<=4:return"If your experience makes you feel otherwise, you may consider speaking to a professional to consider other explanations for the way you are feeling.";case this.score<=9:case this.score<=14:return"You should remain mindful of your mood and consider speaking with a professional if you are concerned about your anxiety or wish to make a change in the way you are feeling.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety."}}get staticFeedback(){return"Anxiety is the most commonly reported mental health diagnosis in college students, and its effects can be significant for some. Anxiety can impact concentration, memory formation, attention, and even \u201cexecutive functioning\u201d such as planning and decision-making.\n\nBehavioral health issues such as anxiety are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"GAD-7 Anxiety Severity. This is calculated by assigning scores of 0, 1, 2, and 3, to the response\n categories of \u2015not at all, \u2015several days, \u2015more than half the days, and \u2015nearly every day, respectively.\n GAD-7 total score for the seven items ranges from 0 to 21. Scores of 5, 10, and 15 represent cutpoints\n for mild, moderate, and severe anxiety, respectively. Though designed primarily as a screening and severity\n measure for generalized anxiety disorder, the GAD-7 also has moderately good operating characteristics for\n three other common anxiety disorders \u2013 panic disorder, social anxiety disorder, and post-traumatic stress\n disorder. When screening for anxiety disorders, a recommended cutpoint for further evaluation is a score\n of 10 or greater."}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Breathe",desc:"Practice deep, focused breathing. Breathe in for 4 counts, hold for 2 counts and release for 4 counts. Continue for 5 minutes. Focus breathing relaxes your heart rate and combats anxiety."},{title:"Reduce Caffeine",desc:"Pay attention to your diet and see if you are drinking a lot of high-caffeine and/or high-sugar drinks like coffee and soft-drinks. Reduce your caffeine intake and eliminate those drinks a least 4 hours before bed."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/generalized-anxiety-disorder-gad/19-mh-8090-generalizedanxietydisorder_124169.pdf"]}get learnMoreOb(){return[{title:"Generalized Anxiety Disorder",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/generalized-anxiety-disorder-gad/19-mh-8090-generalizedanxietydisorder_124169.pdf"}]}get lookingForwardText(){return"What would you look forward to if your level of anxiety changed?"}}class Nv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=7:return"Your responses are consistent with a \u201clow risk\u201d for alcohol misuse. ";case this.score<=14:return"Your responses are consistent with \u201crisky\u201d or \u201chazardous\u201d alcohol misuse.";default:return"Your responses are consistent with \u201charmful\u201d alcohol misuse and alcohol dependence."}}get recommendationStatement(){switch(!0){case this.score<=7:return"It is not likely that you are currently experiencing negative consequences associated with alcohol use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=14:return"It is likely that your level of alcohol use is putting you at risk for physical, emotional, and/or social consequences. Long-term alcohol misuse can cause diseases of the liver, brain, heart, and other organs. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of alcohol use is putting you at risk for physical, emotional, and/or social consequences. Long-term alcohol misuse can cause lead to diseases of the liver, brain, heart, and other organs. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>7}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.niaaa.nih.gov/sites/default/files/publications/Alcohol_Use_Disorder.pdf"]}get learnMoreOb(){return[{title:"Understanding Alcohol Use Disorder",icon:"icon_pdf",url:"https://www.niaaa.nih.gov/sites/default/files/publications/Alcohol_Use_Disorder.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your alcohol use?"}}class Dv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=1:return"Your responses are not consistent with an eating disorder.";default:return"Your responses indicate you have concerns regarding body weight, body shape, and/or eating."}}get recommendationStatement(){switch(!0){case this.score<=1:return"You may also want to consider if you have engaged in the following behaviors for weight control. If so, then you might have problematic eating behaviors and consultation with a counselor could be helpful.\n\n- Binge-eating\n- Self-induced vomiting\n- Laxative use to control weight\n- Eating disorder treatment";default:return"You could benefit from seeking help from a professional who has experience working with eating disorders. While completing a screening like this one is a good first step, only a qualified health professional can provide you with an accurate diagnosis."}}get staticFeedback(){return"Behavioral health issues such as eating disorders are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>19}get strategyAndSkill(){return[{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Feel Good Song",desc:"Listen to a song that makes you feel good, that makes you want to move or dance, or that reminds you of a good time in your life. Be mindful: listen closely and experience the music."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/eating-disorders/eatingdisorders_148810.pdf"]}get learnMoreOb(){return[{title:"Eating Disorders: About More Than Food",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/eating-disorders/eatingdisorders_148810.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your relationship with food?"}}class Fv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=0:return"Your responses indicate you are not at risk of bipolar disorder.";default:return"Your responses indicate you are at risk of bipolar disorder."}}get recommendationStatement(){switch(!0){case this.score<=0:return"If your experience makes you feel this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";default:return'Bipolar disorder (sometimes called \u201cmanic depression\u201d) is a serious mental health condition that causes disruptions in mood, sleep, thinking, energy, and behavior. It can often lead to serious consequences for the affected person and those around them. People who develop a Bipolar disorder often first show signs of the disorder between the ages of 18 and 23.\n\nIt is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or if your mood swings widely between the "highs" and the "lows."'}}get staticFeedback(){return"Behavioral health issues such as Bipolar Spectrum Disorders are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>0}get strategyAndSkill(){return[{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."},{title:"Make it Routine",desc:"Develop a routine and monitor your mood daily. Having a routine can help keep you organized and reduce stress. You can also take note of when you are breaking your routine, or if your mood starts to change significantly."},{title:"Sweat",desc:"Physical exercise not only strengthens your body, it strengthens your mind. Regular exercise can help improve memory and learning and help stabilize your mood by combating depression."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/bipolar-disorder/index.shtml","https://www.nimh.nih.gov/health/publications/bipolar-disorder/19-mh-8088_152248.pdf"]}get learnMoreOb(){return[{title:"What is Bipolar Disorder?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/bipolar-disorder/19-mh-8088_152248.pdf"},{title:"Bipolar Disorder Facts",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/bipolar-disorder/index.shtml"}]}get lookingForwardText(){return"What would you look forward to if your mood was more stable?"}}class jv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=7:return"Your responses are consistent with a \u201clow risk\u201d for cannabis misuse.";case this.score<=11:return"Your responses are consistent with \u201crisky\u201d or \u201chazardous\u201d cannabis misuse.";default:return"Your responses are consistent with \u201charmful\u201d cannabis misuse and cannabis dependence."}}get recommendationStatement(){switch(!0){case this.score<=7:return"It is not likely that you are currently experiencing negative consequences associated with cannabis use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=11:return"It is likely that your level of cannabis use is putting you at increased risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of cannabis use is putting you at increased risk for negative physical, emotional, and/or social consequences.\n\nLong-term cannabis misuse can lead to impairment of brain functions like learning and memory, and have negative physical effects like breathing problems, increased heart rate, and cycles of nausea and vomiting. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>7}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.drugabuse.gov/sites/default/files/drugfacts-marijuana.pdf"]}get learnMoreOb(){return[{title:"Cannabis Drug Facts",icon:"icon_pdf",url:"https://www.drugabuse.gov/sites/default/files/drugfacts-marijuana.pdf"}]}get lookingForwardText(){return"What would you look forward to if you made a change in your cannabis use?"}}class Mv extends Ov{constructor(e,t){super(e),this.questions=t,console.log("this.questions",this.questions)}get feedbackStatement(){switch(!0){case this.score<=3:return`Your responses indicated you are low risk of health and other problems from your current pattern of use.${this.injection()}`;case this.score<=26:return`Your responses indicated you are at risk of health and other problems from your current pattern of use.${this.injection()}`;default:return`Your responses indicate you are at high risk of experiencing severe problems (health, social, financial, legal, and/or relationship problems) as a result of your current pattern of use and are likely to be dependent.${this.injection()}`}}get recommendationStatement(){switch(!0){case this.score<=3:return"It is not likely that you are currently experiencing negative consequences associated with opioid use. If your experience makes you feel otherwise, you may consider speaking to a professional for further assessment.";case this.score<=26:return"It is likely that your level of opioid use is putting you at increased risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being.";default:return"It is likely that your level of opioid use is putting you at high risk for negative physical, emotional, and/or social consequences. It is recommended that you speak with a professional for further assessment, especially if you are concerned about your health or well-being."}}get staticFeedback(){return"Substance use issues are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return""}get hasProblem(){return this.score>3}get strategyAndSkill(){return[{title:"Avoid Triggers",desc:"Triggers are things that can start or continue the process of substance misuse. Learn to identify and manage strong emotions like stress, fear, and anger, and environmental triggers like people or places that encourage substance misuse."},{title:"Self-Care",desc:"Go for a walk, get a massage, take a bubble bath, wear your most comfy clothes. Learning to self-soothe is an important skill to combat the thoughts and feelings that can lead to unhealthy behaviors."},{title:"Write it Down",desc:"Journaling or recording your thoughts and feelings can help get them out of your head, and help you organize your thinking. You can also look for patterns or common themes that are related to how you\u2019re feeling."}]}get learnMore(){return["https://www.cdc.gov/drugoverdose/patients/materials.html"]}get learnMoreOb(){return[{title:"CDC: Opioid Information",icon:"icon_pdf",url:"https://www.cdc.gov/drugoverdose/patients/materials.html"}]}injection(){return parseInt(this.questions[3].response)>0?"\n\nMoreover, persons who have injected drugs more than an average of 4 times per month in the last 3 months are also likely to be at high risk.":""}get lookingForwardText(){return"What would you look forward to if you made a change in your opioid use?"}}class Lv extends Ov{constructor(e){super(e)}get feedbackStatement(){switch(!0){case this.score<=13:return"Your responses are not consistent with post-traumatic stress disorder.";default:return"Your responses are consistent with post-traumatic stress disorder."}}get recommendationStatement(){switch(!0){case this.score<=13:return"If your experience makes you feel this is incorrect, you may consider speaking to a professional to consider other explanations for the way you are feeling.";default:return"It is recommended that you speak with a professional for further assessment, especially if you are concerned about your well-being or safety, or the safety of others. While completing a screening like this one is a good first step, only a qualified health professional can provide you with an accurate diagnosis."}}get staticFeedback(){return"Behavioral health issues such as Post-Traumatic Stress Disorder are treatable. Many individuals are unsure where and how to get help or learn more. You have taken the first step toward learning more about yourself and moving toward making a change. The resources and tools that follow are intended to support you in taking the next step should you or a friend need them."}get disclaimer(){return"Please note that this feedback is not a substitute for medical advice. Please consult directly with your medical/mental health provider to discuss your results. Please use the resources provided in this program if you are not currently connected to a provider."}get moreInfo(){return"Scores from each item are summed to attain a final score. The maximum score is 32 and represents the most severe symptom state, while a cutoff score of 14 has been suggested by authors to warrant further assessment using a structured interview for PTSD."}get hasProblem(){return this.score>4}get strategyAndSkill(){return[{title:"Sleep Well",desc:"A healthy sleep cycle is important to your overall health. If possible, try to go to bed and wake up at the same time every day, get at least 7 hours of sleep and sleep in a dark room free from noise and distractions."},{title:"Connect",desc:"Connect with family and friends, and if possible, let them know how you\u2019re feeling. Social isolation can increase feelings of depression and helplessness. Also, having someone to talk to can help you get through stressful situations."},{title:"Sweat",desc:"Physical exercise not only strengthens your body, it strengthens your mind. Regular exercise can help improve memory and learning and help stabilize your mood by combating depression."}]}get learnMore(){return["https://www.nimh.nih.gov/health/publications/post-traumatic-stress-disorder-ptsd/20-mh-8124-ptsd_38054.pdf"]}get learnMoreOb(){return[{title:"What is Post-Traumatic Stress Disorder?",icon:"icon_pdf",url:"https://www.nimh.nih.gov/health/publications/post-traumatic-stress-disorder-ptsd/20-mh-8124-ptsd_38054.pdf"}]}get lookingForwardText(){return"What would you look forward to if your symptoms changed?"}}let Uv=(()=>{class e{constructor(e){this.http=e}getResources(e,t){return this.http.get(`${Bf}/screener/r/${e}/${t}`)}}return e.\u0275fac=function(t){return new(t||e)(us(wm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class qv{constructor(e,t,n){this.name=e,this.url=t,this.tel=n}}let Hv=(()=>{class e{constructor(){}adapt(e){return new qv(e.dept,e.url,e.tel)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$v=(()=>{class e{constructor(e,t,n){this.resourcesService=e,this.resourceAdapterService=t,this.config=n}score(e){if(e&&e.length>0)return this[e[0].qClass](e);console.error("questions param must be valid")}audit(e){return Iv(this,void 0,void 0,function*(){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"audit").subscribe(n=>{let s=new Nv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})})}anxiety(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"anxiety").subscribe(n=>{let s=new Pv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}eating(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"eating").subscribe(n=>{let s=new Dv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}bipolar(e){let t=e.slice(0,13).reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0),n=parseInt(e[14].response),s=parseInt(e[15].response)?1:0,r=t>=7&&n>0&&s>=1?1:0;return new Promise(e=>{this.getResources(this.config.campus.campusId,"bipolar").subscribe(t=>{let n=new Fv(r);n.resources=t.map(e=>this.resourceAdapterService.adapt(e)),e(n)})})}depression(e){return Iv(this,void 0,void 0,function*(){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0),n=e.filter(e=>"depression_9"===e.name);return new Promise(e=>{this.getResources(this.config.campus.campusId,"depression").subscribe(s=>{let r=new Rv(t);r.resources=s.map(e=>this.resourceAdapterService.adapt(e)),n&&n.length>0&&(r.si=parseInt(n[0].response)>0),e(r)})})})}cudit(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"cudit").subscribe(n=>{let s=new jv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}opioid(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(n=>{this.getResources(this.config.campus.campusId,"opioid").subscribe(s=>{let r=new Mv(t,e);r.resources=s.map(e=>this.resourceAdapterService.adapt(e)),n(r)})})}ptsd(e){let t=e.reduce((e,t)=>e+(null!=t.response?parseInt(t.response):0),0);return new Promise(e=>{this.getResources(this.config.campus.campusId,"ptsd").subscribe(n=>{let s=new Lv(t);s.resources=n.map(e=>this.resourceAdapterService.adapt(e)),e(s)})})}getResources(e,t){return this.resourcesService.getResources(e,t)}}return e.\u0275fac=function(t){return new(t||e)(us(Uv),us(Hv),us(Lm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Bv=(()=>{class e{transform(e){{let t,n,s,r=e.toString().trim().replace(/^\+|-|\(|\)/g,"");if(r.match(/[^0-9]/))return e;switch(r.length){case 10:t=1,n=r.slice(0,3),s=r.slice(3);break;case 11:t=r[0],n=r.slice(1,4),s=r.slice(4);break;case 12:t=r.slice(0,3),n=r.slice(3,5),s=r.slice(5);break;default:return e}return 1==t&&(t=""),s=s.slice(0,3)+"-"+s.slice(3),(t+" ("+n+") "+s).trim()}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Ke({name:"phone",type:e,pure:!0}),e})();const Vv=["page"];function zv(e,t){1&e&&Ao(0)}function Wv(e,t){1&e&&Ao(0)}function Qv(e,t){1&e&&Ao(0)}function Kv(e,t){1&e&&ko(0,"div")}function Gv(e,t){1&e&&Ao(0)}function Zv(e,t){if(1&e){const e=Io();xo(0,"div",14),xo(1,"div",18),xo(2,"button",19),Ro("click",function(){return Nt(e),Do(2).printFeedback()}),ea(3,"Print Feedback"),Co(),Co(),Co()}}function Yv(e,t){if(1&e&&(xo(0,"div",13),xo(1,"div",14),xo(2,"div",15),xo(3,"h1",16),ea(4,"Results"),Co(),Co(),Co(),vo(5,Zv,4,0,"div",17),Co()),2&e){const e=Do();Zr(5),bo("ngIf",e.changeModule||!(null!=e.screenerScore&&e.screenerScore.hasProblem))}}function Jv(e,t){if(1&e&&(xo(0,"div",20),xo(1,"div",13),xo(2,"div",14),xo(3,"div",21),xo(4,"p",22),ea(5),Co(),Co(),Co(),Co(),Co(),xo(6,"div",23),xo(7,"div",14),xo(8,"div",24),xo(9,"p",25),ea(10,"Recommendations:"),Co(),xo(11,"p",26),ea(12),Co(),Co(),Co(),xo(13,"div",14),xo(14,"div",27),xo(15,"p",28),ea(16),Co(),Co(),Co(),xo(17,"div",14),xo(18,"div",21),xo(19,"p",29),ea(20),Co(),Co(),Co(),Co()),2&e){const e=Do();Zr(5),ta(null==e.screenerScore?null:e.screenerScore.feedbackStatement),Zr(7),ta(null==e.screenerScore?null:e.screenerScore.recommendationStatement),Zr(4),ta(null==e.screenerScore?null:e.screenerScore.staticFeedback),Zr(4),ta(null==e.screenerScore?null:e.screenerScore.disclaimer)}}function Xv(e,t){if(1&e&&(xo(0,"div",20),xo(1,"div",13),xo(2,"div",14),xo(3,"div",21),xo(4,"p",22),ea(5),Co(),Co(),Co(),Co(),Co()),2&e){const e=Do();Zr(5),ta(null==e.screenerScore?null:e.screenerScore.changeFeedbackStatement)}}const e_=function(e){return{"btn-primary":e}};function t_(e,t){if(1&e){const e=Io();xo(0,"div",36),xo(1,"div",37),xo(2,"div",38),Ro("click",function(){Nt(e);const n=t.$implicit;return Do(2).lfClick(n.model)}),xo(3,"p",39),ea(4),Co(),Co(),Co(),Co()}if(2&e){const e=t.$implicit,n=Do(2);Zr(2),bo("ngClass",yl(2,e_,n.lfIncludes(e.model))),Zr(2),ta(e.display)}}function n_(e,t){if(1&e&&(xo(0,"div",23),xo(1,"div",14),xo(2,"div",30),xo(3,"h2",31),ea(4,"Looking Forward"),Co(),Co(),Co(),xo(5,"div",14),xo(6,"div",32),xo(7,"h4",33),ea(8),Co(),Co(),Co(),xo(9,"div",34),vo(10,t_,5,4,"div",35),Co(),Co()),2&e){const e=Do();Zr(8),na("",null==e.screenerScore?null:e.screenerScore.lookingForwardText," (Please select at least one response)"),Zr(2),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.lookingForwardQuestions)}}function s_(e,t){if(1&e&&(xo(0,"div",43),xo(1,"div",44),xo(2,"div",45),ko(3,"i",46),Co(),xo(4,"div",47),xo(5,"h3",48),ea(6),Co(),xo(7,"p",49),ea(8),Co(),Co(),Co(),Co()),2&e){const e=t.$implicit;Zr(6),na(" ",e.title," "),Zr(2),ta(e.desc)}}function r_(e,t){if(1&e&&(xo(0,"div",23),xo(1,"div",14),xo(2,"div",30),xo(3,"h2",31),ea(4,"Strategies and Skills"),Co(),Co(),Co(),xo(5,"div",14),xo(6,"div",40),xo(7,"p",28),ea(8,"Regardless of your screener results, you can always take a moment to improve your peace of mind and well-being by practicing these strategies and skills. "),Co(),Co(),Co(),xo(9,"div",41),vo(10,s_,9,2,"div",42),Co(),Co()),2&e){const e=Do();Zr(10),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.strategyAndSkill)}}function i_(e,t){1&e&&ko(0,"div",57),2&e&&bo("question",Do(2).changeQuestion)}function o_(e,t){if(1&e&&(xo(0,"div",23),xo(1,"section"),xo(2,"div",13),xo(3,"div",50),vo(4,i_,1,1,"div",51),Co(),Co(),Co(),xo(5,"section",52),xo(6,"div",53),xo(7,"div",54),ko(8,"img",55),Co(),Co(),Co(),Co(),ko(9,"app-footer",56)),2&e){const e=Do();Zr(4),bo("ngIf",e.changeQuestion),Zr(4),bo("src",e.asset.echeckupLogo,er),Zr(1),bo("showNavigation",!0)("returnAction",e.back())("canNext",e.canNext())("nextAction",e.next())}}function a_(e,t){if(1&e&&(xo(0,"p",67),ko(1,"i",68),ea(2," \xa0 "),xo(3,"a",69),ea(4),Co(),Co()),2&e){const e=Do().$implicit;Zr(3),Fo("href",e.url,er),Zr(1),ta(e.url)}}function l_(e,t){if(1&e&&(xo(0,"p",67),ko(1,"i",70),ea(2," \xa0 "),xo(3,"a",71),ea(4),wl(5,"phone"),Co(),Co()),2&e){const e=Do().$implicit;Zr(3),jo("href","tel:",e.tel,"",er),Zr(1),ta(bl(5,2,e.tel))}}function c_(e,t){if(1&e&&(xo(0,"div",63),xo(1,"div",64),ko(2,"p",65),vo(3,a_,5,2,"p",66),vo(4,l_,6,4,"p",66),Co(),Co()),2&e){const e=t.$implicit;Zr(2),bo("innerHTML",e.name,Xs),Zr(1),bo("ngIf",e.url),Zr(1),bo("ngIf",e.tel)}}function u_(e,t){if(1&e&&(xo(0,"div",72),xo(1,"div",73),an(),xo(2,"svg",74),ko(3,"use"),Co(),ln(),xo(4,"a",75),ea(5),Co(),Co(),Co()),2&e){const e=t.$implicit;Zr(3),go("href","assets/img/icons.svg#"+e.icon),Zr(1),Fo("href",e.url,er),Zr(1),ta(e.title)}}function h_(e,t){if(1&e&&(xo(0,"section"),xo(1,"div",58),xo(2,"div",13),xo(3,"div",14),xo(4,"div",15),xo(5,"h2",31),ea(6,"Resources"),Co(),Co(),Co(),xo(7,"div",14),vo(8,c_,5,3,"div",59),Co(),xo(9,"div",14),xo(10,"div",15),xo(11,"h2",31),ea(12,"Learn More"),Co(),Co(),Co(),xo(13,"div",60),xo(14,"div",61),xo(15,"div",14),vo(16,u_,6,3,"div",62),Co(),Co(),Co(),Co(),Co(),Co()),2&e){const e=Do();Zr(8),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.resources),Zr(8),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.learnMoreOb)}}function d_(e,t){if(1&e&&(xo(0,"p",67),ko(1,"i",68),ea(2," \xa0 "),xo(3,"a",69),ea(4),Co(),Co()),2&e){const e=Do().$implicit;Zr(3),Fo("href",e.url,er),Zr(1),ta(e.url)}}function p_(e,t){if(1&e&&(xo(0,"p",67),ko(1,"i",70),ea(2," \xa0 "),xo(3,"a",71),ea(4),wl(5,"phone"),Co(),Co()),2&e){const e=Do().$implicit;Zr(3),jo("href","tel:",e.tel,"",er),Zr(1),ta(bl(5,2,e.tel))}}function f_(e,t){if(1&e&&(xo(0,"div",63),xo(1,"div",64),ko(2,"p",65),vo(3,d_,5,2,"p",66),vo(4,p_,6,4,"p",66),Co(),Co()),2&e){const e=t.$implicit;Zr(2),bo("innerHTML",e.name,Xs),Zr(1),bo("ngIf",e.url),Zr(1),bo("ngIf",e.tel)}}function m_(e,t){if(1&e&&(xo(0,"div",72),xo(1,"div",73),xo(2,"a",75),an(),xo(3,"svg",74),ko(4,"use"),Co(),ea(5),Co(),Co(),Co()),2&e){const e=t.$implicit;Zr(2),Fo("href",e.url,er),Zr(2),go("href","assets/img/icons.svg#"+e.icon),Zr(1),na(" ",e.title,"")}}function g_(e,t){if(1&e){const e=Io();xo(0,"section"),xo(1,"div",58),xo(2,"div",13),xo(3,"div",14),xo(4,"div",15),xo(5,"h2",31),ea(6,"Resources"),Co(),Co(),Co(),xo(7,"div",14),vo(8,f_,5,3,"div",59),Co(),xo(9,"div",14),xo(10,"div",18),xo(11,"button",19),Ro("click",function(){return Nt(e),Do(2).printFeedback()}),ea(12,"Print Feedback"),Co(),Co(),Co(),xo(13,"div",14),xo(14,"div",15),xo(15,"h2",31),ea(16,"Learn More"),Co(),Co(),Co(),xo(17,"div",60),xo(18,"div",61),xo(19,"div",14),vo(20,m_,6,3,"div",62),Co(),Co(),Co(),Co(),Co(),Co()}if(2&e){const e=Do(2);Zr(8),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.resources),Zr(12),bo("ngForOf",null==e.screenerScore?null:e.screenerScore.learnMoreOb)}}function y_(e,t){if(1&e){const e=Io();vo(0,g_,21,2,"section",76),xo(1,"section",77),xo(2,"div",14),xo(3,"div",78),ea(4,"Thank you"),Co(),Co(),xo(5,"div",14),xo(6,"div",79),xo(7,"p",80),ea(8,"Thank you for completing your screening. We hope you found it helpful. If you would like to discuss your results further please follow up with the resources provided above. "),Co(),Co(),Co(),xo(9,"div",14),xo(10,"div",18),xo(11,"button",19),Ro("click",function(){return Nt(e),Do().takeAnotherScreener()}),ea(12,"TAKE ANOTHER SCREENER"),Co(),Co(),Co(),Co(),xo(13,"section",52),xo(14,"div",81),xo(15,"div",54),ko(16,"img",55),Co(),Co(),Co()}if(2&e){const e=Do();bo("ngIf",!e.changeModule),Zr(16),bo("src",e.asset.echeckupLogo,er)}}let v_=(()=>{class e{constructor(e,t,n,s,r,i,o,a,l){this.screenerScoring=e,this.questionService=t,this.questionAdapterService=n,this.router=s,this.route=r,this.config=i,this.util=o,this.toast=a,this.applicationUserService=l,this.asset=Vf,this.lf=[],this.changeModule=this.route.snapshot.data.change,this.print=this.route.snapshot.data.print,this.fetch=this.route.snapshot.data.fetch}ngOnInit(){this.applicationUserSubscription=this.applicationUserService.applicationUserObservable.subscribe(e=>Iv(this,void 0,void 0,function*(){this.applicationUser=e,sh(e).pipe(q(this.fetchBlock.bind(this)),q(this.lookForwardBlock.bind(this)),q(this.screenerScoreBlock.bind(this))).subscribe()}),e=>{console.error("AssessmentFeedbackComponent",e)}),this.questionAnsweredSubscription=this.questionService.questionAnsweredObservable.subscribe(()=>{this.applicationUser.product[this.config.product].change=this.changeQuestion,this.applicationUserService.update(this.applicationUser)})}ngOnDestroy(){this.util.unsubscribe(this.questionAnsweredSubscription,this.applicationUserSubscription)}fetchBlock(){return new v(e=>{this.fetch?this.config.getQuestions().subscribe(t=>{this.applicationUser.product={},this.applicationUser.product[this.config.product]={},this.applicationUser.product[this.config.product].assessment=t.resourceItems.map(e=>this.questionAdapterService.adapt(e));let n=this.fetch[this.config.product];this.applicationUser.product[this.config.product].assessment.forEach(e=>{e.response=n[e.name]}),e.next(),e.complete()}):(e.next(),e.complete())})}lookForwardBlock(){return new v(e=>{this.applicationUser.product[this.config.product].lookForward&&(this.lf=this.applicationUser.product[this.config.product].lookForward),e.next(),e.complete()})}screenerScoreBlock(){return new v(e=>{!this.fetch&&this.screenerScore||this.screenerScoring.score(this.applicationUser.product[this.config.product].assessment).then(e=>{this.screenerScore=e,this.applicationUser.product[this.config.product].change?(this.changeQuestion=this.applicationUser.product[this.config.product].change,this.screenerScore.changeResponse=parseInt(this.applicationUser.product[this.config.product].change.response)):(this.changeQuestion=this.questionAdapterService.adapt(this.screenerScore.nextSteps),this.changeQuestion.hidden=!1)}),e.next(),e.complete()})}lfClick(e){this.lf.includes(e)?this.lf=this.lf.filter(t=>t!==e):this.lf.push(e),this.applicationUser.product[this.config.product].lookForward=this.lf,this.applicationUserService.update(this.applicationUser)}lfIncludes(e){return this.lf.includes(e)}printFeedback(){this.config.print(this.applicationUser.uid)}takeAnotherScreener(){this.router.navigate([this.config.takeAScreener],{state:{takeAnotherScreener:!0}})}back(){return()=>this.router.navigate([this.config.assessment])}next(){return()=>this.router.navigate([this.config.changeQuestionFeedback])}canNext(){return e=>{let t=!!this.changeQuestion&&this.util.questionsCompleted([this.changeQuestion]);return e&&0==this.lf.length?this.toast.error("Please select at least one thing to look forward to."):e&&!t&&this.toast.error("Please check for completion before continuing."),t&&this.lf.length>0}}}return e.\u0275fac=function(t){return new(t||e)(wo($v),wo(Gm),wo(Xm),wo(Sf),wo(tp),wo(Lm),wo($f),wo(Ng),wo(Km))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&Ll(Vv,1),2&e){let e;Ml(e=Ul())&&(t.printView=e.first)}},decls:25,vars:6,consts:[["id","basdf"],["page",""],[1,"jumbotron","mb-0","bg-white","results-jumbo","py-0"],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["header",""],["assessmentFeedback",""],["changeFeedback",""],["lookForwardAssessment",""],["strategyAndSkill",""],["changeAssessment",""],["resources",""],["closing",""],[1,"container"],[1,"row"],[1,"col-12","text-center","mx-auto","pt-5"],[1,"justlovely","display-xl"],["class","row",4,"ngIf"],[1,"col","text-center","mb-5"],[1,"btn","screener-btn",3,"click"],[1,"interstitial"],[1,"col-sm-10","mx-auto","mt-4","mb-3"],[1,"font-weight-bold","text-white","lead",2,"white-space","pre-wrap"],[1,"container",2,"background","rgba(255,255,255,0.75)"],[1,"col-sm-10","mx-auto","mt-3"],[1,"font-weight-bold","text-purple","lead","pl-3"],[1,"lead","pl-3","font-weight-bold"],[1,"col-sm-10","mx-auto","mt-4","mb-3","static-feedback"],[1,"lead","p-3",2,"white-space","pre-wrap"],[1,"text-small","font-weight-bold",2,"white-space","pre-wrap"],[1,"col-sm-10","mx-auto","text-center","pt-5"],[1,"justlovely","display-3"],[1,"col-md-8","col-sm-12","text-center","mx-auto","pt-5"],[1,"px-3","mb-0"],[1,"row","pb-5"],["class","col-lg-4 col-md-6 col-sm-12",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","col-sm-12"],[1,"card","shadow"],[1,"card-body","btn",3,"ngClass","click"],[1,"card-text","text-center"],[1,"col-sm-10","mx-auto"],[1,"strategies_container"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"col-md-4"],[1,"mb-5","purple-bg","text-white","text-center"],[1,"round","round-md","purple-outline","roboto",2,"margin-top","-50px"],[1,"fas","fa-chart-bar"],[1,"card-body"],[1,"card-title","justlovely","text-center","display-4"],[1,"card-text"],["id","changeQuestion",1,"row","mb-5"],["class","mx-auto","app-question-template","",3,"question",4,"ngIf"],[1,"bg-white",2,"margin-bottom","100px"],[1,"container","p-4","text-center"],[1,"col-12","mx-auto","p-2"],["alt","eCHECKUP TO GO Logo",1,"logo",3,"src"],[1,"mt-2",3,"showNavigation","returnAction","canNext","nextAction"],["app-question-template","",1,"mx-auto",3,"question"],[1,"interstitial","resources"],["class","col-md-6 col-lg-4",4,"ngFor","ngForOf"],[1,"row","text-white"],[1,"col","mx-auto"],["class","col-md-3 col-sm-4 col-xs-6 mx-auto",4,"ngFor","ngForOf"],[1,"col-md-6","col-lg-4"],[1,"card-body","bg-transparent"],[1,"font-weight-bold","mb-1",3,"innerHTML"],["class","mb-1",4,"ngIf"],[1,"mb-1"],[1,"fas","fa-external-link","ml-2"],["target","_blank",3,"href"],[1,"fas","fa-phone-square","ml-2"],[3,"href"],[1,"col-md-3","col-sm-4","col-xs-6","mx-auto"],[1,"card-body","text-center"],["role","presentation","alt","Document Icon",1,"img-responsive",2,"width","100%","height","3em !important","margin","0 0 1em 0","fill","white"],["target","_blank",1,"font-weight-bold","mb-1","text-dark",3,"href"],[4,"ngIf"],[1,"jumbotron","mb-0","bg-white","pt-0","px-0","mt-1","mb-0","pb-0"],[1,"col","mx-auto","p-2","display-3","justlovely","text-center"],[1,"col-lg-6","col-md-7","col-sm-9","col-xs-12","mx-auto","mb-5",2,"border-top","1px solid white"],[1,"font-weight-bold","mb-1","p-3"],[1,"container","text-center"]],template:function(e,t){if(1&e&&(xo(0,"section",0,1),xo(2,"div"),xo(3,"section",2),vo(4,zv,1,0,"ng-container",3),vo(5,Wv,1,0,"ng-container",3),vo(6,Qv,1,0,"ng-container",3),vo(7,Kv,1,0,"div",4),Co(),vo(8,Gv,1,0,"ng-container",3),Co(),Co(),vo(9,Yv,6,1,"ng-template",null,5,Bl),vo(11,Jv,21,4,"ng-template",null,6,Bl),vo(13,Xv,6,1,"ng-template",null,7,Bl),vo(15,n_,11,2,"ng-template",null,8,Bl),vo(17,r_,11,1,"ng-template",null,9,Bl),vo(19,o_,10,6,"ng-template",null,10,Bl),vo(21,h_,17,2,"ng-template",null,11,Bl),vo(23,y_,17,2,"ng-template",null,12,Bl)),2&e){const e=_o(10),n=_o(12),s=_o(14),r=_o(16),i=_o(18),o=_o(20),a=_o(22),l=_o(24);Zr(4),bo("ngTemplateOutlet",e),Zr(1),bo("ngTemplateOutlet",t.changeModule?s:n),Zr(1),bo("ngTemplateOutlet",t.changeModule||null==t.screenerScore||!t.screenerScore.hasProblem?i:r),Zr(1),bo("ngIf",!t.changeModule)("ngIfElse",a),Zr(1),bo("ngTemplateOutlet",t.changeModule||null==t.screenerScore||!t.screenerScore.hasProblem?l:o)}},directives:[Su,mu,pu,hu,Bg,Sv],pipes:[Bv],styles:[".jumbotron[_ngcontent-%COMP%]{padding:0}.strategies_container[_ngcontent-%COMP%]{margin-right:-60px;margin-left:-60px;margin-top:60px;display:flex}@media screen and (max-width:768px){.strategies_container[_ngcontent-%COMP%]{display:block;margin-right:0;margin-left:0}.strategies_container[_ngcontent-%COMP%] > .col-md-4[_ngcontent-%COMP%]{margin-top:4em}}"]}),e})();class __{constructor(){this.uid=this.createUUID()}createUUID(){let e=new Date;return`${e.getFullYear().toString().substr(-2)}xxxxxxxxx-xxxxxx`.replace(/[x]/g,t=>{const n=(e.getTime()+16*Math.random())%16|0;return("x"===t?n:3&n|8).toString(16)})}}let w_=(()=>{class e{constructor(e,t,n){this.route=e,this.config=t,this.applicationUserService=n}ngOnInit(){const e=this.route.snapshot.paramMap.get("product");this.config.setProduct(e);const t=sessionStorage.getItem("screenerau");if(t){let e=JSON.parse(t);this.applicationUserService.update(e)}else this.applicationUserService.update(new __)}}return e.\u0275fac=function(t){return new(t||e)(wo(tp),wo(Lm),wo(Km))},e.\u0275cmp=He({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ko(0,"router-outlet")},directives:[xf],encapsulation:2}),e})(),b_=(()=>{class e{constructor(e){this.config=e}canActivate(e,t){return new v(t=>{this.config.init(e.params.campusId),this.campusSubscription=this.config.campusObservable.subscribe(e=>{t.next(!0)},e=>{console.error("Campus ID failed"),t.next(!1)})})}}return e.\u0275fac=function(t){return new(t||e)(us(Lm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),S_=(()=>{class e{constructor(e){this.config=e}canActivate(e,t){return this.config.modules.includes(e.params.product)}}return e.\u0275fac=function(t){return new(t||e)(us(Lm))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const x_=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=He({type:e,selectors:[["app-four-zero-four"]],decls:2,vars:0,template:function(e,t){1&e&&(xo(0,"p"),ea(1,"404"),Co())},styles:[""]}),e})()},{path:"screener/:campusId",component:qm,canActivate:[b_],children:[{path:"",component:Hm},{path:"take-a-screener",component:Qm},{path:":product",component:w_,canActivate:[S_],children:[{path:"demographic",component:kv},{path:"assessment",component:Av},{path:"assessment-feedback",component:v_,data:{change:!1,print:!1}},{path:"change-question-feedback",component:v_,data:{change:!0,print:!1}}]}]},{path:"**",redirectTo:"",pathMatch:"full"}];let C_=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({imports:[[Nf.forRoot(x_)],Nf]}),e})(),k_=(()=>{class e{constructor(){this.title="screener"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=He({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&ko(0,"router-outlet")},directives:[xf],styles:[""]}),e})();function E_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function T_(e){switch(e.length){case 0:return new lg;case 1:return e[0];default:return new cg(e)}}function A_(e,t,n,s,r={},i={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==l,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,a=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,o),a){case"!":a=r[n];break;case tg:a=i[n];break;default:a=t.normalizeStyleValue(n,s,a,o)}u[s]=a}),s||a.push(u),c=u,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function I_(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&O_(n,"start",e)));break;case"done":e.onDone(()=>s(n&&O_(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&O_(n,"destroy",e)))}}function O_(e,t,n){const s=n.totalTime,r=R_(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),i=e._data;return null!=i&&(r._data=i),r}function R_(e,t,n,s,r="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function P_(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function N_(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let D_=(e,t)=>!1,F_=(e,t)=>!1,j_=(e,t,n)=>[];const M_=E_();(M_||"undefined"!=typeof Element)&&(D_=(e,t)=>e.contains(t),F_=(()=>{if(M_||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):F_}})(),j_=(e,t,n)=>{let s=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let z_=(()=>{class e{validateStyleProperty(e){return q_(e)}matchesElement(e,t){return H_(e,t)}containsElement(e,t){return $_(e,t)}query(e,t,n){return B_(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,i=[],o){return new lg(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})(),W_=(()=>{class e{}return e.NOOP=new z_,e})();const Q_="ng-enter",K_="ng-leave",G_="ng-trigger",Z_=".ng-trigger",Y_="ng-animating",J_=".ng-animating";function X_(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ew(parseFloat(t[1]),t[2])}function ew(e,t){switch(t){case"s":return 1e3*e;default:return e}}function tw(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,i="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=ew(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=ew(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=e;if(!n){let n=!1,i=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:i}}(e,t,n)}function nw(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function sw(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else nw(e,n);return n}function rw(e,t,n){return n?t+":"+n+";":""}function iw(e){let t="";for(let n=0;n{const r=fw(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),E_()&&iw(e))}function aw(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=fw(t);e.style[n]=""}),E_()&&iw(e))}function lw(e){return Array.isArray(e)?1==e.length?e[0]:sg(e):e}const cw=new RegExp("{{\\s*(.+?)\\s*}}","g");function uw(e){let t=[];if("string"==typeof e){let n;for(;n=cw.exec(e);)t.push(n[1]);cw.lastIndex=0}return t}function hw(e,t,n){const s=e.toString(),r=s.replace(cw,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),r=""),r.toString()});return r==s?e:r}function dw(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const pw=/-+([a-z0-9])/g;function fw(e){return e.replace(pw,(...e)=>e[1].toUpperCase())}function mw(e,t){return 0===e||0===t}function gw(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let i=t[0],o=[];if(s.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var r=1;rfunction(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],i=s[2],o=s[3];t.push(xw(r,o)),"<"!=i[0]||r==_w&&o==_w||t.push(xw(o,r))}(e,n,t)):n.push(e),n}const bw=new Set(["true","1"]),Sw=new Set(["false","0"]);function xw(e,t){const n=bw.has(e)||Sw.has(e),s=bw.has(t)||Sw.has(t);return(r,i)=>{let o=e==_w||e==r,a=t==_w||t==i;return!o&&n&&"boolean"==typeof r&&(o=r?bw.has(e):Sw.has(e)),!a&&s&&"boolean"==typeof i&&(a=i?bw.has(t):Sw.has(t)),o&&a}}const Cw=new RegExp("s*:selfs*,?","g");function kw(e,t,n){return new Ew(e).build(t,n)}class Ew{constructor(e){this._driver=e}build(e,t){const n=new Tw(t);return this._resetContextStyleTimingState(n),yw(this,lw(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,i.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(e=>{if(Aw(e)){const t=e;Object.keys(t).forEach(e=>{uw(t[e]).forEach(e=>{i.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=dw(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=yw(this,lw(e.animation),t);return{type:1,matchers:ww(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Iw(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>yw(this,e,t)),options:Iw(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=yw(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:Iw(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Ow(tw(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Ow(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||tw(s,t),Ow(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:rg({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,i=!1;if(!r){i=!0;const e={};n.easing&&(e.easing=n.easing),r=rg(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,t);o.isEmptyStep=i,s=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==tg?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(Aw(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=uw(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Aw(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Aw(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c0&&s{const i=u>0?s==h?1:u*s:r[s],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:yw(this,lw(e.animation),t),options:Iw(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Iw(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Iw(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(Cw,"")),[e=e.replace(/@\*/g,Z_).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,J_),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,P_(t.collectedStyles,t.currentQuerySelector,{});const o=yw(this,lw(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Iw(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:tw(e.timings,t.errors,!0);return{type:12,animation:yw(this,lw(e.animation),t),timings:n,options:null}}}class Tw{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Aw(e){return!Array.isArray(e)&&"object"==typeof e}function Iw(e){var t;return e?(e=nw(e)).params&&(e.params=(t=e.params)?nw(t):null):e={},e}function Ow(e,t,n){return{duration:e,delay:t,easing:n}}function Rw(e,t,n,s,r,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class Pw{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Nw=new RegExp(":enter","g"),Dw=new RegExp(":leave","g");function Fw(e,t,n,s,r,i={},o={},a,l,c=[]){return(new jw).buildKeyframes(e,t,n,s,r,i,o,a,l,c)}class jw{buildKeyframes(e,t,n,s,r,i,o,a,l,c=[]){l=l||new Pw;const u=new Lw(e,t,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),yw(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Rw(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?X_(n.duration):null,i=null!=n.delay?X_(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),yw(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Mw);const e=X_(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>yw(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?X_(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),yw(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return tw(t.params?hw(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*r),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?X_(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Mw);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{t.currentQueryIndex=s;const o=t.createSubContext(e.options,n);r&&o.delayNextStep(r),n===t.element&&(a=o.currentTimeline),yw(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,i=Math.abs(r.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;yw(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const Mw={};class Lw{constructor(e,t,n,s,r,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Uw(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=X_(n.duration)),null!=n.delay&&(s.delay=X_(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=hw(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new Lw(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Mw,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new qw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,i){let o=[];if(s&&o.push(this.element),e.length>0){e=(e=e.replace(Nw,"."+this._enterClassName)).replace(Dw,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return r||0!=o.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Uw{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Uw(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||tg,this._currentKeyframe[e]=tg}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},i=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]=tg})):sw(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=hw(i[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:tg),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=sw(r,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?e.add(n):s==tg&&t.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=e.size?dw(e.values()):[],i=t.size?dw(t.values()):[];if(n){const e=s[0],t=nw(e);e.offset=0,t.offset=1,s=[e,t]}return Rw(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class qw extends Uw{constructor(e,t,n,s,r,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],i=n+t,o=t/i,a=sw(e[0],!1);a.offset=0,r.push(a);const l=sw(e[0],!1);l.offset=Hw(o),r.push(l);const c=e.length-1;for(let s=1;s<=c;s++){let o=sw(e[s],!1);o.offset=Hw((t+o.offset*n)/i),r.push(o)}n=i,t=0,s="",e=r}return Rw(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function Hw(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class $w{}class Bw extends $w{normalizePropertyName(e,t){return fw(e)}normalizeStyleValue(e,t,n,s){let r="";const i=n.toString().trim();if(Vw[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+r}}const Vw=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function zw(e,t,n,s,r,i,o,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Ww={};class Qw{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],i=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):i}build(e,t,n,s,r,i,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Ww,d=this.buildStyles(n,o&&o.params||Ww,u),p=a&&a.params||Ww,f=this.buildStyles(s,p,u),m=new Set,g=new Map,y=new Map,v="void"===s,_={params:Object.assign(Object.assign({},h),p)},w=c?[]:Fw(e,t,this.ast.animation,r,i,d,f,_,l,u);let b=0;if(w.forEach(e=>{b=Math.max(e.duration+e.delay,b)}),u.length)return zw(t,this._triggerName,n,s,v,d,f,[],[],g,y,b,u);w.forEach(e=>{const n=e.element,s=P_(g,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=P_(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const S=dw(m.values());return zw(t,this._triggerName,n,s,v,d,f,w,S,g,y,b)}}class Kw{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=nw(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let i=r[e];i.length>1&&(i=hw(i,s,t)),n[e]=i})}}),n}}class Gw{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Kw(e.style,e.options&&e.options.params||{})}),Zw(this.states,"true","1"),Zw(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Qw(e,t,this.states))}),this.fallbackTransition=new Qw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Zw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Yw=new Pw;class Jw{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=kw(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=A_(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let i;const o=new Map;if(r?(i=Fw(this._driver,t,r,Q_,K_,{},{},n,Yw,s),i.forEach(e=>{const t=P_(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,tg)})});const a=T_(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,s){const r=R_(t,"","","");return I_(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const Xw="ng-animate-queued",eb="ng-animate-disabled",tb=".ng-animate-disabled",nb=[],sb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ib{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=nw(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const ob="void",ab=new ib(ob);class lb{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,mb(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const i=P_(this._elementListeners,e,[]),o={name:t,phase:n,callback:s};i.push(o);const a=P_(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(mb(e,G_),mb(e,"ng-trigger-"+t),a[t]=ab),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),i=new ub(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(mb(e,G_),mb(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new ib(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=ab),l.value!==ob&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r{aw(e,n),ow(e,s)})}return}const c=P_(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(mb(e,Xw),i.onStart(()=>{gb(e,Xw)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),c.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,Z_,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const i=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,ob,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&T_(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const s=new Set;t.forEach(t=>{const r=t.name;if(s.has(r))return;s.add(r);const i=this._triggers[r].fallbackTransition,o=n[r]||ab,a=new ib(ob),l=new ub(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:i,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==sb||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){mb(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(t=>{if(t.name==n.triggerName){const s=R_(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,I_(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class cb{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new lb(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mb(e,eb)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),gb(e,eb))}removeNode(e,t,n,s){if(hb(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return hb(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Z_,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,J_,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return T_(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=sb,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,tb)&&this.markElementAsDisabled(e,!1),this.driver.query(e,tb,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?T_(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new Pw,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n{const n=Q_+f++;p.set(t,n),e.forEach(e=>mb(e,n))});const m=[],g=new Set,y=new Set;for(let O=0;Og.add(e)):y.add(e))}const v=new Map,_=fb(h,Array.from(g));_.forEach((e,t)=>{const n=K_+f++;v.set(t,n),e.forEach(e=>mb(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>gb(e,n))}),_.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>gb(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const w=[],b=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(w.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=v.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(f.errors&&f.errors.length)b.push(f);else{if(c)return t.onStart(()=>aw(r,f.fromStyles)),t.onDestroy(()=>ow(r,f.toStyles)),void s.push(t);if(e.isFallbackTransition)return t.onStart(()=>aw(r,f.fromStyles)),t.onDestroy(()=>ow(r,f.toStyles)),void s.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>P_(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=l.get(t);s||l.set(t,s=new Set),n.forEach(e=>s.add(e))})}});if(b.length){const e=[];b.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,x=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{P_(S,t,[]).push(e),e.destroy()})});const C=m.filter(e=>_b(e,a,l)),k=new Map;pb(k,this.driver,y,l,tg).forEach(e=>{_b(e,a,l)&&C.push(e)});const E=new Map;d.forEach((e,t)=>{pb(E,this.driver,new Set(e),a,"!")}),C.forEach(e=>{const t=k.get(e),n=E.get(e);k.set(e,Object.assign(Object.assign({},t),n))});const T=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(c.has(t))return i.onDestroy(()=>ow(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let e=I;if(x.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>x.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,r,E,k);if(i.setRealPlayer(n),e===I)T.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=T_(t)),s.push(i)}}else aw(t,o.fromStyles),i.onDestroy(()=>ow(t,o.toStyles)),A.push(i),c.has(t)&&s.push(i)}),A.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=T_(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O!e.destroyed);s.length?yb(this,e,s):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==ob;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&i.push(t)})}}return(n||s)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==s,l=P_(n,e,[]);this._getPreviousPlayers(e,a,r,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}aw(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,i){const o=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new lg(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return vb(e,t),t}((n.get(h)||nb).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),g=i.get(h),y=A_(0,this._normalizer,0,t.keyframes,m,g),v=this._buildPlayer(t,y,f);if(t.subTimeline&&s&&u.add(h),p){const t=new ub(e,o,h);t.setRealPlayer(v),l.push(t)}return v});l.forEach(e=>{P_(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>mb(e,Y_));const d=T_(h);return d.onDestroy(()=>{c.forEach(e=>gb(e,Y_)),ow(a,t.toStyles)}),u.forEach(e=>{P_(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new lg(e.duration,e.delay)}}class ub{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new lg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>I_(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){P_(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function hb(e){return e&&1===e.nodeType}function db(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function pb(e,t,n,s,r){const i=[];n.forEach(e=>i.push(db(e)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=rb,o.push(s))}),e.set(s,i)});let a=0;return n.forEach(e=>db(e,i[a++])),o}function fb(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;function i(e){if(!e)return 1;let t=r.get(e);if(t)return t;const o=e.parentNode;return t=n.has(o)?o:s.has(o)?1:i(o),r.set(e,t),t}return t.forEach(e=>{const t=i(e);1!==t&&n.get(t).push(e)}),n}function mb(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function gb(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function yb(e,t,n){T_(n).onDone(()=>e.processLeaveNode(t))}function vb(e,t){for(let n=0;nr.add(e)):t.set(e,s),n.delete(e),!0}class wb{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new cb(e,t,n),this._timelineEngine=new Jw(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const i=e+"-"+s;let o=this._triggerCache[i];if(!o){const e=[],t=kw(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Gw(e,t)}(s,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=N_(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=N_(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function bb(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=xb(t[0]),t.length>1&&(s=xb(t[t.length-1]))):t&&(n=xb(t)),n||s?new Sb(e,n,s):null}let Sb=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ow(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ow(this._element,this._initialStyles),this._endStyles&&(ow(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(aw(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aw(this._element,this._endStyles),this._endStyles=null),ow(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function xb(e){let t=null;const n=Object.keys(e);for(let s=0;sthis._handleCallback(e)}apply(){!function(e,t){const n=Nb(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Rb(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Nb(e,"").split(","),s=Ob(n,t);s>=0&&(n.splice(s,1),Pb(e,"",n.join(",")))}(this._element,this._name))}}function Ab(e,t,n){Pb(e,"PlayState",n,Ib(e,t))}function Ib(e,t){const n=Nb(e,"");return n.indexOf(",")>0?Ob(n.split(","),t):Ob([n],t)}function Ob(e,t){for(let n=0;n=0)return n;return-1}function Rb(e,t,n){n?e.removeEventListener(Eb,t):e.addEventListener(Eb,t)}function Pb(e,t,n,s){const r=kb+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function Nb(e,t){return e.style[kb+t]||""}class Db{constructor(e,t,n,s,r,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Tb(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:vw(this.element,n))})}this.currentSnapshot=e}}class Fb extends lg{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=V_(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class jb{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return q_(e)}matchesElement(e,t){return H_(e,t)}containsElement(e,t){return $_(e,t)}query(e,t,n){return B_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>V_(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=`${r}}\n`}),s+="}\n";const i=document.createElement("style");return i.textContent=s,i}animate(e,t,n,s,r,i=[],o){const a=i.filter(e=>e instanceof Db),l={};mw(n,s)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=gw(e,t,l));if(0==n)return new Fb(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=bb(e,t),p=new Db(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class Mb{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:vw(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Lb{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ub().toString()),this._cssKeyframesDriver=new jb}validateStyleProperty(e){return q_(e)}matchesElement(e,t){return H_(e,t)}containsElement(e,t){return $_(e,t)}query(e,t,n){return B_(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},c=i.filter(e=>e instanceof Mb);mw(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=bb(e,t=gw(e,t=t.map(e=>sw(e,!1)),l));return new Mb(e,t,a,u)}}function Ub(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let qb=(()=>{class e extends eg{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Ce.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?sg(e):e;return Bb(this._renderer,null,t,"register",[n]),new Hb(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(us(wa),us(Bc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class Hb extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new $b(this._id,e,t||{},this._renderer)}}class $b{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Bb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Bb(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}const Vb="@",zb="@.disabled";let Wb=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Qb("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(i),new Kb(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(us(wa),us(wb),us(hc))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();class Qb{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,s=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Vb&&t==zb?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Kb extends Qb{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Vb?"."==t.charAt(1)&&t==zb?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Vb){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),i="";return r.charAt(0)!=Vb&&([r,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Gb=(()=>{class e extends wb{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(us(Bc),us(W_),us($w))},e.\u0275prov=ce({token:e,factory:e.\u0275fac}),e})();const Zb=[{provide:W_,useFactory:function(){return"function"==typeof Ub()?new Lb:new jb}},{provide:new Wn("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:eg,useClass:qb},{provide:$w,useFactory:function(){return new Bw}},{provide:wb,useClass:Gb},{provide:wa,useFactory:function(e,t,n){return new Wb(e,t,n)},deps:[$u,wb,hc]}];let Yb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({providers:Zb,imports:[nh]}),e})(),Jb=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e}),e.\u0275inj=ue({imports:[[xu]]}),e})(),Xb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ze({type:e,bootstrap:[k_]}),e.\u0275inj=ue({providers:[],imports:[[nh,Yb,C_,Fm,Qy.forRoot(),Jb.forRoot(),jg.forRoot()]]}),e})();(function(){if(Cc)throw new Error("Cannot enable prod mode after platform setup.");xc=!1})(),eh().bootstrapModule(Xb).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);