Files
home_server/udohaiku/view/dist/haikudo/main.3b096b6173d513b8.js
T
2024-02-03 11:58:42 +01:00

1 line
334 KiB
JavaScript

(self.webpackChunkhaikudo=self.webpackChunkhaikudo||[]).push([[179],{974:(U,ge,E)=>{"use strict";function v(n){return"function"==typeof n}function V(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const R=V(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function b(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class C{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(v(r))try{r()}catch(s){e=s instanceof R?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{x(s)}catch(o){e=null!=e?e:[],o instanceof R?e=[...e,...o.errors]:e.push(o)}}if(e)throw new R(e)}}add(e){var t;if(e&&e!==this)if(this.closed)x(e);else{if(e instanceof C){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&b(t,e)}remove(e){const{_finalizers:t}=this;t&&b(t,e),e instanceof C&&e._removeParent(this)}}C.EMPTY=(()=>{const n=new C;return n.closed=!0,n})();const A=C.EMPTY;function M(n){return n instanceof C||n&&"closed"in n&&v(n.remove)&&v(n.add)&&v(n.unsubscribe)}function x(n){v(n)?n():n.unsubscribe()}const N={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},O={setTimeout(n,e,...t){const{delegate:r}=O;return(null==r?void 0:r.setTimeout)?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=O;return((null==e?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function T(n){O.setTimeout(()=>{const{onUnhandledError:e}=N;if(!e)throw n;e(n)})}function _(){}const me=Re("C",void 0,void 0);function Re(n,e,t){return{kind:n,value:e,error:t}}let Ve=null;function vt(n){if(N.useDeprecatedSynchronousErrorHandling){const e=!Ve;if(e&&(Ve={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=Ve;if(Ve=null,t)throw r}}else n()}class Fn extends C{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,M(e)&&e.add(this)):this.destination=Lt}static create(e,t,r){return new Yn(e,t,r)}next(e){this.isStopped?we(function Ge(n){return Re("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?we(function Be(n){return Re("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?we(me,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const K=Function.prototype.bind;function at(n,e){return K.call(n,e)}class hs{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){I(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){I(r)}else I(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){I(t)}}}class Yn extends Fn{constructor(e,t,r){let i;if(super(),v(e)||!e)i={next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0};else{let s;this&&N.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&at(e.next,s),error:e.error&&at(e.error,s),complete:e.complete&&at(e.complete,s)}):i=e}this.destination=new hs(i)}}function I(n){N.useDeprecatedSynchronousErrorHandling?function nn(n){N.useDeprecatedSynchronousErrorHandling&&Ve&&(Ve.errorThrown=!0,Ve.error=n)}(n):T(n)}function we(n,e){const{onStoppedNotification:t}=N;t&&O.setTimeout(()=>t(n,e))}const Lt={closed:!0,next:_,error:function lt(n){throw n},complete:_},Ee="function"==typeof Symbol&&Symbol.observable||"@@observable";function Xe(n){return n}let Ue=(()=>{class n{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function Ew(n){return n&&n instanceof Fn||function ww(n){return n&&v(n.next)&&v(n.error)&&v(n.complete)}(n)&&M(n)}(t)?t:new Yn(t,r,i);return vt(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=ph(r))((i,s)=>{const o=new Yn({next:a=>{try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Ee](){return this}pipe(...t){return function hh(n){return 0===n.length?Xe:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=ph(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return n.create=e=>new n(e),n})();function ph(n){var e;return null!==(e=null!=n?n:N.Promise)&&void 0!==e?e:Promise}const Cw=V(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ut=(()=>{class n extends Ue{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new gh(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Cw}next(t){vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){vt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?A:(this.currentObservers=null,s.push(t),new C(()=>{this.currentObservers=null,b(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new Ue;return t.source=this,t}}return n.create=(e,t)=>new gh(e,t),n})();class gh extends ut{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:A}}function mh(n){return v(null==n?void 0:n.lift)}function ct(n){return e=>{if(mh(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function et(n,e,t,r,i){return new Sw(n,e,t,r,i)}class Sw extends Fn{constructor(e,t,r,i,s,o){super(e),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function ve(n,e){return ct((t,r)=>{let i=0;t.subscribe(et(r,s=>{r.next(n.call(e,s,i++))}))})}function Fr(n){return this instanceof Fr?(this.v=n,this):new Fr(n)}function Aw(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(f){r[f]&&(i[f]=function(h){return new Promise(function(p,g){s.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof Fr?Promise.resolve(f.value.v).then(u,c):d(s[0][2],f)}(r[f](h))}catch(p){d(s[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Mw(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=function _h(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=n[s]&&function(o){return new Promise(function(a,l){!function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}const Zl=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function bh(n){return v(null==n?void 0:n.then)}function Dh(n){return v(n[Ee])}function wh(n){return Symbol.asyncIterator&&v(null==n?void 0:n[Symbol.asyncIterator])}function Eh(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Ch=function Rw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Sh(n){return v(null==n?void 0:n[Ch])}function Th(n){return Aw(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield Fr(t.read());if(i)return yield Fr(void 0);yield yield Fr(r)}}finally{t.releaseLock()}})}function Ih(n){return v(null==n?void 0:n.getReader)}function rn(n){if(n instanceof Ue)return n;if(null!=n){if(Dh(n))return function Pw(n){return new Ue(e=>{const t=n[Ee]();if(v(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Zl(n))return function Ow(n){return new Ue(e=>{for(let t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}(n);if(bh(n))return function Nw(n){return new Ue(e=>{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,T)})}(n);if(wh(n))return Ah(n);if(Sh(n))return function Fw(n){return new Ue(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(Ih(n))return function kw(n){return Ah(Th(n))}(n)}throw Eh(n)}function Ah(n){return new Ue(e=>{(function Lw(n,e){var t,r,i,s;return function Tw(n,e,t,r){return new(t||(t=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(c.value).then(a,l)}u((r=r.apply(n,e||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Mw(n);!(r=yield t.next()).done;)if(e.next(r.value),e.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function Jn(n,e,t,r=0,i=!1){const s=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function _e(n,e,t=1/0){return v(e)?_e((r,i)=>ve((s,o)=>e(r,s,i,o))(rn(n(r,i))),t):("number"==typeof e&&(t=e),ct((r,i)=>function jw(n,e,t,r,i,s,o,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&e.complete()},h=g=>u<r?p(g):l.push(g),p=g=>{s&&e.next(g),u++;let y=!1;rn(t(g,c++)).subscribe(et(e,D=>{null==i||i(D),s?h(D):e.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&u<r;){const D=l.shift();o?Jn(e,o,()=>p(D)):p(D)}f()}catch(D){e.error(D)}}))};return n.subscribe(et(e,h,()=>{d=!0,f()})),()=>{null==a||a()}}(r,i,n,t)))}function ps(n=1/0){return _e(Xe,n)}const Xn=new Ue(n=>n.complete());function Yl(n){return n[n.length-1]}function gs(n){return function Vw(n){return n&&v(n.schedule)}(Yl(n))?n.pop():void 0}function Jl(n,e=0){return ct((t,r)=>{t.subscribe(et(r,i=>Jn(r,n,()=>r.next(i),e),()=>Jn(r,n,()=>r.complete(),e),i=>Jn(r,n,()=>r.error(i),e)))})}function Mh(n,e=0){return ct((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function xh(n,e){if(!n)throw new Error("Iterable cannot be null");return new Ue(t=>{Jn(t,e,()=>{const r=n[Symbol.asyncIterator]();Jn(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function dt(n,e){return e?function Qw(n,e){if(null!=n){if(Dh(n))return function $w(n,e){return rn(n).pipe(Mh(e),Jl(e))}(n,e);if(Zl(n))return function zw(n,e){return new Ue(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(bh(n))return function qw(n,e){return rn(n).pipe(Mh(e),Jl(e))}(n,e);if(wh(n))return xh(n,e);if(Sh(n))return function Gw(n,e){return new Ue(t=>{let r;return Jn(t,e,()=>{r=n[Ch](),Jn(t,e,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>v(null==r?void 0:r.return)&&r.return()})}(n,e);if(Ih(n))return function Ww(n,e){return xh(Th(n),e)}(n,e)}throw Eh(n)}(n,e):rn(n)}function Fo(n){return n<=0?()=>Xn:ct((e,t)=>{let r=0;e.subscribe(et(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function Xl(n,e,...t){return!0===e?(n(),null):!1===e?null:e(...t).pipe(Fo(1)).subscribe(()=>n())}function Ce(n){for(let e in n)if(n[e]===Ce)return e;throw Error("Could not find renamed property on target object.")}function be(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(be).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function tu(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Yw=Ce({__forward_ref__:Ce});function nu(n){return n.__forward_ref__=nu,n.toString=function(){return be(this())},n}function ie(n){return function Rh(n){return"function"==typeof n&&n.hasOwnProperty(Yw)&&n.__forward_ref__===nu}(n)?n():n}class H extends Error{constructor(e,t){super(function ru(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function te(n){return"string"==typeof n?n:null==n?"":String(n)}function Tt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():te(n)}function ko(n,e){const t=e?` in ${e}`:"";throw new H(-201,`No provider for ${Tt(n)} found${t}`)}function Bt(n,e){null==n&&function Pe(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function G(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Vt(n){return{providers:n.providers||[],imports:n.imports||[]}}function iu(n){return Ph(n,Lo)||Ph(n,Nh)}function Ph(n,e){return n.hasOwnProperty(e)?n[e]:null}function Oh(n){return n&&(n.hasOwnProperty(su)||n.hasOwnProperty(iE))?n[su]:null}const Lo=Ce({\u0275prov:Ce}),su=Ce({\u0275inj:Ce}),Nh=Ce({ngInjectableDef:Ce}),iE=Ce({ngInjectorDef:Ce});var ee=(()=>((ee=ee||{})[ee.Default=0]="Default",ee[ee.Host=1]="Host",ee[ee.Self=2]="Self",ee[ee.SkipSelf=4]="SkipSelf",ee[ee.Optional=8]="Optional",ee))();let ou;function yr(n){const e=ou;return ou=n,e}function Fh(n,e,t){const r=iu(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ee.Optional?null:void 0!==e?e:void ko(be(n),"Injector")}function vr(n){return{toString:n}.toString()}var yn=(()=>((yn=yn||{})[yn.OnPush=0]="OnPush",yn[yn.Default=1]="Default",yn))(),vn=(()=>{return(n=vn||(vn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",vn;var n})();const oE="undefined"!=typeof globalThis&&globalThis,aE="undefined"!=typeof window&&window,lE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,De=oE||"undefined"!=typeof global&&global||aE||lE,ci={},Se=[],jo=Ce({\u0275cmp:Ce}),au=Ce({\u0275dir:Ce}),lu=Ce({\u0275pipe:Ce}),kh=Ce({\u0275mod:Ce}),tr=Ce({\u0275fac:Ce}),ms=Ce({__NG_ELEMENT_ID__:Ce});let uE=0;function kn(n){return vr(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===yn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||Se,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||vn.Emulated,id:"c",styles:n.styles||Se,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,s=n.features,o=n.pipes;return r.id+=uE++,r.inputs=Vh(n.inputs,t),r.outputs=Vh(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Lh):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(jh):null,r})}function Lh(n){return _t(n)||function _r(n){return n[au]||null}(n)}function jh(n){return function kr(n){return n[lu]||null}(n)}const Bh={};function sn(n){return vr(()=>{const e={type:n.type,bootstrap:n.bootstrap||Se,declarations:n.declarations||Se,imports:n.imports||Se,exports:n.exports||Se,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Bh[n.id]=n.type),e})}function Vh(n,e){if(null==n)return ci;const t={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),t[i]=r,e&&(e[i]=s)}return t}const gt=kn;function _t(n){return n[jo]||null}function on(n,e){const t=n[kh]||null;if(!t&&!0===e)throw new Error(`Type ${be(n)} does not have '\u0275mod' property.`);return t}function Ln(n){return Array.isArray(n)&&"object"==typeof n[1]}function bn(n){return Array.isArray(n)&&!0===n[1]}function du(n){return 0!=(8&n.flags)}function Ho(n){return 2==(2&n.flags)}function $o(n){return 1==(1&n.flags)}function Dn(n){return null!==n.template}function gE(n){return 0!=(512&n[2])}function Vr(n,e){return n.hasOwnProperty(tr)?n[tr]:null}class vE{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ur(){return Hh}function Hh(n){return n.type.prototype.ngOnChanges&&(n.setInput=bE),_E}function _E(){const n=qh(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===ci)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function bE(n,e,t,r){const i=qh(n)||function DE(n,e){return n[$h]=e}(n,{previous:ci,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[t],l=o[a];s[a]=new vE(l&&l.currentValue,e,o===ci),n[r]=e}Ur.ngInherit=!0;const $h="__ngSimpleChanges__";function qh(n){return n[$h]||null}let mu;function yu(){return void 0!==mu?mu:"undefined"!=typeof document?document:void 0}function He(n){return!!n.listen}const zh={createRenderer:(n,e)=>yu()};function Ke(n){for(;Array.isArray(n);)n=n[0];return n}function qo(n,e){return Ke(e[n])}function un(n,e){return Ke(e[n.index])}function vu(n,e){return n.data[e]}function Ht(n,e){const t=e[n];return Ln(t)?t:t[0]}function _u(n){return 128==(128&n[2])}function br(n,e){return null==e?null:n[e]}function Wh(n){n[18]=0}function bu(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const X={lFrame:tp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Qh(){return X.bindingsEnabled}function w(){return X.lFrame.lView}function pe(){return X.lFrame.tView}function wn(n){return X.lFrame.contextLView=n,n[8]}function tt(){let n=Kh();for(;null!==n&&64===n.type;)n=n.parent;return n}function Kh(){return X.lFrame.currentTNode}function jn(n,e){const t=X.lFrame;t.currentTNode=n,t.isParent=e}function Du(){return X.lFrame.isParent}function wu(){X.lFrame.isParent=!1}function zo(){return X.isInCheckNoChangesMode}function Go(n){X.isInCheckNoChangesMode=n}function mi(){return X.lFrame.bindingIndex++}function rr(n){const e=X.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function jE(n,e){const t=X.lFrame;t.bindingIndex=t.bindingRootIndex=n,Eu(e)}function Eu(n){X.lFrame.currentDirectiveIndex=n}function Cu(n){const e=X.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function Su(n){X.lFrame.currentQueryIndex=n}function VE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Xh(n,e,t){if(t&ee.SkipSelf){let i=e,s=n;for(;!(i=i.parent,null!==i||t&ee.Host||(i=VE(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,n=s}const r=X.lFrame=ep();return r.currentTNode=e,r.lView=n,!0}function Wo(n){const e=ep(),t=n[1];X.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function ep(){const n=X.lFrame,e=null===n?null:n.child;return null===e?tp(n):e}function tp(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function np(){const n=X.lFrame;return X.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const rp=np;function Qo(){const n=np();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function At(){return X.lFrame.selectedIndex}function Dr(n){X.lFrame.selectedIndex=n}function $e(){const n=X.lFrame;return vu(n.tView,n.selectedIndex)}function Ko(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),u&&((n.viewHooks||(n.viewHooks=[])).push(t,u),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,u)),null!=c&&(n.destroyHooks||(n.destroyHooks=[])).push(t,c)}}function Zo(n,e,t){ip(n,e,3,t)}function Yo(n,e,t,r){(3&n[2])===t&&ip(n,e,t,r)}function Tu(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function ip(n,e,t,r){const s=null!=r?r:-1,o=e.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(KE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function KE(n,e,t,r){const i=t[r]<0,s=t[r+1],a=n[i?-t[r]:t[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Ds{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Jo(n,e,t){const r=He(n);let i=0;for(;i<t.length;){const s=t[i];if("number"==typeof s){if(0!==s)break;i++;const o=t[i++],a=t[i++],l=t[i++];r?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++i];Au(o)?r&&n.setProperty(e,o,a):r?n.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function sp(n){return 3===n||4===n||6===n}function Au(n){return 64===n.charCodeAt(0)}function Xo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?t=i:0===t||op(n,t,i,null,-1===t||2===t?e[++r]:null)}}return n}function op(n,e,t,r,i){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(n[s+1]=i));if(r===n[s+1])return void(n[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==r&&n.splice(s++,0,r),null!==i&&n.splice(s++,0,i)}function ap(n){return-1!==n}function yi(n){return 32767&n}function vi(n,e){let t=function eC(n){return n>>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let Mu=!0;function ea(n){const e=Mu;return Mu=n,e}let tC=0;function Es(n,e){const t=Ru(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,xu(r.data,n),xu(e,null),xu(r.blueprint,null));const i=ta(n,e),s=n.injectorIndex;if(ap(i)){const o=yi(i),a=vi(i,e),l=a[1].data;for(let u=0;u<8;u++)e[s+u]=a[o+u]|l[o+u]}return e[s+8]=i,s}function xu(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Ru(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function ta(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function na(n,e,t){!function nC(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(ms)&&(r=t[ms]),null==r&&(r=t[ms]=tC++);const i=255&r;e.data[n+(i>>5)]|=1<<i}(n,e,t)}function cp(n,e,t){if(t&ee.Optional)return n;ko(e,"NodeInjector")}function dp(n,e,t,r){if(t&ee.Optional&&void 0===r&&(r=null),0==(t&(ee.Self|ee.Host))){const i=n[9],s=yr(void 0);try{return i?i.get(e,r,t&ee.Optional):Fh(e,r,t&ee.Optional)}finally{yr(s)}}return cp(r,e,t)}function fp(n,e,t,r=ee.Default,i){if(null!==n){const s=function oC(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(ms)?n[ms]:void 0;return"number"==typeof e?e>=0?255&e:iC:e}(t);if("function"==typeof s){if(!Xh(e,n,r))return r&ee.Host?cp(i,t,r):dp(e,t,r,i);try{const o=s(r);if(null!=o||r&ee.Optional)return o;ko(t)}finally{rp()}}else if("number"==typeof s){let o=null,a=Ru(n,e),l=-1,u=r&ee.Host?e[16][6]:null;for((-1===a||r&ee.SkipSelf)&&(l=-1===a?ta(n,e):e[a+8],-1!==l&&gp(r,!1)?(o=e[1],a=yi(l),e=vi(l,e)):a=-1);-1!==a;){const c=e[1];if(pp(s,a,c.data)){const d=sC(a,e,t,o,r,u);if(d!==hp)return d}l=e[a+8],-1!==l&&gp(r,e[1].data[a+8]===u)&&pp(s,a,e)?(o=c,a=yi(l),e=vi(l,e)):a=-1}}}return dp(e,t,r,i)}const hp={};function iC(){return new _i(tt(),w())}function sC(n,e,t,r,i,s){const o=e[1],a=o.data[n+8],c=function ra(n,e,t,r,i){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,c=s>>20,f=i?a+c:n.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=o[h];if(h<l&&t===p||h>=l&&p.type===t)return h}if(i){const h=o[l];if(h&&Dn(h)&&h.type===t)return l}return null}(a,o,t,null==r?Ho(a)&&Mu:r!=o&&0!=(3&a.type),i&ee.Host&&s===a);return null!==c?Cs(e,o,c,a):hp}function Cs(n,e,t,r){let i=n[t];const s=e.data;if(function ZE(n){return n instanceof Ds}(i)){const o=i;o.resolving&&function Jw(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new H(-200,`Circular dependency in DI detected for ${n}${t}`)}(Tt(s[t]));const a=ea(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?yr(o.injectImpl):null;Xh(n,r,ee.Default);try{i=n[t]=o.factory(void 0,s,n,r),e.firstCreatePass&&t>=r.directiveStart&&function QE(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=Hh(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,i),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&yr(l),ea(a),o.resolving=!1,rp()}}return i}function pp(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function gp(n,e){return!(n&ee.Self||n&ee.Host&&e)}class _i{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return fp(this._tNode,this._lView,e,r,t)}}function Ss(n){return function rC(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const s=t[i];if(sp(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(s===e)return t[i+1];i+=2}}}return null}(tt(),n)}const Di="__parameters__";function Ei(n,e,t){return vr(()=>{const r=function Ou(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,u,c){const d=l.hasOwnProperty(Di)?l[Di]:Object.defineProperty(l,Di,{value:[]})[Di];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(o),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class re{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=G({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const uC=new re("AnalyzeForEntryComponents");function Bn(n,e){n.forEach(t=>Array.isArray(t)?Bn(t,e):e(t))}function yp(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ia(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function $t(n,e,t){let r=Ci(n,e);return r>=0?n[1|r]=t:(r=~r,function fC(n,e,t,r){let i=n.length;if(i==e)n.push(t,r);else if(1===i)n.push(r,n[0]),n[0]=t;else{for(i--,n.push(n[i-1],n[i]);i>e;)n[i]=n[i-2],i--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function Fu(n,e){const t=Ci(n,e);if(t>=0)return n[1|t]}function Ci(n,e){return function bp(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=n[s<<t];if(e===o)return s<<t;o>e?i=s:r=s+1}return~(i<<t)}(n,e,1)}const Ms={},Lu="__NG_DI_FLAG__",oa="ngTempTokenPath",_C=/\n/gm,wp="__source",DC=Ce({provide:String,useValue:Ce});let xs;function Ep(n){const e=xs;return xs=n,e}function wC(n,e=ee.Default){if(void 0===xs)throw new H(203,"");return null===xs?Fh(n,void 0,e):xs.get(n,e&ee.Optional?null:void 0,e)}function S(n,e=ee.Default){return(function sE(){return ou}()||wC)(ie(n),e)}const EC=S;function ju(n){const e=[];for(let t=0;t<n.length;t++){const r=ie(n[t]);if(Array.isArray(r)){if(0===r.length)throw new H(900,"");let i,s=ee.Default;for(let o=0;o<r.length;o++){const a=r[o],l=CC(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}e.push(S(i,s))}else e.push(S(r))}return e}function Rs(n,e){return n[Lu]=e,n.prototype[Lu]=e,n}function CC(n){return n[Lu]}const aa=Rs(Ei("Inject",n=>({token:n})),-1),Er=Rs(Ei("Optional"),8),Ps=Rs(Ei("SkipSelf"),4);let ua,ca;function Ti(n){var e;return(null===(e=function Vu(){if(void 0===ua&&(ua=null,De.trustedTypes))try{ua=De.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ua}())||void 0===e?void 0:e.createHTML(n))||n}function Mp(n){var e;return(null===(e=function Uu(){if(void 0===ca&&(ca=null,De.trustedTypes))try{ca=De.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ca}())||void 0===e?void 0:e.createHTML(n))||n}class Hr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class LC extends Hr{getTypeName(){return"HTML"}}class jC extends Hr{getTypeName(){return"Style"}}class BC extends Hr{getTypeName(){return"Script"}}class VC extends Hr{getTypeName(){return"URL"}}class UC extends Hr{getTypeName(){return"ResourceURL"}}function qt(n){return n instanceof Hr?n.changingThisBreaksApplicationSecurity:n}function Vn(n,e){const t=Pp(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function Pp(n){return n instanceof Hr&&n.getTypeName()||null}class WC{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Ti(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class QC{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ti(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=Ti(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const o=t.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&e.removeAttribute(o)}let r=e.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const ZC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,YC=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ns(n){return(n=String(n)).match(ZC)||n.match(YC)?n:"unsafe:"+n}function Np(n){return(n=String(n)).split(",").map(e=>Ns(e.trim())).join(", ")}function Un(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Fs(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const Fp=Un("area,br,col,hr,img,wbr"),kp=Un("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lp=Un("rp,rt"),Hu=Fs(Fp,Fs(kp,Un("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fs(Lp,Un("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fs(Lp,kp)),$u=Un("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qu=Un("srcset"),jp=Fs($u,qu,Un("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Un("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),JC=Un("script,style,template");class XC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Hu.hasOwnProperty(t))return this.sanitizedSomething=!0,!JC.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!jp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;$u[a]&&(l=Ns(l)),qu[a]&&(l=Np(l)),this.buf.push(" ",o,'="',Bp(l),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();Hu.hasOwnProperty(t)&&!Fp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Bp(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 eS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tS=/([^\#-~ |!])/g;function Bp(n){return n.replace(/&/g,"&amp;").replace(eS,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(tS,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let da;function Vp(n,e){let t=null;try{da=da||function Op(n){const e=new QC(n);return function KC(){try{return!!(new window.DOMParser).parseFromString(Ti(""),"text/html")}catch(n){return!1}}()?new WC(e):e}(n);let r=e?String(e):"";t=da.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=da.getInertBodyElement(r)}while(r!==s);return Ti((new XC).sanitizeChildren(zu(t)||t))}finally{if(t){const r=zu(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function zu(n){return"content"in n&&function nS(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function Gu(n){const e=function ks(){const n=w();return n&&n[12]}();return e?Mp(e.sanitize(Te.HTML,n)||""):Vn(n,"HTML")?Mp(qt(n)):Vp(yu(),te(n))}const $p="__ngContext__";function Dt(n,e){n[$p]=e}function Ku(n){const e=function Ls(n){return n[$p]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Yu(n){return n.ngOriginalError}function vS(n,...e){n.error(...e)}class js{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=function yS(n){return n&&n.ngErrorLogger||vS}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Yu(e);for(;t&&Yu(t);)t=Yu(t);return t||null}}const AS=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(De))();function Hn(n){return n instanceof Function?n():n}var zt=(()=>((zt=zt||{})[zt.Important=1]="Important",zt[zt.DashCase=2]="DashCase",zt))();function Xu(n,e){return undefined(n,e)}function Bs(n){const e=n[3];return bn(e)?e[3]:e}function ec(n){return Jp(n[13])}function tc(n){return Jp(n[4])}function Jp(n){for(;null!==n&&!bn(n);)n=n[4];return n}function Ai(n,e,t,r,i){if(null!=r){let s,o=!1;bn(r)?s=r:Ln(r)&&(o=!0,r=r[0]);const a=Ke(r);0===n&&null!==t?null==i?ig(e,t,a):$r(e,t,a,i||null,!0):1===n&&null!==t?$r(e,t,a,i||null,!0):2===n?function dg(n,e,t){const r=fa(n,e);r&&function HS(n,e,t,r){He(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function zS(n,e,t,r,i){const s=t[7];s!==Ke(t)&&Ai(e,n,r,s,i);for(let a=10;a<t.length;a++){const l=t[a];Vs(l[1],l,n,e,r,s)}}(e,n,s,t,i)}}function rc(n,e,t){if(He(n))return n.createElement(e,t);{const r=null!==t?function SE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===r?n.createElement(e):n.createElementNS(r,e)}}function eg(n,e){const t=n[9],r=t.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,bu(i,-1)),t.splice(r,1)}function ic(n,e){if(n.length<=10)return;const t=10+e,r=n[t];if(r){const i=r[17];null!==i&&i!==n&&eg(i,r),e>0&&(n[t-1][4]=r[4]);const s=ia(n,10+e);!function NS(n,e){Vs(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function tg(n,e){if(!(256&e[2])){const t=e[11];He(t)&&t.destroyNode&&Vs(n,e,t,3,null,null),function LS(n){let e=n[13];if(!e)return sc(n[1],n);for(;e;){let t=null;if(Ln(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)Ln(e)&&sc(e[1],e),e=e[3];null===e&&(e=n),Ln(e)&&sc(e[1],e),t=e&&e[4]}e=t}}(e)}}function sc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function US(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const i=e[t[r]];if(!(i instanceof Ds)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(n,e),function VS(n,e){const t=n.cleanup,r=e[7];let i=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Ke(e[o]),l=r[i=t[s+2]],u=t[s+3];"boolean"==typeof u?a.removeEventListener(t[s],l,u):u>=0?r[i=u]():r[i=-u].unsubscribe(),s+=2}else{const o=r[i=t[s+1]];t[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();e[7]=null}}(n,e),1===e[1].type&&He(e[11])&&e[11].destroy();const t=e[17];if(null!==t&&bn(e[3])){t!==e[3]&&eg(t,e);const r=e[19];null!==r&&r.detachView(n)}}}function ng(n,e,t){return function rg(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===vn.None||i===vn.Emulated)return null}return un(r,t)}(n,e.parent,t)}function $r(n,e,t,r,i){He(n)?n.insertBefore(e,t,r,i):e.insertBefore(t,r,i)}function ig(n,e,t){He(n)?n.appendChild(e,t):e.appendChild(t)}function sg(n,e,t,r,i){null!==r?$r(n,e,t,r,i):ig(n,e,t)}function fa(n,e){return He(n)?n.parentNode(e):e.parentNode}let lg=function ag(n,e,t){return 40&n.type?un(n,t):null};function ha(n,e,t,r){const i=ng(n,r,e),s=e[11],a=function og(n,e,t){return lg(n,e,t)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)sg(s,i,t[l],a,!1);else sg(s,i,t,a,!1)}function pa(n,e){if(null!==e){const t=e.type;if(3&t)return un(e,n);if(4&t)return ac(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return pa(n,r);{const i=n[e.index];return bn(i)?ac(-1,i):Ke(i)}}if(32&t)return Xu(e,n)()||Ke(n[e.index]);{const r=cg(n,e);return null!==r?Array.isArray(r)?r[0]:pa(Bs(n[16]),r):pa(n,e.next)}}return null}function cg(n,e){return null!==e?n[16][6].projection[e.projection]:null}function ac(n,e){const t=10+n+1;if(t<e.length){const r=e[t],i=r[1].firstChild;if(null!==i)return pa(r,i)}return e[7]}function lc(n,e,t,r,i,s,o){for(;null!=t;){const a=r[t.index],l=t.type;if(o&&0===e&&(a&&Dt(Ke(a),r),t.flags|=4),64!=(64&t.flags))if(8&l)lc(n,e,t.child,r,i,s,!1),Ai(e,n,i,a,s);else if(32&l){const u=Xu(t,r);let c;for(;c=u();)Ai(e,n,i,c,s);Ai(e,n,i,a,s)}else 16&l?fg(n,e,r,t,i,s):Ai(e,n,i,a,s);t=o?t.projectionNext:t.next}}function Vs(n,e,t,r,i,s){lc(t,r,n.firstChild,e,i,s,!1)}function fg(n,e,t,r,i,s){const o=t[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)Ai(e,n,i,l[u],s);else lc(n,e,l,o[3],i,s,!0)}function hg(n,e,t){He(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function uc(n,e,t){He(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function pg(n,e,t){let r=n.length;for(;;){const i=n.indexOf(e,t);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||n.charCodeAt(i+s)<=32)return i}t=i+1}}const gg="ng-template";function WS(n,e,t){let r=0;for(;r<n.length;){let i=n[r++];if(t&&"class"===i){if(i=n[r],-1!==pg(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function mg(n){return 4===n.type&&n.value!==gg}function QS(n,e,t){return e===(4!==n.type||t?n.value:gg)}function KS(n,e,t){let r=4;const i=n.attrs||[],s=function JS(n){for(let e=0;e<n.length;e++)if(sp(n[e]))return e;return n.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!QS(n,l,t)||""===l&&1===e.length){if(En(r))return!1;o=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==n.attrs){if(!WS(n.attrs,u,t)){if(En(r))return!1;o=!0}continue}const d=ZS(8&r?"class":l,i,mg(n),t);if(-1===d){if(En(r))return!1;o=!0;continue}if(""!==u){let f;f=d>s?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==pg(h,u,0)||2&r&&u!==f){if(En(r))return!1;o=!0}}}}else{if(!o&&!En(r)&&!En(l))return!1;if(o&&En(l))continue;o=!1,r=l|1&r}}return En(r)||o}function En(n){return 0==(1&n)}function ZS(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let s=!1;for(;i<e.length;){const o=e[i];if(o===n)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function XS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function yg(n,e,t=!1){for(let r=0;r<e.length;r++)if(KS(n,e[r],t))return!0;return!1}function vg(n,e){return n?":not("+e.trim()+")":e}function t0(n){let e=n[0],t=1,r=2,i="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&r){const a=n[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!En(o)&&(e+=vg(s,i),i=""),r=o,s=s||!En(r);t++}return""!==i&&(e+=vg(s,i)),e}const ne={};function ue(n){_g(pe(),w(),At()+n,zo())}function _g(n,e,t,r){if(!r)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&Zo(e,s,t)}else{const s=n.preOrderHooks;null!==s&&Yo(e,s,0,t)}Dr(t)}function ga(n,e){return n<<17|e<<2}function Cn(n){return n>>17&32767}function cc(n){return 2|n}function ir(n){return(131068&n)>>2}function dc(n,e){return-131069&n|e<<2}function fc(n){return 1|n}function xg(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const i=t[r],s=t[r+1];if(-1!==s){const o=n.data[s];Su(i),o.contentQueries(2,e[s],s)}}}function Us(n,e,t,r,i,s,o,a,l,u){const c=e.blueprint.slice();return c[0]=i,c[2]=140|r,Wh(c),c[3]=c[15]=n,c[8]=t,c[10]=o||n&&n[10],c[11]=a||n&&n[11],c[12]=l||n&&n[12]||null,c[9]=u||n&&n[9]||null,c[6]=s,c[16]=2==e.type?n[16]:c,c}function Mi(n,e,t,r,i){let s=n.data[e];if(null===s)s=function Dc(n,e,t,r,i){const s=Kh(),o=Du(),l=n.data[e]=function b0(n,e,t,r,i,s){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,r,i);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,r,i),function LE(){return X.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function bs(){const n=X.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return jn(s,!0),s}function xi(n,e,t,r){if(0===t)return-1;const i=e.length;for(let s=0;s<t;s++)e.push(r),n.blueprint.push(r),n.data.push(null);return i}function Hs(n,e,t){Wo(e);try{const r=n.viewQuery;null!==r&&xc(1,r,t);const i=n.template;null!==i&&Rg(n,e,i,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&xg(n,e),n.staticViewQueries&&xc(2,n.viewQuery,t);const s=n.components;null!==s&&function y0(n,e){for(let t=0;t<e.length;t++)j0(n,e[t])}(e,s)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[2]&=-5,Qo()}}function Ri(n,e,t,r){const i=e[2];if(256==(256&i))return;Wo(e);const s=zo();try{Wh(e),function Zh(n){return X.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Rg(n,e,t,2,r);const o=3==(3&i);if(!s)if(o){const u=n.preOrderCheckHooks;null!==u&&Zo(e,u,null)}else{const u=n.preOrderHooks;null!==u&&Yo(e,u,0,null),Tu(e,0)}if(function k0(n){for(let e=ec(n);null!==e;e=tc(e)){if(!e[2])continue;const t=e[9];for(let r=0;r<t.length;r++){const i=t[r],s=i[3];0==(1024&i[2])&&bu(s,1),i[2]|=1024}}}(e),function F0(n){for(let e=ec(n);null!==e;e=tc(e))for(let t=10;t<e.length;t++){const r=e[t],i=r[1];_u(r)&&Ri(i,r,i.template,r[8])}}(e),null!==n.contentQueries&&xg(n,e),!s)if(o){const u=n.contentCheckHooks;null!==u&&Zo(e,u)}else{const u=n.contentHooks;null!==u&&Yo(e,u,1),Tu(e,1)}!function g0(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)Dr(~i);else{const s=i,o=t[++r],a=t[++r];jE(o,s),a(2,e[s])}}}finally{Dr(-1)}}(n,e);const a=n.components;null!==a&&function m0(n,e){for(let t=0;t<e.length;t++)L0(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&xc(2,l,r),!s)if(o){const u=n.viewCheckHooks;null!==u&&Zo(e,u)}else{const u=n.viewHooks;null!==u&&Yo(e,u,2),Tu(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,bu(e[3],-1))}finally{Qo()}}function v0(n,e,t,r){const i=e[10],s=!zo(),o=function Gh(n){return 4==(4&n[2])}(e);try{s&&!o&&i.begin&&i.begin(),o&&Hs(n,e,r),Ri(n,e,t,r)}finally{s&&!o&&i.end&&i.end()}}function Rg(n,e,t,r,i){const s=At(),o=2&r;try{Dr(-1),o&&e.length>20&&_g(n,e,20,zo()),t(r,i)}finally{Dr(s)}}function Pg(n,e,t){if(du(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function wc(n,e,t){!Qh()||(function I0(n,e,t,r){const i=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Es(t,e),Dt(r,e);const o=t.initialInputs;for(let a=i;a<s;a++){const l=n.data[a],u=Dn(l);u&&P0(e,t,l);const c=Cs(e,n,a,t);Dt(c,e),null!==o&&O0(0,a-i,c,l,0,o),u&&(Ht(t.index,e)[8]=c)}}(n,e,t,un(t,e)),128==(128&t.flags)&&function A0(n,e,t){const r=t.directiveStart,i=t.directiveEnd,o=t.index,a=function BE(){return X.lFrame.currentDirectiveIndex}();try{Dr(o);for(let l=r;l<i;l++){const u=n.data[l],c=e[l];Eu(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Vg(u,c)}}finally{Dr(-1),Eu(a)}}(n,e,t))}function Ec(n,e,t=un){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(e,n):n[o];n[i++]=a}}}function Og(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=va(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function va(n,e,t,r,i,s,o,a,l,u){const c=20+r,d=c+i,f=function _0(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:ne);return t}(c,d),h="function"==typeof u?u():u;return f[1]={type:n,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Lg(n,e,t){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(e,i):t[r]=[e,i]}return t}function Gt(n,e,t,r,i,s,o,a){const l=un(e,t);let c,u=e.inputs;!a&&null!=u&&(c=u[r])?(Zg(n,t,c,r,i),Ho(e)&&function E0(n,e){const t=Ht(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(r=function w0(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=o?o(i,e.value||"",r):i,He(s)?s.setProperty(l,r,i):Au(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Cc(n,e,t,r){let i=!1;if(Qh()){const s=function M0(n,e,t){const r=n.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];yg(t,o.selectors,!1)&&(i||(i=[]),na(Es(t,e),n,o.type),Dn(o)?(Ug(n,t),i.unshift(o)):i.push(o))}return i}(n,e,t),o=null===r?null:{"":-1};if(null!==s){i=!0,Hg(t,n.data.length,s.length);for(let c=0;c<s.length;c++){const d=s[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=xi(n,e,s.length,null);for(let c=0;c<s.length;c++){const d=s[c];t.mergedAttrs=Xo(t.mergedAttrs,d.hostAttrs),$g(n,t,e,u,d),R0(u,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),u++}!function D0(n,e){const r=e.directiveEnd,i=n.data,s=e.attrs,o=[];let a=null,l=null;for(let u=e.directiveStart;u<r;u++){const c=i[u],d=c.inputs,f=null===s||mg(e)?null:N0(d,s);o.push(f),a=Lg(d,u,a),l=Lg(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function x0(n,e,t){if(e){const r=n.localNames=[];for(let i=0;i<e.length;i+=2){const s=t[e[i+1]];if(null==s)throw new H(-301,!1);r.push(e[i],s)}}}(t,r,o)}return t.mergedAttrs=Xo(t.mergedAttrs,t.attrs),i}function Bg(n,e,t,r,i,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function T0(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,i,o)}}function Vg(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Ug(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function R0(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;Dn(e)&&(t[""]=n)}}function Hg(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function $g(n,e,t,r,i){n.data[r]=i;const s=i.factory||(i.factory=Vr(i.type)),o=new Ds(s,Dn(i),null);n.blueprint[r]=o,t[r]=o,Bg(n,e,0,r,xi(n,t,i.hostVars,ne),i)}function P0(n,e,t){const r=un(e,n),i=Og(t),s=n[10],o=_a(n,Us(n,i,null,t.onPush?64:16,r,e,s,s.createRenderer(r,t),null,null));n[e.index]=o}function $n(n,e,t,r,i,s){const o=un(n,e);!function Sc(n,e,t,r,i,s,o){if(null==s)He(n)?n.removeAttribute(e,i,t):e.removeAttribute(i);else{const a=null==o?te(s):o(s,r||"",i);He(n)?n.setAttribute(e,i,a,t):t?e.setAttributeNS(t,i,a):e.setAttribute(i,a)}}(e[11],o,s,n.value,t,r,i)}function O0(n,e,t,r,i,s){const o=s[e];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const u=o[l++],c=o[l++],d=o[l++];null!==a?r.setInput(t,d,u,c):t[c]=d}}}function N0(n,e){let t=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,n[i],e[r+1])),r+=2}else r+=2;else r+=4}return t}function qg(n,e,t,r){return new Array(n,!0,!1,e,null,0,r,t,null,null)}function L0(n,e){const t=Ht(e,n);if(_u(t)){const r=t[1];80&t[2]?Ri(r,t,r.template,t[8]):t[5]>0&&Tc(t)}}function Tc(n){for(let r=ec(n);null!==r;r=tc(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];Ri(o,s,o.template,s[8])}else s[5]>0&&Tc(s)}const t=n[1].components;if(null!==t)for(let r=0;r<t.length;r++){const i=Ht(t[r],n);_u(i)&&i[5]>0&&Tc(i)}}function j0(n,e){const t=Ht(e,n),r=t[1];(function B0(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(r,t),Hs(r,t,t[8])}function _a(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Ic(n){for(;n;){n[2]|=64;const e=Bs(n);if(gE(n)&&!e)return n;n=e}return null}function Mc(n,e,t){const r=e[10];r.begin&&r.begin();try{Ri(n,e,n.template,t)}catch(i){throw Kg(e,i),i}finally{r.end&&r.end()}}function zg(n){!function Ac(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],r=Ku(t),i=r[1];v0(i,r,i.template,t)}}(n[8])}function xc(n,e,t){Su(0),e(n,t)}const $0=(()=>Promise.resolve(null))();function Gg(n){return n[7]||(n[7]=[])}function Wg(n){return n.cleanup||(n.cleanup=[])}function Kg(n,e){const t=n[9],r=t?t.get(js,null):null;r&&r.handleError(e)}function Zg(n,e,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],u=n.data[o];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}function sr(n,e,t){const r=qo(e,n);!function Xp(n,e,t){He(n)?n.setValue(e,t):e.textContent=t}(n[11],r,t)}function ba(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=tu(i,a):2==s&&(r=tu(r,a+": "+e[++o]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=i:n.classesWithoutHost=i}const Rc=new re("INJECTOR",-1);class Yg{get(e,t=Ms){if(t===Ms){const r=new Error(`NullInjectorError: No provider for ${be(e)}!`);throw r.name="NullInjectorError",r}return t}}const Pc=new re("Set Injector scope."),$s={},G0={};let Oc;function Jg(){return void 0===Oc&&(Oc=new Yg),Oc}function Xg(n,e=null,t=null,r){const i=em(n,e,t,r);return i._resolveInjectorDefTypes(),i}function em(n,e=null,t=null,r){return new W0(n,t,e||Jg(),r)}class W0{constructor(e,t,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&Bn(t,a=>this.processProvider(a,e,t)),Bn([e],a=>this.processInjectorType(a,[],s)),this.records.set(Rc,Pi(void 0,this));const o=this.records.get(Pc);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:be(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=Ms,r=ee.Default){this.assertNotDestroyed();const i=Ep(this),s=yr(void 0);try{if(!(r&ee.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function tT(n){return"function"==typeof n||"object"==typeof n&&n instanceof re}(e)&&iu(e);a=l&&this.injectableDefInScope(l)?Pi(Nc(e),$s):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&ee.Self?Jg():this.parent).get(e,t=r&ee.Optional&&t===Ms?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[oa]=o[oa]||[]).unshift(be(e)),i)throw o;return function SC(n,e,t,r){const i=n[oa];throw e[wp]&&i.unshift(e[wp]),n.message=function TC(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=be(e);if(Array.isArray(e))i=e.map(be).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):be(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(_C,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[oa]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{yr(s),Ep(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push(be(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new H(205,!1)}processInjectorType(e,t,r){if(!(e=ie(e)))return!1;let i=Oh(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=Oh(s)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(o);try{Bn(i.imports,d=>{this.processInjectorType(d,t,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];Bn(h,p=>this.processProvider(p,f,h||Se))}}this.injectorDefTypes.add(o);const l=Vr(o)||(()=>new o);this.records.set(o,Pi(l,$s));const u=i.providers;if(null!=u&&!a){const c=e;Bn(u,d=>this.processProvider(d,c,u))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,r){let i=Oi(e=ie(e))?e:ie(e&&e.provide);const s=function K0(n,e,t){return nm(n)?Pi(void 0,n.useValue):Pi(function tm(n,e,t){let r;if(Oi(n)){const i=ie(n);return Vr(i)||Nc(i)}if(nm(n))r=()=>ie(n.useValue);else if(function Y0(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...ju(n.deps||[]));else if(function Z0(n){return!(!n||!n.useExisting)}(n))r=()=>S(ie(n.useExisting));else{const i=ie(n&&(n.useClass||n.provide));if(!function X0(n){return!!n.deps}(n))return Vr(i)||Nc(i);r=()=>new i(...ju(n.deps))}return r}(n),$s)}(e);if(Oi(e)||!0!==e.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=Pi(void 0,$s,!0),o.factory=()=>ju(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,s)}hydrate(e,t){return t.value===$s&&(t.value=G0,t.value=t.factory()),"object"==typeof t.value&&t.value&&function eT(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=ie(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Nc(n){const e=iu(n),t=null!==e?e.factory:Vr(n);if(null!==t)return t;if(n instanceof re)throw new H(204,!1);if(n instanceof Function)return function Q0(n){const e=n.length;if(e>0)throw function As(n,e){const t=[];for(let r=0;r<n;r++)t.push(e);return t}(e,"?"),new H(204,!1);const t=function nE(n){const e=n&&(n[Lo]||n[Nh]);if(e){const t=function rE(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new H(204,!1)}function Pi(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function nm(n){return null!==n&&"object"==typeof n&&DC in n}function Oi(n){return"function"==typeof n}let wt=(()=>{class n{static create(t,r){var i;if(Array.isArray(t))return Xg({name:""},r,t,"");{const s=null!==(i=t.name)&&void 0!==i?i:"";return Xg({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Ms,n.NULL=new Yg,n.\u0275prov=G({token:n,providedIn:"any",factory:()=>S(Rc)}),n.__NG_ELEMENT_ID__=-1,n})();function uT(n,e){Ko(Ku(n)[1],tt())}let Da=null;function Ni(){if(!Da){const n=De.Symbol;if(n&&n.iterator)Da=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Da=r)}}}return Da}function qs(n){return!!function jc(n){return null!==n&&("function"==typeof n||"object"==typeof n)}(n)&&(Array.isArray(n)||!(n instanceof Map)&&Ni()in n)}function Et(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function wa(n,e,t,r,i){const s=function qr(n,e,t,r){const i=Et(n,e,t);return Et(n,e+1,r)||i}(n,e,t,r);return Et(n,e+2,i)||s}function zr(n,e,t,r){const i=w();return Et(i,mi(),e)&&(pe(),$n($e(),i,n,e,t,r)),zr}function ji(n,e,t,r,i,s,o,a){const u=wa(n,function nr(){return X.lFrame.bindingIndex}(),t,i,o);return rr(3),u?e+te(t)+r+te(i)+s+te(o)+a:ne}function Ze(n,e,t,r,i,s,o,a){const l=w(),u=pe(),c=n+20,d=u.firstCreatePass?function bT(n,e,t,r,i,s,o,a,l){const u=e.consts,c=Mi(e,n,4,o||null,br(u,a));Cc(e,t,c,br(u,l)),Ko(e,c);const d=c.tViews=va(2,c,r,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,u,l,e,t,r,i,s,o):u.data[c];jn(d,!1);const f=l[11].createComment("");ha(u,l,f,d),Dt(f,l),_a(l,l[c]=qg(f,l,f,d)),$o(d)&&wc(u,l,d),null!=o&&Ec(l,d,a)}function k(n,e=ee.Default){const t=w();return null===t?S(n,e):fp(tt(),t,ie(n),e)}function $c(){throw new Error("invalid")}function Ne(n,e,t){const r=w();return Et(r,mi(),e)&&Gt(pe(),$e(),r,n,e,r[11],t,!1),Ne}function qc(n,e,t,r,i){const o=i?"class":"style";Zg(n,t,e.inputs[o],o,r)}function z(n,e,t,r){const i=w(),s=pe(),o=20+n,a=i[11],l=i[o]=rc(a,e,function WE(){return X.lFrame.currentNamespace}()),u=s.firstCreatePass?function HT(n,e,t,r,i,s,o){const a=e.consts,u=Mi(e,n,2,i,br(a,s));return Cc(e,t,u,br(a,o)),null!==u.attrs&&ba(u,u.attrs,!1),null!==u.mergedAttrs&&ba(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(o,s,i,0,e,t,r):s.data[o];jn(u,!0);const c=u.mergedAttrs;null!==c&&Jo(a,l,c);const d=u.classes;null!==d&&uc(a,l,d);const f=u.styles;return null!==f&&hg(a,l,f),64!=(64&u.flags)&&ha(s,i,l,u),0===function RE(){return X.lFrame.elementDepthCount}()&&Dt(l,i),function PE(){X.lFrame.elementDepthCount++}(),$o(u)&&(wc(s,i,u),Pg(s,u,i)),null!==r&&Ec(i,u),z}function W(){let n=tt();Du()?wu():(n=n.parent,jn(n,!1));const e=n;!function OE(){X.lFrame.elementDepthCount--}();const t=pe();return t.firstCreatePass&&(Ko(t,n),du(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function JE(n){return 0!=(16&n.flags)}(e)&&qc(t,e,w(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function XE(n){return 0!=(32&n.flags)}(e)&&qc(t,e,w(),e.stylesWithoutHost,!1),W}function j(n,e,t,r){return z(n,e,t,r),W(),j}function Gs(n,e,t){const r=w(),i=pe(),s=n+20,o=i.firstCreatePass?function $T(n,e,t,r,i){const s=e.consts,o=br(s,r),a=Mi(e,n,8,"ng-container",o);return null!==o&&ba(a,o,!0),Cc(e,t,a,br(s,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,i,r,e,t):i.data[s];jn(o,!0);const a=r[s]=r[11].createComment("");return ha(i,r,a,o),Dt(a,r),$o(o)&&(wc(i,r,o),Pg(i,o,r)),null!=t&&Ec(r,o),Gs}function Ws(){let n=tt();const e=pe();return Du()?wu():(n=n.parent,jn(n,!1)),e.firstCreatePass&&(Ko(e,n),du(n)&&e.queries.elementEnd(n)),Ws}function Gr(){return w()}function Ca(n){return!!n&&"function"==typeof n.then}const Lm=function km(n){return!!n&&"function"==typeof n.subscribe};function Ct(n,e,t,r){const i=w(),s=pe(),o=tt();return function Bm(n,e,t,r,i,s,o,a){const l=$o(r),c=n.firstCreatePass&&Wg(n),d=e[8],f=Gg(e);let h=!0;if(3&r.type||a){const y=un(r,e),D=a?a(y):y,m=f.length,P=a?$=>a(Ke($[r.index])):r.index;if(He(t)){let $=null;if(!a&&l&&($=function qT(n,e,t,r){const i=n.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=e[7],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,i,r.index)),null!==$)($.__ngLastListenerFn__||$).__ngNextListenerFn__=s,$.__ngLastListenerFn__=s,h=!1;else{s=zc(r,e,d,s,!1);const ae=t.listen(D,i,s);f.push(s,ae),c&&c.push(i,P,m,m+1)}}else s=zc(r,e,d,s,!0),D.addEventListener(i,s,o),f.push(s),c&&c.push(i,P,m,o)}else s=zc(r,e,d,s,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[i])){const y=g.length;if(y)for(let D=0;D<y;D+=2){const Fe=e[g[D]][g[D+1]].subscribe(s),Le=f.length;f.push(s,Fe),c&&c.push(i,r.index,Le,-(Le+1))}}}(s,i,i[11],o,n,e,!!t,r),Ct}function Vm(n,e,t,r){try{return!1!==t(r)}catch(i){return Kg(n,i),!1}}function zc(n,e,t,r,i){return function s(o){if(o===Function)return r;const a=2&n.flags?Ht(n.index,e):e;0==(32&e[2])&&Ic(a);let l=Vm(e,0,r,o),u=s.__ngNextListenerFn__;for(;u;)l=Vm(e,0,u,o)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function Ie(n=1){return function UE(n){return(X.lFrame.contextLView=function HE(n,e){for(;n>0;)e=e[15],n--;return e}(n,X.lFrame.contextLView))[8]}(n)}function Sa(n,e,t,r,i,s,o,a,l){const u=w(),c=ji(u,e,t,r,i,s,o,a);return c!==ne&&Gt(pe(),$e(),u,n,c,u[11],l,!1),Sa}function Km(n,e,t,r,i){const s=n[t+1],o=null===e;let a=r?Cn(s):ir(s),l=!1;for(;0!==a&&(!1===l||o);){const c=n[a+1];ZT(n[a],e)&&(l=!0,n[a+1]=r?fc(c):cc(c)),a=r?Cn(c):ir(c)}l&&(n[t+1]=r?cc(s):fc(s))}function ZT(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Ci(n,e)>=0}const rt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zm(n){return n.substring(rt.key,rt.keyEnd)}function Ym(n,e){const t=rt.textEnd;return t===e?-1:(e=rt.keyEnd=function eI(n,e,t){for(;e<t&&n.charCodeAt(e)>32;)e++;return e}(n,rt.key=e,t),zi(n,e,t))}function zi(n,e,t){for(;e<t&&n.charCodeAt(e)<=32;)e++;return e}function Gi(n,e,t){return function Tn(n,e,t,r){const i=w(),s=pe(),o=rr(2);s.firstUpdatePass&&iy(s,n,o,r),e!==ne&&Et(i,o,e)&&oy(s,s.data[At()],i,i[11],n,i[o+1]=function cI(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=be(qt(n)))),n}(e,t),r,o)}(n,e,t,!1),Gi}function or(n){!function In(n,e,t,r){const i=pe(),s=rr(2);i.firstUpdatePass&&iy(i,null,s,r);const o=w();if(t!==ne&&Et(o,s,t)){const a=i.data[At()];if(ly(a,r)&&!ry(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=tu(l,t||"")),qc(i,a,o,t,r)}else!function uI(n,e,t,r,i,s,o,a){i===ne&&(i=Se);let l=0,u=0,c=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==c||null!==d;){const f=l<i.length?i[l+1]:void 0,h=u<s.length?s[u+1]:void 0;let g,p=null;c===d?(l+=2,u+=2,f!==h&&(p=d,g=h)):null===d||null!==c&&c<d?(l+=2,p=c):(u+=2,p=d,g=h),null!==p&&oy(n,e,t,r,p,g,o,a),c=l<i.length?i[l]:null,d=u<s.length?s[u]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function lI(n,e,t){if(null==t||""===t)return Se;const r=[],i=qt(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)n(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&n(r,s,i[s]);else"string"==typeof i&&e(r,i);return r}(n,e,t),r,s)}}($t,Gn,n,!0)}function Gn(n,e){for(let t=function JT(n){return function Xm(n){rt.key=0,rt.keyEnd=0,rt.value=0,rt.valueEnd=0,rt.textEnd=n.length}(n),Ym(n,zi(n,0,rt.textEnd))}(e);t>=0;t=Ym(e,t))$t(n,Zm(e),!0)}function ry(n,e){return e>=n.expandoStartIndex}function iy(n,e,t,r){const i=n.data;if(null===i[t+1]){const s=i[At()],o=ry(n,t);ly(s,r)&&null===e&&!o&&(e=!1),e=function iI(n,e,t,r){const i=Cu(n);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=Qs(t=Wc(null,n,e,t,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==i)if(t=Wc(i,n,e,t,r),null===s){let l=function sI(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==ir(r))return n[Cn(r)]}(n,e,r);void 0!==l&&Array.isArray(l)&&(l=Wc(null,n,e,l[1],r),l=Qs(l,e.attrs,r),function oI(n,e,t,r){n[Cn(t?e.classBindings:e.styleBindings)]=r}(n,e,r,l))}else s=function aI(n,e,t){let r;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)r=Qs(r,n[s].hostAttrs,t);return Qs(r,e.attrs,t)}(n,e,r)}return void 0!==s&&(r?e.residualClasses=s:e.residualStyles=s),t}(i,s,e,r),function QT(n,e,t,r,i,s){let o=s?e.classBindings:e.styleBindings,a=Cn(o),l=ir(o);n[r]=t;let c,u=!1;if(Array.isArray(t)){const d=t;c=d[1],(null===c||Ci(d,c)>0)&&(u=!0)}else c=t;if(i)if(0!==l){const f=Cn(n[a+1]);n[r+1]=ga(f,a),0!==f&&(n[f+1]=dc(n[f+1],r)),n[a+1]=function s0(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=ga(a,0),0!==a&&(n[a+1]=dc(n[a+1],r)),a=r;else n[r+1]=ga(l,0),0===a?a=r:n[l+1]=dc(n[l+1],r),l=r;u&&(n[r+1]=cc(n[r+1])),Km(n,c,r,!0),Km(n,c,r,!1),function KT(n,e,t,r,i){const s=i?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Ci(s,e)>=0&&(t[r+1]=fc(t[r+1]))}(e,c,n,r,s),o=ga(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,t,o,r)}}function Wc(n,e,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],r=Qs(r,s.hostAttrs,i),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),r}function Qs(n,e,t){const r=t?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),$t(n,o,!!t||e[++s]))}return void 0===n?null:n}function oy(n,e,t,r,i,s,o,a){if(!(3&e.type))return;const l=n.data,u=l[a+1];Ta(function wg(n){return 1==(1&n)}(u)?ay(l,e,t,i,ir(u),o):void 0)||(Ta(s)||function Dg(n){return 2==(2&n)}(u)&&(s=ay(l,null,t,i,a,o)),function GS(n,e,t,r,i){const s=He(n);if(e)i?s?n.addClass(t,r):t.classList.add(r):s?n.removeClass(t,r):t.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:zt.DashCase;if(null==i)s?n.removeStyle(t,r,o):t.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),o|=zt.Important),s?n.setStyle(t,r,i,o):t.style.setProperty(r,i,a?"important":"")}}}(r,o,qo(At(),t),i,s))}function ay(n,e,t,r,i,s){const o=null===e;let a;for(;i>0;){const l=n[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=t[i+1];f===ne&&(f=d?Se:void 0);let h=d?Fu(f,r):c===r?f:void 0;if(u&&!Ta(h)&&(h=Fu(l,r)),Ta(h)&&(a=h,o))return a;const p=n[i+1];i=o?Cn(p):ir(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=Fu(l,r))}return a}function Ta(n){return void 0!==n}function ly(n,e){return 0!=(n.flags&(e?16:32))}function Ae(n,e=""){const t=w(),r=pe(),i=n+20,s=r.firstCreatePass?Mi(r,i,1,e,null):r.data[i],o=t[i]=function nc(n,e){return He(n)?n.createText(e):n.createTextNode(e)}(t[11],e);ha(r,t,o,s),jn(s,!1)}function it(n,e,t){const r=w(),i=function ki(n,e,t,r){return Et(n,mi(),t)?e+te(t)+r:ne}(r,n,e,t);return i!==ne&&sr(r,At(),i),it}function Qc(n,e,t){const r=w();if(Et(r,mi(),e)){const s=pe(),o=$e();Gt(s,o,r,n,e,function Qg(n,e,t){return(null===n||Dn(n))&&(t=function AE(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(t[e.index])),t[11]}(Cu(s.data),o,r),t,!0)}return Qc}const Ia="en-US";let xy=Ia;class tv{}class OA{resolveComponentFactory(e){throw function PA(n){const e=Error(`No component factory found for ${be(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let Ki=(()=>{class n{}return n.NULL=new OA,n})();function NA(){return Zi(tt(),w())}function Zi(n,e){return new ar(un(n,e))}let ar=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=NA,n})();class Xs{}let Pa=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function LA(){const n=w(),t=Ht(tt().index,n);return function kA(n){return n[11]}(Ln(t)?t:n)}(),n})(),jA=(()=>{class n{}return n.\u0275prov=G({token:n,providedIn:"root",factory:()=>null}),n})();class Oa{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const BA=new Oa("13.3.0"),td={};function Na(n,e,t,r,i=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&r.push(Ke(s)),bn(s))for(let a=10;a<s.length;a++){const l=s[a],u=l[1].firstChild;null!==u&&Na(l[1],l,u,r)}const o=t.type;if(8&o)Na(n,e,t.child,r);else if(32&o){const a=Xu(t,e);let l;for(;l=a();)r.push(l)}else if(16&o){const a=cg(e,t);if(Array.isArray(a))r.push(...a);else{const l=Bs(e[16]);Na(l[1],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}class eo{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Na(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(bn(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(ic(e,r),ia(t,r))}this._attachedToViewContainer=!1}tg(this._lView[1],this._lView)}onDestroy(e){!function kg(n,e,t,r){const i=Gg(e);null===t?i.push(r):(i.push(t),n.firstCreatePass&&Wg(n).push(r,i.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){Ic(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function U0(n,e,t){Go(!0);try{Mc(n,e,t)}finally{Go(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new H(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kS(n,e){Vs(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new H(902,"");this._appRef=e}}class VA extends eo{constructor(e){super(e),this._view=e}detectChanges(){zg(this._view)}checkNoChanges(){!function H0(n){Go(!0);try{zg(n)}finally{Go(!1)}}(this._view)}get context(){return null}}class rv extends Ki{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=_t(e);return new nd(t,this.ngModule)}}function iv(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class nd extends tv{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function n0(n){return n.map(t0).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return iv(this.componentDef.inputs)}get outputs(){return iv(this.componentDef.outputs)}create(e,t,r,i){const s=(i=i||this.ngModule)?function HA(n,e){return{get:(t,r,i)=>{const s=n.get(t,td,i);return s!==td||r===td?s:e.get(t,r,i)}}}(e,i.injector):e,o=s.get(Xs,zh),a=s.get(jA,null),l=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function Fg(n,e,t){if(He(n))return n.selectRootElement(e,t===vn.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):rc(o.createRenderer(null,this.componentDef),u,function UA(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),d=this.componentDef.onPush?576:528,f=function hm(n,e){return{components:[],scheduler:n||AS,clean:$0,playerHandler:e||null,flags:0}}(),h=va(0,null,null,1,0,null,null,null,null,null),p=Us(null,h,f,d,null,null,o,l,a,s);let g,y;Wo(p);try{const D=function dm(n,e,t,r,i,s){const o=t[1];t[20]=n;const l=Mi(o,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(ba(l,u,!0),null!==n&&(Jo(i,n,u),null!==l.classes&&uc(i,n,l.classes),null!==l.styles&&hg(i,n,l.styles)));const c=r.createRenderer(n,e),d=Us(t,Og(e),null,e.onPush?64:16,t[20],l,r,c,s||null,null);return o.firstCreatePass&&(na(Es(l,t),o,e.type),Ug(o,l),Hg(l,t.length,1)),_a(t,d),t[20]=d}(c,this.componentDef,p,o,l);if(c)if(r)Jo(l,c,["ng-version",BA.full]);else{const{attrs:m,classes:P}=function r0(n){const e=[],t=[];let r=1,i=2;for(;r<n.length;){let s=n[r];if("string"==typeof s)2===i?""!==s&&e.push(s,n[++r]):8===i&&t.push(s);else{if(!En(i))break;i=s}r++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);m&&Jo(l,c,m),P&&P.length>0&&uc(l,c,P.join(" "))}if(y=vu(h,20),void 0!==t){const m=y.projection=[];for(let P=0;P<this.ngContentSelectors.length;P++){const $=t[P];m.push(null!=$?Array.from($):null)}}g=function fm(n,e,t,r,i){const s=t[1],o=function S0(n,e,t){const r=tt();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),$g(n,r,e,xi(n,e,1,null),t));const i=Cs(e,n,r.directiveStart,r);Dt(i,e);const s=un(r,e);return s&&Dt(s,e),i}(s,t,e);if(r.components.push(o),n[8]=o,i&&i.forEach(l=>l(o,e)),e.contentQueries){const l=tt();e.contentQueries(1,o,l.directiveStart)}const a=tt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Dr(a.index),Bg(t[1],a,0,a.directiveStart,a.directiveEnd,e),Vg(e,o)),o}(D,this.componentDef,p,f,[uT]),Hs(h,p,null)}finally{Qo()}return new qA(this.componentType,g,Zi(y,p),p,y)}}class qA extends class RA{}{constructor(e,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new VA(i),this.componentType=e}get injector(){return new _i(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class lr{}class sv{}const Yi=new Map;class lv extends lr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rv(this);const r=on(e);this._bootstrapComponents=Hn(r.bootstrap),this._r3Injector=em(e,t,[{provide:lr,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],be(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=wt.THROW_IF_NOT_FOUND,r=ee.Default){return e===wt||e===lr||e===Rc?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class rd extends sv{constructor(e){super(),this.moduleType=e,null!==on(e)&&function GA(n){const e=new Set;!function t(r){const i=on(r,!0),s=i.id;null!==s&&(function ov(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${be(e)} vs ${be(e.name)}`)}(s,Yi.get(s),r),Yi.set(s,r));const o=Hn(i.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new lv(this.moduleType,e)}}function id(n){return e=>{setTimeout(n,void 0,e)}}const St=class cM extends ut{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var i,s,o;let a=e,l=t||(()=>null),u=r;if(e&&"object"==typeof e){const d=e;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),u=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=id(l),a&&(a=id(a)),u&&(u=id(u)));const c=super.subscribe({next:a,error:l,complete:u});return e instanceof C&&e.add(c),c}};Symbol;let ur=(()=>{class n{}return n.__NG_ELEMENT_ID__=pM,n})();const fM=ur,hM=class extends fM{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Us(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(t)),Hs(t,r,e),new eo(r)}};function pM(){return function Fa(n,e){return 4&n.type?new hM(e,n,Zi(n,e)):null}(tt(),w())}let An=(()=>{class n{}return n.__NG_ELEMENT_ID__=gM,n})();function gM(){return function mv(n,e){let t;const r=e[n.index];if(bn(r))t=r;else{let i;if(8&n.type)i=Ke(r);else{const s=e[11];i=s.createComment("");const o=un(n,e);$r(s,fa(s,o),i,function $S(n,e){return He(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=qg(r,e,i,n),_a(e,t)}return new pv(t,n,e)}(tt(),w())}const mM=An,pv=class extends mM{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Zi(this._hostTNode,this._hostLView)}get injector(){return new _i(this._hostTNode,this._hostLView)}get parentInjector(){const e=ta(this._hostTNode,this._hostLView);if(ap(e)){const t=vi(e,this._hostLView),r=yi(e);return new _i(t[1].data[r+8],t)}return new _i(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=gv(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const i=e.createEmbeddedView(t||{});return this.insert(i,r),i}createComponent(e,t,r,i,s){const o=e&&!function Is(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new nd(_t(e)),u=r||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?u:this.parentInjector).get(lr,null);f&&(s=f)}const c=l.create(u,i,void 0,s);return this.insert(c.hostView,a),c}insert(e,t){const r=e._lView,i=r[1];if(function xE(n){return bn(n[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new pv(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function jS(n,e,t,r){const i=10+r,s=t.length;r>0&&(t[i-1][4]=e),r<s-10?(e[4]=t[i],yp(t,10+r,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function BS(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(i,r,o,s);const a=ac(s,o),l=r[11],u=fa(l,o[7]);return null!==u&&function FS(n,e,t,r,i,s){r[0]=i,r[6]=e,Vs(n,r,t,1,i,s)}(i,o[6],l,r,u,a),e.attachToViewContainerRef(),yp(od(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=gv(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=ic(this._lContainer,t);r&&(ia(od(this._lContainer),t),tg(r[1],r))}detach(e){const t=this._adjustIndex(e,-1),r=ic(this._lContainer,t);return r&&null!=ia(od(this._lContainer),t)?new eo(r):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function gv(n){return n[8]}function od(n){return n[8]||(n[8]=[])}function ja(...n){}const bd=new re("Application Initializer");let Dd=(()=>{class n{constructor(t){this.appInits=t,this.resolve=ja,this.reject=ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(Ca(s))t.push(s);else if(Lm(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(S(bd,8))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const io=new re("AppId",{providedIn:"root",factory:function jv(){return`${wd()}${wd()}${wd()}`}});function wd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bv=new re("Platform Initializer"),Ba=new re("Platform ID"),Vv=new re("appBootstrapListener");let Uv=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const Tr=new re("LocaleId",{providedIn:"root",factory:()=>EC(Tr,ee.Optional|ee.SkipSelf)||function $M(){return"undefined"!=typeof $localize&&$localize.locale||Ia}()});class zM{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Hv=(()=>{class n{compileModuleSync(t){return new rd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),s=Hn(on(t).declarations).reduce((o,a)=>{const l=_t(a);return l&&o.push(new nd(l)),o},[]);return new zM(r,s)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WM=(()=>Promise.resolve(0))();function Ed(n){"undefined"==typeof Zone?WM.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ze{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new St(!1),this.onMicrotaskEmpty=new St(!1),this.onStable=new St(!1),this.onError=new St(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function QM(){let n=De.requestAnimationFrame,e=De.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function YM(n){const e=()=>{!function ZM(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(De,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Sd(n),n.isCheckStableRunning=!0,Cd(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Sd(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,s,o,a)=>{try{return $v(n),t.invokeTask(i,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),qv(n)}},onInvoke:(t,r,i,s,o,a,l)=>{try{return $v(n),t.invoke(i,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),qv(n)}},onHasTask:(t,r,i,s)=>{t.hasTask(i,s),r===i&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Sd(n),Cd(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,r,i,s)=>(t.handleError(i,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ze.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ze.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,KM,ja,ja);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const KM={};function Cd(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Sd(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function $v(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function qv(n){n._nesting--,Cd(n)}class JM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new St,this.onMicrotaskEmpty=new St,this.onStable=new St,this.onError=new St}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}let Td=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ze.assertNotInAngularZone(),Ed(()=>{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())Ed(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,i){return[]}}return n.\u0275fac=function(t){return new(t||n)(S(ze))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),zv=(()=>{class n{constructor(){this._applications=new Map,Id.addToWindow(this)}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Id.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();class XM{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let Mn,Id=new XM;const Gv=new re("AllowMultipleToken");class Wv{constructor(e,t){this.name=e,this.token=t}}function Qv(n,e,t=[]){const r=`Platform: ${e}`,i=new re(r);return(s=[])=>{let o=Kv();if(!o||o.injector.get(Gv,!1))if(n)n(t.concat(s).concat({provide:i,useValue:!0}));else{const a=t.concat(s).concat({provide:i,useValue:!0},{provide:Pc,useValue:"platform"});!function r1(n){if(Mn&&!Mn.destroyed&&!Mn.injector.get(Gv,!1))throw new H(400,"");Mn=n.get(Zv);const e=n.get(Bv,null);e&&e.forEach(t=>t())}(wt.create({providers:a,name:r}))}return function i1(n){const e=Kv();if(!e)throw new H(401,"");return e}()}}function Kv(){return Mn&&!Mn.destroyed?Mn:null}let Zv=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const a=function s1(n,e){let t;return t="noop"===n?new JM:("zone.js"===n?void 0:n)||new ze({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:ze,useValue:a}];return a.run(()=>{const u=wt.create({providers:l,parent:this.injector,name:t.moduleType.name}),c=t.create(u),d=c.injector.get(js,null);if(!d)throw new H(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{Ad(this._modules,c),f.unsubscribe()})}),function o1(n,e,t){try{const r=t();return Ca(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Dd);return f.runInitializers(),f.donePromise.then(()=>(function FI(n){Bt(n,"Expected localeId to be defined"),"string"==typeof n&&(xy=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Tr,Ia)||Ia),this._moduleDoBootstrap(c),c))})})}bootstrapModule(t,r=[]){const i=Yv({},r);return function t1(n,e,t){const r=new rd(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(t){const r=t.injector.get(so);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new H(403,"");t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new H(404,"");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(S(wt))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();function Yv(n,e){return Array.isArray(e)?e.reduce(Yv,n):Object.assign(Object.assign({},n),e)}let so=(()=>{class n{constructor(t,r,i,s,o){this._zone=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=o,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 a=new Ue(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new Ue(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),Ed(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function Kw(...n){const e=gs(n),t=function Hw(n,e){return"number"==typeof Yl(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?rn(r[0]):ps(t)(dt(r,e)):Xn}(a,l.pipe(function Zw(n={}){const{connector:e=(()=>new ut),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return s=>{let o=null,a=null,l=null,u=0,c=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=null},h=()=>{f(),o=l=null,c=d=!1},p=()=>{const g=o;h(),null==g||g.unsubscribe()};return ct((g,y)=>{u++,!d&&!c&&f();const D=l=null!=l?l:e();y.add(()=>{u--,0===u&&!d&&!c&&(a=Xl(p,i))}),D.subscribe(y),o||(o=new Yn({next:m=>D.next(m),error:m=>{d=!0,f(),a=Xl(h,t,m),D.error(m)},complete:()=>{c=!0,f(),a=Xl(h,r),D.complete()}}),dt(g).subscribe(o))})(s)}}()))}bootstrap(t,r){if(!this._initStatus.done)throw new H(405,"");let i;i=t instanceof tv?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const s=function n1(n){return n.isBoundToModule}(i)?void 0:this._injector.get(lr),a=i.create(wt.NULL,[],r||i.selector,s),l=a.location.nativeElement,u=a.injector.get(Td,null),c=u&&a.injector.get(zv);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Ad(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new H(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Ad(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Vv,[]).concat(this._bootstrapListeners).forEach(i=>i(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(S(ze),S(wt),S(js),S(Ki),S(Dd))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ad(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let Xv=!0,Md=(()=>{class n{}return n.__NG_ELEMENT_ID__=u1,n})();function u1(n){return function c1(n,e,t){if(Ho(n)&&!t){const r=Ht(n.index,e);return new eo(r,r)}return 47&n.type?new eo(e[16],e):null}(tt(),w(),16==(16&n))}class i_{constructor(){}supports(e){return qs(e)}create(e){return new m1(e)}}const g1=(n,e)=>e;class m1{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||g1}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,s=null;for(;t||r;){const o=!r||t&&t.currentIndex<o_(r,i,s)?t:r,a=o_(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{s||(s=[]);const u=a-i,c=l-i;if(u!=c){for(let f=0;f<u;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;c<=p&&p<u&&(s[f]=h+1)}s[o.previousIndex]=c-u}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!qs(e))throw new H(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,t=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),r=!0),t=t._next}else i=0,function _T(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[Ni()]();let r;for(;!(r=t.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),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,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):e=this._addAfter(new y1(t,r),s,i),e}_verifyReinsertion(e,t,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new s_),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._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 s_),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 y1{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 v1{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class s_{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new v1,this.map.set(t,r)),r.add(e)}get(e,t){const i=this.map.get(e);return i?i.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 o_(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r<t.length&&(i=t[r]),r+e+i}function l_(){return new Ha([new i_])}let Ha=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||l_()),deps:[[n,new Ps,new Er]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new H(901,"")}}return n.\u0275prov=G({token:n,providedIn:"root",factory:l_}),n})();const E1=Qv(null,"core",[{provide:Ba,useValue:"unknown"},{provide:Zv,deps:[wt]},{provide:zv,deps:[]},{provide:Uv,deps:[]}]);let C1=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(S(so))},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({}),n})(),$a=null;function Ir(){return $a}const st=new re("DocumentToken");let Kr=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:function(){return function A1(){return S(c_)}()},providedIn:"platform"}),n})();const M1=new re("Location Initialized");let c_=(()=>{class n extends Kr{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ir().getBaseHref(this._doc)}onPopState(t){const r=Ir().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Ir().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,r,i){d_()?this._history.pushState(t,r,i):this.location.hash=i}replaceState(t,r,i){d_()?this._history.replaceState(t,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:function(){return function x1(){return new c_(S(st))}()},providedIn:"platform"}),n})();function d_(){return!!window.history.pushState}function Nd(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function f_(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function cr(n){return n&&"?"!==n[0]?"?"+n:n}let Xi=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:function(){return function R1(n){const e=S(st).location;return new h_(S(Kr),e&&e.origin||"")}()},providedIn:"root"}),n})();const Fd=new re("appBaseHref");let h_=(()=>{class n extends Xi{constructor(t,r){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Nd(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+cr(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,s){const o=this.prepareExternalUrl(i+cr(s));this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){const o=this.prepareExternalUrl(i+cr(s));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Kr),S(Fd,8))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),P1=(()=>{class n extends Xi{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Nd(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,s){let o=this.prepareExternalUrl(i+cr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){let o=this.prepareExternalUrl(i+cr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Kr),S(Fd,8))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),kd=(()=>{class n{constructor(t,r){this._subject=new St,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=f_(p_(i)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+cr(r))}normalize(t){return n.stripTrailingSlash(function N1(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,p_(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._platformStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+cr(r)),i)}replaceState(t,r="",i=null){this._platformStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+cr(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return n.normalizeQueryParams=cr,n.joinWithSlash=Nd,n.stripTrailingSlash=f_,n.\u0275fac=function(t){return new(t||n)(S(Xi),S(Kr))},n.\u0275prov=G({token:n,factory:function(){return function O1(){return new kd(S(Xi),S(Kr))}()},providedIn:"root"}),n})();function p_(n){return n.replace(/\/index.html$/,"")}class bx{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let E_=(()=>{class n{constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((i,s,o)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new bx(i.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const a=r.get(s);r.move(a,o),C_(a,i)}});for(let i=0,s=r.length;i<s;i++){const a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{C_(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(k(An),k(ur),k(Ha))},n.\u0275dir=gt({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function C_(n,e){n.context.$implicit=e.item}let es=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new Dx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){S_("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){S_("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return n.\u0275fac=function(t){return new(t||n)(k(An),k(ur))},n.\u0275dir=gt({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class Dx{constructor(){this.$implicit=null,this.ngIf=null}}function S_(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${be(e)}'.`)}let Zd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({}),n})();const A_="browser";function M_(n){return n===A_}let Yx=(()=>{class n{}return n.\u0275prov=G({token:n,providedIn:"root",factory:()=>new Jx(S(st),window)}),n})();class Jx{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 Xx(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const s=i.shadowRoot;if(s){const o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}i=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=x_(this.window.history)||x_(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 x_(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class Yd extends class tR extends class I1{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function T1(n){$a||($a=n)}(new Yd)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function nR(){return uo=uo||document.querySelector("base"),uo?uo.getAttribute("href"):null}();return null==t?null:function rR(n){Xa=Xa||document.createElement("a"),Xa.setAttribute("href",n);const e=Xa.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){uo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function yx(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Xa,uo=null;const R_=new re("TRANSITION_ID"),sR=[{provide:bd,useFactory:function iR(n,e,t){return()=>{t.get(Dd).donePromise.then(()=>{const r=Ir(),i=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[R_,st,wt],multi:!0}];class Jd{static init(){!function e1(n){Id=n}(new Jd)}addToWindow(e){De.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(r=>{const i=De.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:r?Ir().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let oR=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const el=new re("EventManagerPlugins");let tl=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(S(el),S(ze))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();class P_{constructor(e){this._doc=e}addGlobalEventListener(e,t,r){const i=Ir().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,r)}}let O_=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),co=(()=>{class n extends O_{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(N_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(N_))}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();function N_(n){Ir().remove(n)}const Xd={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/",math:"http://www.w3.org/1998/MathML/"},ef=/%COMP%/g;function nl(n,e,t){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?nl(n,i,t):(i=i.replace(ef,n),t.push(i))}return t}function L_(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let rl=(()=>{class n{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new tf(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case vn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new fR(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case 1:case vn.ShadowDom:return new hR(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=nl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(S(tl),S(co),S(io))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();class tf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(Xd[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,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const s=Xd[i];s?e.setAttributeNS(s,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=Xd[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(zt.DashCase|zt.Important)?e.style.setProperty(t,r,i&zt.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&zt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,L_(r)):this.eventManager.addEventListener(e,t,L_(r))}}class fR extends tf{constructor(e,t,r,i){super(e),this.component=r;const s=nl(i+"-"+r.id,r.styles,[]);t.addStyles(s),this.contentAttr=function uR(n){return"_ngcontent-%COMP%".replace(ef,n)}(i+"-"+r.id),this.hostAttr=function cR(n){return"_nghost-%COMP%".replace(ef,n)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class hR extends tf{constructor(e,t,r,i){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=nl(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let pR=(()=>{class n extends P_{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const B_=["alt","control","meta","shift"],mR={"\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"},V_={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"},yR={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let vR=(()=>{class n extends P_{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,i){const s=n.parseEventName(r),o=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ir().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=n._normalizeKey(r.pop());let o="";if(B_.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(t){let r="",i=function _R(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&V_.hasOwnProperty(e)&&(e=V_[e]))}return mR[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),B_.forEach(s=>{s!=i&&yR[s](t)&&(r+=s+".")}),r+=i,r}static eventCallback(t,r,i){return s=>{n.getEventFullKey(s)===t&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const ER=Qv(E1,"browser",[{provide:Ba,useValue:A_},{provide:Bv,useValue:function bR(){Yd.makeCurrent(),Jd.init()},multi:!0},{provide:st,useFactory:function wR(){return function TE(n){mu=n}(document),document},deps:[]}]),CR=[{provide:Pc,useValue:"root"},{provide:js,useFactory:function DR(){return new js},deps:[]},{provide:el,useClass:pR,multi:!0,deps:[st,ze,Ba]},{provide:el,useClass:vR,multi:!0,deps:[st]},{provide:rl,useClass:rl,deps:[tl,co,io]},{provide:Xs,useExisting:rl},{provide:O_,useExisting:co},{provide:co,useClass:co,deps:[st]},{provide:Td,useClass:Td,deps:[ze]},{provide:tl,useClass:tl,deps:[el,ze]},{provide:class eR{},useClass:oR,deps:[]}];let U_=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:io,useValue:t.appId},{provide:R_,useExisting:io},sR]}}}return n.\u0275fac=function(t){return new(t||n)(S(n,12))},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({providers:CR,imports:[Zd,C1]}),n})();"undefined"!=typeof window&&window;let q_=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:function(t){let r=null;return r=t?new(t||n):S(z_),r},providedIn:"root"}),n})(),z_=(()=>{class n extends q_{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Te.NONE:return r;case Te.HTML:return Vn(r,"HTML")?qt(r):Vp(this._doc,String(r)).toString();case Te.STYLE:return Vn(r,"Style")?qt(r):r;case Te.SCRIPT:if(Vn(r,"Script"))return qt(r);throw new Error("unsafe value used in a script context");case Te.URL:return Pp(r),Vn(r,"URL")?qt(r):Ns(String(r));case Te.RESOURCE_URL:if(Vn(r,"ResourceURL"))return qt(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function HC(n){return new LC(n)}(t)}bypassSecurityTrustStyle(t){return function $C(n){return new jC(n)}(t)}bypassSecurityTrustScript(t){return function qC(n){return new BC(n)}(t)}bypassSecurityTrustUrl(t){return function zC(n){return new VC(n)}(t)}bypassSecurityTrustResourceUrl(t){return function GC(n){return new UC(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:function(t){let r=null;return r=t?new t:function NR(n){return new z_(n.get(st))}(S(wt)),r},providedIn:"root"}),n})();class G_{}const fr="*";function kR(n,e){return{type:7,name:n,definitions:e,options:{}}}function W_(n,e=null){return{type:4,styles:e,timings:n}}function Q_(n,e=null){return{type:2,steps:n,options:e}}function fo(n){return{type:6,styles:n,offset:null}}function rf(n,e,t){return{type:0,name:n,styles:e,options:t}}function K_(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Z_(n){Promise.resolve(null).then(n)}class ho{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(){Z_(()=>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(){this._started=!1}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(r=>r()),t.length=0}}class Y_{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,r=0,i=0;const s=this.players.length;0==s?Z_(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.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(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,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(r=>r()),t.length=0}}const fe=!1;function J_(n){return new H(3e3,fe)}function mP(){return"undefined"!=typeof window&&void 0!==window.document}function of(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Mr(n){switch(n.length){case 0:return new ho;case 1:return n[0];default:return new Y_(n)}}function X_(n,e,t,r,i={},s={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(c=>{const d=c.offset,f=d==l,h=f&&u||{};Object.keys(c).forEach(p=>{let g=p,y=c[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=i[p];break;case fr:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}h[g]=y}),f||a.push(h),u=h,l=d}),o.length)throw function sP(n){return new H(3502,fe)}();return a}function af(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&lf(t,"start",n)));break;case"done":n.onDone(()=>r(t&&lf(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&lf(t,"destroy",n)))}}function lf(n,e,t){const r=t.totalTime,s=uf(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function uf(n,e,t,r,i="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Wt(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function eb(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let cf=(n,e)=>!1,tb=(n,e,t)=>[],nb=null;function df(n){const e=n.parentNode||n.host;return e===nb?null:e}(of()||"undefined"!=typeof Element)&&(mP()?(nb=(()=>document.documentElement)(),cf=(n,e)=>{for(;e;){if(e===n)return!0;e=df(e)}return!1}):cf=(n,e)=>n.contains(e),tb=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]});let Zr=null,rb=!1;function ib(n){Zr||(Zr=function vP(){return"undefined"!=typeof document?document.body:null}()||{},rb=!!Zr.style&&"WebkitAppearance"in Zr.style);let e=!0;return Zr.style&&!function yP(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Zr.style,!e&&rb&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Zr.style)),e}const sb=cf,ob=tb;let ab=(()=>{class n{validateStyleProperty(t){return ib(t)}matchesElement(t,r){return!1}containsElement(t,r){return sb(t,r)}getParentElement(t){return df(t)}query(t,r,i){return ob(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new ho(i,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),ff=(()=>{class n{}return n.NOOP=new ab,n})();const hf="ng-enter",sl="ng-leave",ol="ng-trigger",al=".ng-trigger",ub="ng-animating",pf=".ng-animating";function Yr(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:gf(parseFloat(e[1]),e[2])}function gf(n,e){return"s"===e?1e3*n:n}function ll(n,e,t){return n.hasOwnProperty("duration")?n:function DP(n,e,t){let i,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(J_()),{duration:0,delay:0,easing:""};i=gf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=gf(parseFloat(l),a[4]));const u=a[5];u&&(o=u)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(function LR(){return new H(3100,fe)}()),a=!0),s<0&&(e.push(function jR(){return new H(3101,fe)}()),a=!0),a&&e.splice(l,0,J_())}return{duration:i,delay:s,easing:o}}(n,e,t)}function ts(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function xr(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else ts(n,t);return t}function db(n,e,t){return t?e+":"+t+";":""}function fb(n){let e="";for(let t=0;t<n.style.length;t++){const r=n.style.item(t);e+=db(0,r,n.style.getPropertyValue(r))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=db(0,CP(t),n.style[t]));n.setAttribute("style",e)}function Wn(n,e,t){n.style&&(Object.keys(e).forEach(r=>{const i=yf(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[i]),n.style[i]=e[r]}),of()&&fb(n))}function Jr(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=yf(t);n.style[r]=""}),of()&&fb(n))}function po(n){return Array.isArray(n)?1==n.length?n[0]:Q_(n):n}const mf=new RegExp("{{\\s*(.+?)\\s*}}","g");function hb(n){let e=[];if("string"==typeof n){let t;for(;t=mf.exec(n);)e.push(t[1]);mf.lastIndex=0}return e}function ul(n,e,t){const r=n.toString(),i=r.replace(mf,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function VR(n){return new H(3003,fe)}()),a=""),a.toString()});return i==r?n:i}function cl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const EP=/-+([a-z0-9])/g;function yf(n){return n.replace(EP,(...e)=>e[1].toUpperCase())}function CP(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Qt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function UR(n){return new H(3004,fe)}()}}function pb(n,e){return window.getComputedStyle(n)[e]}function xP(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function RP(n,e,t){if(":"==n[0]){const l=function PP(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(function tP(n){return new H(3016,fe)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function eP(n){return new H(3015,fe)}()),e;const i=r[1],s=r[2],o=r[3];e.push(gb(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&e.push(gb(o,i))}(r,t,e)):t.push(n),t}const pl=new Set(["true","1"]),gl=new Set(["false","0"]);function gb(n,e){const t=pl.has(n)||gl.has(n),r=pl.has(e)||gl.has(e);return(i,s)=>{let o="*"==n||n==i,a="*"==e||e==s;return!o&&t&&"boolean"==typeof i&&(o=i?pl.has(n):gl.has(n)),!a&&r&&"boolean"==typeof s&&(a=s?pl.has(e):gl.has(e)),o&&a}}const OP=new RegExp("s*:selfs*,?","g");function vf(n,e,t,r){return new NP(n).build(e,t,r)}class NP{constructor(e){this._driver=e}build(e,t,r){const i=new LP(t);this._resetContextStyleTimingState(i);const s=Qt(this,po(e),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function $R(){return new H(3006,fe)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,t))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function qR(){return new H(3007,fe)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{if(ml(a)){const l=a;Object.keys(l).forEach(u=>{hb(l[u]).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}}),s.size&&(cl(s.values()),t.errors.push(function zR(n,e){return new H(3008,fe)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Qt(this,po(e.animation),t);return{type:1,matchers:xP(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Xr(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Qt(this,r,t)),options:Xr(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const s=e.steps.map(o=>{t.currentTime=r;const a=Qt(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:s,options:Xr(e.options)}}visitAnimate(e,t){const r=function BP(n,e){let t=null;if(n.hasOwnProperty("duration"))t=n;else if("number"==typeof n)return _f(ll(n,e).duration,0,"");const r=n;if(r.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=_f(0,0,"");return s.dynamic=!0,s.strValue=r,s}return t=t||ll(r,e),_f(t.duration,t.delay,t.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,s=e.styles?e.styles:fo({});if(5==s.type)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const u={};r.easing&&(u.easing=r.easing),o=fo(u)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==fr?r.push(o):t.errors.push(function GR(n){return new H(3002,fe)}()):r.push(o)}):r.push(e.styles);let i=!1,s=null;return r.forEach(o=>{if(ml(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let u in a)if(a[u].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],u=l[a];let c=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function WR(n,e,t,r,i){return new H(3010,fe)}()),c=!1),s=u.startTime),c&&(l[a]={startTime:s,endTime:i}),t.options&&function wP(n,e,t){const r=e.params||{},i=hb(n);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function BR(n){return new H(3001,fe)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function QR(){return new H(3011,fe)}()),r;let s=0;const o=[];let a=!1,l=!1,u=0;const c=e.steps.map(D=>{const m=this._makeStyleAst(D,t);let P=null!=m.offset?m.offset:function jP(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(ml(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(ml(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(m.styles),$=0;return null!=P&&(s++,$=m.offset=P),l=l||$<0||$>1,a=a||$<u,u=$,o.push($),m});l&&t.errors.push(function KR(){return new H(3012,fe)}()),a&&t.errors.push(function ZR(){return new H(3200,fe)}());const d=e.steps.length;let f=0;s>0&&s<d?t.errors.push(function YR(){return new H(3202,fe)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,g=t.currentAnimateTimings,y=g.duration;return c.forEach((D,m)=>{const P=f>0?m==h?1:f*m:o[m],$=P*y;t.currentTime=p+g.delay+$,g.duration=$,this._validateStyleAst(D,t),D.offset=P,r.styles.push(D)}),r}visitReference(e,t){return{type:8,animation:Qt(this,po(e.animation),t),options:Xr(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Xr(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Xr(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function FP(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(OP,"")),n=n.replace(/@\*/g,al).replace(/@\w+/g,t=>al+"-"+t.substr(1)).replace(/:animating/g,pf),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+s:s,Wt(t.collectedStyles,t.currentQuerySelector,{});const a=Qt(this,po(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Xr(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function JR(){return new H(3013,fe)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:ll(e.timings,t.errors,!0);return{type:12,animation:Qt(this,po(e.animation),t),timings:r,options:null}}}class LP{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,this.unsupportedCSSPropertiesFound=new Set}}function ml(n){return!Array.isArray(n)&&"object"==typeof n}function Xr(n){return n?(n=ts(n)).params&&(n.params=function kP(n){return n?ts(n):null}(n.params)):n={},n}function _f(n,e,t){return{duration:n,delay:e,easing:t}}function bf(n,e,t,r,i,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class yl{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const HP=new RegExp(":enter","g"),qP=new RegExp(":leave","g");function Df(n,e,t,r,i,s={},o={},a,l,u=[]){return(new zP).buildKeyframes(n,e,t,r,i,s,o,a,l,u)}class zP{buildKeyframes(e,t,r,i,s,o,a,l,u,c=[]){u=u||new yl;const d=new wf(e,t,u,i,s,c,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Qt(this,r,d);const f=d.timelines.filter(h=>h.containsAnimation());if(Object.keys(a).length){let h;for(let p=f.length-1;p>=0;p--){const g=f[p];if(g.element===t){h=g;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[bf(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?Yr(r.duration):null,a=null!=r.delay?Yr(r.delay):null;return 0!==o&&e.forEach(l=>{const u=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Qt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=vl);const o=Yr(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Qt(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Yr(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Qt(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return ll(t.params?ul(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(s):r.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?Yr(i.delay):0;s&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=vl);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;const d=t.createSubContext(e.options,u);s&&d.delayNextStep(s),u===t.element&&(l=d.currentTimeline),Qt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=t.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;Qt(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const vl={};class wf{constructor(e,t,r,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new _l(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Yr(r.duration)),null!=r.delay&&(i.delay=Yr(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ul(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,s=new wf(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=vl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},s=new GP(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(HP,"."+this._enterClassName)).replace(qP,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!s&&0==a.length&&o.push(function XR(n){return new H(3014,fe)}()),a}}class _l{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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 _l(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(t=>{this._backFill[t]=this._globalTimelineStyles[t]||fr,this._currentKeyframe[t]=fr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},o=function WP(n,e){const t={};let r;return n.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(s=>{t[s]=fr})):xr(i,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=ul(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:fr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}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 r=this._styleSummary[t],i=e._styleSummary[t];(!r||i.time>r.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=xr(a,!0);Object.keys(u).forEach(c=>{const d=u[c];"!"==d?e.add(c):d==fr&&t.add(c)}),r||(u.offset=l/this.duration),i.push(u)});const s=e.size?cl(e.values()):[],o=t.size?cl(t.values()):[];if(r){const a=i[0],l=ts(a);a.offset=0,l.offset=1,i=[a,l]}return bf(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class GP extends _l{constructor(e,t,r,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,l=xr(e[0],!1);l.offset=0,s.push(l);const u=xr(e[0],!1);u.offset=vb(a),s.push(u);const c=e.length-1;for(let d=1;d<=c;d++){let f=xr(e[d],!1);f.offset=vb((t+f.offset*r)/o),s.push(f)}r=o,t=0,i="",e=s}return bf(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function vb(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Ef{}class QP extends Ef{normalizePropertyName(e,t){return yf(e)}normalizeStyleValue(e,t,r,i){let s="";const o=r.toString().trim();if(KP[t]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function HR(n,e){return new H(3005,fe)}())}return o+s}}const KP=(()=>function ZP(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function _b(n,e,t,r,i,s,o,a,l,u,c,d,f){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const Cf={};class bb{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function YP(n,e,t,r,i){return n.some(s=>s(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){const i=this._stateStyles["*"],s=this._stateStyles[e],o=i?i.buildStyles(t,r):{};return s?s.buildStyles(t,r):o}build(e,t,r,i,s,o,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||Cf,p=this.buildStyles(r,a&&a.params||Cf,d),g=l&&l.params||Cf,y=this.buildStyles(i,g,d),D=new Set,m=new Map,P=new Map,$="void"===i,ae={params:Object.assign(Object.assign({},f),g)},Fe=c?[]:Df(e,t,this.ast.animation,s,o,p,y,ae,u,d);let Le=0;if(Fe.forEach(Xt=>{Le=Math.max(Xt.duration+Xt.delay,Le)}),d.length)return _b(t,this._triggerName,r,i,$,p,y,[],[],m,P,Le,d);Fe.forEach(Xt=>{const en=Xt.element,cs=Wt(m,en,{});Xt.preStyleProps.forEach(Nn=>cs[Nn]=!0);const mr=Wt(P,en,{});Xt.postStyleProps.forEach(Nn=>mr[Nn]=!0),en!==t&&D.add(en)});const Jt=cl(D.values());return _b(t,this._triggerName,r,i,$,p,y,Fe,Jt,m,P,Le)}}class JP{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},i=ts(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=ul(l,i,t));const u=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,u,l,t),r[u]=l})}}),r}}class eO{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(i=>{this.states[i.name]=new JP(i.style,i.options&&i.options.params||{},r)}),Db(this.states,"true","1"),Db(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new bb(e,i,this.states))}),this.fallbackTransition=function tO(n,e,t){return new bb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(o=>o.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function Db(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const nO=new yl;class rO{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],s=vf(this._driver,t,r,[]);if(r.length)throw function oP(n){return new H(3503,fe)}();this._animations[e]=s}_buildPlayer(e,t,r){const i=e.element,s=X_(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Df(this._driver,t,s,hf,sl,{},{},r,nO,i),o.forEach(c=>{const d=Wt(a,c.element,{});c.postStyleProps.forEach(f=>d[f]=null)})):(i.push(function aP(){return new H(3300,fe)}()),o=[]),i.length)throw function lP(n){return new H(3504,fe)}();a.forEach((c,d)=>{Object.keys(c).forEach(f=>{c[f]=this._driver.computeStyle(d,f,fr)})});const u=Mr(o.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,{},d)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function uP(n){return new H(3301,fe)}();return t}listen(e,t,r,i){const s=uf(t,"","","");return af(this._getPlayer(e),r,s,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const wb="ng-animate-queued",Sf="ng-animate-disabled",lO=[],Eb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pn="__ng_removed";class Tf{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function hO(n){return null!=n?n:null}(r?e.value:e),r){const s=ts(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const go="void",If=new Tf(go);class cO{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,gn(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.hasOwnProperty(t))throw function cP(n,e){return new H(3302,fe)}();if(null==r||0==r.length)throw function dP(n){return new H(3303,fe)}();if(!function pO(n){return"start"==n||"done"==n}(r))throw function fP(n,e){return new H(3400,fe)}();const s=Wt(this._elementListeners,e,[]),o={name:t,phase:r,callback:i};s.push(o);const a=Wt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(gn(e,ol),gn(e,ol+"-"+t),a[t]=If),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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 function hP(n){return new H(3401,fe)}();return t}trigger(e,t,r,i=!0){const s=this._getTrigger(t),o=new Af(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(gn(e,ol),gn(e,ol+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const u=new Tf(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[t]=u,l||(l=If),u.value!==go&&l.value===u.value){if(!function yO(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,u.params)){const g=[],y=s.matchStyles(l.value,l.params,g),D=s.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Jr(e,y),Wn(e,D)})}return}const f=Wt(this._engine.playersByElement,e,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let h=s.matchTransition(l.value,u.value,e,u.params),p=!1;if(!h){if(!i)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:u,player:o,isFallbackTransition:p}),p||(gn(e,wb),o.onStart(()=>{ns(e,wb)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(o);D>=0&&y.splice(D,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,al,!0);r.forEach(i=>{if(i[pn])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const u=this.trigger(e,l,go,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),r&&Mr(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,u=r[o]||If,c=new Tf(go),d=new Af(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const s=e[pn];(!s||s===Eb)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){gn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=uf(s,r.triggerName,r.fromState.value,r.toState.value);l._data=e,af(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class dO{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,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=(i,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new cO(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,i=this.namespacesByHostElement,s=r.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=i.get(a);if(l){const u=r.indexOf(l);r.splice(u+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(r[a].hostElement,t)){r.splice(a+1,0,e),o=!0;break}o||r.unshift(e)}else r.push(e);return i.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,r,i){if(bl(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!bl(t))return;const s=t[pn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),gn(e,Sf)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ns(e,Sf))}removeNode(e,t,r,i){if(bl(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),r){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,r,i,s){this.collectedLeaveElements.push(t),t[pn]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,r,i,s){return bl(t)?this._fetchNamespace(e).listen(t,r,i,s):()=>{}}_buildInstruction(e,t,r,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,al,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,pf,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Mr(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const r=e[pn];if(r&&r.setForRemoval){if(e[pn]=Eb,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(Sf))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)gn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Mr(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function pP(n){return new H(3402,fe)}()}_flushAnimations(e,t){const r=new yl,i=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(B=>{c.add(B);const Q=this.driver.query(B,".ng-animate-queued",!0);for(let J=0;J<Q.length;J++)c.add(Q[J])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=Tb(f,this.collectedEnterElements),p=new Map;let g=0;h.forEach((B,Q)=>{const J=hf+g++;p.set(Q,J),B.forEach(ye=>gn(ye,J))});const y=[],D=new Set,m=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){const Q=this.collectedLeaveElements[B],J=Q[pn];J&&J.setForRemoval&&(y.push(Q),D.add(Q),J.hasAnimation?this.driver.query(Q,".ng-star-inserted",!0).forEach(ye=>D.add(ye)):m.add(Q))}const P=new Map,$=Tb(f,Array.from(D));$.forEach((B,Q)=>{const J=sl+g++;P.set(Q,J),B.forEach(ye=>gn(ye,J))}),e.push(()=>{h.forEach((B,Q)=>{const J=p.get(Q);B.forEach(ye=>ns(ye,J))}),$.forEach((B,Q)=>{const J=P.get(Q);B.forEach(ye=>ns(ye,J))}),y.forEach(B=>{this.processLeaveNode(B)})});const ae=[],Fe=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(t).forEach(J=>{const ye=J.player,pt=J.element;if(ae.push(ye),this.collectedEnterElements.length){const Ot=pt[pn];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(J.triggerName)){const li=Ot.previousTriggersValues.get(J.triggerName),Nr=this.statesByElement.get(J.element);Nr&&Nr[J.triggerName]&&(Nr[J.triggerName].value=li)}return void ye.destroy()}}const Zn=!d||!this.driver.containsElement(d,pt),tn=P.get(pt),Or=p.get(pt),je=this._buildInstruction(J,r,Or,tn,Zn);if(je.errors&&je.errors.length)return void Fe.push(je);if(Zn)return ye.onStart(()=>Jr(pt,je.fromStyles)),ye.onDestroy(()=>Wn(pt,je.toStyles)),void i.push(ye);if(J.isFallbackTransition)return ye.onStart(()=>Jr(pt,je.fromStyles)),ye.onDestroy(()=>Wn(pt,je.toStyles)),void i.push(ye);const Dw=[];je.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||Dw.push(Ot)}),je.timelines=Dw,r.append(pt,je.timelines),o.push({instruction:je,player:ye,element:pt}),je.queriedElements.forEach(Ot=>Wt(a,Ot,[]).push(ye)),je.preStyleProps.forEach((Ot,li)=>{const Nr=Object.keys(Ot);if(Nr.length){let ui=l.get(li);ui||l.set(li,ui=new Set),Nr.forEach(fh=>ui.add(fh))}}),je.postStyleProps.forEach((Ot,li)=>{const Nr=Object.keys(Ot);let ui=u.get(li);ui||u.set(li,ui=new Set),Nr.forEach(fh=>ui.add(fh))})});if(Fe.length){const B=[];Fe.forEach(Q=>{B.push(function gP(n,e){return new H(3505,fe)}())}),ae.forEach(Q=>Q.destroy()),this.reportError(B)}const Le=new Map,Jt=new Map;o.forEach(B=>{const Q=B.element;r.has(Q)&&(Jt.set(Q,Q),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Le))}),i.forEach(B=>{const Q=B.element;this._getPreviousPlayers(Q,!1,B.namespaceId,B.triggerName,null).forEach(ye=>{Wt(Le,Q,[]).push(ye),ye.destroy()})});const Xt=y.filter(B=>Ab(B,l,u)),en=new Map;Sb(en,this.driver,m,u,fr).forEach(B=>{Ab(B,l,u)&&Xt.push(B)});const mr=new Map;h.forEach((B,Q)=>{Sb(mr,this.driver,new Set(B),l,"!")}),Xt.forEach(B=>{const Q=en.get(B),J=mr.get(B);en.set(B,Object.assign(Object.assign({},Q),J))});const Nn=[],ds=[],fs={};o.forEach(B=>{const{element:Q,player:J,instruction:ye}=B;if(r.has(Q)){if(c.has(Q))return J.onDestroy(()=>Wn(Q,ye.toStyles)),J.disabled=!0,J.overrideTotalTime(ye.totalTime),void i.push(J);let pt=fs;if(Jt.size>1){let tn=Q;const Or=[];for(;tn=tn.parentNode;){const je=Jt.get(tn);if(je){pt=je;break}Or.push(tn)}Or.forEach(je=>Jt.set(je,pt))}const Zn=this._buildAnimation(J.namespaceId,ye,Le,s,mr,en);if(J.setRealPlayer(Zn),pt===fs)Nn.push(J);else{const tn=this.playersByElement.get(pt);tn&&tn.length&&(J.parentPlayer=Mr(tn)),i.push(J)}}else Jr(Q,ye.fromStyles),J.onDestroy(()=>Wn(Q,ye.toStyles)),ds.push(J),c.has(Q)&&i.push(J)}),ds.forEach(B=>{const Q=s.get(B.element);if(Q&&Q.length){const J=Mr(Q);B.setRealPlayer(J)}}),i.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<y.length;B++){const Q=y[B],J=Q[pn];if(ns(Q,sl),J&&J.hasAnimation)continue;let ye=[];if(a.size){let Zn=a.get(Q);Zn&&Zn.length&&ye.push(...Zn);let tn=this.driver.query(Q,pf,!0);for(let Or=0;Or<tn.length;Or++){let je=a.get(tn[Or]);je&&je.length&&ye.push(...je)}}const pt=ye.filter(Zn=>!Zn.destroyed);pt.length?gO(this,Q,pt):this.processLeaveNode(Q)}return y.length=0,Nn.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const Q=this.players.indexOf(B);this.players.splice(Q,1)}),B.play()}),Nn}elementContainsData(e,t){let r=!1;const i=t[pn];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==go;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||o.push(u)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,c=u!==s,d=Wt(r,u,[]);this._getPreviousPlayers(u,c,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Jr(s,t.fromStyles)}_buildAnimation(e,t,r,i,s,o){const a=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,f=t.timelines.map(p=>{const g=p.element;c.add(g);const y=g[pn];if(y&&y.removedBeforeQueried)return new ho(p.duration,p.delay);const D=g!==l,m=function mO(n){const e=[];return Ib(n,e),e}((r.get(g)||lO).map(Le=>Le.getRealPlayer())).filter(Le=>!!Le.element&&Le.element===g),P=s.get(g),$=o.get(g),ae=X_(0,this._normalizer,0,p.keyframes,P,$),Fe=this._buildPlayer(p,ae,m);if(p.subTimeline&&i&&d.add(g),D){const Le=new Af(e,a,g);Le.setRealPlayer(Fe),u.push(Le)}return Fe});u.forEach(p=>{Wt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function fO(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>gn(p,ub));const h=Mr(f);return h.onDestroy(()=>{c.forEach(p=>ns(p,ub)),Wn(l,t.toStyles)}),d.forEach(p=>{Wt(i,p,[]).push(h)}),h}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new ho(e.duration,e.delay)}}class Af{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new ho,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(r=>af(e,t,void 0,r))}),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){Wt(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 bl(n){return n&&1===n.nodeType}function Cb(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Sb(n,e,t,r,i){const s=[];t.forEach(l=>s.push(Cb(l)));const o=[];r.forEach((l,u)=>{const c={};l.forEach(d=>{const f=c[d]=e.computeStyle(u,d,i);(!f||0==f.length)&&(u[pn]=uO,o.push(u))}),n.set(u,c)});let a=0;return t.forEach(l=>Cb(l,s[a++])),o}function Tb(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const i=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const u=a.parentNode;return l=t.has(u)?u:i.has(u)?1:o(u),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function gn(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function ns(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function gO(n,e,t){Mr(t).onDone(()=>n.processLeaveNode(e))}function Ib(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof Y_?Ib(r.players,e):e.push(r)}}function Ab(n,e,t){const r=t.get(n);if(!r)return!1;let i=e.get(n);return i?r.forEach(s=>i.add(s)):e.set(n,r),t.delete(n),!0}class Dl{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new dO(e,t,r),this._timelineEngine=new rO(e,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,r,i,s){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],c=vf(this._driver,s,l,[]);if(l.length)throw function iP(n,e){return new H(3404,fe)}();a=function XP(n,e,t){return new eO(n,e,t)}(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r,i){this._transitionEngine.removeNode(e,t,i||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[s,o]=eb(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=eb(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,r,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _O=(()=>{class n{constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wn(this._element,this._initialStyles),this._endStyles&&(Wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Jr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jr(this._element,this._endStyles),this._endStyles=null),Wn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Mf(n){let e=null;const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=t[r];bO(i)&&(e=e||{},e[i]=n[i])}return e}function bO(n){return"display"===n||"position"===n}class Mb{constructor(e,t,r,i){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.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,r){return e.animate(t,r)}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={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(r=>{"offset"!=r&&(e[r]=this._finished?t[r]:pb(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class DO{validateStyleProperty(e){return ib(e)}matchesElement(e,t){return!1}containsElement(e,t){return sb(e,t)}getParentElement(e){return df(e)}query(e,t,r){return ob(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}animate(e,t,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const u={},c=o.filter(f=>f instanceof Mb);(function SP(n,e){return 0===n||0===e})(r,i)&&c.forEach(f=>{let h=f.currentSnapshot;Object.keys(h).forEach(p=>u[p]=h[p])}),t=function TP(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let s=e[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var i=1;i<e.length;i++){let a=e[i];o.forEach(function(l){a[l]=pb(n,l)})}}return e}(e,t=t.map(f=>xr(f,!1)),u);const d=function vO(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=Mf(e[0]),e.length>1&&(r=Mf(e[e.length-1]))):e&&(t=Mf(e)),t||r?new _O(n,t,r):null}(e,t);return new Mb(e,t,l,d)}}let wO=(()=>{class n extends G_{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:vn.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Q_(t):t;return xb(this._renderer,null,r,"register",[i]),new EO(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(S(Xs),S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();class EO extends class FR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new CO(this._id,e,t||{},this._renderer)}}class CO{constructor(e,t,r,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return xb(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"),this._started=!1}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 xb(n,e,t,r,i){return n.setProperty(e,`@@${t}:${r}`,i)}const Rb="@.disabled";let SO=(()=>{class n{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,r){const s=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(s);return c||(c=new Pb("",s,this.engine),this._rendererCache.set(s,c)),c}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(o,a,t,c.name,c)};return r.data.animation.forEach(l),new TO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&t<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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 n.\u0275fac=function(t){return new(t||n)(S(Xs),S(Dl),S(ze))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();class Pb{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>t.destroyNode(i):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,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}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,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==Rb?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class TO extends Pb{constructor(e,t,r,i){super(t,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Rb?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function IO(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function AO(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}let MO=(()=>{class n extends Dl{constructor(t,r,i){super(t.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(S(st),S(ff),S(Ef))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const Ob=new re("AnimationModuleType"),Nb=[{provide:G_,useClass:wO},{provide:Ef,useFactory:function xO(){return new QP}},{provide:Dl,useClass:MO},{provide:Xs,useFactory:function RO(n,e,t){return new SO(n,e,t)},deps:[rl,Dl,ze]}],Fb=[{provide:ff,useFactory:()=>new DO},{provide:Ob,useValue:"BrowserAnimations"},...Nb],PO=[{provide:ff,useClass:ab},{provide:Ob,useValue:"NoopAnimations"},...Nb];let OO=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?PO:Fb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({providers:Fb,imports:[U_]}),n})();function q(...n){return dt(n,gs(n))}class Pn extends ut{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const{isArray:NO}=Array,{getPrototypeOf:FO,prototype:kO,keys:LO}=Object;const{isArray:VO}=Array;function kb(n){return ve(e=>function UO(n,e){return VO(e)?n(...e):n(e)}(n,e))}function $O(...n){const e=gs(n),t=function Uw(n){return v(Yl(n))?n.pop():void 0}(n),{args:r,keys:i}=function jO(n){if(1===n.length){const e=n[0];if(NO(e))return{args:e,keys:null};if(function BO(n){return n&&"object"==typeof n&&FO(n)===kO}(e)){const t=LO(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}(n);if(0===r.length)return dt([],e);const s=new Ue(function qO(n,e,t=Xe){return r=>{Lb(e,()=>{const{length:i}=n,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)Lb(e,()=>{const u=dt(n[l],e);let c=!1;u.subscribe(et(r,d=>{s[l]=d,c||(c=!0,a--),a||r.next(t(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,e,i?o=>function HO(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}(i,o):Xe));return t?s.pipe(kb(t)):s}function Lb(n,e,t){n?Jn(t,n,e):e()}function Kt(n,e){const t=v(n)?n:()=>n,r=i=>i.error(t());return new Ue(e?i=>e.schedule(r,0,i):r)}const El=V(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function xf(...n){return function zO(){return ps(1)}()(dt(n,gs(n)))}function jb(n){return new Ue(e=>{rn(n()).subscribe(e)})}function Bb(){return ct((n,e)=>{let t=null;n._refCount++;const r=et(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,s=t;t=null,i&&(!s||i===s)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}class GO extends Ue{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,mh(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,null==e||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new C;const t=this.getSubject();e.add(this.source.subscribe(et(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=C.EMPTY)}return e}refCount(){return Bb()(this)}}function ei(n,e){return ct((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(et(r,l=>{null==i||i.unsubscribe();let u=0;const c=s++;rn(n(l,c)).subscribe(i=et(r,d=>r.next(e?e(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function QO(n,e,t,r,i){return(s,o)=>{let a=t,l=e,u=0;s.subscribe(et(o,c=>{const d=u++;l=a?n(l,c,d):(a=!0,c),r&&o.next(l)},i&&(()=>{a&&o.next(l),o.complete()})))}}function Vb(n,e){return ct(QO(n,e,arguments.length>=2,!0))}function rs(n,e){return ct((t,r)=>{let i=0;t.subscribe(et(r,s=>n.call(e,s,i++)&&r.next(s)))})}function hr(n){return ct((e,t)=>{let s,r=null,i=!1;r=e.subscribe(et(t,void 0,void 0,o=>{s=rn(n(o,hr(n)(e))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function mo(n,e){return v(e)?_e(n,e,1):_e(n,1)}function Rf(n){return n<=0?()=>Xn:ct((e,t)=>{let r=[];e.subscribe(et(t,i=>{r.push(i),n<r.length&&r.shift()},()=>{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Ub(n=KO){return ct((e,t)=>{let r=!1;e.subscribe(et(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function KO(){return new El}function Hb(n){return ct((e,t)=>{let r=!1;e.subscribe(et(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}function Pt(n,e){const t=arguments.length>=2;return r=>r.pipe(n?rs((i,s)=>n(i,s,r)):Xe,Fo(1),t?Hb(e):Ub(()=>new El))}function mt(n,e,t){const r=v(n)||e||t?{next:n,error:e,complete:t}:n;return r?ct((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(et(s,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),s.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):Xe}class pr{constructor(e,t){this.id=e,this.url=t}}class Pf extends pr{constructor(e,t,r="imperative",i=null){super(e,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yo extends pr{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $b extends pr{constructor(e,t,r){super(e,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class JO extends pr{constructor(e,t,r){super(e,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XO extends pr{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eN extends pr{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tN extends pr{constructor(e,t,r,i,s){super(e,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class nN extends pr{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rN extends pr{constructor(e,t,r,i){super(e,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qb{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zb{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iN{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sN{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oN{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aN{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gb{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class lN{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 is(n){return new lN(n)}const Wb="ngNavigationCancelingError";function Of(n){const e=Error("NavigationCancelingError: "+n);return e[Wb]=!0,e}function cN(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.length<n.length))return null;const i={};for(let s=0;s<r.length;s++){const o=r[s],a=n[s];if(o.startsWith(":"))i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,r.length),posParams:i}}function Qn(n,e){const t=n?Object.keys(n):void 0,r=e?Object.keys(e):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!Qb(n[i],e[i]))return!1;return!0}function Qb(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;const t=[...n].sort(),r=[...e].sort();return t.every((i,s)=>r[s]===i)}return n===e}function Kb(n){return Array.prototype.concat.apply([],n)}function Zb(n){return n.length>0?n[n.length-1]:null}function yt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function Kn(n){return Lm(n)?n:Ca(n)?dt(Promise.resolve(n)):q(n)}const hN={exact:function Xb(n,e,t){if(!ni(n.segments,e.segments)||!Cl(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!Xb(n.children[r],e.children[r],t))return!1;return!0},subset:eD},Yb={exact:function pN(n,e){return Qn(n,e)},subset:function gN(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>Qb(n[t],e[t]))},ignored:()=>!0};function Jb(n,e,t){return hN[t.paths](n.root,e.root,t.matrixParams)&&Yb[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function eD(n,e,t){return tD(n,e,e.segments,t)}function tD(n,e,t,r){if(n.segments.length>t.length){const i=n.segments.slice(0,t.length);return!(!ni(i,t)||e.hasChildren()||!Cl(i,t,r))}if(n.segments.length===t.length){if(!ni(n.segments,t)||!Cl(n.segments,t,r))return!1;for(const i in e.children)if(!n.children[i]||!eD(n.children[i],e.children[i],r))return!1;return!0}{const i=t.slice(0,n.segments.length),s=t.slice(n.segments.length);return!!(ni(n.segments,i)&&Cl(n.segments,i,r)&&n.children[ce])&&tD(n.children[ce],e,s,r)}}function Cl(n,e,t){return e.every((r,i)=>Yb[t](n[i].parameters,r.parameters))}class ti{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=is(this.queryParams)),this._queryParamMap}toString(){return vN.serialize(this)}}class he{constructor(e,t){this.segments=e,this.children=t,this.parent=null,yt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sl(this)}}class vo{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=is(this.parameters)),this._parameterMap}toString(){return oD(this)}}function ni(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}class nD{}class rD{parse(e){const t=new IN(e);return new ti(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${_o(e.root,!0)}`,r=function DN(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(i=>`${Tl(t)}=${Tl(i)}`).join("&"):`${Tl(t)}=${Tl(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams);return`${t}${r}${"string"==typeof e.fragment?`#${function _N(n){return encodeURI(n)}(e.fragment)}`:""}`}}const vN=new rD;function Sl(n){return n.segments.map(e=>oD(e)).join("/")}function _o(n,e){if(!n.hasChildren())return Sl(n);if(e){const t=n.children[ce]?_o(n.children[ce],!1):"",r=[];return yt(n.children,(i,s)=>{s!==ce&&r.push(`${s}:${_o(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function yN(n,e){let t=[];return yt(n.children,(r,i)=>{i===ce&&(t=t.concat(e(r,i)))}),yt(n.children,(r,i)=>{i!==ce&&(t=t.concat(e(r,i)))}),t}(n,(r,i)=>i===ce?[_o(n.children[ce],!1)]:[`${i}:${_o(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ce]?`${Sl(n)}/${t[0]}`:`${Sl(n)}/(${t.join("//")})`}}function iD(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tl(n){return iD(n).replace(/%3B/gi,";")}function Nf(n){return iD(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Il(n){return decodeURIComponent(n)}function sD(n){return Il(n.replace(/\+/g,"%20"))}function oD(n){return`${Nf(n.path)}${function bN(n){return Object.keys(n).map(e=>`;${Nf(e)}=${Nf(n[e])}`).join("")}(n.parameters)}`}const wN=/^[^\/()?;=#]+/;function Al(n){const e=n.match(wN);return e?e[0]:""}const EN=/^[^=?&#]+/,SN=/^[^&#]+/;class IN{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new he([],{}):new he([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[ce]=new he(e,t)),r}parseSegment(){const e=Al(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new vo(Il(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Al(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=Al(this.remaining);i&&(r=i,this.capture(r))}e[Il(t)]=Il(r)}parseQueryParam(e){const t=function CN(n){const e=n.match(EN);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=function TN(n){const e=n.match(SN);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const i=sD(t),s=sD(r);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Al(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;r.indexOf(":")>-1?(s=r.substr(0,r.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ce);const o=this.parseChildren();t[s]=1===Object.keys(o).length?o[ce]:new he([],o),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 aD{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=Ff(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=Ff(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=kf(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return kf(e,this._root).map(t=>t.value)}}function Ff(n,e){if(n===e.value)return e;for(const t of e.children){const r=Ff(n,t);if(r)return r}return null}function kf(n,e){if(n===e.value)return[e];for(const t of e.children){const r=kf(n,t);if(r.length)return r.unshift(e),r}return[]}class gr{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function ss(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class lD extends aD{constructor(e,t){super(e),this.snapshot=t,Lf(this,e)}toString(){return this.snapshot.toString()}}function uD(n,e){const t=function AN(n,e){const o=new Ml([],{},{},"",{},ce,e,null,n.root,-1,{});return new dD("",new gr(o,[]))}(n,e),r=new Pn([new vo("",{})]),i=new Pn({}),s=new Pn({}),o=new Pn({}),a=new Pn(""),l=new ri(r,i,o,a,s,ce,e,t.root);return l.snapshot=t.root,new lD(new gr(l,[]),t)}class ri{constructor(e,t,r,i,s,o,a,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}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(ve(e=>is(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ve(e=>is(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const i=t[r],s=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function MN(n){return n.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:{}})}(t.slice(r))}class Ml{constructor(e,t,r,i,s,o,a,l,u,c,d){this.url=e,this.params=t,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}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=is(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=is(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,t){super(t),this.url=e,Lf(this,t)}toString(){return fD(this._root)}}function Lf(n,e){e.value._routerState=n,e.children.forEach(t=>Lf(n,t))}function fD(n){const e=n.children.length>0?` { ${n.children.map(fD).join(", ")} } `:"";return`${n.value}${e}`}function jf(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Qn(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Qn(e.params,t.params)||n.params.next(t.params),function dN(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;++t)if(!Qn(n[t],e[t]))return!1;return!0}(e.url,t.url)||n.url.next(t.url),Qn(e.data,t.data)||n.data.next(t.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function Bf(n,e){const t=Qn(n.params,e.params)&&function mN(n,e){return ni(n,e)&&n.every((t,r)=>Qn(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Bf(n.parent,e.parent))}function bo(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const i=function RN(n,e,t){return e.children.map(r=>{for(const i of t.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return bo(n,r,i);return bo(n,r)})}(n,e,t);return new gr(r,i)}{if(n.shouldAttach(e.value)){const s=n.retrieve(e.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>bo(n,a)),o}}const r=function PN(n){return new ri(new Pn(n.url),new Pn(n.params),new Pn(n.queryParams),new Pn(n.fragment),new Pn(n.data),n.outlet,n.component,n)}(e.value),i=e.children.map(s=>bo(n,s));return new gr(r,i)}}function xl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Do(n){return"object"==typeof n&&null!=n&&n.outlets}function Vf(n,e,t,r,i){let s={};if(r&&yt(r,(a,l)=>{s[l]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),n===e)return new ti(t,s,i);const o=hD(n,e,t);return new ti(o,s,i)}function hD(n,e,t){const r={};return yt(n.children,(i,s)=>{r[s]=i===e?t:hD(i,e,t)}),new he(n.segments,r)}class pD{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&xl(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Do);if(i&&i!==Zb(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Uf{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function gD(n,e,t){if(n||(n=new he([],{})),0===n.segments.length&&n.hasChildren())return Rl(n,e,t);const r=function jN(n,e,t){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(r>=t.length)return s;const o=n.segments[i],a=t[r];if(Do(a))break;const l=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!yD(l,u,o))return s;r+=2}else{if(!yD(l,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,e,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<n.segments.length){const s=new he(n.segments.slice(0,r.pathIndex),{});return s.children[ce]=new he(n.segments.slice(r.pathIndex),n.children),Rl(s,0,i)}return r.match&&0===i.length?new he(n.segments,{}):r.match&&!n.hasChildren()?Hf(n,e,t):r.match?Rl(n,0,i):Hf(n,e,t)}function Rl(n,e,t){if(0===t.length)return new he(n.segments,{});{const r=function LN(n){return Do(n[0])?n[0].outlets:{[ce]:n}}(t),i={};return yt(r,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=gD(n.children[o],e,s))}),yt(n.children,(s,o)=>{void 0===r[o]&&(i[o]=s)}),new he(n.segments,i)}}function Hf(n,e,t){const r=n.segments.slice(0,e);let i=0;for(;i<t.length;){const s=t[i];if(Do(s)){const l=BN(s.outlets);return new he(r,l)}if(0===i&&xl(t[0])){r.push(new vo(n.segments[e].path,mD(t[0]))),i++;continue}const o=Do(s)?s.outlets[ce]:`${s}`,a=i<t.length-1?t[i+1]:null;o&&a&&xl(a)?(r.push(new vo(o,mD(a))),i+=2):(r.push(new vo(o,{})),i++)}return new he(r,{})}function BN(n){const e={};return yt(n,(t,r)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=Hf(new he([],{}),0,t))}),e}function mD(n){const e={};return yt(n,(t,r)=>e[r]=`${t}`),e}function yD(n,e,t){return n==t.path&&Qn(e,t.parameters)}class UN{constructor(e,t,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),jf(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const i=ss(t);e.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),yt(i,(s,o)=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,r);else s&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=ss(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);if(r&&r.outlet){const o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),i=r&&e.value.component?r.children:t,s=ss(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,t,r){const i=ss(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new aN(s.value.snapshot))}),e.children.length&&this.forwardEvent(new sN(e.value.snapshot))}activateRoutes(e,t,r){const i=e.value,s=t?t.value:null;if(jf(i),i===s)if(i.component){const o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,r);else if(i.component){const o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),jf(a.route.value),this.activateChildRoutes(e,null,o.children)}else{const a=function HN(n){for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=l,o.outlet&&o.outlet.activateWith(i,l),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}class $f{constructor(e,t){this.routes=e,this.module=t}}function Rr(n){return"function"==typeof n}function ii(n){return n instanceof ti}const wo=Symbol("INITIAL_VALUE");function Eo(){return ei(n=>$O(n.map(e=>e.pipe(Fo(1),function WO(...n){const e=gs(n);return ct((t,r)=>{(e?xf(n,t,e):xf(n,t)).subscribe(r)})}(wo)))).pipe(Vb((e,t)=>{let r=!1;return t.reduce((i,s,o)=>i!==wo?i:(s===wo&&(r=!0),r||!1!==s&&o!==t.length-1&&!ii(s)?i:s),e)},wo),rs(e=>e!==wo),ve(e=>ii(e)?e:!0===e),Fo(1)))}class QN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Co,this.attachRef=null}}class Co{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=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 QN,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let qf=(()=>{class n{constructor(t,r,i,s,o){this.parentContexts=t,this.location=r,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new St,this.deactivateEvents=new St,this.attachEvents=new St,this.detachEvents=new St,this.name=s||ce,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(r=r||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new KN(t,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(k(Co),k(An),k(Ki),Ss("name"),k(Md))},n.\u0275dir=gt({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class KN{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===ri?this.route:e===Co?this.childContexts:this.parent.get(e,t)}}let vD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=kn({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,r){1&t&&j(0,"router-outlet")},directives:[qf],encapsulation:2}),n})();function _D(n,e=""){for(let t=0;t<n.length;t++){const r=n[t];ZN(r,YN(e,r))}}function ZN(n,e){n.children&&_D(n.children,e)}function YN(n,e){return e?n||e.path?n&&!e.path?`${n}/`:!n&&e.path?e.path:`${n}/${e.path}`:"":n}function zf(n){const e=n.children&&n.children.map(zf),t=e?Object.assign(Object.assign({},n),{children:e}):Object.assign({},n);return!t.component&&(e||t.loadChildren)&&t.outlet&&t.outlet!==ce&&(t.component=vD),t}function mn(n){return n.outlet||ce}function bD(n,e){const t=n.filter(r=>mn(r)===e);return t.push(...n.filter(r=>mn(r)!==e)),t}const DD={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pl(n,e,t){var r;if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},DD):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const s=(e.matcher||cN)(t,n,e);if(!s)return Object.assign({},DD);const o={};yt(s.posParams,(l,u)=>{o[u]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,remainingSegments:t.slice(s.consumed.length),parameters:a,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function Ol(n,e,t,r,i="corrected"){if(t.length>0&&function eF(n,e,t){return t.some(r=>Nl(n,e,r)&&mn(r)!==ce)}(n,t,r)){const o=new he(e,function XN(n,e,t,r){const i={};i[ce]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const s of t)if(""===s.path&&mn(s)!==ce){const o=new he([],{});o._sourceSegment=n,o._segmentIndexShift=e.length,i[mn(s)]=o}return i}(n,e,r,new he(t,n.children)));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function tF(n,e,t){return t.some(r=>Nl(n,e,r))}(n,t,r)){const o=new he(n.segments,function JN(n,e,t,r,i,s){const o={};for(const a of r)if(Nl(n,t,a)&&!i[mn(a)]){const l=new he([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:e.length,o[mn(a)]=l}return Object.assign(Object.assign({},i),o)}(n,e,t,r,n.children,i));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}const s=new he(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:t}}function Nl(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function wD(n,e,t,r){return!!(mn(n)===r||r!==ce&&Nl(e,t,n))&&("**"===n.path||Pl(e,n,t).matched)}function ED(n,e,t){return 0===e.length&&!n.children[t]}class Fl{constructor(e){this.segmentGroup=e||null}}class CD{constructor(e){this.urlTree=e}}function So(n){return Kt(new Fl(n))}function SD(n){return Kt(new CD(n))}class sF{constructor(e,t,r,i,s){this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(lr)}apply(){const e=Ol(this.urlTree.root,[],[],this.config).segmentGroup,t=new he(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,ce).pipe(ve(s=>this.createUrlTree(Gf(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(hr(s=>{if(s instanceof CD)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Fl?this.noMatchError(s):s}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ce).pipe(ve(i=>this.createUrlTree(Gf(i),e.queryParams,e.fragment))).pipe(hr(i=>{throw i instanceof Fl?this.noMatchError(i):i}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,r){const i=e.segments.length>0?new he([],{[ce]:e}):e;return new ti(i,t,r)}expandSegmentGroup(e,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(ve(s=>new he([],s))):this.expandSegment(e,r,t,r.segments,i,!0)}expandChildren(e,t,r){const i=[];for(const s of Object.keys(r.children))"primary"===s?i.unshift(s):i.push(s);return dt(i).pipe(mo(s=>{const o=r.children[s],a=bD(t,s);return this.expandSegmentGroup(e,a,o,s).pipe(ve(l=>({segment:l,outlet:s})))}),Vb((s,o)=>(s[o.outlet]=o.segment,s),{}),function ZO(n,e){const t=arguments.length>=2;return r=>r.pipe(n?rs((i,s)=>n(i,s,r)):Xe,Rf(1),t?Hb(e):Ub(()=>new El))}())}expandSegment(e,t,r,i,s,o){return dt(r).pipe(mo(a=>this.expandSegmentAgainstRoute(e,t,r,a,i,s,o).pipe(hr(u=>{if(u instanceof Fl)return q(null);throw u}))),Pt(a=>!!a),hr((a,l)=>{if(a instanceof El||"EmptyError"===a.name)return ED(t,i,s)?q(new he([],{})):So(t);throw a}))}expandSegmentAgainstRoute(e,t,r,i,s,o,a){return wD(i,t,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o):So(t):So(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,i){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?SD(s):this.lineralizeSegments(r,s).pipe(_e(o=>{const a=new he(o,{});return this.expandSegment(e,a,t,o,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,i,s,o){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Pl(t,i,s);if(!a)return So(t);const d=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?SD(d):this.lineralizeSegments(i,d).pipe(_e(f=>this.expandSegment(e,t,r,f.concat(u),o,!1)))}matchSegmentAgainstRoute(e,t,r,i,s){if("**"===r.path)return r.loadChildren?(r._loadedConfig?q(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(ve(d=>(r._loadedConfig=d,new he(i,{})))):q(new he(i,{}));const{matched:o,consumedSegments:a,remainingSegments:l}=Pl(t,r,i);return o?this.getChildConfig(e,r,i).pipe(_e(c=>{const d=c.module,f=c.routes,{segmentGroup:h,slicedSegments:p}=Ol(t,a,l,f),g=new he(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(ve(P=>new he(a,P)));if(0===f.length&&0===p.length)return q(new he(a,{}));const y=mn(r)===s;return this.expandSegment(d,g,f,p,y?ce:s,!0).pipe(ve(m=>new he(a.concat(m.segments),m.children)))})):So(t)}getChildConfig(e,t,r){return t.children?q(new $f(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?q(t._loadedConfig):this.runCanLoadGuards(e.injector,t,r).pipe(_e(i=>i?this.configLoader.load(e.injector,t).pipe(ve(s=>(t._loadedConfig=s,s))):function rF(n){return Kt(Of(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(t))):q(new $f([],e))}runCanLoadGuards(e,t,r){const i=t.canLoad;return i&&0!==i.length?q(i.map(o=>{const a=e.get(o);let l;if(function qN(n){return n&&Rr(n.canLoad)}(a))l=a.canLoad(t,r);else{if(!Rr(a))throw new Error("Invalid CanLoad guard");l=a(t,r)}return Kn(l)})).pipe(Eo(),mt(o=>{if(!ii(o))return;const a=Of(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ve(o=>!0===o)):q(!0)}lineralizeSegments(e,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return q(r);if(i.numberOfChildren>1||!i.children[ce])return Kt(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e.redirectTo}'`));i=i.children[ce]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreatreUrlTree(e,t,r,i){const s=this.createSegmentGroup(e,t.root,r,i);return new ti(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return yt(e,(i,s)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[s]=t[a]}else r[s]=i}),r}createSegmentGroup(e,t,r,i){const s=this.createSegments(e,t.segments,r,i);let o={};return yt(t.children,(a,l)=>{o[l]=this.createSegmentGroup(e,a,r,i)}),new he(s,o)}createSegments(e,t,r,i){return t.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,r))}findPosParam(e,t,r){const i=r[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let r=0;for(const i of t){if(i.path===e.path)return t.splice(r),i;r++}return e}}function Gf(n){const e={};for(const r of Object.keys(n.children)){const s=Gf(n.children[r]);(s.segments.length>0||s.hasChildren())&&(e[r]=s)}return function oF(n){if(1===n.numberOfChildren&&n.children[ce]){const e=n.children[ce];return new he(n.segments.concat(e.segments),e.children)}return n}(new he(n.segments,e))}class TD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class kl{constructor(e,t){this.component=e,this.route=t}}function lF(n,e,t){const r=n._root;return To(r,e?e._root:null,t,[r.value])}function Ll(n,e,t){const r=function cF(n){if(!n)return null;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:t).get(n)}function To(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=ss(e);return n.children.forEach(o=>{(function dF(n,e,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function fF(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!ni(n.url,e.url);case"pathParamsOrQueryParamsChange":return!ni(n.url,e.url)||!Qn(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bf(n,e)||!Qn(n.queryParams,e.queryParams);default:return!Bf(n,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new TD(r)):(s.data=o.data,s._resolvedData=o._resolvedData),To(n,e,s.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new kl(a.outlet.component,o))}else o&&Io(e,a,i),i.canActivateChecks.push(new TD(r)),To(n,null,s.component?a?a.children:null:t,r,i)})(o,s[o.value.outlet],t,r.concat([o.value]),i),delete s[o.value.outlet]}),yt(s,(o,a)=>Io(o,t.getContext(a),i)),i}function Io(n,e,t){const r=ss(n),i=n.value;yt(r,(s,o)=>{Io(s,i.component?e?e.children.getContext(o):null:e,t)}),t.canDeactivateChecks.push(new kl(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class DF{}function ID(n){return new Ue(e=>e.error(n))}class EF{constructor(e,t,r,i,s,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=Ol(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ce);if(null===t)return null;const r=new Ml([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new gr(r,t),s=new dD(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,r=cD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)}processChildren(e,t){const r=[];for(const s of Object.keys(t.children)){const o=t.children[s],a=bD(e,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;r.push(...l)}const i=AD(r);return function CF(n){n.sort((e,t)=>e.value.outlet===ce?-1:t.value.outlet===ce?1:e.value.outlet.localeCompare(t.value.outlet))}(i),i}processSegment(e,t,r,i){for(const s of e){const o=this.processSegmentAgainstRoute(s,t,r,i);if(null!==o)return o}return ED(t,r,i)?[]:null}processSegmentAgainstRoute(e,t,r,i){if(e.redirectTo||!wD(e,t,r,i))return null;let s,o=[],a=[];if("**"===e.path){const h=r.length>0?Zb(r).parameters:{};s=new Ml(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,RD(e),mn(e),e.component,e,MD(t),xD(t)+r.length,PD(e))}else{const h=Pl(t,e,r);if(!h.matched)return null;o=h.consumedSegments,a=h.remainingSegments,s=new Ml(o,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,RD(e),mn(e),e.component,e,MD(t),xD(t)+o.length,PD(e))}const l=function SF(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:c}=Ol(t,o,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new gr(s,h)]}if(0===l.length&&0===c.length)return[new gr(s,[])];const d=mn(e)===i,f=this.processSegment(l,u,c,d?ce:i);return null===f?null:[new gr(s,f)]}}function TF(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function AD(n){const e=[],t=new Set;for(const r of n){if(!TF(r)){e.push(r);continue}const i=e.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):e.push(r)}for(const r of t){const i=AD(r.children);e.push(new gr(r.value,i))}return e.filter(r=>!t.has(r))}function MD(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xD(n){let e=n,t=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift?e._segmentIndexShift:0;return t-1}function RD(n){return n.data||{}}function PD(n){return n.resolve||{}}function OD(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Wf(n){return ei(e=>{const t=n(e);return t?dt(t).pipe(ve(()=>e)):q(e)})}class NF extends class OF{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Qf=new re("ROUTES");class ND{constructor(e,t,r,i){this.injector=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const i=this.loadModuleFactory(t.loadChildren).pipe(ve(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=s.create(e);return new $f(Kb(o.injector.get(Qf,void 0,ee.Self|ee.Optional)).map(zf),o)}),hr(s=>{throw t._loader$=void 0,s}));return t._loader$=new GO(i,()=>new ut).pipe(Bb()),t._loader$}loadModuleFactory(e){return Kn(e()).pipe(_e(t=>t instanceof sv?q(t):dt(this.compiler.compileModuleAsync(t))))}}class kF{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function LF(n){throw n}function jF(n,e,t){return e.parse("/")}function FD(n,e){return q(null)}const BF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},VF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zt=(()=>{class n{constructor(t,r,i,s,o,a,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=i,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ut,this.errorHandler=LF,this.malformedUriErrorHandler=jF,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FD,afterPreactivation:FD},this.urlHandlingStrategy=new kF,this.routeReuseStrategy=new NF,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(lr),this.console=o.get(Uv);const d=o.get(ze);this.isNgZoneEnabled=d instanceof ze&&ze.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function fN(){return new ti(new he([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ND(o,a,f=>this.triggerEvent(new qb(f)),f=>this.triggerEvent(new zb(f))),this.routerState=uD(this.currentUrlTree,this.rootComponentType),this.transitions=new Pn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe(rs(i=>0!==i.id),ve(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ei(i=>{let s=!1,o=!1;return q(i).pipe(mt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ei(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return kD(a.source)&&(this.browserUrlTree=a.extractedUrl),q(a).pipe(ei(d=>{const f=this.transitions.getValue();return r.next(new Pf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Xn:Promise.resolve(d)}),function aF(n,e,t,r){return ei(i=>function iF(n,e,t,r,i){return new sF(n,e,t,r,i).apply()}(n,e,t,i.extractedUrl,r).pipe(ve(s=>Object.assign(Object.assign({},i),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),mt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function IF(n,e,t,r,i){return _e(s=>function wF(n,e,t,r,i="emptyOnly",s="legacy"){try{const o=new EF(n,e,t,r,i,s).recognize();return null===o?ID(new DF):q(o)}catch(o){return ID(o)}}(n,e,s.urlAfterRedirects,t(s.urlAfterRedirects),r,i).pipe(ve(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),mt(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new XO(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:y}=a,D=new Pf(f,this.serializeUrl(h),p,g);r.next(D);const m=uD(h,this.rootComponentType).snapshot;return q(Object.assign(Object.assign({},a),{targetSnapshot:m,urlAfterRedirects:h,extras:Object.assign(Object.assign({},y),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Xn}),Wf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),mt(a=>{const l=new eN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ve(a=>Object.assign(Object.assign({},a),{guards:lF(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function hF(n,e){return _e(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return 0===o.length&&0===s.length?q(Object.assign(Object.assign({},t),{guardsResult:!0})):function pF(n,e,t,r){return dt(n).pipe(_e(i=>function bF(n,e,t,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?q(s.map(a=>{const l=Ll(a,e,i);let u;if(function WN(n){return n&&Rr(n.canDeactivate)}(l))u=Kn(l.canDeactivate(n,e,t,r));else{if(!Rr(l))throw new Error("Invalid CanDeactivate guard");u=Kn(l(n,e,t,r))}return u.pipe(Pt())})).pipe(Eo()):q(!0)}(i.component,i.route,t,e,r)),Pt(i=>!0!==i,!0))}(o,r,i,n).pipe(_e(a=>a&&function $N(n){return"boolean"==typeof n}(a)?function gF(n,e,t,r){return dt(e).pipe(mo(i=>xf(function yF(n,e){return null!==n&&e&&e(new iN(n)),q(!0)}(i.route.parent,r),function mF(n,e){return null!==n&&e&&e(new oN(n)),q(!0)}(i.route,r),function _F(n,e,t){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>function uF(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(o)).filter(o=>null!==o).map(o=>jb(()=>q(o.guards.map(l=>{const u=Ll(l,o.node,t);let c;if(function GN(n){return n&&Rr(n.canActivateChild)}(u))c=Kn(u.canActivateChild(r,n));else{if(!Rr(u))throw new Error("Invalid CanActivateChild guard");c=Kn(u(r,n))}return c.pipe(Pt())})).pipe(Eo())));return q(s).pipe(Eo())}(n,i.path,t),function vF(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return q(!0);const i=r.map(s=>jb(()=>{const o=Ll(s,e,t);let a;if(function zN(n){return n&&Rr(n.canActivate)}(o))a=Kn(o.canActivate(e,n));else{if(!Rr(o))throw new Error("Invalid CanActivate guard");a=Kn(o(e,n))}return a.pipe(Pt())}));return q(i).pipe(Eo())}(n,i.route,t))),Pt(i=>!0!==i,!0))}(r,s,n,e):q(a)),ve(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),mt(a=>{if(ii(a.guardsResult)){const u=Of(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new tN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),rs(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Wf(a=>{if(a.guards.canActivateChecks.length)return q(a).pipe(mt(l=>{const u=new nN(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),ei(l=>{let u=!1;return q(l).pipe(function AF(n,e){return _e(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return q(t);let s=0;return dt(i).pipe(mo(o=>function MF(n,e,t,r){return function xF(n,e,t,r){const i=OD(n);if(0===i.length)return q({});const s={};return dt(i).pipe(_e(o=>function RF(n,e,t,r){const i=Ll(n,e,r);return Kn(i.resolve?i.resolve(e,t):i(e,t))}(n[o],e,t,r).pipe(mt(a=>{s[o]=a}))),Rf(1),_e(()=>OD(s).length===i.length?q(s):Xn))}(n._resolve,n,e,r).pipe(ve(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),cD(n,t).resolve),null)))}(o.route,r,n,e)),mt(()=>s++),Rf(1),_e(o=>s===i.length?q(t):Xn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),mt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),mt(l=>{const u=new rN(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Wf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ve(a=>{const l=function xN(n,e,t){const r=bo(n,e._root,t?t._root:void 0);return new lD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),mt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>ve(r=>(new UN(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),mt({next(){s=!0},complete(){s=!0}}),function YO(n){return ct((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}(()=>{var a;s||o||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),hr(a=>{if(o=!0,function uN(n){return n&&n[Wb]}(a)){const l=ii(a.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const u=new $b(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kD(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new JO(i.id,this.serializeUrl(i.extractedUrl),a);r.next(l);try{i.resolve(this.errorHandler(a))}catch(u){i.reject(u)}}return Xn}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const s={replaceUrl:!0},o=(null===(i=t.state)||void 0===i?void 0:i.navigationId)?t.state:null;if(o){const l=Object.assign({},o);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(t.url);this.scheduleNavigation(a,r,o,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){_D(t),this.config=t.map(zf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=r,u=i||this.routerState.root,c=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function ON(n,e,t,r,i){if(0===t.length)return Vf(e.root,e.root,e.root,r,i);const s=function NN(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new pD(!0,0,n);let e=0,t=!1;const r=n.reduce((i,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return yt(s.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return"string"!=typeof s?[...i,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,s]},[]);return new pD(t,e,r)}(t);if(s.toRoot())return Vf(e.root,e.root,new he([],{}),r,i);const o=function FN(n,e,t){if(n.isAbsolute)return new Uf(e.root,!0,0);if(-1===t.snapshot._lastPathIndex){const s=t.snapshot._urlSegment;return new Uf(s,s===e.root,0)}const r=xl(n.commands[0])?0:1;return function kN(n,e,t){let r=n,i=e,s=t;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Uf(r,!1,i-s)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(s,e,n),a=o.processChildren?Rl(o.segmentGroup,o.index,s.commands):gD(o.segmentGroup,o.index,s.commands);return Vf(e.root,o.segmentGroup,a,r,i)}(u,this.currentUrlTree,t,d,null!=c?c:null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=ii(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function UF(n){for(let e=0;e<n.length;e++){const t=n[e];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let r;try{r=this.urlSerializer.parse(t)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return r}isActive(t,r){let i;if(i=!0===r?Object.assign({},BF):!1===r?Object.assign({},VF):r,ii(t))return Jb(this.currentUrlTree,t,i);const s=this.parseUrl(t);return Jb(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.keys(t).reduce((r,i)=>{const s=t[i];return null!=s&&(r[i]=s),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new yo(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,i,s,o){var a,l;if(this.disposed)return Promise.resolve(!1);let u,c,d;o?(u=o.resolve,c=o.reject,d=o.promise):d=new Promise((p,g)=>{u=p,c=g});const f=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),h=i&&i.\u0275routerPageId?i.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):h=0,this.setTransition({id:f,targetPageId:h,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:u,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(p=>Promise.reject(p))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),s=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",s):this.location.go(i,"",s)}restoreHistory(t,r=!1){var i,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,r){const i=new $b(t.id,this.serializeUrl(t.extractedUrl),r);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){$c()},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();function kD(n){return"imperative"!==n}let Ao=(()=>{class n{constructor(t,r,i,s,o){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.commands=null,this.onChanges=new ut,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){if(null!=this.tabIndexAttribute)return;const r=this.renderer,i=this.el.nativeElement;null!==t?r.setAttribute(i,"tabindex",t):r.removeAttribute(i,"tabindex")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const t={skipLocationChange:os(this.skipLocationChange),replaceUrl:os(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:os(this.preserveFragment)})}}return n.\u0275fac=function(t){return new(t||n)(k(Zt),k(ri),Ss("tabindex"),k(Pa),k(ar))},n.\u0275dir=gt({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,r){1&t&&Ct("click",function(){return r.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Ur]}),n})();function os(n){return""===n||!!n}class LD{}class jD{preload(e,t){return q(null)}}let BD=(()=>{class n{constructor(t,r,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new ND(i,r,l=>t.triggerEvent(new qb(l)),l=>t.triggerEvent(new zb(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(rs(t=>t instanceof yo),mo(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(lr);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const s of r)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(t,s)):s.children&&i.push(this.processRoutes(t,s.children));return dt(i).pipe(ps(),ve(s=>{}))}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?q(r._loadedConfig):this.loader.load(t.injector,r)).pipe(_e(s=>(r._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(t){return new(t||n)(S(Zt),S(Hv),S(wt),S(LD))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),Zf=(()=>{class n{constructor(t,r,i={}){this.router=t,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Pf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof yo&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Gb&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.router.triggerEvent(new Gb(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){$c()},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();const si=new re("ROUTER_CONFIGURATION"),VD=new re("ROUTER_FORROOT_GUARD"),zF=[kd,{provide:nD,useClass:rD},{provide:Zt,useFactory:function ZF(n,e,t,r,i,s,o={},a,l){const u=new Zt(null,n,e,t,r,i,Kb(s));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),function YF(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(e.canceledNavigationResolution=n.canceledNavigationResolution)}(o,u),o.enableTracing&&u.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),u},deps:[nD,Co,kd,wt,Hv,Qf,si,[class FF{},new Er],[class PF{},new Er]]},Co,{provide:ri,useFactory:function JF(n){return n.routerState.root},deps:[Zt]},BD,jD,class qF{preload(e,t){return t().pipe(hr(()=>q(null)))}},{provide:si,useValue:{enableTracing:!1}}];function GF(){return new Wv("Router",Zt)}let UD=(()=>{class n{constructor(t,r){}static forRoot(t,r){return{ngModule:n,providers:[zF,HD(t),{provide:VD,useFactory:KF,deps:[[Zt,new Er,new Ps]]},{provide:si,useValue:r||{}},{provide:Xi,useFactory:QF,deps:[Kr,[new aa(Fd),new Er],si]},{provide:Zf,useFactory:WF,deps:[Zt,Yx,si]},{provide:LD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:jD},{provide:Wv,multi:!0,useFactory:GF},[Yf,{provide:bd,multi:!0,useFactory:XF,deps:[Yf]},{provide:$D,useFactory:ek,deps:[Yf]},{provide:Vv,multi:!0,useExisting:$D}]]}}static forChild(t){return{ngModule:n,providers:[HD(t)]}}}return n.\u0275fac=function(t){return new(t||n)(S(VD,8),S(Zt,8))},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({}),n})();function WF(n,e,t){return t.scrollOffset&&e.setOffset(t.scrollOffset),new Zf(n,e,t)}function QF(n,e,t={}){return t.useHash?new P1(n,e):new h_(n,e)}function KF(n){return"guarded"}function HD(n){return[{provide:uC,multi:!0,useValue:n},{provide:Qf,multi:!0,useValue:n}]}let Yf=(()=>{class n{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ut}appInitializer(){return this.injector.get(M1,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),s=this.injector.get(Zt),o=this.injector.get(si);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?q(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),s.initialNavigation()):r(!0),i})}bootstrapListener(t){const r=this.injector.get(si),i=this.injector.get(BD),s=this.injector.get(Zf),o=this.injector.get(Zt),a=this.injector.get(so);t===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),i.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(t){return new(t||n)(S(wt))},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})();function XF(n){return n.appInitializer.bind(n)}function ek(n){return n.bootstrapListener.bind(n)}const $D=new re("Router Initializer"),qD=["toast-component",""];function nk(n,e){if(1&n){const t=Gr();z(0,"button",5),Ct("click",function(){return wn(t),Ie().remove()}),z(1,"span",6),Ae(2,"\xd7"),W()()}}function rk(n,e){if(1&n&&(Gs(0),Ae(1),Ws()),2&n){const t=Ie(2);ue(1),it("[",t.duplicatesCount+1,"]")}}function ik(n,e){if(1&n&&(z(0,"div"),Ae(1),Ze(2,rk,2,1,"ng-container",4),W()),2&n){const t=Ie();or(t.options.titleClass),zr("aria-label",t.title),ue(1),it(" ",t.title," "),ue(1),Ne("ngIf",t.duplicatesCount)}}function sk(n,e){if(1&n&&j(0,"div",7),2&n){const t=Ie();or(t.options.messageClass),Ne("innerHTML",t.message,Gu)}}function ok(n,e){if(1&n&&(z(0,"div",8),Ae(1),W()),2&n){const t=Ie();or(t.options.messageClass),zr("aria-label",t.message),ue(1),it(" ",t.message," ")}}function ak(n,e){if(1&n&&(z(0,"div"),j(1,"div",9),W()),2&n){const t=Ie();ue(1),Gi("width",t.width+"%")}}function lk(n,e){if(1&n){const t=Gr();z(0,"button",5),Ct("click",function(){return wn(t),Ie().remove()}),z(1,"span",6),Ae(2,"\xd7"),W()()}}function uk(n,e){if(1&n&&(Gs(0),Ae(1),Ws()),2&n){const t=Ie(2);ue(1),it("[",t.duplicatesCount+1,"]")}}function ck(n,e){if(1&n&&(z(0,"div"),Ae(1),Ze(2,uk,2,1,"ng-container",4),W()),2&n){const t=Ie();or(t.options.titleClass),zr("aria-label",t.title),ue(1),it(" ",t.title," "),ue(1),Ne("ngIf",t.duplicatesCount)}}function dk(n,e){if(1&n&&j(0,"div",7),2&n){const t=Ie();or(t.options.messageClass),Ne("innerHTML",t.message,Gu)}}function fk(n,e){if(1&n&&(z(0,"div",8),Ae(1),W()),2&n){const t=Ie();or(t.options.messageClass),zr("aria-label",t.message),ue(1),it(" ",t.message," ")}}function hk(n,e){if(1&n&&(z(0,"div"),j(1,"div",9),W()),2&n){const t=Ie();ue(1),Gi("width",t.width+"%")}}class pk{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 jl{constructor(e,t,r,i,s,o){this.toastId=e,this.config=t,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this._onTap=new ut,this._onAction=new ut,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 zD={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",payload:null},GD=new re("ToastConfig");class mk{constructor(e){this._overlayRef=e,this.duplicatesCount=0,this._afterClosed=new ut,this._activate=new ut,this._manualClose=new ut,this._resetTimeout=new ut,this._countDuplicate=new ut}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 yk{constructor(e,t){this._toastPackage=e,this._parentInjector=t}get(e,t,r){return e===jl?this._toastPackage:this._parentInjector.get(e,t,r)}}class vk extends class gk{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,r){super(),this._hostDomElement=e,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(e,t){const r=this._componentFactoryResolver.resolveComponentFactory(e.component);let i;return i=r.create(e.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}class _k{constructor(e){this._portalHost=e}attach(e,t=!0){return this._portalHost.attach(e,t)}detach(){return this._portalHost.detach()}}let bk=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return n.\u0275fac=function(t){return new(t||n)(S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dk=(()=>{class n{constructor(t,r,i,s){this._overlayContainer=t,this._componentFactoryResolver=r,this._appRef=i,this._document=s,this._paneElements=new Map}create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new vk(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new _k(this._createPortalHost(t))}}return n.\u0275fac=function(t){return new(t||n)(S(bk),S(Ki),S(so),S(st))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mo=(()=>{class n{constructor(t,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,r,i={},s=""){return this._preBuildNotification(s,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",r="",i,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts){const l=o&&a.title===t;if((!o||l)&&a.message===r)return a.toastRef.onDuplicate(i,s),a}return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,i,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,s)):this._buildNotification(t,r,i,s)}_buildNotification(t,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let u=r;r&&s.enableHtml&&(u=this.sanitizer.sanitize(Te.HTML,r));const c=new mk(l),d=new jl(this.index,s,u,i,t,c),f=new yk(d,this._injector),h=new pk(s.toastComponent,f),p=l.attach(h,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const g={toastId:this.index,title:i||"",message:r||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:p};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{g.toastRef.activate()})),this.toasts.push(g),g}}return n.\u0275fac=function(t){return new(t||n)(S(GD),S(Dk),S(wt),S(q_),S(ze))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wk=(()=>{class n{constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return n.\u0275fac=function(t){return new(t||n)(k(Mo),k(jl),k(ze))},n.\u0275cmp=kn({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,r){1&t&&Ct("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&t&&(Qc("@flyInOut",r.state),or(r.toastClasses),Gi("display",r.displayStyle))},attrs:qD,decls:5,vars:5,consts:[["type","button","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"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,r){1&t&&(Ze(0,nk,3,0,"button",0),Ze(1,ik,3,5,"div",1),Ze(2,sk,1,3,"div",2),Ze(3,ok,2,4,"div",3),Ze(4,ak,2,2,"div",4)),2&t&&(Ne("ngIf",r.options.closeButton),ue(1),Ne("ngIf",r.title),ue(1),Ne("ngIf",r.message&&r.options.enableHtml),ue(1),Ne("ngIf",r.message&&!r.options.enableHtml),ue(1),Ne("ngIf",r.options.progressBar))},directives:[es],encapsulation:2,data:{animation:[kR("flyInOut",[rf("inactive",fo({opacity:0})),rf("active",fo({opacity:1})),rf("removed",fo({opacity:0})),K_("inactive => active",W_("{{ easeTime }}ms {{ easing }}")),K_("active => removed",W_("{{ easeTime }}ms {{ easing }}"))])]}}),n})();const Ek=Object.assign(Object.assign({},zD),{toastComponent:wk});let Ck=(()=>{class n{static forRoot(t={}){return{ngModule:n,providers:[{provide:GD,useValue:{default:Ek,config:t}}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({imports:[[Zd]]}),n})(),Sk=(()=>{class n{constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.appRef=i,this.width=-1,this.toastClasses="",this.state="inactive",this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return n.\u0275fac=function(t){return new(t||n)(k(Mo),k(jl),k(so))},n.\u0275cmp=kn({type:n,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,r){1&t&&Ct("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&t&&(or(r.toastClasses),Gi("display",r.displayStyle))},attrs:qD,decls:5,vars:5,consts:[["type","button","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"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,r){1&t&&(Ze(0,lk,3,0,"button",0),Ze(1,ck,3,5,"div",1),Ze(2,dk,1,3,"div",2),Ze(3,fk,2,4,"div",3),Ze(4,hk,2,2,"div",4)),2&t&&(Ne("ngIf",r.options.closeButton),ue(1),Ne("ngIf",r.title),ue(1),Ne("ngIf",r.message&&r.options.enableHtml),ue(1),Ne("ngIf",r.message&&!r.options.enableHtml),ue(1),Ne("ngIf",r.options.progressBar))},directives:[es],encapsulation:2}),n})();function WD(n,e,t,r,i,s,o){try{var a=n[s](o),l=a.value}catch(u){return void t(u)}a.done?e(l):Promise.resolve(l).then(r,i)}function as(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var s=n.apply(e,t);function o(l){WD(s,r,i,o,a,"next",l)}function a(l){WD(s,r,i,o,a,"throw",l)}o(void 0)})}}function Bl(n){return"function"==typeof n}Object.assign(Object.assign({},zD),{toastComponent:Sk});const QD=Array.isArray||(n=>n&&"number"==typeof n.length),Ul=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class ht{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof ht)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(Bl(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(o){e=o instanceof Ul?KD(o.errors):[o]}}if(QD(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(null!==(n=l)&&"object"==typeof n)try{l.unsubscribe()}catch(u){e=e||[],u instanceof Ul?e=e.concat(KD(u.errors)):e.push(u)}}}var n;if(e)throw new Ul(e)}add(e){let t=e;if(!e)return ht.EMPTY;switch(typeof e){case"function":t=new ht(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof ht)){const s=t;t=new ht,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=t;if(null===r)t._parentOrParents=this;else if(r instanceof ht){if(r===this)return t;t._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return t;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[t]:i.push(t),t}remove(e){const t=this._subscriptions;if(t){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}}}var n;function KD(n){return n.reduce((e,t)=>e.concat(t instanceof Ul?t.errors:t),[])}ht.EMPTY=((n=new ht).closed=!0,n);"function"==typeof Symbol?Symbol("rxSubscriber"):Math.random();"function"==typeof Symbol&&Symbol;Object.create(Error.prototype);class Yk extends ht{constructor(e,t){super()}schedule(e,t=0){return this}}let iw=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,i){return new this.SchedulerAction(this,t).schedule(i,r)}}return n.now=()=>Date.now(),n})();class Pr extends iw{constructor(e,t=iw.now){super(e,()=>Pr.delegate&&Pr.delegate!==this?Pr.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return Pr.delegate&&Pr.delegate!==this?Pr.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}new Pr(class Jk extends Yk{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 r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(s){r=!0,i=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}});const oi=(n,e,t,r)=>{const i=e||t;return i?`${i}${r}${n}`:n},sL={allowNull:!0,storage:localStorage,delimiter:"_"},ql=n=>!!n&&void 0!==n.serialize;class oL{constructor(e,t){this.configuration=e,this.defaultSerializer=t,this.storage=this.configuration.storage}count(){return new Promise((e,t)=>{try{e(this.storage.length)}catch(r){t(r)}})}getKey(e){return new Promise((t,r)=>{e<0&&r(new Error("index has to be 0 or greater"));try{t(this.storage.key(e))}catch(i){r(i)}})}set(e,t,r,i){return new Promise((s,o)=>{try{const a="string"==typeof r?r:void 0;if(i=ql(r)?r:i||this.defaultSerializer,!this.configuration.allowNull&&(this.configuration.allowNull||"null"===t||null==t))return this.remove(e,a);this.storage.setItem(oi(e,a,this.configuration.prefix,this.configuration.delimiter),i.serialize(t)),s(!0)}catch(a){o(a)}})}get(e,t,r){return new Promise((i,s)=>{try{const o="string"==typeof t?t:void 0;i((r=ql(t)?t:r||this.defaultSerializer).deserialize(this.storage.getItem(oi(e,o,this.configuration.prefix,this.configuration.delimiter))))}catch(o){s(o)}})}remove(e,t){return new Promise((r,i)=>{try{this.storage.removeItem(oi(e,t,this.configuration.prefix,this.configuration.delimiter)),r(!0)}catch(s){i(s)}})}clear(){return new Promise((e,t)=>{try{this.storage.clear(),e(!0)}catch(r){t(r)}})}}const th=new re("NgxLocalstorageConfiguration"),nh=new re("StorageSerializer");let rh=(()=>{class n{constructor(t,r){this.defaultSerializer=t,this.config=r,this.config=Object.assign(Object.assign({},sL),r),this.storage=this.config.storage,this.promisable=new oL(this.config,this.defaultSerializer)}asPromisable(){return this.promisable}count(){try{return this.storage.length}catch(t){console.error(t)}}getKey(t){t<0&&console.error(new Error("index has to be 0 or greater"));try{return this.storage.key(t)}catch(r){console.error(r)}}set(t,r,i,s){const o="string"==typeof i?i:void 0;s=ql(i)?i:s||this.defaultSerializer,this.config.allowNull||!this.config.allowNull&&"null"!==r&&null!=r?this.storage.setItem(oi(t,o,this.config.prefix,this.config.delimiter),s.serialize(r)):this.remove(t,o)}get(t,r,i){const s="string"==typeof r?r:void 0;i=ql(r)?r:i||this.defaultSerializer;try{return i.deserialize(this.storage.getItem(oi(t,s,this.config.prefix,this.config.delimiter)))}catch(o){console.error(o)}}remove(t,r){try{this.storage.removeItem(oi(t,r,this.config.prefix,this.config.delimiter))}catch(i){console.error(i)}}clear(){try{this.storage.clear()}catch(t){console.error(t)}}}return n.\u0275fac=function(t){return new(t||n)(S(nh),S(th))},n.\u0275prov=G({factory:function(){return new n(S(nh),S(th))},token:n,providedIn:"root"}),n})(),aw=(()=>{class n{serialize(t){return JSON.stringify(t)}deserialize(t){return JSON.parse(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac}),n})(),aL=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[{provide:th,useValue:t}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({providers:[{provide:nh,useClass:aw}],imports:[[]]}),n})();const ih={now:()=>(ih.delegate||Date).now(),delegate:void 0};class lw extends ut{constructor(e=1/0,t=1/0,r=ih){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;t||(r.push(e),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!e.closed;o+=r?1:2)e.next(s[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){const{_bufferSize:e,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*e;if(e<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=t.now();let a=0;for(let l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}const lL=["addListener","removeListener"],uL=["addEventListener","removeEventListener"],cL=["on","off"];function ai(n,e,t,r){if(v(t)&&(r=t,t=void 0),r)return ai(n,e,t).pipe(kb(r));const[i,s]=function hL(n){return v(n.addEventListener)&&v(n.removeEventListener)}(n)?uL.map(o=>a=>n[o](e,a,t)):function dL(n){return v(n.addListener)&&v(n.removeListener)}(n)?lL.map(uw(n,e)):function fL(n){return v(n.on)&&v(n.off)}(n)?cL.map(uw(n,e)):[];if(!i&&Zl(n))return _e(o=>ai(o,e,t))(rn(n));if(!i)throw new TypeError("Invalid event target");return new Ue(o=>{const a=(...l)=>o.next(1<l.length?l:l[0]);return i(a),()=>s(a)})}function uw(n,e){return t=>r=>n[t](e,r)}const{isArray:pL}=Array;function sh(...n){return 1===(n=function gL(n){return 1===n.length&&pL(n[0])?n[0]:n}(n)).length?rn(n[0]):new Ue(function mL(n){return e=>{let t=[];for(let r=0;t&&!e.closed&&r<n.length;r++)t.push(rn(n[r]).subscribe(et(e,i=>{if(t){for(let s=0;s<t.length;s++)s!==r&&t[s].unsubscribe();t=null}e.next(i)})))}}(n))}class yL extends C{constructor(e,t){super()}schedule(e,t=0){return this}}const zl={setInterval(n,e,...t){const{delegate:r}=zl;return(null==r?void 0:r.setInterval)?r.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=zl;return((null==e?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0};class Ro{constructor(e,t=Ro.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}Ro.now=ih.now;const bL=new class _L extends Ro{constructor(e,t=Ro.now){super(e,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}(class vL extends yL{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 r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,r=0){return zl.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;zl.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,b(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}});function us(n){return ve(()=>n)}let cw=(()=>{class n{validate(t,r){switch(r.type){case"string":return this.validateString(t,r);case"number":case"integer":return this.validateNumber(t,r);case"boolean":return this.validateBoolean(t,r);case"array":return this.validateArray(t,r);case"object":return this.validateObject(t,r)}}validateString(t,r){if("string"!=typeof t||!this.validateConst(t,r)||!this.validateEnum(t,r)||void 0!==r.maxLength&&t.length>r.maxLength||void 0!==r.minLength&&t.length<r.minLength)return!1;if(r.pattern){let i=null;try{i=new RegExp(r.pattern)}catch(s){}if(i&&!i.test(t))return!1}return!0}validateNumber(t,r){return!("number"!=typeof t||"integer"===r.type&&!Number.isInteger(t)||!this.validateConst(t,r)||!this.validateEnum(t,r)||r.multipleOf&&!Number.isInteger(t/r.multipleOf)||void 0!==r.maximum&&t>r.maximum||void 0!==r.exclusiveMaximum&&t>=r.exclusiveMaximum||void 0!==r.minimum&&t<r.minimum||void 0!==r.exclusiveMinimum&&t<=r.exclusiveMinimum)}validateBoolean(t,r){return!("boolean"!=typeof t||!this.validateConst(t,r))}validateArray(t,r){if(!Array.isArray(t)||void 0!==r.maxItems&&t.length>r.maxItems||void 0!==r.minItems&&t.length<r.minItems)return!1;if(r.uniqueItems){const i=new Set(t);if(t.length!==i.size)return!1}if(Array.isArray(r.items))return this.validateTuple(t,r.items);for(const i of t)if(!this.validate(i,r.items))return!1;return!0}validateTuple(t,r){if(t.length!==r.length)return!1;for(let i=0;i<r.length;i+=1)if(!this.validate(t[i],r[i]))return!1;return!0}validateObject(t,r){if("object"!=typeof t||null===t||Object.keys(r.properties).length<Object.keys(t).length)return!1;if(r.required)for(const i of r.required)if(!Object.prototype.hasOwnProperty.call(t,i))return!1;for(const i in r.properties)if(Object.prototype.hasOwnProperty.call(r.properties,i)&&Object.prototype.hasOwnProperty.call(t,i)&&!this.validate(t[i],r.properties[i]))return!1;return!0}validateConst(t,r){return!r.const||t===r.const}validateEnum(t,r){return!r.enum||r.enum.includes(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Gl=new re("localStoragePrefix",{providedIn:"root",factory:()=>""}),dw="ngStorage",oh=new re("localStorageIDBDBName",{providedIn:"root",factory:()=>dw}),ah=new re("localStorageIDBDBVersion",{providedIn:"root",factory:()=>1}),hw="localStorage",lh=new re("localStorageIDBStoreName",{providedIn:"root",factory:()=>hw}),uh=new re("localStorageIDBWrap",{providedIn:"root",factory:()=>!0}),gw="indexedDB is not working";class mw extends Error{constructor(){super(...arguments),this.message=gw}}class EL extends Error{constructor(){super(...arguments),this.message="The storage is currently localStorage,\nwhere data must be serialized, and the provided data can't be serialized."}}let ch=(()=>{class n{constructor(t=dw,r=hw,i=1,s=!0){this.database=new lw(1),this.wrapIndex="value",this.dbName=t,this.storeName=r,this.dbVersion=i,this.noWrap=s,this.connect()}get backingStore(){return{database:this.dbName,store:this.storeName,version:this.dbVersion}}get size(){return this.transaction("readonly").pipe(_e(t=>{const{store:r,events:i}=t,s=r.count();return i.pipe(ve(()=>s.result))}),Pt())}get(t){return this.transaction("readonly").pipe(_e(r=>{const{store:i,events:s}=r,o=i.get(t);return s.pipe(ve(()=>{if(null!=o.result)return!this.noWrap&&"object"==typeof o.result&&this.wrapIndex in o.result&&null!=o.result[this.wrapIndex]?o.result[this.wrapIndex]:o.result}))}),Pt())}set(t,r){return void 0===r?this.delete(t):this.transaction("readwrite").pipe(_e(i=>{const{store:s,events:o}=i;return s.put(this.noWrap?r:{[this.wrapIndex]:r},t),o.pipe(us(void 0))}),Pt())}delete(t){return this.transaction("readwrite").pipe(_e(r=>{const{store:i,events:s}=r;return i.delete(t),s.pipe(us(void 0))}),Pt())}clear(){return this.transaction("readwrite").pipe(_e(t=>{const{store:r,events:i}=t;return r.clear(),i.pipe(us(void 0))}),Pt())}keys(){return this.transaction("readonly").pipe(Pt(),_e(t=>{const{store:r}=t,i=r.openKeyCursor(),s=ai(i,"success").pipe(function DL(n,e=!1){return ct((t,r)=>{let i=0;t.subscribe(et(r,s=>{const o=n(s,i++);(o||e)&&r.next(s),!o&&r.complete()}))})}(()=>null!==i.result),ve(()=>i.result.key.toString()),mt(()=>{i.result.continue()}));return sh([s,this.listenError(i)])}))}has(t){return this.transaction("readonly").pipe(_e(r=>{const{store:i,events:s}=r,o=i.getKey(t);return s.pipe(ve(()=>void 0!==o.result))}),Pt())}connect(){let t;try{t=indexedDB.open(this.dbName,this.dbVersion)}catch(s){return void this.database.error(new mw)}this.createStore(t),sh([ai(t,"success"),this.listenError(t)]).pipe(Pt()).subscribe({next:()=>{this.database.next(t.result)},error:()=>{this.database.error(new mw)}})}createStore(t){ai(t,"upgradeneeded").pipe(Pt()).subscribe({next:()=>{t.result.objectStoreNames.contains(this.storeName)||t.result.createObjectStore(this.storeName)}})}transaction(t){return this.database.pipe(_e(r=>{let i;try{i=r.transaction([this.storeName],t)}catch(a){return Kt(a)}return q({store:i.objectStore(this.storeName),events:this.listenTransactionEvents(i)})}))}listenError(t){return ai(t,"error").pipe(_e(r=>Kt(r.target.error)))}listenTransactionEvents(t){return sh([ai(t,"complete"),this.listenError(t)])}}return n.\u0275fac=function(t){return new(t||n)(S(oh),S(lh),S(ah),S(uh))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wl=(()=>{class n{constructor(t=""){this.prefix=t||""}get size(){return q(localStorage.length)}get(t){const r=localStorage.getItem(this.prefixKey(t));let i;if(null!=r)try{i=JSON.parse(r)}catch(s){return Kt(s)}return q(i)}set(t,r){let i=null;const s=Object.getPrototypeOf(r);if("object"==typeof r&&null!==r&&!Array.isArray(r)&&s!==Object.prototype&&null!==s)return Kt(new EL);try{i=JSON.stringify(r)}catch(o){return Kt(o)}try{localStorage.setItem(this.prefixKey(t),i)}catch(o){return Kt(o)}return q(void 0)}delete(t){return localStorage.removeItem(this.prefixKey(t)),q(void 0)}clear(){return localStorage.clear(),q(void 0)}keys(){return new Ue(t=>{for(let r=0;r<localStorage.length;r+=1)t.next(this.getUnprefixedKey(r));t.complete()}).pipe(Jl(bL))}has(t){for(let r=0;r<localStorage.length;r+=1)if(t===this.getUnprefixedKey(r))return q(!0);return q(!1)}getUnprefixedKey(t){const r=localStorage.key(t);return null!==r?this.prefix?r.substr(this.prefix.length):r:null}prefixKey(t){return`${this.prefix}${t}`}}return n.\u0275fac=function(t){return new(t||n)(S(Gl))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ql=(()=>{class n{constructor(){this.memoryStorage=new Map}get size(){return q(this.memoryStorage.size)}get(t){return q(this.memoryStorage.get(t))}set(t,r){return this.memoryStorage.set(t,r),q(void 0)}delete(t){return this.memoryStorage.delete(t),q(void 0)}clear(){return this.memoryStorage.clear(),q(void 0)}keys(){return dt(this.memoryStorage.keys())}has(t){return q(this.memoryStorage.has(t))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=G({token:n,factory:function(t){let r=null;return r=t?new t:function CL(n,e,t,r,i,s){try{if(M_(n)&&void 0!==indexedDB&&null!==indexedDB&&"open"in indexedDB)return new ch(t,r,i,s);if(M_(n)&&void 0!==localStorage&&null!==localStorage&&"getItem"in localStorage)return new Wl(e)}catch(o){}return new Ql}(S(Ba),S(Gl),S(oh),S(lh),S(ah),S(uh)),r},providedIn:"root"}),n})();class yw extends Error{constructor(){super(...arguments),this.message="Data stored is not valid against the provided JSON schema.\nCheck your JSON schema, otherwise it means data has been corrupted."}}let vw=(()=>{class n{constructor(t,r=new cw,i=""){this.database=t,this.jsonValidator=r,this.LSPrefix=i,this.notifiers=new Map}get size(){return this.database.size.pipe(this.catchIDBBroken(()=>this.database.size))}get backingEngine(){return this.database instanceof ch?"indexedDB":this.database instanceof Wl?"localStorage":this.database instanceof Ql?"memory":"unknown"}get backingStore(){return this.database instanceof ch?this.database.backingStore:{database:"",store:"",version:0}}get fallbackBackingStore(){return this.database instanceof Wl?{prefix:this.database.prefix}:{prefix:""}}get(t,r){return this.database.get(t).pipe(this.catchIDBBroken(()=>this.database.get(t)),_e(i=>null==i?q(void 0):r?this.jsonValidator.validate(i,r)?q(i):Kt(new yw):q(i)))}set(t,r,i){return null==r?this.delete(t):i&&!this.jsonValidator.validate(r,i)?Kt(new yw):this.database.set(t,r).pipe(this.catchIDBBroken(()=>this.database.set(t,r)),mt(()=>{this.notify(t,r)}))}delete(t){return this.database.delete(t).pipe(this.catchIDBBroken(()=>this.database.delete(t)),mt(()=>{this.notify(t,void 0)}))}clear(){return this.database.clear().pipe(this.catchIDBBroken(()=>this.database.clear()),mt(()=>{for(const t of this.notifiers.keys())this.notify(t,void 0)}))}keys(){return this.database.keys().pipe(this.catchIDBBroken(()=>this.database.keys()))}has(t){return this.database.has(t).pipe(this.catchIDBBroken(()=>this.database.has(t)))}watch(t,r){this.notifiers.has(t)||this.notifiers.set(t,new lw(1));const i=this.notifiers.get(t);return(r?this.get(t,r):this.get(t)).subscribe({next:s=>i.next(s),error:s=>i.error(s)}),i.asObservable()}notify(t,r){const i=this.notifiers.get(t);i&&i.next(r)}catchIDBBroken(t){return hr(r=>{if(null!=r&&"object"==typeof r&&"message"in r&&r.message===gw){try{this.database="getItem"in localStorage?new Wl(this.LSPrefix):new Ql}catch(i){this.database=new Ql}return t()}return Kt(r)})}}return n.\u0275fac=function(t){return new(t||n)(S(SL),S(cw),S(Gl))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),IL=(()=>{class n{constructor(t){this.storageMap=t}get length(){return this.storageMap.size}getItem(t,r){return r&&(r="schema"in r?r.schema:r),(r?this.storageMap.get(t,r):this.storageMap.get(t)).pipe(ve(i=>void 0!==i?i:null))}setItem(t,r,i){return this.storageMap.set(t,r,i).pipe(us(!0))}removeItem(t){return this.storageMap.delete(t).pipe(us(!0))}clear(){return this.storageMap.clear().pipe(us(!0))}}return n.\u0275fac=function(t){return new(t||n)(S(vw))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AL=(()=>{class n{static forRoot(t){return{ngModule:n,providers:[t.LSPrefix?{provide:Gl,useValue:t.LSPrefix}:[],t.IDBDBName?{provide:oh,useValue:t.IDBDBName}:[],t.IDBStoreName?{provide:lh,useValue:t.IDBStoreName}:[],t.IDBDBVersion?{provide:ah,useValue:t.IDBDBVersion}:[],!1===t.IDBNoWrap?{provide:uh,useValue:t.IDBNoWrap}:[]]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({}),n})(),ML={hour12:!1},dh=(()=>{class n{constructor(t,r,i){this.storage=t,this.localStorage=r,this.storageMap=i}db_init(){return as(function*(){})()}set_item(t){var r=this;return as(function*(){try{let i;return(yield r.storageMap.has("instances").toPromise())?(i=yield r.storageMap.get("instances").toPromise(),i.push({id:Date.now(),lines:t,created_at:new Date(Date.now()).toLocaleString("en-US",ML)}),yield r.storageMap.set("instances",i).toPromise(),!0):(i=yield r.storageMap.set("instances",[]).toPromise(),[])}catch(i){console.error(i)}})()}get_all(){var t=this;return as(function*(){try{return yield t.storageMap.get("instances").toPromise()}catch(r){console.error(r)}})()}remove_item(t){var r=this;return as(function*(){try{let i;i=yield r.storageMap.get("instances").toPromise();let s=i.findIndex(o=>o.id===t.id);return i.splice(s,1),yield r.storageMap.set("instances",i).toPromise()}catch(i){console.error(i)}})()}}return n.\u0275fac=function(t){return new(t||n)(S(rh),S(IL),S(vw))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xL=new re("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});let _w=(()=>{class n{constructor(t,r,i){this.ngZone=t,this.document=r,this.window=i,this.copySubject=new ut,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(t){this.config=t}copy(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});const r=this.copyFromContent(t);return this.pushCopyResponse(r?{content:t,isSuccess:r}:{isSuccess:!1,content:t})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(t,r=!0){try{this.selectTarget(t);const i=this.copyText();return this.clearSelection(r?t:void 0,this.window),i&&this.isCopySuccessInIE11()}catch(i){return!1}}isCopySuccessInIE11(){const t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))}copyFromContent(t,r=this.document.body){if(this.tempTextArea&&!r.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{r.appendChild(this.tempTextArea)}catch(s){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;const i=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),i}destroy(t=this.document.body){this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(t,r){var i;t&&t.focus(),null===(i=r.getSelection())||void 0===i||i.removeAllRanges()}createTempTextArea(t,r){const i="rtl"===t.documentElement.getAttribute("dir");let s;return s=t.createElement("textarea"),s.style.fontSize="12pt",s.style.border="0",s.style.padding="0",s.style.margin="0",s.style.position="absolute",s.style[i?"right":"left"]="-9999px",s.style.top=(r.pageYOffset||t.documentElement.scrollTop)+"px",s.setAttribute("readonly",""),s}pushCopyResponse(t){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(t)})}pushCopyReponse(t){this.pushCopyResponse(t)}}return n.\u0275fac=function(t){return new(t||n)(S(ze),S(st),S(xL,8))},n.\u0275prov=G({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({imports:[[Zd]]}),n})();function PL(n,e){if(1&n){const t=Gr();z(0,"div",18),j(1,"input",19),z(2,"button",20),Ct("click",function(){wn(t);const i=Ie().$implicit;return Ie().copy_text(i.lines.line_number1,i.lines.line_number2,i.lines.line_number3)}),Ae(3,"COPY"),W()()}if(2&n){const t=Ie().$implicit;Ne("id",t.id),ue(1),Sa("value","https://udohaiku.com/#/share/",t.lines.line_number1,"/",t.lines.line_number2,"/",t.lines.line_number3,"")}}function OL(n,e){if(1&n){const t=Gr();z(0,"div",1)(1,"div",5),j(2,"br"),z(3,"div",6),j(4,"br"),z(5,"small")(6,"b",7),Ae(7,"SAVED: "),W(),Ae(8),W(),z(9,"span",8),Ct("click",function(){const s=wn(t).$implicit;return Ie().delete_item(s)}),j(10,"i",9),W(),j(11,"br")(12,"br"),z(13,"div",10),j(14,"br"),z(15,"div",11)(16,"div",12)(17,"span",13),Ae(18),W()()()(),j(19,"br"),z(20,"div",10),j(21,"br"),z(22,"div",11)(23,"div",12)(24,"span",14),Ae(25),W()()(),j(26,"br")(27,"br"),W(),j(28,"br"),z(29,"div",10),j(30,"br"),z(31,"div",11)(32,"div",12)(33,"span",15),Ae(34),W()()(),j(35,"br")(36,"br"),W(),j(37,"br"),z(38,"i",16),Ct("click",function(){const s=wn(t).$implicit;return Ie().share_it(s.id)}),W(),j(39,"br")(40,"br"),Ze(41,PL,4,4,"div",17),j(42,"br"),W(),j(43,"br")(44,"br"),W()()}if(2&n){const t=e.$implicit,r=Ie();ue(8),it(" ",t.created_at," "),ue(10),it(" ",t.lines.line1," "),ue(7),it(" ",t.lines.line2," "),ue(9),it(" ",t.lines.line3," "),ue(7),Ne("ngIf",r.shareIt&&t.id==r.sharing_id)}}function NL(n,e){1&n&&(z(0,"div",21)(1,"h4"),Ae(2," No Saved Instances Found. "),W(),j(3,"br")(4,"br"),z(5,"p",22),Ae(6," Go Save Some "),W()())}let FL=(()=>{class n{constructor(t,r,i){this.toastr=t,this.data=r,this._clipboardService=i,this.shareIt=!1,this.sharing_id="",this.instance_list=[]}ngOnInit(){this.instance_list=[],this.data.get_all().then(t=>{this.instance_list=t,console.log("instance_list ",this.instance_list)}).catch(t=>{console.log(t)})}delete_item(t){this.data.remove_item(t).then(()=>{this.toastr.success("Instance Deleted !"),this.ngOnInit()}).catch(console.error)}copy_text(t,r,i){this._clipboardService.copyFromContent(`https://udohaiku.com/#/share/${t}/${r}/${i}`),this.toastr.info("URL Copied To Clipboard "),this.sharing_id="",this.shareIt=!this.shareIt}share_it(t){this.sharing_id=t,this.shareIt=!this.shareIt}}return n.\u0275fac=function(t){return new(t||n)(k(Mo),k(dh),k(_w))},n.\u0275cmp=kn({type:n,selectors:[["app-saved"]],decls:14,vars:2,consts:[[1,"container","col-lg-12","animate__animated","animate__fadeIn"],[1,"row","justify-content-center"],[1,"container"],["class","row justify-content-center",4,"ngFor","ngForOf"],["class","container-fluid text-center animate__animated animate__fadeIn",4,"ngIf"],[1,"col","col-lg-6"],[1,"container",2,"border","1px solid #9bc0c0","border-radius","3px"],[2,"padding-right","15px"],[1,"badge","badge-pill","badge-danger",2,"float","right","cursor","pointer","color","#b55050",3,"click"],[1,"small","red","close","icon","float-right",2,"cursor","pointer"],[1,"row","text-center"],[1,"card"],[1,"card-body","animate__animated","animate__fadeIn"],["id","line1"],["id","line2"],["id","line3"],[1,"small","blue","share","alternate","icon","float-right",2,"cursor","pointer","float","right",3,"click"],["class","ui fluid action input",3,"id",4,"ngIf"],[1,"ui","fluid","action","input",3,"id"],["type","text","placeholder","..","selected","",3,"value"],[1,"ui","button",3,"click"],[1,"container-fluid","text-center","animate__animated","animate__fadeIn"],["routerLink","/ido",2,"cursor","pointer"]],template:function(t,r){1&t&&(z(0,"div",0)(1,"div",1)(2,"div",2),j(3,"br")(4,"br")(5,"br"),Ze(6,OL,45,5,"div",3),j(7,"br")(8,"br")(9,"br")(10,"br")(11,"br")(12,"br"),Ze(13,NL,7,0,"div",4),W()()()),2&t&&(ue(6),Ne("ngForOf",r.instance_list),ue(7),Ne("ngIf",r.instance_list.length<1))},directives:[E_,es,Ao],styles:[""]}),n})();const Po_BASE_URL="https://udohaiku.com/api";console.log("-----------------------------"),console.log("PRODUCTION: true"),console.log(`BASE URL IS: ${Po_BASE_URL}`),console.log("-----------------------------");var kL=E(14),Oo=E.n(kL);function LL(n,e){if(1&n&&(z(0,"div",7)(1,"div",8),j(2,"br")(3,"br"),z(4,"div",9),j(5,"br"),z(6,"div",10)(7,"div",11)(8,"span",12),Ae(9),W()()()(),j(10,"br"),z(11,"div",9),j(12,"br"),z(13,"div",10)(14,"div",11)(15,"span",13),Ae(16),W()()(),j(17,"br")(18,"br"),W(),j(19,"br"),z(20,"div",9),j(21,"br"),z(22,"div",10)(23,"div",11)(24,"span",14),Ae(25),W()()(),j(26,"br")(27,"br"),W(),j(28,"br")(29,"br")(30,"br"),W(),j(31,"br")(32,"br"),W()),2&n){const t=Ie();ue(9),it(" ",t.line1," "),ue(7),it(" ",t.line2," "),ue(9),it(" ",t.line3," ")}}let jL=(()=>{class n{constructor(t,r,i){this.activated_route=t,this.toastr=r,this.data=i,this.ready=!1,this.BASE_URL=Po_BASE_URL}ngOnInit(){this.activated_route.params.subscribe(t=>{Object.keys(t).length>0&&(this.ready=!0,this.line_number1=t.line1,this.line_number2=t.line2,this.line_number3=t.line3,Oo()({method:"post",url:this.BASE_URL+"/get_instance",params:{line1:this.line_number1,line2:this.line_number2,line3:this.line_number3}}).then(r=>{this.line1=r.data.line1,this.line2=r.data.line2,this.line3=r.data.line3}).catch(r=>{console.log(r),this.toastr.error("Server Error!",r)}))})}save_instance(){var t=this;return as(function*(){try{yield t.data.set_item({line1:t.line1,line2:t.line2,line3:t.line3,line_number1:t.line_number1,line_number2:t.line_number2,line_number3:t.line_number3}),t.toastr.success("Instance Saved !","")}catch(r){console.error(r),t.toastr.error("Unable to save instance !")}})()}}return n.\u0275fac=function(t){return new(t||n)(k(ri),k(Mo),k(dh))},n.\u0275cmp=kn({type:n,selectors:[["app-share"]],decls:28,vars:1,consts:[[1,"container","col-12"],[1,"row","justify-content-center"],[1,"container","animate__animated","animate__fadeIn"],["class","row justify-content-center animate__animated animate__fadeIn",4,"ngIf"],["data-toggle","tooltip","data-placement","top","title","Save in Browser",1,"text-center"],["type","button",1,"ui","circular","raised","icon","button",3,"click"],[1,"heart","icon","animated","pulse","infinite",2,"color","#C05353"],[1,"row","justify-content-center","animate__animated","animate__fadeIn"],[1,"col","col-lg-6","col-sm-12","shading",2,"border","3px solid #dcdcdc","padding","35px","border-radius","3px"],[1,"row","text-center"],[1,"card"],[1,"card-body","animate__animated","animate__fadeIn"],["id","line1"],["id","line2"],["id","line3"]],template:function(t,r){1&t&&(z(0,"div",0)(1,"div",1)(2,"div",2),j(3,"br")(4,"br")(5,"br")(6,"br")(7,"br")(8,"br")(9,"br"),Ze(10,LL,33,3,"div",3),j(11,"br")(12,"br")(13,"br")(14,"br"),z(15,"div",4)(16,"button",5),Ct("click",function(){return r.save_instance()}),j(17,"i",6),W()(),j(18,"br")(19,"br")(20,"br")(21,"br")(22,"br")(23,"br")(24,"br")(25,"br")(26,"br")(27,"br"),W()()()),2&t&&(ue(10),Ne("ngIf",r.ready))},directives:[es],styles:[".shading[_ngcontent-%COMP%]{box-shadow:1px 3px 5px -2px #424242}"]}),n})();function BL(n,e){1&n&&(z(0,"div")(1,"div",23)(2,"p"),Ae(3," Instance Was saved .. "),W()()())}function VL(n,e){if(1&n){const t=Gr();z(0,"div",24),j(1,"input",25),z(2,"button",26),Ct("click",function(){wn(t);const i=Ie(2);return i.shareIt=!i.shareIt})("click",function(){return wn(t),Ie(2).copy_text("copying")}),Ae(3,"COPY"),W()()}if(2&n){const t=Ie(2);ue(1),Sa("value","https://udohaiku.com/#/share/",t.line1_number,"/",t.line2_number,"/",t.line3_number,"")}}function UL(n,e){if(1&n){const t=Gr();z(0,"div",4)(1,"div",5)(2,"div",6),j(3,"img",7),W(),j(4,"br")(5,"br"),z(6,"div",8),j(7,"br"),z(8,"div",9)(9,"div",10)(10,"span",11),Ae(11),W()()()(),j(12,"br"),z(13,"div",8),j(14,"br"),z(15,"div",9)(16,"div",10)(17,"span",12),Ae(18),W()()(),j(19,"br")(20,"br"),W(),j(21,"br"),z(22,"div",8),j(23,"br"),z(24,"div",9)(25,"div",10)(26,"span",13),Ae(27),W()()(),j(28,"br")(29,"br"),W(),j(30,"br")(31,"br"),Ze(32,BL,4,0,"div",14),j(33,"br"),z(34,"div",15)(35,"button",16),Ct("click",function(){return wn(t),Ie().saveInstance()}),j(36,"i",17),W()(),j(37,"br")(38,"br"),z(39,"div",18)(40,"button",16),Ct("click",function(){return wn(t),Ie().instance_generator()}),j(41,"i",19),W()(),j(42,"br")(43,"br"),z(44,"div",20)(45,"button",16),Ct("click",function(){wn(t);const i=Ie();return i.shareIt=!i.shareIt}),j(46,"i",21),W(),j(47,"br")(48,"br"),Ze(49,VL,4,3,"div",22),W()()()}if(2&n){const t=Ie();ue(11),it(" ",t.line1," "),ue(7),it(" ",t.line2," "),ue(9),it(" ",t.line3," "),ue(5),Ne("ngIf",t.notify),ue(17),Ne("ngIf",t.shareIt)}}let bw=(()=>{class n{constructor(t,r,i){this.toastr=t,this._clipboardService=r,this.data=i,this.BASE_URL=Po_BASE_URL,this.notify=!1,this.shareIt=!1,this.line1="",this.line2="",this.line3="",this.line1_number=0,this.line2_number=0,this.line3_number=0,this.five_id_list=[],this.seven_id_list=[],this.ready=!1,Oo().get(this.BASE_URL+"/ping").catch(console.error)}ngOnInit(){try{Oo().get(this.BASE_URL+"/get_line5_ids").then(t=>(this.five_id_list=t.data,this.five_max=t.data.length,Oo().get(this.BASE_URL+"/get_line7_ids"))).catch(t=>{this.toastr.error("Server Error!",t)}).then(t=>(this.seven_id_list=t.data,this.seven_max=t.data.length,console.log("FIVE MAX: ",this.five_max),console.log("SEVEN MAX: ",this.seven_max),this.instance_generator())).then(()=>{console.log("INSTANCE LOADED"),this.ready=!0}).catch(t=>{console.error(t),this.toastr.error("Server Error!",t)})}catch(t){console.log(t)}}instance_generator(){this.line1_number=this.five_id_list[Math.floor(Math.random()*this.five_max)+1],this.line2_number=this.seven_id_list[Math.floor(Math.random()*this.seven_max)+1],this.line3_number=this.five_id_list[Math.floor(Math.random()*this.five_max)+1],Oo()({method:"post",url:this.BASE_URL+"/get_instance",params:{line1:this.line1_number,line2:this.line2_number,line3:this.line3_number}}).then(t=>{this.line1=t.data.line1,this.line2=t.data.line2,this.line3=t.data.line3}).catch(t=>{console.log(t),this.toastr.error("Server Error!",t)})}copy_text(t){this._clipboardService.copyFromContent(`https://udohaiku.com/#/share/${this.line1_number}/${this.line2_number}/${this.line3_number}`),this.toastr.info("URL Copied To Clipboard ")}saveInstance(){var t=this;return as(function*(){try{yield t.data.set_item({line1:t.line1,line2:t.line2,line3:t.line3,line_number1:t.line1_number,line_number2:t.line2_number,line_number3:t.line3_number}),t.toastr.success("Instance Saved !","")}catch(r){console.error(r),t.toastr.error("Unable to save instance !")}})()}}return n.\u0275fac=function(t){return new(t||n)(k(Mo),k(_w),k(dh))},n.\u0275cmp=kn({type:n,selectors:[["app-ido"]],decls:14,vars:1,consts:[[1,"container","col-12"],[1,"row","justify-content-center"],[1,"container","animate__animated","animate__fadeIn"],["class","row justify-content-center animate__animated animate__fadeIn",4,"ngIf"],[1,"row","justify-content-center","animate__animated","animate__fadeIn"],[1,"col","col-lg-6","col-sm-12"],[1,"text-center"],["src","/assets/cpf.png","alt","cpf"],[1,"row","text-center"],[1,"card"],[1,"card-body","animate__animated","animate__fadeIn"],["id","line1"],["id","line2"],["id","line3"],[4,"ngIf"],["data-toggle","tooltip","data-placement","top","title","Save in Browser",1,"text-center"],["type","button",1,"ui","circular","raised","icon","button",3,"click"],[1,"heart","icon","animated","pulse","infinite",2,"color","#C05353"],["data-toggle","tooltip","data-placement","top","title","Refresh instance",1,"text-center"],[1,"refresh","icon"],["data-toggle","tooltip","data-placement","top","title","Share instance",1,"text-center"],[1,"share","alternate","icon"],["class","ui fluid action input",4,"ngIf"],[1,"ui","visible","success","message","text-center"],[1,"ui","fluid","action","input"],["type","text","placeholder","..","selected","",3,"value"],[1,"ui","button",3,"click"]],template:function(t,r){1&t&&(z(0,"div",0)(1,"div",1)(2,"div",2),j(3,"br")(4,"br"),Ze(5,UL,50,5,"div",3),j(6,"br")(7,"br")(8,"br")(9,"br")(10,"br")(11,"br")(12,"br")(13,"br"),W()()()),2&t&&(ue(5),Ne("ngIf",r.ready))},directives:[es],styles:[".text-former[_ngcontent-%COMP%]{height:100px}"]}),n})();const HL=[{path:"ido",component:bw},{path:"saved",component:FL},{path:"share/:line1/:line2/:line3",component:jL},{path:"**",component:bw}];let $L=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n}),n.\u0275inj=Vt({imports:[[UD.forRoot(HL,{useHash:!0})],UD]}),n})(),qL=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=kn({type:n,selectors:[["app-navbar"]],decls:15,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],[1,"container-fluid"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarColor03","aria-controls","navbarColor03","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarColor03",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto"],["routerLink","/ido","data-toggle","tooltip","data-placement","top","title","Go to landing page",1,"nav-item",2,"cursor","pointer"],[1,"chess","board","icon"],[1,"d-flex"],["routerLink","/ido","data-toggle","tooltip","data-placement","top","title","This site generates pseudo random combination of lines, creating new and interesting haiku poems on each update.",1,"nav-item",2,"cursor","pointer","padding-right","25px"],[1,"light","blue","question","circle","icon"],["routerLink","/saved","data-toggle","tooltip","data-placement","top","title","View the instances saved in your browser",1,"nav-item",2,"cursor","pointer"],[1,"heart","icon"]],template:function(t,r){1&t&&(z(0,"nav",0)(1,"div",1)(2,"button",2),j(3,"span",3),W(),z(4,"div",4)(5,"ul",5)(6,"li",6),j(7,"i",7),Ae(8," HOME "),W()(),z(9,"form",8)(10,"div",9),j(11,"i",10),W(),z(12,"div",11),j(13,"i",12),Ae(14," FAVORITES "),W()()()()())},directives:[Ao],styles:[""]}),n})(),zL=(()=>{class n{constructor(){this.title="haikudo"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=kn({type:n,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"col-12"]],template:function(t,r){1&t&&(j(0,"app-navbar"),z(1,"div",0),j(2,"router-outlet"),W())},directives:[qL,qf],styles:[""]}),n})(),GL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=sn({type:n,bootstrap:[zL]}),n.\u0275inj=Vt({providers:[],imports:[[U_,$L,OO,RL,Ck.forRoot(),aL.forRoot(),AL.forRoot({IDBNoWrap:!0})]]}),n})();(function l1(){Xv=!1})(),ER().bootstrapModule(GL).catch(n=>console.error(n))},14:(U,ge,E)=>{U.exports=E(114)},729:(U,ge,E)=>{"use strict";var v=E(701),V=E(858),R=E(738),b=E(625),C=E(215),A=E(99),M=E(100),x=E(593),N=E(867),O=E(413);U.exports=function(_){return new Promise(function(Be,Ge){var nn,Re=_.data,Ve=_.headers,vt=_.responseType;function Fn(){_.cancelToken&&_.cancelToken.unsubscribe(nn),_.signal&&_.signal.removeEventListener("abort",nn)}v.isFormData(Re)&&delete Ve["Content-Type"];var K=new XMLHttpRequest;if(_.auth){var at=_.auth.username||"",hs=_.auth.password?unescape(encodeURIComponent(_.auth.password)):"";Ve.Authorization="Basic "+btoa(at+":"+hs)}var Yn=C(_.baseURL,_.url);function I(){if(K){var we="getAllResponseHeaders"in K?A(K.getAllResponseHeaders()):null;V(function(No){Be(No),Fn()},function(No){Ge(No),Fn()},{data:vt&&"text"!==vt&&"json"!==vt?K.response:K.responseText,status:K.status,statusText:K.statusText,headers:we,config:_,request:K}),K=null}}if(K.open(_.method.toUpperCase(),b(Yn,_.params,_.paramsSerializer),!0),K.timeout=_.timeout,"onloadend"in K?K.onloadend=I:K.onreadystatechange=function(){!K||4!==K.readyState||0===K.status&&(!K.responseURL||0!==K.responseURL.indexOf("file:"))||setTimeout(I)},K.onabort=function(){!K||(Ge(x("Request aborted",_,"ECONNABORTED",K)),K=null)},K.onerror=function(){Ge(x("Network Error",_,null,K)),K=null},K.ontimeout=function(){var Lt=_.timeout?"timeout of "+_.timeout+"ms exceeded":"timeout exceeded";_.timeoutErrorMessage&&(Lt=_.timeoutErrorMessage),Ge(x(Lt,_,(_.transitional||N).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",K)),K=null},v.isStandardBrowserEnv()){var lt=(_.withCredentials||M(Yn))&&_.xsrfCookieName?R.read(_.xsrfCookieName):void 0;lt&&(Ve[_.xsrfHeaderName]=lt)}"setRequestHeader"in K&&v.forEach(Ve,function(Lt,Ee){void 0===Re&&"content-type"===Ee.toLowerCase()?delete Ve[Ee]:K.setRequestHeader(Ee,Lt)}),v.isUndefined(_.withCredentials)||(K.withCredentials=!!_.withCredentials),vt&&"json"!==vt&&(K.responseType=_.responseType),"function"==typeof _.onDownloadProgress&&K.addEventListener("progress",_.onDownloadProgress),"function"==typeof _.onUploadProgress&&K.upload&&K.upload.addEventListener("progress",_.onUploadProgress),(_.cancelToken||_.signal)&&(nn=function(we){!K||(Ge(!we||we&&we.type?new O("canceled"):we),K.abort(),K=null)},_.cancelToken&&_.cancelToken.subscribe(nn),_.signal&&(_.signal.aborted?nn():_.signal.addEventListener("abort",nn))),Re||(Re=null),K.send(Re)})}},114:(U,ge,E)=>{"use strict";var v=E(701),V=E(414),R=E(490),b=E(971),M=function A(x){var N=new R(x),O=V(R.prototype.request,N);return v.extend(O,R.prototype,N),v.extend(O,N),O.create=function(_){return A(b(x,_))},O}(E(498));M.Axios=R,M.Cancel=E(413),M.CancelToken=E(56),M.isCancel=E(827),M.VERSION=E(773).version,M.all=function(N){return Promise.all(N)},M.spread=E(211),M.isAxiosError=E(603),U.exports=M,U.exports.default=M},413:U=>{"use strict";function ge(E){this.message=E}ge.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},ge.prototype.__CANCEL__=!0,U.exports=ge},56:(U,ge,E)=>{"use strict";var v=E(413);function V(R){if("function"!=typeof R)throw new TypeError("executor must be a function.");var b;this.promise=new Promise(function(M){b=M});var C=this;this.promise.then(function(A){if(C._listeners){var M,x=C._listeners.length;for(M=0;M<x;M++)C._listeners[M](A);C._listeners=null}}),this.promise.then=function(A){var M,x=new Promise(function(N){C.subscribe(N),M=N}).then(A);return x.cancel=function(){C.unsubscribe(M)},x},R(function(M){C.reason||(C.reason=new v(M),b(C.reason))})}V.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},V.prototype.subscribe=function(b){this.reason?b(this.reason):this._listeners?this._listeners.push(b):this._listeners=[b]},V.prototype.unsubscribe=function(b){if(this._listeners){var C=this._listeners.indexOf(b);-1!==C&&this._listeners.splice(C,1)}},V.source=function(){var b;return{token:new V(function(M){b=M}),cancel:b}},U.exports=V},827:U=>{"use strict";U.exports=function(E){return!(!E||!E.__CANCEL__)}},490:(U,ge,E)=>{"use strict";var v=E(701),V=E(625),R=E(607),b=E(957),C=E(971),A=E(828),M=A.validators;function x(N){this.defaults=N,this.interceptors={request:new R,response:new R}}x.prototype.request=function(O,T){"string"==typeof O?(T=T||{}).url=O:T=O||{},(T=C(this.defaults,T)).method=T.method?T.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var _=T.transitional;void 0!==_&&A.assertOptions(_,{silentJSONParsing:M.transitional(M.boolean),forcedJSONParsing:M.transitional(M.boolean),clarifyTimeoutError:M.transitional(M.boolean)},!1);var me=[],Be=!0;this.interceptors.request.forEach(function(at){"function"==typeof at.runWhen&&!1===at.runWhen(T)||(Be=Be&&at.synchronous,me.unshift(at.fulfilled,at.rejected))});var Re,Ge=[];if(this.interceptors.response.forEach(function(at){Ge.push(at.fulfilled,at.rejected)}),!Be){var Ve=[b,void 0];for(Array.prototype.unshift.apply(Ve,me),Ve=Ve.concat(Ge),Re=Promise.resolve(T);Ve.length;)Re=Re.then(Ve.shift(),Ve.shift());return Re}for(var vt=T;me.length;){var nn=me.shift(),Fn=me.shift();try{vt=nn(vt)}catch(K){Fn(K);break}}try{Re=b(vt)}catch(K){return Promise.reject(K)}for(;Ge.length;)Re=Re.then(Ge.shift(),Ge.shift());return Re},x.prototype.getUri=function(O){return O=C(this.defaults,O),V(O.url,O.params,O.paramsSerializer).replace(/^\?/,"")},v.forEach(["delete","get","head","options"],function(O){x.prototype[O]=function(T,_){return this.request(C(_||{},{method:O,url:T,data:(_||{}).data}))}}),v.forEach(["post","put","patch"],function(O){x.prototype[O]=function(T,_,me){return this.request(C(me||{},{method:O,url:T,data:_}))}}),U.exports=x},607:(U,ge,E)=>{"use strict";var v=E(701);function V(){this.handlers=[]}V.prototype.use=function(b,C,A){return this.handlers.push({fulfilled:b,rejected:C,synchronous:!!A&&A.synchronous,runWhen:A?A.runWhen:null}),this.handlers.length-1},V.prototype.eject=function(b){this.handlers[b]&&(this.handlers[b]=null)},V.prototype.forEach=function(b){v.forEach(this.handlers,function(A){null!==A&&b(A)})},U.exports=V},215:(U,ge,E)=>{"use strict";var v=E(692),V=E(554);U.exports=function(b,C){return b&&!v(C)?V(b,C):C}},593:(U,ge,E)=>{"use strict";var v=E(124);U.exports=function(R,b,C,A,M){var x=new Error(R);return v(x,b,C,A,M)}},957:(U,ge,E)=>{"use strict";var v=E(701),V=E(134),R=E(827),b=E(498),C=E(413);function A(M){if(M.cancelToken&&M.cancelToken.throwIfRequested(),M.signal&&M.signal.aborted)throw new C("canceled")}U.exports=function(x){return A(x),x.headers=x.headers||{},x.data=V.call(x,x.data,x.headers,x.transformRequest),x.headers=v.merge(x.headers.common||{},x.headers[x.method]||{},x.headers),v.forEach(["delete","get","head","post","put","patch","common"],function(T){delete x.headers[T]}),(x.adapter||b.adapter)(x).then(function(T){return A(x),T.data=V.call(x,T.data,T.headers,x.transformResponse),T},function(T){return R(T)||(A(x),T&&T.response&&(T.response.data=V.call(x,T.response.data,T.response.headers,x.transformResponse))),Promise.reject(T)})}},124:U=>{"use strict";U.exports=function(E,v,V,R,b){return E.config=v,V&&(E.code=V),E.request=R,E.response=b,E.isAxiosError=!0,E.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},E}},971:(U,ge,E)=>{"use strict";var v=E(701);U.exports=function(R,b){b=b||{};var C={};function A(_,me){return v.isPlainObject(_)&&v.isPlainObject(me)?v.merge(_,me):v.isPlainObject(me)?v.merge({},me):v.isArray(me)?me.slice():me}function M(_){return v.isUndefined(b[_])?v.isUndefined(R[_])?void 0:A(void 0,R[_]):A(R[_],b[_])}function x(_){if(!v.isUndefined(b[_]))return A(void 0,b[_])}function N(_){return v.isUndefined(b[_])?v.isUndefined(R[_])?void 0:A(void 0,R[_]):A(void 0,b[_])}function O(_){return _ in b?A(R[_],b[_]):_ in R?A(void 0,R[_]):void 0}var T={url:x,method:x,data:x,baseURL:N,transformRequest:N,transformResponse:N,paramsSerializer:N,timeout:N,timeoutMessage:N,withCredentials:N,adapter:N,responseType:N,xsrfCookieName:N,xsrfHeaderName:N,onUploadProgress:N,onDownloadProgress:N,decompress:N,maxContentLength:N,maxBodyLength:N,transport:N,httpAgent:N,httpsAgent:N,cancelToken:N,socketPath:N,responseEncoding:N,validateStatus:O};return v.forEach(Object.keys(R).concat(Object.keys(b)),function(me){var Be=T[me]||M,Ge=Be(me);v.isUndefined(Ge)&&Be!==O||(C[me]=Ge)}),C}},858:(U,ge,E)=>{"use strict";var v=E(593);U.exports=function(R,b,C){var A=C.config.validateStatus;C.status&&A&&!A(C.status)?b(v("Request failed with status code "+C.status,C.config,null,C.request,C)):R(C)}},134:(U,ge,E)=>{"use strict";var v=E(701),V=E(498);U.exports=function(b,C,A){var M=this||V;return v.forEach(A,function(N){b=N.call(M,b,C)}),b}},498:(U,ge,E)=>{"use strict";var v=E(701),V=E(620),R=E(124),b=E(867),C={"Content-Type":"application/x-www-form-urlencoded"};function A(O,T){!v.isUndefined(O)&&v.isUndefined(O["Content-Type"])&&(O["Content-Type"]=T)}var N={transitional:b,adapter:function M(){var O;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(O=E(729)),O}(),transformRequest:[function(T,_){return V(_,"Accept"),V(_,"Content-Type"),v.isFormData(T)||v.isArrayBuffer(T)||v.isBuffer(T)||v.isStream(T)||v.isFile(T)||v.isBlob(T)?T:v.isArrayBufferView(T)?T.buffer:v.isURLSearchParams(T)?(A(_,"application/x-www-form-urlencoded;charset=utf-8"),T.toString()):v.isObject(T)||_&&"application/json"===_["Content-Type"]?(A(_,"application/json"),function x(O,T,_){if(v.isString(O))try{return(T||JSON.parse)(O),v.trim(O)}catch(me){if("SyntaxError"!==me.name)throw me}return(_||JSON.stringify)(O)}(T)):T}],transformResponse:[function(T){var _=this.transitional||N.transitional,Ge=!(_&&_.silentJSONParsing)&&"json"===this.responseType;if(Ge||_&&_.forcedJSONParsing&&v.isString(T)&&T.length)try{return JSON.parse(T)}catch(Re){if(Ge)throw"SyntaxError"===Re.name?R(Re,this,"E_JSON_PARSE"):Re}return T}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(T){return T>=200&&T<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};v.forEach(["delete","get","head"],function(T){N.headers[T]={}}),v.forEach(["post","put","patch"],function(T){N.headers[T]=v.merge(C)}),U.exports=N},867:U=>{"use strict";U.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},773:U=>{U.exports={version:"0.26.1"}},414:U=>{"use strict";U.exports=function(E,v){return function(){for(var R=new Array(arguments.length),b=0;b<R.length;b++)R[b]=arguments[b];return E.apply(v,R)}}},625:(U,ge,E)=>{"use strict";var v=E(701);function V(R){return encodeURIComponent(R).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}U.exports=function(b,C,A){if(!C)return b;var M;if(A)M=A(C);else if(v.isURLSearchParams(C))M=C.toString();else{var x=[];v.forEach(C,function(T,_){null==T||(v.isArray(T)?_+="[]":T=[T],v.forEach(T,function(Be){v.isDate(Be)?Be=Be.toISOString():v.isObject(Be)&&(Be=JSON.stringify(Be)),x.push(V(_)+"="+V(Be))}))}),M=x.join("&")}if(M){var N=b.indexOf("#");-1!==N&&(b=b.slice(0,N)),b+=(-1===b.indexOf("?")?"?":"&")+M}return b}},554:U=>{"use strict";U.exports=function(E,v){return v?E.replace(/\/+$/,"")+"/"+v.replace(/^\/+/,""):E}},738:(U,ge,E)=>{"use strict";var v=E(701);U.exports=v.isStandardBrowserEnv()?{write:function(b,C,A,M,x,N){var O=[];O.push(b+"="+encodeURIComponent(C)),v.isNumber(A)&&O.push("expires="+new Date(A).toGMTString()),v.isString(M)&&O.push("path="+M),v.isString(x)&&O.push("domain="+x),!0===N&&O.push("secure"),document.cookie=O.join("; ")},read:function(b){var C=document.cookie.match(new RegExp("(^|;\\s*)("+b+")=([^;]*)"));return C?decodeURIComponent(C[3]):null},remove:function(b){this.write(b,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},692:U=>{"use strict";U.exports=function(E){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)}},603:(U,ge,E)=>{"use strict";var v=E(701);U.exports=function(R){return v.isObject(R)&&!0===R.isAxiosError}},100:(U,ge,E)=>{"use strict";var v=E(701);U.exports=v.isStandardBrowserEnv()?function(){var C,R=/(msie|trident)/i.test(navigator.userAgent),b=document.createElement("a");function A(M){var x=M;return R&&(b.setAttribute("href",x),x=b.href),b.setAttribute("href",x),{href:b.href,protocol:b.protocol?b.protocol.replace(/:$/,""):"",host:b.host,search:b.search?b.search.replace(/^\?/,""):"",hash:b.hash?b.hash.replace(/^#/,""):"",hostname:b.hostname,port:b.port,pathname:"/"===b.pathname.charAt(0)?b.pathname:"/"+b.pathname}}return C=A(window.location.href),function(x){var N=v.isString(x)?A(x):x;return N.protocol===C.protocol&&N.host===C.host}}():function(){return!0}},620:(U,ge,E)=>{"use strict";var v=E(701);U.exports=function(R,b){v.forEach(R,function(A,M){M!==b&&M.toUpperCase()===b.toUpperCase()&&(R[b]=A,delete R[M])})}},99:(U,ge,E)=>{"use strict";var v=E(701),V=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];U.exports=function(b){var A,M,x,C={};return b&&v.forEach(b.split("\n"),function(O){if(x=O.indexOf(":"),A=v.trim(O.substr(0,x)).toLowerCase(),M=v.trim(O.substr(x+1)),A){if(C[A]&&V.indexOf(A)>=0)return;C[A]="set-cookie"===A?(C[A]?C[A]:[]).concat([M]):C[A]?C[A]+", "+M:M}}),C}},211:U=>{"use strict";U.exports=function(E){return function(V){return E.apply(null,V)}}},828:(U,ge,E)=>{"use strict";var v=E(773).version,V={};["object","boolean","number","function","string","symbol"].forEach(function(C,A){V[C]=function(x){return typeof x===C||"a"+(A<1?"n ":" ")+C}});var R={};V.transitional=function(A,M,x){function N(O,T){return"[Axios v"+v+"] Transitional option '"+O+"'"+T+(x?". "+x:"")}return function(O,T,_){if(!1===A)throw new Error(N(T," has been removed"+(M?" in "+M:"")));return M&&!R[T]&&(R[T]=!0,console.warn(N(T," has been deprecated since v"+M+" and will be removed in the near future"))),!A||A(O,T,_)}},U.exports={assertOptions:function b(C,A,M){if("object"!=typeof C)throw new TypeError("options must be an object");for(var x=Object.keys(C),N=x.length;N-- >0;){var O=x[N],T=A[O];if(T){var _=C[O],me=void 0===_||T(_,O,C);if(!0!==me)throw new TypeError("option "+O+" must be "+me)}else if(!0!==M)throw Error("Unknown option "+O)}},validators:V}},701:(U,ge,E)=>{"use strict";var v=E(414),V=Object.prototype.toString;function R(I){return Array.isArray(I)}function b(I){return void 0===I}function A(I){return"[object ArrayBuffer]"===V.call(I)}function T(I){return null!==I&&"object"==typeof I}function _(I){if("[object Object]"!==V.call(I))return!1;var lt=Object.getPrototypeOf(I);return null===lt||lt===Object.prototype}function Re(I){return"[object Function]"===V.call(I)}function K(I,lt){if(null!=I)if("object"!=typeof I&&(I=[I]),R(I))for(var we=0,Lt=I.length;we<Lt;we++)lt.call(null,I[we],we,I);else for(var Ee in I)Object.prototype.hasOwnProperty.call(I,Ee)&&lt.call(null,I[Ee],Ee,I)}U.exports={isArray:R,isArrayBuffer:A,isBuffer:function C(I){return null!==I&&!b(I)&&null!==I.constructor&&!b(I.constructor)&&"function"==typeof I.constructor.isBuffer&&I.constructor.isBuffer(I)},isFormData:function M(I){return"[object FormData]"===V.call(I)},isArrayBufferView:function x(I){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(I):I&&I.buffer&&A(I.buffer)},isString:function N(I){return"string"==typeof I},isNumber:function O(I){return"number"==typeof I},isObject:T,isPlainObject:_,isUndefined:b,isDate:function me(I){return"[object Date]"===V.call(I)},isFile:function Be(I){return"[object File]"===V.call(I)},isBlob:function Ge(I){return"[object Blob]"===V.call(I)},isFunction:Re,isStream:function Ve(I){return T(I)&&Re(I.pipe)},isURLSearchParams:function vt(I){return"[object URLSearchParams]"===V.call(I)},isStandardBrowserEnv:function Fn(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:K,merge:function at(){var I={};function lt(Ee,Xe){I[Xe]=_(I[Xe])&&_(Ee)?at(I[Xe],Ee):_(Ee)?at({},Ee):R(Ee)?Ee.slice():Ee}for(var we=0,Lt=arguments.length;we<Lt;we++)K(arguments[we],lt);return I},extend:function hs(I,lt,we){return K(lt,function(Ee,Xe){I[Xe]=we&&"function"==typeof Ee?v(Ee,we):Ee}),I},trim:function nn(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")},stripBOM:function Yn(I){return 65279===I.charCodeAt(0)&&(I=I.slice(1)),I}}}},U=>{U(U.s=974)}]);