-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.f4e5b98393737f2e.js
More file actions
1 lines (1 loc) · 177 KB
/
Copy pathmain.f4e5b98393737f2e.js
File metadata and controls
1 lines (1 loc) · 177 KB
1
(self.webpackChunkserial_api=self.webpackChunkserial_api||[]).push([[179],{804:(Yt,nt,ur)=>{"use strict";function Z(e){return"function"==typeof e}function xe(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 Lt=xe(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function kt(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class De{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 o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(Z(r))try{r()}catch(o){t=o instanceof Lt?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{jt(o)}catch(s){t=t??[],s instanceof Lt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Lt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)jt(t);else{if(t instanceof De){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)&&kt(n,t)}remove(t){const{_finalizers:n}=this;n&&kt(n,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Jt=De.EMPTY;function _t(e){return e instanceof De||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function jt(e){Z(e)?e():e.unsubscribe()}const Fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vn={setTimeout(e,t,...n){const{delegate:r}=vn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=vn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function wo(e){vn.setTimeout(()=>{const{onUnhandledError:t}=Fe;if(!t)throw e;t(e)})}function _o(){}const _a=kn("C",void 0,void 0);function kn(e,t,n){return{kind:e,value:t,error:n}}let Vt=null;function jn(e){if(Fe.useDeprecatedSynchronousErrorHandling){const t=!Vt;if(t&&(Vt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Vt;if(Vt=null,n)throw r}}else e()}class ri extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_t(t)&&t.add(this)):this.destination=we}static create(t,n,r){return new w(t,n,r)}next(t){this.isStopped?de(function Ea(e){return kn("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?de(function Ca(e){return kn("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?de(_a,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 ii=Function.prototype.bind;function oi(e,t){return ii.call(e,t)}class rt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){b(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){b(r)}else b(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){b(n)}}}class w extends ri{constructor(t,n,r){let i;if(super(),Z(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Fe.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&oi(t.next,o),error:t.error&&oi(t.error,o),complete:t.complete&&oi(t.complete,o)}):i=t}this.destination=new rt(i)}}function b(e){Fe.useDeprecatedSynchronousErrorHandling?function ba(e){Fe.useDeprecatedSynchronousErrorHandling&&Vt&&(Vt.errorThrown=!0,Vt.error=e)}(e):wo(e)}function de(e,t){const{onStoppedNotification:n}=Fe;n&&vn.setTimeout(()=>n(e,t))}const we={closed:!0,next:_o,error:function H(e){throw e},complete:_o},Ue="function"==typeof Symbol&&Symbol.observable||"@@observable";function ht(e){return e}function xd(e){return 0===e.length?ht:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(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,i){const o=function JD(e){return e&&e instanceof ri||function YD(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}(e)&&_t(e)}(n)?n:new w(n,r,i);return jn(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Nd(r))((i,o)=>{const s=new w({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Ue](){return this}pipe(...n){return xd(n)(this)}toPromise(n){return new(n=Nd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Nd(e){var t;return null!==(t=e??Fe.Promise)&&void 0!==t?t:Promise}const XD=xe(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $t=(()=>{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 Pd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new XD}next(n){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){jn(()=>{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(){jn(()=>{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:i,observers:o}=this;return r||i?Jt:(this.currentObservers=null,o.push(n),new De(()=>{this.currentObservers=null,kt(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new _e;return n.source=this,n}}return e.create=(t,n)=>new Pd(t,n),e})();class Pd extends $t{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:Jt}}function Od(e){return Z(e?.lift)}function Te(e){return t=>{if(Od(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 Ae(e,t,n,r,i){return new ew(e,t,n,r,i)}class ew extends ri{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(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 Q(e,t){return Te((n,r)=>{let i=0;n.subscribe(Ae(r,o=>{r.next(e.call(t,o,i++))}))})}function Dn(e){return this instanceof Dn?(this.v=e,this):new Dn(e)}function kd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(p,g){o.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Dn?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function jd(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 Ta(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(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){!function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}(a,u,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Vd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function $d(e){return Z(e?.then)}function Bd(e){return Z(e[Ue])}function Ud(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function Hd(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 zd=function Cw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gd(e){return Z(e?.[zd])}function Wd(e){return kd(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield Dn(n.read());if(i)return yield Dn(void 0);yield yield Dn(r)}}finally{n.releaseLock()}})}function qd(e){return Z(e?.getReader)}function Bt(e){if(e instanceof _e)return e;if(null!=e){if(Bd(e))return function Ew(e){return new _e(t=>{const n=e[Ue]();if(Z(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Vd(e))return function bw(e){return new _e(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if($d(e))return function Iw(e){return new _e(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,wo)})}(e);if(Ud(e))return Qd(e);if(Gd(e))return function Sw(e){return new _e(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(qd(e))return function Mw(e){return Qd(Wd(e))}(e)}throw Hd(e)}function Qd(e){return new _e(t=>{(function Tw(e,t){var n,r,i,o;return function Fd(e,t,n,r){return new(n||(n=Promise))(function(o,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?o(c.value):function i(o){return o instanceof n?o:new n(function(s){s(o)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=jd(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Xt(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Ne(e,t,n=1/0){return Z(t)?Ne((r,i)=>Q((o,s)=>t(r,o,i,s))(Bt(e(r,i))),n):("number"==typeof t&&(n=t),Te((r,i)=>function Aw(e,t,n,r,i,o,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l<r?p(g):u.push(g),p=g=>{o&&t.next(g),l++;let m=!1;Bt(n(g,c++)).subscribe(Ae(t,D=>{i?.(D),o?h(D):t.next(D)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&l<r;){const D=u.shift();s?Xt(t,s,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(Ae(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,n)))}function lr(e=1/0){return Ne(ht,e)}const en=new _e(e=>e.complete());function Aa(e){return e[e.length-1]}function si(e){return function xw(e){return e&&Z(e.schedule)}(Aa(e))?e.pop():void 0}function Zd(e,t=0){return Te((n,r)=>{n.subscribe(Ae(r,i=>Xt(r,e,()=>r.next(i),t),()=>Xt(r,e,()=>r.complete(),t),i=>Xt(r,e,()=>r.error(i),t)))})}function Kd(e,t=0){return Te((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Yd(e,t){if(!e)throw new Error("Iterable cannot be null");return new _e(n=>{Xt(n,t,()=>{const r=e[Symbol.asyncIterator]();Xt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ce(e,t){return t?function Vw(e,t){if(null!=e){if(Bd(e))return function Ow(e,t){return Bt(e).pipe(Kd(t),Zd(t))}(e,t);if(Vd(e))return function Lw(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($d(e))return function Fw(e,t){return Bt(e).pipe(Kd(t),Zd(t))}(e,t);if(Ud(e))return Yd(e,t);if(Gd(e))return function kw(e,t){return new _e(n=>{let r;return Xt(n,t,()=>{r=e[zd](),Xt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>Z(r?.return)&&r.return()})}(e,t);if(qd(e))return function jw(e,t){return Yd(Wd(e),t)}(e,t)}throw Hd(e)}(e,t):Bt(e)}function Ra(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new w({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function te(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(te).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 Na(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Uw=ee({__forward_ref__:ee});function Pa(e){return e.__forward_ref__=Pa,e.toString=function(){return te(this())},e}function P(e){return function Oa(e){return"function"==typeof e&&e.hasOwnProperty(Uw)&&e.__forward_ref__===Pa}(e)?e():e}class I extends Error{constructor(t,n){super(function Co(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function K(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function L(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Eo(e,t){throw new I(-201,!1)}function ot(e,t){null==e&&function J(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wn(e){return{providers:e.providers||[],imports:e.imports||[]}}function bo(e){return Jd(e,Io)||Jd(e,ef)}function Jd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Xd(e){return e&&(e.hasOwnProperty(Fa)||e.hasOwnProperty(Yw))?e[Fa]:null}const Io=ee({\u0275prov:ee}),Fa=ee({\u0275inj:ee}),ef=ee({ngInjectableDef:ee}),Yw=ee({ngInjectorDef:ee});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let La;function pt(e){const t=La;return La=e,t}function tf(e,t,n){const r=bo(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==t?t:void Eo(te(e))}function _n(e){return{toString:e}.toString()}var Ct=(()=>((Ct=Ct||{})[Ct.OnPush=0]="OnPush",Ct[Ct.Default=1]="Default",Ct))(),Ut=(()=>{return(e=Ut||(Ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ut;var e})();const ne=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),cr={},Y=[],So=ee({\u0275cmp:ee}),ka=ee({\u0275dir:ee}),ja=ee({\u0275pipe:ee}),nf=ee({\u0275mod:ee}),nn=ee({\u0275fac:ee}),ai=ee({__NG_ELEMENT_ID__:ee});let Xw=0;function ui(e){return _n(()=>{const n=!0===e.standalone,r={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c"+Xw++,styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.dependencies,s=e.features;return i.inputs=af(e.inputs,r),i.outputs=af(e.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(rf).filter(sf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ze).filter(sf):null,i})}function rf(e){return X(e)||He(e)}function sf(e){return null!==e}function Vn(e){return _n(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function af(e,t){if(null==e)return cr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const Le=ui;function X(e){return e[So]||null}function He(e){return e[ka]||null}function ze(e){return e[ja]||null}function st(e,t){const n=e[nf]||null;if(!n&&!0===t)throw new Error(`Type ${te(e)} does not have '\u0275mod' property.`);return n}const V=11;function Je(e){return Array.isArray(e)&&"object"==typeof e[1]}function bt(e){return Array.isArray(e)&&!0===e[1]}function Ba(e){return 0!=(8&e.flags)}function Ro(e){return 2==(2&e.flags)}function xo(e){return 1==(1&e.flags)}function It(e){return null!==e.template}function o_(e){return 0!=(256&e[2])}function zn(e,t){return e.hasOwnProperty(nn)?e[nn]:null}class u_{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function cf(e){return e.type.prototype.ngOnChanges&&(e.setInput=c_),l_}function l_(){const e=ff(this),t=e?.current;if(t){const n=e.previous;if(n===cr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function c_(e,t,n,r){const i=ff(e)||function d_(e,t){return e[df]=t}(e,{previous:cr,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new u_(u&&u.currentValue,t,s===cr),e[r]=t}const df="__ngSimpleChanges__";function ff(e){return e[df]||null}function ge(e){for(;Array.isArray(e);)e=e[0];return e}function ut(e,t){return ge(t[e.index])}function lt(e,t){const n=t[e];return Je(n)?n:n[0]}function Po(e){return 64==(64&e[2])}function Cn(e,t){return null==t?null:e[t]}function hf(e){e[18]=0}function qa(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const F={lFrame:Ef(null),bindingsEnabled:!0};function gf(){return F.bindingsEnabled}function v(){return F.lFrame.lView}function W(){return F.lFrame.tView}function Ee(){let e=mf();for(;null!==e&&64===e.type;)e=e.parent;return e}function mf(){return F.lFrame.currentTNode}function Ht(e,t){const n=F.lFrame;n.currentTNode=e,n.isParent=t}function Qa(){return F.lFrame.isParent}function T_(e,t){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ka(t)}function Ka(e){F.lFrame.currentDirectiveIndex=e}function Ja(e){F.lFrame.currentQueryIndex=e}function R_(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function _f(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&x.Host||(i=R_(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=F.lFrame=Cf();return r.currentTNode=t,r.lView=e,!0}function Xa(e){const t=Cf(),n=e[1];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cf(){const e=F.lFrame,t=null===e?null:e.child;return null===t?Ef(e):t}function Ef(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 bf(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const If=bf;function eu(){const e=bf();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 En(e){F.lFrame.selectedIndex=e}function Oo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=o;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),u&&(e.viewHooks||(e.viewHooks=[])).push(-n,u),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Fo(e,t,n){Sf(e,t,3,n)}function Lo(e,t,n,r){(3&e[2])===n&&Sf(e,t,n,r)}function tu(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Sf(e,t,n,r){const o=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[18]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[18]+=65536),(a<o||-1==o)&&(V_(e,n,t,u),e[18]=(4294901760&e[18])+u+2),u++}function V_(e,t,n,r){const i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class pi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ko(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{const o=i,s=n[++r];Tf(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function Mf(e){return 3===e||4===e||6===e}function Tf(e){return 64===e.charCodeAt(0)}function jo(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 i=t[r];"number"==typeof i?n=i:0===n||Af(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Af(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const a=e[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<e.length;){const a=e[o];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Rf(e){return-1!==e}function yr(e){return 32767&e}function vr(e,t){let n=function z_(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ru=!0;function Vo(e){const t=ru;return ru=e,t}let G_=0;const zt={};function mi(e,t){const n=ou(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,iu(r.data,e),iu(t,null),iu(r.blueprint,null));const i=$o(e,t),o=e.injectorIndex;if(Rf(i)){const s=yr(i),a=vr(i,t),u=a[1].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l]}return t[o+8]=i,o}function iu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ou(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function $o(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Vf(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Bo(e,t,n){!function W_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ai)&&(r=n[ai]),null==r&&(r=n[ai]=G_++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function Pf(e,t,n){if(n&x.Optional||void 0!==e)return e;Eo()}function Of(e,t,n,r){if(n&x.Optional&&void 0===r&&(r=null),0==(n&(x.Self|x.Host))){const i=e[9],o=pt(void 0);try{return i?i.get(t,r,n&x.Optional):tf(t,r,n&x.Optional)}finally{pt(o)}}return Pf(r,0,n)}function Ff(e,t,n,r=x.Default,i){if(null!==e){if(1024&t[2]){const s=function J_(e,t,n,r,i){let o=e,s=t;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=Lf(o,s,n,r|x.Self,zt);if(a!==zt)return a;let u=o.parent;if(!u){const l=s[21];if(l){const c=l.get(n,zt,r);if(c!==zt)return c}u=Vf(s),s=s[15]}o=u}return i}(e,t,n,r,zt);if(s!==zt)return s}const o=Lf(e,t,n,r,zt);if(o!==zt)return o}return Of(t,n,r,i)}function Lf(e,t,n,r,i){const o=function Z_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ai)?e[ai]:void 0;return"number"==typeof t?t>=0?255&t:K_:t}(n);if("function"==typeof o){if(!_f(t,e,r))return r&x.Host?Pf(i,0,r):Of(t,n,r,i);try{const s=o(r);if(null!=s||r&x.Optional)return s;Eo()}finally{If()}}else if("number"==typeof o){let s=null,a=ou(e,t),u=-1,l=r&x.Host?t[16][6]:null;for((-1===a||r&x.SkipSelf)&&(u=-1===a?$o(e,t):t[a+8],-1!==u&&jf(r,!1)?(s=t[1],a=yr(u),t=vr(u,t)):a=-1);-1!==a;){const c=t[1];if(kf(o,a,c.data)){const d=Q_(a,t,n,s,r,l);if(d!==zt)return d}u=t[a+8],-1!==u&&jf(r,t[1].data[a+8]===l)&&kf(o,a,t)?(s=c,a=yr(u),t=vr(u,t)):a=-1}}return i}function Q_(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],c=function Uo(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=o>>20,f=i?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(i){const h=s[u];if(h&&It(h)&&h.type===n)return u}return null}(a,s,n,null==r?Ro(a)&&ru:r!=s&&0!=(3&a.type),i&x.Host&&o===a);return null!==c?yi(t,s,c,a):zt}function yi(e,t,n,r){let i=e[n];const o=t.data;if(function $_(e){return e instanceof pi}(i)){const s=i;s.resolving&&function Hw(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new I(-200,`Circular dependency in DI detected for ${e}${n}`)}(K(o[n]));const a=Vo(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?pt(s.injectImpl):null;_f(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function j_(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=cf(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==u&&pt(u),Vo(a),s.resolving=!1,If()}}return i}function kf(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function jf(e,t){return!(e&x.Self||e&x.Host&&t)}class Dr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ff(this._tNode,this._lView,t,r,n)}}function K_(){return new Dr(Ee(),v())}function Vf(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}const _r="__parameters__";function Er(e,t,n){return _n(()=>{const r=function au(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(_r)?u[_r]:Object.defineProperty(u,_r,{value:[]})[_r];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class O{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=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(e,t){e.forEach(n=>Array.isArray(n)?sn(n,t):t(n))}function Bf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ho(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Ci={},du="__NG_DI_FLAG__",Go="ngTempTokenPath",cC=/\n/gm,Gf="__source";let Ei;function Ir(e){const t=Ei;return Ei=e,t}function fC(e,t=x.Default){if(void 0===Ei)throw new I(-203,!1);return null===Ei?tf(e,void 0,t):Ei.get(e,t&x.Optional?null:void 0,t)}function A(e,t=x.Default){return(function Jw(){return La}()||fC)(P(e),t)}function fe(e,t=x.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),A(e,t)}function fu(e){const t=[];for(let n=0;n<e.length;n++){const r=P(e[n]);if(Array.isArray(r)){if(0===r.length)throw new I(900,!1);let i,o=x.Default;for(let s=0;s<r.length;s++){const a=r[s],u=hC(a);"number"==typeof u?-1===u?i=a.token:o|=u:i=a}t.push(A(i,o))}else t.push(A(r))}return t}function bi(e,t){return e[du]=t,e.prototype[du]=t,e}function hC(e){return e[du]}const Ii=bi(Er("Optional"),8),Si=bi(Er("SkipSelf"),4);var Xe=(()=>((Xe=Xe||{})[Xe.Important=1]="Important",Xe[Xe.DashCase=2]="DashCase",Xe))();const yu=new Map;let xC=0;const Du="__ngContext__";function Ve(e,t){Je(t)?(e[Du]=t[20],function PC(e){yu.set(e[20],e)}(t)):e[Du]=t}function _u(e,t){return undefined(e,t)}function Ri(e){const t=e[3];return bt(t)?t[3]:t}function Cu(e){return fh(e[13])}function Eu(e){return fh(e[4])}function fh(e){for(;null!==e&&!bt(e);)e=e[4];return e}function Mr(e,t,n,r,i){if(null!=r){let o,s=!1;bt(r)?o=r:Je(r)&&(s=!0,r=r[0]);const a=ge(r);0===e&&null!==n?null==i?vh(t,n,a):Wn(t,n,a,i||null,!0):1===e&&null!==n?Wn(t,n,a,i||null,!0):2===e?function Ru(e,t,n){const r=Qo(e,t);r&&function tE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function iE(e,t,n,r,i){const o=n[7];o!==ge(n)&&Mr(t,e,r,o,i);for(let a=10;a<n.length;a++){const u=n[a];xi(u[1],u,e,t,r,o)}}(t,e,o,n,i)}}function Iu(e,t,n){return e.createElement(t,n)}function ph(e,t){const n=e[9],r=n.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,qa(i,-1)),n.splice(r,1)}function Su(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&ph(i,r),t>0&&(e[n-1][4]=r[4]);const o=Ho(e,10+t);!function qC(e,t){xi(e,t,t[V],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function gh(e,t){if(!(128&t[2])){const n=t[V];n.destroyNode&&xi(e,t,n,3,null,null),function KC(e){let t=e[13];if(!t)return Mu(e[1],e);for(;t;){let n=null;if(Je(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Je(t)&&Mu(t[1],t),t=t[3];null===t&&(t=e),Je(t)&&Mu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mu(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function eE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof pi)){const o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],u=o[s+1];try{u.call(a)}finally{}}else try{o.call(i)}finally{}}}}(e,t),function XC(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const s=n[o+1],a="function"==typeof s?s(t):ge(t[s]),u=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?a.removeEventListener(n[o],u,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();t[7]=null}}(e,t),1===t[1].type&&t[V].destroy();const n=t[17];if(null!==n&&bt(t[3])){n!==t[3]&&ph(n,t);const r=t[19];null!==r&&r.detachView(e)}!function OC(e){yu.delete(e[20])}(t)}}function mh(e,t,n){return function yh(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===Ut.None||i===Ut.Emulated)return null}return ut(r,n)}(e,t.parent,n)}function Wn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function vh(e,t,n){e.appendChild(t,n)}function Dh(e,t,n,r,i){null!==r?Wn(e,t,n,r,i):vh(e,t,n)}function Qo(e,t){return e.parentNode(t)}let Ou,Ch=function _h(e,t,n){return 40&e.type?ut(e,n):null};function Zo(e,t,n,r){const i=mh(e,r,t),o=t[V],a=function wh(e,t,n){return Ch(e,t,n)}(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let u=0;u<n.length;u++)Dh(o,i,n[u],a,!1);else Dh(o,i,n,a,!1)}function Ko(e,t){if(null!==t){const n=t.type;if(3&n)return ut(t,e);if(4&n)return Au(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Ko(e,r);{const i=e[t.index];return bt(i)?Au(-1,i):ge(i)}}if(32&n)return _u(t,e)()||ge(e[t.index]);{const r=bh(e,t);return null!==r?Array.isArray(r)?r[0]:Ko(Ri(e[16]),r):Ko(e,t.next)}}return null}function bh(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Au(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return Ko(r,i)}return t[7]}function xu(e,t,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&Ve(ge(a),r),n.flags|=4),64!=(64&n.flags))if(8&u)xu(e,t,n.child,r,i,o,!1),Mr(t,e,i,a,o);else if(32&u){const l=_u(n,r);let c;for(;c=l();)Mr(t,e,i,c,o);Mr(t,e,i,a,o)}else 16&u?Ih(e,t,r,n,i,o):Mr(t,e,i,a,o);n=s?n.projectionNext:n.next}}function xi(e,t,n,r,i,o){xu(n,r,e.firstChild,t,i,o,!1)}function Ih(e,t,n,r,i,o){const s=n[16],u=s[6].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Mr(t,e,i,u[l],o);else xu(e,t,u,s[3],i,o,!0)}function Sh(e,t,n){e.setAttribute(t,"style",n)}function Nu(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}const Bu=new O("ENVIRONMENT_INITIALIZER"),Vh=new O("INJECTOR",-1),$h=new O("INJECTOR_DEF_TYPES");class Bh{get(t,n=Ci){if(n===Ci){const r=new Error(`NullInjectorError: No provider for ${te(t)}!`);throw r.name="NullInjectorError",r}return n}}function PE(...e){return{\u0275providers:Uh(0,e)}}function Uh(e,...t){const n=[],r=new Set;let i;return sn(t,o=>{const s=o;Uu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Hh(i,n),n}function Hh(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];sn(i,o=>{t.push(o)})}}function Uu(e,t,n,r){if(!(e=P(e)))return!1;let i=null,o=Xd(e);const s=!o&&X(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const u=e.ngModule;if(o=Xd(u),!o)return!1;i=u}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)Uu(l,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{sn(o.imports,c=>{Uu(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&Hh(l,t)}if(!a){const l=zn(i)||(()=>new i);t.push({provide:i,useFactory:l,deps:Y},{provide:$h,useValue:i,multi:!0},{provide:Bu,useValue:()=>A(i),multi:!0})}const u=o.providers;null==u||a||sn(u,c=>{t.push(c)})}}return i!==e&&void 0!==e.providers}const OE=ee({provide:String,useValue:ee});function Hu(e){return null!==e&&"object"==typeof e&&OE in e}function Qn(e){return"function"==typeof e}const zu=new O("Set Injector scope."),es={},LE={};let Gu;function ts(){return void 0===Gu&&(Gu=new Bh),Gu}class Sn{}class Wh extends Sn{constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qu(t,s=>this.processProvider(s)),this.records.set(Vh,Tr(void 0,this)),i.has("environment")&&this.records.set(Sn,Tr(void 0,this));const o=this.records.get(zu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get($h.multi,Y,x.Self))}get destroyed(){return this._destroyed}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){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=Ir(this),r=pt(void 0);try{return t()}finally{Ir(n),pt(r)}}get(t,n=Ci,r=x.Default){this.assertNotDestroyed();const i=Ir(this),o=pt(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function BE(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&bo(t);a=u&&this.injectableDefInScope(u)?Tr(Wu(t),es):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?ts():this.parent).get(t,n=r&x.Optional&&n===Ci?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Go]=s[Go]||[]).unshift(te(t)),i)throw s;return function pC(e,t,n,r){const i=e[Go];throw t[Gf]&&i.unshift(t[Gf]),e.message=function gC(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=te(t);if(Array.isArray(t))i=t.map(te).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):te(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(cC,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Go]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{pt(o),Ir(i)}}resolveInjectorInitializers(){const t=Ir(this),n=pt(void 0);try{const r=this.get(Bu.multi,Y,x.Self);for(const i of r)i()}finally{Ir(t),pt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(te(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(t){let n=Qn(t=P(t))?t:P(t&&t.provide);const r=function jE(e){return Hu(e)?Tr(void 0,e.useValue):Tr(function qh(e,t,n){let r;if(Qn(e)){const i=P(e);return zn(i)||Wu(i)}if(Hu(e))r=()=>P(e.useValue);else if(function Gh(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fu(e.deps||[]));else if(function zh(e){return!(!e||!e.useExisting)}(e))r=()=>A(P(e.useExisting));else{const i=P(e&&(e.useClass||e.provide));if(!function VE(e){return!!e.deps}(e))return zn(i)||Wu(i);r=()=>new i(...fu(e.deps))}return r}(e),es)}(t);if(Qn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Tr(void 0,es,!0),i.factory=()=>fu(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===es&&(n.value=LE,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $E(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=P(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Wu(e){const t=bo(e),n=null!==t?t.factory:zn(e);if(null!==n)return n;if(e instanceof O)throw new I(204,!1);if(e instanceof Function)return function kE(e){const t=e.length;if(t>0)throw function _i(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new I(204,!1);const n=function Zw(e){const t=e&&(e[Io]||e[ef]);if(t){const n=function Kw(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new I(204,!1)}function Tr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function UE(e){return!!e.\u0275providers}function qu(e,t){for(const n of e)Array.isArray(n)?qu(n,t):UE(n)?qu(n.\u0275providers,t):t(n)}class Qh{}class GE{resolveComponentFactory(t){throw function zE(e){const t=Error(`No component factory found for ${te(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Fi=(()=>{class e{}return e.NULL=new GE,e})();function WE(){return Ar(Ee(),v())}function Ar(e,t){return new Mn(ut(e,t))}let Mn=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=WE,e})();class Kh{}let ZE=(()=>{class e{}return e.\u0275prov=B({token:e,providedIn:"root",factory:()=>null}),e})();class rs{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const KE=new rs("14.3.0"),Qu={};function Ku(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&&Ku(t);for(;n&&Ku(n);)n=Ku(n);return n||null}}function un(e){return e instanceof Function?e():e}function Jh(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const Xh="ng-template";function ab(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==Jh(i.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}}return!1}function ep(e){return 4===e.type&&e.value!==Xh}function ub(e,t,n){return t===(4!==e.type||n?e.value:Xh)}function lb(e,t,n){let r=4;const i=e.attrs||[],o=function fb(e){for(let t=0;t<e.length;t++)if(Mf(e[t]))return t;return e.length}(i);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&&!ub(e,u,n)||""===u&&1===t.length){if(St(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!ab(e.attrs,l,n)){if(St(r))return!1;s=!0}continue}const d=cb(8&r?"class":u,i,ep(e),n);if(-1===d){if(St(r))return!1;s=!0;continue}if(""!==l){let f;f=d>o?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Jh(h,l,0)||2&r&&l!==f){if(St(r))return!1;s=!0}}}}else{if(!s&&!St(r)&&!St(u))return!1;if(s&&St(u))continue;s=!1,r=u|1&r}}return St(r)||s}function St(e){return 0==(1&e)}function cb(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){const s=t[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function hb(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 tp(e,t,n=!1){for(let r=0;r<t.length;r++)if(lb(e,t[r],n))return!0;return!1}function np(e,t){return e?":not("+t.trim()+")":t}function gb(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!St(s)&&(t+=np(o,i),i=""),r=s,o=o||!St(r);n++}return""!==i&&(t+=np(o,i)),t}const k={};function ap(e,t=null,n=null,r){const i=up(e,t,n,r);return i.resolveInjectorInitializers(),i}function up(e,t=null,n=null,r,i=new Set){const o=[n||Y,PE(e)];return r=r||("object"==typeof e?void 0:te(e)),new Wh(o,t||ts(),r||null,i)}let Mt=(()=>{class e{static create(n,r){if(Array.isArray(n))return ap({name:""},r,n,"");{const i=n.name??"";return ap({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Ci,e.NULL=new Bh,e.\u0275prov=B({token:e,providedIn:"any",factory:()=>A(Vh)}),e.__NG_ELEMENT_ID__=-1,e})();function S(e,t=x.Default){const n=v();return null===n?A(e,t):Ff(Ee(),n,P(e),t)}function tl(){throw new Error("invalid")}function Ip(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const s=e.data[o];Ja(i),s.contentQueries(2,t[o],o)}}}function us(e,t,n,r,i,o,s,a,u,l,c){const d=t.blueprint.slice();return d[0]=i,d[2]=76|r,(null!==c||e&&1024&e[2])&&(d[2]|=1024),hf(d),d[3]=d[15]=e,d[8]=n,d[10]=s||e&&e[10],d[V]=a||e&&e[V],d[12]=u||e&&e[12]||null,d[9]=l||e&&e[9]||null,d[6]=o,d[20]=function NC(){return xC++}(),d[21]=c,d[16]=2==t.type?e[16]:d,d}function Pr(e,t,n,r,i){let o=e.data[t];if(null===o)o=function fl(e,t,n,r,i){const o=mf(),s=Qa(),u=e.data[t]=function Jb(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=u),null!==o&&(s?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u)),u}(e,t,n,r,i),function M_(){return F.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=function hi(){const e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Ht(o,!0),o}function Or(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function hl(e,t,n){Xa(t);try{const r=e.viewQuery;null!==r&&_l(1,r,n);const i=e.template;null!==i&&Sp(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ip(e,t),e.staticViewQueries&&_l(2,e.viewQuery,n);const o=e.components;null!==o&&function Zb(e,t){for(let n=0;n<t.length;n++)pI(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,eu()}}function ls(e,t,n,r){const i=t[2];if(128!=(128&i)){Xa(t);try{hf(t),function vf(e){return F.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Sp(e,t,n,2,r);const s=3==(3&i);if(s){const l=e.preOrderCheckHooks;null!==l&&Fo(t,l,null)}else{const l=e.preOrderHooks;null!==l&&Lo(t,l,0,null),tu(t,0)}if(function fI(e){for(let t=Cu(e);null!==t;t=Eu(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r],o=i[3];0==(512&i[2])&&qa(o,1),i[2]|=512}}}(t),function dI(e){for(let t=Cu(e);null!==t;t=Eu(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];Po(r)&&ls(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Ip(e,t),s){const l=e.contentCheckHooks;null!==l&&Fo(t,l)}else{const l=e.contentHooks;null!==l&&Lo(t,l,1),tu(t,1)}!function qb(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)En(~i);else{const o=i,s=n[++r],a=n[++r];T_(s,o),a(2,t[o])}}}finally{En(-1)}}(e,t);const a=e.components;null!==a&&function Qb(e,t){for(let n=0;n<t.length;n++)hI(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&_l(2,u,r),s){const l=e.viewCheckHooks;null!==l&&Fo(t,l)}else{const l=e.viewHooks;null!==l&&Lo(t,l,2),tu(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,qa(t[3],-1))}finally{eu()}}}function Sp(e,t,n,r,i){const o=function We(){return F.lFrame.selectedIndex}(),s=2&r;try{En(-1),s&&t.length>22&&function rp(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&Fo(t,o,n)}else{const o=e.preOrderHooks;null!==o&&Lo(t,o,0,n)}En(n)}(e,t,22,!1),n(r,i)}finally{En(o)}}function Tp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ml(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ml(e,t,n,r,i,o,s,a,u,l){const c=22+r,d=c+i,f=function Kb(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:k);return n}(c,d),h="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:h,incompleteFirstPass:!1}}function Rp(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function xp(e,t){const r=t.directiveEnd,i=e.data,o=t.attrs,s=[];let a=null,u=null;for(let l=t.directiveStart;l<r;l++){const c=i[l],d=c.inputs,f=null===o||ep(t)?null:cI(d,o);s.push(f),a=Rp(d,l,a),u=Rp(c.outputs,l,u)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=u}function Pp(e,t,n,r,i,o){const s=o.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const u=~t.index;(function nI(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,i,s)}}function Op(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function aI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;It(t)&&(n[""]=e)}}function Lp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function kp(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=zn(i.type)),s=new pi(o,It(i),S);e.blueprint[r]=s,n[r]=s,Pp(e,t,0,r,Or(e,n,i.hostVars,k),i)}function uI(e,t,n){const r=ut(t,e),i=Tp(n),o=e[10],s=cs(e,us(e,i,null,n.onPush?32:16,r,t,o,o.createRenderer(r,n),null,null,null));e[t.index]=s}function lI(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let u=0;u<s.length;){const l=s[u++],c=s[u++],d=s[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function cI(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function hI(e,t){const n=lt(t,e);if(Po(n)){const r=n[1];48&n[2]?ls(r,n,r.template,n[8]):n[5]>0&&Dl(n)}}function Dl(e){for(let r=Cu(e);null!==r;r=Eu(r))for(let i=10;i<r.length;i++){const o=r[i];if(Po(o))if(512&o[2]){const s=o[1];ls(s,o,s.template,o[8])}else o[5]>0&&Dl(o)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=lt(n[r],e);Po(i)&&i[5]>0&&Dl(i)}}function pI(e,t){const n=lt(t,e),r=n[1];(function gI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),hl(r,n,n[8])}function cs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function wl(e){for(;e;){e[2]|=32;const t=Ri(e);if(o_(e)&&!t)return e;e=t}return null}function ds(e,t,n,r=!0){const i=t[10];i.begin&&i.begin();try{ls(e,t,e.template,n)}catch(s){throw r&&Up(t,s),s}finally{i.end&&i.end()}}function _l(e,t,n){Ja(0),t(e,n)}function Vp(e){return e[7]||(e[7]=[])}function $p(e){return e.cleanup||(e.cleanup=[])}function Up(e,t){const n=e[9],r=n?n.get(Rr,null):null;r&&r.handleError(t)}function Cl(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,i,r,a):u[a]=i}}function fs(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=Na(i,a):2==o&&(r=Na(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function hs(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(ge(o)),bt(o))for(let a=10;a<o.length;a++){const u=o[a],l=u[1].firstChild;null!==l&&hs(u[1],u,l,r)}const s=n.type;if(8&s)hs(e,t,n.child,r);else if(32&s){const a=_u(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=bh(t,n);if(Array.isArray(a))r.push(...a);else{const u=Ri(t[16]);hs(u[1],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}class Li{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return hs(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(bt(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Su(t,r),Ho(n,r))}this._attachedToViewContainer=!1}gh(this._lView[1],this._lView)}onDestroy(t){!function Ap(e,t,n,r){const i=Vp(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&$p(e).push(r,i.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){wl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){ds(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ZC(e,t){xi(e,t,t[V],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t}}class mI extends Li{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ds(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class El extends Fi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=X(t);return new ki(n,this.ngModule)}}function Hp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class vI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const i=this.injector.get(t,Qu,r);return i!==Qu||n===Qu?i:this.parentInjector.get(t,n,r)}}class ki extends Qh{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function mb(e){return e.map(gb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Hp(this.componentDef.inputs)}get outputs(){return Hp(this.componentDef.outputs)}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Sn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new vI(t,o):t,a=s.get(Kh,null);if(null===a)throw new I(407,!1);const u=s.get(ZE,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function Yb(e,t,n){return e.selectRootElement(t,n===Ut.ShadowDom)}(l,r,this.componentDef.encapsulation):Iu(l,c,function yI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=ml(0,null,null,1,0,null,null,null,null,null),p=us(null,h,null,f,null,null,a,l,u,s,null);let g,m;Xa(p);try{const D=function _I(e,t,n,r,i,o){const s=n[1];n[22]=e;const u=Pr(s,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(fs(u,l,!0),null!==e&&(ko(i,e,l),null!==u.classes&&Nu(i,e,u.classes),null!==u.styles&&Sh(i,e,u.styles)));const c=r.createRenderer(e,t),d=us(n,Tp(t),null,t.onPush?32:16,n[22],u,r,c,o||null,null,null);return s.firstCreatePass&&(Bo(mi(u,n),s,t.type),Fp(s,u),Lp(u,n.length,1)),cs(n,d),n[22]=d}(d,this.componentDef,p,a,l);if(d)if(r)ko(l,d,["ng-version",KE.full]);else{const{attrs:_,classes:y}=function yb(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!St(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);_&&ko(l,d,_),y&&y.length>0&&Nu(l,d,y.join(" "))}if(m=function Wa(e,t){return e.data[t]}(h,22),void 0!==n){const _=m.projection=[];for(let y=0;y<this.ngContentSelectors.length;y++){const M=n[y];_.push(null!=M?Array.from(M):null)}}g=function CI(e,t,n,r){const i=n[1],o=function tI(e,t,n){const r=Ee();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kp(e,r,t,Or(e,t,1,null),n),xp(e,r));const i=yi(t,e,r.directiveStart,r);Ve(i,t);const o=ut(r,t);return o&&Ve(o,t),i}(i,n,t);if(e[8]=n[8]=o,null!==r)for(const a of r)a(o,t);if(t.contentQueries){const a=Ee();t.contentQueries(1,o,a.directiveStart)}const s=Ee();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(En(s.index),Pp(n[1],s,0,s.directiveStart,s.directiveEnd,t),Op(t,o)),o}(D,this.componentDef,p,[EI]),hl(h,p,null)}finally{eu()}return new wI(this.componentType,g,Ar(m,p),p,m)}}class wI extends class HE{}{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new mI(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){const o=this._rootLView;Cl(o[1],o,i,t,n),function Np(e,t){const n=lt(t,e);16&n[2]||(n[2]|=32)}(o,this._tNode.index)}}get injector(){return new Dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function EI(){const e=Ee();Oo(v()[1],e)}function Ml(e,t,n,r,i){const s=i?"class":"style";Cl(e,n,t.inputs[s],s,r)}function ms(e,t,n,r){const i=v(),o=W(),s=22+e,a=i[V],u=i[s]=Iu(a,t,function k_(){return F.lFrame.currentNamespace}()),l=o.firstCreatePass?function VI(e,t,n,r,i,o,s){const a=t.consts,l=Pr(t,e,2,i,Cn(a,o));return function yl(e,t,n,r){let i=!1;if(gf()){const o=function oI(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];tp(n,s.selectors,!1)&&(i||(i=[]),Bo(mi(n,t),e,s.type),It(s)?(Fp(e,n),i.unshift(s)):i.push(s))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==o){i=!0,Lp(n,e.data.length,o.length);for(let c=0;c<o.length;c++){const d=o[c];d.providersResolver&&d.providersResolver(d)}let a=!1,u=!1,l=Or(e,t,o.length,null);for(let c=0;c<o.length;c++){const d=o[c];n.mergedAttrs=jo(n.mergedAttrs,d.hostAttrs),kp(e,n,t,l,d),aI(l,d,s),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),a=!0),!u&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),l++}xp(e,n)}s&&function sI(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const o=n[t[i+1]];if(null==o)throw new I(-301,!1);r.push(t[i],o)}}}(n,r,s)}return n.mergedAttrs=jo(n.mergedAttrs,n.attrs),i}(t,n,l,Cn(a,s)),null!==l.attrs&&fs(l,l.attrs,!1),null!==l.mergedAttrs&&fs(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];Ht(l,!0);const c=l.mergedAttrs;null!==c&&ko(a,u,c);const d=l.classes;null!==d&&Nu(a,u,d);const f=l.styles;return null!==f&&Sh(a,u,f),64!=(64&l.flags)&&Zo(o,i,u,l),0===function D_(){return F.lFrame.elementDepthCount}()&&Ve(u,i),function w_(){F.lFrame.elementDepthCount++}(),xo(l)&&(function pl(e,t,n){!gf()||(function rI(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||mi(n,t),Ve(r,t);const s=n.initialInputs;for(let a=i;a<o;a++){const u=e.data[a],l=It(u);l&&uI(t,n,u);const c=yi(t,e,a,n);Ve(c,t),null!==s&&lI(0,a-i,c,u,0,s),l&&(lt(n.index,t)[8]=c)}}(e,t,n,ut(n,t)),128==(128&n.flags)&&function iI(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=function A_(){return F.lFrame.currentDirectiveIndex}();try{En(o);for(let a=r;a<i;a++){const u=e.data[a],l=t[a];Ka(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Op(u,l)}}finally{En(-1),Ka(s)}}(e,t,n))}(o,i,l),function Mp(e,t,n){if(Ba(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=e.data[o];s.contentQueries&&s.contentQueries(1,n[o],o)}}}(o,l,i)),null!==r&&function gl(e,t,n=ut){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}(i,l),ms}function ys(){let e=Ee();Qa()?function Za(){F.lFrame.isParent=!1}():(e=e.parent,Ht(e,!1));const t=e;!function __(){F.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(Oo(n,e),Ba(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function U_(e){return 0!=(16&e.flags)}(t)&&Ml(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function H_(e){return 0!=(32&e.flags)}(t)&&Ml(n,t,v(),t.stylesWithoutHost,!1),ys}function $i(e,t,n,r){return ms(e,t,n,r),ys(),$i}function vs(e){return!!e&&"function"==typeof e.then}const ig=function rg(e){return!!e&&"function"==typeof e.subscribe};function Bi(e,t,n,r){const i=v(),o=W(),s=Ee();return function sg(e,t,n,r,i,o,s,a){const u=xo(r),c=e.firstCreatePass&&$p(e),d=t[8],f=Vp(t);let h=!0;if(3&r.type||a){const m=ut(r,t),D=a?a(m):m,_=f.length,y=a?q=>a(ge(q[r.index])):r.index;let M=null;if(!a&&u&&(M=function UI(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===n&&i[o+1]===r){const a=t[7],u=i[o+2];return a.length>u?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=o,M.__ngLastListenerFn__=o,h=!1;else{o=ug(r,t,d,o,!1);const q=n.listen(D,i,o);f.push(o,q),c&&c.push(i,y,_,_+1)}}else o=ug(r,t,d,o,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[i])){const m=g.length;if(m)for(let D=0;D<m;D+=2){const se=t[g[D]][g[D+1]].subscribe(o),ar=f.length;f.push(o,se),c&&c.push(i,r.index,ar,-(ar+1))}}}(o,i,i[V],s,e,t,0,r),Bi}function ag(e,t,n,r){try{return!1!==n(r)}catch(i){return Up(e,i),!1}}function ug(e,t,n,r,i){return function o(s){if(s===Function)return r;wl(2&e.flags?lt(e.index,t):t);let u=ag(t,0,r,s),l=o.__ngNextListenerFn__;for(;l;)u=ag(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return i&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}const Wr="en-US";let nm=Wr;class Jn{}class Tm{}class Am extends Jn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new El(this);const r=st(t);this._bootstrapComponents=un(r.bootstrap),this._r3Injector=up(t,n,[{provide:Jn,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver}],te(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 Vl extends Tm{constructor(t){super(),this.moduleType=t}create(t){return new Am(this.moduleType,t)}}class NS extends Jn{constructor(t,n,r){super(),this.componentFactoryResolver=new El(this),this.instance=null;const i=new Wh([...t,{provide:Jn,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver}],n||ts(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function bs(e,t,n=null){return new NS(e,t,n).injector}let PS=(()=>{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=Uh(0,n.type),i=r.length>0?bs([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,i)}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=B({token:e,providedIn:"environment",factory:()=>new e(A(Sn))}),e})();function Rm(e){e.getStandaloneInjector=t=>t.get(PS).getOrCreateStandaloneInjector(e)}function Bl(e){return t=>{setTimeout(e,void 0,t)}}const Ze=class oM extends $t{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Bl(o),i&&(i=Bl(i)),s&&(s=Bl(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof De&&t.add(a),a}};let xt=(()=>{class e{}return e.__NG_ELEMENT_ID__=cM,e})();function cM(){return function zm(e,t){let n;const r=t[e.index];if(bt(r))n=r;else{let i;if(8&e.type)i=ge(r);else{const o=t[V];i=o.createComment("");const s=ut(e,t);Wn(o,Qo(o,s),i,function nE(e,t){return e.nextSibling(t)}(o,s),!1)}t[e.index]=n=function jp(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}(r,t,i,e),cs(t,n)}return new Um(n,e,t)}(Ee(),v())}const dM=xt,Um=class extends dM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ar(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){const t=$o(this._hostTNode,this._hostLView);if(Rf(t)){const n=vr(t,this._hostLView),r=yr(t);return new Dr(n[1].data[r+8],n)}return new Dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Hm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=t.createEmbeddedView(n||{},o);return this.insert(s,i),s}createComponent(t,n,r,i,o){const s=t&&!function wi(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const u=s?t:new ki(X(t)),l=r||this.parentInjector;if(!o&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Sn,null);f&&(o=f)}const c=u.create(l,i,void 0,o);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,i=r[1];if(function v_(e){return bt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Um(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(n),s=this._lContainer;!function YC(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],Bf(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function JC(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=64}(i,r,s,o);const a=Au(o,s),u=r[V],l=Qo(u,s[7]);return null!==l&&function QC(e,t,n,r,i,o){r[0]=i,r[6]=t,xi(e,r,n,1,i,o)}(i,s[6],u,r,l,a),t.attachToViewContainerRef(),Bf(Hl(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Hm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Su(this._lContainer,n);r&&(Ho(Hl(this._lContainer),n),gh(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Su(this._lContainer,n);return r&&null!=Ho(Hl(this._lContainer),n)?new Li(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Hm(e){return e[8]}function Hl(e){return e[8]||(e[8]=[])}function Ms(...e){}const Ts=new O("Application Initializer");let As=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ms,this.reject=Ms,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(vs(o))n.push(o);else if(ig(o)){const s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(A(Ts,8))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yi=new O("AppId",{providedIn:"root",factory:function py(){return`${nc()}${nc()}${nc()}`}});function nc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gy=new O("Platform Initializer"),my=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yy=new O("appBootstrapListener");let BM=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const fn=new O("LocaleId",{providedIn:"root",factory:()=>fe(fn,x.Optional|x.SkipSelf)||function UM(){return typeof $localize<"u"&&$localize.locale||Wr}()});class zM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rc=(()=>{class e{compileModuleSync(n){return new Vl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=un(st(n).declarations).reduce((s,a)=>{const u=X(a);return u&&s.push(new ki(u)),s},[]);return new zM(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qM=(()=>Promise.resolve(0))();function ic(e){typeof Zone>"u"?qM.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Se{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ze(!1),this.onMicrotaskEmpty=new Ze(!1),this.onStable=new Ze(!1),this.onError=new Ze(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();const i=this;if(i._nesting=0,i._outer=i._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;i._inner=i._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function QM(){let e=ne.requestAnimationFrame,t=ne.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 YM(e){const t=()=>{!function KM(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ne,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,sc(e),e.isCheckStableRunning=!0,oc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),sc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return wy(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),_y(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return wy(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),_y(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,sc(e),oc(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Se.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(Se.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,ZM,Ms,Ms);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const ZM={};function oc(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 sc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function wy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _y(e){e._nesting--,oc(e)}class JM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ze,this.onMicrotaskEmpty=new Ze,this.onStable=new Ze,this.onError=new Ze}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,i){return t.apply(n,r)}}const Cy=new O(""),Rs=new O("");let lc,ac=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,lc||(function XM(e){lc=e}(i),i.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:()=>{Se.assertNotInAngularZone(),ic(()=>{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())ic(()=>{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,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(A(Se),A(uc),A(Rs))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),uc=(()=>{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 lc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Rn=null;const Ey=new O("AllowMultipleToken"),cc=new O("PlatformDestroyListeners");class by{constructor(t,n){this.name=t,this.token=n}}function Sy(e,t,n=[]){const r=`Platform: ${t}`,i=new O(r);return(o=[])=>{let s=dc();if(!s||s.injector.get(Ey,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function nT(e){if(Rn&&!Rn.get(Ey,!1))throw new I(400,!1);Rn=e;const t=e.get(Ty);(function Iy(e){const t=e.get(gy,null);t&&t.forEach(n=>n())})(e)}(function My(e=[],t){return Mt.create({name:t,providers:[{provide:zu,useValue:"platform"},{provide:cc,useValue:new Set([()=>Rn=null])},...e]})}(a,r))}return function iT(e){const t=dc();if(!t)throw new I(401,!1);return t}()}}function dc(){return Rn?.get(Ty)??null}let Ty=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function Ry(e,t){let n;return n="noop"===e?new JM:("zone.js"===e?void 0:e)||new Se(t),n}(r?.ngZone,function Ay(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Se,useValue:i}];return i.run(()=>{const s=Mt.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Rr,null);if(!u)throw new I(402,!1);return i.runOutsideAngular(()=>{const l=i.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Ns(this._modules,a),l.unsubscribe()})}),function xy(e,t,n){try{const r=n();return vs(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,i,()=>{const l=a.injector.get(As);return l.runInitializers(),l.donePromise.then(()=>(function rm(e){ot(e,"Expected localeId to be defined"),"string"==typeof e&&(nm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(fn,Wr)||Wr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=Ny({},r);return function eT(e,t,n){const r=new Vl(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(xs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new I(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 I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(cc,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)(A(Mt))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Ny(e,t){return Array.isArray(t)?t.reduce(Ny,e):{...e,...t}}let xs=(()=>{class e{constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _e(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new _e(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Se.assertNotInAngularZone(),ic(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Se.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function $w(...e){const t=si(e),n=function Pw(e,t){return"number"==typeof Aa(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Bt(r[0]):lr(n)(Ce(r,t)):en}(o,s.pipe(function Bw(e={}){const{connector:t=(()=>new $t),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{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 g=s;h(),g?.unsubscribe()};return Te((g,m)=>{l++,!d&&!c&&f();const D=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=Ra(p,i))}),D.subscribe(m),!s&&l>0&&(s=new w({next:_=>D.next(_),error:_=>{d=!0,f(),a=Ra(h,n,_),D.error(_)},complete:()=>{c=!0,f(),a=Ra(h,r),D.complete()}}),Bt(g).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Qh;if(!this._injector.get(As).done)throw!i&&function dr(e){const t=X(e)||He(e)||ze(e);return null!==t&&t.standalone}(n),new I(405,false);let s;s=i?n:this._injector.get(Fi).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function tT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Jn),l=s.create(Mt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Cy,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Ns(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ns(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(yy,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ns(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(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)(A(Se),A(Sn),A(Rr))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ns(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Oy=!0,fc=(()=>{class e{}return e.__NG_ELEMENT_ID__=aT,e})();function aT(e){return function uT(e,t,n){if(Ro(e)&&!n){const r=lt(e.index,t);return new Li(r,r)}return 47&e.type?new Li(t[16],t):null}(Ee(),v(),16==(16&e))}const _T=Sy(null,"core",[]);let CT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(A(xs))},e.\u0275mod=Vn({type:e}),e.\u0275inj=wn({}),e})(),Ls=null;function xn(){return Ls}const et=new O("DocumentToken");let yc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:function(){return function ST(){return A(Gy)}()},providedIn:"platform"}),e})();const MT=new O("Location Initialized");let Gy=(()=>{class e extends yc{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xn().getBaseHref(this._doc)}onPopState(n){const r=xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=xn().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,i){Wy()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){Wy()?this._history.replaceState(n,r,i):this.location.hash=i}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)(A(et))},e.\u0275prov=B({token:e,factory:function(){return function TT(){return new Gy(A(et))}()},providedIn:"platform"}),e})();function Wy(){return!!window.history.pushState}function vc(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function qy(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 pn(e){return e&&"?"!==e[0]?"?"+e:e}let er=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:function(){return fe(Zy)},providedIn:"root"}),e})();const Qy=new O("appBaseHref");let Zy=(()=>{class e extends er{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??fe(et).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 vc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+pn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){const s=this.prepareExternalUrl(i+pn(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){const s=this.prepareExternalUrl(i+pn(o));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)(A(yc),A(Qy,8))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),AT=(()=>{class e extends er{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=vc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+pn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+pn(o));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)(A(yc),A(Qy,8))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),Dc=(()=>{class e{constructor(n){this._subject=new Ze,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=qy(Ky(r)),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.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+pn(r))}normalize(n){return e.stripTrailingSlash(function xT(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ky(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+pn(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+pn(r)),i)}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(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return e.normalizeQueryParams=pn,e.joinWithSlash=vc,e.stripTrailingSlash=qy,e.\u0275fac=function(n){return new(n||e)(A(er))},e.\u0275prov=B({token:e,factory:function(){return function RT(){return new Dc(A(er))}()},providedIn:"root"}),e})();function Ky(e){return e.replace(/\/index.html$/,"")}let QA=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vn({type:e}),e.\u0275inj=wn({}),e})();let JA=(()=>{class e{}return e.\u0275prov=B({token:e,providedIn:"root",factory:()=>new XA(A(et),window)}),e})();class XA{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 eR(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=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,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=fv(this.window.history)||fv(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 fv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Fc extends class TR extends class IT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function bT(e){Ls||(Ls=e)}(new Fc)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}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 AR(){return no=no||document.querySelector("base"),no?no.getAttribute("href"):null}();return null==n?null:function RR(e){Qs=Qs||document.createElement("a"),Qs.setAttribute("href",e);const t=Qs.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){no=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function pA(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Qs,no=null;const yv=new O("TRANSITION_ID"),NR=[{provide:Ts,useFactory:function xR(e,t,n){return()=>{n.get(As).donePromise.then(()=>{const r=xn(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[yv,et,Mt],multi:!0}];let OR=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();const Zs=new O("EventManagerPlugins");let Ks=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return e.\u0275fac=function(n){return new(n||e)(A(Zs),A(Se))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();class vv{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const i=xn().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let Dv=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})(),ro=(()=>{class e extends Dv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(wv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(wv))}}return e.\u0275fac=function(n){return new(n||e)(A(et))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();function wv(e){xn().remove(e)}const Lc={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/"},kc=/%COMP%/g;function Ys(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Ys(e,i,n):(i=i.replace(kc,e),n.push(i))}return n}function Ev(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let jc=(()=>{class e{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Vc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Ut.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new $R(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case Ut.ShadowDom:return new BR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Ys(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(A(Ks),A(ro),A(Yi))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();class Vc{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Lc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Iv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Iv(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=Lc[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Lc[r];i?t.removeAttributeNS(i,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,i){i&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,i&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.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){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Ev(r)):this.eventManager.addEventListener(t,n,Ev(r))}}function Iv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class $R extends Vc{constructor(t,n,r,i){super(t),this.component=r;const o=Ys(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function kR(e){return"_ngcontent-%COMP%".replace(kc,e)}(i+"-"+r.id),this.hostAttr=function jR(e){return"_nghost-%COMP%".replace(kc,e)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class BR extends Vc{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Ys(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}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)))}}let UR=(()=>{class e extends vv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(A(et))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();const Sv=["alt","control","meta","shift"],HR={"\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"},zR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let GR=(()=>{class e extends vv{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xn().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Sv.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=HR[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Sv.forEach(s=>{s!==i&&(0,zR[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(A(et))},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();const ZR=Sy(_T,"browser",[{provide:my,useValue:"browser"},{provide:gy,useValue:function WR(){Fc.makeCurrent()},multi:!0},{provide:et,useFactory:function QR(){return function lE(e){Ou=e}(document),document},deps:[]}]),Av=new O(""),Rv=[{provide:Rs,useClass:class PR{addToWindow(t){ne.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ne.getAllAngularTestabilities=()=>t.getAllTestabilities(),ne.getAllAngularRootElements=()=>t.getAllRootElements(),ne.frameworkStabilizers||(ne.frameworkStabilizers=[]),ne.frameworkStabilizers.push(r=>{const i=ne.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(u){s=s||u,o--,0==o&&r(s)};i.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?xn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Cy,useClass:ac,deps:[Se,uc,Rs]},{provide:ac,useClass:ac,deps:[Se,uc,Rs]}],xv=[{provide:zu,useValue:"root"},{provide:Rr,useFactory:function qR(){return new Rr},deps:[]},{provide:Zs,useClass:UR,multi:!0,deps:[et,Se,my]},{provide:Zs,useClass:GR,multi:!0,deps:[et]},{provide:jc,useClass:jc,deps:[Ks,ro,Yi]},{provide:Kh,useExisting:jc},{provide:Dv,useExisting:ro},{provide:ro,useClass:ro,deps:[et]},{provide:Ks,useClass:Ks,deps:[Zs,Se]},{provide:class tR{},useClass:OR,deps:[]},[]];let KR=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Yi,useValue:n.appId},{provide:yv,useExisting:Yi},NR]}}}return e.\u0275fac=function(n){return new(n||e)(A(Av,12))},e.\u0275mod=Vn({type:e}),e.\u0275inj=wn({providers:[...xv,...Rv],imports:[QA,CT]}),e})(),Nv=(()=>{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)(A(et))},e.\u0275prov=B({token:e,factory:function(n){let r=null;return r=n?new n:function JR(){return new Nv(A(et))}(),r},providedIn:"root"}),e})();function T(...e){return Ce(e,si(e))}typeof window<"u"&&window;class Ft extends $t{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)}}const Js=xe(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:sx}=Array,{getPrototypeOf:ax,prototype:ux,keys:lx}=Object;const{isArray:fx}=Array;function Fv(...e){const t=si(e),n=function Nw(e){return Z(Aa(e))?e.pop():void 0}(e),{args:r,keys:i}=function cx(e){if(1===e.length){const t=e[0];if(sx(t))return{args:t,keys:null};if(function dx(e){return e&&"object"==typeof e&&ax(e)===ux}(t)){const n=lx(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return Ce([],t);const o=new _e(function mx(e,t,n=ht){return r=>{Lv(t,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let u=0;u<i;u++)Lv(t,()=>{const l=Ce(e[u],t);let c=!1;l.subscribe(Ae(r,d=>{o[u]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>function gx(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}(i,s):ht));return n?o.pipe(function px(e){return Q(t=>function hx(e,t){return fx(t)?e(...t):e(t)}(e,t))}(n)):o}function Lv(e,t,n){e?Xt(n,e,t):t()}function Uc(...e){return function yx(){return lr(1)}()(Ce(e,si(e)))}function kv(e){return new _e(t=>{Bt(e()).subscribe(t)})}function io(e,t){const n=Z(e)?e:()=>e,r=i=>i.error(n());return new _e(t?i=>t.schedule(r,0,i):r)}function Hc(){return Te((e,t)=>{let n=null;e._refCount++;const r=Ae(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class jv extends _e{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Od(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 De;const n=this.getSubject();t.add(this.source.subscribe(Ae(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=De.EMPTY)}return t}refCount(){return Hc()(this)}}function Zt(e,t){return Te((n,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();n.subscribe(Ae(r,u=>{i?.unsubscribe();let l=0;const c=o++;Bt(e(u,c)).subscribe(i=Ae(r,d=>r.next(t?t(u,d,c,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function oo(e){return e<=0?()=>en:Te((t,n)=>{let r=0;t.subscribe(Ae(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Pn(e,t){return Te((n,r)=>{let i=0;n.subscribe(Ae(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Xs(e){return Te((t,n)=>{let r=!1;t.subscribe(Ae(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Vv(e=Dx){return Te((t,n)=>{let r=!1;t.subscribe(Ae(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Dx(){return new Js}function On(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Pn((i,o)=>e(i,o,r)):ht,oo(1),n?Xs(t):Vv(()=>new Js))}function tr(e,t){return Z(t)?Ne(e,t,1):Ne(e,1)}function Be(e,t,n){const r=Z(e)||t||n?{next:e,error:t,complete:n}:e;return r?Te((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Ae(o,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),o.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),o.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),o.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)}))}):ht}function Fn(e){return Te((t,n)=>{let o,r=null,i=!1;r=t.subscribe(Ae(n,void 0,void 0,s=>{o=Bt(e(s,Fn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function wx(e,t,n,r,i){return(o,s)=>{let a=n,u=t,l=0;o.subscribe(Ae(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function $v(e,t){return Te(wx(e,t,arguments.length>=2,!0))}function zc(e){return e<=0?()=>en:Te((t,n)=>{let r=[];t.subscribe(Ae(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Bv(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Pn((i,o)=>e(i,o,r)):ht,zc(1),n?Xs(t):Vv(()=>new Js))}function Gc(e){return Te((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const U="primary",so=Symbol("RouteTitle");class Ex{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 Kr(e){return new Ex(e)}function bx(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 i={};for(let o=0;o<r.length;o++){const s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function Kt(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 i;for(let o=0;o<n.length;o++)if(i=n[o],!Uv(e[i],t[i]))return!1;return!0}function Uv(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((i,o)=>r[o]===i)}return e===t}function Hv(e){return Array.prototype.concat.apply([],e)}function zv(e){return e.length>0?e[e.length-1]:null}function Pe(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ln(e){return ig(e)?e:vs(e)?Ce(Promise.resolve(e)):T(e)}const Mx={exact:function qv(e,t,n){if(!rr(e.segments,t.segments)||!ea(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!qv(e.children[r],t.children[r],n))return!1;return!0},subset:Qv},Gv={exact:function Tx(e,t){return Kt(e,t)},subset:function Ax(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Uv(e[n],t[n]))},ignored:()=>!0};function Wv(e,t,n){return Mx[n.paths](e.root,t.root,n.matrixParams)&&Gv[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Qv(e,t,n){return Zv(e,t,t.segments,n)}function Zv(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!(!rr(i,n)||t.hasChildren()||!ea(i,n,r))}if(e.segments.length===n.length){if(!rr(e.segments,n)||!ea(e.segments,n,r))return!1;for(const i in t.children)if(!e.children[i]||!Qv(e.children[i],t.children[i],r))return!1;return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!(rr(e.segments,i)&&ea(e.segments,i,r)&&e.children[U])&&Zv(e.children[U],t,o,r)}}function ea(e,t,n){return t.every((r,i)=>Gv[n](e[i].parameters,r.parameters))}class nr{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kr(this.queryParams)),this._queryParamMap}toString(){return Nx.serialize(this)}}class z{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Pe(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ta(this)}}class ao{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Kr(this.parameters)),this._parameterMap}toString(){return Xv(this)}}function rr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Kv=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:function(){return new qc},providedIn:"root"}),e})();class qc{parse(t){const n=new Bx(t);return new nr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${uo(t.root,!0)}`,r=function Fx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(i=>`${na(n)}=${na(i)}`).join("&"):`${na(n)}=${na(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Px(e){return encodeURI(e)}(t.fragment)}`:""}`}}const Nx=new qc;function ta(e){return e.segments.map(t=>Xv(t)).join("/")}function uo(e,t){if(!e.hasChildren())return ta(e);if(t){const n=e.children[U]?uo(e.children[U],!1):"",r=[];return Pe(e.children,(i,o)=>{o!==U&&r.push(`${o}:${uo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function xx(e,t){let n=[];return Pe(e.children,(r,i)=>{i===U&&(n=n.concat(t(r,i)))}),Pe(e.children,(r,i)=>{i!==U&&(n=n.concat(t(r,i)))}),n}(e,(r,i)=>i===U?[uo(e.children[U],!1)]:[`${i}:${uo(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[U]?`${ta(e)}/${n[0]}`:`${ta(e)}/(${n.join("//")})`}}function Yv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function na(e){return Yv(e).replace(/%3B/gi,";")}function Qc(e){return Yv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ra(e){return decodeURIComponent(e)}function Jv(e){return ra(e.replace(/\+/g,"%20"))}function Xv(e){return`${Qc(e.path)}${function Ox(e){return Object.keys(e).map(t=>`;${Qc(t)}=${Qc(e[t])}`).join("")}(e.parameters)}`}const Lx=/^[^\/()?;=#]+/;function ia(e){const t=e.match(Lx);return t?t[0]:""}const kx=/^[^=?&#]+/,Vx=/^[^&#]+/;class Bx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new z([],{}):new z([],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 z(t,n)),r}parseSegment(){const t=ia(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new ao(ra(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=ia(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=ia(this.remaining);i&&(r=i,this.capture(r))}t[ra(n)]=ra(r)}parseQueryParam(t){const n=function jx(e){const t=e.match(kx);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function $x(e){const t=e.match(Vx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Jv(n),o=Jv(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ia(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new I(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=U);const s=this.parseChildren();n[o]=1===Object.keys(s).length?s[U]:new z([],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 I(4011,!1)}}function Zc(e){return e.segments.length>0?new z([],{[U]:e}):e}function oa(e){const t={};for(const r of Object.keys(e.children)){const o=oa(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function Ux(e){if(1===e.numberOfChildren&&e.children[U]){const t=e.children[U];return new z(e.segments.concat(t.segments),t.children)}return e}(new z(e.segments,t))}function ir(e){return e instanceof nr}function Gx(e,t,n,r,i){if(0===n.length)return Yr(t.root,t.root,t.root,r,i);const o=function nD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tD(!0,0,e);let t=0,n=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Pe(o.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new tD(n,t,r)}(n);return o.toRoot()?Yr(t.root,t.root,new z([],{}),r,i):function s(u){const l=function qx(e,t,n,r){if(e.isAbsolute)return new Jr(t.root,!0,0);if(-1===r)return new Jr(n,n===t.root,0);return function rD(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new I(4005,!1);i=r.segments.length}return new Jr(r,!1,i-o)}(n,r+(lo(e.commands[0])?0:1),e.numberOfDoubleDots)}(o,t,e.snapshot?._urlSegment,u),c=l.processChildren?fo(l.segmentGroup,l.index,o.commands):Yc(l.segmentGroup,l.index,o.commands);return Yr(t.root,l.segmentGroup,c,r,i)}(e.snapshot?._lastPathIndex)}function lo(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function co(e){return"object"==typeof e&&null!=e&&e.outlets}function Yr(e,t,n,r,i){let s,o={};r&&Pe(r,(u,l)=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:eD(e,t,n);const a=Zc(oa(s));return new nr(a,o,i)}function eD(e,t,n){const r={};return Pe(e.children,(i,o)=>{r[o]=i===t?n:eD(i,t,n)}),new z(e.segments,r)}class tD{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&lo(r[0]))throw new I(4003,!1);const i=r.find(co);if(i&&i!==zv(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jr{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Yc(e,t,n){if(e||(e=new z([],{})),0===e.segments.length&&e.hasChildren())return fo(e,t,n);const r=function Zx(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const s=e.segments[i],a=n[r];if(co(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!oD(u,l,s))return o;r+=2}else{if(!oD(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const o=new z(e.segments.slice(0,r.pathIndex),{});return o.children[U]=new z(e.segments.slice(r.pathIndex),e.children),fo(o,0,i)}return r.match&&0===i.length?new z(e.segments,{}):r.match&&!e.hasChildren()?Jc(e,t,n):r.match?fo(e,0,i):Jc(e,t,n)}function fo(e,t,n){if(0===n.length)return new z(e.segments,{});{const r=function Qx(e){return co(e[0])?e[0].outlets:{[U]:e}}(n),i={};return Pe(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=Yc(e.children[s],t,o))}),Pe(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new z(e.segments,i)}}function Jc(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(co(o)){const u=Kx(o.outlets);return new z(r,u)}if(0===i&&lo(n[0])){r.push(new ao(e.segments[t].path,iD(n[0]))),i++;continue}const s=co(o)?o.outlets[U]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&lo(a)?(r.push(new ao(s,iD(a))),i+=2):(r.push(new ao(s,{})),i++)}return new z(r,{})}function Kx(e){const t={};return Pe(e,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Jc(new z([],{}),0,n))}),t}function iD(e){const t={};return Pe(e,(n,r)=>t[r]=`${n}`),t}function oD(e,t,n){return e==n.path&&Kt(t,n.parameters)}class mn{constructor(t,n){this.id=t,this.url=n}}class Xc extends mn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class or extends mn{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 sa extends mn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class sD extends mn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yx extends mn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jx extends mn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xx extends mn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class eN extends mn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tN extends mn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nN{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rN{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class iN{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oN{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sN{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aN{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aD{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 uD{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=ed(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=ed(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=td(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return td(t,this._root).map(n=>n.value)}}function ed(e,t){if(e===t.value)return t;for(const n of t.children){const r=ed(e,n);if(r)return r}return null}function td(e,t){if(e===t.value)return[t];for(const n of t.children){const r=td(e,n);if(r.length)return r.unshift(t),r}return[]}class yn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Xr(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class lD extends uD{constructor(t,n){super(t),this.snapshot=n,nd(this,t)}toString(){return this.snapshot.toString()}}function cD(e,t){const n=function lN(e,t){const s=new aa([],{},{},"",{},U,t,null,e.root,-1,{});return new fD("",new yn(s,[]))}(e,t),r=new Ft([new ao("",{})]),i=new Ft({}),o=new Ft({}),s=new Ft({}),a=new Ft(""),u=new sr(r,i,s,a,o,U,t,n.root);return u.snapshot=n.root,new lD(new yn(u,[]),n)}class sr{constructor(t,n,r,i,o,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(Q(l=>l[so]))??T(void 0),this._futureSnapshot=u}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(Q(t=>Kr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(t=>Kr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dD(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function cN(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 aa{constructor(t,n,r,i,o,s,a,u,l,c,d,f){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[so],this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._correctedLastPathIndex=f??c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Kr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fD extends uD{constructor(t,n){super(n),this.url=t,nd(this,n)}toString(){return hD(this._root)}}function nd(e,t){t.value._routerState=e,t.children.forEach(n=>nd(e,n))}function hD(e){const t=e.children.length>0?` { ${e.children.map(hD).join(", ")} } `:"";return`${e.value}${t}`}function rd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Kt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Kt(t.params,n.params)||e.params.next(n.params),function Ix(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Kt(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Kt(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function id(e,t){const n=Kt(e.params,t.params)&&function Rx(e,t){return rr(e,t)&&e.every((n,r)=>Kt(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||id(e.parent,t.parent))}function ho(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function fN(e,t,n){return t.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ho(e,r,i);return ho(e,r)})}(e,t,n);return new yn(r,i)}{if(e.shouldAttach(t.value)){const o=e.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ho(e,a)),s}}const r=function hN(e){return new sr(new Ft(e.url),new Ft(e.params),new Ft(e.queryParams),new Ft(e.fragment),new Ft(e.data),e.outlet,e.component,e)}(t.value),i=t.children.map(o=>ho(e,o));return new yn(r,i)}}const od="ngNavigationCancelingError";function pD(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=ir(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=gD(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function gD(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[od]=!0,r.cancellationCode=t,n&&(r.url=n),r}function mD(e){return yD(e)&&ir(e.url)}function yD(e){return e&&e[od]}class pN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new po,this.attachRef=null}}let po=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}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 pN,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=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ua=!1;let sd=(()=>{class e{constructor(n,r,i,o,s){this.parentContexts=n,this.location=r,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ze,this.deactivateEvents=new Ze,this.attachEvents=new Ze,this.detachEvents=new Ze,this.name=i||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&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 I(4012,ua);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,ua);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,ua);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.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 I(4013,ua);this._activatedRoute=n;const i=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new gN(n,a,i.injector);if(r&&function mN(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=i.createComponent(l,i.length,u)}else this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(S(po),S(xt),function vi(e){return function q_(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 i=0;for(;i<r;){const o=n[i];if(Mf(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}}return null}(Ee(),e)}("name"),S(fc),S(Sn))},e.\u0275dir=Le({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),e})();class gN{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===sr?this.route:t===po?this.childContexts:this.parent.get(t,n)}}let ad=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=ui({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rm],decls:1,vars:0,template:function(n,r){1&n&&$i(0,"router-outlet")},dependencies:[sd],encapsulation:2}),e})();function vD(e,t){return e.providers&&!e._injector&&(e._injector=bs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ld(e){const t=e.children&&e.children.map(ld),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==U&&(n.component=ad),n}function wt(e){return e.outlet||U}function DD(e,t){const n=e.filter(r=>wt(r)===t);return n.push(...e.filter(r=>wt(r)!==t)),n}function go(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 _N{constructor(t,n,r,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),rd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const i=Xr(n);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Pe(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&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),i=r&&t.value.component?r.children:n,o=Xr(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);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),i=r&&t.value.component?r.children:n,o=Xr(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const i=Xr(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new aN(o.value.snapshot))}),t.children.length&&this.forwardEvent(new oN(t.value.snapshot))}activateRoutes(t,n,r){const i=t.value,o=n?n.value:null;if(rd(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),rd(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=go(i.snapshot),u=a?.get(Fi)??null;s.attachRef=null,s.route=i,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class wD{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class la{constructor(t,n){this.component=t,this.route=n}}function CN(e,t,n){const r=e._root;return mo(r,t?t._root:null,n,[r.value])}function ei(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function Qw(e){return null!==bo(e)}(e)?t.get(e):e:r}function mo(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xr(t);return e.children.forEach(s=>{(function bN(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function IN(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!rr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!rr(e.url,t.url)||!Kt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!id(e,t)||!Kt(e.queryParams,t.queryParams);default:return!id(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new wD(r)):(o.data=s.data,o._resolvedData=s._resolvedData),mo(e,t,o.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new la(a.outlet.component,s))}else s&&yo(t,a,i),i.canActivateChecks.push(new wD(r)),mo(e,null,o.component?a?a.children:null:n,r,i)})(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Pe(o,(s,a)=>yo(s,n.getContext(a),i)),i}function yo(e,t,n){const r=Xr(e),i=e.value;Pe(r,(o,s)=>{yo(o,i.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new la(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function vo(e){return"function"==typeof e}function cd(e){return e instanceof Js||"EmptyError"===e?.name}const ca=Symbol("INITIAL_VALUE");function ti(){return Zt(e=>Fv(e.map(t=>t.pipe(oo(1),function vx(...e){const t=si(e);return Te((n,r)=>{(t?Uc(e,n,t):Uc(e,n)).subscribe(r)})}(ca)))).pipe(Q(t=>{for(const n of t)if(!0!==n){if(n===ca)return ca;if(!1===n||n instanceof nr)return n}return!0}),Pn(t=>t!==ca),oo(1)))}function _D(e){return function KD(...e){return xd(e)}(Be(t=>{if(ir(t))throw pD(0,t)}),Q(t=>!0===t))}const dd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CD(e,t,n,r,i){const o=fd(e,t,n);return o.matched?function UN(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?T(i.map(s=>{const a=ei(s,e);return Ln(function xN(e){return e&&vo(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ti(),_D()):T(!0)}(r=vD(t,r),t,n).pipe(Q(s=>!0===s?o:{...dd})):T(o)}function fd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...dd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const i=(t.matcher||bx)(n,e,t);if(!i)return{...dd};const o={};Pe(i.posParams,(a,u)=>{o[u]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function da(e,t,n,r,i="corrected"){if(n.length>0&&function GN(e,t,n){return n.some(r=>fa(e,t,r)&&wt(r)!==U)}(e,n,r)){const s=new z(t,function zN(e,t,n,r){const i={};i[U]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&wt(o)!==U){const s=new z([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,i[wt(o)]=s}return i}(e,t,r,new z(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function WN(e,t,n){return n.some(r=>fa(e,t,r))}(e,n,r)){const s=new z(e.segments,function HN(e,t,n,r,i,o){const s={};for(const a of r)if(fa(e,n,a)&&!i[wt(a)]){const u=new z([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[wt(a)]=u}return{...i,...s}}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const o=new z(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function fa(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function ED(e,t,n,r){return!!(wt(e)===r||r!==U&&fa(t,n,e))&&("**"===e.path||fd(t,e,n).matched)}function bD(e,t,n){return 0===t.length&&!e.children[n]}const ha=!1;class pa{constructor(t){this.segmentGroup=t||null}}class ID{constructor(t){this.urlTree=t}}function Do(e){return io(new pa(e))}function SD(e){return io(new ID(e))}class KN{constructor(t,n,r,i,o){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const t=da(this.urlTree.root,[],[],this.config).segmentGroup,n=new z(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,U).pipe(Q(o=>this.createUrlTree(oa(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fn(o=>{if(o instanceof ID)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof pa?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,U).pipe(Q(i=>this.createUrlTree(oa(i),t.queryParams,t.fragment))).pipe(Fn(i=>{throw i instanceof pa?this.noMatchError(i):i}))}noMatchError(t){return new I(4002,ha)}createUrlTree(t,n,r){const i=Zc(t);return new nr(i,n,r)}expandSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(Q(o=>new z([],o))):this.expandSegment(t,r,n,r.segments,i,!0)}expandChildren(t,n,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Ce(i).pipe(tr(o=>{const s=r.children[o],a=DD(n,o);return this.expandSegmentGroup(t,a,s,o).pipe(Q(u=>({segment:u,outlet:o})))}),$v((o,s)=>(o[s.outlet]=s.segment,o),{}),Bv())}expandSegment(t,n,r,i,o,s){return Ce(r).pipe(tr(a=>this.expandSegmentAgainstRoute(t,n,r,a,i,o,s).pipe(Fn(l=>{if(l instanceof pa)return T(null);throw l}))),On(a=>!!a),Fn((a,u)=>{if(cd(a))return bD(n,i,o)?T(new z([],{})):Do(n);throw a}))}expandSegmentAgainstRoute(t,n,r,i,o,s,a){return ED(i,n,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s):Do(n):Do(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?SD(o):this.lineralizeSegments(r,o).pipe(Ne(s=>{const a=new z(s,{});return this.expandSegment(t,a,n,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=fd(n,i,o);if(!a)return Do(n);const d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?SD(d):this.lineralizeSegments(i,d).pipe(Ne(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){return"**"===r.path?(t=vD(r,t),r.loadChildren?(r._loadedRoutes?T({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(Q(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new z(i,{})))):T(new z(i,{}))):CD(n,r,i,t).pipe(Zt(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,i).pipe(Ne(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=da(n,a,u,f),g=new z(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(Q(y=>new z(a,y)));if(0===f.length&&0===p.length)return T(new z(a,{}));const m=wt(r)===o;return this.expandSegment(d,g,f,p,m?U:o,!0).pipe(Q(_=>new z(a.concat(_.segments),_.children)))})):Do(n)))}getChildConfig(t,n,r){return n.children?T({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?T({routes:n._loadedRoutes,injector:n._loadedInjector}):function BN(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?T(!0):T(i.map(s=>{const a=ei(s,e);return Ln(function MN(e){return e&&vo(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ti(),_D())}(t,n,r).pipe(Ne(i=>i?this.configLoader.loadChildren(t,n).pipe(Be(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):function QN(e){return io(gD(ha,3))}())):T({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return T(r);if(i.numberOfChildren>1||!i.children[U])return io(new I(4e3,ha));i=i.children[U]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,i){const o=this.createSegmentGroup(t,n.root,r,i);return new nr(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Pe(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,i){const o=this.createSegments(t,n.segments,r,i);let s={};return Pe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,i)}),new z(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){const i=r[n.path.substring(1)];if(!i)throw new I(4001,ha);return i}findOrReturn(t,n){let r=0;for(const i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}}class JN{}class tP{constructor(t,n,r,i,o,s,a,u){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const t=da(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,U).pipe(Q(n=>{if(null===n)return null;const r=new aa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new yn(r,n),o=new fD(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const n=t.value,r=dD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i)}processChildren(t,n,r){return Ce(Object.keys(r.children)).pipe(tr(i=>{const o=r.children[i],s=DD(n,i);return this.processSegmentGroup(t,s,o,i)}),$v((i,o)=>i&&o?(i.push(...o),i):null),function _x(e,t=!1){return Te((n,r)=>{let i=0;n.subscribe(Ae(r,o=>{const s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),Xs(null),Bv(),Q(i=>{if(null===i)return null;const o=MD(i);return function nP(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}(o),o}))}processSegment(t,n,r,i,o){return Ce(n).pipe(tr(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,i,o)),On(s=>!!s),Fn(s=>{if(cd(s))return bD(r,i,o)?T([]):T(null);throw s}))}processSegmentAgainstRoute(t,n,r,i,o){if(n.redirectTo||!ED(n,r,i,o))return T(null);let s;if("**"===n.path){const a=i.length>0?zv(i).parameters:{},u=AD(r)+i.length;s=T({snapshot:new aa(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xD(n),wt(n),n.component??n._loadedComponent??null,n,TD(r),u,ND(n),u),consumedSegments:[],remainingSegments:[]})}else s=CD(r,n,i,t).pipe(Q(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=AD(r)+u.length;return{snapshot:new aa(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xD(n),wt(n),n.component??n._loadedComponent??null,n,TD(r),d,ND(n),d),consumedSegments:u,remainingSegments:l}}));return s.pipe(Zt(a=>{if(null===a)return T(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function rP(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=da(r,l,c,f.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(Q(m=>null===m?null:[new yn(u,m)]));if(0===f.length&&0===p.length)return T([new yn(u,[])]);const g=wt(n)===o;return this.processSegment(d,f,h,p,g?U:o).pipe(Q(m=>null===m?null:[new yn(u,m)]))}))}}function iP(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function MD(e){const t=[],n=new Set;for(const r of e){if(!iP(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):t.push(r)}for(const r of n){const i=MD(r.children);t.push(new yn(r.value,i))}return t.filter(r=>!n.has(r))}function TD(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function AD(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function xD(e){return e.data||{}}function ND(e){return e.resolve||{}}function PD(e){return"string"==typeof e.title||null===e.title}function hd(e){return Zt(t=>{const n=e(t);return n?Ce(n).pipe(Q(()=>t)):T(t)})}let OD=(()=>{class e{buildTitle(n){let r,i=n.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===U);return r}getResolvedTitleForRoute(n){return n.data[so]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=B({token:e,factory:function(){return fe(FD)},providedIn:"root"}),e})(),FD=(()=>{class e extends OD{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)(A(Nv))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class fP{}class pP extends class hP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const ma=new O("",{providedIn:"root",factory:()=>({})}),pd=new O("ROUTES");let gd=(()=>{class e{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return T(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Ln(n.loadComponent()).pipe(Be(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Gc(()=>{this.componentLoaders.delete(n)})),i=new jv(r,()=>new $t).pipe(Hc());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return T({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(Q(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=Hv(u.get(pd,[],x.Self|x.Optional)));return{routes:l.map(ld),injector:u}}),Gc(()=>{this.childrenLoaders.delete(r)})),s=new jv(o,()=>new $t).pipe(Hc());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Ln(n()).pipe(Ne(r=>r instanceof Tm||Array.isArray(r)?T(r):Ce(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)(A(Mt),A(rc))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class mP{}class yP{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function vP(e){throw e}function DP(e,t,n){return t.parse("/")}const wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_P={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function kD(){const e=fe(Kv),t=fe(po),n=fe(Dc),r=fe(Mt),i=fe(rc),o=fe(pd,{optional:!0})??[],s=fe(ma,{optional:!0})??{},a=fe(FD),u=fe(OD,{optional:!0}),l=fe(mP,{optional:!0}),c=fe(fP,{optional:!0}),d=new Oe(null,e,t,n,r,i,Hv(o));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),d.titleStrategy=u??a,function CP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,d),d}let Oe=(()=>{class e{constructor(n,r,i,o,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new $t,this.errorHandler=vP,this.malformedUriErrorHandler=DP,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>T(void 0),this.urlHandlingStrategy=new yP,this.routeReuseStrategy=new pP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(gd),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new rN(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new nN(f)),this.ngModule=s.get(Jn),this.console=s.get(BM);const d=s.get(Se);this.isNgZoneEnabled=d instanceof Se&&Se.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function Sx(){return new nr(new z([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cD(this.currentUrlTree,this.rootComponentType),this.transitions=new Ft({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Pn(i=>0!==i.id),Q(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Zt(i=>{let o=!1,s=!1;return T(i).pipe(Be(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Zt(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return jD(a.source)&&(this.browserUrlTree=a.extractedUrl),T(a).pipe(Zt(d=>{const f=this.transitions.getValue();return r.next(new Xc(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?en:Promise.resolve(d)}),function YN(e,t,n,r){return Zt(i=>function ZN(e,t,n,r,i){return new KN(e,t,n,r,i).apply()}(e,t,n,i.extractedUrl,r).pipe(Q(o=>({...i,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Be(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},i.urlAfterRedirects=d.urlAfterRedirects}),function sP(e,t,n,r,i,o){return Ne(s=>function eP(e,t,n,r,i,o,s="emptyOnly",a="legacy"){return new tP(e,t,n,r,i,s,a,o).recognize().pipe(Zt(u=>null===u?function XN(e){return new _e(t=>t.error(e))}(new JN):T(u)))}(e,t,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,i,o).pipe(Q(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Be(d=>{if(i.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new Yx(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:m}=a,D=new Xc(f,this.serializeUrl(h),p,g);r.next(D);const _=cD(h,this.rootComponentType).snapshot;return T(i={...a,targetSnapshot:_,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),en}),Be(a=>{const u=new Jx(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Q(a=>i={...a,guards:CN(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function PN(e,t){return Ne(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?T({...n,guardsResult:!0}):function ON(e,t,n,r){return Ce(e).pipe(Ne(i=>function $N(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?T(o.map(a=>{const u=go(t)??i,l=ei(a,u);return Ln(function RN(e){return e&&vo(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(On())})).pipe(ti()):T(!0)}(i.component,i.route,n,t,r)),On(i=>!0!==i,!0))}(s,r,i,e).pipe(Ne(a=>a&&function SN(e){return"boolean"==typeof e}(a)?function FN(e,t,n,r){return Ce(t).pipe(tr(i=>Uc(function kN(e,t){return null!==e&&t&&t(new iN(e)),T(!0)}(i.route.parent,r),function LN(e,t){return null!==e&&t&&t(new sN(e)),T(!0)}(i.route,r),function VN(e,t,n){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function EN(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=>kv(()=>T(s.guards.map(u=>{const l=go(s.node)??n,c=ei(u,l);return Ln(function AN(e){return e&&vo(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(On())})).pipe(ti())));return T(o).pipe(ti())}(e,i.path,n),function jN(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return T(!0);const i=r.map(o=>kv(()=>{const s=go(t)??n,a=ei(o,s);return Ln(function TN(e){return e&&vo(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(On())}));return T(i).pipe(ti())}(e,i.route,n))),On(i=>!0!==i,!0))}(r,o,e,t):T(a)),Q(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Be(a=>{if(i.guardsResult=a.guardsResult,ir(a.guardsResult))throw pD(0,a.guardsResult);const u=new Xx(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),Pn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),hd(a=>{if(a.guards.canActivateChecks.length)return T(a).pipe(Be(u=>{const l=new eN(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),Zt(u=>{let l=!1;return T(u).pipe(function aP(e,t){return Ne(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return T(n);let o=0;return Ce(i).pipe(tr(s=>function uP(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!PD(i)&&(o[so]=i.title),function lP(e,t,n,r){const i=function cP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return T({});const o={};return Ce(i).pipe(Ne(s=>function dP(e,t,n,r){const i=go(t)??r,o=ei(e,i);return Ln(o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n)))}(e[s],t,n,r).pipe(On(),Be(a=>{o[s]=a}))),zc(1),function Cx(e){return Q(()=>e)}(o),Fn(s=>cd(s)?en:io(s)))}(o,e,t,r).pipe(Q(s=>(e._resolvedData=s,e.data=dD(e,n).resolve,i&&PD(i)&&(e.data[so]=i.title),null)))}(s.route,r,e,t)),Be(()=>o++),zc(1),Ne(s=>o===i.length?T(n):en))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Be({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),Be(u=>{const l=new tN(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),hd(a=>{const u=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Be(d=>{l.component=d}),Q(()=>{})));for(const d of l.children)c.push(...u(d));return c};return Fv(u(a.targetSnapshot.root)).pipe(Xs(),oo(1))}),hd(()=>this.afterPreactivation()),Q(a=>{const u=function dN(e,t,n){const r=ho(e,t._root,n?n._root:void 0);return new lD(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:u}}),Be(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>Q(r=>(new _N(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Be({next(){o=!0},complete(){o=!0}}),Gc(()=>{o||s||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Fn(a=>{if(s=!0,yD(a)){mD(a)||(this.navigated=!0,this.restoreHistory(i,!0));const u=new sa(i.id,this.serializeUrl(i.extractedUrl),a.message,a.cancellationCode);if(r.next(u),mD(a)){const l=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jD(i.source)};this.scheduleNavigation(l,"imperative",null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{this.restoreHistory(i,!0);const u=new sD(i.id,this.serializeUrl(i.extractedUrl),a,i.targetSnapshot??void 0);r.next(u);try{i.resolve(this.errorHandler(a))}catch(l){i.reject(l)}}return en}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const i={replaceUrl:!0},o=n.state?.navigationId?n.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(i.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,o,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(ld),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=i||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),Gx(l,this.currentUrlTree,n,d,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=ir(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function EP(e){for(let t=0;t<e.length;t++){if(null==e[t])throw new I(4008,false)}}(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(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,n)}return r}isActive(n,r){let i;if(i=!0===r?{...wP}:!1===r?{..._P}:r,ir(n))return Wv(this.currentUrlTree,n,i);const o=this.parseUrl(n);return Wv(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.keys(n).reduce((r,i)=>{const o=n[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new or(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,o,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((f,h)=>{a=f,u=h});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),d=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===i?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}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))}cancelNavigationTransition(n,r,i){const o=new sa(n.id,this.serializeUrl(n.extractedUrl),r,i);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){tl()},e.\u0275prov=B({token:e,factory:function(){return kD()},providedIn:"root"}),e})();function jD(e){return"imperative"!==e}class VD{}let SP=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Pn(n=>n instanceof or),tr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=bs(o.providers,n,`Route: ${o.path}`));const s=o._injector??n,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?i.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Ce(i).pipe(lr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):T(null);const o=i.pipe(Ne(s=>null===s?T(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ce([o,this.loader.loadComponent(r)]).pipe(lr()):o})}}return e.\u0275fac=function(n){return new(n||e)(A(Oe),A(rc),A(Sn),A(VD),A(gd))},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vd=new O("");let $D=(()=>{class e{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Xc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof or&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof aD&&(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.router.triggerEvent(new aD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){tl()},e.\u0275prov=B({token:e,factory:e.\u0275fac}),e})();function ni(e,t){return{\u0275kind:e,\u0275providers:t}}function Dd(e){return[{provide:pd,multi:!0,useValue:e}]}function UD(){const e=fe(Mt);return t=>{const n=e.get(xs);if(t!==n.components[0])return;const r=e.get(Oe),i=e.get(HD);1===e.get(wd)&&r.initialNavigation(),e.get(zD,null,x.Optional)?.setUpPreloading(),e.get(vd,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const HD=new O("",{factory:()=>new $t}),wd=new O("",{providedIn:"root",factory:()=>1});const zD=new O("");function RP(e){return ni(0,[{provide:zD,useExisting:SP},{provide:VD,useExisting:e}])}const GD=new O("ROUTER_FORROOT_GUARD"),xP=[Dc,{provide:Kv,useClass:qc},{provide:Oe,useFactory:kD},po,{provide:sr,useFactory:function BD(e){return e.routerState.root},deps:[Oe]},gd];function NP(){return new by("Router",Oe)}let WD=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[xP,[],Dd(n),{provide:GD,useFactory:LP,deps:[[Oe,new Ii,new Si]]},{provide:ma,useValue:r||{}},r?.useHash?{provide:er,useClass:AT}:{provide:er,useClass:Zy},{provide:vd,useFactory:()=>{const e=fe(Oe),t=fe(JA),n=fe(ma);return n.scrollOffset&&t.setOffset(n.scrollOffset),new $D(e,t,n)}},r?.preloadingStrategy?RP(r.preloadingStrategy).\u0275providers:[],{provide:by,multi:!0,useFactory:NP},r?.initialNavigation?kP(r):[],[{provide:qD,useFactory:UD},{provide:yy,multi:!0,useExisting:qD}]]}}static forChild(n){return{ngModule:e,providers:[Dd(n)]}}}return e.\u0275fac=function(n){return new(n||e)(A(GD,8))},e.\u0275mod=Vn({type:e}),e.\u0275inj=wn({imports:[ad]}),e})();function LP(e){return"guarded"}function kP(e){return["disabled"===e.initialNavigation?ni(3,[{provide:Ts,multi:!0,useFactory:()=>{const t=fe(Oe);return()=>{t.setUpLocationChangeListener()}}},{provide:wd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?ni(2,[{provide:wd,useValue:0},{provide:Ts,multi:!0,deps:[Mt],useFactory:t=>{const n=t.get(MT,Promise.resolve());let r=!1;return()=>n.then(()=>new Promise(o=>{const s=t.get(Oe),a=t.get(HD);(function i(o){t.get(Oe).events.pipe(Pn(a=>a instanceof or||a instanceof sa||a instanceof sD),Q(a=>a instanceof or||a instanceof sa&&(0===a.code||1===a.code)&&null),Pn(a=>null!==a),oo(1)).subscribe(()=>{o()})})(()=>{o(!0),r=!0}),s.afterPreactivation=()=>(o(!0),r||a.closed?T(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const qD=new O("");function QD(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,i)}function wa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(u){QD(o,r,i,s,a,"next",u)}function a(u){QD(o,r,i,s,a,"throw",u)}s(void 0)})}}var ZD=ur(587);let _d=(()=>{class e{constructor(){this.port=ZD.Xt}ngOnInit(){}connectToSerialPort(){var n=this;return wa(function*(){try{const r=ZD.eP;n.port=yield r.requestPort({});const i={baudRate:115200,bufferSize:8192,dataBits:8,flowControl:"none",parity:"none",rtscts:!1,stopBits:1};yield n.port.open(i)}catch(r){console.error("Ocurrio un error al abrir el puerto serial:",r)}})()}encodeString(n){return(new TextEncoder).encode(n)}writeString(n,r){var i=this;return wa(function*(){const o=i.encodeString(r);yield n.write(o)})()}delay(n){return wa(function*(){return new Promise(r=>setTimeout(r,n))})()}executeCode(){var n=this;return wa(function*(){n.code="import board\nimport digitalio\nimport time\nled = digitalio.DigitalInOut(board.GP25)\nled.direction = digitalio.Direction.OUTPUT\nwhile True: \nled.value = True \ntime.sleep(0.5) \nled.value = False \ntime.sleep(0.5)";let r=n.code.split("\n"),i="";try{n.writer&&(n.writer.releaseLock(),yield n.delay(100)),n.writer=n.port.writable.getWriter();const o=new Uint8Array([3]);yield n.writer.write(o),yield n.delay(150),yield n.writer.write(o),yield n.delay(150),yield n.writeString(n.writer,'with open("code.py", "w") as fp:\r'),yield n.delay(150);for(let a=0;a<r.length;a++)r[a]=r[a]+"\\n",i+=r[a];yield n.writeString(n.writer,`fp.write('${i}')\r`),yield n.delay(1e3),yield n.writeString(n.writer,"\r\r\r"),yield n.delay(100);const s=new Uint8Array([4]);yield n.writer.write(s),yield n.delay(100)}catch(o){console.log(o)}finally{yield n.writer.close(),yield n.delay(100)}})()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=ui({type:e,selectors:[["app-home"]],decls:3,vars:0,consts:[[3,"click"],["id","data"]],template:function(n,r){1&n&&(ms(0,"button",0),Bi("click",function(){return r.connectToSerialPort()}),function Pg(e,t=""){const n=v(),r=W(),i=e+22,o=r.firstCreatePass?Pr(r,i,1,t,null):r.data[i],s=n[i]=function bu(e,t){return e.createText(t)}(n[V],t);Zo(r,n,s,o),Ht(o,!1)}(1,"conectar"),ys(),$i(2,"p",1))}}),e})();const VP=[{path:"",component:_d},{path:"home",component:_d},{path:"**",component:_d}];let $P=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vn({type:e}),e.\u0275inj=wn({imports:[WD.forRoot(VP),WD]}),e})(),BP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=ui({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&$i(0,"router-outlet")},dependencies:[sd]}),e})(),UP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vn({type:e,bootstrap:[BP]}),e.\u0275inj=wn({imports:[KR,$P]}),e})();(function sT(){Oy=!1})(),ZR().bootstrapModule(UP).catch(e=>console.error(e))},587:(Yt,nt,ur)=>{"use strict";var Lt,rt,xe=ur(156).default;nt.eP=nt.Xt=nt.TN=void 0,(rt=Lt=nt.TN||(nt.TN={}))[rt.UsbCdcAcm=0]="UsbCdcAcm";const wo=[16,8,7,6,5],_o=[1,2],_a=["none","even","odd"],Ca=["none","odd","even"],Ea=[1,1.5,2],kn={protocol:Lt.UsbCdcAcm,usbControlInterfaceClass:2,usbTransferInterfaceClass:10};function Vt(rt,w){const b=rt.configurations[0];for(const H of b.interfaces)if(H.alternates[0].interfaceClass===w)return H;throw new TypeError(`Unable to find interface with class ${w}.`)}function jn(rt,w){const b=rt.alternates[0];for(const H of b.endpoints)if(H.direction==w)return H;throw new TypeError(`Interface ${rt.interfaceNumber} does not have an ${w} endpoint.`)}class ba{constructor(w,b,H){this.type="bytes",this.device_=w,this.endpoint_=b,this.onError_=H}pull(w){var b=this;xe(function*(){var H;let de;de=w.desiredSize?Math.ceil(w.desiredSize/b.endpoint_.packetSize)*b.endpoint_.packetSize:b.endpoint_.packetSize;try{const we=yield b.device_.transferIn(b.endpoint_.endpointNumber,de);if("ok"!=we.status&&(w.error(`USB error: ${we.status}`),b.onError_()),null!==(H=we.data)&&void 0!==H&&H.buffer){const Ue=new Uint8Array(we.data.buffer,we.data.byteOffset,we.data.byteLength);w.enqueue(Ue)}}catch(we){w.error(we.toString()),b.onError_()}})()}}class ri{constructor(w,b,H){this.device_=w,this.endpoint_=b,this.onError_=H}write(w,b){var H=this;return xe(function*(){try{const de=yield H.device_.transferOut(H.endpoint_.endpointNumber,w);"ok"!=de.status&&(b.error(de.status),H.onError_())}catch(de){b.error(de.toString()),H.onError_()}})()}}class ii{constructor(w,b){this.polyfillOptions_=Object.assign(Object.assign({},kn),b),this.outputSignals_={dataTerminalReady:!1,requestToSend:!1,break:!1},this.device_=w,this.controlInterface_=Vt(this.device_,this.polyfillOptions_.usbControlInterfaceClass),this.transferInterface_=Vt(this.device_,this.polyfillOptions_.usbTransferInterfaceClass),this.inEndpoint_=jn(this.transferInterface_,"in"),this.outEndpoint_=jn(this.transferInterface_,"out")}get readable(){var w;return!this.readable_&&this.device_.opened&&(this.readable_=new ReadableStream(new ba(this.device_,this.inEndpoint_,()=>{this.readable_=null}),{highWaterMark:null!==(w=this.serialOptions_.bufferSize)&&void 0!==w?w:255})),this.readable_}get writable(){var w;return!this.writable_&&this.device_.opened&&(this.writable_=new WritableStream(new ri(this.device_,this.outEndpoint_,()=>{this.writable_=null}),new ByteLengthQueuingStrategy({highWaterMark:null!==(w=this.serialOptions_.bufferSize)&&void 0!==w?w:255}))),this.writable_}open(w){var b=this;return xe(function*(){b.serialOptions_=w,b.validateOptions();try{yield b.device_.open(),null===b.device_.configuration&&(yield b.device_.selectConfiguration(1)),yield b.device_.claimInterface(b.controlInterface_.interfaceNumber),b.controlInterface_!==b.transferInterface_&&(yield b.device_.claimInterface(b.transferInterface_.interfaceNumber)),yield b.setLineCoding(),yield b.setSignals({dataTerminalReady:!0})}catch(H){throw b.device_.opened&&(yield b.device_.close()),new Error("Error setting up device: "+H.toString())}})()}close(){var w=this;return xe(function*(){const b=[];w.readable_&&b.push(w.readable_.cancel()),w.writable_&&b.push(w.writable_.abort()),yield Promise.all(b),w.readable_=null,w.writable_=null,w.device_.opened&&(yield w.setSignals({dataTerminalReady:!1,requestToSend:!1}),yield w.device_.close())})()}forget(){var w=this;return xe(function*(){return w.device_.forget()})()}getInfo(){return{usbVendorId:this.device_.vendorId,usbProductId:this.device_.productId}}reconfigure(w){return this.serialOptions_=Object.assign(Object.assign({},this.serialOptions_),w),this.validateOptions(),this.setLineCoding()}setSignals(w){var b=this;return xe(function*(){if(b.outputSignals_=Object.assign(Object.assign({},b.outputSignals_),w),void 0!==w.dataTerminalReady||void 0!==w.requestToSend){const H=(b.outputSignals_.dataTerminalReady?1:0)|(b.outputSignals_.requestToSend?2:0);yield b.device_.controlTransferOut({requestType:"class",recipient:"interface",request:34,value:H,index:b.controlInterface_.interfaceNumber})}if(void 0!==w.break){const H=b.outputSignals_.break?65535:0;yield b.device_.controlTransferOut({requestType:"class",recipient:"interface",request:35,value:H,index:b.controlInterface_.interfaceNumber})}})()}validateOptions(){if(!this.isValidBaudRate(this.serialOptions_.baudRate))throw new RangeError("invalid Baud Rate "+this.serialOptions_.baudRate);if(!this.isValidDataBits(this.serialOptions_.dataBits))throw new RangeError("invalid dataBits "+this.serialOptions_.dataBits);if(!this.isValidStopBits(this.serialOptions_.stopBits))throw new RangeError("invalid stopBits "+this.serialOptions_.stopBits);if(!this.isValidParity(this.serialOptions_.parity))throw new RangeError("invalid parity "+this.serialOptions_.parity)}isValidBaudRate(w){return w%1==0}isValidDataBits(w){return typeof w>"u"||wo.includes(w)}isValidStopBits(w){return typeof w>"u"||_o.includes(w)}isValidParity(w){return typeof w>"u"||_a.includes(w)}setLineCoding(){var w=this;return xe(function*(){var b,H,de;const we=new ArrayBuffer(7),Ue=new DataView(we);if(Ue.setUint32(0,w.serialOptions_.baudRate,!0),Ue.setUint8(4,Ea.indexOf(null!==(b=w.serialOptions_.stopBits)&&void 0!==b?b:1)),Ue.setUint8(5,Ca.indexOf(null!==(H=w.serialOptions_.parity)&&void 0!==H?H:"none")),Ue.setUint8(6,null!==(de=w.serialOptions_.dataBits)&&void 0!==de?de:8),"ok"!=(yield w.device_.controlTransferOut({requestType:"class",recipient:"interface",request:32,value:0,index:w.controlInterface_.interfaceNumber},we)).status)throw new DOMException("NetworkError","Failed to set line coding.")})()}}nt.Xt=ii,nt.eP=new class oi{requestPort(w,b){return xe(function*(){b=Object.assign(Object.assign({},kn),b);const H=[];if(w&&w.filters)for(const Ue of w.filters){const ht={classCode:b.usbControlInterfaceClass};void 0!==Ue.usbVendorId&&(ht.vendorId=Ue.usbVendorId),void 0!==Ue.usbProductId&&(ht.productId=Ue.usbProductId),H.push(ht)}0===H.length&&H.push({classCode:b.usbControlInterfaceClass});const de=yield navigator.usb.requestDevice({filters:H});return new ii(de,b)})()}getPorts(w){return xe(function*(){w=Object.assign(Object.assign({},kn),w);const b=yield navigator.usb.getDevices(),H=[];return b.forEach(de=>{try{const we=new ii(de,w);H.push(we)}catch{}}),H})()}}},156:Yt=>{function nt(Z,xe,Lt,kt,De,Jt,_t){try{var jt=Z[Jt](_t),Fe=jt.value}catch(vn){return void Lt(vn)}jt.done?xe(Fe):Promise.resolve(Fe).then(kt,De)}Yt.exports=function ur(Z){return function(){var xe=this,Lt=arguments;return new Promise(function(kt,De){var Jt=Z.apply(xe,Lt);function _t(Fe){nt(Jt,kt,De,_t,jt,"next",Fe)}function jt(Fe){nt(Jt,kt,De,_t,jt,"throw",Fe)}_t(void 0)})}},Yt.exports.__esModule=!0,Yt.exports.default=Yt.exports}},Yt=>{Yt(Yt.s=804)}]);