1 line
284 KiB
JavaScript
1 line
284 KiB
JavaScript
"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{435:()=>{function ie(e){return"function"==typeof e}function Mo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const rs=Mo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function So(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class wt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ie(r))try{r()}catch(i){t=i instanceof rs?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{th(i)}catch(s){t=t??[],s instanceof rs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new rs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)th(t);else{if(t instanceof wt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&So(n,t)}remove(t){const{_finalizers:n}=this;n&&So(n,t),t instanceof wt&&t._removeParent(this)}}wt.EMPTY=(()=>{const e=new wt;return e.closed=!0,e})();const Jf=wt.EMPTY;function eh(e){return e instanceof wt||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function th(e){ie(e)?e():e.unsubscribe()}const zn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},os={setTimeout(e,t,...n){const{delegate:r}=os;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=os;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function nh(e){os.setTimeout(()=>{const{onUnhandledError:t}=zn;if(!t)throw e;t(e)})}function rh(){}const yE=bu("C",void 0,void 0);function bu(e,t,n){return{kind:e,value:t,error:n}}let Gn=null;function is(e){if(zn.useDeprecatedSynchronousErrorHandling){const t=!Gn;if(t&&(Gn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Gn;if(Gn=null,n)throw r}}else e()}class Mu extends wt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,eh(t)&&t.add(this)):this.destination=bE}static create(t,n,r){return new Io(t,n,r)}next(t){this.isStopped?Iu(function DE(e){return bu("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Iu(function vE(e){return bu("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Iu(yE,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _E=Function.prototype.bind;function Su(e,t){return _E.call(e,t)}class wE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ss(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ss(r)}else ss(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ss(n)}}}class Io extends Mu{constructor(t,n,r){let o;if(super(),ie(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&zn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Su(t.next,i),error:t.error&&Su(t.error,i),complete:t.complete&&Su(t.complete,i)}):o=t}this.destination=new wE(o)}}function ss(e){zn.useDeprecatedSynchronousErrorHandling?function CE(e){zn.useDeprecatedSynchronousErrorHandling&&Gn&&(Gn.errorThrown=!0,Gn.error=e)}(e):nh(e)}function Iu(e,t){const{onStoppedNotification:n}=zn;n&&os.setTimeout(()=>n(e,t))}const bE={closed:!0,next:rh,error:function EE(e){throw e},complete:rh},Au="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wn(e){return e}function oh(e){return 0===e.length?Wn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let _e=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function IE(e){return e&&e instanceof Mu||function SE(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}(e)&&eh(e)}(n)?n:new Io(n,r,o);return is(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=ih(r))((o,i)=>{const s=new Io({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Au](){return this}pipe(...n){return oh(n)(this)}toPromise(n){return new(n=ih(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ih(e){var t;return null!==(t=e??zn.Promise)&&void 0!==t?t:Promise}const AE=Mo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ln=(()=>{class e extends _e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new sh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new AE}next(n){is(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){is(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){is(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Jf:(this.currentObservers=null,i.push(n),new wt(()=>{this.currentObservers=null,So(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new _e;return n.source=this,n}}return e.create=(t,n)=>new sh(t,n),e})();class sh extends ln{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Jf}}function ah(e){return ie(e?.lift)}function He(e){return t=>{if(ah(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Le(e,t,n,r,o){return new TE(e,t,n,r,o)}class TE extends Mu{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function X(e,t){return He((n,r)=>{let o=0;n.subscribe(Le(r,i=>{r.next(e.call(t,i,o++))}))})}function qn(e){return this instanceof qn?(this.v=e,this):new qn(e)}function xE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function ch(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const dh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function fh(e){return ie(e?.then)}function hh(e){return ie(e[Au])}function ph(e){return Symbol.asyncIterator&&ie(e?.[Symbol.asyncIterator])}function gh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const mh=function FE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function yh(e){return ie(e?.[mh])}function vh(e){return function OE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof qn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield qn(n.read());if(o)return yield qn(void 0);yield yield qn(r)}}finally{n.releaseLock()}})}function Dh(e){return ie(e?.getReader)}function Et(e){if(e instanceof _e)return e;if(null!=e){if(hh(e))return function kE(e){return new _e(t=>{const n=e[Au]();if(ie(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(dh(e))return function LE(e){return new _e(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(fh(e))return function VE(e){return new _e(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,nh)})}(e);if(ph(e))return Ch(e);if(yh(e))return function HE(e){return new _e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Dh(e))return function jE(e){return Ch(vh(e))}(e)}throw gh(e)}function Ch(e){return new _e(t=>{(function BE(e,t){var n,r,o,i;return function NE(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=xE(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function cn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function je(e,t,n=1/0){return ie(t)?je((r,o)=>X((i,s)=>t(r,i,o,s))(Et(e(r,o))),n):("number"==typeof t&&(n=t),He((r,o)=>function $E(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=m=>l<r?p(m):u.push(m),p=m=>{i&&t.next(m),l++;let y=!1;Et(n(m,c++)).subscribe(Le(t,_=>{o?.(_),i?h(_):t.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;u.length&&l<r;){const _=u.shift();s?cn(t,s,()=>p(_)):p(_)}f()}catch(_){t.error(_)}}))};return e.subscribe(Le(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function vr(e=1/0){return je(Wn,e)}const Ut=new _e(e=>e.complete());function Nu(e){return e[e.length-1]}function _h(e){return ie(Nu(e))?e.pop():void 0}function Ao(e){return function zE(e){return e&&ie(e.schedule)}(Nu(e))?e.pop():void 0}function wh(e,t=0){return He((n,r)=>{n.subscribe(Le(r,o=>cn(r,e,()=>r.next(o),t),()=>cn(r,e,()=>r.complete(),t),o=>cn(r,e,()=>r.error(o),t)))})}function Eh(e,t=0){return He((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function bh(e,t){if(!e)throw new Error("Iterable cannot be null");return new _e(n=>{cn(n,t,()=>{const r=e[Symbol.asyncIterator]();cn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Re(e,t){return t?function XE(e,t){if(null!=e){if(hh(e))return function WE(e,t){return Et(e).pipe(Eh(t),wh(t))}(e,t);if(dh(e))return function ZE(e,t){return new _e(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(fh(e))return function qE(e,t){return Et(e).pipe(Eh(t),wh(t))}(e,t);if(ph(e))return bh(e,t);if(yh(e))return function YE(e,t){return new _e(n=>{let r;return cn(n,t,()=>{r=e[mh](),cn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ie(r?.return)&&r.return()})}(e,t);if(Dh(e))return function QE(e,t){return bh(vh(e),t)}(e,t)}throw gh(e)}(e,t):Et(e)}function Ru(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Io({next:()=>{r.unsubscribe(),e()}});return Et(t(...n)).subscribe(r)}function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function Ou(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function xu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const eb=te({__forward_ref__:te});function ae(e){return e.__forward_ref__=ae,e.toString=function(){return Oe(this())},e}function V(e){return Pu(e)?e():e}function Pu(e){return"function"==typeof e&&e.hasOwnProperty(eb)&&e.__forward_ref__===ae}function Fu(e){return e&&!!e.\u0275providers}const Mh="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function ku(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function H(e){return"string"==typeof e?e:null==e?"":String(e)}function as(e,t){throw new C(-201,!1)}function bt(e,t){null==e&&function ee(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mt(e){return{providers:e.providers||[],imports:e.imports||[]}}function us(e){return Sh(e,ls)||Sh(e,Ah)}function Sh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ih(e){return e&&(e.hasOwnProperty(Lu)||e.hasOwnProperty(ub))?e[Lu]:null}const ls=te({\u0275prov:te}),Lu=te({\u0275inj:te}),Ah=te({ngInjectableDef:te}),ub=te({ngInjectorDef:te});var O=(()=>((O=O||{})[O.Default=0]="Default",O[O.Host=1]="Host",O[O.Self=2]="Self",O[O.SkipSelf=4]="SkipSelf",O[O.Optional=8]="Optional",O))();let Vu;function nt(e){const t=Vu;return Vu=e,t}function Nh(e,t,n){const r=us(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&O.Optional?null:void 0!==t?t:void as(Oe(e))}const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),To={},Hu="__NG_DI_FLAG__",cs="ngTempTokenPath",cb=/\n/gm,Rh="__source";let Dr;function Tn(e){const t=Dr;return Dr=e,t}function hb(e,t=O.Default){if(void 0===Dr)throw new C(-203,!1);return null===Dr?Nh(e,void 0,t):Dr.get(e,t&O.Optional?null:void 0,t)}function I(e,t=O.Default){return(function Th(){return Vu}()||hb)(V(e),t)}function M(e,t=O.Default){return I(e,ds(t))}function ds(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ju(e){const t=[];for(let n=0;n<e.length;n++){const r=V(e[n]);if(Array.isArray(r)){if(0===r.length)throw new C(900,!1);let o,i=O.Default;for(let s=0;s<r.length;s++){const a=r[s],u=pb(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(I(o,i))}else t.push(I(r))}return t}function No(e,t){return e[Hu]=t,e.prototype[Hu]=t,e}function pb(e){return e[Hu]}function dn(e){return{toString:e}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),ht=(()=>{return(e=ht||(ht={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ht;var e})();const fn={},Q=[],fs=te({\u0275cmp:te}),Bu=te({\u0275dir:te}),$u=te({\u0275pipe:te}),xh=te({\u0275mod:te}),hn=te({\u0275fac:te}),Ro=te({__NG_ELEMENT_ID__:te}),Ph=te({__NG_ENV_ID__:te});function Fh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Uu(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Lh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function kh(e){return 3===e||4===e||6===e}function Lh(e){return 64===e.charCodeAt(0)}function Oo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Vh(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Vh(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const Hh="ng-template";function yb(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==Fh(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function jh(e){return 4===e.type&&e.value!==Hh}function vb(e,t,n){return t===(4!==e.type||n?e.value:Hh)}function Db(e,t,n){let r=4;const o=e.attrs||[],i=function wb(e){for(let t=0;t<e.length;t++)if(kh(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!vb(e,u,n)||""===u&&1===t.length){if(Rt(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!yb(e.attrs,l,n)){if(Rt(r))return!1;s=!0}continue}const d=Cb(8&r?"class":u,o,jh(e),n);if(-1===d){if(Rt(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Fh(h,l,0)||2&r&&l!==f){if(Rt(r))return!1;s=!0}}}}else{if(!s&&!Rt(r)&&!Rt(u))return!1;if(s&&Rt(u))continue;s=!1,r=u|1&r}}return Rt(r)||s}function Rt(e){return 0==(1&e)}function Cb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function Eb(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Bh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Db(e,t[r],n))return!0;return!1}function $h(e,t){return e?":not("+t.trim()+")":t}function Mb(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Rt(s)&&(t+=$h(i,o),o=""),r=s,i=i||!Rt(r);n++}return""!==o&&(t+=$h(i,o)),t}function Nn(e){return dn(()=>{const t=zh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""};Gh(n);const r=e.dependencies;return n.directiveDefs=hs(r,!1),n.pipeDefs=hs(r,!0),n.id=function xb(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Tb(e){return K(e)||ze(e)}function Nb(e){return null!==e}function Ot(e){return dn(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Uh(e,t){if(null==e)return fn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function L(e){return dn(()=>{const t=zh(e);return Gh(t),t})}function rt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function K(e){return e[fs]||null}function ze(e){return e[Bu]||null}function ot(e){return e[$u]||null}function pt(e,t){const n=e[xh]||null;if(!n&&!0===t)throw new Error(`Type ${Oe(e)} does not have '\u0275mod' property.`);return n}function zh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Uh(e.inputs,t),outputs:Uh(e.outputs)}}function Gh(e){e.features?.forEach(t=>t(e))}function hs(e,t){if(!e)return null;const n=t?ot:Tb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Nb)}const xe=0,E=1,$=2,pe=3,xt=4,Zn=5,Ge=6,_r=7,ve=8,wr=9,Yn=10,j=11,xo=12,Wh=13,Er=14,Se=15,Po=16,br=17,Gt=18,Fo=19,qh=20,Rn=21,pn=22,ps=23,gs=24,Z=25,zu=1,Zh=2,Wt=7,ms=8,Mr=9,Be=11;function gt(e){return Array.isArray(e)&&"object"==typeof e[zu]}function it(e){return Array.isArray(e)&&!0===e[zu]}function Gu(e){return 0!=(4&e.flags)}function Qn(e){return e.componentOffset>-1}function ys(e){return 1==(1&e.flags)}function Pt(e){return!!e.template}function Wu(e){return 0!=(512&e[$])}function Xn(e,t){return e.hasOwnProperty(hn)?e[hn]:null}let Vb=ue.WeakRef??class Lb{constructor(t){this.ref=t}deref(){return this.ref}},jb=0,qt=null,vs=!1;function Ve(e){const t=qt;return qt=e,t}class Jh{constructor(){this.id=jb++,this.ref=function Hb(e){return new Vb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=vs;vs=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{vs=t}}producerAccessed(){if(vs)throw new Error("");if(null===qt)return;let t=qt.producers.get(this.id);void 0===t?(t={consumerNode:qt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:qt.trackingVersion},qt.producers.set(this.id,t),this.consumers.set(qt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=qt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==qt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let ep=null;const tp=()=>{};class zb extends Jh{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=tp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=Ve(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=tp,this.watch(this.registerOnCleanup)}finally{Ve(t)}}cleanup(){this.cleanupFn()}}class Gb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function St(){return np}function np(e){return e.type.prototype.ngOnChanges&&(e.setInput=qb),Wb}function Wb(){const e=op(this),t=e?.current;if(t){const n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function qb(e,t,n,r){const o=this.declaredInputs[n],i=op(e)||function Zb(e,t){return e[rp]=t}(e,{previous:fn,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new Gb(u&&u.currentValue,t,a===fn),e[r]=t}St.ngInherit=!0;const rp="__ngSimpleChanges__";function op(e){return e[rp]||null}const Zt=function(e,t,n){};function de(e){for(;Array.isArray(e);)e=e[xe];return e}function _s(e,t){return de(t[e])}function st(e,t){return de(t[e.index])}function ap(e,t){return e.data[t]}function at(e,t){const n=t[e];return gt(n)?n:n[xe]}function ws(e){return 128==(128&e[$])}function On(e,t){return null==t?null:e[t]}function up(e){e[br]=0}function eM(e){1024&e[$]||(e[$]|=1024,cp(e,1))}function lp(e){1024&e[$]&&(e[$]&=-1025,cp(e,-1))}function cp(e,t){let n=e[pe];if(null===n)return;n[Zn]+=t;let r=n;for(n=n[pe];null!==n&&(1===t&&1===r[Zn]||-1===t&&0===r[Zn]);)n[Zn]+=t,r=n,n=n[pe]}const k={lFrame:_p(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function hp(){return k.bindingsEnabled}function v(){return k.lFrame.lView}function Y(){return k.lFrame.tView}function Lo(e){return k.lFrame.contextLView=e,e[ve]}function Vo(e){return k.lFrame.contextLView=null,e}function $e(){let e=pp();for(;null!==e&&64===e.type;)e=e.parent;return e}function pp(){return k.lFrame.currentTNode}function Yt(e,t){const n=k.lFrame;n.currentTNode=e,n.isParent=t}function Ku(){return k.lFrame.isParent}function Ye(){const e=k.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ar(){return k.lFrame.bindingIndex++}function fM(e,t){const n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,el(t)}function el(e){k.lFrame.currentDirectiveIndex=e}function vp(){return k.lFrame.currentQueryIndex}function nl(e){k.lFrame.currentQueryIndex=e}function pM(e){const t=e[E];return 2===t.type?t.declTNode:1===t.type?e[Ge]:null}function Dp(e,t,n){if(n&O.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&O.Host||(o=pM(i),null===o||(i=i[Er],10&o.type))););if(null===o)return!1;t=o,e=i}const r=k.lFrame=Cp();return r.currentTNode=t,r.lView=e,!0}function rl(e){const t=Cp(),n=e[E];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cp(){const e=k.lFrame,t=null===e?null:e.child;return null===t?_p(e):t}function _p(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function wp(){const e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ep=wp;function ol(){const e=wp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Qe(){return k.lFrame.selectedIndex}function Kn(e){k.lFrame.selectedIndex=e}function ge(){const e=k.lFrame;return ap(e.tView,e.selectedIndex)}let Mp=!0;function Es(){return Mp}function xn(e){Mp=e}function bs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function Ms(e,t,n){Sp(e,t,3,n)}function Ss(e,t,n,r){(3&e[$])===n&&Sp(e,t,n,r)}function il(e,t){let n=e[$];(3&n)===t&&(n&=4095,n+=1,e[$]=n)}function Sp(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[br]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[br]+=65536),(a<i||-1==i)&&(wM(e,n,t,u),e[br]=(4294901760&e[br])+u+2),u++}function Ip(e,t){Zt(4,e,t);const n=Ve(null);try{t.call(e)}finally{Ve(n),Zt(5,e,t)}}function wM(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[$]>>12<e[br]>>16&&(3&e[$])===t&&(e[$]+=4096,Ip(a,i)):Ip(a,i)}const Tr=-1;class jo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ap(e){return e!==Tr}function Is(e){return 32767&e}function As(e,t){let n=function SM(e){return e>>16}(e),r=t;for(;n>0;)r=r[Er],n--;return r}let al=!0;function Ts(e){const t=al;return al=e,t}const Tp=255,Np=5;let IM=0;const Qt={};function Ns(e,t){const n=Rp(e,t);if(-1!==n)return n;const r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,ul(r.data,e),ul(t,null),ul(r.blueprint,null));const o=ll(e,t),i=e.injectorIndex;if(Ap(o)){const s=Is(o),a=As(o,t),u=a[E].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ul(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ll(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Vp(o),null===r)return Tr;if(n++,o=o[Er],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Tr}function cl(e,t,n){!function AM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ro)&&(r=n[Ro]),null==r&&(r=n[Ro]=IM++);const o=r&Tp;t.data[e+(o>>Np)]|=1<<o}(e,t,n)}function Op(e,t,n){if(n&O.Optional||void 0!==e)return e;as()}function xp(e,t,n,r){if(n&O.Optional&&void 0===r&&(r=null),!(n&(O.Self|O.Host))){const o=e[wr],i=nt(void 0);try{return o?o.get(t,r,n&O.Optional):Nh(t,r,n&O.Optional)}finally{nt(i)}}return Op(r,0,n)}function Pp(e,t,n,r=O.Default,o){if(null!==e){if(2048&t[$]){const s=function xM(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[$]&&!(512&s[$]);){const a=Fp(i,s,n,r|O.Self,Qt);if(a!==Qt)return a;let u=i.parent;if(!u){const l=s[qh];if(l){const c=l.get(n,Qt,r);if(c!==Qt)return c}u=Vp(s),s=s[Er]}i=u}return o}(e,t,n,r,Qt);if(s!==Qt)return s}const i=Fp(e,t,n,r,Qt);if(i!==Qt)return i}return xp(t,n,r,o)}function Fp(e,t,n,r,o){const i=function RM(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ro)?e[Ro]:void 0;return"number"==typeof t?t>=0?t&Tp:OM:t}(n);if("function"==typeof i){if(!Dp(t,e,r))return r&O.Host?Op(o,0,r):xp(t,n,r,o);try{const s=i(r);if(null!=s||r&O.Optional)return s;as()}finally{Ep()}}else if("number"==typeof i){let s=null,a=Rp(e,t),u=Tr,l=r&O.Host?t[Se][Ge]:null;for((-1===a||r&O.SkipSelf)&&(u=-1===a?ll(e,t):t[a+8],u!==Tr&&Lp(r,!1)?(s=t[E],a=Is(u),t=As(u,t)):a=-1);-1!==a;){const c=t[E];if(kp(i,a,c.data)){const d=NM(a,t,n,s,r,l);if(d!==Qt)return d}u=t[a+8],u!==Tr&&Lp(r,t[E].data[a+8]===l)&&kp(i,a,t)?(s=c,a=Is(u),t=As(u,t)):a=-1}}return o}function NM(e,t,n,r,o,i){const s=t[E],a=s.data[e+8],c=Rs(a,s,n,null==r?Qn(a)&&al:r!=s&&0!=(3&a.type),o&O.Host&&i===a);return null!==c?Jn(t,s,c,a):Qt}function Rs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Pt(h)&&h.type===n)return u}return null}function Jn(e,t,n,r){let o=e[n];const i=t.data;if(function EM(e){return e instanceof jo}(o)){const s=o;s.resolving&&function tb(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function J(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():H(e)}(i[n]));const a=Ts(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?nt(s.injectImpl):null;Dp(e,r,O.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function _M(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=np(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==u&&nt(u),Ts(a),s.resolving=!1,Ep()}}return o}function kp(e,t,n){return!!(n[t+(e>>Np)]&1<<e)}function Lp(e,t){return!(e&O.Self||e&O.Host&&t)}class Nr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Pp(this._tNode,this._lView,t,ds(r),n)}}function OM(){return new Nr($e(),v())}function Ue(e){return dn(()=>{const t=e.prototype.constructor,n=t[hn]||dl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[hn]||dl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function dl(e){return Pu(e)?()=>{const t=dl(V(e));return t&&t()}:Xn(e)}function Vp(e){const t=e[E],n=t.type;return 2===n?t.declTNode:1===n?e[Ge]:null}const Or="__parameters__";function Pr(e,t,n){return dn(()=>{const r=function fl(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Or)?u[Or]:Object.defineProperty(u,Or,{value:[]})[Or];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Uo(e,t){e.forEach(n=>Array.isArray(n)?Uo(n,t):t(n))}function jp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function mt(e,t,n){let r=Fr(e,t);return r>=0?e[1|r]=n:(r=~r,function VM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function hl(e,t){const n=Fr(e,t);if(n>=0)return e[1|n]}function Fr(e,t){return function Bp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Fs=No(Pr("Optional"),8),ks=No(Pr("SkipSelf"),4);function Hs(e){return 128==(128&e.flags)}var ut=(()=>((ut=ut||{})[ut.Important=1]="Important",ut[ut.DashCase=2]="DashCase",ut))();const Cl=new Map;let uS=0;const wl="__ngContext__";function We(e,t){gt(t)?(e[wl]=t[Fo],function cS(e){Cl.set(e[Fo],e)}(t)):e[wl]=t}let El;function bl(e,t){return El(e,t)}function qo(e){const t=e[pe];return it(t)?t[pe]:t}function Ml(e){return sg(e[xo])}function Sl(e){return sg(e[xt])}function sg(e){for(;null!==e&&!it(e);)e=e[xt];return e}function Vr(e,t,n,r,o){if(null!=r){let i,s=!1;it(r)?i=r:gt(r)&&(s=!0,r=r[xe]);const a=de(r);0===e&&null!==n?null==o?dg(t,n,a):er(t,n,a,o||null,!0):1===e&&null!==n?er(t,n,a,o||null,!0):2===e?function Gs(e,t,n){const r=Us(e,t);r&&function TS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function OS(e,t,n,r,o){const i=n[Wt];i!==de(n)&&Vr(t,e,r,i,o);for(let a=Be;a<n.length;a++){const u=n[a];Yo(u[E],u,e,t,r,i)}}(t,e,i,n,o)}}function $s(e,t,n){return e.createElement(t,n)}function ug(e,t){const n=e[Mr],r=n.indexOf(t);lp(t),n.splice(r,1)}function Al(e,t){if(e.length<=Be)return;const n=Be+t,r=e[n];if(r){const o=r[Po];null!==o&&o!==e&&ug(o,r),t>0&&(e[n-1][xt]=r[xt]);const i=xs(e,Be+t);!function _S(e,t){Yo(e,t,t[j],2,null,null),t[xe]=null,t[Ge]=null}(r[E],r);const s=i[Gt];null!==s&&s.detachView(i[E]),r[pe]=null,r[xt]=null,r[$]&=-129}return r}function lg(e,t){if(!(256&t[$])){const n=t[j];t[ps]?.destroy(),t[gs]?.destroy(),n.destroyNode&&Yo(e,t,n,3,null,null),function bS(e){let t=e[xo];if(!t)return Tl(e[E],e);for(;t;){let n=null;if(gt(t))n=t[xo];else{const r=t[Be];r&&(n=r)}if(!n){for(;t&&!t[xt]&&t!==e;)gt(t)&&Tl(t[E],t),t=t[pe];null===t&&(t=e),gt(t)&&Tl(t[E],t),n=t&&t[xt]}t=n}}(t)}}function Tl(e,t){if(!(256&t[$])){t[$]&=-129,t[$]|=256,function AS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof jo)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];Zt(4,a,u);try{u.call(a)}finally{Zt(5,a,u)}}else{Zt(4,o,i);try{i.call(o)}finally{Zt(5,o,i)}}}}}(e,t),function IS(e,t){const n=e.cleanup,r=t[_r];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[_r]=null);const o=t[Rn];if(null!==o){for(let i=0;i<o.length;i++)(0,o[i])();t[Rn]=null}}(e,t),1===t[E].type&&t[j].destroy();const n=t[Po];if(null!==n&&it(t[pe])){n!==t[pe]&&ug(n,t);const r=t[Gt];null!==r&&r.detachView(e)}!function dS(e){Cl.delete(e[Fo])}(t)}}function Nl(e,t,n){return function cg(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[xe];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===ht.None||i===ht.Emulated)return null}return st(r,n)}}(e,t.parent,n)}function er(e,t,n,r,o){e.insertBefore(t,n,r,o)}function dg(e,t,n){e.appendChild(t,n)}function fg(e,t,n,r,o){null!==r?er(e,t,n,r,o):dg(e,t,n)}function Us(e,t){return e.parentNode(t)}let Rl,Fl,qs,gg=function pg(e,t,n){return 40&e.type?st(e,n):null};function zs(e,t,n,r){const o=Nl(e,r,t),i=t[j],a=function hg(e,t,n){return gg(e,t,n)}(r.parent||t[Ge],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)fg(i,o,n[u],a,!1);else fg(i,o,n,a,!1);void 0!==Rl&&Rl(i,r,t,n,o)}function Zo(e,t){if(null!==t){const n=t.type;if(3&n)return st(t,e);if(4&n)return Ol(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Zo(e,r);{const o=e[t.index];return it(o)?Ol(-1,o):de(o)}}if(32&n)return bl(t,e)()||de(e[t.index]);{const r=yg(e,t);return null!==r?Array.isArray(r)?r[0]:Zo(qo(e[Se]),r):Zo(e,t.next)}}return null}function yg(e,t){return null!==t?e[Se][Ge].projection[t.projection]:null}function Ol(e,t){const n=Be+e+1;if(n<t.length){const r=t[n],o=r[E].firstChild;if(null!==o)return Zo(r,o)}return t[Wt]}function xl(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&We(de(a),r),n.flags|=2),32!=(32&n.flags))if(8&u)xl(e,t,n.child,r,o,i,!1),Vr(t,e,o,a,i);else if(32&u){const l=bl(n,r);let c;for(;c=l();)Vr(t,e,o,c,i);Vr(t,e,o,a,i)}else 16&u?Dg(e,t,r,n,o,i):Vr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Yo(e,t,n,r,o,i){xl(n,r,e.firstChild,t,o,i,!1)}function Dg(e,t,n,r,o,i){const s=n[Se],u=s[Ge].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Vr(t,e,o,u[l],i);else{let l=u;const c=s[pe];Hs(r)&&(l.flags|=128),xl(e,t,l,c,o,i,!0)}}function Cg(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function _g(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&Uu(e,t,r),null!==o&&Cg(e,t,o),null!==i&&function PS(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function bg(e){return function kl(){if(void 0===qs&&(qs=null,ue.trustedTypes))try{qs=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return qs}()?.createScriptURL(e)||e}class Mg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mh})`}}function Pn(e){return e instanceof Mg?e.changingThisBreaksApplicationSecurity:e}function Xo(e,t){const n=function zS(e){return e instanceof Mg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Mh})`)}return n===t}const ZS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ie=(()=>((Ie=Ie||{})[Ie.NONE=0]="NONE",Ie[Ie.HTML=1]="HTML",Ie[Ie.STYLE=2]="STYLE",Ie[Ie.SCRIPT=3]="SCRIPT",Ie[Ie.URL=4]="URL",Ie[Ie.RESOURCE_URL=5]="RESOURCE_URL",Ie))();function Og(e){const t=Jo();return t?t.sanitize(Ie.URL,e)||"":Xo(e,"URL")?Pn(e):function Ll(e){return(e=String(e)).match(ZS)?e:"unsafe:"+e}(H(e))}function xg(e){const t=Jo();if(t)return bg(t.sanitize(Ie.RESOURCE_URL,e)||"");if(Xo(e,"ResourceURL"))return bg(Pn(e));throw new C(904,!1)}function Jo(){const e=v();return e&&e[Yn].sanitizer}class S{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ei=new S("ENVIRONMENT_INITIALIZER"),Fg=new S("INJECTOR",-1),kg=new S("INJECTOR_DEF_TYPES");class Lg{get(t,n=To){if(n===To){const r=new Error(`NullInjectorError: No provider for ${Oe(t)}!`);throw r.name="NullInjectorError",r}return n}}function aI(...e){return{\u0275providers:Vg(0,e),\u0275fromNgModule:!0}}function Vg(e,...t){const n=[],r=new Set;let o;return Uo(t,i=>{const s=i;$l(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Hg(o,n),n}function Hg(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];Ul(o,i=>{t.push(i)})}}function $l(e,t,n,r){if(!(e=V(e)))return!1;let o=null,i=Ih(e);const s=!i&&K(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ih(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)$l(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Uo(i.imports,c=>{$l(c,t,n,r)&&(l||=[],l.push(c))})}finally{}void 0!==l&&Hg(l,t)}if(!a){const l=Xn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:Q},{provide:kg,useValue:o,multi:!0},{provide:ei,useValue:()=>I(o),multi:!0})}const u=i.providers;null==u||a||Ul(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Ul(e,t){for(let n of e)Fu(n)&&(n=n.\u0275providers),Array.isArray(n)?Ul(n,t):t(n)}const uI=te({provide:String,useValue:te});function zl(e){return null!==e&&"object"==typeof e&&uI in e}function tr(e){return"function"==typeof e}const Gl=new S("Set Injector scope."),Ys={},cI={};let Wl;function Qs(){return void 0===Wl&&(Wl=new Lg),Wl}class Xt{}class ql extends Xt{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yl(t,s=>this.processProvider(s)),this.records.set(Fg,jr(void 0,this)),o.has("environment")&&this.records.set(Xt,jr(void 0,this));const i=this.records.get(Gl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kg.multi,Q,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Tn(this),r=nt(void 0);try{return t()}finally{Tn(n),nt(r)}}get(t,n=To,r=O.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ph))return t[Ph](this);r=ds(r);const o=Tn(this),i=nt(void 0);try{if(!(r&O.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function gI(e){return"function"==typeof e||"object"==typeof e&&e instanceof S}(t)&&us(t);a=u&&this.injectableDefInScope(u)?jr(Zl(t),Ys):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&O.Self?Qs():this.parent).get(t,n=r&O.Optional&&n===To?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[cs]=s[cs]||[]).unshift(Oe(t)),o)throw s;return function gb(e,t,n,r){const o=e[cs];throw t[Rh]&&o.unshift(t[Rh]),e.message=function mb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Oe(t);if(Array.isArray(t))o=t.map(Oe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(cb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[cs]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{nt(i),Tn(o)}}resolveInjectorInitializers(){const t=Tn(this),n=nt(void 0);try{const r=this.get(ei.multi,Q,O.Self);for(const o of r)o()}finally{Tn(t),nt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=tr(t=V(t))?t:V(t&&t.provide);const r=function fI(e){return zl(e)?jr(void 0,e.useValue):jr($g(e),Ys)}(t);if(tr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=jr(void 0,Ys,!0),o.factory=()=>ju(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ys&&(n.value=cI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function pI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=V(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Zl(e){const t=us(e),n=null!==t?t.factory:Xn(e);if(null!==n)return n;if(e instanceof S)throw new C(204,!1);if(e instanceof Function)return function dI(e){const t=e.length;if(t>0)throw function zo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new C(204,!1);const n=function ab(e){return e&&(e[ls]||e[Ah])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function $g(e,t,n){let r;if(tr(e)){const o=V(e);return Xn(o)||Zl(o)}if(zl(e))r=()=>V(e.useValue);else if(function Bg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ju(e.deps||[]));else if(function jg(e){return!(!e||!e.useExisting)}(e))r=()=>I(V(e.useExisting));else{const o=V(e&&(e.useClass||e.provide));if(!function hI(e){return!!e.deps}(e))return Xn(o)||Zl(o);r=()=>new o(...ju(e.deps))}return r}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Yl(e,t){for(const n of e)Array.isArray(n)?Yl(n,t):n&&Fu(n)?Yl(n.\u0275providers,t):t(n)}const Xs=new S("AppId",{providedIn:"root",factory:()=>mI}),mI="ng",Ug=new S("Platform Initializer"),nr=new S("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),zg=new S("CSP nonce",{providedIn:"root",factory:()=>function Qo(){if(void 0!==Fl)return Fl;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Wg=(e,t)=>null;function qg(e,t){return Wg(e,t)}class SI{}class Qg{}class AI{resolveComponentFactory(t){throw function II(e){const t=Error(`No component factory found for ${Oe(e)}.`);return t.ngComponent=e,t}(t)}}let na=(()=>{class e{}return e.NULL=new AI,e})();function TI(){return Br($e(),v())}function Br(e,t){return new yt(st(e,t))}let yt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=TI,e})();function NI(e){return e instanceof yt?e.nativeElement:e}class Kg{}let vn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function RI(){const e=v(),n=at($e().index,e);return(gt(n)?n:e)[j]}(),e})(),OI=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null}),e})();class oi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xI=new oi("16.0.1"),sc={};function ii(e){for(;e;){e[$]|=64;const t=qo(e);if(Wu(e)&&!t)return e;e=t}return null}function ac(e){return e.ngOriginalError}class rr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ac(t);for(;n&&ac(n);)n=ac(n);return n||null}}const tm=new S("",{providedIn:"root",factory:()=>!1});function Dn(e){return e instanceof Function?e():e}class om extends Jh{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){ii(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=Ve(this);this.trackingVersion++;try{t(n,r)}finally{Ve(o)}}destroy(){this.trackingVersion++}}let oa=null;function im(){return oa??=new om,oa}function sm(e,t){return e[t]??im()}function am(e,t){const n=im();n.hasReadASignal&&(e[t]=oa,n.lView=e,oa=new om)}const B={};function ne(e){um(Y(),v(),Qe()+e,!1)}function um(e,t,n,r){if(!r)if(3==(3&t[$])){const i=e.preOrderCheckHooks;null!==i&&Ms(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ss(t,i,0,n)}Kn(n)}function fm(e,t=null,n=null,r){const o=hm(e,t,n,r);return o.resolveInjectorInitializers(),o}function hm(e,t=null,n=null,r,o=new Set){const i=[n||Q,aI(e)];return r=r||("object"==typeof e?void 0:Oe(e)),new ql(i,t||Qs(),r||null,o)}let Kt=(()=>{class e{static create(n,r){if(Array.isArray(n))return fm({name:""},r,n,"");{const o=n.name??"";return fm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=To,e.NULL=new Lg,e.\u0275prov=A({token:e,providedIn:"any",factory:()=>I(Fg)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=O.Default){const n=v();return null===n?I(e,t):Pp($e(),n,V(e),t)}function ia(e,t,n,r,o,i,s,a,u,l,c){const d=t.blueprint.slice();return d[xe]=o,d[$]=140|r,(null!==l||e&&2048&e[$])&&(d[$]|=2048),up(d),d[pe]=d[Er]=e,d[ve]=n,d[Yn]=s||e&&e[Yn],d[j]=a||e&&e[j],d[wr]=u||e&&e[wr]||null,d[Ge]=i,d[Fo]=function lS(){return uS++}(),d[pn]=c,d[qh]=l,d[Se]=2==t.type?e[Se]:d,d}function Ur(e,t,n,r,o){let i=e.data[t];if(null===i)i=function uc(e,t,n,r,o){const i=pp(),s=Ku(),u=e.data[t]=function e0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Ir(){return null!==k.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,t,n,r,o),function dM(){return k.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Ho(){const e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Yt(i,!0),i}function si(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function gm(e,t,n,r,o){const i=sm(t,ps),s=Qe(),a=2&r;try{if(Kn(-1),a&&t.length>Z&&um(e,t,Z,!1),Zt(a?2:0,o),a)i.runInContext(n,r,o);else{const l=Ve(null);try{n(r,o)}finally{Ve(l)}}}finally{a&&null===t[ps]&&am(t,ps),Kn(s),Zt(a?3:1,o)}}function lc(e,t,n){if(Gu(t)){const r=Ve(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{Ve(r)}}}function cc(e,t,n){hp()&&(function u0(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;Qn(n)&&function g0(e,t,n){const r=st(t,e),s=sa(e,ia(e,mm(n),null,n.onPush?64:16,r,t,null,e[Yn].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ns(n,t),We(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],l=Jn(t,e,a,n);We(l,t),null!==s&&m0(0,a-o,l,u,0,s),Pt(u)&&(at(n.index,t)[ve]=Jn(t,e,a,n))}}(e,t,n,st(n,t)),64==(64&n.flags)&&_m(e,t,n))}function dc(e,t,n=st){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function mm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=fc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function fc(e,t,n,r,o,i,s,a,u,l,c){const d=Z+r,f=d+o,h=function ZI(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:B);return n}(d,f),p="function"==typeof l?l():l;return h[E]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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 i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:p,incompleteFirstPass:!1,ssrId:c}}let ym=e=>null;function vm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Dm(n,t,o,i):r.hasOwnProperty(o)&&Dm(n,t,r[o],i)}return n}function Dm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function hc(e,t,n,r){if(hp()){const o=null===r?null:{"":-1},i=function c0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Bh(t,s.selectors,!1))if(r||(r=[]),Pt(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),pc(e,t,a.length)}else r.unshift(s),pc(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Cm(e,t,n,s,o,a),o&&function d0(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new C(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=Oo(n.mergedAttrs,n.attrs)}function Cm(e,t,n,r,o,i){for(let l=0;l<r.length;l++)cl(Ns(n,t),e,r[l].type);!function h0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let l=0;l<r.length;l++){const c=r[l];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,u=si(e,t,r.length,null);for(let l=0;l<r.length;l++){const c=r[l];n.mergedAttrs=Oo(n.mergedAttrs,c.hostAttrs),p0(e,n,t,u,c),f0(u,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}!function t0(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let u=null,l=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;u=vm(d.inputs,c,u,f?f.inputs:null),l=vm(d.outputs,c,l,p);const m=null===u||null===s||jh(t)?null:y0(u,c,s);a.push(m)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=l}(e,n,i)}function _m(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function hM(){return k.lFrame.currentDirectiveIndex}();try{Kn(i);for(let a=r;a<o;a++){const u=e.data[a],l=t[a];el(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&l0(u,l)}}finally{Kn(-1),el(s)}}function l0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function pc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function f0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Pt(t)&&(n[""]=e)}}function p0(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Xn(o.type)),s=new jo(i,Pt(o),D);e.blueprint[r]=s,n[r]=s,function s0(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function a0(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,si(e,n,o.hostVars,B),o)}function Jt(e,t,n,r,o,i){const s=st(e,t);!function gc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?H(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[j],s,i,e.value,n,r,o)}function m0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)wm(r,n,s[a++],s[a++],s[a++])}function wm(e,t,n,r,o){const i=Ve(null);try{null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{Ve(i)}}function y0(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function Em(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function bm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];nl(n[r]),s.contentQueries(2,t[i],i)}}}function sa(e,t){return e[xo]?e[Wh][xt]=t:e[xo]=t,e[Wh]=t,t}function mc(e,t,n){nl(0);const r=Ve(null);try{t(e,n)}finally{Ve(r)}}function Mm(e){return e[_r]||(e[_r]=[])}function Sm(e){return e.cleanup||(e.cleanup=[])}function Am(e,t){const n=e[wr],r=n?n.get(rr,null):null;r&&r.handleError(t)}function yc(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];wm(e.data[s],t[s],r,a,o)}}function v0(e,t){const n=at(t,e),r=n[E];!function D0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[xe];null!==o&&null===n[pn]&&(n[pn]=qg(o,n[wr])),vc(r,n,n[ve])}function vc(e,t,n){rl(t);try{const r=e.viewQuery;null!==r&&mc(1,r,n);const o=e.template;null!==o&&gm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&bm(e,t),e.staticViewQueries&&mc(2,e.viewQuery,n);const i=e.components;null!==i&&function C0(e,t){for(let n=0;n<t.length;n++)v0(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[$]&=-5,ol()}}let Tm=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new zb(n,l=>{this.all.has(l)&&this.queue.set(l,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new e}),e})();function aa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=xu(o,a):2==i&&(r=xu(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ai(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(de(i)),it(i)){for(let a=Be;a<i.length;a++){const u=i[a],l=u[E].firstChild;null!==l&&ai(u[E],u,l,r)}i[Wt]!==i[xe]&&r.push(i[Wt])}const s=n.type;if(8&s)ai(e,t,n.child,r);else if(32&s){const a=bl(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=yg(t,n);if(Array.isArray(a))r.push(...a);else{const u=qo(t[Se]);ai(u[E],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function ua(e,t,n,r=!0){const o=t[Yn].rendererFactory;o.begin&&o.begin();try{la(e,t,e.template,n)}catch(s){throw r&&Am(t,s),s}finally{o.end&&o.end(),t[Yn].effectManager?.flush()}}function la(e,t,n,r){const o=t[$];if(256!=(256&o)){t[Yn].effectManager?.flush(),rl(t);try{up(t),function mp(e){return k.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&gm(e,t,n,2,r);const s=3==(3&o);if(s){const l=e.preOrderCheckHooks;null!==l&&Ms(t,l,null)}else{const l=e.preOrderHooks;null!==l&&Ss(t,l,0,null),il(t,0)}if(function S0(e){for(let t=Ml(e);null!==t;t=Sl(t)){if(!t[Zh])continue;const n=t[Mr];for(let r=0;r<n.length;r++){eM(n[r])}}}(t),function M0(e){for(let t=Ml(e);null!==t;t=Sl(t))for(let n=Be;n<t.length;n++){const r=t[n],o=r[E];ws(r)&&la(o,r,o.template,r[ve])}}(t),null!==e.contentQueries&&bm(e,t),s){const l=e.contentCheckHooks;null!==l&&Ms(t,l)}else{const l=e.contentHooks;null!==l&&Ss(t,l,1),il(t,1)}!function qI(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=sm(t,gs);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)Kn(~i);else{const s=i,a=n[++o],u=n[++o];fM(a,s),r.runInContext(u,2,t[s])}}}finally{null===t[gs]&&am(t,gs),Kn(-1)}}(e,t);const a=e.components;null!==a&&function A0(e,t){for(let n=0;n<t.length;n++)I0(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&mc(2,u,r),s){const l=e.viewCheckHooks;null!==l&&Ms(t,l)}else{const l=e.viewHooks;null!==l&&Ss(t,l,2),il(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[$]&=-73,lp(t)}finally{ol()}}}function I0(e,t){const n=at(t,e);if(ws(n)){const r=n[E];80&n[$]?la(r,n,r.template,n[ve]):n[Zn]>0&&Dc(n)}}function Dc(e){for(let r=Ml(e);null!==r;r=Sl(r))for(let o=Be;o<r.length;o++){const i=r[o];if(ws(i))if(1024&i[$]){const s=i[E];la(s,i,s.template,i[ve])}else i[Zn]>0&&Dc(i)}const n=e[E].components;if(null!==n)for(let r=0;r<n.length;r++){const o=at(n[r],e);ws(o)&&o[Zn]>0&&Dc(o)}}class ui{get rootNodes(){const t=this._lView,n=t[E];return ai(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ve]}set context(t){this._lView[ve]=t}get destroyed(){return 256==(256&this._lView[$])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[pe];if(it(t)){const n=t[ms],r=n?n.indexOf(this):-1;r>-1&&(Al(t,r),xs(n,r))}this._attachedToViewContainer=!1}lg(this._lView[E],this._lView)}onDestroy(t){!function dp(e,t){if(256==(256&e[$]))throw new C(911,!1);null===e[Rn]&&(e[Rn]=[]),e[Rn].push(t)}(this._lView,t)}markForCheck(){ii(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-129}reattach(){this._lView[$]|=128}detectChanges(){ua(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ES(e,t){Yo(e,t,t[j],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class T0 extends ui{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ua(t[E],t,t[ve],!1)}checkNoChanges(){}get context(){return null}}class Nm extends na{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=K(t);return new li(n,this.ngModule)}}function Rm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class R0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ds(r);const o=this.injector.get(t,sc,r);return o!==sc||n===sc?o:this.parentInjector.get(t,n,r)}}class li extends Qg{get inputs(){return Rm(this.componentDef.inputs)}get outputs(){return Rm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Sb(e){return e.map(Mb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Xt?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new R0(t,i):t,a=s.get(Kg,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(OI,null),effectManager:s.get(Tm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function YI(e,t,n,r){const i=r.get(tm,!1)||n===ht.ShadowDom,s=e.selectRootElement(t,i);return function QI(e){ym(e)}(s),s}(d,r,this.componentDef.encapsulation,s):$s(d,f,function N0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=fc(0,null,null,1,0,null,null,null,null,null,null),y=ia(null,m,null,p,null,null,c,d,s,null,null);let _,g;rl(y);try{const w=this.componentDef;let T,G=null;w.findHostDirectiveDefs?(T=[],G=new Map,w.findHostDirectiveDefs(w,T,G),T.push(w)):T=[w];const ce=function x0(e,t){const n=e[E],r=Z;return e[r]=t,Ur(n,r,2,"#host",null)}(y,h),bo=function P0(e,t,n,r,o,i,s){const a=o[E];!function F0(e,t,n,r){for(const o of e)t.mergedAttrs=Oo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(aa(t,t.mergedAttrs,!0),null!==n&&_g(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=qg(t,o[wr]));const l=i.rendererFactory.createRenderer(t,n),c=ia(o,mm(n),null,n.onPush?64:16,o[e.index],e,i,l,null,null,u);return a.firstCreatePass&&pc(a,e,r.length-1),sa(o,c),o[e.index]=c}(ce,h,w,T,y,c,d);g=ap(m,Z),h&&function L0(e,t,n,r){if(r)Uu(e,n,["ng-version",xI.full]);else{const{attrs:o,classes:i}=function Ib(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Rt(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Uu(e,n,o),i&&i.length>0&&Cg(e,n,i.join(" "))}}(d,w,h,r),void 0!==n&&function V0(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(g,this.ngContentSelectors,n),_=function k0(e,t,n,r,o,i){const s=$e(),a=o[E],u=st(s,o);Cm(a,o,s,n,null,r);for(let c=0;c<n.length;c++)We(Jn(o,a,s.directiveStart+c,s),o);_m(a,o,s),u&&We(u,o);const l=Jn(o,a,s.directiveStart+s.componentOffset,s);if(e[ve]=o[ve]=l,null!==i)for(const c of i)c(l,t);return lc(a,s,e),l}(bo,w,T,G,y,[H0]),vc(m,y,null)}finally{ol()}return new O0(this.componentType,_,Br(g,y),y,g)}}class O0 extends SI{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new T0(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;yc(i[E],i,o,t,n),this.previousInputValues.set(t,n),ii(at(this._tNode.index,i))}}get injector(){return new Nr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function H0(){const e=$e();bs(v()[E],e)}function re(e){let t=function Om(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Pt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=Cc(e.inputs),s.declaredInputs=Cc(e.declaredInputs),s.outputs=Cc(e.outputs);const a=o.hostBindings;a&&U0(e,a);const u=o.viewQuery,l=o.contentQueries;if(u&&B0(e,u),l&&$0(e,l),Ou(e.inputs,o.inputs),Ou(e.declaredInputs,o.declaredInputs),Ou(e.outputs,o.outputs),Pt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===re&&(n=!1)}}t=Object.getPrototypeOf(t)}!function j0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Oo(o.hostAttrs,n=Oo(n,o.hostAttrs))}}(r)}function Cc(e){return e===fn?{}:e===Q?[]:e}function B0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function $0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function U0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function ca(e){return!!function _c(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function en(e,t,n){return e[t]=n}function qe(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function tn(e,t,n,r){const o=v();return qe(o,Ar(),t)&&(Y(),Jt(ge(),o,e,t,n,r)),tn}function ir(e,t,n,r,o,i,s,a){const u=v(),l=Y(),c=e+Z,d=l.firstCreatePass?function pA(e,t,n,r,o,i,s,a,u){const l=t.consts,c=Ur(t,e,4,s||null,On(l,a));hc(t,n,c,On(l,u)),bs(t,c);const d=c.tView=fc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];Yt(d,!1);const f=Zm(l,u,d,e);Es()&&zs(l,u,f,d),We(f,u),sa(u,u[c]=Em(f,u,f,d)),ys(d)&&cc(l,u,d),null!=s&&dc(u,d,a)}let Zm=function Ym(e,t,n,r){return xn(!0),t[j].createComment("")};function we(e,t,n){const r=v();return qe(r,Ar(),t)&&function vt(e,t,n,r,o,i,s,a){const u=st(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(yc(e,n,c,r,o),Qn(t)&&function r0(e,t){const n=at(t,e);16&n[$]||(n[$]|=64)}(n,t.index)):3&t.type&&(r=function n0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(Y(),ge(),r,e,t,r[j],n,!1),we}function Ic(e,t,n,r,o){const s=o?"class":"style";yc(e,n,t.inputs[s],s,r)}function N(e,t,n,r){const o=v(),i=Y(),s=Z+e,a=o[j],u=i.firstCreatePass?function DA(e,t,n,r,o,i){const s=t.consts,u=Ur(t,e,2,r,On(s,o));return hc(t,n,u,On(s,i)),null!==u.attrs&&aa(u,u.attrs,!1),null!==u.mergedAttrs&&aa(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=Qm(i,o,u,a,t,e);o[s]=l;const c=ys(u);return Yt(u,!0),_g(a,l,u),32!=(32&u.flags)&&Es()&&zs(i,o,l,u),0===function nM(){return k.lFrame.elementDepthCount}()&&We(l,o),function rM(){k.lFrame.elementDepthCount++}(),c&&(cc(i,o,u),lc(i,u,o)),null!==r&&dc(o,u),N}function P(){let e=$e();Ku()?function Ju(){k.lFrame.isParent=!1}():(e=e.parent,Yt(e,!1));const t=e;(function iM(e){return k.skipHydrationRootTNode===e})(t)&&function lM(){k.skipHydrationRootTNode=null}(),function oM(){k.lFrame.elementDepthCount--}();const n=Y();return n.firstCreatePass&&(bs(n,e),Gu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function bM(e){return 0!=(8&e.flags)}(t)&&Ic(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function MM(e){return 0!=(16&e.flags)}(t)&&Ic(n,t,v(),t.stylesWithoutHost,!1),P}function sr(e,t,n,r){return N(e,t,n,r),P(),sr}let Qm=(e,t,n,r,o,i)=>(xn(!0),$s(r,o,function bp(){return k.lFrame.currentNamespace}()));function ga(){return v()}function pi(e){return!!e&&"function"==typeof e.then}function Jm(e){return!!e&&"function"==typeof e.subscribe}function se(e,t,n,r){const o=v(),i=Y(),s=$e();return function ty(e,t,n,r,o,i,s){const a=ys(r),l=e.firstCreatePass&&Sm(e),c=t[ve],d=Mm(t);let f=!0;if(3&r.type||s){const m=st(r,t),y=s?s(m):m,_=d.length,g=s?T=>s(de(T[r.index])):r.index;let w=null;if(!s&&a&&(w=function MA(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[_r],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=i,w.__ngLastListenerFn__=i,f=!1;else{i=ry(r,t,c,i,!1);const T=n.listen(y,o,i);d.push(i,T),l&&l.push(o,g,_,_+1)}}else i=ry(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let y=0;y<m;y+=2){const G=t[p[y]][p[y+1]].subscribe(i),ce=d.length;d.push(i,G),l&&l.push(o,r.index,ce,-(ce+1))}}}(i,o,o[j],s,e,t,r),se}function ny(e,t,n,r){try{return Zt(6,t,n),!1!==n(r)}catch(o){return Am(e,o),!1}finally{Zt(7,t,n)}}function ry(e,t,n,r,o){return function i(s){if(s===Function)return r;ii(e.componentOffset>-1?at(e.index,t):t);let u=ny(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=ny(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function ar(e=1){return function gM(e){return(k.lFrame.contextLView=function mM(e,t){for(;e>0;)t=t[Er],e--;return t}(e,k.lFrame.contextLView))[ve]}(e)}function ma(e,t){return e<<17|t<<2}function Fn(e){return e>>17&32767}function Rc(e){return 2|e}function ur(e){return(131068&e)>>2}function Oc(e,t){return-131069&e|t<<2}function xc(e){return 1|e}function hy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Fn(i):ur(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];PA(e[a],t)&&(u=!0,e[a+1]=r?xc(c):Rc(c)),a=r?Fn(c):ur(c)}u&&(e[n+1]=r?Rc(i):xc(i))}function PA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fr(e,t)>=0}function ya(e,t){return function Ft(e,t,n,r){const o=v(),i=Y(),s=function mn(e){const t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function wy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Qe()],s=function _y(e,t){return t>=e.expandoStartIndex}(e,n);(function Sy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function UA(e,t,n,r){const o=function tl(e){const t=k.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=gi(n=Pc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Pc(o,e,t,n,r),null===i){let u=function zA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ur(r))return e[Fn(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Pc(null,e,t,u[1],r),u=gi(u,t.attrs,r),function GA(e,t,n,r){e[Fn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function WA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=gi(r,e[i].hostAttrs,n);return gi(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function OA(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Fn(s),u=ur(s);e[r]=n;let c,l=!1;if(Array.isArray(n)?(c=n[1],(null===c||Fr(n,c)>0)&&(l=!0)):c=n,o)if(0!==u){const f=Fn(e[a+1]);e[r+1]=ma(f,a),0!==f&&(e[f+1]=Oc(e[f+1],r)),e[a+1]=function NA(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ma(a,0),0!==a&&(e[a+1]=Oc(e[a+1],r)),a=r;else e[r+1]=ma(u,0),0===a?a=r:e[u+1]=Oc(e[u+1],r),u=r;l&&(e[r+1]=Rc(e[r+1])),hy(e,c,r,!0),hy(e,c,r,!1),function xA(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Fr(i,t)>=0&&(n[r+1]=xc(n[r+1]))}(t,c,e,r,i),s=ma(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==B&&qe(o,s,t)&&function by(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function RA(e){return 1==(1&e)}(l)?My(u,t,n,o,ur(l),s):void 0;va(c)||(va(i)||function TA(e){return 2==(2&e)}(l)&&(i=My(u,null,n,o,a,s)),function xS(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ut.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ut.Important),e.setStyle(n,r,o,i))}}(r,s,_s(Qe(),n),o,i))}(i,i.data[Qe()],o,o[j],e,o[s+1]=function QA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Oe(Pn(e)))),e}(t,n),r,s)}(e,t,null,!0),ya}function Pc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=gi(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function gi(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),mt(e,s,!!n||t[++i]))}return void 0===e?null:e}function My(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===B&&(f=d?Q:void 0);let h=d?hl(f,r):c===r?f:void 0;if(l&&!va(h)&&(h=hl(u,r)),va(h)&&(a=h,s))return a;const p=e[o+1];o=s?Fn(p):ur(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=hl(u,r))}return a}function va(e){return void 0!==e}function W(e,t=""){const n=v(),r=Y(),o=e+Z,i=r.firstCreatePass?Ur(r,o,1,t,null):r.data[o],s=Iy(r,n,i,t,e);n[o]=s,Es()&&zs(r,n,s,i),Yt(i,!1)}let Iy=(e,t,n,r,o)=>(xn(!0),function Bs(e,t){return e.createText(t)}(t[j],r));function Dt(e){return Da("",e,""),Dt}function Da(e,t,n){const r=v(),o=function Gr(e,t,n,r){return qe(e,Ar(),n)?t+H(n)+r:B}(r,e,t,n);return o!==B&&function Cn(e,t,n){const r=_s(t,e);!function ag(e,t,n){e.setValue(t,n)}(e[j],r,n)}(r,Qe(),o),Da}const lr=void 0;var vT=["en",[["a","p"],["AM","PM"],lr],[["AM","PM"],lr,lr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],lr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],lr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",lr,"{1} 'at' {0}",lr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function yT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let eo={};function Xe(e){const t=function DT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Zy(t);if(n)return n;const r=t.split("-")[0];if(n=Zy(r),n)return n;if("en"===r)return vT;throw new C(701,!1)}function Zy(e){return e in eo||(eo[e]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[e]),eo[e]}var b=(()=>((b=b||{})[b.LocaleId=0]="LocaleId",b[b.DayPeriodsFormat=1]="DayPeriodsFormat",b[b.DayPeriodsStandalone=2]="DayPeriodsStandalone",b[b.DaysFormat=3]="DaysFormat",b[b.DaysStandalone=4]="DaysStandalone",b[b.MonthsFormat=5]="MonthsFormat",b[b.MonthsStandalone=6]="MonthsStandalone",b[b.Eras=7]="Eras",b[b.FirstDayOfWeek=8]="FirstDayOfWeek",b[b.WeekendRange=9]="WeekendRange",b[b.DateFormat=10]="DateFormat",b[b.TimeFormat=11]="TimeFormat",b[b.DateTimeFormat=12]="DateTimeFormat",b[b.NumberSymbols=13]="NumberSymbols",b[b.NumberFormats=14]="NumberFormats",b[b.CurrencyCode=15]="CurrencyCode",b[b.CurrencySymbol=16]="CurrencySymbol",b[b.CurrencyName=17]="CurrencyName",b[b.Currencies=18]="Currencies",b[b.Directionality=19]="Directionality",b[b.PluralCase=20]="PluralCase",b[b.ExtraData=21]="ExtraData",b))();const to="en-US";let Yy=to;function Lc(e,t,n,r,o){if(e=V(e),Array.isArray(e))for(let i=0;i<e.length;i++)Lc(e[i],t,n,r,o);else{const i=Y(),s=v();let a=tr(e)?e:V(e.provide),u=$g(e);const l=$e(),c=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(tr(e)||!e.multi){const h=new jo(u,o,D),p=Hc(a,t,o?c:c+f,d);-1===p?(cl(Ns(l,s),i,a),Vc(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Hc(a,t,c+f,d),p=Hc(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){cl(Ns(l,s),i,a);const _=function mN(e,t,n,r,o){const i=new jo(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Cv(i,o,r&&!n),i}(o?gN:pN,n.length,o,r,u);!o&&y&&(n[p].providerFactory=_),Vc(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Vc(i,e,h>-1?h:p,Cv(n[o?p:h],u,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function Vc(e,t,n,r){const o=tr(t),i=function lI(e){return!!e.useClass}(t);if(o||i){const u=(i?V(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Cv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function pN(e,t,n,r){return jc(this.multi,[])}function gN(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Jn(n,n[E],this.providerFactory.index,r);i=a.slice(0,s),jc(o,i);for(let u=s;u<a.length;u++)i.push(a[u])}else i=[],jc(o,i);return i}function jc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function fe(e,t=[]){return n=>{n.providersResolver=(r,o)=>function hN(e,t,n){const r=Y();if(r.firstCreatePass){const o=Pt(e);Lc(n,r.data,r.blueprint,o,!0),Lc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class no{}class _v{}class Bc extends no{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const o=pt(t);this._bootstrapComponents=Dn(o.bootstrap),this._r3Injector=hm(t,n,[{provide:no,useValue:this},{provide:na,useValue:this.componentFactoryResolver},...r],Oe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $c extends _v{constructor(t){super(),this.moduleType=t}create(t){return new Bc(this.moduleType,t,[])}}class wv extends no{constructor(t){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const n=new ql([...t.providers,{provide:no,useValue:this},{provide:na,useValue:this.componentFactoryResolver}],t.parent||Qs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Uc(e,t,n=null){return new wv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let DN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=Vg(0,n.type),o=r.length>0?Uc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=A({token:e,providedIn:"environment",factory:()=>new e(I(Xt))}),e})();function Ev(e){e.getStandaloneInjector=t=>t.get(DN).getOrCreateStandaloneInjector(e)}function Gc(e,t,n){const r=Ye()+e,o=v();return o[r]===B?en(o,r,n?t.call(n):t()):function ci(e,t){return e[t]}(o,r)}function Rv(e,t,n,r,o,i,s){const a=t+n;return function or(e,t,n,r){const o=qe(e,t,n);return qe(e,t+1,r)||o}(e,a,o,i)?en(e,a+2,s?r.call(s,o,i):r(o,i)):function _i(e,t){const n=e[t];return n===B?void 0:n}(e,a+2)}function Wc(e,t){const n=Y();let r;const o=e+Z;n.firstCreatePass?(r=function LN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Xn(r.type)),s=nt(D);try{const a=Ts(!1),u=i();return Ts(a),function yA(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,v(),o,u),u}finally{nt(s)}}function qc(e,t,n,r){const o=e+Z,i=v(),s=function Sr(e,t){return e[t]}(i,o);return function wi(e,t){return e[E].data[t].pure}(i,o)?Rv(i,Ye(),t,s.transform,n,r,s):s.transform(n,r)}function Zc(e){return t=>{setTimeout(e,void 0,t)}}const Ce=class $N extends ln{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Zc(i),o&&(o=Zc(o)),s&&(s=Zc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof wt&&t.add(a),a}};function UN(){return this._results[Symbol.iterator]()}class Yc{get changes(){return this._changes||(this._changes=new Ce)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Yc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=UN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function It(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function kM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let _n=(()=>{class e{}return e.__NG_ELEMENT_ID__=WN,e})();const zN=_n,GN=class extends zN{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=ia(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Po]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Gt];return null!==a&&(i[Gt]=a.createEmbeddedView(o)),vc(o,i,t),new ui(i)}};function WN(){return ba($e(),v())}function ba(e,t){return 4&e.type?new GN(t,e,Br(e,t)):null}let Lt=(()=>{class e{}return e.__NG_ELEMENT_ID__=JN,e})();function JN(){return jv($e(),v())}const eR=Lt,Vv=class extends eR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Br(this._hostTNode,this._hostLView)}get injector(){return new Nr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ll(this._hostTNode,this._hostLView);if(Ap(t)){const n=As(t,this._hostLView),r=Is(t);return new Nr(n[E].data[r+8],n)}return new Nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Hv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Be}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function $o(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const u=s?t:new li(K(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const y=(s?l:this.parentInjector).get(Xt,null);y&&(i=y)}K(u.componentType??{});const h=u.create(l,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[E];if(function Jb(e){return it(e[pe])}(o)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const l=o[pe],c=new Vv(l,l[Ge],l[pe]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function MS(e,t,n,r){const o=Be+r,i=n.length;r>0&&(n[o-1][xt]=t),r<i-Be?(t[xt]=n[o],jp(n,Be+r,t)):(n.push(t),t[xt]=null),t[pe]=n;const s=t[Po];null!==s&&n!==s&&function SS(e,t){const n=e[Mr];t[Se]!==t[pe][pe][Se]&&(e[Zh]=!0),null===n?e[Mr]=[t]:n.push(t)}(s,t);const a=t[Gt];null!==a&&a.insertView(e),t[$]|=128}(i,o,a,s),!r){const u=Ol(s,a),l=o[j],c=Us(l,a[Wt]);null!==c&&function wS(e,t,n,r,o,i){r[xe]=o,r[Ge]=t,Yo(e,r,n,1,o,i)}(i,a[Ge],l,o,c,u)}return t.attachToViewContainerRef(),jp(Xc(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Hv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Al(this._lContainer,n);r&&(xs(Xc(this._lContainer),n),lg(r[E],r))}detach(t){const n=this._adjustIndex(t,-1),r=Al(this._lContainer,n);return r&&null!=xs(Xc(this._lContainer),n)?new ui(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Hv(e){return e[ms]}function Xc(e){return e[ms]||(e[ms]=[])}function jv(e,t){let n;const r=t[e.index];return it(r)?n=r:(n=Em(r,t,null,e),t[e.index]=n,sa(t,n)),Bv(n,t,e,r),new Vv(n,e,t)}let Bv=function $v(e,t,n,r){if(e[Wt])return;let o;o=8&n.type?de(r):function tR(e,t){const n=e[j],r=n.createComment(""),o=st(t,e);return er(n,Us(n,o),r,function NS(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Wt]=o};class Kc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Kc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Jc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new Jc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Zv(t,n).matches&&this.queries[n].setDirty()}}class Uv{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class ed{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new ed(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class td{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new td(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,oR(n,i)),this.matchTNodeWithReadOption(t,n,Rs(n,t,i,!1,!1))}else r===_n?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Rs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===yt||o===Lt||o===_n&&4&n.type)this.addMatch(n.index,-2);else{const i=Rs(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function oR(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function sR(e,t,n,r){return-1===n?function iR(e,t){return 11&e.type?Br(e,t):4&e.type?ba(e,t):null}(t,e):-2===n?function aR(e,t,n){return n===yt?Br(t,e):n===_n?ba(t,e):n===Lt?jv(t,e):void 0}(e,t,r):Jn(e,e[E],n,t)}function zv(e,t,n,r){const o=t[Gt].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let u=0;u<s.length;u+=2){const l=s[u];a.push(l<0?null:sR(t,i[l],s[u+1],n.metadata.read))}o.matches=a}return o.matches}function nd(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=zv(e,t,o,n);for(let a=0;a<i.length;a+=2){const u=i[a];if(u>0)r.push(s[a/2]);else{const l=i[a+1],c=t[-u];for(let d=Be;d<c.length;d++){const f=c[d];f[Po]===f[pe]&&nd(f[E],f,l,r)}if(null!==c[Mr]){const d=c[Mr];for(let f=0;f<d.length;f++){const h=d[f];nd(h[E],h,l,r)}}}}}return r}function Ei(e){const t=v(),n=Y(),r=vp();nl(r+1);const o=Zv(n,r);if(e.dirty&&function Kb(e){return 4==(4&e[$])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?nd(n,t,r,[]):zv(n,t,o,r);e.reset(i,NI),e.notifyOnChanges()}return!0}return!1}function Ma(e,t,n){const r=Y();r.firstCreatePass&&(qv(r,new Uv(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Wv(r,v(),t)}function bi(){return function uR(e,t){return e[Gt].queries[t].queryList}(v(),vp())}function Wv(e,t,n){const r=new Yc(4==(4&n));(function JI(e,t,n,r){const o=Mm(t);o.push(n),e.firstCreatePass&&Sm(e).push(r,o.length-1)})(e,t,r,r.destroy),null===t[Gt]&&(t[Gt]=new Jc),t[Gt].queries.push(new Kc(r))}function qv(e,t,n){null===e.queries&&(e.queries=new ed),e.queries.track(new td(t,n))}function Zv(e,t){return e.queries.getByIndex(t)}const ud=new S("Application Initializer");let ld=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(ud,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(pi(i))n.push(i);else if(Jm(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),dD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const wn=new S("LocaleId",{providedIn:"root",factory:()=>M(wn,O.Optional|O.SkipSelf)||function RR(){return typeof $localize<"u"&&$localize.locale||to}()});class xR{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let fD=(()=>{class e{compileModuleSync(n){return new $c(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Dn(pt(n).declarations).reduce((s,a)=>{const u=K(a);return u&&s.push(new li(u)),s},[]);return new xR(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kR=(()=>Promise.resolve(0))();function cd(e){typeof Zone>"u"?kR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function gD(...e){}class he{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function LR(){let e=ue.requestAnimationFrame,t=ue.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function jR(e){const t=()=>{!function HR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fd(e),e.isCheckStableRunning=!0,dd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return mD(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),yD(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return mD(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),yD(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,fd(e),dd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!he.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(he.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,VR,gD,gD);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const VR={};function dd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function mD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yD(e){e._nesting--,dd(e)}class BR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const vD=new S("",{providedIn:"root",factory:DD});function DD(){const e=M(he);let t=!0;return function KE(...e){const t=Ao(e),n=function GE(e,t){return"number"==typeof Nu(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Et(r[0]):vr(n)(Re(r,t)):Ut}(new _e(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new _e(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{he.assertNotInAngularZone(),cd(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{he.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function JE(e={}){const{connector:t=(()=>new ln),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return He((m,y)=>{l++,!d&&!c&&f();const _=u=u??t();y.add(()=>{l--,0===l&&!d&&!c&&(a=Ru(p,o))}),_.subscribe(y),!s&&l>0&&(s=new Io({next:g=>_.next(g),error:g=>{d=!0,f(),a=Ru(h,n,g),_.error(g)},complete:()=>{c=!0,f(),a=Ru(h,r),_.complete()}}),Et(m).subscribe(s))})(i)}}()))}const CD=new S(""),Ia=new S("");let gd,hd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gd||(function $R(e){gd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{he.assertNotInAngularZone(),cd(()=>{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())cd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(I(he),I(pd),I(Ia))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),pd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return gd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),kn=null;const _D=new S("AllowMultipleToken"),md=new S("PlatformDestroyListeners"),yd=new S("appBootstrapListener");class ED{constructor(t,n){this.name=t,this.token=n}}function MD(e,t,n=[]){const r=`Platform: ${t}`,o=new S(r);return(i=[])=>{let s=vd();if(!s||s.injector.get(_D,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function GR(e){if(kn&&!kn.get(_D,!1))throw new C(400,!1);(function wD(){!function $b(e){ep=e}(()=>{throw new C(600,!1)})})(),kn=e;const t=e.get(ID);(function bD(e){e.get(Ug,null)?.forEach(n=>n())})(e)}(function SD(e=[],t){return Kt.create({name:t,providers:[{provide:Gl,useValue:"platform"},{provide:md,useValue:new Set([()=>kn=null])},...e]})}(a,r))}return function qR(e){const t=vd();if(!t)throw new C(401,!1);return t}()}}function vd(){return kn?.get(ID)??null}let ID=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function ZR(e="zone.js",t){return"noop"===e?new BR:"zone.js"===e?new he(t):e}(r?.ngZone,function AD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function vN(e,t,n){return new Bc(e,t,n)}(n.moduleType,this.injector,function xD(e){return[{provide:he,useFactory:e},{provide:ei,multi:!0,useFactory:()=>{const t=M(QR,{optional:!0});return()=>t.initialize()}},{provide:OD,useFactory:YR},{provide:vD,useFactory:DD}]}(()=>o)),s=i.injector.get(rr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{Aa(this._modules,i),a.unsubscribe()})}),function TD(e,t,n){try{const r=n();return pi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(ld);return a.runInitializers(),a.donePromise.then(()=>(function Qy(e){bt(e,"Expected localeId to be defined"),"string"==typeof e&&(Yy=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(wn,to)||to),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=ND({},r);return function UR(e,t,n){const r=new $c(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(io);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(md,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(I(Kt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ND(e,t){return Array.isArray(t)?t.reduce(ND,e):{...e,...t}}let io=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(OD),this.componentTypes=[],this.components=[],this.isStable=M(vD),this._injector=M(Xt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Qg;if(!this._injector.get(ld).done)throw!o&&function Cr(e){const t=K(e)||ze(e)||ot(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(na).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function zR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(no),l=s.create(Kt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(CD,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Aa(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Aa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(yd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Aa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const OD=new S("",{providedIn:"root",factory:()=>M(rr).handleError.bind(void 0)});function YR(){const e=M(he),t=M(rr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let QR=(()=>{class e{constructor(){this.zone=M(he),this.applicationRef=M(io)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ta=(()=>{class e{}return e.__NG_ELEMENT_ID__=KR,e})();function KR(e){return function JR(e,t,n){if(Qn(e)&&!n){const r=at(e.index,t);return new ui(r,r)}return 47&e.type?new ui(t[Se],t):null}($e(),v(),16==(16&e))}class LD{constructor(){}supports(t){return ca(t)}create(t){return new iO(t)}}const oO=(e,t)=>t;class iO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||oO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<HD(r,o,i)?n:r,a=HD(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const l=a-o,c=u-o;if(l!=c){for(let f=0;f<l;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<l&&(i[f]=h+1)}i[s.previousIndex]=c-l}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ca(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function Q0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new sO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new VD),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new VD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class sO{constructor(t,n){this.item=t,this.trackById=n,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 aO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class VD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new aO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function HD(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function BD(){return new Oa([new LD])}let Oa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||BD()),deps:[[e,new ks,new Fs]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=A({token:e,providedIn:"root",factory:BD}),e})();const fO=MD(null,"core",[]);let hO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(I(io))},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({}),e})(),ZD=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=M(he),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function so(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Md=null;function Ln(){return Md}class MO{}const Ct=new S("DocumentToken");let Sd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(IO)},providedIn:"platform"}),e})();const SO=new S("Location Initialized");let IO=(()=>{class e extends Sd{constructor(){super(),this._doc=M(Ct),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ln().getBaseHref(this._doc)}onPopState(n){const r=Ln().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Ln().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Id(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function QD(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function En(e){return e&&"?"!==e[0]?"?"+e:e}let dr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(KD)},providedIn:"root"}),e})();const XD=new S("appBaseHref");let KD=(()=>{class e extends dr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??M(Ct).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Id(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+En(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+En(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+En(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(I(Sd),I(XD,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),AO=(()=>{class e extends dr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Id(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+En(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+En(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(I(Sd),I(XD,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Ad=(()=>{class e{constructor(n){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function RO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(QD(JD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+En(r))}normalize(n){return e.stripTrailingSlash(function NO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,JD(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+En(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=En,e.joinWithSlash=Id,e.stripTrailingSlash=QD,e.\u0275fac=function(n){return new(n||e)(I(dr))},e.\u0275prov=A({token:e,factory:function(){return function TO(){return new Ad(I(dr))}()},providedIn:"root"}),e})();function JD(e){return e.replace(/\/index.html$/,"")}var Ee=(()=>((Ee=Ee||{})[Ee.Format=0]="Format",Ee[Ee.Standalone=1]="Standalone",Ee))(),q=(()=>((q=q||{})[q.Narrow=0]="Narrow",q[q.Abbreviated=1]="Abbreviated",q[q.Wide=2]="Wide",q[q.Short=3]="Short",q))(),me=(()=>((me=me||{})[me.Short=0]="Short",me[me.Medium=1]="Medium",me[me.Long=2]="Long",me[me.Full=3]="Full",me))(),R=(()=>((R=R||{})[R.Decimal=0]="Decimal",R[R.Group=1]="Group",R[R.List=2]="List",R[R.PercentSign=3]="PercentSign",R[R.PlusSign=4]="PlusSign",R[R.MinusSign=5]="MinusSign",R[R.Exponential=6]="Exponential",R[R.SuperscriptingExponent=7]="SuperscriptingExponent",R[R.PerMille=8]="PerMille",R[R.Infinity=9]="Infinity",R[R.NaN=10]="NaN",R[R.TimeSeparator=11]="TimeSeparator",R[R.CurrencyDecimal=12]="CurrencyDecimal",R[R.CurrencyGroup=13]="CurrencyGroup",R))();function Pa(e,t){return Nt(Xe(e)[b.DateFormat],t)}function Fa(e,t){return Nt(Xe(e)[b.TimeFormat],t)}function ka(e,t){return Nt(Xe(e)[b.DateTimeFormat],t)}function Tt(e,t){const n=Xe(e),r=n[b.NumberSymbols][t];if(typeof r>"u"){if(t===R.CurrencyDecimal)return n[b.NumberSymbols][R.Decimal];if(t===R.CurrencyGroup)return n[b.NumberSymbols][R.Group]}return r}function tC(e){if(!e[b.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[b.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Nd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const zO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ii={},GO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.ShortGMT=1]="ShortGMT",ke[ke.Long=2]="Long",ke[ke.Extended=3]="Extended",ke))(),F=(()=>((F=F||{})[F.FullYear=0]="FullYear",F[F.Month=1]="Month",F[F.Date=2]="Date",F[F.Hours=3]="Hours",F[F.Minutes=4]="Minutes",F[F.Seconds=5]="Seconds",F[F.FractionalSeconds=6]="FractionalSeconds",F[F.Day=7]="Day",F))(),z=(()=>((z=z||{})[z.DayPeriods=0]="DayPeriods",z[z.Days=1]="Days",z[z.Months=2]="Months",z[z.Eras=3]="Eras",z))();function WO(e,t,n,r){let o=function tx(e){if(oC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return La(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(zO))return function nx(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,u,l),t}(r)}const t=new Date(e);if(!oC(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=bn(n,t)||t;let a,s=[];for(;t;){if(a=GO.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let u=o.getTimezoneOffset();r&&(u=rC(r,u),o=function ex(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function JO(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(rC(t,o)-o))}(o,r,!0));let l="";return s.forEach(c=>{const d=function KO(e){if(Od[e])return Od[e];let t;switch(e){case"G":case"GG":case"GGG":t=le(z.Eras,q.Abbreviated);break;case"GGGG":t=le(z.Eras,q.Wide);break;case"GGGGG":t=le(z.Eras,q.Narrow);break;case"y":t=Te(F.FullYear,1,0,!1,!0);break;case"yy":t=Te(F.FullYear,2,0,!0,!0);break;case"yyy":t=Te(F.FullYear,3,0,!1,!0);break;case"yyyy":t=Te(F.FullYear,4,0,!1,!0);break;case"Y":t=Ba(1);break;case"YY":t=Ba(2,!0);break;case"YYY":t=Ba(3);break;case"YYYY":t=Ba(4);break;case"M":case"L":t=Te(F.Month,1,1);break;case"MM":case"LL":t=Te(F.Month,2,1);break;case"MMM":t=le(z.Months,q.Abbreviated);break;case"MMMM":t=le(z.Months,q.Wide);break;case"MMMMM":t=le(z.Months,q.Narrow);break;case"LLL":t=le(z.Months,q.Abbreviated,Ee.Standalone);break;case"LLLL":t=le(z.Months,q.Wide,Ee.Standalone);break;case"LLLLL":t=le(z.Months,q.Narrow,Ee.Standalone);break;case"w":t=Rd(1);break;case"ww":t=Rd(2);break;case"W":t=Rd(1,!0);break;case"d":t=Te(F.Date,1);break;case"dd":t=Te(F.Date,2);break;case"c":case"cc":t=Te(F.Day,1);break;case"ccc":t=le(z.Days,q.Abbreviated,Ee.Standalone);break;case"cccc":t=le(z.Days,q.Wide,Ee.Standalone);break;case"ccccc":t=le(z.Days,q.Narrow,Ee.Standalone);break;case"cccccc":t=le(z.Days,q.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":t=le(z.Days,q.Abbreviated);break;case"EEEE":t=le(z.Days,q.Wide);break;case"EEEEE":t=le(z.Days,q.Narrow);break;case"EEEEEE":t=le(z.Days,q.Short);break;case"a":case"aa":case"aaa":t=le(z.DayPeriods,q.Abbreviated);break;case"aaaa":t=le(z.DayPeriods,q.Wide);break;case"aaaaa":t=le(z.DayPeriods,q.Narrow);break;case"b":case"bb":case"bbb":t=le(z.DayPeriods,q.Abbreviated,Ee.Standalone,!0);break;case"bbbb":t=le(z.DayPeriods,q.Wide,Ee.Standalone,!0);break;case"bbbbb":t=le(z.DayPeriods,q.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=le(z.DayPeriods,q.Abbreviated,Ee.Format,!0);break;case"BBBB":t=le(z.DayPeriods,q.Wide,Ee.Format,!0);break;case"BBBBB":t=le(z.DayPeriods,q.Narrow,Ee.Format,!0);break;case"h":t=Te(F.Hours,1,-12);break;case"hh":t=Te(F.Hours,2,-12);break;case"H":t=Te(F.Hours,1);break;case"HH":t=Te(F.Hours,2);break;case"m":t=Te(F.Minutes,1);break;case"mm":t=Te(F.Minutes,2);break;case"s":t=Te(F.Seconds,1);break;case"ss":t=Te(F.Seconds,2);break;case"S":t=Te(F.FractionalSeconds,1);break;case"SS":t=Te(F.FractionalSeconds,2);break;case"SSS":t=Te(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ha(ke.Short);break;case"ZZZZZ":t=Ha(ke.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ha(ke.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ha(ke.Long);break;default:return null}return Od[e]=t,t}(c);l+=d?d(o,n,u):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function La(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function bn(e,t){const n=function OO(e){return Xe(e)[b.LocaleId]}(e);if(Ii[n]=Ii[n]||{},Ii[n][t])return Ii[n][t];let r="";switch(t){case"shortDate":r=Pa(e,me.Short);break;case"mediumDate":r=Pa(e,me.Medium);break;case"longDate":r=Pa(e,me.Long);break;case"fullDate":r=Pa(e,me.Full);break;case"shortTime":r=Fa(e,me.Short);break;case"mediumTime":r=Fa(e,me.Medium);break;case"longTime":r=Fa(e,me.Long);break;case"fullTime":r=Fa(e,me.Full);break;case"short":const o=bn(e,"shortTime"),i=bn(e,"shortDate");r=Va(ka(e,me.Short),[o,i]);break;case"medium":const s=bn(e,"mediumTime"),a=bn(e,"mediumDate");r=Va(ka(e,me.Medium),[s,a]);break;case"long":const u=bn(e,"longTime"),l=bn(e,"longDate");r=Va(ka(e,me.Long),[u,l]);break;case"full":const c=bn(e,"fullTime"),d=bn(e,"fullDate");r=Va(ka(e,me.Full),[c,d])}return r&&(Ii[n][t]=r),r}function Va(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Ht(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Te(e,t,n=0,r=!1,o=!1){return function(i,s){let a=function ZO(e,t){switch(e){case F.FullYear:return t.getFullYear();case F.Month:return t.getMonth();case F.Date:return t.getDate();case F.Hours:return t.getHours();case F.Minutes:return t.getMinutes();case F.Seconds:return t.getSeconds();case F.FractionalSeconds:return t.getMilliseconds();case F.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===F.Hours)0===a&&-12===n&&(a=12);else if(e===F.FractionalSeconds)return function qO(e,t){return Ht(e,3).substring(0,t)}(a,t);const u=Tt(s,R.MinusSign);return Ht(a,t,u,r,o)}}function le(e,t,n=Ee.Format,r=!1){return function(o,i){return function YO(e,t,n,r,o,i){switch(n){case z.Months:return function FO(e,t,n){const r=Xe(e),i=Nt([r[b.MonthsFormat],r[b.MonthsStandalone]],t);return Nt(i,n)}(t,o,r)[e.getMonth()];case z.Days:return function PO(e,t,n){const r=Xe(e),i=Nt([r[b.DaysFormat],r[b.DaysStandalone]],t);return Nt(i,n)}(t,o,r)[e.getDay()];case z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const l=function HO(e){const t=Xe(e);return tC(t),(t[b.ExtraData][2]||[]).map(r=>"string"==typeof r?Nd(r):[Nd(r[0]),Nd(r[1])])}(t),c=function jO(e,t,n){const r=Xe(e);tC(r);const i=Nt([r[b.ExtraData][0],r[b.ExtraData][1]],t)||[];return Nt(i,n)||[]}(t,o,r),d=l.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,y=s<p.hours||s===p.hours&&a<p.minutes;if(h.hours<p.hours){if(m&&y)return!0}else if(m||y)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return c[d]}return function xO(e,t,n){const r=Xe(e),i=Nt([r[b.DayPeriodsFormat],r[b.DayPeriodsStandalone]],t);return Nt(i,n)}(t,o,r)[s<12?0:1];case z.Eras:return function kO(e,t){return Nt(Xe(e)[b.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,i,e,t,n,r)}}function Ha(e){return function(t,n,r){const o=-1*r,i=Tt(n,R.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ke.Short:return(o>=0?"+":"")+Ht(s,2,i)+Ht(Math.abs(o%60),2,i);case ke.ShortGMT:return"GMT"+(o>=0?"+":"")+Ht(s,1,i);case ke.Long:return"GMT"+(o>=0?"+":"")+Ht(s,2,i)+":"+Ht(Math.abs(o%60),2,i);case ke.Extended:return 0===r?"Z":(o>=0?"+":"")+Ht(s,2,i)+":"+Ht(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const QO=0,ja=4;function nC(e){return La(e.getFullYear(),e.getMonth(),e.getDate()+(ja-e.getDay()))}function Rd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=nC(n),s=function XO(e){const t=La(e,QO,1).getDay();return La(e,0,1+(t<=ja?ja:ja+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ht(o,e,Tt(r,R.MinusSign))}}function Ba(e,t=!1){return function(n,r){return Ht(nC(n).getFullYear(),e,Tt(r,R.MinusSign),t)}}const Od={};function rC(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function oC(e){return e instanceof Date&&!isNaN(e.valueOf())}function uC(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class mx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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 Ti=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new mx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),dC(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{dC(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Lt),D(_n),D(Oa))},e.\u0275dir=L({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function dC(e,t){e.context.$implicit=t.item}let Hd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new yx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){fC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){fC("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Lt),D(_n))},e.\u0275dir=L({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class yx{constructor(){this.$implicit=null,this.ngIf=null}}function fC(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Oe(t)}'.`)}const Nx=new S("DATE_PIPE_DEFAULT_TIMEZONE"),Rx=new S("DATE_PIPE_DEFAULT_OPTIONS");let $d=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return WO(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function jt(e,t){return new C(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(wn,16),D(Nx,24),D(Rx,24))},e.\u0275pipe=rt({name:"date",type:e,pure:!0,standalone:!0}),e})(),Bx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({}),e})();function mC(e){return"server"===e}let Gx=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new Wx(I(Ct),window)}),e})();class Wx{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function qx(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=yC(this.window.history)||yC(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function yC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class vC{}class CP extends MO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class qd extends CP{static makeCurrent(){!function bO(e){Md||(Md=e)}(new qd)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function _P(){return Ri=Ri||document.querySelector("base"),Ri?Ri.getAttribute("href"):null}();return null==n?null:function wP(e){Ga=Ga||document.createElement("a"),Ga.setAttribute("href",e);const t=Ga.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return uC(document.cookie,t)}}let Ga,Ri=null,bP=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Zd=new S("EventManagerPlugins");let EC=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(I(Zd),I(he))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class bC{constructor(t){this._doc=t}}const Yd="ng-app-id";let MC=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mC(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Yd}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Yd),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Yd,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(I(Ct),I(Xs),I(zg,8),I(nr))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Qd={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/"},Xd=/%COMP%/g,AP=new S("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function IC(e,t){return t.map(n=>n.replace(Xd,e))}let AC=(()=>{class e{constructor(n,r,o,i,s,a,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=mC(a),this.defaultRenderer=new Kd(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ht.ShadowDom&&(r={...r,encapsulation:ht.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof NC?o.applyToHost(n):o instanceof Jd&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case ht.Emulated:i=new NC(u,l,r,this.appId,c,s,a,d);break;case ht.ShadowDom:return new OP(u,l,n,r,s,a,this.nonce,d);default:i=new Jd(u,l,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(I(EC),I(MC),I(Xs),I(AP),I(Ct),I(nr),I(he),I(zg))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class Kd{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Qd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(TC(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(TC(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new C(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Qd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Qd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ut.DashCase|ut.Important)?t.style.setProperty(n,r,o&ut.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ut.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Ln().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function TC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class OP extends Kd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=IC(o.id,o.styles);for(const c of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jd extends Kd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=u?IC(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class NC extends Jd{constructor(t,n,r,o,i,s,a,u){const l=o+"-"+r.id;super(t,n,r,i,s,a,u,l),this.contentAttr=function TP(e){return"_ngcontent-%COMP%".replace(Xd,e)}(l),this.hostAttr=function NP(e){return"_nghost-%COMP%".replace(Xd,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let xP=(()=>{class e extends bC{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(I(Ct))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const RC=["alt","control","meta","shift"],PP={"\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"},FP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let kP=(()=>{class e extends bC{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ln().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),RC.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=PP[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),RC.forEach(s=>{s!==o&&(0,FP[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(I(Ct))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const jP=MD(fO,"browser",[{provide:nr,useValue:"browser"},{provide:Ug,useValue:function LP(){qd.makeCurrent()},multi:!0},{provide:Ct,useFactory:function HP(){return function VS(e){Fl=e}(document),document},deps:[]}]),BP=new S(""),PC=[{provide:Ia,useClass:class EP{addToWindow(t){ue.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ue.getAllAngularTestabilities=()=>t.getAllTestabilities(),ue.getAllAngularRootElements=()=>t.getAllRootElements(),ue.frameworkStabilizers||(ue.frameworkStabilizers=[]),ue.frameworkStabilizers.push(r=>{const o=ue.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Ln().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:CD,useClass:hd,deps:[he,pd,Ia]},{provide:hd,useClass:hd,deps:[he,pd,Ia]}],FC=[{provide:Gl,useValue:"root"},{provide:rr,useFactory:function VP(){return new rr},deps:[]},{provide:Zd,useClass:xP,multi:!0,deps:[Ct,he,nr]},{provide:Zd,useClass:kP,multi:!0,deps:[Ct]},AC,MC,EC,{provide:Kg,useExisting:AC},{provide:vC,useClass:bP,deps:[]},[]];let $P=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Xs,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(I(BP,12))},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({providers:[...FC,...PC],imports:[Bx,hO]}),e})(),kC=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(I(Ct))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function zP(){return new kC(I(Ct))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:YP}=Array,{getPrototypeOf:QP,prototype:XP,keys:KP}=Object;function jC(e){if(1===e.length){const t=e[0];if(YP(t))return{args:t,keys:null};if(function JP(e){return e&&"object"==typeof e&&QP(e)===XP}(t)){const n=KP(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:eF}=Array;function BC(e){return X(t=>function tF(e,t){return eF(t)?e(...t):e(t)}(e,t))}function $C(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let UC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(vn),D(yt))},e.\u0275dir=L({type:e}),e})(),fr=(()=>{class e extends UC{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275dir=L({type:e,features:[re]}),e})();const on=new S("NgValueAccessor"),oF={provide:on,useExisting:ae(()=>ao),multi:!0},sF=new S("CompositionEventMode");let ao=(()=>{class e extends UC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iF(){const e=Ln()?Ln().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(vn),D(yt),D(sF,8))},e.\u0275dir=L({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&se("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[fe([oF]),re]}),e})();const Ze=new S("NgValidators"),jn=new S("NgAsyncValidators");function e_(e){return null!=e}function t_(e){return pi(e)?Re(e):e}function n_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function r_(e,t){return t.map(n=>n(e))}function o_(e){return e.map(t=>function uF(e){return!e.validate}(t)?t:n=>t.validate(n))}function tf(e){return null!=e?function i_(e){if(!e)return null;const t=e.filter(e_);return 0==t.length?null:function(n){return n_(r_(n,t))}}(o_(e)):null}function nf(e){return null!=e?function s_(e){if(!e)return null;const t=e.filter(e_);return 0==t.length?null:function(n){return function nF(...e){const t=_h(e),{args:n,keys:r}=jC(e),o=new _e(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let u=s,l=s;for(let c=0;c<s;c++){let d=!1;Et(n[c]).subscribe(Le(i,f=>{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?$C(r,a):a),i.complete())}))}});return t?o.pipe(BC(t)):o}(r_(n,t).map(t_)).pipe(X(n_))}}(o_(e)):null}function a_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function rf(e){return e?Array.isArray(e)?e:[e]:[]}function qa(e,t){return Array.isArray(e)?e.includes(t):e===t}function c_(e,t){const n=rf(t);return rf(e).forEach(o=>{qa(n,o)||n.push(o)}),n}function d_(e,t){return rf(t).filter(n=>!qa(e,n))}class f_{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=tf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=nf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Je extends f_{get formDirective(){return null}get path(){return null}}class Bn extends f_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class h_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Za=(()=>{class e extends h_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Bn,2))},e.\u0275dir=L({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ya("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[re]}),e})(),p_=(()=>{class e extends h_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Je,10))},e.\u0275dir=L({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ya("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[re]}),e})();const Oi="VALID",Qa="INVALID",uo="PENDING",xi="DISABLED";function uf(e){return(Xa(e)?e.validators:e)||null}function lf(e,t){return(Xa(t)?t.asyncValidators:e)||null}function Xa(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class v_{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Oi}get invalid(){return this.status===Qa}get pending(){return this.status==uo}get disabled(){return this.status===xi}get enabled(){return this.status!==xi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(c_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(c_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(d_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(d_(t,this._rawAsyncValidators))}hasValidator(t){return qa(this._rawValidators,t)}hasAsyncValidator(t){return qa(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=xi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Oi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oi||this.status===uo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xi:Oi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uo,this._hasOwnPendingAsyncValidator=!0;const n=t_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?xi:this.errors?Qa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uo)?uo:this._anyControlsHaveStatus(Qa)?Qa:Oi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xa(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function fF(e){return Array.isArray(e)?tf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function hF(e){return Array.isArray(e)?nf(e):e||null}(this._rawAsyncValidators)}}class cf extends v_{constructor(t,n,r){super(uf(n),lf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function y_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function m_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const lo=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Ka}),Ka="always";function Pi(e,t,n=Ka){df(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function mF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&D_(e,t)})}(e,t),function vF(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function yF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&D_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function gF(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function tu(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function df(e,t){const n=function u_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(a_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function l_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(a_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();tu(t._rawValidators,o),tu(t._rawAsyncValidators,o)}function D_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const EF={provide:Je,useExisting:ae(()=>ru)},Fi=(()=>Promise.resolve())();let ru=(()=>{class e extends Je{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new cf({},tf(n),nf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Fi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Pi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Fi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Fi.then(()=>{const r=this._findContainer(n.path),o=new cf({});(function C_(e,t){df(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Fi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Fi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function __(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(Ze,10),D(jn,10),D(lo,8))},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&se("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([EF]),re]}),e})();function w_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function E_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const b_=class extends v_{constructor(t=null,n,r){super(uf(n),lf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xa(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=E_(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){w_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){w_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){E_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},SF={provide:Bn,useExisting:ae(()=>ki)},I_=(()=>Promise.resolve())();let ki=(()=>{class e extends Bn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new b_,this._registered=!1,this.name="",this.update=new Ce,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function pf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===ao?n=i:function _F(e){return Object.getPrototypeOf(e.constructor)===fr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function hf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Pi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){I_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&so(r);I_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Ja(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(Je,9),D(Ze,10),D(jn,10),D(on,10),D(Ta,8),D(lo,8))},e.\u0275dir=L({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fe([SF]),re,St]}),e})(),A_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),N_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({}),e})(),QF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[N_]}),e})(),KF=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:lo,useValue:n.callSetDisabledState??Ka}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[QF]}),e})();function x(...e){return Re(e,Ao(e))}function co(e,t){return ie(t)?je(e,t,1):je(e,1)}function Mn(e,t){return He((n,r)=>{let o=0;n.subscribe(Le(r,i=>e.call(t,i,o++)&&r.next(i)))})}function sn(e,t){return He((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Le(r,u=>{o?.unsubscribe();let l=0;const c=i++;Et(e(u,c)).subscribe(o=Le(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class ou{}class _f{}class dt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof dt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new dt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof dt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class JF{encodeKey(t){return Z_(t)}encodeValue(t){return Z_(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const t1=/%(\d[a-f0-9])/gi,n1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z_(e){return encodeURIComponent(e).replace(t1,(t,n)=>n1[n]??t)}function iu(e){return`${e}`}class $n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new JF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function e1(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(iu):[iu(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new $n({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(iu(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(iu(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class r1{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Y_(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Q_(e){return typeof Blob<"u"&&e instanceof Blob}function X_(e){return typeof FormData<"u"&&e instanceof FormData}class Li{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function o1(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new dt),this.context||(this.context=new r1),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new $n,this.urlWithParams=n}serializeBody(){return null===this.body?null:Y_(this.body)||Q_(this.body)||X_(this.body)||function i1(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof $n?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||X_(this.body)?null:Q_(this.body)?this.body.type||null:Y_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof $n?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let u=t.headers||this.headers,l=t.params||this.params;const c=t.context??this.context;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce((d,f)=>d.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new Li(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class wf{constructor(t,n=200,r="OK"){this.headers=t.headers||new dt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ef extends wf{constructor(t={}){super(t),this.type=Ne.ResponseHeader}clone(t={}){return new Ef({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class fo extends wf{constructor(t={}){super(t),this.type=Ne.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new fo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class K_ extends wf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Vi=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Li)i=n;else{let u,l;u=o.headers instanceof dt?o.headers:new dt(o.headers),o.params&&(l=o.params instanceof $n?o.params:new $n({fromObject:o.params})),i=new Li(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=x(i).pipe(co(u=>this.handler.handle(u)));if(n instanceof Li||"events"===o.observe)return s;const a=s.pipe(Mn(u=>u instanceof fo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(X(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(X(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(X(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(X(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new $n).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,bf(o,r))}post(n,r,o={}){return this.request("POST",n,bf(o,r))}put(n,r,o={}){return this.request("PUT",n,bf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(I(ou))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function J_(e,t){return t(e)}function s1(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const ew=new S(""),Hi=new S(""),tw=new S("");function u1(){let e=null;return(t,n)=>(null===e&&(e=(M(ew,{optional:!0})??[]).reduceRight(s1,J_)),e(t,n))}let nw=(()=>{class e extends ou{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Hi),...this.injector.get(tw,[])]));this.chain=r.reduceRight((o,i)=>function a1(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),J_)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(I(_f),I(Xt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const f1=/^\)\]\}',?\n/;let ow=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?Re(r.\u0275loadImpl()):x(null)).pipe(sn(()=>new _e(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,w)=>s.setRequestHeader(g,w.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let u=null;const l=()=>{if(null!==u)return u;const g=s.statusText||"OK",w=new dt(s.getAllResponseHeaders()),T=function h1(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return u=new Ef({headers:w,status:s.status,statusText:g,url:T}),u},c=()=>{let{headers:g,status:w,statusText:T,url:G}=l(),ce=null;204!==w&&(ce=typeof s.response>"u"?s.responseText:s.response),0===w&&(w=ce?200:0);let bo=w>=200&&w<300;if("json"===n.responseType&&"string"==typeof ce){const mV=ce;ce=ce.replace(f1,"");try{ce=""!==ce?JSON.parse(ce):null}catch(yV){ce=mV,bo&&(bo=!1,ce={error:yV,text:ce})}}bo?(i.next(new fo({body:ce,headers:g,status:w,statusText:T,url:G||void 0})),i.complete()):i.error(new K_({error:ce,headers:g,status:w,statusText:T,url:G||void 0}))},d=g=>{const{url:w}=l(),T=new K_({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});i.error(T)};let f=!1;const h=g=>{f||(i.next(l()),f=!0);let w={type:Ne.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),"text"===n.responseType&&s.responseText&&(w.partialText=s.responseText),i.next(w)},p=g=>{let w={type:Ne.UploadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),i.next(w)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const y=()=>{m??=function g1(){const e=setTimeout(()=>{},p1);return()=>clearTimeout(e)}()},_=()=>{m?.()};return s.addEventListener("loadstart",y),s.addEventListener("loadend",_),s.send(a),i.next({type:Ne.Sent}),()=>{s.removeEventListener("loadstart",y),s.removeEventListener("loadend",_),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(I(vC))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const p1=2147483647,Mf=new S("XSRF_ENABLED"),iw=new S("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),sw=new S("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class aw{}let v1=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=uC(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(I(Ct),I(nr),I(iw))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function D1(e,t){const n=e.url.toLowerCase();if(!M(Mf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=M(aw).getToken(),o=M(sw);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Me=(()=>((Me=Me||{})[Me.Interceptors=0]="Interceptors",Me[Me.LegacyInterceptors=1]="LegacyInterceptors",Me[Me.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Me[Me.NoXsrfProtection=3]="NoXsrfProtection",Me[Me.JsonpSupport=4]="JsonpSupport",Me[Me.RequestsMadeViaParent=5]="RequestsMadeViaParent",Me))();function ho(e,t){return{\u0275kind:e,\u0275providers:t}}function C1(...e){const t=[Vi,ow,nw,{provide:ou,useExisting:nw},{provide:_f,useExisting:ow},{provide:Hi,useValue:D1,multi:!0},{provide:Mf,useValue:!0},{provide:aw,useClass:v1}];for(const n of e)t.push(...n.\u0275providers);return function Bl(e){return{\u0275providers:e}}(t)}const uw=new S("LEGACY_INTERCEPTOR_FN");let w1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({providers:[C1(ho(Me.LegacyInterceptors,[{provide:uw,useFactory:u1},{provide:Hi,useExisting:uw,multi:!0}]))]}),e})();function ye(e,t,n){const r=ie(e)||t||n?{next:e,error:t,complete:n}:e;return r?He((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Le(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Wn}function et(e){return He((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Le(n,void 0,void 0,s=>{i=Et(e(s,et(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}let Bi=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),A1=(()=>{class e{constructor(n,r){this.http=n,this.appMessageService=r,this.httpOptions={headers:new dt({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",r){return o=>(console.error(o),this.log(`Error @ ${n}: ${o.status} ${o.statusText}`),x(r))}log(n){this.appMessageService.add(`ChatMessagesService: ${n}`)}getChatMessages(){return this.http.get(e.REST_URL,this.httpOptions).pipe(ye(n=>this.log(`fetched ${n.length} messages`)),et(this.handleError("getChatMessages",[])))}addChatMessage(n,r){return this.http.post(e.REST_URL,{author:n,text:r},this.httpOptions).pipe(ye(i=>this.log(`added message w/ id=${i.id}`)),et(this.handleError("addChatMessage")))}}return e.REST_URL="https://tds.truyen.network/api/chat",e.\u0275fac=function(n){return new(n||e)(I(Vi),I(Bi))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bt extends ln{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Sf(...e){const t=Ao(e),n=_h(e),{args:r,keys:o}=jC(e);if(0===r.length)return Re([],t);const i=new _e(function N1(e,t,n=Wn){return r=>{lw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u<o;u++)lw(t,()=>{const l=Re(e[u],t);let c=!1;l.subscribe(Le(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>$C(o,s):Wn));return n?i.pipe(BC(n)):i}function lw(e,t,n){e?cn(n,e,t):t()}const su=Mo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function If(...e){return function R1(){return vr(1)}()(Re(e,Ao(e)))}function cw(e){return new _e(t=>{Et(e()).subscribe(t)})}function $i(e,t){const n=ie(e)?e:()=>e,r=o=>o.error(n());return new _e(t?o=>t.schedule(r,0,o):r)}function Af(){return He((e,t)=>{let n=null;e._refCount++;const r=Le(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class dw extends _e{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ah(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new wt;const n=this.getSubject();t.add(this.source.subscribe(Le(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=wt.EMPTY)}return t}refCount(){return Af()(this)}}function po(e){return e<=0?()=>Ut:He((t,n)=>{let r=0;t.subscribe(Le(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function au(e){return He((t,n)=>{let r=!1;t.subscribe(Le(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function fw(e=x1){return He((t,n)=>{let r=!1;t.subscribe(Le(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function x1(){return new su}function pr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Mn((o,i)=>e(o,i,r)):Wn,po(1),n?au(t):fw(()=>new su))}function Tf(e){return e<=0?()=>Ut:He((t,n)=>{let r=[];t.subscribe(Le(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Nf(e){return He((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const U="primary",Ui=Symbol("RouteTitle");class V1{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function go(e){return new V1(e)}function H1(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function an(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!hw(e[o],t[o]))return!1;return!0}function hw(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}return e===t}function pw(e){return e.length>0?e[e.length-1]:null}function Un(e){return function T1(e){return!!e&&(e instanceof _e||ie(e.lift)&&ie(e.subscribe))}(e)?e:pi(e)?Re(Promise.resolve(e)):x(e)}const B1={exact:function yw(e,t,n){if(!gr(e.segments,t.segments)||!uu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!yw(e.children[r],t.children[r],n))return!1;return!0},subset:vw},gw={exact:function $1(e,t){return an(e,t)},subset:function U1(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>hw(e[n],t[n]))},ignored:()=>!0};function mw(e,t,n){return B1[n.paths](e.root,t.root,n.matrixParams)&&gw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function vw(e,t,n){return Dw(e,t,t.segments,n)}function Dw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!gr(o,n)||t.hasChildren()||!uu(o,n,r))}if(e.segments.length===n.length){if(!gr(e.segments,n)||!uu(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!vw(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(gr(e.segments,o)&&uu(e.segments,o,r)&&e.children[U])&&Dw(e.children[U],t,i,r)}}function uu(e,t,n){return t.every((r,o)=>gw[n](e[o].parameters,r.parameters))}class mo{constructor(t=new oe([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=go(this.queryParams)),this._queryParamMap}toString(){return W1.serialize(this)}}class oe{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lu(this)}}class zi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=go(this.parameters)),this._parameterMap}toString(){return ww(this)}}function gr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Gi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return new Rf},providedIn:"root"}),e})();class Rf{parse(t){const n=new rk(t);return new mo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Wi(t.root,!0)}`,r=function Y1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${cu(n)}=${cu(o)}`).join("&"):`${cu(n)}=${cu(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function q1(e){return encodeURI(e)}(t.fragment)}`:""}`}}const W1=new Rf;function lu(e){return e.segments.map(t=>ww(t)).join("/")}function Wi(e,t){if(!e.hasChildren())return lu(e);if(t){const n=e.children[U]?Wi(e.children[U],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==U&&r.push(`${o}:${Wi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function G1(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===U&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==U&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===U?[Wi(e.children[U],!1)]:[`${o}:${Wi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[U]?`${lu(e)}/${n[0]}`:`${lu(e)}/(${n.join("//")})`}}function Cw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cu(e){return Cw(e).replace(/%3B/gi,";")}function Of(e){return Cw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function du(e){return decodeURIComponent(e)}function _w(e){return du(e.replace(/\+/g,"%20"))}function ww(e){return`${Of(e.path)}${function Z1(e){return Object.keys(e).map(t=>`;${Of(t)}=${Of(e[t])}`).join("")}(e.parameters)}`}const Q1=/^[^\/()?;#]+/;function xf(e){const t=e.match(Q1);return t?t[0]:""}const X1=/^[^\/()?;=#]+/,J1=/^[^=?&#]+/,tk=/^[^&#]+/;class rk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[U]=new oe(t,n)),r}parseSegment(){const t=xf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new zi(du(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function K1(e){const t=e.match(X1);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=xf(this.remaining);o&&(r=o,this.capture(r))}t[du(n)]=du(r)}parseQueryParam(t){const n=function ek(e){const t=e.match(J1);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function nk(e){const t=e.match(tk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=_w(n),i=_w(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=xf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=U);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[U]:new oe([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function Ew(e){return e.segments.length>0?new oe([],{[U]:e}):e}function bw(e){const t={};for(const r of Object.keys(e.children)){const i=bw(e.children[r]);if(r===U&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function ok(e){if(1===e.numberOfChildren&&e.children[U]){const t=e.children[U];return new oe(e.segments.concat(t.segments),t.children)}return e}(new oe(e.segments,t))}function mr(e){return e instanceof mo}function Mw(e){let t;const o=Ew(function n(i){const s={};for(const u of i.children){const l=n(u);s[u.outlet]=l}const a=new oe(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Sw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return Pf(o,o,o,n,r);const i=function sk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Aw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([u,l])=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Aw(n,t,r)}(t);if(i.toRoot())return Pf(o,o,new oe([],{}),n,r);const s=function ak(e,t,n){if(e.isAbsolute)return new hu(t,!0,0);if(!n)return new hu(t,!1,NaN);if(null===n.parent)return new hu(n,!0,0);const r=fu(e.commands[0])?0:1;return function uk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new hu(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Zi(s.segmentGroup,s.index,i.commands):Tw(s.segmentGroup,s.index,i.commands);return Pf(o,s.segmentGroup,a,n,r)}function fu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qi(e){return"object"==typeof e&&null!=e&&e.outlets}function Pf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([u,l])=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===t?n:Iw(e,t,n);const a=Ew(bw(s));return new mo(a,i,o)}function Iw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:Iw(i,t,n)}),new oe(e.segments,r)}class Aw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&fu(r[0]))throw new C(4003,!1);const o=r.find(qi);if(o&&o!==pw(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hu{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Tw(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return Zi(e,t,n);const r=function ck(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;const s=e.segments[o],a=n[r];if(qi(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Rw(u,l,s))return i;r+=2}else{if(!Rw(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new oe(e.segments.slice(0,r.pathIndex),{});return i.children[U]=new oe(e.segments.slice(r.pathIndex),e.children),Zi(i,0,o)}return r.match&&0===o.length?new oe(e.segments,{}):r.match&&!e.hasChildren()?Ff(e,t,n):r.match?Zi(e,0,o):Ff(e,t,n)}function Zi(e,t,n){if(0===n.length)return new oe(e.segments,{});{const r=function lk(e){return qi(e[0])?e[0].outlets:{[U]:e}}(n),o={};if(!r[U]&&e.children[U]&&1===e.numberOfChildren&&0===e.children[U].segments.length){const i=Zi(e.children[U],t,n);return new oe(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Tw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new oe(e.segments,o)}}function Ff(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o<n.length;){const i=n[o];if(qi(i)){const u=dk(i.outlets);return new oe(r,u)}if(0===o&&fu(n[0])){r.push(new zi(e.segments[t].path,Nw(n[0]))),o++;continue}const s=qi(i)?i.outlets[U]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&fu(a)?(r.push(new zi(s,Nw(a))),o+=2):(r.push(new zi(s,{})),o++)}return new oe(r,{})}function dk(e){const t={};return Object.entries(e).forEach(([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Ff(new oe([],{}),0,r))}),t}function Nw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Rw(e,t,n){return e==n.path&&an(t,n.parameters)}const Yi="imperative";class un{constructor(t,n){this.id=t,this.url=n}}class kf extends un{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yr extends un{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pu extends un{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qi extends un{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class Lf extends un{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fk extends un{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hk extends un{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pk extends un{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gk extends un{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mk extends un{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class vk{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Dk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ck{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _k{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wk{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ow{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ek{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Xi,this.attachRef=null}}let Xi=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ek,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class xw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Vf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Vf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Hf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Hf(t,this._root).map(n=>n.value)}}function Vf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Vf(e,n);if(r)return r}return null}function Hf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Hf(e,n);if(r.length)return r.unshift(t),r}return[]}class Sn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function yo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Pw extends xw{constructor(t,n){super(t),this.snapshot=n,jf(this,t)}toString(){return this.snapshot.toString()}}function Fw(e,t){const n=function bk(e,t){const s=new gu([],{},{},"",{},U,t,null,{});return new Lw("",new Sn(s,[]))}(0,t),r=new Bt([new zi("",{})]),o=new Bt({}),i=new Bt({}),s=new Bt({}),a=new Bt(""),u=new vo(r,o,s,a,i,U,t,n.root);return u.snapshot=n.root,new Pw(new Sn(u,[]),n)}class vo{constructor(t,n,r,o,i,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(X(l=>l[Ui]))??x(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(X(t=>go(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(X(t=>go(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function kw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function Mk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class gu{get title(){return this.data?.[Ui]}constructor(t,n,r,o,i,s,a,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=l}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=go(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=go(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lw extends xw{constructor(t,n){super(n),this.url=t,jf(this,n)}toString(){return Vw(this._root)}}function jf(e,t){t.value._routerState=e,t.children.forEach(n=>jf(e,n))}function Vw(e){const t=e.children.length>0?` { ${e.children.map(Vw).join(", ")} } `:"";return`${e.value}${t}`}function Bf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,an(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),an(t.params,n.params)||e.paramsSubject.next(n.params),function j1(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!an(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),an(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function $f(e,t){const n=an(e.params,t.params)&&function z1(e,t){return gr(e,t)&&e.every((n,r)=>an(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||$f(e.parent,t.parent))}let Uf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=U,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=M(Xi),this.location=M(Lt),this.changeDetector=M(Ta),this.environmentInjector=M(Xt),this.inputBinder=M(mu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Sk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[St]}),e})();class Sk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===vo?this.route:t===Xi?this.childContexts:this.parent.get(t,n)}}const mu=new S("");let Hw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Sf([r.queryParams,r.params,r.data]).pipe(sn(([i,s,a],u)=>(a={...i,...s,...a},0===u?x(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function EO(e){const t=K(e);if(!t)return null;const n=new li(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function Ki(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function Ak(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ki(e,r,o);return Ki(e,r)})}(e,t,n);return new Sn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ki(e,a)),s}}const r=function Tk(e){return new vo(new Bt(e.url),new Bt(e.params),new Bt(e.queryParams),new Bt(e.fragment),new Bt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>Ki(e,i));return new Sn(r,o)}}const zf="ngNavigationCancelingError";function jw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=mr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Bw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Bw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[zf]=!0,r.cancellationCode=t,n&&(r.url=n),r}function $w(e){return Uw(e)&&mr(e.url)}function Uw(e){return e&&e[zf]}let zw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Nn({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ev],decls:1,vars:0,template:function(n,r){1&n&&sr(0,"router-outlet")},dependencies:[Uf],encapsulation:2}),e})();function Gf(e){const t=e.children&&e.children.map(Gf),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==U&&(n.component=zw),n}function $t(e){return e.outlet||U}function Ji(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class kk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Bf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=yo(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=yo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=yo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new wk(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Ck(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Bf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Bf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Ji(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Gw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class yu{constructor(t,n){this.component=t,this.route=n}}function Lk(e,t,n){const r=e._root;return es(r,t?t._root:null,n,[r.value])}function Do(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function sb(e){return null!==us(e)}(e)?t.get(e):e:r}function es(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=yo(t);return e.children.forEach(s=>{(function Hk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function jk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!gr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gr(e.url,t.url)||!an(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$f(e,t)||!an(e.queryParams,t.queryParams);default:return!$f(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Gw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),es(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new yu(a.outlet.component,s))}else s&&ts(t,a,o),o.canActivateChecks.push(new Gw(r)),es(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ts(a,n.getContext(s),o)),o}function ts(e,t,n){const r=yo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ts(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new yu(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ns(e){return"function"==typeof e}function Ww(e){return e instanceof su||"EmptyError"===e?.name}const vu=Symbol("INITIAL_VALUE");function Co(){return sn(e=>Sf(e.map(t=>t.pipe(po(1),function O1(...e){const t=Ao(e);return He((n,r)=>{(t?If(e,n,t):If(e,n)).subscribe(r)})}(vu)))).pipe(X(t=>{for(const n of t)if(!0!==n){if(n===vu)return vu;if(!1===n||n instanceof mo)return n}return!0}),Mn(t=>t!==vu),po(1)))}function qw(e){return function ME(...e){return oh(e)}(ye(t=>{if(mr(t))throw jw(0,t)}),X(t=>!0===t))}class Du{constructor(t){this.segmentGroup=t||null}}class Zw{constructor(t){this.urlTree=t}}function _o(e){return $i(new Du(e))}function Yw(e){return $i(new Zw(e))}class sL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new C(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return x(r);if(o.numberOfChildren>1||!o.children[U])return $i(new C(4e3,!1));o=o.children[U]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new mo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,o)}),new oe(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const Wf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aL(e,t,n,r,o){const i=qf(e,t,n);return i.matched?(r=function Nk(e,t){return e.providers&&!e._injector&&(e._injector=Uc(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function rL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?x(o.map(s=>{const a=Do(s,e);return Un(function Wk(e){return e&&ns(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Co(),qw()):x(!0)}(r,t,n).pipe(X(s=>!0===s?i:{...Wf}))):x(i)}function qf(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...Wf}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||H1)(n,e,t);if(!o)return{...Wf};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Qw(e,t,n,r){return n.length>0&&function cL(e,t,n){return n.some(r=>Cu(e,t,r)&&$t(r)!==U)}(e,n,r)?{segmentGroup:new oe(t,lL(r,new oe(n,e.children))),slicedSegments:[]}:0===n.length&&function dL(e,t,n){return n.some(r=>Cu(e,t,r))}(e,n,r)?{segmentGroup:new oe(e.segments,uL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new oe(e.segments,e.children),slicedSegments:n}}function uL(e,t,n,r,o){const i={};for(const s of r)if(Cu(e,n,s)&&!o[$t(s)]){const a=new oe([],{});i[$t(s)]=a}return{...o,...i}}function lL(e,t){const n={};n[U]=t;for(const r of e)if(""===r.path&&$t(r)!==U){const o=new oe([],{});n[$t(r)]=o}return n}function Cu(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class gL{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new sL(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,!1)}recognize(){const t=Qw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,U).pipe(et(n=>{if(n instanceof Zw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Du?this.noMatchError(n):n}),X(n=>{const r=new gu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},U,this.rootComponentType,null,{}),o=new Sn(r,n),i=new Lw("",o),s=function ik(e,t,n=null,r=null){return Sw(Mw(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,U).pipe(et(r=>{throw r instanceof Du?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=kw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Re(o).pipe(co(i=>{const s=r.children[i],a=function Pk(e,t){const n=e.filter(r=>$t(r)===t);return n.push(...e.filter(r=>$t(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function F1(e,t){return He(function P1(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Le(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),au(null),function k1(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Mn((o,i)=>e(o,i,r)):Wn,Tf(1),n?au(t):fw(()=>new su))}(),je(i=>{if(null===i)return _o(r);const s=Xw(i);return function mL(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}(s),x(s)}))}processSegment(t,n,r,o,i,s){return Re(n).pipe(co(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(et(u=>{if(u instanceof Du)return x(null);throw u}))),pr(a=>!!a),et(a=>{if(Ww(a))return function hL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?x([]):_o(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function fL(e,t,n,r){return!!($t(e)===r||r!==U&&Cu(t,n,e))&&("**"===e.path||qf(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):_o(o):_o(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Yw(i):this.applyRedirects.lineralizeSegments(r,i).pipe(je(s=>{const a=new oe(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=qf(n,o,i);if(!a)return _o(n);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?Yw(d):this.applyRedirects.lineralizeSegments(o,d).pipe(je(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?pw(o).parameters:{};a=x({snapshot:new gu(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kw(r),$t(r),r.component??r._loadedComponent??null,r,Jw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=aL(n,r,o,t).pipe(X(({matched:u,consumedSegments:l,remainingSegments:c,parameters:d})=>u?{snapshot:new gu(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kw(r),$t(r),r.component??r._loadedComponent??null,r,Jw(r)),consumedSegments:l,remainingSegments:c}:null));return a.pipe(sn(u=>null===u?_o(n):this.getChildConfig(t=r._injector??t,r,o).pipe(sn(({routes:l})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=u,{segmentGroup:p,slicedSegments:m}=Qw(n,f,h,l);if(0===m.length&&p.hasChildren())return this.processChildren(c,l,p).pipe(X(_=>null===_?null:[new Sn(d,_)]));if(0===l.length&&0===m.length)return x([new Sn(d,[])]);const y=$t(r)===i;return this.processSegment(c,l,p,m,y?U:i,!0).pipe(X(_=>[new Sn(d,_)]))}))))}getChildConfig(t,n,r){return n.children?x({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?x({routes:n._loadedRoutes,injector:n._loadedInjector}):function nL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?x(!0):x(o.map(s=>{const a=Do(s,e);return Un(function $k(e){return e&&ns(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Co(),qw())}(t,n,r).pipe(je(o=>o?this.configLoader.loadChildren(t,n).pipe(ye(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function iL(e){return $i(Bw(!1,3))}())):x({routes:[],injector:t})}}function yL(e){const t=e.value.routeConfig;return t&&""===t.path}function Xw(e){const t=[],n=new Set;for(const r of e){if(!yL(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=Xw(r.children);t.push(new Sn(r.value,o))}return t.filter(r=>!n.has(r))}function Kw(e){return e.data||{}}function Jw(e){return e.resolve||{}}function eE(e){return"string"==typeof e.title||null===e.title}function Zf(e){return sn(t=>{const n=e(t);return n?Re(n).pipe(X(()=>t)):x(t)})}const wo=new S("ROUTES");let Yf=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=M(fD)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Un(n.loadComponent()).pipe(X(tE),ye(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Nf(()=>{this.componentLoaders.delete(n)})),o=new dw(r,()=>new ln).pipe(Af());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return x({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(X(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l;return Array.isArray(a)?l=a:(u=a.create(n).injector,l=u.get(wo,[],O.Self|O.Optional).flat()),{routes:l.map(Gf),injector:u}}),Nf(()=>{this.childrenLoaders.delete(r)})),s=new dw(i,()=>new ln).pipe(Af());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Un(n()).pipe(X(tE),je(r=>r instanceof _v||Array.isArray(r)?x(r):Re(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function tE(e){return function bL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let _u=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ln,this.configLoader=M(Yf),this.environmentInjector=M(Xt),this.urlSerializer=M(Gi),this.rootContexts=M(Xi),this.inputBindingEnabled=null!==M(mu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new vk(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new yk(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Bt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Yi,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Mn(r=>0!==r.id),X(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),sn(r=>{let o=!1,i=!1;return x(r).pipe(ye(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),sn(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Qi(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Ut}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return nE(s.source)&&(n.browserUrlTree=s.extractedUrl),x(s).pipe(sn(c=>{const d=this.transitions?.getValue();return this.events.next(new kf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Ut:Promise.resolve(c)}),function vL(e,t,n,r,o,i){return je(s=>function pL(e,t,n,r,o,i,s="emptyOnly"){return new gL(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(X(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),ye(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new fk(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new kf(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const y=Fw(0,this.rootComponentType).snapshot;return x(r={...s,targetSnapshot:y,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Qi(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Ut}}),ye(s=>{const a=new hk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),X(s=>r={...s,guards:Lk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Zk(e,t){return je(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?x({...n,guardsResult:!0}):function Yk(e,t,n,r){return Re(e).pipe(je(o=>function tL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?x(i.map(a=>{const u=Ji(t)??o,l=Do(a,u);return Un(function Gk(e){return e&&ns(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(pr())})).pipe(Co()):x(!0)}(o.component,o.route,n,t,r)),pr(o=>!0!==o,!0))}(s,r,o,e).pipe(je(a=>a&&function Bk(e){return"boolean"==typeof e}(a)?function Qk(e,t,n,r){return Re(t).pipe(co(o=>If(function Kk(e,t){return null!==e&&t&&t(new Dk(e)),x(!0)}(o.route.parent,r),function Xk(e,t){return null!==e&&t&&t(new _k(e)),x(!0)}(o.route,r),function eL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Vk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>cw(()=>x(s.guards.map(u=>{const l=Ji(s.node)??n,c=Do(u,l);return Un(function zk(e){return e&&ns(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(pr())})).pipe(Co())));return x(i).pipe(Co())}(e,o.path,n),function Jk(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return x(!0);const o=r.map(i=>cw(()=>{const s=Ji(t)??n,a=Do(i,s);return Un(function Uk(e){return e&&ns(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(pr())}));return x(o).pipe(Co())}(e,o.route,n))),pr(o=>!0!==o,!0))}(r,i,e,t):x(a)),X(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ye(s=>{if(r.guardsResult=s.guardsResult,mr(s.guardsResult))throw jw(0,s.guardsResult);const a=new pk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Mn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Zf(s=>{if(s.guards.canActivateChecks.length)return x(s).pipe(ye(a=>{const u=new gk(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),sn(a=>{let u=!1;return x(a).pipe(function DL(e,t){return je(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return x(n);let i=0;return Re(o).pipe(co(s=>function CL(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!eE(o)&&(i[Ui]=o.title),function _L(e,t,n,r){const o=function wL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return x({});const i={};return Re(o).pipe(je(s=>function EL(e,t,n,r){const o=Ji(t)??r,i=Do(e,o);return Un(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(pr(),ye(a=>{i[s]=a}))),Tf(1),function L1(e){return X(()=>e)}(i),et(s=>Ww(s)?Ut:$i(s)))}(i,e,t,r).pipe(X(s=>(e._resolvedData=s,e.data=kw(e,n).resolve,o&&eE(o)&&(e.data[Ui]=o.title),null)))}(s.route,r,e,t)),ye(()=>i++),Tf(1),je(s=>i===o.length?x(n):Ut))})}(n.paramsInheritanceStrategy,this.environmentInjector),ye({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ye(a=>{const u=new mk(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Zf(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(ye(c=>{u.component=c}),X(()=>{})));for(const c of u.children)l.push(...a(c));return l};return Sf(a(s.targetSnapshot.root)).pipe(au(),po(1))}),Zf(()=>this.afterPreactivation()),X(s=>{const a=function Ik(e,t,n){const r=Ki(e,t._root,n?n._root:void 0);return new Pw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),ye(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>X(o=>(new kk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),po(1),ye({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new yr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Nf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),et(s=>{if(i=!0,Uw(s)){$w(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new pu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),$w(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||nE(r.source)};n.scheduleNavigation(u,Yi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new Lf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return Ut}))}))}cancelNavigationTransition(n,r,o){const i=new pu(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function nE(e){return e!==Yi}let rE=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===U);return r}getResolvedTitleForRoute(n){return n.data[Ui]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(ML)},providedIn:"root"}),e})(),ML=(()=>{class e extends rE{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(I(kC))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),SL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(AL)},providedIn:"root"}),e})();class IL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let AL=(()=>{class e extends IL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const wu=new S("",{providedIn:"root",factory:()=>({})});let TL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return M(NL)},providedIn:"root"}),e})(),NL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var _t=(()=>((_t=_t||{})[_t.COMPLETE=0]="COMPLETE",_t[_t.FAILED=1]="FAILED",_t[_t.REDIRECTING=2]="REDIRECTING",_t))();function oE(e,t){e.events.pipe(Mn(n=>n instanceof yr||n instanceof pu||n instanceof Lf||n instanceof Qi),X(n=>n instanceof yr||n instanceof Qi?_t.COMPLETE:n instanceof pu&&(0===n.code||1===n.code)?_t.REDIRECTING:_t.FAILED),Mn(n=>n!==_t.REDIRECTING),po(1)).subscribe(()=>{t()})}function RL(e){throw e}function OL(e,t,n){return t.parse("/")}const xL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},PL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let tt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=M(dD),this.isNgZoneEnabled=!1,this.options=M(wu,{optional:!0})||{},this.pendingTasks=M(ZD),this.errorHandler=this.options.errorHandler||RL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||OL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=M(TL),this.routeReuseStrategy=M(SL),this.titleStrategy=M(rE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=M(wo,{optional:!0})?.flat()??[],this.navigationTransitions=M(_u),this.urlSerializer=M(Gi),this.location=M(Ad),this.componentInputBindingEnabled=!!M(mu,{optional:!0}),this.isNgZoneEnabled=M(he)instanceof he&&he.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new mo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Fw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Yi,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Gf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Mw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Sw(d,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=mr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Yi,null,r)}navigate(n,r={skipLocationChange:!1}){return function FL(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new C(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?{...xL}:!1===r?{...PL}:r,mr(n))return mw(this.currentUrlTree,n,o);const i=this.parseUrl(n);return mw(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f});const c=this.pendingTasks.add();return oE(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Eu=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new ln;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof yr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=so(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=so(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=so(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Pg(e,t,n){return function sI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?xg:Og}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}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:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(vo),function Os(e){return function TM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const i=n[o];if(kh(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}}return null}($e(),e)}("tabindex"),D(vn),D(yt),D(dr))},e.\u0275dir=L({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&se("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&tn("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[St]}),e})(),iE=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ce,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof yr&&this.update()})}ngAfterContentInit(){x(this.links.changes,x(null)).pipe(vr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Re(n).pipe(vr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function kL(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(yt),D(vn),D(Ta),D(Eu,8))},e.\u0275dir=L({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function Gv(e,t,n,r){const o=Y();if(o.firstCreatePass){const i=$e();qv(o,new Uv(t,n,r),i.index),function lR(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}Wv(o,v(),n)}(o,Eu,5),2&n){let i;Ei(i=bi())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[St]}),e})();class sE{}let LL=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Mn(n=>n instanceof yr),co(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Uc(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Re(o).pipe(vr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):x(null);const i=o.pipe(je(s=>null===s?x(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Re([i,this.loader.loadComponent(r)]).pipe(vr()):i})}}return e.\u0275fac=function(n){return new(n||e)(I(tt),I(fD),I(Xt),I(sE),I(Yf))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Qf=new S("");let aE=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof kf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof yr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Qi&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ow&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ow(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function pm(){throw new Error("invalid")}()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function In(e,t){return{\u0275kind:e,\u0275providers:t}}function lE(){const e=M(Kt);return t=>{const n=e.get(io);if(t!==n.components[0])return;const r=e.get(tt),o=e.get(cE);1===e.get(Xf)&&r.initialNavigation(),e.get(dE,null,O.Optional)?.setUpPreloading(),e.get(Qf,null,O.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const cE=new S("",{factory:()=>new ln}),Xf=new S("",{providedIn:"root",factory:()=>1}),dE=new S("");function BL(e){return In(0,[{provide:dE,useExisting:LL},{provide:sE,useExisting:e}])}const fE=new S("ROUTER_FORROOT_GUARD"),UL=[Ad,{provide:Gi,useClass:Rf},tt,Xi,{provide:vo,useFactory:function uE(e){return e.routerState.root},deps:[tt]},Yf,[]];function zL(){return new ED("Router",tt)}let hE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[UL,[],{provide:wo,multi:!0,useValue:n},{provide:fE,useFactory:ZL,deps:[[tt,new Fs,new ks]]},{provide:wu,useValue:r||{}},r?.useHash?{provide:dr,useClass:AO}:{provide:dr,useClass:KD},{provide:Qf,useFactory:()=>{const e=M(Gx),t=M(he),n=M(wu),r=M(_u),o=M(Gi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new aE(o,r,e,t,n)}},r?.preloadingStrategy?BL(r.preloadingStrategy).\u0275providers:[],{provide:ED,multi:!0,useFactory:zL},r?.initialNavigation?YL(r):[],r?.bindToComponentInputs?In(8,[Hw,{provide:mu,useExisting:Hw}]).\u0275providers:[],[{provide:pE,useFactory:lE},{provide:yd,multi:!0,useExisting:pE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:wo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(I(fE,8))},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({}),e})();function ZL(e){return"guarded"}function YL(e){return["disabled"===e.initialNavigation?In(3,[{provide:ud,multi:!0,useFactory:()=>{const t=M(tt);return()=>{t.setUpLocationChangeListener()}}},{provide:Xf,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?In(2,[{provide:Xf,useValue:0},{provide:ud,multi:!0,deps:[Kt],useFactory:t=>{const n=t.get(SO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(tt),i=t.get(cE);oE(o,()=>{r(!0)}),t.get(_u).afterPreactivation=()=>(r(!0),i.closed?x(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const pE=new S("");let Eo=(()=>{class e{constructor(n,r,o){this.http=n,this.router=r,this.appMessageService=o,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none"}handleError(n="operation",r){return o=>(console.error(o),this.log(`Error @ ${n}: ${o.status} ${o.statusText}`),o)}log(n){this.appMessageService.add(`LoginService: ${n}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}authenticate(n){this.log(`Authenticating: ${n.username}`),this.credentials=n;const r=new dt({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(e.REST_URL,{headers:r}).pipe(ye(o=>this.authorizationRecieved(o)),et(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(n){this.authenticated=!0;let r=n.authorities[0].authority;r=r.substring(r.indexOf("_")+1),this.authority=r,this.log(`Authenticated '${n.name}' as '${r}'`),console.log(`Authenticated as ${JSON.stringify(n)}`)}}return e.REST_URL="https://tds.truyen.network/api/user",e.\u0275fac=function(n){return new(n||e)(I(Vi),I(tt),I(Bi))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const XL=["scrollMe"];function KL(e,t){if(1&e&&(N(0,"li")(1,"div",7)(2,"span",8),W(3),P(),N(4,"span",9),W(5),Wc(6,"date"),P(),N(7,"span",10),W(8),P()(),N(9,"span",11),W(10),P()()),2&e){const n=t.$implicit;ne(3),Dt(n.id),ne(2),Dt(qc(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),ne(3),Dt(n.author),ne(2),Dt(n.text)}}function JL(e,t){if(1&e){const n=ga();N(0,"ul",4,5),se("scroll",function(){return Lo(n),Vo(ar().onScroll())}),ir(2,KL,11,7,"li",6),P()}if(2&e){const n=ar();ne(2),we("ngForOf",n.messages)}}let Kf=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(A1),D(Eo))},e.\u0275cmp=Nn({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Ma(XL,5),2&n){let o;Ei(o=bi())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(ir(0,JL,3,1,"ul",0),N(1,"div",1)(2,"input",2),se("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),P(),N(3,"button",3),se("click",function(){return r.sendMessage()}),W(4,"Send"),P(),N(5,"button",3),se("click",function(){return r.getChatMessages()}),W(6,"Reload"),P()()),2&n&&(we("ngIf",r.messages.length),ne(2),we("ngModel",r.newMessage))},dependencies:[Ti,Hd,ao,Za,ki,$d],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const eV=["scrollMe"];function tV(e,t){if(1&e&&(N(0,"p"),W(1),P()),2&e){const n=t.$implicit;ne(1),Dt(n)}}function nV(e,t){if(1&e){const n=ga();N(0,"div",1)(1,"div")(2,"button",2),se("click",function(){return Lo(n),Vo(ar().appMessagesService.clear())}),W(3,"Clear messages"),P(),N(4,"h2"),W(5,"App messages"),P()(),N(6,"div",3,4),se("scroll",function(){return Lo(n),Vo(ar().onScroll())}),ir(8,tV,2,1,"p",5),P()()}if(2&e){const n=ar();ne(8),we("ngForOf",n.appMessagesService.messages)}}let rV=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(Bi))},e.\u0275cmp=Nn({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Ma(eV,5),2&n){let o;Ei(o=bi())&&(r.myScrollContainer=o.first)}},decls:1,vars:1,consts:[["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&ir(0,nV,9,1,"div",0),2&n&&we("ngIf",r.appMessagesService.messages.length)},dependencies:[Ti,Hd],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]}),e})();const gE=function(){return{exact:!0}};let oV=(()=>{class e{constructor(n){this.loginService=n,this.title="TDS family site",this.chatLoaded=!1,this.chatHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){this.loginService.logout()}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endDrag(),document.onmousemove=r=>this.dragElement(r),this.target=document.getElementById("chatwindow"))}dragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}}return e.\u0275fac=function(n){return new(n||e)(D(Eo))},e.\u0275cmp=Nn({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Ma(Kf,5),2&n){let o;Ei(o=bi())&&(r.chatComponent=o.first)}},decls:31,vars:10,consts:[[3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/login"],["routerLinkActive","active-link","routerLink","/todo"],["id","logout",3,"click"],["id","tools",3,"hidden"],["id","toolbar"],[3,"click"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer"]],template:function(n,r){1&n&&(N(0,"nav")(1,"span",0)(2,"h1"),W(3),P(),N(4,"a",1),W(5,"Home"),P(),N(6,"a",2),W(7,"Login"),P()(),N(8,"span",0)(9,"h1"),W(10),P(),N(11,"a",1),W(12,"Home"),P(),N(13,"a",3),W(14,"Todo"),P(),N(15,"a",4),se("click",function(){return r.logout()}),W(16,"Logout"),P()()(),N(17,"main"),sr(18,"router-outlet"),P(),N(19,"div",5)(20,"div",6)(21,"button",7),se("click",function(){return r.toggleChatHidden()}),W(22,"Open Chat"),P()(),N(23,"div",8)(24,"div",9),se("mousedown",function(i){return r.startDragging(i)}),W(25,"Chat"),N(26,"button",10),se("click",function(){return r.toggleChatHidden()}),W(27,"\u2716"),P()(),N(28,"div",11),sr(29,"app-chat"),P()()(),sr(30,"app-messages",12)),2&n&&(ne(1),we("hidden",r.isAuthenticated()),ne(2),Dt(r.title),ne(1),we("routerLinkActiveOptions",Gc(8,gE)),ne(4),we("hidden",!r.isAuthenticated()),ne(2),Dt(r.username()),ne(1),we("routerLinkActiveOptions",Gc(9,gE)),ne(8),we("hidden",!r.isAuthenticated()),ne(4),we("hidden",r.isChatHidden()))},dependencies:[Uf,Eu,iE,rV,Kf],styles:["h1[_ngcontent-%COMP%]{margin:0;float:right;font-size:x-large}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer;float:right;margin-right:1em;font-size:large}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{position:absolute;left:0;top:2em}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})(),iV=(()=>{class e{constructor(n,r){this.http=n,this.appMessageService=r,this.httpOptions={headers:new dt({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",r){return o=>(console.error(o),this.log(`Error @ ${n}: ${o.status} ${o.statusText}`),x(r))}log(n){this.appMessageService.add(`TodoService: ${n}`)}getTodos(){return this.http.get(e.REST_URL,this.httpOptions).pipe(ye(n=>this.log(`fetched ${n.length} todos`)),et(this.handleError("getTodos",[])))}addTodo(n){return this.http.post(e.REST_URL,{text:n},this.httpOptions).pipe(ye(o=>this.log(`added todo w/ id=${o.id}`)),et(this.handleError("addTodo")))}deleteTodo(n){return this.http.delete(`${e.REST_URL}/${n}`,this.httpOptions).pipe(ye(o=>this.log(`deleted todo id=${n}`)),et(this.handleError("deleteTodo")))}}return e.REST_URL="https://tds.truyen.network/api/todos",e.\u0275fac=function(n){return new(n||e)(I(Vi),I(Bi))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function sV(e,t){if(1&e){const n=ga();N(0,"li")(1,"div",6)(2,"span",7),W(3),P(),N(4,"span",8),W(5),Wc(6,"date"),P(),N(7,"button",9),se("click",function(){const i=Lo(n).$implicit;return Vo(ar().delete(i))}),W(8,"x"),P()(),N(9,"span",10),W(10),P()()}if(2&e){const n=t.$implicit;ne(3),Dt(n.id),ne(2),Dt(qc(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),ne(5),Dt(n.text)}}let aV=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(D(iV))},e.\u0275cmp=Nn({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(N(0,"h2"),W(1,"Todos"),P(),N(2,"ol",0),ir(3,sV,11,6,"li",1),P(),N(4,"h2"),W(5,"New Todo:"),P(),N(6,"div",2)(7,"div")(8,"label",3),W(9,"Text:"),P(),N(10,"input",4),se("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),P(),N(11,"button",5),se("click",function(){return r.sendTodo()}),W(12,"Send"),P()()()),2&n&&(ne(3),we("ngForOf",r.todos),ne(7),we("ngModel",r.newTodo))},dependencies:[Ti,ao,Za,ki,$d],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})(),uV=(()=>{class e{constructor(n,r){this.http=n,this.appMessageService=r,this.httpOptions={headers:new dt({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",r){return o=>(console.error(o),this.log(`Error @ ${n}: ${o.status} ${o.statusText}`),x(r))}log(n){this.appMessageService.add(`NewsService: ${n}`)}getNewsPosts(){return this.http.get(e.REST_URL,this.httpOptions).pipe(ye(n=>this.log(`fetched ${n.length} news posts`)),et(this.handleError("getNews",[])))}addNewsPost(n,r){return this.http.post(e.REST_URL,{author:n,text:r},this.httpOptions).pipe(ye(i=>this.log(`added message w/ id=${i.id}`)),et(this.handleError("addNewsPost")))}}return e.REST_URL="https://tds.truyen.network/api/news",e.\u0275fac=function(n){return new(n||e)(I(Vi),I(Bi))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function lV(e,t){if(1&e&&(N(0,"p"),W(1),P()),2&e){const n=t.$implicit;ne(1),Dt(n.text)}}const mE=(e,t)=>{const n=M(Eo),r=M(tt);return!!n.isAuthenticated()||r.parseUrl("/login")},fV=[{path:"",component:(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(D(Eo),D(uV))},e.\u0275cmp=Nn({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(N(0,"span",0)(1,"p"),W(2),P(),N(3,"h3"),W(4,"News"),P(),N(5,"div",1),ir(6,lV,2,1,"p",2),P()(),N(7,"p",0),W(8,"Welcome to our family site! Please login."),P()),2&n&&(we("hidden",!r.isAuthenticated()),ne(2),Da("Welcome, ",r.username(),"!"),ne(4),we("ngForOf",r.messages),ne(1),we("hidden",r.isAuthenticated()))},dependencies:[Ti],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),pathMatch:"full"},{path:"login",component:(()=>{class e{constructor(n,r){this.app=n,this.router=r,this.error=!1,this.credentials={username:"",password:""}}login(){return this.app.authenticate(this.credentials).subscribe({next:()=>{this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(D(Eo),D(tt))},e.\u0275cmp=Nn({type:e,selectors:[["app-login"]],decls:19,vars:3,consts:[[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["type","checkbox","id","rememberme","name","rememberme"],["for","rememberme"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(N(0,"h2"),W(1,"Login form"),P(),N(2,"p",0),W(3," There was a problem logging in. Please try again.\n"),P(),N(4,"form",1),se("submit",function(){return r.login()}),N(5,"div",2)(6,"label",3),W(7,"Username:"),P(),N(8,"input",4),se("ngModelChange",function(i){return r.credentials.username=i}),P()(),N(9,"div",2)(10,"label",5),W(11,"Password:"),P(),N(12,"input",6),se("ngModelChange",function(i){return r.credentials.password=i}),P()(),N(13,"div"),sr(14,"input",7),N(15,"label",8),W(16,"Remember me"),P()(),N(17,"button",9),W(18,"Login"),P()()),2&n&&(ne(2),we("hidden",!r.error),ne(6),we("ngModel",r.credentials.username),ne(4),we("ngModel",r.credentials.password))},dependencies:[A_,ao,Za,p_,ki,ru],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:6em;text-align:right;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})()},{path:"chat",component:Kf,canActivate:[mE]},{path:"todo",component:aV,canActivate:[mE]}];let hV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[hE.forRoot(fV),hE]}),e})(),pV=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(I(Eo))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),gV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Ot({type:e,bootstrap:[oV]}),e.\u0275inj=Mt({providers:[{provide:ew,useClass:pV,multi:!0}],imports:[$P,KF,w1,hV]}),e})();jP().bootstrapModule(gV).catch(e=>console.error(e))}},ie=>{ie(ie.s=435)}]); |