homebridge-eufy-security 4.4.2-beta.2 → 4.4.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/platform.d.ts +2 -14
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +37 -56
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +0 -2
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +1 -3
- package/dist/settings.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/homebridge-ui/configui/app/util/types.d.ts +1 -0
- package/homebridge-ui/configui/app/util/types.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.js.map +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/main.13895ebc61bdaf90.js +1 -0
- package/homebridge-ui/server.js +107 -58
- package/homebridge-ui/server.js.map +1 -1
- package/homebridge-ui/version.d.ts +1 -1
- package/homebridge-ui/version.js +1 -1
- package/package.json +2 -2
- package/homebridge-ui/public/main.f6423287e0411c87.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[792],{20(va,Tn){Tn.read=function(nt,X,Vt,ft,Xe){var ve,j,Ge=8*Xe-ft-1,I=(1<<Ge)-1,Rn=I>>1,Be=-7,lt=Vt?Xe-1:0,vn=Vt?-1:1,te=nt[X+lt];for(lt+=vn,ve=te&(1<<-Be)-1,te>>=-Be,Be+=Ge;Be>0;ve=256*ve+nt[X+lt],lt+=vn,Be-=8);for(j=ve&(1<<-Be)-1,ve>>=-Be,Be+=ft;Be>0;j=256*j+nt[X+lt],lt+=vn,Be-=8);if(0===ve)ve=1-Rn;else{if(ve===I)return j?NaN:1/0*(te?-1:1);j+=Math.pow(2,ft),ve-=Rn}return(te?-1:1)*j*Math.pow(2,ve-ft)},Tn.write=function(nt,X,Vt,ft,Xe,ve){var j,Ge,I,Rn=8*ve-Xe-1,Be=(1<<Rn)-1,lt=Be>>1,vn=23===Xe?Math.pow(2,-24)-Math.pow(2,-77):0,te=ft?0:ve-1,Me=ft?1:-1,Fe=X<0||0===X&&1/X<0?1:0;for(X=Math.abs(X),isNaN(X)||X===1/0?(Ge=isNaN(X)?1:0,j=Be):(j=Math.floor(Math.log(X)/Math.LN2),X*(I=Math.pow(2,-j))<1&&(j--,I*=2),(X+=j+lt>=1?vn/I:vn*Math.pow(2,1-lt))*I>=2&&(j++,I/=2),j+lt>=Be?(Ge=0,j=Be):j+lt>=1?(Ge=(X*I-1)*Math.pow(2,Xe),j+=lt):(Ge=X*Math.pow(2,lt-1)*Math.pow(2,Xe),j=0));Xe>=8;nt[Vt+te]=255&Ge,te+=Me,Ge/=256,Xe-=8);for(j=j<<Xe|Ge,Rn+=Xe;Rn>0;nt[Vt+te]=255&j,te+=Me,j/=256,Rn-=8);nt[Vt+te-Me]|=128*Fe}},206(va,Tn,nt){"use strict";let X=null,Vt=!1,ft=1;const ve=Symbol("SIGNAL");function j(e){const n=X;return X=e,n}const Be={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function lt(e){if(Vt)throw new Error("");if(null===X)return;X.consumerOnSignalRead(e);const n=X.producersTail;if(void 0!==n&&n.producer===e)return;let t;const r=X.recomputing;if(r&&(t=void 0!==n?n.nextProducer:X.producers,void 0!==t&&t.producer===e))return X.producersTail=t,void(t.lastReadVersion=e.version);const o=e.consumersTail;if(void 0!==o&&o.consumer===X&&(!r||function wh(e,n){const t=n.producersTail;if(void 0!==t){let r=n.producers;do{if(r===e)return!0;if(r===t)break;r=r.nextProducer}while(void 0!==r)}return!1}(o,X)))return;const i=Do(X),a={producer:e,consumer:X,nextProducer:t,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};X.producersTail=a,void 0!==n?n.nextProducer=a:X.producers=a,i&&Vs(e,a)}function te(e){if((!Do(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ft)){if(!e.producerMustRecompute(e)&&!Kn(e))return void Rt(e);e.producerRecomputeValue(e),Rt(e)}}function Me(e){if(void 0===e.consumers)return;const n=Vt;Vt=!0;try{for(let t=e.consumers;void 0!==t;t=t.nextConsumer){const r=t.consumer;r.dirty||vt(r)}}finally{Vt=n}}function Fe(){return!1!==X?.consumerAllowSignalWrites}function vt(e){e.dirty=!0,Me(e),e.consumerMarkedDirty?.(e)}function Rt(e){e.dirty=!1,e.lastCleanEpoch=ft}function Pe(e){return e&&function Yt(e){e.producersTail=void 0,e.recomputing=!0}(e),j(e)}function Mn(e,n){j(n),e&&function Qt(e){e.recomputing=!1;const n=e.producersTail;let t=void 0!==n?n.nextProducer:e.producers;if(void 0!==t){if(Do(e))do{t=js(t)}while(void 0!==t);void 0!==n?n.nextProducer=void 0:e.producers=void 0}}(e)}function Kn(e){for(let n=e.producers;void 0!==n;n=n.nextProducer){const t=n.producer,r=n.lastReadVersion;if(r!==t.version||(te(t),r!==t.version))return!0}return!1}function Co(e){if(Do(e)){let n=e.producers;for(;void 0!==n;)n=js(n)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Vs(e,n){const t=e.consumersTail,r=Do(e);if(void 0!==t?(n.nextConsumer=t.nextConsumer,t.nextConsumer=n):(n.nextConsumer=void 0,e.consumers=n),n.prevConsumer=t,e.consumersTail=n,!r)for(let o=e.producers;void 0!==o;o=o.nextProducer)Vs(o.producer,o)}function js(e){const n=e.producer,t=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,void 0!==r?r.prevConsumer=o:n.consumersTail=o,void 0!==o)o.nextConsumer=r;else if(n.consumers=r,!Do(n)){let i=n.producers;for(;void 0!==i;)i=js(i)}return t}function Do(e){return e.consumerIsAlwaysLive||void 0!==e.consumers}function zs(e,n){return Object.is(e,n)}const Tr=Symbol("UNSET"),xo=Symbol("COMPUTING"),Rr=Symbol("ERRORED"),bh={...Be,value:Tr,dirty:!0,error:null,equal:zs,kind:"computed",producerMustRecompute:e=>e.value===Tr||e.value===xo,producerRecomputeValue(e){if(e.value===xo)throw new Error("");const n=e.value;e.value=xo;const t=Pe(e);let r,o=!1;try{r=e.computation(),j(null),o=n!==Tr&&n!==Rr&&r!==Rr&&e.equal(n,r)}catch(i){r=Rr,e.error=i}finally{Mn(e,t)}o?e.value=n:(e.value=r,e.version++)}};let U1=function Ch(){throw new Error};function Mt(e){U1(e)}function $1(e,n){const t=Object.create(Ma);t.value=e,void 0!==n&&(t.equal=n);const r=()=>function G1(e){return lt(e),e.value}(t);return r[ve]=t,[r,a=>si(t,a),a=>function Xr(e,n){Fe()||Mt(e),si(e,n(e.value))}(t,a)]}function si(e,n){Fe()||Mt(e),e.equal(e.value,n)||(e.value=n,function xh(e){e.version++,function vn(){ft++}(),Me(e)}(e))}const Ma={...Be,equal:zs,value:void 0,kind:"signal"},Eo={...Be,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function Ee(e){return"function"==typeof e}function Bs(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const li=Bs(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function _a(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Jt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Ee(r))try{r()}catch(i){n=i instanceof li?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Nn(i)}catch(a){n=n??[],a instanceof li?n=[...n,...a.errors]:n.push(a)}}if(n)throw new li(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Nn(n);else{if(n instanceof Jt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&_a(t,n)}remove(n){const{_finalizers:t}=this;t&&_a(t,n),n instanceof Jt&&n._removeParent(this)}}Jt.EMPTY=(()=>{const e=new Jt;return e.closed=!0,e})();const qs=Jt.EMPTY;function di(e){return e instanceof Jt||e&&"closed"in e&&Ee(e.remove)&&Ee(e.add)&&Ee(e.unsubscribe)}function Nn(e){Ee(e)?e():e.unsubscribe()}const hr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wa={setTimeout(e,n,...t){const{delegate:r}=wa;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=wa;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function pr(e){wa.setTimeout(()=>{const{onUnhandledError:n}=hr;if(!n)throw e;n(e)})}function ui(){}const g=v("C",void 0,void 0);function v(e,n,t){return{kind:e,value:n,error:t}}let C=null;function S(e){if(hr.useDeprecatedSynchronousErrorHandling){const n=!C;if(n&&(C={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=C;if(C=null,t)throw r}}else e()}class ge extends Jt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,di(n)&&n.add(this)):this.destination=hC}static create(n,t,r){return new Re(n,t,r)}next(n){this.isStopped?Eh(function p(e){return v("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Eh(function u(e){return v("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Eh(g,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const rt=Function.prototype.bind;function Ve(e,n){return rt.call(e,n)}class ot{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){K1(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){K1(r)}else K1(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){K1(t)}}}class Re extends ge{constructor(n,t,r){let o;if(super(),Ee(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&hr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ve(n.next,i),error:n.error&&Ve(n.error,i),complete:n.complete&&Ve(n.complete,i)}):o=n}this.destination=new ot(o)}}function K1(e){hr.useDeprecatedSynchronousErrorHandling?function L(e){hr.useDeprecatedSynchronousErrorHandling&&C&&(C.errorThrown=!0,C.error=e)}(e):pr(e)}function Eh(e,n){const{onStoppedNotification:t}=hr;t&&wa.setTimeout(()=>t(e,n))}const hC={closed:!0,next:ui,error:function uC(e){throw e},complete:ui},Sh="function"==typeof Symbol&&Symbol.observable||"@@observable";function hi(e){return e}function Dg(e){return 0===e.length?hi:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let We=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function yC(e){return e&&e instanceof ge||function fC(e){return e&&Ee(e.next)&&Ee(e.error)&&Ee(e.complete)}(e)&&di(e)}(t)?t:new Re(t,r,o);return S(()=>{const{operator:a,source:s}=this;i.add(a?a.call(i,s):s?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=xg(r))((o,i)=>{const a=new Re({next:s=>{try{t(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});this.subscribe(a)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Sh](){return this}pipe(...t){return Dg(t)(this)}toPromise(t){return new(t=xg(t))((r,o)=>{let i;this.subscribe(a=>i=a,a=>o(a),()=>r(i))})}}return e.create=n=>new e(n),e})();function xg(e){var n;return null!==(n=e??hr.Promise)&&void 0!==n?n:Promise}const gC=Bs(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ah,it=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Eg(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new gC}next(t){S(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){S(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){S(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?qs:(this.currentObservers=null,i.push(t),new Jt(()=>{this.currentObservers=null,_a(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new We;return t.source=this,t}}return e.create=(n,t)=>new Eg(n,t),e})();class Eg extends it{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:qs}}class On extends it{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function Ih(){return Ah}function So(e){const n=Ah;return Ah=e,n}const mC=Symbol("NotFound");function Th(e){return e===mC||"\u0275NotFound"===e?.name}Error;const Ig="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class N extends Error{code;constructor(n,t){super(Yn(n,t)),this.code=n}}function Yn(e,n){return`${function vC(e){return`NG0${Math.abs(e)}`}(e)}${n?": "+n:""}`}const yt=globalThis;function re(e){for(let n in e)if(e[n]===re)return n;throw Error("")}function MC(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Qn(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(Qn).join(", ")}]`;if(null==e)return""+e;const n=e.overriddenName||e.name;if(n)return`${n}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return r>=0?t.slice(0,r):t}function Rh(e,n){return e?n?`${e} ${n}`:e:n||""}const _C=re({__forward_ref__:re});function qe(e){return e.__forward_ref__=qe,e.toString=function(){return Qn(this())},e}function pe(e){return Q1(e)?e():e}function Q1(e){return"function"==typeof e&&e.hasOwnProperty(_C)&&e.__forward_ref__===qe}function pi(e,n,t){e!=n&&function Q(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(t,e,n,"==")}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nr(e){return{providers:e.providers||[],imports:e.imports||[]}}function X1(e){return function SC(e,n){return e.hasOwnProperty(n)&&e[n]||null}(e,el)}function J1(e){return e&&e.hasOwnProperty(Nh)?e[Nh]:null}const el=re({\u0275prov:re}),Nh=re({\u0275inj:re});class P{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lh(e){return e&&!!e.\u0275providers}const Tg=re({\u0275cmp:re}),OC=re({\u0275dir:re}),LC=re({\u0275pipe:re}),Rg=re({\u0275mod:re}),yi=re({\u0275fac:re}),Us=re({__NG_ELEMENT_ID__:re}),Ng=re({__NG_ENV_ID__:re});function Or(e){return nl(e),e[Rg]||null}function Ie(e){return nl(e),e[Tg]||null}function ln(e){return nl(e),e[OC]||null}function fr(e){return nl(e),e[LC]||null}function nl(e,n){if(null==e)throw new N(-919,!1)}function he(e){return"string"==typeof e?e:null==e?"":String(e)}const Ph=re({ngErrorCode:re}),Og=re({ngErrorMessage:re}),$s=re({ngTokenPath:re});function Vh(e,n){return Lg("",-200,n)}function jh(e,n){throw new N(-201,!1)}function Lg(e,n,t){const r=new N(n,e);return r[Ph]=n,r[Og]=e,t&&(r[$s]=t),r}let Hh;function Fg(){return Hh}function _n(e){const n=Hh;return Hh=e,n}function Pg(e,n,t){const r=X1(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:8&t?null:void 0!==n?n:void jh()}const gi={},zh="__NG_DI_FLAG__";class zC{injector;constructor(n){this.injector=n}retrieve(n,t){const r=Gs(t)||0;try{return this.injector.get(n,8&r?null:gi,r)}catch(o){if(Th(o))return o;throw o}}}function BC(e,n=0){const t=Ih();if(void 0===t)throw new N(-203,!1);if(null===t)return Pg(e,void 0,n);{const r=function qC(e){return{optional:!!(8&e),host:!!(1&e),self:!!(2&e),skipSelf:!!(4&e)}}(n),o=t.retrieve(e,r);if(Th(o)){if(r.optional)return null;throw o}return o}}function de(e,n=0){return(Fg()||BC)(pe(e),n)}function D(e,n){return de(e,Gs(n))}function Gs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Bh(e){const n=[];for(let t=0;t<e.length;t++){const r=pe(e[t]);if(Array.isArray(r)){if(0===r.length)throw new N(900,!1);let o,i=0;for(let a=0;a<r.length;a++){const s=r[a],c=UC(s);"number"==typeof c?-1===c?o=s.token:i|=c:o=s}n.push(de(o,i))}else n.push(de(r))}return n}function Ws(e,n){return e[zh]=n,e.prototype[zh]=n,e}function UC(e){return e[zh]}function mi(e,n){return e.hasOwnProperty(yi)?e[yi]:null}function xa(e,n){e.forEach(t=>Array.isArray(t)?xa(t,n):n(t))}function jg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function rl(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function il(e,n,t){let r=Zs(e,n);return r>=0?e[1|r]=t:(r=~r,function zg(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function qh(e,n){const t=Zs(e,n);if(t>=0)return e[1|t]}function Zs(e,n){return function GC(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),a=e[i<<t];if(n===a)return i<<t;a>n?o=i:r=i+1}return~(o<<t)}(e,n,1)}const Lr={},Ze=[],ki=new P(""),Bg=new P("",-1),Uh=new P("");class al{get(n,t=gi){if(t===gi){const o=Lg("",-201);throw o.name="\u0275NotFound",o}return t}}function qg(...e){return{\u0275providers:Gh(0,e),\u0275fromNgModule:!0}}function Gh(e,...n){const t=[],r=new Set;let o;const i=a=>{t.push(a)};return xa(n,a=>{const s=a;sl(s,i,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Ug(o,i),t}function Ug(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:o}=e[t];Wh(o,i=>{n(i,r)})}}function sl(e,n,t,r){if(!(e=pe(e)))return!1;let o=null,i=J1(e);const a=!i&&Ie(e);if(i||a){if(a&&!a.standalone)return!1;o=e}else{const c=e.ngModule;if(i=J1(c),!i)return!1;o=c}const s=r.has(o);if(a){if(s)return!1;if(r.add(o),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)sl(l,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!s){let l;r.add(o),xa(i.imports,d=>{sl(d,n,t,r)&&(l||=[],l.push(d))}),void 0!==l&&Ug(l,n)}if(!s){const l=mi(o)||(()=>new o);n({provide:o,useFactory:l,deps:Ze},o),n({provide:Uh,useValue:o,multi:!0},o),n({provide:ki,useValue:()=>de(o),multi:!0},o)}const c=i.providers;if(null!=c&&!s){const l=e;Wh(c,d=>{n(d,l)})}}}return o!==e&&void 0!==e.providers}function Wh(e,n){for(let t of e)Lh(t)&&(t=t.\u0275providers),Array.isArray(t)?Wh(t,n):n(t)}const ZC=re({provide:String,useValue:re});function Zh(e){return null!==e&&"object"==typeof e&&ZC in e}function Jr(e){return"function"==typeof e}const Kh=new P(""),cl={},Zg={};let Yh;function ll(){return void 0===Yh&&(Yh=new al),Yh}class Nt{}class vi extends Nt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,Xh(n,a=>this.processProvider(a)),this.records.set(Bg,Ea(void 0,this)),o.has("environment")&&this.records.set(Nt,Ea(void 0,this));const i=this.records.get(Kh);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Uh,Ze,{self:!0}))}retrieve(n,t){const r=Gs(t)||0;try{return this.get(n,gi,r)}catch(o){if(Th(o))return o;throw o}}destroy(){Ks(this),this._destroyed=!0;const n=j(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(n)}}onDestroy(n){return Ks(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ks(this);const t=So(this),r=_n(void 0);try{return n()}finally{So(t),_n(r)}}get(n,t=gi,r){if(Ks(this),n.hasOwnProperty(Ng))return n[Ng](this);const o=Gs(r),a=So(this),s=_n(void 0);try{if(!(4&o)){let l=this.records.get(n);if(void 0===l){const d=function JC(e){return"function"==typeof e||"object"==typeof e&&"InjectionToken"===e.ngMetadataName}(n)&&X1(n);l=d&&this.injectableDefInScope(d)?Ea(Qh(n),cl):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l,o)}return(2&o?ll():this.parent).get(n,t=8&o&&t===gi?null:t)}catch(c){const l=function jC(e){return e[Ph]}(c);throw-200===l||-201===l?new N(l,null):c}finally{_n(s),So(a)}}resolveInjectorInitializers(){const n=j(null),t=So(this),r=_n(void 0);try{const i=this.get(ki,Ze,{self:!0});for(const a of i)a()}finally{So(t),_n(r),j(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Qn(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){let t=Jr(n=pe(n))?n:pe(n&&n.provide);const r=function YC(e){return Zh(e)?Ea(void 0,e.useValue):Ea(Kg(e),cl)}(n);if(!Jr(n)&&!0===n.multi){let o=this.records.get(t);o||(o=Ea(void 0,cl,!0),o.factory=()=>Bh(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t,r){const o=j(null);try{if(t.value===Zg)throw Vh(Qn(n));return t.value===cl&&(t.value=Zg,t.value=t.factory(void 0,r)),"object"==typeof t.value&&t.value&&function XC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{j(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=pe(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Qh(e){const n=X1(e),t=null!==n?n.factory:mi(e);if(null!==t)return t;if(e instanceof P)throw new N(204,!1);if(e instanceof Function)return function KC(e){if(e.length>0)throw new N(204,!1);const t=function AC(e){return(e?.[el]??null)||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new N(204,!1)}function Kg(e,n,t){let r;if(Jr(e)){const o=pe(e);return mi(o)||Qh(o)}if(Zh(e))r=()=>pe(e.useValue);else if(function Gg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Bh(e.deps||[]));else if(function $g(e){return!(!e||!e.useExisting)}(e))r=(o,i)=>de(pe(e.useExisting),void 0!==i&&8&i?8:void 0);else{const o=pe(e&&(e.useClass||e.provide));if(!function QC(e){return!!e.deps}(e))return mi(o)||Qh(o);r=()=>new o(...Bh(e.deps))}return r}function Ks(e){if(e.destroyed)throw new N(205,!1)}function Ea(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Xh(e,n){for(const t of e)Array.isArray(t)?Xh(t,n):t&&Lh(t)?Xh(t.\u0275providers,n):n(t)}function wn(e,n){let t;e instanceof vi?(Ks(e),t=e):t=new zC(e);const o=So(t),i=_n(void 0);try{return n()}finally{So(o),_n(i)}}function Jh(){return void 0!==Fg()||null!=Ih()}function dt(e){return Array.isArray(e)&&"object"==typeof e[1]}function dn(e){return Array.isArray(e)&&!0===e[1]}function Qg(e){return!!(4&e.flags)}function Fr(e){return e.componentOffset>-1}function Ra(e){return!(1&~e.flags)}function gr(e){return!!e.template}function No(e){return!!(512&e[2])}function no(e){return!(256&~e[2])}function Ht(e){for(;Array.isArray(e);)e=e[0];return e}function Na(e,n){return Ht(n[e])}function Je(e,n){return Ht(n[e.index])}function Oa(e,n){return e.data[n]}function bi(e,n){return e[n]}function un(e,n){const t=n[e];return dt(t)?t:t[0]}function r2(e){return!(128&~e[2])}function nn(e,n){return null==n?null:e[n]}function rm(e){e[17]=0}function om(e){1024&e[2]||(e[2]|=1024,r2(e)&&La(e))}function pl(e){return!!(9216&e[2]||e[24]?.dirty)}function o2(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),pl(e)&&La(e)}function La(e){e[10].changeDetectionScheduler?.notify(0);let n=ro(e);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,r2(n));)n=ro(n)}function fl(e,n){if(no(e))throw new N(911,!1);null===e[21]&&(e[21]=[]),e[21].push(n)}function ro(e){const n=e[3];return dn(n)?n[3]:n}function am(e){return e[7]??=[]}function sm(e){return e.cleanup??=[]}const ce={lFrame:bm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let s2=!1;function lm(){ce.lFrame.elementDepthCount--}function c2(){return ce.bindingsEnabled}function dm(){return null!==ce.skipHydrationRootTNode}function um(e){return ce.skipHydrationRootTNode===e}function hm(){ce.skipHydrationRootTNode=null}function O(){return ce.lFrame.lView}function ie(){return ce.lFrame.tView}function we(e){return ce.lFrame.contextLView=e,e[8]}function be(e){return ce.lFrame.contextLView=null,e}function ue(){let e=pm();for(;null!==e&&64===e.type;)e=e.parent;return e}function pm(){return ce.lFrame.currentTNode}function Qs(){const e=ce.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function oo(e,n){const t=ce.lFrame;t.currentTNode=e,t.isParent=n}function fm(){return ce.lFrame.isParent}function ym(){ce.lFrame.isParent=!1}function km(){return s2}function yl(e){const n=s2;return s2=e,n}function hn(){const e=ce.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Pr(){return ce.lFrame.bindingIndex}function rn(){return ce.lFrame.bindingIndex++}function io(e){const n=ce.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Mm(e){ce.lFrame.inI18n=e}function u9(e,n){const t=ce.lFrame;t.bindingIndex=t.bindingRootIndex=e,l2(n)}function l2(e){ce.lFrame.currentDirectiveIndex=e}function u2(){return ce.lFrame.currentQueryIndex}function gl(e){ce.lFrame.currentQueryIndex=e}function p9(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[5]:null}function _m(e,n,t){if(4&t){let o=n,i=e;for(;!(o=o.parent,null!==o||1&t||(o=p9(i),null===o||(i=i[14],10&o.type))););if(null===o)return!1;n=o,e=i}const r=ce.lFrame=wm();return r.currentTNode=n,r.lView=e,!0}function h2(e){const n=wm(),t=e[1];ce.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function wm(){const e=ce.lFrame,n=null===e?null:e.child;return null===n?bm(e):n}function bm(e){const n={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=n),n}function Cm(){const e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Dm=Cm;function p2(){const e=Cm();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 Bt(){return ce.lFrame.selectedIndex}function Ci(e){ce.lFrame.selectedIndex=e}function mr(){const e=ce.lFrame;return Oa(e.tView,e.selectedIndex)}let xm=!0;function ml(){return xm}function Xs(e){xm=e}function Em(e,n=null,t=null,r){const o=Sm(e,n,t,r);return o.resolveInjectorInitializers(),o}function Sm(e,n=null,t=null,r,o=new Set){const i=[t||Ze,qg(e)];return r=r||("object"==typeof e?void 0:Qn(e)),new vi(i,n||ll(),r||null,o)}class wt{static THROW_IF_NOT_FOUND=gi;static NULL=new al;static create(n,t){if(Array.isArray(n))return Em({name:""},t,n,"");{const r=n.name??"";return Em({name:r},n.parent,n.providers,r)}}static \u0275prov=B({token:wt,providedIn:"any",factory:()=>de(Bg)});static __NG_ELEMENT_ID__=-1}const Et=new P("");let er=(()=>class e{static __NG_ELEMENT_ID__=M9;static __NG_ENV_ID__=t=>t})();class Am extends er{_lView;constructor(n){super(),this._lView=n}get destroyed(){return no(this._lView)}onDestroy(n){const t=this._lView;return fl(t,n),()=>function i2(e,n){if(null===e[21])return;const t=e[21].indexOf(n);-1!==t&&e[21].splice(t,1)}(t,n)}}function M9(){return new Am(O())}const _9=!1,w9=new P("");let Oo=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new On(!1);debugTaskTracker=D(w9,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new We(t=>{t.next(!1),t.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),this.debugTaskTracker?.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.debugTaskTracker?.remove(t),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();const _e=class b9 extends it{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Jh()&&(this.destroyRef=D(er,{optional:!0})??void 0,this.pendingTasks=D(Oo,{optional:!0})??void 0)}emit(n){const t=j(null);try{super.next(n)}finally{j(t)}}subscribe(n,t,r){let o=n,i=t||(()=>null),a=r;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),i=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));const s=super.subscribe({next:o,error:i,complete:a});return n instanceof Jt&&n.add(s),s}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{try{n(t)}finally{void 0!==r&&this.pendingTasks?.remove(r)}})}}};function kl(...e){}function Im(e){let n,t;function r(){e=kl;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function C9(e){return queueMicrotask(()=>e()),()=>{e=kl}}const f2="isAngularZone",vl=f2+"_ID";let D9=0;class De{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new _e(!1);onMicrotaskEmpty=new _e(!1);onStable=new _e(!1);onError=new _e(!1);constructor(n){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=_9}=n;if(typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=i,function S9(e){const n=()=>{!function E9(e){function n(){Im(()=>{e.callbackScheduled=!1,g2(e),e.isCheckStableRunning=!0,y2(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),g2(e))}(e)},t=D9++;e._inner=e._inner.fork({name:"angular",properties:{[f2]:!0,[vl]:t,[vl+t]:!0},onInvokeTask:(r,o,i,a,s,c)=>{if(function I9(e){return Nm(e,"__ignore_ng_zone__")}(c))return r.invokeTask(i,a,s,c);try{return Tm(e),r.invokeTask(i,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),Rm(e)}},onInvoke:(r,o,i,a,s,c,l)=>{try{return Tm(e),r.invoke(i,a,s,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function T9(e){return Nm(e,"__scheduler_tick__")}(c)&&n(),Rm(e)}},onHasTask:(r,o,i,a)=>{r.hasTask(i,a),o===i&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,g2(e),y2(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(r,o,i,a)=>(r.handleError(i,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(f2)}static assertInAngularZone(){if(!De.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(De.isInAngularZone())throw new N(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+o,n,x9,kl,kl);try{return i.runTask(a,t,r)}finally{i.cancelTask(a)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const x9={};function y2(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 g2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Tm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rm(e){e._nesting--,y2(e)}class A9{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new _e;onMicrotaskEmpty=new _e;onStable=new _e;onError=new _e;run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}function Nm(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Js{_console=console;handleError(n){this._console.error("ERROR",n)}}const Vr=new P("",{factory:()=>{const e=D(De),n=D(Nt);let t;return r=>{e.runOutsideAngular(()=>{n.destroyed&&!t?setTimeout(()=>{throw r}):(t??=n.get(Js),t.handleError(r))})}}}),Om={provide:ki,useValue:()=>{D(Js,{optional:!0})},multi:!0};function jr(e,n){const[t,r,o]=$1(e,n?.equal),i=t;return i.set=r,i.update=o,i.asReadonly=m2.bind(i),i}function m2(){const e=this[ve];if(void 0===e.readonlyFn){const n=()=>this();n[ve]=e,e.readonlyFn=n}return e.readonlyFn}let k2=(()=>class e{view;node;constructor(t,r){this.view=t,this.node=r}static __NG_ELEMENT_ID__=N9})();function N9(){return new k2(O(),ue())}class Pa{}const v2=new P("",{factory:()=>!0}),O9=new P("");let Fm=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>new L9})}return e})();class L9{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){const r=this.queues.get(n.zone);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){const t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(const[t,r]of this.queues)n||=null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let t=!1;for(const r of n)r.dirty&&(this.dirtyEffectCount--,t=!0,r.run());return t}}function Oe(e){return function Z1(e){const n=j(null);try{return e()}finally{j(n)}}(e)}function jm(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(r,o)}function H(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function a(c){jm(i,r,o,a,s,"next",c)}function s(c){jm(i,r,o,a,s,"throw",c)}a(void 0)})}}let Hm=null;function Lo(){return Hm}class B9{}let _2=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(U9),providedIn:"platform"})}return e})();const q9=new P("");let U9=(()=>{class e extends _2{_location;_history;_doc=D(Et);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lo().getBaseHref(this._doc)}onPopState(t){const r=Lo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Lo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function w2(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function zm(e){const n=e.search(/#|\?|$/);return"/"===e[n-1]?e.slice(0,n-1)+e.slice(n):e}function ao(e){return e&&"?"!==e[0]?`?${e}`:e}let Fo=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(qm),providedIn:"root"})}return e})();const Bm=new P("");let qm=(()=>{class e extends Fo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??D(Et).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return w2(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+ao(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const a=this.prepareExternalUrl(o+ao(i));this._platformLocation.pushState(t,r,a)}replaceState(t,r,o,i){const a=this.prepareExternalUrl(o+ao(i));this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(de(_2),de(Bm,8))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ec=(()=>{class e{_subject=new it;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function W9(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(zm(Um(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+ao(r))}normalize(t){return e.stripTrailingSlash(function G9(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Um(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ao(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ao(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=ao;static joinWithSlash=w2;static stripTrailingSlash=zm;static \u0275fac=function(r){return new(r||e)(de(Fo))};static \u0275prov=B({token:e,factory:()=>function $9(){return new ec(de(Fo))}(),providedIn:"root"})}return e})();function Um(e){return e.replace(/\/index.html$/,"")}function qt(e){return n=>{if(function Z9(e){return Ee(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function bt(e,n,t,r,o){return new K9(e,n,t,r,o)}class K9 extends ge{constructor(n,t,r,o,i,a){super(n),this.onFinalize=i,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function at(e,n){return qt((t,r)=>{let o=0;t.subscribe(bt(r,i=>{r.next(e.call(n,i,o++))}))})}function so(e){return{toString:e}.toString()}const ja="__parameters__";function za(e,n,t){return so(()=>{const r=function b2(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const a=new o(...i);return s.annotation=a,s;function s(c,l,d){const h=c.hasOwnProperty(ja)?c[ja]:Object.defineProperty(c,ja,{value:[]})[ja];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(a),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Gm=Ws(za("Optional"),8);function Zm(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}class sD{previousValue;currentValue;firstChange;constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}const Pn=(()=>{const e=()=>Km;return e.ngInherit=!0,e})();function Km(e){return e.type.prototype.ngOnChanges&&(e.setInput=lD),cD}function cD(){const e=Qm(this),n=e?.current;if(n){const t=e.previous;if(t===Lr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function lD(e,n,t,r,o){const i=this.declaredInputs[r],a=Qm(e)||function dD(e,n){return e[Ym]=n}(e,{previous:Lr,current:null}),s=a.current||(a.current={}),c=a.previous,l=c[i];s[i]=new sD(l&&l.currentValue,t,c===Lr),Zm(e,n,o,t)}const Ym="__ngSimpleChanges__";function Qm(e){return e[Ym]||null}const Di=[],Ne=function(e,n=null,t){for(let r=0;r<Di.length;r++)(0,Di[r])(e,n,t)};var U=function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e}(U||{});function Xm(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const i=e.data[t].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=i;a&&(e.contentHooks??=[]).push(-t,a),s&&((e.contentHooks??=[]).push(t,s),(e.contentCheckHooks??=[]).push(t,s)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),null!=d&&(e.destroyHooks??=[]).push(t,d)}}function _l(e,n,t){Jm(e,n,3,t)}function wl(e,n,t,r){(3&e[2])===t&&Jm(e,n,t,r)}function D2(e,n){let t=e[2];(3&t)===n&&(t&=16383,t+=1,e[2]=t)}function Jm(e,n,t,r){const i=r??-1,a=n.length-1;let s=0;for(let c=void 0!==r?65535&e[17]:0;c<a;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=r&&s>=r)break}else n[c]<0&&(e[17]+=65536),(s<i||-1==i)&&(yD(e,t,n,c),e[17]=(4294901760&e[17])+c+2),c++}function ek(e,n){Ne(U.LifecycleHookStart,e,n);const t=j(null);try{n.call(e)}finally{j(t),Ne(U.LifecycleHookEnd,e,n)}}function yD(e,n,t,r){const o=t[r]<0,i=t[r+1],s=e[o?-t[r]:t[r]];o?e[2]>>14<e[17]>>16&&(3&e[2])===n&&(e[2]+=16384,ek(s,i)):ek(s,i)}class nc{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,r,o){this.factory=n,this.name=o,this.canSeeViewProviders=t,this.injectImpl=r}}function E2(e){return 3===e||4===e||6===e}function nk(e){return 64===e.charCodeAt(0)}function qa(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?t=o:0===t||rk(e,t,o,0,-1===t||2===t?n[++r]:null)}}return e}function rk(e,n,t,r,o){let i=0,a=e.length;if(-1===n)a=-1;else for(;i<e.length;){const s=e[i++];if("number"==typeof s){if(s===n){a=-1;break}if(s>n){a=i-1;break}}}for(;i<e.length;){const s=e[i];if("number"==typeof s)break;if(s===t)return void(null!==o&&(e[i+1]=o));i++,null!==o&&i++}-1!==a&&(e.splice(a,0,n),i=a+1),e.splice(i++,0,t),null!==o&&e.splice(i++,0,o)}function S2(e){return-1!==e}function rc(e){return 32767&e}function oc(e,n){let t=function vD(e){return e>>16}(e),r=n;for(;t>0;)r=r[14],t--;return r}let A2=!0;function bl(e){const n=A2;return A2=e,n}let MD=0;const Hr={};function Cl(e,n){const t=ak(e,n);if(-1!==t)return t;const r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,I2(r.data,e),I2(n,null),I2(r.blueprint,null));const o=Dl(e,n),i=e.injectorIndex;if(S2(o)){const a=rc(o),s=oc(o,n),c=s[1].data;for(let l=0;l<8;l++)n[i+l]=s[a+l]|c[a+l]}return n[i+8]=o,i}function I2(e,n){e.push(0,0,0,0,0,0,0,0,n)}function ak(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dl(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=pk(o),null===r)return-1;if(t++,o=o[14],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function T2(e,n,t){!function _D(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Us)&&(r=t[Us]),null==r&&(r=t[Us]=MD++);const o=255&r;n.data[e+(o>>5)]|=1<<o}(e,n,t)}function sk(e,n,t){if(8&t||void 0!==e)return e;jh()}function ck(e,n,t,r){if(8&t&&void 0===r&&(r=null),!(3&t)){const o=e[9],i=_n(void 0);try{return o?o.get(n,r,8&t):Pg(n,r,8&t)}finally{_n(i)}}return sk(r,0,t)}function lk(e,n,t,r=0,o){if(null!==e){if(2048&n[2]&&!(2&r)){const a=function xD(e,n,t,r,o){let i=e,a=n;for(;null!==i&&null!==a&&2048&a[2]&&!No(a);){const s=dk(i,a,t,2|r,Hr);if(s!==Hr)return s;let c=i.parent;if(!c){const l=a[20];if(l){const d=l.get(t,Hr,r);if(d!==Hr)return d}c=pk(a),a=a[14]}i=c}return o}(e,n,t,r,Hr);if(a!==Hr)return a}const i=dk(e,n,t,r,Hr);if(i!==Hr)return i}return ck(n,t,r,o)}function dk(e,n,t,r,o){const i=function CD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Us)?e[Us]:void 0;return"number"==typeof n?n>=0?255&n:DD:n}(t);if("function"==typeof i){if(!_m(n,e,r))return 1&r?sk(o,0,r):ck(n,t,r,o);try{let a;if(a=i(r),null!=a||8&r)return a;jh()}finally{Dm()}}else if("number"==typeof i){let a=null,s=ak(e,n),c=-1,l=1&r?n[15][5]:null;for((-1===s||4&r)&&(c=-1===s?Dl(e,n):n[s+8],-1!==c&&hk(r,!1)?(a=n[1],s=rc(c),n=oc(c,n)):s=-1);-1!==s;){const d=n[1];if(uk(i,s,d.data)){const h=bD(s,n,t,a,r,l);if(h!==Hr)return h}c=n[s+8],-1!==c&&hk(r,n[1].data[s+8]===l)&&uk(i,s,n)?(a=d,s=rc(c),n=oc(c,n)):s=-1}}return o}function bD(e,n,t,r,o,i){const a=n[1],s=a.data[e+8],d=xl(s,a,t,null==r?Fr(s)&&A2:r!=a&&!!(3&s.type),1&o&&i===s);return null!==d?ic(n,a,d,s,o):Hr}function xl(e,n,t,r,o){const i=e.providerIndexes,a=n.data,s=1048575&i,c=e.directiveStart,d=i>>20,y=o?s+d:e.directiveEnd;for(let f=r?s:s+d;f<y;f++){const M=a[f];if(f<c&&t===M||f>=c&&M.type===t)return f}if(o){const f=a[c];if(f&&gr(f)&&f.type===t)return c}return null}function ic(e,n,t,r,o){let i=e[t];const a=n.data;if(i instanceof nc){const s=i;if(s.resolving)throw Vh();const c=bl(s.canSeeViewProviders);s.resolving=!0;const h=s.injectImpl?_n(s.injectImpl):null;_m(e,r,0);try{i=e[t]=s.factory(void 0,o,a,e,r),n.firstCreatePass&&t>=r.directiveStart&&function fD(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const a=Km(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,a[t],n)}finally{null!==h&&_n(h),bl(c),s.resolving=!1,Dm()}}return i}function uk(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function hk(e,n){return!(2&e||1&e&&n)}class mt{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return lk(this._tNode,this._lView,n,Gs(r),t)}}function DD(){return new mt(ue(),O())}function St(e){return so(()=>{const n=e.prototype.constructor,t=n[yi]||R2(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[yi]||R2(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function R2(e){return Q1(e)?()=>{const n=R2(pe(e));return n&&n()}:mi(e)}function pk(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[5]:null}function ac(e){return function wD(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o<r;){const i=t[o];if(E2(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof t[o];)o++;else{if(i===n)return t[o+1];o+=2}}}return null}(ue(),e)}function OD(){return Ua(ue(),O())}function Ua(e,n){return new At(Je(e,n))}let At=(()=>class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=OD})();function kk(e){return e instanceof At?e.nativeElement:e}function LD(){return this._results[Symbol.iterator]()}class FD{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new it}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const r=function Xn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function $C(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=n[r];if(t&&(o=t(o),i=t(i)),i!==o)return!1}return!0}(this._results,r,t))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=LD}function sc(e){return!(128&~e.flags)}var Sl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Sl||{});const Al=new Map;let jD=0;function L2(e){Al.delete(e[19])}const P2="__ngContext__";function Cn(e,n){dt(n)?(e[P2]=n[19],function zD(e){Al.set(e[19],e)}(n)):e[P2]=n}function Ak(e){return Tk(e[12])}function Ik(e){return Tk(e[4])}function Tk(e){for(;null!==e&&!dn(e);)e=e[4];return e}let V2;const $a=new P("",{factory:()=>cx}),cx="ng",Vk=new P(""),jk=new P("",{providedIn:"platform",factory:()=>"unknown"}),Hk=new P("",{factory:()=>D(Et).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),yx=new P("",{factory:()=>!1}),vx=new P("");function Ll(e){return!(32&~e.flags)}function fv(e,n){const t=e.contentQueries;if(null!==t){const r=j(null);try{for(let o=0;o<t.length;o+=2){const a=t[o+1];if(-1!==a){const s=e.data[a];gl(t[o]),s.contentQueries(2,n[a],a)}}}finally{j(r)}}}function J2(e,n,t){gl(0);const r=j(null);try{n(e,t)}finally{j(r)}}function e0(e,n,t){if(Qg(n)){const r=j(null);try{const i=n.directiveEnd;for(let a=n.directiveStart;a<i;a++){const s=e.data[a];s.contentQueries&&s.contentQueries(1,t[a],a)}}finally{j(r)}}}var nr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e}(nr||{});let Bl,ql;function Wa(e){return function kv(){if(void 0===Bl&&(Bl=null,yt.trustedTypes))try{Bl=yt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Bl}()?.createHTML(e)||e}function _v(e){return function r0(){if(void 0===ql&&(ql=null,yt.trustedTypes))try{ql=yt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ql}()?.createScriptURL(e)||e}class wv{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ig})`}}function Ho(e){return e instanceof wv?e.changingThisBreaksApplicationSecurity:e}function pc(e,n){const t=function eE(e){return e instanceof wv&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Ig})`)}return t===n}class tE{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Wa(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class nE{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Wa(n),t}}const oE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function o0(e){return(e=String(e)).match(oE)?e:"unsafe:"+e}function co(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function fc(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const Cv=co("area,br,col,hr,img,wbr"),Dv=co("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xv=co("rp,rt"),a0=fc(Cv,fc(Dv,co("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),fc(xv,co("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),fc(xv,Dv)),s0=co("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ev=fc(s0,co("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),co("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"));const fE=/^>|^->|<!--|-->|--!>|<!-$/g,yE=/(<|>)/g;function l0(e,n){return e.createText(n)}function Rv(e,n,t){e.setValue(n,t)}function d0(e,n){return e.createComment(function Tv(e){return e.replace(fE,n=>n.replace(yE,"\u200b$1\u200b"))}(n))}function $l(e,n,t){return e.createElement(n,t)}function Ei(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Nv(e,n,t){e.appendChild(n,t)}function Ov(e,n,t,r,o){null!==r?Ei(e,n,t,r,o):Nv(e,n,t)}function yc(e,n,t,r){e.removeChild(null,n,t,r)}function Fv(e,n,t){const{mergedAttrs:r,classes:o,styles:i}=t;null!==r&&function kD(e,n,t){let r=0;for(;r<t.length;){const o=t[r];if("number"==typeof o){if(0!==o)break;r++;const i=t[r++],a=t[r++],s=t[r++];e.setAttribute(n,a,s,i)}else{const i=o,a=t[++r];nk(i)?e.setProperty(n,i,a):e.setAttribute(n,i,a),r++}}}(e,n,r),null!==o&&function kE(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}(e,n,o),null!==i&&function mE(e,n,t){e.setAttribute(n,"style",t)}(e,n,i)}var Za=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Za||{});function Si(e){const n=gc();return n?n.sanitize(Za.STYLE,e)||"":pc(e,"Style")?Ho(e):he(e)}function Gl(e){const n=gc();return n?n.sanitize(Za.URL,e)||"":pc(e,"URL")?Ho(e):o0(he(e))}function Pv(e){const n=gc();if(n)return _v(n.sanitize(Za.RESOURCE_URL,e)||"");if(pc(e,"ResourceURL"))return _v(Ho(e));throw new N(904,!1)}const CE=new Set(["embed","frame","iframe","media","script"]),DE=new Set(["base","link","script"]);function Vv(e,n,t){return function xE(e,n){return"src"===n&&CE.has(e)||"href"===n&&DE.has(e)||"xlink:href"===n&&"script"===e?Pv:Gl}(n,t)(e)}function gc(){const e=O();return e&&e[10].sanitizer}function zr(e){return e instanceof Function?e():e}function PE(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}const qv="ng-template";function VE(e,n,t,r){let o=0;if(r){for(;o<n.length&&"string"==typeof n[o];o+=2)if("class"===n[o]&&-1!==PE(n[o+1].toLowerCase(),t,0))return!0}else if(u0(e))return!1;if(o=n.indexOf(1,o),o>-1){let i;for(;++o<n.length&&"string"==typeof(i=n[o]);)if(i.toLowerCase()===t)return!0}return!1}function u0(e){return 4===e.type&&e.value!==qv}function jE(e,n,t){return n===(4!==e.type||t?e.value:qv)}function HE(e,n,t){let r=4;const o=e.attrs,i=null!==o?function qE(e){for(let n=0;n<e.length;n++)if(E2(e[n]))return n;return e.length}(o):0;let a=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!a)if(4&r){if(r=2|1&r,""!==c&&!jE(e,c,t)||""===c&&1===n.length){if(kr(r))return!1;a=!0}}else if(8&r){if(null===o||!VE(e,o,c,t)){if(kr(r))return!1;a=!0}}else{const l=n[++s],d=zE(c,o,u0(e),t);if(-1===d){if(kr(r))return!1;a=!0;continue}if(""!==l){let h;if(h=d>i?"":o[d+1].toLowerCase(),2&r&&l!==h){if(kr(r))return!1;a=!0}}}}else{if(!a&&!kr(r)&&!kr(c))return!1;if(a&&kr(c))continue;a=!1,r=c|1&r}}return kr(r)||a}function kr(e){return!(1&e)}function zE(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o<n.length;){const a=n[o];if(a===e)return o;if(3===a||6===a)i=!0;else{if(1===a||2===a){let s=n[++o];for(;"string"==typeof s;)s=n[++o];continue}if(4===a)break;if(0===a){o+=4;continue}}o+=i?1:2}return-1}return function UE(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function Uv(e,n,t=!1){for(let r=0;r<n.length;r++)if(HE(e,n[r],t))return!0;return!1}function $E(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function $v(e,n){return e?":not("+n.trim()+")":n}function GE(e){let n=e[0],t=1,r=2,o="",i=!1;for(;t<e.length;){let a=e[t];if("string"==typeof a)if(2&r){const s=e[++t];o+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?o+="."+a:4&r&&(o+=" "+a);else""!==o&&!kr(a)&&(n+=$v(i,o),o=""),r=a,i=i||!kr(r);t++}return""!==o&&(n+=$v(i,o)),n}const Le={};function h0(e,n,t,r,o,i,a,s,c,l,d){const h=27+r,y=h+o,f=function KE(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:Le);return t}(h,y),M="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:s,declTNode:n,data:f.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:M,incompleteFirstPass:!1,ssrId:d}}function Zl(e,n,t,r,o,i,a,s,c,l,d){const h=n.blueprint.slice();return h[0]=o,h[2]=1228|r,(null!==l||e&&2048&e[2])&&(h[2]|=2048),rm(h),h[3]=h[14]=e,h[8]=t,h[10]=a||e&&e[10],h[11]=s||e&&e[11],h[9]=c||e&&e[9]||null,h[5]=i,h[19]=function HD(){return jD++}(),h[6]=d,h[20]=l,h[15]=2==n.type?e[15]:h,h}function p0(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function mc(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;i<t;i++)n.push(r),e.blueprint.push(r),e.data.push(null);return o}function f0(e,n){return e[12]?e[13][4]=n:e[12]=n,e[13]=n,n}function w(e=1){Wv(ie(),O(),Bt()+e,!1)}function Wv(e,n,t,r){if(!r)if(3&~n[2]){const i=e.preOrderHooks;null!==i&&wl(n,i,0,t)}else{const i=e.preOrderCheckHooks;null!==i&&_l(n,i,t)}Ci(t)}var Kl=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Kl||{});function Ai(e,n,t,r){const o=j(null);try{const[i,a,s]=e.inputs[t];let c=null;0!==(a&Kl.SignalBased)&&(c=n[i][ve]),null!==c&&void 0!==c.transformFn?r=c.transformFn(r):null!==s&&(r=s.call(n,r)),null!==e.setInput?e.setInput(n,c,r,t,i):Zm(n,c,i,r)}finally{j(o)}}var zo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(zo||{});let y0;function g0(e,n){return y0(e,n)}const Ii=new Set;var m0=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(m0||{});const kc=new P(""),Qv=new Set;function Ut(e){Qv.has(e)||(Qv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}let Xv=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();const Jv=[0,1,2,3];let nS=(()=>{class e{ngZone=D(De);scheduler=D(Pa);errorHandler=D(Js,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){D(kc,{optional:!0})}execute(){const t=this.sequences.size>0;t&&Ne(U.AfterRenderHooksStart),this.executing=!0;for(const r of Jv)for(const o of this.sequences)if(!o.erroredOrDestroyed&&o.hooks[r])try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,o.hooks[r])(o.pipelinedValue),o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(const r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(const r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),t&&Ne(U.AfterRenderHooksEnd)}register(t){const{view:r}=t;void 0!==r?((r[25]??=[]).push(t),La(r),r[2]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,r){return r?r.run(m0.AFTER_NEXT_RENDER,t):t()}static \u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();class e4{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,r,o,i,a=null){this.impl=n,this.hooks=t,this.view=r,this.once=o,this.snapshot=a,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const n=this.view?.[25];n&&(this.view[25]=n.filter(t=>t!==this))}}function Ti(e,n){const t=n?.injector??D(wt);return Ut("NgAfterNextRender"),n4(e,t,n,!0)}function n4(e,n,t,r){const o=n.get(Xv);o.impl??=n.get(nS);const i=n.get(kc,null,{optional:!0}),a=!0!==t?.manualCleanup?n.get(er):null,s=n.get(k2,null,{optional:!0}),c=new e4(o.impl,function rS(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e),s?.view,r,a,i?.snapshot(null));return o.impl.register(c),c}const Ql=new P("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:D(Nt)})});function r4(e,n,t){const r=e.get(Ql);if(Array.isArray(n))for(const o of n)r.queue.add(o),t?.detachedLeaveAnimationFns?.push(o);else r.queue.add(n),t?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(e)}function o4(e,n,t,r){const o=e?.[26]?.enter;null!==n&&o&&o.has(t.index)&&function k0(e,n){for(const[t,r]of n)r4(e,r.animateFns)}(r,o)}function Qa(e,n,t,r,o,i,a,s){if(null!=o){let c,l=!1;dn(o)?c=o:dt(o)&&(l=!0,o=o[0]);const d=Ht(o);0===e&&null!==r?(o4(s,r,i,t),null==a?Nv(n,r,d):Ei(n,r,d,a||null,!0)):1===e&&null!==r?(o4(s,r,i,t),Ei(n,r,d,a||null,!0)):2===e?s4(s,i,t,h=>{yc(n,d,l,h)}):3===e&&s4(s,i,t,()=>{n.destroyNode(d)}),null!=c&&function hS(e,n,t,r,o,i,a){const s=r[7];s!==Ht(r)&&Qa(n,e,t,i,s,o,a);for(let l=10;l<r.length;l++){const d=r[l];ed(d[1],d,e,n,i,s)}}(n,e,t,c,i,r,a)}}function a4(e,n){n[10].changeDetectionScheduler?.notify(9),ed(e,n,n[11],2,null,null)}function v0(e,n){const t=e[9],r=t.indexOf(n);t.splice(r,1)}function vc(e,n){if(no(n))return;const t=n[11];t.destroyNode&&ed(e,n,t,3,null,null),function sS(e){let n=e[12];if(!n)return M0(e[1],e);for(;n;){let t=null;if(dt(n))t=n[12];else{const r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)dt(n)&&M0(n[1],n),n=n[3];null===n&&(n=e),dt(n)&&M0(n[1],n),t=n&&n[4]}n=t}}(n)}function M0(e,n){if(no(n))return;const t=j(null);try{n[2]&=-129,n[2]|=256,n[24]&&Co(n[24]),function dS(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const o=n[t[r]];if(!(o instanceof nc)){const i=t[r+1];if(Array.isArray(i))for(let a=0;a<i.length;a+=2){const s=o[i[a]],c=i[a+1];Ne(U.LifecycleHookStart,s,c);try{c.call(s)}finally{Ne(U.LifecycleHookEnd,s,c)}}else{Ne(U.LifecycleHookStart,o,i);try{i.call(o)}finally{Ne(U.LifecycleHookEnd,o,i)}}}}}(e,n),function lS(e,n){const t=e.cleanup,r=n[7];if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const s=t[a+3];s>=0?r[s]():r[-s].unsubscribe(),a+=2}else t[a].call(r[t[a+1]]);null!==r&&(n[7]=null);const o=n[21];if(null!==o){n[21]=null;for(let a=0;a<o.length;a++)(0,o[a])()}const i=n[23];if(null!==i){n[23]=null;for(const a of i)a.destroy()}}(e,n),1===n[1].type&&n[11].destroy();const r=n[16];if(null!==r&&dn(n[3])){r!==n[3]&&v0(r,n);const o=n[18];null!==o&&o.detachView(e)}L2(n)}finally{j(t)}}function s4(e,n,t,r){const o=e?.[26];if(null==o||null==o.leave||!o.leave.has(n.index))return r(!1);e&&Ii.add(e[19]),r4(t,()=>{if(o.leave&&o.leave.has(n.index)){const a=o.leave.get(n.index),s=[];if(a){for(let c=0;c<a.animateFns.length;c++){const l=a.animateFns[c],{promise:d}=l();s.push(d)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(s),function cS(e,n){const t=e[26]?.running;t?t.then(()=>{e[26].running=void 0,Ii.delete(e[19]),n(!0)}):n(!1)}(e,r)}else e&&Ii.delete(e[19]),r(!1)},o)}function _0(e,n,t){return c4(e,n.parent,t)}function c4(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[0];if(Fr(r)){const{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===nr.None||o===nr.Emulated)return null}return Je(r,t)}function l4(e,n,t){return u4(e,n,t)}function d4(e,n,t){return 40&e.type?Je(e,t):null}let w0,u4=d4;function h4(e,n){u4=e,w0=n}function b0(e,n,t,r){const o=_0(e,r,n),i=n[11],s=l4(r.parent||n[5],r,n);if(null!=o)if(Array.isArray(t))for(let c=0;c<t.length;c++)Ov(i,o,t[c],s,!1);else Ov(i,o,t,s,!1);void 0!==w0&&w0(i,r,n,t,o)}function Ri(e,n){if(null!==n){const t=n.type;if(3&t)return Je(n,e);if(4&t)return Jl(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return Ri(e,r);{const o=e[n.index];return dn(o)?Jl(-1,o):Ht(o)}}if(128&t)return Ri(e,n.next);if(32&t)return g0(n,e)()||Ht(e[n.index]);{const r=p4(e,n);return null!==r?Array.isArray(r)?r[0]:Ri(ro(e[15]),r):Ri(e,n.next)}}return null}function p4(e,n){return null!==n?e[15][5].projection[n.projection]:null}function Jl(e,n){const t=10+e+1;if(t<n.length){const r=n[t],o=r[1].firstChild;if(null!==o)return Ri(r,o)}return n[7]}function C0(e,n,t,r,o,i,a){for(;null!=t;){const s=r[9];if(128===t.type){t=t.next;continue}const c=r[t.index],l=t.type;if(a&&0===n&&(c&&Cn(Ht(c),r),t.flags|=2),!Ll(t))if(8&l)C0(e,n,t.child,r,o,i,!1),Qa(n,e,s,o,c,t,i,r);else if(32&l){const d=g0(t,r);let h;for(;h=d();)Qa(n,e,s,o,h,t,i,r);Qa(n,e,s,o,c,t,i,r)}else 16&l?f4(e,n,r,t,o,i):Qa(n,e,s,o,c,t,i,r);t=a?t.projectionNext:t.next}}function ed(e,n,t,r,o,i){C0(t,r,e.firstChild,n,o,i,!1)}function f4(e,n,t,r,o,i){const a=t[15],c=a[5].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Qa(n,e,t[9],o,c[l],r,i,t);else{let l=c;const d=a[3];sc(r)&&(l.flags|=128),C0(e,n,l,d,o,i,!0)}}function y4(e,n,t,r,o){const i=Bt(),a=2&r;try{Ci(-1),a&&n.length>27&&Wv(e,n,27,!1),Ne(a?U.TemplateUpdateStart:U.TemplateCreateStart,o,t),t(r,o)}finally{Ci(i),Ne(a?U.TemplateUpdateEnd:U.TemplateCreateEnd,o,t)}}function td(e,n,t){(function kS(e,n,t){const r=t.directiveStart,o=t.directiveEnd;Fr(t)&&function YE(e,n,t){const r=Je(n,e),o=function Gv(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=h0(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}(t),i=e[10].rendererFactory,a=f0(e,Zl(e,o,null,p0(t),r,n,null,i.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||Cl(t,n);const i=t.initialInputs;for(let a=r;a<o;a++){const s=e.data[a],c=ic(n,e,a,t);Cn(c,n),null!==i&&wS(0,a-r,c,s,0,i),gr(s)&&(un(t.index,n)[8]=ic(n,e,a,t))}})(e,n,t),!(64&~t.flags)&&function vS(e,n,t){const r=t.directiveStart,o=t.directiveEnd,i=t.index,a=function h9(){return ce.lFrame.currentDirectiveIndex}();try{Ci(i);for(let s=r;s<o;s++){const c=e.data[s],l=n[s];l2(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&MS(c,l)}}finally{Ci(-1),l2(a)}}(e,n,t)}function Xa(e,n,t=Je){const r=n.localNames;if(null!==r){let o=n.index+1;for(let i=0;i<r.length;i+=2){const a=r[i+1],s=-1===a?t(n,e):e[a];e[o++]=s}}}let g4=()=>null;function nd(e,n,t,r,o,i){ad(e,n[1],n,t,r)?Fr(e)&&function m4(e,n){const t=un(n,e);16&t[2]||(t[2]|=64)}(n,e.index):(3&e.type&&(t=function mS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(t)),D0(e,n,t,r,o,i))}function D0(e,n,t,r,o,i){if(3&e.type){const a=Je(e,n);r=null!=i?i(r,e.value||"",t):r,o.setProperty(a,t,r)}}function MS(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function x0(e,n){const t=e.directiveRegistry;let r=null;if(t)for(let o=0;o<t.length;o++){const i=t[o];Uv(n,i.selectors,!1)&&(r??=[],gr(i)?r.unshift(i):r.push(i))}return r}function rd(e,n,t,r,o,i,a){if(null==i)e.removeAttribute(n,o,t);else{const s=null==a?he(i):a(i,r||"",o);e.setAttribute(n,o,s,t)}}function wS(e,n,t,r,o,i){const a=i[n];if(null!==a)for(let s=0;s<a.length;s+=2)Ai(r,t,a[s],a[s+1])}function od(e,n,t,r,o){const i=27+t,a=n[1],s=o(a,n,e,r,t);n[i]=s,oo(e,!0);const c=2===e.type;return c?(Fv(n[11],s,e),(0===function a9(){return ce.lFrame.elementDepthCount}()||Ra(e))&&Cn(s,n),function s9(){ce.lFrame.elementDepthCount++}()):Cn(s,n),ml()&&(!c||!Ll(e))&&b0(a,n,s,e),e}function id(e){let n=e;return fm()?ym():(n=n.parent,oo(n,!1)),n}function ad(e,n,t,r,o){const i=e.inputs?.[r],a=e.hostDirectiveInputs?.[r];let s=!1;if(a)for(let c=0;c<a.length;c+=2){const l=a[c];Ai(n.data[l],t[l],a[c+1],o),s=!0}if(i)for(const c of i)Ai(n.data[c],t[c],r,o),s=!0;return s}function CS(e,n){const t=un(n,e),r=t[1];!function DS(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const o=t[0];null!==o&&null===t[6]&&(t[6]=null),Ne(U.ComponentStart);try{sd(r,t,t[8])}finally{Ne(U.ComponentEnd,t[8])}}function sd(e,n,t){h2(n);try{const r=e.viewQuery;null!==r&&J2(1,r,t);const o=e.template;null!==o&&y4(e,n,o,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[18]?.finishViewCreation(e),e.staticContentQueries&&fv(e,n),e.staticViewQueries&&J2(2,e.viewQuery,t);const i=e.components;null!==i&&function xS(e,n){for(let t=0;t<n.length;t++)CS(e,n[t])}(n,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[2]&=-5,p2()}}function Ja(e,n,t,r){const o=j(null);try{const i=n.tView,c=Zl(e,i,t,4096&e[2]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[16]=e[n.index];const d=e[18];return null!==d&&(c[18]=d.createEmbeddedView(i)),sd(i,c,t),c}finally{j(o)}}function Ni(e,n){return!n||null===n.firstChild||sc(e)}function Mc(e,n,t,r,o=!1){for(;null!==t;){if(128===t.type){t=o?t.projectionNext:t.next;continue}const i=n[t.index];null!==i&&r.push(Ht(i)),dn(i)&&ES(i,r);const a=t.type;if(8&a)Mc(e,n,t.child,r);else if(32&a){const s=g0(t,n);let c;for(;c=s();)r.push(c)}else if(16&a){const s=p4(n,t);if(Array.isArray(s))r.push(...s);else{const c=ro(n[15]);Mc(c[1],c,s,r,!0)}}t=o?t.projectionNext:t.next}return r}function ES(e,n){for(let t=10;t<e.length;t++){const r=e[t],o=r[1].firstChild;null!==o&&Mc(r[1],r,o,n)}e[7]!==e[0]&&n.push(e[7])}function M4(e){if(null!==e[25]){for(const n of e[25])n.impl.addSequence(n);e[25].length=0}}let _4=[];const TS={...Be,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{La(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},NS={...Be,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=ro(e.lView);for(;n&&!w4(n[1]);)n=ro(n);n&&om(n)},consumerOnSignalRead(){this.lView[24]=this}};function w4(e){return 2!==e.type}function b4(e){if(null===e[23])return;let n=!0;for(;n;){let t=!1;for(const r of e[23])r.dirty&&(t=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=t&&!!(8192&e[2])}}function cd(e,n=0){const r=e[10].rendererFactory;r.begin?.();try{!function LS(e,n){const t=km();try{yl(!0),S0(e,n);let r=0;for(;pl(e);){if(100===r)throw new N(103,!1);r++,S0(e,1)}}finally{yl(t)}}(e,n)}finally{r.end?.()}}function C4(e,n,t,r){if(no(n))return;const o=n[2];h2(n);let s=!0,c=null,l=null;w4(e)?(l=function SS(e){return e[24]??function AS(e){const n=_4.pop()??Object.create(TS);return n.lView=e,n}(e)}(n),c=Pe(l)):null===function Ge(){return X}()?(s=!1,l=function RS(e){const n=e[24]??Object.create(NS);return n.lView=e,n}(n),c=Pe(l)):n[24]&&(Co(n[24]),n[24]=null);try{rm(n),function vm(e){return ce.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&y4(e,n,t,2,r);const d=!(3&~o);if(d){const f=e.preOrderCheckHooks;null!==f&&_l(n,f,null)}else{const f=e.preOrderHooks;null!==f&&wl(n,f,0,null),D2(n,0)}if(function FS(e){for(let n=Ak(e);null!==n;n=Ik(n)){if(!(2&n[2]))continue;const t=n[9];for(let r=0;r<t.length;r++)om(t[r])}}(n),b4(n),D4(n,0),null!==e.contentQueries&&fv(e,n),d){const f=e.contentCheckHooks;null!==f&&_l(n,f)}else{const f=e.contentHooks;null!==f&&wl(n,f,1),D2(n,1)}!function VS(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const o=t[r];if(o<0)Ci(~o);else{const i=o,a=t[++r],s=t[++r];u9(a,i);const c=n[i];Ne(U.HostBindingsUpdateStart,c);try{s(2,c)}finally{Ne(U.HostBindingsUpdateEnd,c)}}}}finally{Ci(-1)}}(e,n);const h=e.components;null!==h&&E4(n,h,0);const y=e.viewQuery;if(null!==y&&J2(2,y,r),d){const f=e.viewCheckHooks;null!==f&&_l(n,f)}else{const f=e.viewHooks;null!==f&&wl(n,f,2),D2(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[22]){for(const f of n[22])f();n[22]=null}M4(n),n[2]&=-73}catch(d){throw La(n),d}finally{null!==l&&(Mn(l,c),s&&function IS(e){e.lView[24]!==e&&(e.lView=null,_4.push(e))}(l)),p2()}}function D4(e,n){for(let t=Ak(e);null!==t;t=Ik(t))for(let r=10;r<t.length;r++)x4(t[r],n)}function PS(e,n,t){Ne(U.ComponentStart);const r=un(n,e);try{x4(r,t)}finally{Ne(U.ComponentEnd,r[8])}}function x4(e,n){r2(e)&&S0(e,n)}function S0(e,n){const r=e[1],o=e[2],i=e[24];let a=!!(0===n&&16&o);if(a||=!!(64&o&&0===n),a||=!!(1024&o),a||=!(!i?.dirty||!Kn(i)),a||=!1,i&&(i.dirty=!1),e[2]&=-9217,a)C4(r,e,r.template,e[8]);else if(8192&o){const s=j(null);try{b4(e),D4(e,1);const c=r.components;null!==c&&E4(e,c,1),M4(e)}finally{j(s)}}}function E4(e,n,t){for(let r=0;r<n.length;r++)PS(e,n[r],t)}function es(e,n){const t=km()?64:1088;for(e[10].changeDetectionScheduler?.notify(n);e;){e[2]|=t;const r=ro(e);if(No(e)&&!r)return e;e=r}return null}function S4(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function ts(e,n,t,r=!0){const o=n[1];if(function jS(e,n,t,r){const o=10+r,i=t.length;r>0&&(t[o-1][4]=n),r<i-10?(n[4]=t[o],jg(t,10+r,n)):(t.push(n),n[4]=null),n[3]=t;const a=n[16];null!==a&&t!==a&&I4(a,n);const s=n[18];null!==s&&s.insertView(e),o2(n),n[2]|=128}(o,n,e,t),r){const a=Jl(t,e),s=n[11],c=s.parentNode(e[7]);null!==c&&function aS(e,n,t,r,o,i){r[0]=o,r[5]=n,ed(e,r,t,1,o,i)}(o,e[5],s,n,c,a)}const i=n[6];null!==i&&null!==i.firstChild&&(i.firstChild=null)}function _c(e,n){if(e.length<=10)return;const t=10+n,r=e[t];if(r){const o=r[16];null!==o&&o!==e&&v0(o,r),n>0&&(e[t-1][4]=r[4]);const i=rl(e,10+n);!function i4(e,n){a4(e,n),n[0]=null,n[5]=null}(r[1],r);const a=i[18];null!==a&&a.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function I4(e,n){const t=e[9],r=n[3];(dt(r)||n[15]!==r[3][15])&&(e[2]|=2),null===t?e[9]=[n]:t.push(n)}class wc{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const n=this._lView,t=n[1];return Mc(t,n,t.firstChild,[])}constructor(n,t){this._lView=n,this._cdRefInjectingView=t}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return no(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(dn(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(_c(n,r),rl(t,r))}this._attachedToViewContainer=!1}vc(this._lView[1],this._lView)}onDestroy(n){fl(this._lView,n)}markForCheck(){es(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){o2(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,cd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=No(this._lView),t=this._lView[16];null!==t&&!n&&v0(t,this._lView),a4(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n;const t=No(this._lView),r=this._lView[16];null!==r&&!t&&I4(r,this._lView),o2(this._lView)}}let rr=(()=>class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=HS;constructor(t,r,o){this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const i=Ja(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new wc(i)}})();function HS(){return ld(ue(),O())}function ld(e,n){return 4&e.type?new rr(n,e,Ua(e,n)):null}function N4(e,n,t){const r=n.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?d4(e,0,t):Ht(t[o])}function O4(e,n,t,r,o){const i=n.insertBeforeIndex;if(Array.isArray(i)){let a=r,s=null;if(3&n.type||(s=a,a=o),null!==a&&-1===n.componentOffset)for(let c=1;c<i.length;c++)Ei(e,a,t[i[c]],s,!1)}}function Oi(e,n,t,r,o){let i=e.data[n];if(null===i)i=N0(e,n,t,r,o),function d9(){return ce.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const a=Qs();i.injectorIndex=null===a?-1:a.injectorIndex}return oo(i,!0),i}function N0(e,n,t,r,o){const i=pm(),a=fm(),c=e.data[n]=function KS(e,n,t,r,o,i){let a=n?n.injectorIndex:-1,s=0;return dm()&&(s|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?i:i&&i.parent,t,n,r,o);return function ZS(e,n,t,r){null===e.firstChild&&(e.firstChild=n),null!==t&&(r?null==t.child&&null!==n.parent&&(t.child=n):null===t.next&&(t.next=n,n.prev=t))}(e,c,i,a),c}function L4(e,n){if(e.push(n),e.length>1)for(let t=e.length-2;t>=0;t--){const r=e[t];F4(r)||YS(r,n)&&null===QS(r)&&XS(r,n.index)}}function F4(e){return!(64&e.type)}function YS(e,n){return F4(n)||e.index>n.index}function QS(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function XS(e,n){const t=e.insertBeforeIndex;Array.isArray(t)?t[0]=n:(h4(N4,O4),e.insertBeforeIndex=n)}function xc(e,n){const t=e.data[n];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function tA(e,n,t){const r=N0(e,t,64,null,null);return L4(n,r),r}function ud(e,n){const t=n[e.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function P4(e){return e>>>17}function V4(e){return(131070&e)>>>1}function O0(e,n,t){e.index=0;const r=ud(n,t);e.removes=null!==r?n.remove[r]:Ze}function hd(e){if(e.index<e.removes.length){const n=e.removes[e.index++];return n>0?e.lView[n]:(e.stack.push(e.index,e.removes),O0(e,e.lView[1].data[~n],e.lView),hd(e))}return 0===e.stack.length?(e.lView=void 0,null):(e.removes=e.stack.pop(),e.index=e.stack.pop(),hd(e))}function rA(){const e={stack:[],index:-1};return function n(t,r){for(e.lView=r;e.stack.length;)e.stack.pop();return O0(e,t.value,r),hd.bind(null,e)}}let TA=class{},t5=class{};class RA{resolveComponentFactory(n){throw new N(917,!1)}}let md=class{static NULL=new RA};class H0{}let Br=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function NA(){const e=O(),t=un(ue().index,e);return(dt(t)?t:e)[11]}()})(),OA=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>null})}return e})();const B0={};class rs{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){const o=this.injector.get(n,B0,r);return o!==B0||t===B0?o:this.parentInjector.get(n,t,r)}}function vd(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let a=0;a<n.length;a++){const s=n[a];"number"==typeof s?i=s:1==i?o=Rh(o,s):2==i&&(r=Rh(r,s+": "+n[++a]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=o:e.classesWithoutHost=o}function T(e,n=0){const t=O();return null===t?de(e,n):lk(ue(),t,pe(e),n)}function o5(e,n,t,r,o){const i=null===r?null:{"":-1},a=o(e,t);if(null!==a){let s=a,c=null,l=null;for(const d of a)if(null!==d.resolveHostDirectives){[s,c,l]=d.resolveHostDirectives(a);break}!function HA(e,n,t,r,o,i,a){const s=r.length;let c=null;for(let y=0;y<s;y++){const f=r[y];null===c&&gr(f)&&(c=f,jA(e,t,y)),T2(Cl(t,n),e,f.type)}(function GA(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n})(t,e.data.length,s),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let y=0;y<s;y++){const f=r[y];f.providersResolver&&f.providersResolver(f)}let l=!1,d=!1,h=mc(e,n,s,null);s>0&&(t.directiveToIndex=new Map);for(let y=0;y<s;y++){const f=r[y];if(t.mergedAttrs=qa(t.mergedAttrs,f.hostAttrs),BA(e,t,n,h,f),$A(h,f,o),null!==a&&a.has(f)){const[b,x]=a.get(f);t.directiveToIndex.set(f.type,[h,b+t.directiveStart,x+t.directiveStart])}else(null===i||!i.has(f))&&t.directiveToIndex.set(f.type,h);null!==f.contentQueries&&(t.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=64);const M=f.type.prototype;!l&&(M.ngOnChanges||M.ngOnInit||M.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),l=!0),!d&&(M.ngOnChanges||M.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),d=!0),h++}!function zA(e,n,t){for(let r=n.directiveStart;r<n.directiveEnd;r++){const o=e.data[r];if(null!==t&&t.has(o)){const i=t.get(o);a5(0,n,i,r),a5(1,n,i,r),c5(n,r,!0)}else i5(0,n,o,r),i5(1,n,o,r),c5(n,r,!1)}}(e,t,i)}(e,n,t,s,i,c,l)}null!==i&&null!==r&&function VA(e,n,t){const r=e.localNames=[];for(let o=0;o<n.length;o+=2){const i=t[n[o+1]];if(null==i)throw new N(-301,!1);r.push(n[o],i)}}(t,r,i)}function jA(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function i5(e,n,t,r){const o=0===e?t.inputs:t.outputs;for(const i in o)if(o.hasOwnProperty(i)){let a;a=0===e?n.inputs??={}:n.outputs??={},a[i]??=[],a[i].push(r),s5(n,i)}}function a5(e,n,t,r){const o=0===e?t.inputs:t.outputs;for(const i in o)if(o.hasOwnProperty(i)){const a=o[i];let s;s=0===e?n.hostDirectiveInputs??={}:n.hostDirectiveOutputs??={},s[a]??=[],s[a].push(r,i),s5(n,a)}}function s5(e,n){"class"===n?e.flags|=8:"style"===n&&(e.flags|=16)}function c5(e,n,t){const{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(null===r||!t&&null===o||t&&null===i||u0(e))return e.initialInputs??=[],void e.initialInputs.push(null);let a=null,s=0;for(;s<r.length;){const c=r[s];if(0!==c)if(5!==c){if("number"==typeof c)break;if(!t&&o.hasOwnProperty(c)){const l=o[c];for(const d of l)if(d===n){a??=[],a.push(c,r[s+1]);break}}else if(t&&i.hasOwnProperty(c)){const l=i[c];for(let d=0;d<l.length;d+=2)if(l[d]===n){a??=[],a.push(l[d+1],r[s+1]);break}}s+=2}else s+=2;else s+=4}e.initialInputs??=[],e.initialInputs.push(a)}function BA(e,n,t,r,o){e.data[r]=o;const i=o.factory||(o.factory=mi(o.type)),a=new nc(i,gr(o),T,null);e.blueprint[r]=a,t[r]=a,function qA(e,n,t,r,o){const i=o.hostBindings;if(i){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const s=~n.index;(function UA(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=s&&a.push(s),a.push(t,r,i)}}(e,n,r,mc(e,t,o.hostVars,Le),o)}function $A(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;gr(n)&&(t[""]=e)}}function q0(e,n,t,r,o,i,a,s){const c=n[1],l=c.consts,h=Oi(c,e,t,r,nn(l,a));return i&&o5(c,n,h,nn(l,s),o),h.mergedAttrs=qa(h.mergedAttrs,h.attrs),null!==h.attrs&&vd(h,h.attrs,!1),null!==h.mergedAttrs&&vd(h,h.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,h),h}function U0(e,n){Xm(e,n),Qg(n)&&e.queries.elementEnd(n)}function l5(e,n,t,r,o,i){const a=n.consts,c=Oi(n,e,t,r,nn(a,o));if(c.mergedAttrs=qa(c.mergedAttrs,c.attrs),null!=i){const l=nn(a,i);c.localNames=[];for(let d=0;d<l.length;d+=2)c.localNames.push(l[d],-1)}return null!==c.attrs&&vd(c,c.attrs,!1),null!==c.mergedAttrs&&vd(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}function Md(e){return!!function $0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function qr(e,n,t){return e[n]=t}function Ke(e,n,t){return t!==Le&&(!Object.is(e[n],t)&&(e[n]=t,!0))}function Pi(e,n,t,r){const o=Ke(e,n,t);return Ke(e,n+1,r)||o}function lo(e,n,t){return function r(o){es(Fr(e)?un(e.index,n):n,5);const a=n[8];let s=u5(n,a,t,o),c=r.__ngNextListenerFn__;for(;c;)s=u5(n,a,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function u5(e,n,t,r){const o=j(null);try{return Ne(U.OutputStart,n,t),!1!==t(r)}catch(i){return function E0(e,n){const t=e[9];if(!t)return;let r;try{r=t.get(Vr,null)}catch{r=null}r?.(n)}(e,i),!1}finally{Ne(U.OutputEnd,n,t),j(o)}}function wd(e,n,t,r,o,i,a,s){const c=Ra(e);let l=!1,d=null;if(!r&&c&&(d=function QA(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const a=o[i];if(a===t&&o[i+1]===r){const s=n[7],c=o[i+2];return s&&s.length>c?s[c]:null}"string"==typeof a&&(i+=2)}return null}(n,t,i,e.index)),null!==d)(d.__ngLastListenerFn__||d).__ngNextListenerFn__=a,d.__ngLastListenerFn__=a,l=!0;else{const h=Je(e,t),y=r?r(h):h,f=o.listen(y,i,s);(function YA(e){return e.startsWith("animation")||e.startsWith("transition")})(i)||h5(r?b=>r(Ht(b[e.index])):e.index,n,t,i,s,f,!1)}return l}function h5(e,n,t,r,o,i,a){const s=n.firstCreatePass?sm(n):null,c=am(t),l=c.length;c.push(o,i),s&&s.push(r,e,l,(l+1)*(a?-1:1))}function os(e,n,t,r,o,i){const s=n[1],h=n[t][s.data[t].outputs[r]].subscribe(i);h5(e.index,s,n,o,i,h,!0)}const uo=Symbol("BINDING");class y5 extends md{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ie(n);return new Nc(t,this.ngModule)}}class Nc extends t5{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function iI(e){return Object.keys(e).map(n=>{const[t,r,o]=e[n],i={propName:t,templateName:n,isSignal:0!==(r&Kl.SignalBased)};return o&&(i.transform=o),i})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function aI(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function WE(e){return e.map(GE).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,r,o,i,a){Ne(U.DynamicComponentStart);const s=j(null);try{const c=this.componentDef,l=function uI(e,n,t,r){const o=e?["ng-version","21.1.2"]:function ZE(e){const n=[],t=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&n.push(i,e[++r]):8===o&&t.push(i);else{if(!kr(o))break;o=i}r++}return t.length&&n.push(1,...t),n}(n.selectors[0]);let i=null,a=null,s=0;if(t)for(const d of t)s+=d[uo].requiredVars,d.create&&(d.targetIdx=0,(i??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(r)for(let d=0;d<r.length;d++){const h=r[d];if("function"!=typeof h)for(const y of h.bindings){s+=y[uo].requiredVars;const f=d+1;y.create&&(y.targetIdx=f,(i??=[]).push(y)),y.update&&(y.targetIdx=f,(a??=[]).push(y))}}const c=[n];if(r)for(const d of r){const y=ln("function"==typeof d?d:d.type);c.push(y)}return h0(0,null,function hI(e,n){return e||n?t=>{if(1&t&&e)for(const r of e)r.create();if(2&t&&n)for(const r of n)r.update()}:null}(i,a),1,s,c,null,null,null,[o],null)}(r,c,a,i),d=function sI(e,n,t){let r=n instanceof Nt?n:n?.injector;return r&&null!==e.getStandaloneInjector&&(r=e.getStandaloneInjector(r)||r),r?new rs(t,r):t}(c,o||this.ngModule,n),h=function cI(e){const n=e.get(H0,null);if(null===n)throw new N(407,!1);return{rendererFactory:n,sanitizer:e.get(OA,null),changeDetectionScheduler:e.get(Pa,null),ngReflect:!1}}(d),y=h.rendererFactory.createRenderer(null,c),f=r?function fS(e,n,t,r){const i=r.get(yx,!1)||t===nr.ShadowDom||t===nr.ExperimentalIsolatedShadowDom,a=e.selectRootElement(n,i);return function yS(e){g4(e)}(a),a}(y,r,c.encapsulation,d):function lI(e,n){const t=function dI(e){return(e.selectors[0][0]||"div").toLowerCase()}(e);return $l(n,t,"svg"===t?"svg":"math"===t?"math":null)}(c,y),M=a?.some(g5)||i?.some(R=>"function"!=typeof R&&R.bindings.some(g5)),b=Zl(null,l,null,512|p0(c),null,null,h,y,d,null,null);b[27]=f,h2(b);let x=null;try{const R=q0(27,b,2,"#host",()=>l.directiveRegistry,!0,0);Fv(y,f,R),Cn(f,b),td(l,b,R),e0(l,R,b),U0(l,R),void 0!==t&&function fI(e,n,t){const r=e.projection=[];for(let o=0;o<n.length;o++){const i=t[o];r.push(null!=i&&i.length?Array.from(i):null)}}(R,this.ngContentSelectors,t),x=un(R.index,b),b[8]=x[8],sd(l,b,null)}catch(R){throw null!==x&&L2(x),L2(b),R}finally{Ne(U.DynamicComponentEnd),p2()}return new pI(this.componentType,b,!!M)}finally{j(s)}}}function g5(e){const n=e[uo].kind;return"input"===n||"twoWay"===n}class pI extends TA{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t,r){super(),this._rootLView=t,this._hasInputBindings=r,this._tNode=Oa(t[1],27),this.location=Ua(this._tNode,t),this.instance=un(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new wc(t,void 0),this.componentType=n}setInput(n,t){const r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const o=this._rootLView;ad(r,o[1],o,n,t),this.previousInputValues.set(n,t),es(un(r.index,o),1)}get injector(){return new mt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}let Vn=(()=>class e{static __NG_ELEMENT_ID__=yI})();function yI(){return v5(ue(),O())}const gI=Vn,m5=class extends gI{_lContainer;_hostTNode;_hostLView;constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ua(this._hostTNode,this._hostLView)}get injector(){return new mt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dl(this._hostTNode,this._hostLView);if(S2(n)){const t=oc(n,this._hostLView),r=rc(n);return new mt(t[1].data[r+8],t)}return new mt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=k5(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(s,o,Ni(this._hostTNode,null)),s}createComponent(n,t,r,o,i,a,s){const c=n&&!function tc(e){return"function"==typeof e}(n);let l;if(c)l=t;else{const x=t||{};l=x.index,r=x.injector,o=x.projectableNodes,i=x.environmentInjector||x.ngModuleRef,a=x.directives,s=x.bindings}const d=c?n:new Nc(Ie(n)),h=r||this.parentInjector;if(!i&&null==d.ngModule){const R=(c?h:this.parentInjector).get(Nt,null);R&&(i=R)}Ie(d.componentType??{});const b=d.create(h,o,null,i,a,s);return this.insertImpl(b.hostView,l,Ni(this._hostTNode,null)),b}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function i9(e){return dn(e[3])}(o)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=o[3],l=new m5(c,c[5],c[3]);l.detach(l.indexOf(n))}}const i=this._adjustIndex(t),a=this._lContainer;return ts(a,o,i,r),n.attachToViewContainerRef(),jg(G0(a),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=k5(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=_c(this._lContainer,t);r&&(rl(G0(this._lContainer),t),vc(r[1],r))}detach(n){const t=this._adjustIndex(n,-1),r=_c(this._lContainer,t);return r&&null!=rl(G0(this._lContainer),t)?new wc(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function k5(e){return e[8]}function G0(e){return e[8]||(e[8]=[])}function v5(e,n){let t;const r=n[e.index];return dn(r)?t=r:(t=S4(r,n,null,e),n[e.index]=t,f0(n,t)),M5(t,n,e,r),new m5(t,e,n)}let M5=function w5(e,n,t,r){if(e[7])return;let o;o=8&t.type?Ht(r):function mI(e,n){const t=e[11],r=t.createComment(""),o=Je(n,e),i=t.parentNode(o);return Ei(t,i,r,t.nextSibling(o),!1),r}(n,t),e[7]=o};class Z0{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new Z0(this.queryList)}setDirty(){this.queryList.setDirty()}}class K0{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;i<r;i++){const a=t.getByIndex(i);o.push(this.queries[a.indexInDeclarationView].clone())}return new K0(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==ep(n,t).matches&&this.queries[t].setDirty()}}class b5{flags;read;predicate;constructor(n,t,r=null){this.flags=t,this.read=r,this.predicate="string"==typeof n?function CI(e){return e.split(",").map(n=>n.trim())}(n):n}}class Y0{queries;constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let r=0;r<this.length;r++){const o=null!==t?t.length:0,i=this.getByIndex(r).embeddedTView(n,o);i&&(i.indexInDeclarationView=r,null!==t?t.push(i):t=[i])}return null!==t?new Y0(t):null}template(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Q0{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,t=-1){this.metadata=n,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Q0(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1&~this.metadata.flags){const t=this._declarationNodeIndex;let r=n.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(n,t,MI(t,i)),this.matchTNodeWithReadOption(n,t,xl(t,n,i,!1,!1))}else r===rr?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,xl(t,n,r,!1,!1))}matchTNodeWithReadOption(n,t,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===At||o===Vn||o===rr&&4&t.type)this.addMatch(t.index,-2);else{const i=xl(t,n,o,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,r)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function MI(e,n){const t=e.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===n)return t[r+1];return null}function wI(e,n,t,r){return-1===t?function _I(e,n){return 11&e.type?Ua(e,n):4&e.type?ld(e,n):null}(n,e):-2===t?function bI(e,n,t){return t===At?Ua(n,e):t===rr?ld(n,e):t===Vn?v5(n,e):void 0}(e,n,r):ic(e,e[1],t,n)}function C5(e,n,t,r){const o=n[18].queries[r];if(null===o.matches){const i=e.data,a=t.matches,s=[];for(let c=0;null!==a&&c<a.length;c+=2){const l=a[c];s.push(l<0?null:wI(n,i[l],a[c+1],t.metadata.read))}o.matches=s}return o.matches}function X0(e,n,t,r){const o=e.queries.getByIndex(t),i=o.matches;if(null!==i){const a=C5(e,n,o,t);for(let s=0;s<i.length;s+=2){const c=i[s];if(c>0)r.push(a[s/2]);else{const l=i[s+1],d=n[-c];for(let h=10;h<d.length;h++){const y=d[h];y[16]===y[3]&&X0(y[1],y,l,r)}if(null!==d[9]){const h=d[9];for(let y=0;y<h.length;y++){const f=h[y];X0(f[1],f,l,r)}}}}}return r}function D5(e,n,t){const r=new FD(!(4&~t));return function cm(e,n,t,r){const o=am(n);o.push(t),e.firstCreatePass&&sm(e).push(r,o.length-1)}(e,n,r,r.destroy),(n[18]??=new K0).queries.push(new Z0(r))-1}function S5(e,n,t){null===e.queries&&(e.queries=new Y0),e.queries.track(new Q0(n,t))}function ep(e,n){return e.queries.getByIndex(n)}function A5(e,n){const t=e[1],r=ep(t,n);return r.crossesNgTemplate?X0(t,e,n,[]):C5(t,e,r,n)}let ji=class{},L5=class{};class ip extends ji{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new y5(this);constructor(n,t,r,o=!0){super(),this.ngModuleType=n,this._parent=t;const i=Or(n);this._bootstrapComponents=zr(i.bootstrap),this._r3Injector=Sm(n,t,[{provide:ji,useValue:this},{provide:md,useValue:this.componentFactoryResolver},...r],Qn(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class F5 extends L5{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ip(this.moduleType,n,[])}}class P5 extends ji{injector;componentFactoryResolver=new y5(this);instance=null;constructor(n){super();const t=new vi([...n.providers,{provide:ji,useValue:this},{provide:md,useValue:this.componentFactoryResolver}],n.parent||ll(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function bd(e,n,t=null){return new P5({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let NI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=Gh(0,t.type),o=r.length>0?bd([r],this._injector,""):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=B({token:e,providedIn:"environment",factory:()=>new e(de(Nt))})}return e})();function me(e){return so(()=>{const n=j5(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Sl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(NI).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||nr.Emulated,styles:e.styles||Ze,_:null,schemas:e.schemas||null,tView:null,id:""};n.standalone&&Ut("NgStandalone"),H5(t);const r=e.dependencies;return t.directiveDefs=Cd(r,V5),t.pipeDefs=Cd(r,fr),t.id=function PI(e){let n=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const i of r.join("|"))n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function V5(e){return Ie(e)||ln(e)}function ho(e){return so(()=>({type:e.type,bootstrap:e.bootstrap||Ze,declarations:e.declarations||Ze,imports:e.imports||Ze,exports:e.exports||Ze,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function OI(e,n){if(null==e)return Lr;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,a,s,c;Array.isArray(o)?(s=o[0],i=o[1],a=o[2]??i,c=o[3]||null):(i=o,a=o,s=Kl.None,c=null),t[i]=[r,s,c],n[i]=a}return t}function LI(e){if(null==e)return Lr;const n={};for(const t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function Y(e){return so(()=>{const n=j5(e);return H5(n),n})}function Dn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function j5(e){const n={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputConfig:e.inputs||Lr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Ze,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:OI(e.inputs,n),outputs:LI(e.outputs),debugInfo:null}}function H5(e){e.features?.forEach(n=>n(e))}function Cd(e,n){return e?()=>{const t="function"==typeof e?e():e,r=[];for(const o of t){const i=n(o);null!==i&&r.push(i)}return r}:null}function ap(e){const n=t=>{const r=Array.isArray(e);null===t.hostDirectives?(t.resolveHostDirectives=VI,t.hostDirectives=r?e.map(sp):[e]):r?t.hostDirectives.unshift(...e.map(sp)):t.hostDirectives.unshift(e)};return n.ngInherit=!0,n}function VI(e){const n=[];let t=!1,r=null,o=null;for(let i=0;i<e.length;i++){const a=e[i];if(null!==a.hostDirectives){const s=n.length;r??=new Map,o??=new Map,z5(a,n,r),o.set(a,[s,n.length-1])}0===i&&gr(a)&&(t=!0,n.push(a))}for(let i=t?1:0;i<e.length;i++)n.push(e[i]);return[n,r,o]}function z5(e,n,t){if(null!==e.hostDirectives)for(const r of e.hostDirectives)if("function"==typeof r){const o=r();for(const i of o)B5(sp(i),n,t)}else B5(r,n,t)}function B5(e,n,t){const r=ln(e.directive);(function jI(e,n){for(const t in n)n.hasOwnProperty(t)&&(e[n[t]]=e[t])})(r.declaredInputs,e.inputs),z5(r,n,t),t.set(r,e),n.push(r)}function sp(e){return"function"==typeof e?{directive:pe(e),inputs:Lr,outputs:Lr}:{directive:pe(e.directive),inputs:q5(e.inputs),outputs:q5(e.outputs)}}function q5(e){if(void 0===e||0===e.length)return Lr;const n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function J(e){let n=function HI(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let o;if(gr(e))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new N(903,!1);o=n.\u0275dir}if(o){if(t){r.push(o);const a=e;a.inputs=cp(e.inputs),a.declaredInputs=cp(e.declaredInputs),a.outputs=cp(e.outputs);const s=o.hostBindings;s&&$I(e,s);const c=o.viewQuery,l=o.contentQueries;if(c&&qI(e,c),l&&UI(e,l),zI(e,o),MC(e.outputs,o.outputs),gr(o)&&o.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let a=0;a<i.length;a++){const s=i[a];s&&s.ngInherit&&s(e),s===J&&(t=!1)}}n=Object.getPrototypeOf(n)}!function BI(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=qa(o.hostAttrs,t=qa(t,o.hostAttrs))}}(r)}function zI(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t])}}function cp(e){return e===Lr?{}:e===Ze?[]:e}function qI(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function UI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function $I(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function $5(e,n,t,r,o,i,a,s){if(t.firstCreatePass){e.mergedAttrs=qa(e.mergedAttrs,e.attrs);const d=e.tView=h0(2,e,o,i,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,t.consts,null);null!==t.queries&&(t.queries.template(t,e),d.queries=t.queries.embeddedTView(e))}s&&(e.flags|=s),oo(e,!1);const c=W5(t,n,e,r);ml()&&b0(t,n,c,e),Cn(c,n);const l=S4(c,n,c,e);n[r+27]=l,f0(n,l)}function Hi(e,n,t,r,o,i,a,s,c,l,d){const h=t+27;let y;if(n.firstCreatePass){if(y=Oi(n,h,4,a||null,s||null),null!=l){const f=nn(n.consts,l);y.localNames=[];for(let M=0;M<f.length;M+=2)y.localNames.push(f[M],-1)}}else y=n.data[h];return $5(y,e,n,t,r,o,i,c),null!=l&&Xa(e,y,d),y}function K(e,n,t,r,o,i,a,s){const c=O(),l=ie();return function GI(e,n,t,r,o,i,a,s,c,l,d){const h=t+27;let y;n.firstCreatePass?(y=Oi(n,h,4,a||null,s||null),c2()&&o5(n,e,y,nn(n.consts,l),x0),Xm(n,y)):y=n.data[h],$5(y,e,n,t,r,o,i,c),Ra(y)&&td(n,e,y),null!=l&&Xa(e,y,d)}(c,l,e,n,t,r,o,nn(l.consts,i),void 0,a,s),K}let W5=function Z5(e,n,t,r){return Xs(!0),n[11].createComment("")};let s3=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function d3(e){return function l3(e){return"function"==typeof e&&void 0!==e[ve]}(e)&&"function"==typeof e.set}const D3=new P(""),x3=new P("");let gp,yp=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(t,r,o){this._ngZone=t,this.registry=r,Jh()&&(this._destroyRef=D(er,{optional:!0})??void 0),gp||(function eR(e){gp=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const t=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{De.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{t.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==i),t()},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static \u0275fac=function(r){return new(r||e)(de(De),de(JT),de(x3))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),JT=(()=>{class e{_applications=new Map;registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return gp?.findTestabilityInTree(this,t,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function jc(e){return!!e&&"function"==typeof e.then}function E3(e){return!!e&&"function"==typeof e.subscribe}const S3=new P("");function A3(e){return function $h(e){return{\u0275providers:e}}([{provide:S3,multi:!0,useValue:e}])}let I3=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r});appInits=D(S3,{optional:!0})??[];injector=D(wt);constructor(){}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=wn(this.injector,o);if(jc(i))t.push(i);else if(E3(i)){const a=new Promise((s,c)=>{i.subscribe({complete:s,error:c})});t.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const T3=new P("");let vr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=D(Vr);afterRenderManager=D(Xv);zonelessEnabled=D(v2);rootEffectScheduler=D(Fm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new it;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=D(Oo);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(at(t=>!t))}constructor(){D(kc,{optional:!0})}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{t.unsubscribe()})}_injector=D(Nt);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,r){return this.bootstrapImpl(t,r)}bootstrapImpl(t,r,o=wt.NULL){return this._injector.get(De).run(()=>{Ne(U.BootstrapComponentStart);const a=t instanceof t5;if(!this._injector.get(I3).done)throw new N(405,"");let c;c=a?t:this._injector.get(md).resolveComponentFactory(t),this.componentTypes.push(c.componentType);const l=function nR(e){return e.isBoundToModule}(c)?void 0:this._injector.get(ji),h=c.create(o,[],r||c.selector,l),y=h.location.nativeElement,f=h.injector.get(D3,null);return f?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),Rd(this.components,h),f?.unregisterApplication(y)}),this._loadComponent(h),Ne(U.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ne(U.ChangeDetectionStart),null!==this.tracingSnapshot?this.tracingSnapshot.run(m0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Ne(U.ChangeDetectionEnd),new N(101,!1);const t=j(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,j(t),this.afterTick.next(),Ne(U.ChangeDetectionEnd)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(H0,null,{optional:!0}));let t=0;for(;0!==this.dirtyFlags&&t++<10;){Ne(U.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Ne(U.ChangeDetectionSyncEnd)}}}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let t=!1;if(7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews)(r||pl(o))&&(cd(o,r&&!this.zonelessEnabled?0:1),t=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}t||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>pl(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Rd(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(t),this._injector.get(T3,[]).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Rd(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new N(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Rd(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function W(e,n,t,r){const o=O();return Ke(o,rn(),n)&&(ie(),function _S(e,n,t,r,o,i){const a=Je(e,n);rd(n[11],a,i,e.value,t,r,o)}(mr(),o,e,n,t,r)),W}typeof document<"u"&&document;function Np(e,n,t,r,o,i,a,s){Ut("NgControlFlow");const c=O(),l=ie();return Hi(c,l,e,n,t,r,o,nn(l.consts,i),256,a,s),Op}function Op(e,n,t,r,o,i,a,s){Ut("NgControlFlow");const c=O(),l=ie();return Hi(c,l,e,n,t,r,o,nn(l.consts,i),512,a,s),Op}function Lp(e,n){Ut("NgControlFlow");const t=O(),r=rn(),o=t[r]!==Le?t[r]:-1,i=-1!==o?qd(t,27+o):void 0;if(Ke(t,r,e)){const s=j(null);try{if(void 0!==i&&function A0(e,n){const t=_c(e,n);return void 0!==t&&vc(t[1],t),t}(i,0),-1!==e){const c=27+e,l=qd(t,c),d=function Fp(e,n){return Oa(e,n)}(t[1],c),h=null;ts(l,Ja(t,d,n,{dehydratedView:h}),0,Ni(d,h))}}finally{j(s)}}else if(void 0!==i){const s=function A4(e,n){const t=10+n;if(t<e.length)return e[t]}(i,0);void 0!==s&&(s[8]=n)}}function qd(e,n){return e[n]}function E(e,n,t){const r=O();return Ke(r,rn(),n)&&(ie(),nd(mr(),r,e,n,r[11],t)),E}function Pp(e,n,t,r,o){ad(n,e,t,o?"class":"style",r)}function m(e,n,t,r){const o=O(),i=o[1],a=e+27,s=i.firstCreatePass?q0(a,o,2,n,x0,c2(),t,r):i.data[a];if(od(s,o,e,n,Vp),Ra(s)){const c=o[1];td(c,o,s),e0(c,s,o)}return null!=r&&Xa(o,s),m}function k(){const e=ie(),t=id(ue());return e.firstCreatePass&&U0(e,t),um(t)&&hm(),lm(),null!=t.classesWithoutHost&&function gD(e){return!!(8&e.flags)}(t)&&Pp(e,t,O(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function mD(e){return!!(16&e.flags)}(t)&&Pp(e,t,O(),t.stylesWithoutHost,!1),k}function q(e,n,t,r){return m(e,n,t,r),k(),q}function Gt(e,n,t,r){const o=O(),i=o[1],a=e+27,s=i.firstCreatePass?l5(a,i,2,n,t,r):i.data[a];return od(s,o,e,n,Vp),null!=r&&Xa(o,s),Gt}function Wt(){return um(id(ue()))&&hm(),lm(),Wt}function $o(e,n,t,r){return Gt(e,n,t,r),Wt(),$o}Object.keys({disabled:"disabled",disabledReasons:"disabledReasons",dirty:"dirty",errors:"errors",hidden:"hidden",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",pending:"pending",readonly:"readonly",required:"required",touched:"touched"});let Vp=(e,n,t,r,o)=>(Xs(!0),$l(n[11],r,function v9(){return ce.lFrame.currentNamespace}()));function jn(e,n,t){const r=O(),o=r[1],i=e+27,a=o.firstCreatePass?q0(i,r,8,"ng-container",x0,c2(),n,t):o.data[i];if(od(a,r,e,"ng-container",zp),Ra(a)){const s=r[1];td(s,r,a),e0(s,a,r)}return null!=t&&Xa(r,a),jn}function Sn(){const e=ie(),t=id(ue());return e.firstCreatePass&&U0(e,t),Sn}function zc(e,n,t){return jn(e,n,t),Sn(),zc}function jp(e,n,t){const r=O(),o=r[1],i=e+27,a=o.firstCreatePass?l5(i,o,8,"ng-container",n,t):o.data[i];return od(a,r,e,"ng-container",zp),null!=t&&Xa(r,a),jp}function Hp(e,n,t){return jp(e,n,t),function oM(){return id(ue()),Sn}(),Hp}let zp=(e,n,t,r,o)=>(Xs(!0),d0(n[11],""));function Dt(){return O()}function Zi(e,n,t){const r=O();return Ke(r,rn(),n)&&(ie(),D0(mr(),r,e,n,r[11],t)),Zi}const Bc=void 0;var UN=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Bc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Bc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202fa","h:mm:ss\u202fa","h:mm:ss\u202fa z","h:mm:ss\u202fa zzzz"],["{1}, {0}",Bc,Bc,Bc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qN(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let fs={};function pn(e){const n=function $N(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=sM(n);if(t)return t;const r=n.split("-")[0];if(t=sM(r),t)return t;if("en"===r)return UN;throw new N(701,!1)}function sM(e){return e in fs||(fs[e]=yt.ng&&yt.ng.common&&yt.ng.common.locales&&yt.ng.common.locales[e]),fs[e]}var et=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(et||{});const GN=["zero","one","two","few","many"],Ud="en-US",$d={marker:"element"},Gd={marker:"ICU"};var An=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(An||{});let cM=Ud,qc=0,Uc=0;let $c=(e,n,t,r)=>(Xs(!0),function lM(e,n,t){const r=e[11];switch(t){case Node.COMMENT_NODE:return d0(r,n);case Node.TEXT_NODE:return l0(r,n);case Node.ELEMENT_NODE:return $l(r,n,null)}}(e,t,r));function dM(e,n,t,r){const o=t[11];let a,i=null;for(let s=0;s<n.length;s++){const c=n[s];if("string"==typeof c){const l=n[++s];null===t[l]&&(t[l]=$c(t,0,c,Node.TEXT_NODE))}else if("number"==typeof c)switch(1&c){case 0:const l=P4(c);let d,h;if(null===i&&(i=l,a=o.parentNode(r)),l===i?(d=r,h=a):(d=null,h=Ht(t[l])),null!==h){const b=V4(c);Ei(o,h,t[b],d,!1);const R=xc(e,b);if(null!==R&&"object"==typeof R){const A=ud(R,t);null!==A&&dM(e,R.create[A],t,t[R.anchorIdx])}}break;case 1:const f=n[++s],M=n[++s];rd(o,Na(c>>>1,t),null,null,f,M,null)}else switch(c){case Gd:const l=n[++s],d=n[++s];null===t[d]&&Cn(t[d]=$c(t,0,l,Node.COMMENT_NODE),t);break;case $d:const h=n[++s],y=n[++s];null===t[y]&&Cn(t[y]=$c(t,0,h,Node.ELEMENT_NODE),t)}}}function uM(e,n,t,r,o){for(let i=0;i<t.length;i++){const a=t[i],s=t[++i];if(a&o){let c="";for(let l=i+1;l<=i+s;l++){const d=t[l];if("string"==typeof d)c+=d;else if("number"==typeof d)if(d<0)c+=he(n[r-d]);else{const h=d>>>2;switch(3&d){case 1:const y=t[++l],f=t[++l],M=e.data[h];"string"==typeof M?rd(n[11],n[h],null,M,y,c,f):nd(M,n,y,c,n[11],f);break;case 0:const b=n[h];null!==b&&Rv(n[11],b,c);break;case 2:tO(e,xc(e,h),n,c);break;case 3:hM(e,xc(e,h),r,n)}}}}else{const c=t[i+1];if(c>0&&!(3&~c)){const d=xc(e,c>>>2);n[d.currentCaseLViewIndex]<0&&hM(e,d,r,n)}}i+=s}}function hM(e,n,t,r){let o=r[n.currentCaseLViewIndex];if(null!==o){let i=qc;o<0&&(o=r[n.currentCaseLViewIndex]=~o,i=-1),uM(e,r,n.update[o],t,i)}}function tO(e,n,t,r){const o=function nO(e,n){let t=e.cases.indexOf(n);if(-1===t)switch(e.type){case 1:{const r=function WN(e,n){const t=function aM(e){return pn(e)[et.PluralCase]}(n)(parseInt(e,10)),r=GN[t];return void 0!==r?r:"other"}(n,function YN(){return cM}());t=e.cases.indexOf(r),-1===t&&"other"!==r&&(t=e.cases.indexOf("other"));break}case 0:t=e.cases.indexOf("other")}return-1===t?null:t}(n,r);if(ud(n,t)!==o&&(pM(e,n,t),t[n.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const a=t[n.anchorIdx];a&&dM(e,n.create[o],t,a)}}function pM(e,n,t){let r=ud(n,t);if(null!==r){const o=n.remove[r];for(let i=0;i<o.length;i++){const a=o[i];if(a>0){const s=Na(a,t);null!==s&&yc(t[11],s)}else pM(e,xc(e,~a),t)}}}const Wd=/\ufffd(\d+):?\d*\ufffd/gi,oO=/\ufffd(\d+)\ufffd/,yM=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,iO=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,aO=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,sO=/\uE500/g;function gM(e,n,t,r,o,i,a){const s=mc(e,r,1,null);let c=s<<An.SHIFT,l=Qs();n===l&&(l=null),null===l&&(c|=An.APPEND_EAGERLY),a&&(c|=An.COMMENT,function QE(e){void 0===y0&&(y0=e())}(rA)),o.push(c,null===i?"":i);const d=N0(e,s,a?32:1,null===i?"":i,null);L4(t,d);const h=d.index;return oo(d,!1),null!==l&&n!==l&&function eA(e,n){let t=e.insertBeforeIndex;null===t?(h4(N4,O4),t=e.insertBeforeIndex=[null,n]):(pi(Array.isArray(t),!0,"Expecting array here"),t.push(n))}(l,h),d}function dO(e,n,t,r,o,i,a,s){const c=s.match(Wd),d=gM(n,t,r,a,o,c?null:s,!1).index;c&&Wc(i,s,d,null,0,null),e.push({kind:0,index:d})}function Wc(e,n,t,r,o,i){const a=e.length,s=a+1;e.push(null,null);const c=a+2,l=n.split(Wd);let d=0;for(let h=0;h<l.length;h++){const y=l[h];if(1&h){const f=o+parseInt(y,10);e.push(-1-f),d|=mM(f)}else""!==y&&e.push(y)}return e.push(t<<2|(r?1:0)),r&&e.push(r,i),e[a]=d,e[s]=e.length-c,d}function mM(e){return 1<<Math.min(e,31)}function kM(e){let n,i,t="",r=0,o=!1;for(;null!==(n=iO.exec(e));)o?n[0]===`\ufffd/*${i}\ufffd`&&(r=n.index,o=!1):(t+=e.substring(r,n.index+n[0].length),i=n[1],o=!0);return t+=e.slice(r),t}function vM(e,n,t,r,o,i,a){let s=0;const c={type:i.type,currentCaseLViewIndex:mc(n,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function mO(e,n,t){e.push(mM(n.mainBinding),2,-1-n.mainBinding,t<<2|2)})(r,i,a),function JS(e,n,t){const r=e.data[n];null===r?e.data[n]=t:r.value=t}(n,a,c);const l=i.values,d=[];for(let h=0;h<l.length;h++){const y=l[h],f=[];for(let b=0;b<y.length;b++){const x=y[b];if("string"!=typeof x){const R=f.push(x)-1;y[b]=`\x3c!--\ufffd${R}\ufffd--\x3e`}}const M=[];d.push(M),s=yO(M,n,c,t,r,o,i.cases[h],y.join(""),f)|s}s&&function kO(e,n,t){e.push(n,1,t<<2|3)}(r,s,a),e.push({kind:3,index:a,cases:d,currentCaseLViewIndex:c.currentCaseLViewIndex})}function fO(e){const n=[],t=[];let r=1,o=0;const i=Bp(e=e.replace(yM,function(a,s,c){return r="select"===c?0:1,o=parseInt(s.slice(1),10),""}));for(let a=0;a<i.length;){let s=i[a++].trim();1===r&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&n.push(s);const c=Bp(i[a++]);n.length>t.length&&t.push(c)}return{type:r,mainBinding:o,cases:n,values:t}}function Bp(e){if(!e)return[];let n=0;const t=[],r=[],o=/[{}]/g;let i;for(o.lastIndex=0;i=o.exec(e);){const s=i.index;if("}"==i[0]){if(t.pop(),0==t.length){const c=e.substring(n,s);yM.test(c)?r.push(fO(c)):r.push(c),n=s+1}}else{if(0==t.length){const c=e.substring(n,s);r.push(c),n=s+1}t.push("{")}}const a=e.substring(n);return r.push(a),r}function yO(e,n,t,r,o,i,a,s,c){const l=[],d=[],h=[];t.cases.push(a),t.create.push(l),t.remove.push(d),t.update.push(h);const f=function bv(e){const n=new nE(e);return function rE(){try{return!!(new window.DOMParser).parseFromString(Wa(""),"text/html")}catch{return!1}}()?new tE(n):n}(function lc(){if(void 0!==V2)return V2;if(typeof document<"u")return document;throw new N(210,!1)}()).getInertBodyElement(s),M=function c0(e){return"content"in e&&function pE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}(f)||f;return M?MM(e,n,t,r,o,l,d,h,M,i,c,0):0}function MM(e,n,t,r,o,i,a,s,c,l,d,h){let y=0,f=c.firstChild;for(;f;){const M=mc(n,r,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:const b=f,x=b.tagName.toLowerCase();if(a0.hasOwnProperty(x)){qp(i,$d,x,l,M),n.data[M]=x;const Z=b.attributes;for(let ye=0;ye<Z.length;ye++){const Ae=Z.item(ye),ct=Ae.name.toLowerCase();Ae.value.match(Wd)?Ev.hasOwnProperty(ct)&&Wc(s,Ae.value,M,Ae.name,0,s0[ct]?o0:null):vO(i,M,Ae)}const G={kind:1,index:M,children:[]};e.push(G),y=MM(G.children,n,t,r,o,i,a,s,f,M,d,h+1)|y,_M(a,M,h)}break;case Node.TEXT_NODE:const R=f.textContent||"",A=R.match(Wd);qp(i,null,A?"":R,l,M),_M(a,M,h),A&&(y=Wc(s,R,M,null,0,null)|y),e.push({kind:0,index:M});break;case Node.COMMENT_NODE:const $=oO.exec(f.textContent||"");if($){const G=d[parseInt($[1],10)];qp(i,Gd,"",l,M),vM(e,n,r,o,l,G,M),gO(a,M,h)}}f=f.nextSibling}return y}function _M(e,n,t){0===t&&e.push(n)}function gO(e,n,t){0===t&&(e.push(~n),e.push(n))}function qp(e,n,t,r,o){null!==n&&e.push(n),e.push(t,o,function nA(e,n,t){return e|n<<17|t<<1}(0,r,o))}function vO(e,n,t){e.push(n<<1|1,t.name,t.value)}function bM(e,n,t=-1){const r=ie(),o=O(),i=27+e,a=nn(r.consts,n),s=Qs();r.firstCreatePass&&function lO(e,n,t,r,o,i){const a=Qs(),s=[],c=[],l=[[]],d=[[]];o=function pO(e,n){if(function H4(e){return-1===e}(n))return kM(e);{const t=e.indexOf(`:${n}\ufffd`)+2+n.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${n}\ufffd`));return kM(e.substring(t,r))}}(o,i);const h=function cO(e){return e.replace(sO," ")}(o).split(aO);for(let y=0;y<h.length;y++){let f=h[y];if(1&y){const M=47===f.charCodeAt(0),b=f.charCodeAt(M?1:0),x=27+Number.parseInt(f.substring(M?2:1));if(M)l.shift(),d.shift(),oo(Qs(),!1);else{const R=tA(e,l[0],x);l.unshift([]),oo(R,!0);const A={kind:2,index:x,children:[],type:35===b?0:1};d[0].push(A),d.unshift(A.children)}}else{const M=Bp(f);for(let b=0;b<M.length;b++){let x=M[b];if(1&b){const R=x;if("object"!=typeof R)throw new Error(`Unable to parse ICU expression in "${o}" message.`);const $=gM(e,a,l[0],t,s,"",!0).index;vM(d[0],e,t,c,n,R,$)}else""!==x&&dO(d[0],e,a,l[0],s,c,t,x)}}}e.data[r]={create:s,update:c,ast:d[0],parentTNodeIndex:n}}(r,null===s?0:s.index,o,i,a,t),2===r.type?o[15][2]|=32:o[2]|=32;const c=r.data[i],d=c4(r,s===o[5]?null:s,o);(function eO(e,n,t,r){const o=e[11];for(let i=0;i<n.length;i++){const a=n[i++],l=(a&An.APPEND_EAGERLY)===An.APPEND_EAGERLY,d=a>>>An.SHIFT;let h=e[d],y=!1;null===h&&(h=e[d]=$c(e,0,n[i],(a&An.COMMENT)===An.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),y=ml()),l&&null!==t&&y&&Ei(o,t,h,r,!1)}})(o,c.create,d,s&&8&s.type?o[s.index]:null),Mm(!0)}function DM(e,n,t){bM(e,n,t),function CM(){Mm(!1)}()}function Up(e){return function QN(e){e&&(qc|=1<<Math.min(Uc,31)),Uc++}(Ke(O(),rn(),e)),Up}function V(e,n,t){const r=O(),o=ie(),i=ue();return $p(o,r,r[11],i,e,n,t),V}function Ki(e,n,t){const r=O(),o=ie(),i=ue();return(3&i.type||t)&&wd(i,o,r,t,r[11],e,n,lo(i,r,n)),Ki}function $p(e,n,t,r,o,i,a){let s=!0,c=null;if((3&r.type||a)&&(c??=lo(r,n,i),wd(r,e,n,a,t,o,i,c)&&(s=!1)),s){const l=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){const y=d[h],f=d[h+1];c??=lo(r,n,i),os(r,n,y,f,o,c)}if(l&&l.length)for(const h of l)c??=lo(r,n,i),os(r,n,h,o,o,c)}}function z(e=1){return function f9(e){return(ce.lFrame.contextLView=function im(e,n){for(;e>0;)n=n[14],e--;return n}(e,ce.lFrame.contextLView))[8]}(e)}function IO(e,n){let t=null;const r=function BE(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let o=0;o<n.length;o++){const i=n[o];if("*"!==i){if(null===r?Uv(e,i,!0):$E(r,i))return o}else t=o}return t}function Go(e){const n=O()[15][5];if(!n.projection){const r=n.projection=function ol(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}(e?e.length:1,null),o=r.slice();let i=n.child;for(;null!==i;){if(128!==i.type){const a=e?IO(i,e):0;null!==a&&(o[a]?o[a].projectionNext=i:r[a]=i,o[a]=i)}i=i.next}}}function Wo(e,n=0,t,r,o,i){const a=O(),s=ie(),c=r?e+1:null;null!==c&&Hi(a,s,c,r,o,i,null,t);const l=Oi(s,27+e,16,null,t||null);null===l.projection&&(l.projection=n),ym();const h=!a[6]||dm();null===a[15][5].projection[l.projection]&&null!==c?function TO(e,n,t){const r=27+t,o=n.data[r],i=e[r];ts(i,Ja(e,o,void 0,{dehydratedView:null}),0,Ni(o,null))}(a,s,c):h&&!Ll(l)&&function uS(e,n,t){f4(n[11],0,n,t,_0(e,t,n),l4(t.parent||n[5],t,n))}(s,a,l)}function ys(e,n,t,r){return function E5(e,n,t,r){const o=ie();if(o.firstCreatePass){const i=ue();S5(o,new b5(n,t,r),i.index),function DI(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(o,e),!(2&~t)&&(o.staticContentQueries=!0)}return D5(o,O(),t)}(e,n,t,r),ys}function Zd(e,n,t){return function x5(e,n,t){const r=ie();return r.firstCreatePass&&(S5(r,new b5(e,n,t),-1),!(2&~n)&&(r.staticViewQueries=!0)),D5(r,O(),n)}(e,n,t),Zd}function Yi(e){const n=O(),t=ie(),r=u2();gl(r+1);const o=ep(t,r);if(e.dirty&&function o9(e){return!(4&~e[2])}(n)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const i=A5(n,r);e.reset(i,kk),e.notifyOnChanges()}return!0}return!1}function Qi(){return function J0(e,n){return e[18].queries[n].queryList}(O(),u2())}function fn(e){return bi(function gm(){return ce.lFrame.contextLView}(),27+e)}function Kd(e,n){return e<<17|n<<2}function Xi(e){return e>>17&32767}function Gp(e){return 2|e}function gs(e){return(131068&e)>>2}function Wp(e,n){return-131069&e|n<<2}function Zp(e){return 1|e}function IM(e,n,t,r){const o=e[t+1],i=null===n;let a=r?Xi(o):gs(o),s=!1;for(;0!==a&&(!1===s||i);){const l=e[a+1];VO(e[a],n)&&(s=!0,e[a+1]=r?Zp(l):Gp(l)),a=r?Xi(l):gs(l)}s&&(e[t+1]=r?Gp(o):Zp(o))}function VO(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Zs(e,n)>=0}const Ot={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TM(e){return e.substring(Ot.key,Ot.keyEnd)}function RM(e,n){const t=Ot.textEnd;return t===n?-1:(n=Ot.keyEnd=function BO(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Ot.key=n,t),ms(e,n,t))}function ms(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function Zc(e,n,t){return PM(e,n,t,!1),Zc}function ir(e,n){return PM(e,n,null,!0),ir}function Ji(e){!function VM(e,n,t,r){const o=ie(),i=io(2);o.firstUpdatePass&&HM(o,null,i,r);const a=O();if(t!==Le&&Ke(a,i,t)){const s=o.data[Bt()];if(UM(s,r)&&!jM(o,i)){let c=r?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=Rh(c,t||"")),Pp(o,s,a,t,r)}else!function eL(e,n,t,r,o,i,a,s){o===Le&&(o=Ze);let c=0,l=0,d=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;null!==d||null!==h;){const y=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0;let b,M=null;d===h?(c+=2,l+=2,y!==f&&(M=h,b=f)):null===h||null!==d&&d<h?(c+=2,M=d):(l+=2,M=h,b=f),null!==M&&BM(e,n,t,r,M,b,a,s),d=c<o.length?o[c]:null,h=l<i.length?i[l]:null}}(o,s,a,a[11],a[i+1],a[i+1]=function XO(e,n,t){if(null==t||""===t)return Ze;const r=[],o=Ho(t);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(const i of o)e(r,i,!0);else if("object"==typeof o)for(const i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else"string"==typeof o&&n(r,o);return r}(e,n,t),r,i)}}(JO,WO,e,!0)}function WO(e,n){for(let t=function HO(e){return function OM(e){Ot.key=0,Ot.keyEnd=0,Ot.value=0,Ot.valueEnd=0,Ot.textEnd=e.length}(e),RM(e,ms(e,0,Ot.textEnd))}(n);t>=0;t=RM(n,t))il(e,TM(n),!0)}function PM(e,n,t,r){const o=O(),i=ie(),a=io(2);i.firstUpdatePass&&HM(i,e,a,r),n!==Le&&Ke(o,a,n)&&BM(i,i.data[Bt()],o,o[11],e,o[a+1]=function tL(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Qn(Ho(e)))),e}(n,t),r,a)}function jM(e,n){return n>=e.expandoStartIndex}function HM(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Bt()],a=jM(e,t);UM(i,r)&&null===n&&!a&&(n=!1),n=function ZO(e,n,t,r){const o=function d2(e){const n=ce.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Kc(t=Kp(null,e,n,t,r),n.attrs,r),i=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==o)if(t=Kp(o,e,n,t,r),null===i){let c=function KO(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==gs(r))return e[Xi(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Kp(null,e,n,c[1],r),c=Kc(c,n.attrs,r),function YO(e,n,t,r){e[Xi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else i=function QO(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i<o;i++)r=Kc(r,e[i].hostAttrs,t);return Kc(r,n.attrs,t)}(e,n,r)}return void 0!==i&&(r?n.residualClasses=i:n.residualStyles=i),t}(o,i,n,r),function FO(e,n,t,r,o,i){let a=i?n.classBindings:n.styleBindings,s=Xi(a),c=gs(a);e[r]=t;let d,l=!1;if(Array.isArray(t)?(d=t[1],(null===d||Zs(t,d)>0)&&(l=!0)):d=t,o)if(0!==c){const y=Xi(e[s+1]);e[r+1]=Kd(y,s),0!==y&&(e[y+1]=Wp(e[y+1],r)),e[s+1]=function OO(e,n){return 131071&e|n<<17}(e[s+1],r)}else e[r+1]=Kd(s,0),0!==s&&(e[s+1]=Wp(e[s+1],r)),s=r;else e[r+1]=Kd(c,0),0===s?s=r:e[c+1]=Wp(e[c+1],r),c=r;l&&(e[r+1]=Gp(e[r+1])),IM(e,d,r,!0),IM(e,d,r,!1),function PO(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Zs(i,n)>=0&&(t[r+1]=Zp(t[r+1]))}(n,d,e,r,i),a=Kd(s,c),i?n.classBindings=a:n.styleBindings=a}(o,i,n,t,a,r)}}function Kp(e,n,t,r,o){let i=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<a&&(i=n[s],r=Kc(r,i.hostAttrs,o),i!==e);)s++;return null!==e&&(t.directiveStylingLast=s),r}function Kc(e,n,t){const r=t?1:2;let o=-1;if(null!==n)for(let i=0;i<n.length;i++){const a=n[i];"number"==typeof a?o=a:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),il(e,a,!!t||n[++i]))}return void 0===e?null:e}function JO(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&il(e,r,t)}function BM(e,n,t,r,o,i,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function LO(e){return!(1&~e)}(l)?qM(c,n,t,o,gs(l),a):void 0;Yd(d)||(Yd(i)||function NO(e){return!(2&~e)}(l)&&(i=qM(c,null,t,o,s,a)),function pS(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:zo.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=zo.Important),e.setStyle(t,r,o,i))}}(r,a,Na(Bt(),t),o,i))}function qM(e,n,t,r,o,i){const a=null===n;let s;for(;o>0;){const c=e[o],l=Array.isArray(c),d=l?c[1]:c,h=null===d;let y=t[o+1];y===Le&&(y=h?Ze:void 0);let f=h?qh(y,r):d===r?y:void 0;if(l&&!Yd(f)&&(f=qh(c,r)),Yd(f)&&(s=f,a))return s;const M=e[o+1];o=a?Xi(M):gs(M)}if(null!==n){let c=i?n.residualClasses:n.residualStyles;null!=c&&(s=qh(c,r))}return s}function Yd(e){return void 0!==e}function UM(e,n){return!!(e.flags&(n?8:16))}function _(e,n=""){const t=O(),r=ie(),o=e+27,i=r.firstCreatePass?Oi(r,o,1,n,null):r.data[o],a=$M(r,t,i,n);t[o]=a,ml()&&b0(r,t,a,i),oo(i,!1)}let $M=(e,n,t,r)=>(Xs(!0),l0(n[11],r));function KM(e,n,t,r,o,i,a,s=""){const l=function _d(e,n,t,r,o){const i=Pi(e,n,t,r);return Ke(e,n+2,o)||i}(e,Pr(),t,o,a);return io(3),l?n+he(t)+r+he(o)+i+he(a)+s:Le}function Qd(e){return po("",e),Qd}function po(e,n,t){const r=O(),o=function WM(e,n,t,r=""){return Ke(e,rn(),t)?n+he(t)+r:Le}(r,e,n,t);return o!==Le&&fo(r,Bt(),o),po}function Xd(e,n,t,r,o,i,a){const s=O(),c=KM(s,e,n,t,r,o,i,a);return c!==Le&&fo(s,Bt(),c),Xd}function fo(e,n,t){const r=Na(n,e);Rv(e[11],r,t)}function ae(e,n,t){d3(n)&&(n=n());const r=O();return Ke(r,rn(),n)&&(ie(),nd(mr(),r,e,n,r[11],t)),ae}function le(e,n){const t=d3(e);return t&&e.set(n),t}function se(e,n){const t=O(),r=ie(),o=ue();return $p(r,t,t[11],o,e,n),se}function d_(e,n,t,r,o=""){return function ZM(e,n,t,r,o,i=""){const s=Pi(e,Pr(),t,o);return io(2),s?n+he(t)+r+he(o)+i:Le}(O(),e,n,t,r,o)}function u_(e,n,t){const r=ie();r.firstCreatePass&&h_(n,r.data,r.blueprint,gr(e),t)}function h_(e,n,t,r,o){if(e=pe(e),Array.isArray(e))for(let i=0;i<e.length;i++)h_(e[i],n,t,r,o);else{const i=ie(),a=O(),s=ue();let c=Jr(e)?e:pe(e.provide);const l=Kg(e),d=1048575&s.providerIndexes,h=s.directiveStart,y=s.providerIndexes>>20;if(Jr(e)||!e.multi){const f=new nc(l,o,T,null),M=Qp(c,n,o?d:d+y,h);-1===M?(T2(Cl(s,a),i,c),Yp(i,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),t.push(f),a.push(f)):(t[M]=f,a[M]=f)}else{const f=Qp(c,n,d+y,h),M=Qp(c,n,d,d+y),x=M>=0&&t[M];if(o&&!x||!o&&!(f>=0&&t[f])){T2(Cl(s,a),i,c);const R=function mL(e,n,t,r,o){const a=new nc(e,t,T,null);return a.multi=[],a.index=n,a.componentProviders=0,p_(a,o,r&&!t),a}(o?gL:yL,t.length,o,r,l);!o&&x&&(t[M].providerFactory=R),Yp(i,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),t.push(R),a.push(R)}else Yp(i,e,f>-1?f:M,p_(t[o?M:f],l,!o&&r));!o&&r&&x&&t[M].componentProviders++}}}function Yp(e,n,t,r){const o=Jr(n),i=function Wg(e){return!!e.useClass}(n);if(o||i){const c=(i?pe(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const d=l.indexOf(t);-1===d?l.push(t,[r,c]):l[d+1].push(r,c)}else l.push(t,c)}}}function p_(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Qp(e,n,t,r){for(let o=t;o<r;o++)if(n[o]===e)return o;return-1}function yL(e,n,t,r,o){return Xp(this.multi,[])}function gL(e,n,t,r,o){const i=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,c=ic(r,r[1],this.providerFactory.index,o);a=c.slice(0,s),Xp(i,a);for(let l=s;l<c.length;l++)a.push(c[l])}else a=[],Xp(i,a);return a}function Xp(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function tt(e,n){return t=>{t.providersResolver=(r,o)=>u_(r,o?o(e):e,!1),n&&(t.viewProvidersResolver=(r,o)=>u_(r,o?o(n):n,!0))}}function eu(e,n,t){return g_(O(),hn(),e,n,t)}function y_(e,n,t,r){return function m_(e,n,t,r,o,i,a){const s=n+t;return Pi(e,s,o,i)?qr(e,s+2,a?r.call(a,o,i):r(o,i)):Yc(e,s+2)}(O(),hn(),e,n,t,r)}function Yc(e,n){const t=e[n];return t===Le?void 0:t}function g_(e,n,t,r,o,i){const a=n+t;return Ke(e,a,o)?qr(e,a+1,i?r.call(i,o):r(o)):Yc(e,a+1)}function Jp(e,n){const t=ie();let r;const o=e+27;t.firstCreatePass?(r=function AL(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=mi(r.type)),s=_n(T);try{const c=bl(!1),l=i();return bl(c),function n2(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,O(),o,l),l}finally{_n(s)}}function ef(e,n,t){const r=e+27,o=O(),i=bi(o,r);return function Qc(e,n){return e[1].data[n].pure}(o,r)?g_(o,hn(),n,i.transform,t,i):i.transform(t)}function yo(e,n){return ld(e,n)}class sF{ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let cF=(()=>{class e{compileModuleSync(t){return new F5(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=zr(Or(t).declarations).reduce((a,s)=>{const c=Ie(s);return c&&a.push(new Nc(c)),a},[]);return new sF(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dF=(()=>{class e{applicationErrorHandler=D(Vr);appRef=D(vr);taskService=D(Oo);ngZone=D(De);zonelessEnabled=D(v2);tracing=D(kc,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Jt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vl):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(D(O9,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{const t=this.taskService.add();this.runningTick||(this.cleanup(),this.zonelessEnabled&&!this.appRef.includeAllTestViews)?(this.switchToMicrotaskScheduler(),this.taskService.remove(t)):this.taskService.remove(t)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{const t=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})})}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:case 6:case 13:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 12:this.appRef.dirtyFlags|=16;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?C9:Im;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(vl+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(t),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ko=new P("",{factory:()=>D(Ko,{optional:!0,skipSelf:!0})||function uF(){return typeof $localize<"u"&&$localize.locale||Ud}()});function ar(e,n){return function q1(e,n){const t=Object.create(bh);t.computation=e,void 0!==n&&(t.equal=n);const r=()=>{if(te(t),lt(t),t.value===Rr)throw t.error;return t.value};return r[ve]=t,r}(e,n?.equal)}Error,Error;const iu=Symbol("InputSignalNode#UNSET"),Z_={...Ma,transformFn:void 0,applyValueToInputSignal(e,n){si(e,n)}};function K_(e,n){const t=Object.create(Z_);function r(){if(lt(t),t.value===iu)throw new N(-950,null);return t.value}return t.value=e,t.transformFn=n?.transform,r[ve]=t,r}class RF{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>ac(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}function Y_(e,n){return K_(e,n)}const OF=(Y_.required=function NF(e){return K_(iu,e)},Y_),au=new P(""),qF=new P("");function Jc(e){return!e.moduleRef}let Ms=null;let Mr=(()=>class e{static __NG_ELEMENT_ID__=cP})();function cP(e){return function lP(e,n,t){if(Fr(e)&&!t){const r=un(e.index,n);return new wc(r,r)}return 175&e.type?new wc(n[15],n):null}(ue(),O(),!(16&~e))}class y8{constructor(){}supports(n){return Md(n)}create(n){return new uP(n)}}const dP=(e,n)=>n;class uP{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||dP}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const a=!r||t&&t.currentIndex<m8(r,o,i)?t:r,s=m8(a,o,i),c=a.currentIndex;if(a===r)o--,r=r._nextRemoved;else if(t=t._next,null==a.previousIndex)o++;else{i||(i=[]);const l=s-o,d=c-o;if(l!=d){for(let y=0;y<l;y++){const f=y<i.length?i[y]:i[y]=0,M=f+y;d<=M&&M<l&&(i[y]=f+1)}i[a.previousIndex]=d-l}}s!==c&&n(a,s,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!Md(n))throw new N(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,i,a,t=this._itHead,r=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)i=n[s],a=this._trackByFn(s,i),null!==t&&Object.is(t.trackById,a)?(r&&(t=this._verifyReinsertion(t,i,a,s)),Object.is(t.item,i)||this._addIdentityChange(t,i)):(t=this._mismatch(t,i,a,s),r=!0),t=t._next}else o=0,function ZA(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Symbol.iterator]();let r;for(;!(r=t.next()).done;)n(r.value)}}(n,s=>{a=this._trackByFn(o,s),null!==t&&Object.is(t.trackById,a)?(r&&(t=this._verifyReinsertion(t,s,a,o)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new hP(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new g8),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new g8),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class hP{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}}class pP{_head=null;_tail=null;add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class g8{map=new Map;put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new pP,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function m8(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r<t.length&&(o=t[r]),r+n+o}function v8(){return new pf([new y8])}let pf=(()=>{class e{factories;static \u0275prov=B({token:e,providedIn:"root",factory:v8});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{const r=D(e,{optional:!0,skipSelf:!0});return e.create(t,r||v8())}}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new N(901,!1)}}return e})(),kP=(()=>{class e{constructor(t){}static \u0275fac=function(r){return new(r||e)(de(vr))};static \u0275mod=ho({type:e});static \u0275inj=Nr({})}return e})();function vP(e){const{rootComponent:n,appProviders:t,platformProviders:r,platformRef:o}=e;Ne(U.BootstrapApplicationStart);try{const i=o?.injector??function ZF(e=[]){if(Ms)return Ms;const n=function a8(e=[],n){return wt.create({name:n,providers:[{provide:Kh,useValue:"platform"},{provide:au,useValue:new Set([()=>Ms=null])},...e]})}(e);return Ms=n,function tR(){!function Xt(e){U1=e}(()=>{throw new N(600,"")})}(),function s8(e){const n=e.get(Vk,null);wn(e,()=>{n?.forEach(t=>t())})}(n),n}(r),a=[[{provide:Pa,useExisting:dF},{provide:De,useClass:A9},{provide:v2,useValue:!0}],Om,...t||[]];return function n8(e){const n=Jc(e)?e.r3Injector:e.moduleRef.injector,t=n.get(De);return t.run(()=>{Jc(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Vr);let o;if(t.runOutsideAngular(()=>{o=t.onError.subscribe({next:r})}),Jc(e)){const i=()=>n.destroy(),a=e.platformInjector.get(au);a.add(i),n.onDestroy(()=>{o.unsubscribe(),a.delete(i)})}else{const i=()=>e.moduleRef.destroy(),a=e.platformInjector.get(au);a.add(i),e.moduleRef.onDestroy(()=>{Rd(e.allPlatformModules,e.moduleRef),o.unsubscribe(),a.delete(i)})}return function $F(e,n,t){try{const r=t();return jc(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e(r)),r}}(r,t,()=>{const i=n.get(Oo),a=i.add(),s=n.get(I3);return s.runInitializers(),s.donePromise.then(()=>{if(function KN(e){"string"==typeof e&&(cM=e.toLowerCase().replace(/_/g,"-"))}(n.get(Ko,Ud)||Ud),!n.get(qF,!0))return Jc(e)?n.get(vr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Jc(e)){const d=n.get(vr);return void 0!==e.rootComponent&&d.bootstrap(e.rootComponent),d}return e.moduleRef}).finally(()=>{i.remove(a)})})})}({r3Injector:new P5({providers:a,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:n})}catch(i){return Promise.reject(i)}finally{Ne(U.BootstrapApplicationEnd)}}function _s(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gf(e,n){const t=Ie(e),r=n.elementInjector||ll();return new Nc(t).create(r,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function I8(e){return!!e&&(e instanceof We||Ee(e.lift)&&Ee(e.subscribe))}function Yo(e){return this instanceof Yo?(this.v=e,this):new Yo(e)}function O8(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Mf(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(a){return new Promise(function(s,c){!function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}(s,c,(a=e[i](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const wf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function L8(e){return Ee(e?.then)}function F8(e){return Ee(e[Sh])}function P8(e){return Symbol.asyncIterator&&Ee(e?.[Symbol.asyncIterator])}function V8(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 j8=function cV(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function H8(e){return Ee(e?.[j8])}function z8(e){return function N8(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function a(f){return function(M){return Promise.resolve(M).then(f,h)}}),o[Symbol.asyncIterator]=function(){return this},o;function s(f,M){r[f]&&(o[f]=function(b){return new Promise(function(x,R){i.push([f,b,x,R])>1||c(f,b)})},M&&(o[f]=M(o[f])))}function c(f,M){try{!function l(f){f.value instanceof Yo?Promise.resolve(f.value.v).then(d,h):y(i[0][2],f)}(r[f](M))}catch(b){y(i[0][3],b)}}function d(f){c("next",f)}function h(f){c("throw",f)}function y(f,M){f(M),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Yo(t.read());if(o)return yield Yo(void 0);yield yield Yo(r)}}finally{t.releaseLock()}})}function B8(e){return Ee(e?.getReader)}function on(e){if(e instanceof We)return e;if(null!=e){if(F8(e))return function lV(e){return new We(n=>{const t=e[Sh]();if(Ee(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(wf(e))return function dV(e){return new We(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(L8(e))return function uV(e){return new We(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,pr)})}(e);if(P8(e))return q8(e);if(H8(e))return function hV(e){return new We(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(B8(e))return function pV(e){return q8(z8(e))}(e)}throw V8(e)}function q8(e){return new We(n=>{(function fV(e,n){var t,r,o,i;return function T8(e,n,t,r){return new(t||(t=Promise))(function(i,a){function s(d){try{l(r.next(d))}catch(h){a(h)}}function c(d){try{l(r.throw(d))}catch(h){a(h)}}function l(d){d.done?i(d.value):function o(i){return i instanceof t?i:new t(function(a){a(i)})}(d.value).then(s,c)}l((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=O8(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(a){o={error:a}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function go(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function U8(e,n=0){return qt((t,r)=>{t.subscribe(bt(r,o=>go(r,e,()=>r.next(o),n),()=>go(r,e,()=>r.complete(),n),o=>go(r,e,()=>r.error(o),n)))})}function $8(e,n=0){return qt((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function G8(e,n){if(!e)throw new Error("Iterable cannot be null");return new We(t=>{go(t,n,()=>{const r=e[Symbol.asyncIterator]();go(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function Zt(e,n){return n?function MV(e,n){if(null!=e){if(F8(e))return function yV(e,n){return on(e).pipe($8(n),U8(n))}(e,n);if(wf(e))return function mV(e,n){return new We(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(L8(e))return function gV(e,n){return on(e).pipe($8(n),U8(n))}(e,n);if(P8(e))return G8(e,n);if(H8(e))return function kV(e,n){return new We(t=>{let r;return go(t,n,()=>{r=e[j8](),go(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(a){return void t.error(a)}i?t.complete():t.next(o)},0,!0)}),()=>Ee(r?.return)&&r.return()})}(e,n);if(B8(e))return function vV(e,n){return G8(z8(e),n)}(e,n)}throw V8(e)}(e,n):on(e)}function W8(e){return e&&Ee(e.schedule)}function bf(e){return e[e.length-1]}function hu(e){return Ee(bf(e))?e.pop():void 0}function pu(e){return W8(bf(e))?e.pop():void 0}function ke(...e){return Zt(e,pu(e))}const{isArray:_V}=Array,{getPrototypeOf:wV,prototype:bV,keys:CV}=Object;function Z8(e){if(1===e.length){const n=e[0];if(_V(n))return{args:n,keys:null};if(function DV(e){return e&&"object"==typeof e&&wV(e)===bV}(n)){const t=CV(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:xV}=Array;function Cf(e){return at(n=>function EV(e,n){return xV(n)?e(...n):e(n)}(e,n))}function K8(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function Y8(...e){const n=pu(e),t=hu(e),{args:r,keys:o}=Z8(e);if(0===r.length)return Zt([],n);const i=new We(function SV(e,n,t=hi){return r=>{Q8(n,()=>{const{length:o}=e,i=new Array(o);let a=o,s=o;for(let c=0;c<o;c++)Q8(n,()=>{const l=Zt(e[c],n);let d=!1;l.subscribe(bt(r,h=>{i[c]=h,d||(d=!0,s--),s||r.next(t(i.slice()))},()=>{--a||r.complete()}))},r)},r)}}(r,n,o?a=>K8(o,a):hi));return t?i.pipe(Cf(t)):i}function Q8(e,n,t){e?go(t,e,n):n()}const Df=Bs(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function yn(e,n,t=1/0){return Ee(n)?yn((r,o)=>at((i,a)=>n(r,i,o,a))(on(e(r,o))),t):("number"==typeof n&&(t=n),qt((r,o)=>function AV(e,n,t,r,o,i,a,s){const c=[];let l=0,d=0,h=!1;const y=()=>{h&&!c.length&&!l&&n.complete()},f=b=>l<r?M(b):c.push(b),M=b=>{i&&n.next(b),l++;let x=!1;on(t(b,d++)).subscribe(bt(n,R=>{o?.(R),i?f(R):n.next(R)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&l<r;){const R=c.shift();a?go(n,a,()=>M(R)):M(R)}y()}catch(R){n.error(R)}}))};return e.subscribe(bt(n,f,()=>{h=!0,y()})),()=>{s?.()}}(r,o,e,t)))}function t1(e=1/0){return yn(hi,e)}function n1(...e){return function IV(){return t1(1)}()(Zt(e,pu(e)))}function xf(e){return new We(n=>{on(e()).subscribe(n)})}const zt=new We(e=>e.complete());function Hn(e,n){return qt((t,r)=>{let o=0;t.subscribe(bt(r,i=>e.call(n,i,o++)&&r.next(i)))})}function Ur(e){return e<=0?()=>zt:qt((n,t)=>{let r=0;n.subscribe(bt(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function OV(e=LV){return qt((n,t)=>{let r=!1;n.subscribe(bt(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function LV(){return new Df}function ta(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):hi,Ur(1),t?function NV(e){return qt((n,t)=>{let r=!1;n.subscribe(bt(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}(n):OV(()=>new Df))}function mo(e,n){return qt((t,r)=>{let o=null,i=0,a=!1;const s=()=>a&&!o&&r.complete();t.subscribe(bt(r,c=>{o?.unsubscribe();let l=0;const d=i++;on(e(c,d)).subscribe(o=bt(r,h=>r.next(n?n(c,h,d,l++):h),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Lt(e){return qt((n,t)=>{on(e).subscribe(bt(t,()=>t.complete(),ui)),!t.closed&&n.subscribe(t)})}function Ef(e,n){return Ee(n)?yn(e,n,1):yn(e,1)}function _r(e,n,t){const r=Ee(e)||n||t?{next:e,error:n,complete:t}:e;return r?qt((o,i)=>{var a;null===(a=r.subscribe)||void 0===a||a.call(r);let s=!0;o.subscribe(bt(i,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),i.next(c)},()=>{var c;s=!1,null===(c=r.complete)||void 0===c||c.call(r),i.complete()},c=>{var l;s=!1,null===(l=r.error)||void 0===l||l.call(r,c),i.error(c)},()=>{var c,l;s&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):hi}function X8(e){return e<=0?()=>zt:qt((n,t)=>{let r=[];n.subscribe(bt(t,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function Sf(e){return qt((n,t)=>{let i,r=null,o=!1;r=n.subscribe(bt(t,void 0,void 0,a=>{i=on(e(a,Sf(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}let VV=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(r){return new(r||e)(de(Et))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const fe="primary",o1=Symbol("RouteTitle");class BV{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ws(e){return new BV(e)}function Af(e,n,t){for(let r=0;r<e.length;r++){const o=e[r],i=n[r];if(":"===o[0])t[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function qV(e,n,t){const r=t.path.split("/"),o=r.indexOf("**");if(-1===o){if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.length<e.length))return null;const c={},l=e.slice(0,r.length);return Af(r,l,c)?{consumed:l,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;const i=r.slice(0,o),a=r.slice(o+1);if(i.length+a.length>e.length||"full"===t.pathMatch&&n.hasChildren()&&"**"!==t.path)return null;const s={};return Af(i,e.slice(0,i.length),s)&&Af(a,e.slice(e.length-a.length),s)?{consumed:e,posParams:s}:null}function fu(e){return new Promise((n,t)=>{e.pipe(ta()).subscribe({next:r=>n(r),error:r=>t(r)})})}function $r(e,n){const t=e?If(e):void 0,r=n?If(n):void 0;if(!t||!r||t.length!=r.length)return!1;let o;for(let i=0;i<t.length;i++)if(o=t[i],!t6(e[o],n[o]))return!1;return!0}function If(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function t6(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),r=[...n].sort();return t.every((o,i)=>r[i]===o)}return e===n}function na(e){return I8(e)?e:jc(e)?Zt(Promise.resolve(e)):ke(e)}function n6(e){return I8(e)?fu(e):Promise.resolve(e)}const GV={exact:function o6(e,n,t){if(!ra(e.segments,n.segments)||!yu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!o6(e.children[r],n.children[r],t))return!1;return!0},subset:i6},r6={exact:function ZV(e,n){return $r(e,n)},subset:function KV(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>t6(e[t],n[t]))},ignored:()=>!0};function Tf(e,n,t){return GV[t.paths](e.root,n.root,t.matrixParams)&&r6[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function i6(e,n,t){return a6(e,n,n.segments,t)}function a6(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!ra(o,t)||n.hasChildren()||!yu(o,t,r))}if(e.segments.length===t.length){if(!ra(e.segments,t)||!yu(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!i6(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(ra(e.segments,o)&&yu(e.segments,o,r)&&e.children[fe])&&a6(e.children[fe],n,i,r)}}function yu(e,n,t){return n.every((r,o)=>r6[t](e[o].parameters,r.parameters))}class Gr{root;queryParams;fragment;_queryParamMap;constructor(n=new He([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ws(this.queryParams),this._queryParamMap}toString(){return XV.serialize(this)}}class He{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gu(this)}}class i1{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=ws(this.parameters),this._parameterMap}toString(){return l6(this)}}function ra(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let a1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>new s1,providedIn:"root"})}return e})();class s1{parse(n){const t=new lj(n);return new Gr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${c1(n.root,!0)}`,r=function tj(e){const n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${mu(t)}=${mu(o)}`).join("&"):`${mu(t)}=${mu(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function JV(e){return encodeURI(e)}(n.fragment)}`:""}`}}const XV=new s1;function gu(e){return e.segments.map(n=>l6(n)).join("/")}function c1(e,n){if(!e.hasChildren())return gu(e);if(n){const t=e.children[fe]?c1(e.children[fe],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==fe&&r.push(`${o}:${c1(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function QV(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===fe&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==fe&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===fe?[c1(e.children[fe],!1)]:[`${o}:${c1(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[fe]?`${gu(e)}/${t[0]}`:`${gu(e)}/(${t.join("//")})`}}function s6(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mu(e){return s6(e).replace(/%3B/gi,";")}function Rf(e){return s6(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ku(e){return decodeURIComponent(e)}function c6(e){return ku(e.replace(/\+/g,"%20"))}function l6(e){return`${Rf(e.path)}${function ej(e){return Object.entries(e).map(([n,t])=>`;${Rf(n)}=${Rf(t)}`).join("")}(e.parameters)}`}const nj=/^[^\/()?;#]+/;function Nf(e){const n=e.match(nj);return n?n[0]:""}const rj=/^[^\/()?;=#]+/,ij=/^[^=?&#]+/,sj=/^[^&#]+/;class lj{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[fe]=new He(n,t)),r}parseSegment(){const n=Nf(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new i1(ku(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function oj(e){const n=e.match(rj);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Nf(this.remaining);o&&(r=o,this.capture(r))}n[ku(t)]=ku(r)}parseQueryParam(n){const t=function aj(e){const n=e.match(ij);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const a=function cj(e){const n=e.match(sj);return n?n[0]:""}(this.remaining);a&&(r=a,this.capture(r))}const o=c6(t),i=c6(r);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Nf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=fe);const a=this.parseChildren();t[i??fe]=1===Object.keys(a).length&&a[fe]?a[fe]:new He([],a),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function d6(e){return e.segments.length>0?new He([],{[fe]:e}):e}function u6(e){const n={};for(const[r,o]of Object.entries(e.children)){const i=u6(o);if(r===fe&&0===i.segments.length&&i.hasChildren())for(const[a,s]of Object.entries(i.children))n[a]=s;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function dj(e){if(1===e.numberOfChildren&&e.children[fe]){const n=e.children[fe];return new He(e.segments.concat(n.segments),n.children)}return e}(new He(e.segments,n))}function oa(e){return e instanceof Gr}function h6(e){let n;const o=d6(function t(i){const a={};for(const c of i.children){const l=t(c);a[c.outlet]=l}const s=new He(i.url,a);return i===e&&(n=s),s}(e.root));return n??o}function p6(e,n,t,r,o){let i=e;for(;i.parent;)i=i.parent;if(0===n.length)return Of(i,i,i,t,r,o);const a=function hj(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new g6(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,a)=>{if("object"==typeof i&&null!=i){if(i.outlets){const s={};return Object.entries(i.outlets).forEach(([c,l])=>{s[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:s}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===a?(i.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,i]},[]);return new g6(t,n,r)}(n);if(a.toRoot())return Of(i,i,new He([],{}),t,r,o);const s=function pj(e,n,t){if(e.isAbsolute)return new Mu(n,!0,0);if(!t)return new Mu(n,!1,NaN);if(null===t.parent)return new Mu(t,!0,0);const r=vu(e.commands[0])?0:1;return function fj(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new N(4005,!1);o=r.segments.length}return new Mu(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(a,i,e),c=s.processChildren?d1(s.segmentGroup,s.index,a.commands):m6(s.segmentGroup,s.index,a.commands);return Of(i,s.segmentGroup,c,t,r,o)}function vu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function l1(e){return"object"==typeof e&&null!=e&&e.outlets}function f6(e,n,t){e||="\u0275";const r=new Gr;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Of(e,n,t,r,o,i){const a={};for(const[l,d]of Object.entries(r??{}))a[l]=Array.isArray(d)?d.map(h=>f6(l,h,i)):f6(l,d,i);let s;s=e===n?t:y6(e,n,t);const c=d6(u6(s));return new Gr(c,a,o)}function y6(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:y6(i,n,t)}),new He(e.segments,r)}class g6{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&vu(r[0]))throw new N(4003,!1);const o=r.find(l1);if(o&&o!==function $V(e){return e.length>0?e[e.length-1]:null}(r))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mu{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function m6(e,n,t){if(e??=new He([],{}),0===e.segments.length&&e.hasChildren())return d1(e,n,t);const r=function gj(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=t.length)return i;const a=e.segments[o],s=t[r];if(l1(s))break;const c=`${s}`,l=r<t.length-1?t[r+1]:null;if(o>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!v6(c,l,a))return i;r+=2}else{if(!v6(c,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new He(e.segments.slice(0,r.pathIndex),{});return i.children[fe]=new He(e.segments.slice(r.pathIndex),e.children),d1(i,0,o)}return r.match&&0===o.length?new He(e.segments,{}):r.match&&!e.hasChildren()?Lf(e,n,t):r.match?d1(e,0,o):Lf(e,n,t)}function d1(e,n,t){if(0===t.length)return new He(e.segments,{});{const r=function yj(e){return l1(e[0])?e[0].outlets:{[fe]:e}}(t),o={};if(Object.keys(r).some(i=>i!==fe)&&e.children[fe]&&1===e.numberOfChildren&&0===e.children[fe].segments.length){const i=d1(e.children[fe],n,t);return new He(e.segments,i.children)}return Object.entries(r).forEach(([i,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[i]=m6(e.children[i],n,a))}),Object.entries(e.children).forEach(([i,a])=>{void 0===r[i]&&(o[i]=a)}),new He(e.segments,o)}}function Lf(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o<t.length;){const i=t[o];if(l1(i)){const c=mj(i.outlets);return new He(r,c)}if(0===o&&vu(t[0])){r.push(new i1(e.segments[n].path,k6(t[0]))),o++;continue}const a=l1(i)?i.outlets[fe]:`${i}`,s=o<t.length-1?t[o+1]:null;a&&s&&vu(s)?(r.push(new i1(a,k6(s))),o+=2):(r.push(new i1(a,{})),o++)}return new He(r,{})}function mj(e){const n={};return Object.entries(e).forEach(([t,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Lf(new He([],{}),0,r))}),n}function k6(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function v6(e,n,t){return e==t.path&&$r(n,t.parameters)}const u1="imperative";var xe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(xe||{});class Wr{id;url;constructor(n,t){this.id=n,this.url=t}}class h1 extends Wr{type=xe.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",o=null){super(n,t),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ko extends Wr{urlAfterRedirects;type=xe.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var In=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e}(In||{}),_u=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(_u||{});class Xo extends Wr{reason;code;type=xe.NavigationCancel;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bs extends Wr{reason;code;type=xe.NavigationSkipped;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}}class Ff extends Wr{error;target;type=xe.NavigationError;constructor(n,t,r,o){super(n,t),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class M6 extends Wr{urlAfterRedirects;state;type=xe.RoutesRecognized;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vj extends Wr{urlAfterRedirects;state;type=xe.GuardsCheckStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mj extends Wr{urlAfterRedirects;state;shouldActivate;type=xe.GuardsCheckEnd;constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _j extends Wr{urlAfterRedirects;state;type=xe.ResolveStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wj extends Wr{urlAfterRedirects;state;type=xe.ResolveEnd;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bj{route;type=xe.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Cj{route;type=xe.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Dj{snapshot;type=xe.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xj{snapshot;type=xe.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ej{snapshot;type=xe.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sj{snapshot;type=xe.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _6{routerEvent;position;anchor;scrollBehavior;type=xe.Scroll;constructor(n,t,r,o){this.routerEvent=n,this.position=t,this.anchor=r,this.scrollBehavior=o}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Pf{}class wu{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}class Ij{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new p1(this.rootInjector)}}let p1=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Ij(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(de(Nt))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class w6{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Vf(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Vf(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=jf(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return jf(n,this._root).map(t=>t.value)}}function Vf(e,n){if(e===n.value)return n;for(const t of n.children){const r=Vf(e,t);if(r)return r}return null}function jf(e,n){if(e===n.value)return[n];for(const t of n.children){const r=jf(e,t);if(r.length)return r.unshift(n),r}return[]}class wr{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Cs(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class b6 extends w6{snapshot;constructor(n,t){super(n),this.snapshot=t,Hf(this,n)}toString(){return this.snapshot.toString()}}function C6(e,n){const t=function Tj(e,n){const a=new Cu([],{},{},"",{},fe,e,null,{},n);return new D6("",new wr(a,[]))}(e,n),r=new On([new i1("",{})]),o=new On({}),i=new On({}),a=new On({}),s=new On(""),c=new ia(r,o,a,s,i,fe,e,t.root);return c.snapshot=t.root,new b6(new wr(c,[]),t)}class ia{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,o,i,a,s,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(at(l=>l[o1]))??ke(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(at(n=>ws(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(at(n=>ws(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bu(e,n,t="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===n||"always"!==t&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...o?.data,...e._resolvedData}},o&&E6(o)&&(r.resolve[o1]=o.title),r}class Cu{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[o1]}constructor(n,t,r,o,i,a,s,c,l,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=l,this._environmentInjector=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??=ws(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ws(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class D6 extends w6{url;constructor(n,t){super(t),this.url=n,Hf(this,t)}toString(){return x6(this._root)}}function Hf(e,n){n.value._routerState=e,n.children.forEach(t=>Hf(e,t))}function x6(e){const n=e.children.length>0?` { ${e.children.map(x6).join(", ")} } `:"";return`${e.value}${n}`}function zf(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,$r(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),$r(n.params,t.params)||e.paramsSubject.next(t.params),function UV(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!$r(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),$r(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Bf(e,n){const t=$r(e.params,n.params)&&function YV(e,n){return ra(e,n)&&e.every((t,r)=>$r(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Bf(e.parent,n.parent))}function E6(e){return"string"==typeof e.title||null===e.title}const Rj=new P("");let qf=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=fe;activateEvents=new _e;deactivateEvents=new _e;attachEvents=new _e;detachEvents=new _e;routerOutletData=OF();parentContexts=D(p1);location=D(Vn);changeDetector=D(Mr);inputBinder=D(Du,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=t;const o=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new Nj(t,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Y({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Pn]})}return e})();class Nj{route;childContexts;parent;outletData;constructor(n,t,r,o){this.route=n,this.childContexts=t,this.parent=r,this.outletData=o}get(n,t){return n===ia?this.route:n===p1?this.childContexts:n===Rj?this.outletData:this.parent.get(n,t)}}const Du=new P("");let S6=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=Y8([r.queryParams,r.params,r.data]).pipe(mo(([i,a,s],c)=>(s={...i,...a,...s},0===c?ke(s):Promise.resolve(s)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const a=function LP(e){const n=Ie(e);if(!n)return null;const t=new Nc(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(a)for(const{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,i[s]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),A6=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){1&r&&q(0,"router-outlet")},dependencies:[qf],encapsulation:2})}return e})();function Uf(e){const n=e.children&&e.children.map(Uf),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==fe&&(t.component=A6),t}function f1(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function Lj(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return f1(e,r,o);return f1(e,r)})}(e,n,t);return new wr(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const a=i.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>f1(e,s)),a}}const r=function Fj(e){return new ia(new On(e.url),new On(e.params),new On(e.queryParams),new On(e.fragment),new On(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>f1(e,i));return new wr(r,o)}}class $f{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const I6="ngNavigationCancelingError";function xu(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=oa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=T6(!1,In.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function T6(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[I6]=!0,t.cancellationCode=n,t}function R6(e){return!!e&&e[I6]}class Vj{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),zf(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=Cs(t);n.children.forEach(i=>{const a=i.value.outlet;this.deactivateRoutes(i,o[a],r),delete o[a]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const a=r.getContext(o.outlet);a&&this.deactivateChildRoutes(n,t,a.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Cs(n);for(const a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);if(r&&r.outlet){const a=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Cs(n);for(const a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=Cs(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Sj(i.value.snapshot))}),n.children.length&&this.forwardEvent(new xj(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(zf(o),o===i)if(o.component){const a=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,a.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const a=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),zf(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,r)}}class N6{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Eu{component;route;constructor(n,t){this.component=n,this.route=t}}function jj(e,n,t){const r=e._root;return y1(r,n?n._root:null,t,[r.value])}function Ds(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function EC(e){return null!==X1(e)}(e)?n.get(e):e:r}function y1(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Cs(n);return e.children.forEach(a=>{(function zj(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,a=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){const c=function Bj(e,n,t){if("function"==typeof t)return wn(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!ra(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ra(e.url,n.url)||!$r(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bf(e,n)||!$r(e.queryParams,n.queryParams);default:return!Bf(e,n)}}(a,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new N6(r)):(i.data=a.data,i._resolvedData=a._resolvedData),y1(e,n,i.component?s?s.children:null:t,r,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Eu(s.outlet.component,a))}else a&&g1(n,s,o),o.canActivateChecks.push(new N6(r)),y1(e,null,i.component?s?s.children:null:t,r,o)})(a,i[a.value.outlet],t,r.concat([a.value]),o),delete i[a.value.outlet]}),Object.entries(i).forEach(([a,s])=>g1(s,t.getContext(a),o)),o}function g1(e,n,t){const r=Cs(e),o=e.value;Object.entries(r).forEach(([i,a])=>{g1(a,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Eu(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function m1(e){return"function"==typeof e}function O6(e){return e instanceof Df||"EmptyError"===e?.name}const Su=Symbol("INITIAL_VALUE");function xs(){return mo(e=>Y8(e.map(n=>n.pipe(Ur(1),function FV(...e){const n=pu(e);return qt((t,r)=>{(n?n1(e,t,n):n1(e,t)).subscribe(r)})}(Su)))).pipe(at(n=>{for(const t of n)if(!0!==t){if(t===Su)return Su;if(!1===t||Kj(t))return t}return!0}),Hn(n=>n!==Su),Ur(1)))}function Kj(e){return oa(e)||e instanceof $f}function L6(e){return e.aborted?ke(void 0).pipe(Ur(1)):new We(n=>{const t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function F6(e){return Lt(L6(e))}function P6(e){return function pC(...e){return Dg(e)}(_r(n=>{if("boolean"!=typeof n)throw xu(0,n)}),at(n=>!0===n))}class vo extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,vo.prototype)}}class k1 extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,k1.prototype)}}function aH(e){throw new N(4e3,!1)}class cH{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){return H(function*(){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return r;if(o.numberOfChildren>1||!o.children[fe])throw aH();o=o.children[fe]}})()}applyRedirectCommands(n,t,r,o,i){var a=this;return H(function*(){const s=yield function lH(e,n,t){if("string"==typeof e)return Promise.resolve(e);const r=e,{queryParams:o,fragment:i,routeConfig:a,url:s,outlet:c,params:l,data:d,title:h,paramMap:y,queryParamMap:f}=n;return fu(na(wn(t,()=>r({params:l,data:d,queryParams:o,fragment:i,routeConfig:a,url:s,outlet:c,title:h,paramMap:y,queryParamMap:f}))))}(t,o,i);if(s instanceof Gr)throw new k1(s);const c=a.applyRedirectCreateUrlTree(s,a.urlSerializer.parse(s),n,r);if("/"===s[0])throw new k1(c);return c})()}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new Gr(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&":"===i[0]){const s=i.substring(1);r[o]=t[s]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let a={};return Object.entries(t.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,r,o)}),new He(i,a)}createSegments(n,t,r,o){return t.map(i=>":"===i.path[0]?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new N(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}function br(e){return e.outlet||fe}function fH(e,n){const t=e.filter(r=>br(r)===n);return t.push(...e.filter(r=>br(r)!==n)),t}const Gf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function yH(e,n,t,r,o,i){const a=V6(e,n,t);return a.matched?(r=function dH(e,n){return e.providers&&!e._injector&&(e._injector=bd(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function iH(e,n,t,r,o){const i=n.canMatch;return i&&0!==i.length?ke(i.map(s=>{const c=Ds(s,e);return na(function Zj(e){return e&&m1(e.canMatch)}(c)?c.canMatch(n,t):wn(e,()=>c(n,t))).pipe(F6(o))})).pipe(xs(),P6()):ke(!0)}(r,n,t,0,i).pipe(at(s=>!0===s?a:{...Gf}))):ke(a)}function V6(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Gf}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||qV)(t,e,n);if(!o)return{...Gf};const i={};Object.entries(o.posParams??{}).forEach(([s,c])=>{i[s]=c.path});const a=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function j6(e,n,t,r){return t.length>0&&function kH(e,n,t){return t.some(r=>Au(e,n,r)&&br(r)!==fe)}(e,t,r)?{segmentGroup:new He(n,mH(r,new He(t,e.children))),slicedSegments:[]}:0===t.length&&function vH(e,n,t){return t.some(r=>Au(e,n,r))}(e,t,r)?{segmentGroup:new He(e.segments,gH(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new He(e.segments,e.children),slicedSegments:t}}function gH(e,n,t,r){const o={};for(const i of t)if(Au(e,n,i)&&!r[br(i)]){const a=new He([],{});o[br(i)]=a}return{...r,...o}}function mH(e,n){const t={};t[fe]=n;for(const r of e)if(""===r.path&&br(r)!==fe){const o=new He([],{});t[br(r)]=o}return t}function Au(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class _H{}function Wf(){return(Wf=H(function*(e,n,t,r,o,i,a="emptyOnly",s){return new CH(e,n,t,r,o,a,i,s).recognize()})).apply(this,arguments)}class CH{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,o,i,a,s,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=c,this.applyRedirects=new cH(this.urlSerializer,this.urlTree)}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}recognize(){var n=this;return H(function*(){const t=j6(n.urlTree.root,[],[],n.config).segmentGroup,{children:r,rootSnapshot:o}=yield n.match(t),i=new wr(o,r),a=new D6("",i),s=function uj(e,n,t=null,r=null,o=new s1){return p6(h6(e),n,t,r,o)}(o,[],n.urlTree.queryParams,n.urlTree.fragment);return s.queryParams=n.urlTree.queryParams,a.url=n.urlSerializer.serialize(s),{state:a,tree:s}})()}match(n){var t=this;return H(function*(){const r=new Cu([],Object.freeze({}),Object.freeze({...t.urlTree.queryParams}),t.urlTree.fragment,Object.freeze({}),fe,t.rootComponentType,null,{},t.injector);try{return{children:yield t.processSegmentGroup(t.injector,t.config,n,fe,r),rootSnapshot:r}}catch(o){if(o instanceof k1)return t.urlTree=o.urlTree,t.match(o.urlTree.root);throw o instanceof vo?t.noMatchError(o):o}})()}processSegmentGroup(n,t,r,o,i){var a=this;return H(function*(){if(0===r.segments.length&&r.hasChildren())return a.processChildren(n,t,r,i);const s=yield a.processSegment(n,t,r,r.segments,o,!0,i);return s instanceof wr?[s]:[]})()}processChildren(n,t,r,o){var i=this;return H(function*(){const a=[];for(const l of Object.keys(r.children))"primary"===l?a.unshift(l):a.push(l);let s=[];for(const l of a){const d=r.children[l],h=fH(t,l),y=yield i.processSegmentGroup(n,h,d,l,o);s.push(...y)}const c=H6(s);return function DH(e){e.sort((n,t)=>n.value.outlet===fe?-1:t.value.outlet===fe?1:n.value.outlet.localeCompare(t.value.outlet))}(c),c})()}processSegment(n,t,r,o,i,a,s){var c=this;return H(function*(){for(const l of t)try{return yield c.processSegmentAgainstRoute(l._injector??n,t,l,r,o,i,a,s)}catch(d){if(d instanceof vo||O6(d))continue;throw d}if(function MH(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i))return new _H;throw new vo(r)})()}processSegmentAgainstRoute(n,t,r,o,i,a,s,c){var l=this;return H(function*(){if(br(r)!==a&&(a===fe||!Au(o,i,r)))throw new vo(o);if(void 0===r.redirectTo)return l.matchSegmentAgainstRoute(n,o,r,i,a,c);if(l.allowRedirects&&s)return l.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,a,c);throw new vo(o)})()}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,a,s){var c=this;return H(function*(){const{matched:l,parameters:d,consumedSegments:h,positionalParamSegments:y,remainingSegments:f}=V6(t,o,i);if(!l)throw new vo(t);"string"==typeof o.redirectTo&&"/"===o.redirectTo[0]&&(c.absoluteRedirectCount++,c.absoluteRedirectCount>31&&(c.allowRedirects=!1));const M=new Cu(i,d,Object.freeze({...c.urlTree.queryParams}),c.urlTree.fragment,z6(o),br(o),o.component??o._loadedComponent??null,o,B6(o),n),b=bu(M,s,c.paramsInheritanceStrategy);if(M.params=Object.freeze(b.params),M.data=Object.freeze(b.data),c.abortSignal.aborted)throw new Error(c.abortSignal.reason);const x=yield c.applyRedirects.applyRedirectCommands(h,o.redirectTo,y,M,n),R=yield c.applyRedirects.lineralizeSegments(o,x);return c.processSegment(n,r,t,R.concat(f),a,!1,s)})()}matchSegmentAgainstRoute(n,t,r,o,i,a){var s=this;return H(function*(){if(s.abortSignal.aborted)throw new Error(s.abortSignal.reason);const c=yield fu(yH(t,r,o,n,0,s.abortSignal));if("**"===r.path&&(t.children={}),!c?.matched)throw new vo(t);n=r._injector??n;const{routes:l}=yield s.getChildConfig(n,r,o),d=r._loadedInjector??n,{parameters:h,consumedSegments:y,remainingSegments:f}=c,M=new Cu(y,h,Object.freeze({...s.urlTree.queryParams}),s.urlTree.fragment,z6(r),br(r),r.component??r._loadedComponent??null,r,B6(r),n),b=bu(M,a,s.paramsInheritanceStrategy);M.params=Object.freeze(b.params),M.data=Object.freeze(b.data);const{segmentGroup:x,slicedSegments:R}=j6(t,y,f,l);if(0===R.length&&x.hasChildren()){const Z=yield s.processChildren(d,l,x,M);return new wr(M,Z)}if(0===l.length&&0===R.length)return new wr(M,[]);const A=br(r)===i,$=yield s.processSegment(d,l,x,R,A?fe:i,!0,M);return new wr(M,$ instanceof wr?[$]:[])})()}getChildConfig(n,t,r){var o=this;return H(function*(){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(void 0!==t._loadedRoutes){const a=t._loadedNgModuleFactory;return a&&!t._loadedInjector&&(t._loadedInjector=a.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(o.abortSignal.aborted)throw new Error(o.abortSignal.reason);if(yield fu(function oH(e,n,t,r,o){const i=n.canLoad;return void 0===i||0===i.length?ke(!0):ke(i.map(s=>{const c=Ds(s,e),d=na(function Uj(e){return e&&m1(e.canLoad)}(c)?c.canLoad(n,t):wn(e,()=>c(n,t)));return o?d.pipe(F6(o)):d})).pipe(xs(),P6())}(n,t,r,0,o.abortSignal))){const a=yield o.configLoader.loadChildren(n,t);return t._loadedRoutes=a.routes,t._loadedInjector=a.injector,t._loadedNgModuleFactory=a.factory,a}throw function sH(){throw T6(!1,In.GuardRejected)}()}return{routes:[],injector:n}})()}}function xH(e){const n=e.value.routeConfig;return n&&""===n.path}function H6(e){const n=[],t=new Set;for(const r of e){if(!xH(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=H6(r.children);n.push(new wr(r.value,o))}return n.filter(r=>!t.has(r))}function z6(e){return e.data||{}}function B6(e){return e.resolve||{}}function q6(e){const n=e.children.map(t=>q6(t)).flat();return[e,...n]}function U6(e){return mo(n=>{const t=e(n);return t?Zt(t).pipe(at(()=>n)):ke(n)})}let $6=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===fe);return r}getResolvedTitleForRoute(t){return t.data[o1]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(RH),providedIn:"root"})}return e})(),RH=(()=>{class e extends $6{title;constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(de(VV))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Es=new P("",{factory:()=>({})}),Iu=new P("");let Zf=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=D(cF);loadComponent(t,r){var o=this;return H(function*(){if(o.componentLoaders.get(r))return o.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);o.onLoadStartListener&&o.onLoadStartListener(r);const i=H(function*(){try{const a=yield n6(wn(t,()=>r.loadComponent())),s=yield W6(G6(a));return o.onLoadEndListener&&o.onLoadEndListener(r),r._loadedComponent=s,s}finally{o.componentLoaders.delete(r)}})();return o.componentLoaders.set(r,i),i})()}loadChildren(t,r){var o=this;if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=H(function*(){try{const a=yield function NH(e,n,t,r){return Kf.apply(this,arguments)}(r,o.compiler,t,o.onLoadEndListener);return r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,a}finally{o.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Kf(){return(Kf=H(function*(e,n,t,r){const o=yield n6(wn(t,()=>e.loadChildren())),i=yield W6(G6(o));let a;a=i instanceof L5||Array.isArray(i)?i:yield n.compileModuleAsync(i),r&&r(e);let s,c,d;return Array.isArray(a)?c=a:(s=a.create(t).injector,d=a,c=s.get(Iu,[],{optional:!0,self:!0}).flat()),{routes:c.map(Uf),injector:s,factory:d}})).apply(this,arguments)}function G6(e){return function OH(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}function W6(e){return Yf.apply(this,arguments)}function Yf(){return(Yf=H(function*(e){return e})).apply(this,arguments)}let Qf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(LH),providedIn:"root"})}return e})(),LH=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Z6=new P(""),K6=new P("");function FH(e,n,t){const r=e.get(K6),o=e.get(Et);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i;const a=new Promise(l=>{i=l}),s=o.startViewTransition(()=>(i(),function PH(e){return new Promise(n=>{Ti({read:()=>setTimeout(n)},{injector:e})})}(e)));s.updateCallbackDone.catch(l=>{}),s.ready.catch(l=>{}),s.finished.catch(l=>{});const{onViewTransitionCreated:c}=r;return c&&wn(e,()=>c({transition:s,from:n,to:t})),a}const VH=()=>{},Y6=new P("");let Xf=(()=>{class e{currentNavigation=jr(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=jr(null);events=new it;transitionAbortWithErrorSubject=new it;configLoader=D(Zf);environmentInjector=D(Nt);destroyRef=D(er);urlSerializer=D(a1);rootContexts=D(p1);location=D(ec);inputBindingEnabled=null!==D(Du,{optional:!0});titleStrategy=D($6);options=D(Es,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=D(Qf);createViewTransition=D(Z6,{optional:!0});navigationErrorHandler=D(Y6,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>ke(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=o=>this.events.next(new Cj(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new bj(o)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;Oe(()=>{this.transitions?.next({...t,extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r})})}setupNavigations(t){return this.transitions=new On(null),this.transitions.pipe(Hn(r=>null!==r),mo(r=>{let o=!1;const i=new AbortController,a=()=>!o&&this.currentTransition?.id===r.id;return ke(r).pipe(mo(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",In.SupersededByNewNavigation),zt;this.currentTransition=r;const c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:"string"==typeof s.extras.browserUrl?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:c?{...c,previousNavigation:null}:null,abort:()=>i.abort()});const l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation))return this.events.next(new bs(s.id,this.urlSerializer.serialize(s.rawUrl),"",_u.IgnoredSameUrlNavigation)),s.resolve(!1),zt;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return ke(s).pipe(mo(h=>(this.events.next(new h1(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?zt:Promise.resolve(h))),function EH(e,n,t,r,o,i,a){return yn(function(){var s=H(function*(c){const{state:l,tree:d}=yield function wH(e,n,t,r,o,i){return Wf.apply(this,arguments)}(e,n,t,r,c.extractedUrl,o,i,a);return{...c,targetSnapshot:l,urlAfterRedirects:d}});return function(c){return s.apply(this,arguments)}}())}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),_r(h=>{r.targetSnapshot=h.targetSnapshot,r.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=h.urlAfterRedirects,f));const y=new M6(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(y)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){const{id:h,extractedUrl:y,source:f,restoredState:M,extras:b}=s,x=new h1(h,this.urlSerializer.serialize(y),f,M);this.events.next(x);const R=C6(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r={...s,targetSnapshot:R,urlAfterRedirects:y,extras:{...b,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(A=>(A.finalUrl=y,A)),ke(r)}return this.events.next(new bs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",_u.IgnoredByUrlHandlingStrategy)),s.resolve(!1),zt}),at(s=>{const c=new vj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(c),this.currentTransition=r={...s,guards:jj(s.targetSnapshot,s.currentSnapshot,this.rootContexts)},r}),function Yj(e){return yn(n=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return 0===i.length&&0===o.length?ke({...n,guardsResult:!0}):function Qj(e,n,t){return Zt(e).pipe(yn(r=>function rH(e,n,t,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?ke(o.map(a=>{const s=n._environmentInjector,c=Ds(a,s);return na(function Wj(e){return e&&m1(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):wn(s,()=>c(e,n,t,r))).pipe(ta())})).pipe(xs()):ke(!0)}(r.component,r.route,t,n)),ta(r=>!0!==r,!0))}(i,t,r).pipe(yn(a=>a&&function qj(e){return"boolean"==typeof e}(a)?function Xj(e,n,t){return Zt(n).pipe(Ef(r=>n1(function eH(e,n){return null!==e&&n&&n(new Dj(e)),ke(!0)}(r.route.parent,t),function Jj(e,n){return null!==e&&n&&n(new Ej(e)),ke(!0)}(r.route,t),function nH(e,n){const t=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(i=>function Hj(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(i)).filter(i=>null!==i).map(i=>xf(()=>ke(i.guards.map(s=>{const c=i.node._environmentInjector,l=Ds(s,c);return na(function Gj(e){return e&&m1(e.canActivateChild)}(l)?l.canActivateChild(t,e):wn(c,()=>l(t,e))).pipe(ta())})).pipe(xs())));return ke(o).pipe(xs())}(e,r.path),function tH(e,n){const t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||0===t.length)return ke(!0);const r=t.map(o=>xf(()=>{const i=n._environmentInjector,a=Ds(o,i);return na(function $j(e){return e&&m1(e.canActivate)}(a)?a.canActivate(n,e):wn(i,()=>a(n,e))).pipe(ta())}));return ke(r).pipe(xs())}(e,r.route))),ta(r=>!0!==r,!0))}(t,o,e):ke(a)),at(a=>({...n,guardsResult:a})))})}(s=>this.events.next(s)),mo(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&"boolean"!=typeof s.guardsResult)throw xu(0,s.guardsResult);const c=new Mj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(c),!a())return zt;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",In.GuardRejected),zt;if(0===s.guards.canActivateChecks.length)return ke(s);const l=new _j(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(l),!a())return zt;let d=!1;return ke(s).pipe(function SH(e){return yn(n=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return ke(n);const o=new Set(r.map(s=>s.route)),i=new Set;for(const s of o)if(!i.has(s))for(const c of q6(s))i.add(c);let a=0;return Zt(i).pipe(Ef(s=>o.has(s)?function AH(e,n,t){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!E6(r)&&(o[o1]=r.title),xf(()=>(e.data=bu(e,e.parent,t).resolve,function IH(e,n,t){const r=If(e);if(0===r.length)return ke({});const o={};return Zt(r).pipe(yn(i=>function TH(e,n,t){const r=n._environmentInjector,o=Ds(e,r);return na(o.resolve?o.resolve(n,t):wn(r,()=>o(n,t)))}(e[i],n,t).pipe(ta(),_r(a=>{if(a instanceof $f)throw xu(new s1,a);o[i]=a}))),X8(1),at(()=>o),Sf(i=>O6(i)?zt:function RV(e,n){const t=Ee(e)?e:()=>e,r=o=>o.error(t());return new We(n?o=>n.schedule(r,0,o):r)}(i)))}(o,e,n).pipe(at(i=>(e._resolvedData=i,e.data={...e.data,...i},null)))))}(s,t,e):(s.data=bu(s,s.parent,e).resolve,ke(void 0))),_r(()=>a++),X8(1),yn(s=>a===i.size?ke(n):zt))})}(this.paramsInheritanceStrategy),_r({next:()=>{d=!0;const h=new wj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(h)},complete:()=>{d||this.cancelNavigationTransition(s,"",In.NoDataFromResolver)}}))}),U6(s=>{const c=d=>{const h=[];d.routeConfig?._loadedComponent?d.component=d.routeConfig?._loadedComponent:d.routeConfig?.loadComponent&&h.push(this.configLoader.loadComponent(d._environmentInjector,d.routeConfig).then(f=>{d.component=f}));for(const y of d.children)h.push(...c(y));return h},l=c(s.targetSnapshot.root);return 0===l.length?ke(s):Zt(Promise.all(l).then(()=>s))}),U6(()=>this.afterPreactivation()),mo(()=>{const{currentSnapshot:s,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,s.root,c.root);return l?Zt(l).pipe(at(()=>r)):ke(r)}),Ur(1),at(s=>{const c=function Oj(e,n,t){const r=f1(e,n._root,t?t._root:void 0);return new b6(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=r=s={...s,targetRouterState:c},this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new Pf),a()&&(new Vj(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=VH,l)),this.lastSuccessfulNavigation.set(Oe(this.currentNavigation)),this.events.next(new ko(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)))}),Lt(L6(i.signal).pipe(Hn(()=>!o&&!r.targetRouterState),_r(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",In.Aborted)}))),_r({complete:()=>{o=!0}}),Lt(this.transitionAbortWithErrorSubject.pipe(_r(s=>{throw s}))),function PV(e){return qt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",In.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Sf(s=>{if(o=!0,this.destroyed)return r.resolve(!1),zt;if(R6(s))this.events.next(new Xo(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),function Pj(e){return R6(e)&&oa(e.url)}(s)?this.events.next(new wu(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{const c=new Ff(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{const l=wn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(!(l instanceof $f))throw this.events.next(c),s;{const{message:d,cancellationCode:h}=xu(0,l);this.events.next(new Xo(r.id,this.urlSerializer.serialize(r.extractedUrl),d,h)),this.events.next(new wu(l.redirectTo,l.navigationBehaviorOptions))}}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return zt}))}))}cancelNavigationTransition(t,r,o){const i=new Xo(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Oe(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jH(e){return e!==u1}const HH=new P("");let zH=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(qH),providedIn:"root"})}return e})();class BH{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}}let qH=(()=>{class e extends BH{static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X6=(()=>{class e{urlSerializer=D(a1);options=D(Es,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=D(ec);urlHandlingStrategy=D(Qf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Gr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:o}){const i=void 0!==t?this.urlHandlingStrategy.merge(t,r):r,a=o??i;return a instanceof Gr?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:o}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=t):this.rawUrlTree=o}routerState=C6(null,D(Nt));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:()=>D(UH),providedIn:"root"})}return e})(),UH=(()=>{class e extends X6{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{"popstate"===r.type&&setTimeout(()=>{t(r.url,r.state,"popstate")})})}handleRouterEvent(t,r){t instanceof h1?this.updateStateMemento():t instanceof bs?this.commitTransition(r):t instanceof M6?"eager"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Pf?(this.commitTransition(r),"deferred"===this.urlUpdateStrategy&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Xo&&!function kj(e){return e instanceof Xo&&(e.code===In.Redirect||e.code===In.SupersededByNewNavigation)}(t)?this.restoreHistory(r):t instanceof Ff?this.restoreHistory(r,!0):t instanceof ko&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:o}){const{replaceUrl:i,state:a}=r;if(this.location.isCurrentPathEqualTo(t)||i){const s=this.browserPageId,c={...a,...this.generateNgRouterState(o,s)};this.location.replaceState(t,"",c)}else{const s={...a,...this.generateNgRouterState(o,this.browserPageId+1)};this.location.go(t,"",s)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.getCurrentUrlTree()===t.finalUrl&&0===i&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J6(e,n){e.events.pipe(Hn(t=>t instanceof ko||t instanceof Xo||t instanceof Ff||t instanceof bs),at(t=>t instanceof ko||t instanceof bs?0:t instanceof Xo&&(t.code===In.Redirect||t.code===In.SupersededByNewNavigation)?2:1),Hn(t=>2!==t),Ur(1)).subscribe(()=>{n()})}const e7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},t7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zn=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=D(s3);stateManager=D(X6);options=D(Es,{optional:!0})||{};pendingTasks=D(Oo);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=D(Xf);urlSerializer=D(a1);location=D(ec);urlHandlingStrategy=D(Qf);injector=D(Nt);_events=new it;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=D(zH);injectorCleanup=D(HH,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=D(Iu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!D(Du,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Jt;subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=Oe(this.navigationTransitions.currentNavigation);if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof Xo&&r.code!==In.Redirect&&r.code!==In.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof ko)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof wu){const a=r.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c={scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||"eager"===this.urlUpdateStrategy||jH(o.source),...a};this.scheduleNavigation(s,u1,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function Aj(e){return!(e instanceof Pf||e instanceof wu)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),u1,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,o)=>{this.navigateToSyncWithBrowser(t,o,r)})}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const s=this.parseUrl(t);this.scheduleNavigation(s,r,a,i).catch(c=>{this.disposed||this.injector.get(Vr)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Oe(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Uf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:a,queryParamsHandling:s,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:a;let h,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}null!==d&&(d=this.removeEmptyProps(d));try{h=h6(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),h=this.currentUrlTree.root}return p6(h,t,d,l??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){const o=oa(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,u1,null,r)}navigate(t,r={skipLocationChange:!1}){return function $H(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new N(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(Yn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let o;if(o=!0===r?{...e7}:!1===r?{...t7}:r,oa(t))return Tf(this.currentUrlTree,t,o);const i=this.parseUrl(t);return Tf(this.currentUrlTree,i,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,i])=>(null!=i&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,a){if(this.disposed)return Promise.resolve(!1);let s,c,l;a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((h,y)=>{s=h,c=y});const d=this.pendingTasks.add();return J6(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),GH=(()=>{class e{title="config-ui";logoSrc="assets/images/homebridge-eufy-security.png";static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["app-root"]],decls:5,vars:0,consts:[[1,"pluginContent","container"],[1,"footer"]],template:function(r,o){1&r&&(m(0,"div",0),q(1,"router-outlet"),k(),q(2,"hr"),m(3,"div",1),_(4,"We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Anker Innovations Technology Co.LTd, and Shenzhen Oceanwing Smart Innovations Technology Co., Ltd, and its affiliated companies within the Anker Group, or any of its subsidiaries or its affiliates.\n"),k())},dependencies:[qf],encapsulation:2})}return e})();let r7=(()=>{class e{static \u0275prov=B({token:e,providedIn:"root",factory:()=>new ZH(D(Et),window)})}return e})();class ZH{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,t){this.window.scrollTo({...t,left:n[0],top:n[1]})}scrollToAnchor(n,t){const r=function KH(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const a=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(a)return a}o=r.nextNode()}}return null}(this.document,n);r&&(this.scrollToElement(r,t),r.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(Yn(2400,!1))}}scrollToElement(n,t){const r=n.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo({...t,left:o-a[0],top:i-a[1]})}}let f7=(()=>{class e extends Fo{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=w2(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){const a=this.prepareExternalUrl(o+ao(i))||this._platformLocation.pathname;this._platformLocation.pushState(t,r,a)}replaceState(t,r,o,i){const a=this.prepareExternalUrl(o+ao(i))||this._platformLocation.pathname;this._platformLocation.replaceState(t,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(de(_2),de(Bm,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();var Lu=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Lu||{});function sr(e,n){const t=pn(e),r=t[et.NumberSymbols][n];if(typeof r>"u"){if(12===n)return t[et.NumberSymbols][0];if(13===n)return t[et.NumberSymbols][1]}return r}const Kz=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function dy(e){const n=parseInt(e);if(isNaN(n))throw new N(2305,!1);return n}class lB{$implicit;ngForOf;index;count;constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Gu=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,a)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new lB(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)r.remove(null===i?void 0:i);else if(null!==i){const s=r.get(i);r.move(s,a),C7(s,o)}});for(let o=0,i=r.length;o<i;o++){const s=r.get(o).context;s.index=o,s.count=i,s.ngForOf=this._ngForOf}t.forEachIdentityChange(o=>{C7(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(T(Vn),T(rr),T(pf))};static \u0275dir=Y({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function C7(e,n){e.context.$implicit=n.item}let mn=(()=>{class e{_viewContainer;_context=new dB;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,r){this._viewContainer=t,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){D7(t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){D7(t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(T(Vn),T(rr))};static \u0275dir=Y({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})();class dB{$implicit=null;ngIf=null}function D7(e,n){if(e&&!e.createEmbeddedView)throw new N(2020,!1)}class py{_viewContainerRef;_templateRef;_created=!1;constructor(n,t){this._viewContainerRef=n,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let b1=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const r=t===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const r of this._defaultViews)r.enforceState(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Y({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),fy=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,r,o){this.ngSwitch=o,o._addCase(),this._view=new py(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(r){return new(r||e)(T(Vn),T(rr),T(b1,9))};static \u0275dir=Y({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),x7=(()=>{class e{constructor(t,r,o){o._addDefault(new py(t,r))}static \u0275fac=function(r){return new(r||e)(T(Vn),T(rr),T(b1,9))};static \u0275dir=Y({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})(),S7=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,o),get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(T(Vn))};static \u0275dir=Y({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pn]})}return e})();function Dr(e,n){return new N(2100,!1)}class pB{createSubscription(n,t,r){return Oe(()=>n.subscribe({next:t,error:r}))}dispose(n){Oe(()=>n.unsubscribe())}}class fB{createSubscription(n,t,r){return n.then(o=>t?.(o),o=>r?.(o)),{unsubscribe:()=>{t=null,r=null}}}dispose(n){n.unsubscribe()}}const yB=new fB,gB=new pB;let A7=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=D(Vr);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r),r=>this.applicationErrorHandler(r))}_selectStrategy(t){if(jc(t))return yB;if(E3(t))return gB;throw Dr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(T(Mr,16))};static \u0275pipe=Dn({name:"async",type:e,pure:!1})}return e})(),T7=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,o){if(!function yy(e){return!(null==e||""===e||e!=e)}(t))return null;o||=this._locale;try{return function eB(e,n,t){return function cy(e,n,t,r,o,i,a=!1){let s="",c=!1;if(isFinite(e)){let l=function rB(e){let r,o,i,a,s,n=Math.abs(e)+"",t=0;for((o=n.indexOf("."))>-1&&(n=n.replace(".","")),(i=n.search(/e/i))>0?(o<0&&(o=i),o+=+n.slice(i+1),n=n.substring(0,i)):o<0&&(o=n.length),i=0;"0"===n.charAt(i);i++);if(i===(s=n.length))r=[0],o=1;else{for(s--;"0"===n.charAt(s);)s--;for(o-=i,r=[],a=0;i<=s;i++,a++)r[a]=Number(n.charAt(i))}return o>22&&(r=r.splice(0,21),t=o-1,o=1),{digits:r,exponent:t,integerLen:o}}(e);a&&(l=function nB(e){if(0===e.digits[0])return e;const n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===n?e.digits.push(0,0):1===n&&e.digits.push(0),e.integerLen+=2),e}(l));let d=n.minInt,h=n.minFrac,y=n.maxFrac;if(i){const A=i.match(Kz);if(null===A)throw new N(2306,!1);const $=A[1],Z=A[3],G=A[5];null!=$&&(d=dy($)),null!=Z&&(h=dy(Z)),null!=G?y=dy(G):null!=Z&&h>y&&(y=h)}!function oB(e,n,t){if(n>t)throw new N(2307,!1);let r=e.digits,o=r.length-e.integerLen;const i=Math.min(Math.max(n,o),t);let a=i+e.integerLen,s=r[a];if(a>0){r.splice(Math.max(e.integerLen,a));for(let h=a;h<r.length;h++)r[h]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,a=i+1),r[0]=0;for(let h=1;h<a;h++)r[h]=0}if(s>=5)if(a-1<0){for(let h=0;h>a;h--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[a-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=0!==i;const l=n+e.integerLen,d=r.reduceRight(function(h,y,f,M){return M[f]=(y+=h)<10?y:y-10,c&&(0===M[f]&&f>=l?M.pop():c=!1),y>=10?1:0},0);d&&(r.unshift(d),e.integerLen++)}(l,h,y);let f=l.digits,M=l.integerLen;const b=l.exponent;let x=[];for(c=f.every(A=>!A);M<d;M++)f.unshift(0);for(;M<0;M++)f.unshift(0);M>0?x=f.splice(M,f.length):(x=f,f=[0]);const R=[];for(f.length>=n.lgSize&&R.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)R.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&R.unshift(f.join("")),s=R.join(sr(t,r)),x.length&&(s+=sr(t,o)+x.join("")),b&&(s+=sr(t,6)+"+"+b)}else s=sr(t,9);return s=e<0&&!c?n.negPre+s+n.negSuf:n.posPre+s+n.posSuf,s}(e,function ly(e,n="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],i=r[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],s=a[0],c=a[1]||"";t.posPre=s.substring(0,s.indexOf("#"));for(let d=0;d<c.length;d++){const h=c.charAt(d);"0"===h?t.minFrac=t.maxFrac=d+1:"#"===h?t.maxFrac=d+1:t.posSuf+=h}const l=s.split(",");if(t.gSize=l[1]?l[1].length:0,t.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){const d=o.length-t.posPre.length-t.posSuf.length,h=i.indexOf("#");t.negPre=i.substring(0,h).replace(/'/g,""),t.negSuf=i.slice(h+d).replace(/'/g,"")}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}(function ry(e,n){return pn(e)[et.NumberFormats][n]}(n,Lu.Percent),sr(n,5)),n,1,0,t,!0).replace(new RegExp("%","g"),sr(n,3))}(function gy(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new N(2309,!1);return e}(t),o,r)}catch(i){throw Dr()}}static \u0275fac=function(r){return new(r||e)(T(Ko,16))};static \u0275pipe=Dn({name:"percent",type:e,pure:!0})}return e})();let NB=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({})}return e})(),Zr=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=jr(null);get href(){return Oe(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new it;applicationErrorHandler=D(Vr);options=D(Es,{optional:!0});constructor(t,r,o,i,a,s){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=a,this.locationStrategy=s,this.reactiveHref.set(D(new RF("href"),{optional:!0}));const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c||!("object"!=typeof customElements||!customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){void 0===this.subscription&&(this.subscription=this.router.events.subscribe(t=>{t instanceof ko&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=oa(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,o,i,a){const s=this.urlTree;if(null===s||this.isAnchorElement&&(0!==t||r||o||i||a||"string"==typeof this.target&&"_self"!=this.target))return!0;const c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.reactiveHref.set(null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.routerLinkInput?null:oa(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(T(zn),T(ia),ac("tabindex"),T(Br),T(At),T(Fo))};static \u0275dir=Y({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){1&r&&V("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&r&&W("href",o.reactiveHref(),Vv)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_s],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_s],replaceUrl:[2,"replaceUrl","replaceUrl",_s],routerLink:"routerLink"},features:[Pn]})}return e})();class R7{}let FB=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,o,i){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(Hn(t=>t instanceof ko),Ef(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=bd(i.providers,t,""));const a=i._injector??t;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(a).injector);const s=i._loadedInjector??a;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(a,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(s,i.children??i._loadedRoutes))}return Zt(o).pipe(t1())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{if(t.destroyed)return ke(null);let o;o=r.loadChildren&&void 0===r.canLoad?Zt(this.loader.loadChildren(t,r)):ke(null);const i=o.pipe(yn(a=>null===a?ke(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??t,a.routes))));return r.loadComponent&&!r._loadedComponent?Zt([i,this.loader.loadComponent(t,r)]).pipe(t1()):i})}static \u0275fac=function(r){return new(r||e)(de(zn),de(Nt),de(R7),de(Zf))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const my=new P("");let N7=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=u1;restoredId=0;store={};urlSerializer=D(a1);zone=D(De);viewportScroller=D(r7);transitions=D(Xf);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof h1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ko?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof bs&&t.code===_u.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof _6)||"manual"===t.scrollBehavior)return;const r={behavior:"instant"};t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0],r):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position,r):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,r){var o=this;const i=Oe(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(H(function*(){yield new Promise(a=>{setTimeout(a),typeof requestAnimationFrame<"u"&&requestAnimationFrame(a)}),o.zone.run(()=>{o.transitions.events.next(new _6(t,"popstate"===o.lastSource?o.store[o.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){!function r5(){throw new Error("invalid")}()};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function lr(e,n){return{\u0275kind:e,\u0275providers:n}}function L7(){const e=D(wt);return n=>{const t=e.get(vr);if(n!==t.components[0])return;const r=e.get(zn),o=e.get(F7);1===e.get(ky)&&r.initialNavigation(),e.get(P7,null,{optional:!0})?.setUpPreloading(),e.get(my,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const F7=new P("",{factory:()=>new it}),ky=new P("",{factory:()=>1}),P7=new P("");function zB(e){return lr(0,[{provide:P7,useExisting:FB},{provide:R7,useExisting:e}])}function qB(e){return Ut("NgRouterViewTransitions"),lr(9,[{provide:Z6,useValue:FH},{provide:K6,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const UB=[ec,{provide:a1,useClass:s1},zn,p1,{provide:ia,useFactory:function O7(){return D(zn).routerState.root}},Zf,[]];let V7=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[UB,[],{provide:Iu,multi:!0,useValue:t},[],r?.errorHandler?{provide:Y6,useValue:r.errorHandler}:[],{provide:Es,useValue:r||{}},r?.useHash?{provide:Fo,useClass:f7}:{provide:Fo,useClass:qm},{provide:my,useFactory:()=>{const e=D(r7),n=D(Es);return n.scrollOffset&&e.setOffset(n.scrollOffset),new N7(n)}},r?.preloadingStrategy?zB(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ZB(r):[],r?.bindToComponentInputs?lr(8,[S6,{provide:Du,useExisting:S6}]).\u0275providers:[],r?.enableViewTransitions?qB().\u0275providers:[],[{provide:j7,useFactory:L7},{provide:T3,multi:!0,useExisting:j7}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Iu,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({})}return e})();function ZB(e){return["disabled"===e.initialNavigation?lr(3,[A3(()=>{D(zn).setUpLocationChangeListener()}),{provide:ky,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?lr(2,[{provide:vx,useValue:!0},{provide:ky,useValue:0},A3(()=>{const n=D(wt);return n.get(q9,Promise.resolve()).then(()=>new Promise(r=>{const o=n.get(zn),i=n.get(F7);J6(o,()=>{r(!0)}),n.get(Xf).afterPreactivation=()=>(r(!0),i.closed?ke(void 0):i),o.initialNavigation()}))})]).\u0275providers:[]]}const j7=new P("");let C1=(()=>{class e{constructor(){this.animation=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const{isArray:YB}=Array;function H7(e){return 1===e.length&&YB(e[0])?e[0]:e}function vy(...e){const n=hu(e),t=H7(e);return t.length?new We(r=>{let o=t.map(()=>[]),i=t.map(()=>!1);r.add(()=>{o=i=null});for(let a=0;!r.closed&&a<t.length;a++)on(t[a]).subscribe(bt(r,s=>{if(o[a].push(s),o.every(c=>c.length)){const c=o.map(l=>l.shift());r.next(n?n(...c):c),o.some((l,d)=>!l.length&&i[d])&&r.complete()}},()=>{i[a]=!0,!o[a].length&&r.complete()}));return()=>{o=i=null}}):zt}const QB=["addListener","removeListener"],XB=["addEventListener","removeEventListener"],JB=["on","off"];function qn(e,n,t,r){if(Ee(t)&&(r=t,t=void 0),r)return qn(e,n,t).pipe(Cf(r));const[o,i]=function nq(e){return Ee(e.addEventListener)&&Ee(e.removeEventListener)}(e)?XB.map(a=>s=>e[a](n,s,t)):function eq(e){return Ee(e.addListener)&&Ee(e.removeListener)}(e)?QB.map(z7(e,n)):function tq(e){return Ee(e.on)&&Ee(e.off)}(e)?JB.map(z7(e,n)):[];if(!o&&wf(e))return yn(a=>qn(a,n,t))(on(e));if(!o)throw new TypeError("Invalid event target");return new We(a=>{const s=(...c)=>a.next(1<c.length?c:c[0]);return o(s),()=>i(s)})}function z7(e,n){return t=>r=>e[t](n,r)}var rq={left:"right",right:"left",bottom:"top",top:"bottom"};function Wu(e){return e.replace(/left|right|bottom|top/g,function(n){return rq[n]})}function Kr(e){return e.split("-")[0]}var oq={start:"end",end:"start"};function B7(e){return e.replace(/start|end/g,function(n){return oq[n]})}var Un="top",xr="bottom",Er="right",$n="left",My="auto",D1=[Un,xr,Er,$n],As="start",x1="end",q7="viewport",E1="popper",U7=D1.reduce(function(e,n){return e.concat([n+"-"+As,n+"-"+x1])},[]),$7=[].concat(D1,[My]).reduce(function(e,n){return e.concat([n,n+"-"+As,n+"-"+x1])},[]),gq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function aa(e){return e instanceof Gn(e).Element||e instanceof Element}function dr(e){return e instanceof Gn(e).HTMLElement||e instanceof HTMLElement}function _y(e){return!(typeof ShadowRoot>"u")&&(e instanceof Gn(e).ShadowRoot||e instanceof ShadowRoot)}function Jo(e){return((aa(e)?e.ownerDocument:e.document)||window.document).documentElement}var sa=Math.max,Zu=Math.min,Is=Math.round;function wy(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function G7(){return!/^((?!chrome|android).)*safari/i.test(wy())}function Ts(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var r=e.getBoundingClientRect(),o=1,i=1;n&&dr(e)&&(o=e.offsetWidth>0&&Is(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Is(r.height)/e.offsetHeight||1);var s=(aa(e)?Gn(e):window).visualViewport,c=!G7()&&t,l=(r.left+(c&&s?s.offsetLeft:0))/o,d=(r.top+(c&&s?s.offsetTop:0))/i,h=r.width/o,y=r.height/i;return{width:h,height:y,top:d,right:l+h,bottom:d+y,left:l,x:l,y:d}}function by(e){var n=Gn(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Cy(e){return Ts(Jo(e)).left+by(e).scrollLeft}function _o(e){return Gn(e).getComputedStyle(e)}function Yr(e){return e?(e.nodeName||"").toLowerCase():null}function Ku(e){return"html"===Yr(e)?e:e.assignedSlot||e.parentNode||(_y(e)?e.host:null)||Jo(e)}function Dy(e){var n=_o(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function W7(e){return["html","body","#document"].indexOf(Yr(e))>=0?e.ownerDocument.body:dr(e)&&Dy(e)?e:W7(Ku(e))}function S1(e,n){var t;void 0===n&&(n=[]);var r=W7(e),o=r===(null==(t=e.ownerDocument)?void 0:t.body),i=Gn(r),a=o?[i].concat(i.visualViewport||[],Dy(r)?r:[]):r,s=n.concat(a);return o?s:s.concat(S1(Ku(a)))}function vq(e){return["table","td","th"].indexOf(Yr(e))>=0}function Z7(e){return dr(e)&&"fixed"!==_o(e).position?e.offsetParent:null}function A1(e){for(var n=Gn(e),t=Z7(e);t&&vq(t)&&"static"===_o(t).position;)t=Z7(t);return t&&("html"===Yr(t)||"body"===Yr(t)&&"static"===_o(t).position)?n:t||function Mq(e){var n=/firefox/i.test(wy());if(/Trident/i.test(wy())&&dr(e)&&"fixed"===_o(e).position)return null;var o=Ku(e);for(_y(o)&&(o=o.host);dr(o)&&["html","body"].indexOf(Yr(o))<0;){var i=_o(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}(e)||n}function K7(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&_y(t)){var r=n;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y7(e,n,t){return n===q7?xy(function mq(e,n){var t=Gn(e),r=Jo(e),o=t.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=G7();(l||!l&&"fixed"===n)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+Cy(e),y:c}}(e,t)):aa(n)?function _q(e,n){var t=Ts(e,!1,"fixed"===n);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(n,t):xy(function kq(e){var n,t=Jo(e),r=by(e),o=null==(n=e.ownerDocument)?void 0:n.body,i=sa(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=sa(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Cy(e),c=-r.scrollTop;return"rtl"===_o(o||t).direction&&(s+=sa(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(Jo(e)))}function Rs(e){return e.split("-")[1]}function Ey(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Q7(e){var c,n=e.reference,t=e.element,r=e.placement,o=r?Kr(r):null,i=r?Rs(r):null,a=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(o){case Un:c={x:a,y:n.y-t.height};break;case xr:c={x:a,y:n.y+n.height};break;case Er:c={x:n.x+n.width,y:s};break;case $n:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=o?Ey(o):null;if(null!=l){var d="y"===l?"height":"width";switch(i){case As:c[l]=c[l]-(n[d]/2-t[d]/2);break;case x1:c[l]=c[l]+(n[d]/2-t[d]/2)}}return c}function J7(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ew(e,n){return n.reduce(function(t,r){return t[r]=e,t},{})}function Sy(e,n){void 0===n&&(n={});var r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,d=void 0===l?q7:l,h=n.elementContext,y=void 0===h?E1:h,f=n.altBoundary,M=void 0!==f&&f,b=n.padding,x=void 0===b?0:b,R=J7("number"!=typeof x?x:ew(x,D1)),$=e.rects.popper,Z=e.elements[M?y===E1?"reference":E1:y],G=function bq(e,n,t,r){var o="clippingParents"===n?function wq(e){var n=S1(Ku(e)),r=["absolute","fixed"].indexOf(_o(e).position)>=0&&dr(e)?A1(e):e;return aa(r)?n.filter(function(o){return aa(o)&&K7(o,r)&&"body"!==Yr(o)}):[]}(e):[].concat(n),i=[].concat(o,[t]),s=i.reduce(function(c,l){var d=Y7(e,l,r);return c.top=sa(d.top,c.top),c.right=Zu(d.right,c.right),c.bottom=Zu(d.bottom,c.bottom),c.left=sa(d.left,c.left),c},Y7(e,i[0],r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(aa(Z)?Z:Z.contextElement||Jo(e.elements.popper),c,d,a),ye=Ts(e.elements.reference),Ae=Q7({reference:ye,element:$,strategy:"absolute",placement:o}),ct=xy(Object.assign({},$,Ae)),Ft=y===E1?ct:ye,Pt={top:G.top-Ft.top+R.top,bottom:Ft.bottom-G.bottom+R.bottom,left:G.left-Ft.left+R.left,right:Ft.right-G.right+R.right},cn=e.modifiersData.offset;if(y===E1&&cn){var Ar=cn[o];Object.keys(Pt).forEach(function(kn){var fa=[Er,xr].indexOf(kn)>=0?1:-1,ya=[Un,xr].indexOf(kn)>=0?"y":"x";Pt[kn]+=Ar[ya]*fa})}return Pt}const Eq={name:"flip",enabled:!0,phase:"main",fn:function xq(e){var n=e.state,t=e.options,r=e.name;if(!n.modifiersData[r]._skip){for(var o=t.mainAxis,i=void 0===o||o,a=t.altAxis,s=void 0===a||a,c=t.fallbackPlacements,l=t.padding,d=t.boundary,h=t.rootBoundary,y=t.altBoundary,f=t.flipVariations,M=void 0===f||f,b=t.allowedAutoPlacements,x=n.options.placement,R=Kr(x),$=c||(R!==x&&M?function Dq(e){if(Kr(e)===My)return[];var n=Wu(e);return[B7(e),n,B7(n)]}(x):[Wu(x)]),Z=[x].concat($).reduce(function(Ps,ii){return Ps.concat(Kr(ii)===My?function Cq(e,n){void 0===n&&(n={});var o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?$7:c,d=Rs(n.placement),h=d?s?U7:U7.filter(function(M){return Rs(M)===d}):D1,y=h.filter(function(M){return l.indexOf(M)>=0});0===y.length&&(y=h);var f=y.reduce(function(M,b){return M[b]=Sy(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[Kr(b)],M},{});return Object.keys(f).sort(function(M,b){return f[M]-f[b]})}(n,{placement:ii,boundary:d,rootBoundary:h,padding:l,flipVariations:M,allowedAutoPlacements:b}):ii)},[]),G=n.rects.reference,ye=n.rects.popper,Ae=new Map,ct=!0,Ft=Z[0],Pt=0;Pt<Z.length;Pt++){var cn=Z[Pt],Ar=Kr(cn),kn=Rs(cn)===As,fa=[Un,xr].indexOf(Ar)>=0,ya=fa?"width":"height",Zn=Sy(n,{placement:cn,boundary:d,rootBoundary:h,altBoundary:y,padding:l}),Ir=fa?kn?Er:$n:kn?xr:Un;G[ya]>ye[ya]&&(Ir=Wu(Ir));var mh=Wu(Ir),ga=[];if(i&&ga.push(Zn[Ar]<=0),s&&ga.push(Zn[Ir]<=0,Zn[mh]<=0),ga.every(function(Ps){return Ps})){Ft=cn,ct=!1;break}Ae.set(cn,ga)}if(ct)for(var Mg=function(ii){var B1=Z.find(function(Mh){var ma=Ae.get(Mh);if(ma)return ma.slice(0,ii).every(function(_g){return _g})});if(B1)return Ft=B1,"break"},z1=M?3:1;z1>0&&"break"!==Mg(z1);z1--);n.placement!==Ft&&(n.modifiersData[r]._skip=!0,n.placement=Ft,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function I1(e,n,t){return sa(e,Zu(n,t))}function Ay(e){var n=Ts(e),t=e.offsetWidth,r=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:r}}const Tq={name:"preventOverflow",enabled:!0,phase:"main",fn:function Iq(e){var n=e.state,t=e.options,r=e.name,o=t.mainAxis,i=void 0===o||o,a=t.altAxis,s=void 0!==a&&a,y=t.tether,f=void 0===y||y,M=t.tetherOffset,b=void 0===M?0:M,x=Sy(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),R=Kr(n.placement),A=Rs(n.placement),$=!A,Z=Ey(R),G=function Sq(e){return"x"===e?"y":"x"}(Z),ye=n.modifiersData.popperOffsets,Ae=n.rects.reference,ct=n.rects.popper,Ft="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,Pt="number"==typeof Ft?{mainAxis:Ft,altAxis:Ft}:Object.assign({mainAxis:0,altAxis:0},Ft),cn=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Ar={x:0,y:0};if(ye){if(i){var kn,fa="y"===Z?Un:$n,ya="y"===Z?xr:Er,Zn="y"===Z?"height":"width",Ir=ye[Z],mh=Ir+x[fa],ga=Ir-x[ya],kh=f?-ct[Zn]/2:0,Mg=A===As?Ae[Zn]:ct[Zn],z1=A===As?-ct[Zn]:-Ae[Zn],vh=n.elements.arrow,Ps=f&&vh?Ay(vh):{width:0,height:0},ii=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B1=ii[fa],Mh=ii[ya],ma=I1(0,Ae[Zn],Ps[Zn]),_g=$?Ae[Zn]/2-kh-ma-B1-Pt.mainAxis:Mg-ma-B1-Pt.mainAxis,r3e=$?-Ae[Zn]/2+kh+ma+Mh+Pt.mainAxis:z1+ma+Mh+Pt.mainAxis,wg=n.elements.arrow&&A1(n.elements.arrow),o3e=wg?"y"===Z?wg.clientTop||0:wg.clientLeft||0:0,nC=null!=(kn=cn?.[Z])?kn:0,a3e=Ir+r3e-nC,rC=I1(f?Zu(mh,Ir+_g-nC-o3e):mh,Ir,f?sa(ga,a3e):ga);ye[Z]=rC,Ar[Z]=rC-Ir}if(s){var oC,ka=ye[G],_h="y"===G?"height":"width",iC=ka+x["x"===Z?Un:$n],aC=ka-x["x"===Z?xr:Er],bg=-1!==[Un,$n].indexOf(R),sC=null!=(oC=cn?.[G])?oC:0,cC=bg?iC:ka-Ae[_h]-ct[_h]-sC+Pt.altAxis,lC=bg?ka+Ae[_h]+ct[_h]-sC-Pt.altAxis:aC,dC=f&&bg?function Aq(e,n,t){var r=I1(e,n,t);return r>t?t:r}(cC,ka,lC):I1(f?cC:iC,ka,f?lC:aC);ye[G]=dC,Ar[G]=dC-ka}n.modifiersData[r]=Ar}},requiresIfExists:["offset"]},Lq={name:"arrow",enabled:!0,phase:"main",fn:function Nq(e){var n,t=e.state,r=e.name,o=e.options,i=t.elements.arrow,a=t.modifiersData.popperOffsets,s=Kr(t.placement),c=Ey(s),d=[$n,Er].indexOf(s)>=0?"height":"width";if(i&&a){var h=function(n,t){return J7("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:ew(n,D1))}(o.padding,t),y=Ay(i),f="y"===c?Un:$n,M="y"===c?xr:Er,b=t.rects.reference[d]+t.rects.reference[c]-a[c]-t.rects.popper[d],x=a[c]-t.rects.reference[c],R=A1(i),A=R?"y"===c?R.clientHeight||0:R.clientWidth||0:0,ye=A/2-y[d]/2+(b/2-x/2),Ae=I1(h[f],ye,A-y[d]-h[M]);t.modifiersData[r]=((n={})[c]=Ae,n.centerOffset=Ae-ye,n)}},effect:function Oq(e){var n=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&!(o=n.elements.popper.querySelector(o))||K7(n.elements.popper,o)&&(n.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jq(e,n,t){void 0===t&&(t=!1);var r=dr(n),o=dr(n)&&function Vq(e){var n=e.getBoundingClientRect(),t=Is(n.width)/e.offsetWidth||1,r=Is(n.height)/e.offsetHeight||1;return 1!==t||1!==r}(n),i=Jo(n),a=Ts(e,o,t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&(("body"!==Yr(n)||Dy(i))&&(s=function Pq(e){return e!==Gn(e)&&dr(e)?function Fq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):by(e)}(n)),dr(n)?((c=Ts(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):i&&(c.x=Cy(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Hq(e){var n=new Map,t=new Set,r=[];function o(i){t.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.set(i.name,i)}),e.forEach(function(i){t.has(i.name)||o(i)}),r}function Bq(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var tw={placement:"bottom",modifiers:[],strategy:"absolute"};function nw(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(r){return!(r&&"function"==typeof r.getBoundingClientRect)})}function Uq(e){void 0===e&&(e={});var t=e.defaultModifiers,r=void 0===t?[]:t,o=e.defaultOptions,i=void 0===o?tw:o;return function(s,c,l){void 0===l&&(l=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},tw,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],y=!1,f={state:d,setOptions:function(R){var A="function"==typeof R?R(d.options):R;b(),d.options=Object.assign({},i,d.options,A),d.scrollParents={reference:aa(s)?S1(s):s.contextElement?S1(s.contextElement):[],popper:S1(c)};var $=function zq(e){var n=Hq(e);return gq.reduce(function(t,r){return t.concat(n.filter(function(o){return o.phase===r}))},[])}(function qq(e){var n=e.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(r,d.options.modifiers)));return d.orderedModifiers=$.filter(function(Z){return Z.enabled}),function M(){d.orderedModifiers.forEach(function(x){var A=x.options,Z=x.effect;if("function"==typeof Z){var G=Z({state:d,name:x.name,instance:f,options:void 0===A?{}:A});h.push(G||function(){})}})}(),f.update()},forceUpdate:function(){if(!y){var R=d.elements,A=R.reference,$=R.popper;if(nw(A,$)){d.rects={reference:jq(A,A1($),"fixed"===d.options.strategy),popper:Ay($)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(Pt){return d.modifiersData[Pt.name]=Object.assign({},Pt.data)});for(var Z=0;Z<d.orderedModifiers.length;Z++)if(!0!==d.reset){var G=d.orderedModifiers[Z],ye=G.fn,Ae=G.options;"function"==typeof ye&&(d=ye({state:d,options:void 0===Ae?{}:Ae,name:G.name,instance:f})||d)}else d.reset=!1,Z=-1}}},update:Bq(function(){return new Promise(function(x){f.forceUpdate(),x(d)})}),destroy:function(){b(),y=!0}};if(!nw(s,c))return f;function b(){h.forEach(function(x){return x()}),h=[]}return f.setOptions(l).then(function(x){!y&&l.onFirstUpdate&&l.onFirstUpdate(x)}),f}}var Yu={passive:!0},Kq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rw(e){var n,t=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,h=e.isFixed,y=a.x,f=void 0===y?0:y,M=a.y,b=void 0===M?0:M,x="function"==typeof d?d({x:f,y:b}):{x:f,y:b};f=x.x,b=x.y;var R=a.hasOwnProperty("x"),A=a.hasOwnProperty("y"),$=$n,Z=Un,G=window;if(l){var ye=A1(t),Ae="clientHeight",ct="clientWidth";ye===Gn(t)&&"static"!==_o(ye=Jo(t)).position&&"absolute"===s&&(Ae="scrollHeight",ct="scrollWidth"),(o===Un||(o===$n||o===Er)&&i===x1)&&(Z=xr,b-=(h&&ye===G&&G.visualViewport?G.visualViewport.height:ye[Ae])-r.height,b*=c?1:-1),o!==$n&&(o!==Un&&o!==xr||i!==x1)||($=Er,f-=(h&&ye===G&&G.visualViewport?G.visualViewport.width:ye[ct])-r.width,f*=c?1:-1)}var kn,cn=Object.assign({position:s},l&&Kq),Ar=!0===d?function Yq(e,n){var r=e.y,o=n.devicePixelRatio||1;return{x:Is(e.x*o)/o||0,y:Is(r*o)/o||0}}({x:f,y:b},Gn(t)):{x:f,y:b};return f=Ar.x,b=Ar.y,Object.assign({},cn,c?((kn={})[Z]=A?"0":"",kn[$]=R?"0":"",kn.transform=(G.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",kn):((n={})[Z]=A?b+"px":"",n[$]=R?f+"px":"",n.transform="",n))}var nU=Uq({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function $q(e){var n=e.state,t=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Gn(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&l.forEach(function(d){d.addEventListener("scroll",t.update,Yu)}),s&&c.addEventListener("resize",t.update,Yu),function(){i&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Yu)}),s&&c.removeEventListener("resize",t.update,Yu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function Wq(e){var n=e.state;n.modifiersData[e.name]=Q7({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Qq(e){var n=e.state,t=e.options,r=t.gpuAcceleration,o=void 0===r||r,i=t.adaptive,a=void 0===i||i,s=t.roundOffsets,c=void 0===s||s,l={placement:Kr(n.placement),variation:Rs(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,rw(Object.assign({},l,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,rw(Object.assign({},l,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function Jq(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var r=n.styles[t]||{},o=n.attributes[t]||{},i=n.elements[t];!dr(i)||!Yr(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];!1===s?i.removeAttribute(a):i.setAttribute(a,!0===s?"":s)}))})},effect:function eU(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],i=n.attributes[r]||{},s=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:t[r]).reduce(function(c,l){return c[l]="",c},{});!dr(o)||!Yr(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const iU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function oU(e){var n=e.state,r=e.name,o=e.options.offset,i=void 0===o?[0,0]:o,a=$7.reduce(function(d,h){return d[h]=function rU(e,n,t){var r=Kr(e),o=[$n,Un].indexOf(r)>=0?-1:1,i="function"==typeof t?t(Object.assign({},n,{placement:e})):t,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[$n,Er].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(h,n.rects,i),d},{}),s=a[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[r]=a}};class aU extends Jt{constructor(n,t){super()}schedule(n,t=0){return this}}const Qu={setInterval(e,n,...t){const{delegate:r}=Qu;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Qu;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},ow={now:()=>(ow.delegate||Date).now(),delegate:void 0};class T1{constructor(n,t=T1.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}T1.now=ow.now;const iw=new class cU extends T1{constructor(n,t=T1.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class sU extends aU{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Qu.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Qu.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,_a(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),lU=iw;function aw(e=0,n,t=lU){let r=-1;return null!=n&&(W8(n)?t=n:r=n),new We(o=>{let i=function dU(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;i<0&&(i=0);let a=0;return t.schedule(function(){o.closed||(o.next(a++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function sw(...e){return 1===(e=H7(e)).length?on(e[0]):new We(function uU(e){return n=>{let t=[];for(let r=0;t&&!n.closed&&r<e.length;r++)t.push(on(e[r]).subscribe(bt(n,o=>{if(t){for(let i=0;i<t.length;i++)i!==r&&t[i].unsubscribe();t=null}n.next(o)})))}}(e))}function Iy(...e){const n=hu(e);return qt((t,r)=>{const o=e.length,i=new Array(o);let a=e.map(()=>!1),s=!1;for(let c=0;c<o;c++)on(e[c]).subscribe(bt(r,l=>{i[c]=l,!s&&!a[c]&&(a[c]=!0,(s=a.every(hi))&&(a=null))},ui));t.subscribe(bt(r,c=>{if(s){const l=[c,...i];r.next(n?n(...l):l)}}))})}function cw(e,n){return n?t=>n1(n.pipe(Ur(1),function pU(){return qt((e,n)=>{e.subscribe(bt(n,ui))})}()),t.pipe(cw(e))):yn((t,r)=>on(e(t,r)).pipe(Ur(1),function fU(e){return at(()=>e)}(t)))}let gU=(()=>{class e{constructor(){this._element=D(Et).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const mU=/\s+/,kU=/ +/gi,vU={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},_U=/^left/,wU=/^right/,bU=/^start/,CU=/^end/;function lw({placement:e,baseClass:n},t){let r=Array.isArray(e)?e:e.split(mU),i=r.findIndex(l=>"auto"===l);i>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(l){null==r.find(d=>-1!==d.search("^"+l))&&r.splice(i++,1,l)});const a=r.map(l=>function MU(e,n){const[t,r]=vU[e];return n&&r||t}(l,t.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:l}){const d=new RegExp(n+"(-[a-z]+)*","gi"),h=l.elements.popper,y=l.placement;let f=h.className;f=f.replace(d,""),f+=` ${function DU(e,n){let[t,r]=n.split("-");const o=t.replace(_U,"start").replace(wU,"end");let i=[o];if(r){let a=r;("left"===t||"right"===t)&&(a=a.replace(bU,"top").replace(CU,"bottom")),i.push(`${o}-${a}`)}return e&&(i=i.map(a=>`${e}-${a}`)),i.join(" ")}(n,y)}`,f=f.trim().replace(kU," "),h.className=f}},Eq,Tq,Lq,{enabled:!0,name:"flip",options:{fallbackPlacements:a}}]}}function dw(e){return e}function Xu(e){return"string"==typeof e}function Ty(e){return null!=e}function Ry(e){return(e||document.body).getBoundingClientRect()}const OU=()=>{},R1=new Map,Sr=(e,n,t,r)=>{let o=r.context||{};const i=R1.get(n);if(i)switch(r.runningTransition){case"continue":return zt;case"stop":e.run(()=>i.transition$.complete()),o=Object.assign(i.context,o),R1.delete(n)}const a=t(n,r.animation,o)||OU;if(!r.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>a()),ke(void 0).pipe(function TU(e){return n=>new We(t=>n.subscribe({next:a=>e.run(()=>t.next(a)),error:a=>e.run(()=>t.error(a)),complete:()=>e.run(()=>t.complete())}))}(e));const s=new it,c=new it,l=s.pipe(function hU(...e){return n=>n1(n,ke(...e))}(!0));R1.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:o});const d=function NU(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const h=qn(n,"transitionend").pipe(Lt(l),Hn(({target:f})=>f===n));sw(aw(d+5).pipe(Lt(l)),h,c).pipe(Lt(l)).subscribe(()=>{R1.delete(n),e.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()},hw=e=>{R1.get(e)?.complete()},PU=(e,n,t)=>{let{direction:r,maxSize:o,dimension:i}=t;const{classList:a}=e;function s(){a.add("collapse"),"show"===r?a.add("show"):a.remove("show")}if(n)return o||(o=function FU(e,n){if(typeof navigator>"u")return"0px";const{classList:t}=e,r=t.contains("show");r||t.add("show"),e.style[n]="";const o=e.getBoundingClientRect()[n]+"px";return r||t.remove("show"),o}(e,i),t.maxSize=o,e.style[i]="show"!==r?o:"0px",a.remove("collapse","collapsing","show"),Ry(e),a.add("collapsing")),e.style[i]="show"===r?o:"0px",()=>{s(),a.remove("collapsing"),e.style[i]=""};s()},Ju=(e,n)=>!!n&&n.some(t=>t.contains(e)),pw=(e,n)=>!n||null!=function IU(e,n){return!n||typeof e.closest>"u"?null:e.closest(n)}(e,n),VU=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function HU(e,n,t,r,o,i,a,s){t&&e.runOutsideAngular((e=>VU?()=>setTimeout(()=>e(),100):e)(()=>{const l=qn(n,"keydown").pipe(Lt(o),Hn(y=>"Escape"===y.key),_r(y=>y.preventDefault())),d=qn(n,"mousedown").pipe(at(y=>{const f=y.target;return 2!==y.button&&!Ju(f,a)&&("inside"===t?Ju(f,i)&&pw(f,s):"outside"===t?!Ju(f,i):pw(f,s)||!Ju(f,i))}),Lt(o)),h=qn(n,"mouseup").pipe(Iy(d),Hn(([y,f])=>f),function yU(e,n=iw){const t=aw(e,n);return cw(()=>t)}(0),Lt(o));sw([l.pipe(at(y=>0)),h.pipe(at(y=>1))]).subscribe(y=>e.run(()=>r(y)))}))}const zU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function fw(e){const n=Array.from(e.querySelectorAll(zU)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}class ca{constructor(n,t,r){this.nodes=n,this.viewRef=t,this.componentRef=r}}class UU{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=D(Et),this._applicationRef=D(vr),this._injector=D(wt),this._viewContainerRef=D(Vn),this._ngZone=D(De)}open(n,t,r=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:o}=this._windowRef.location,i=new it;Ti({mixedReadWrite:()=>{i.next(),i.complete()}},{injector:this._injector});const a=i.pipe(yn(()=>Sr(this._ngZone,o,({classList:s})=>s.add("show"),{animation:r,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?Sr(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(_r(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):ke(void 0)}_getContentRef(n,t){if(n){if(n instanceof rr){const r=n.createEmbeddedView(t);return this._applicationRef.attachView(r),new ca([r.rootNodes],r)}return new ca([[this._document.createTextNode(`${n}`)]])}return new ca([])}}let $U=(()=>{class e{constructor(){this._document=D(Et)}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,o=r.style,{overflow:i,paddingRight:a}=o;if(t>0){const s=parseFloat(window.getComputedStyle(r).paddingRight);o.paddingRight=`${s+t}px`}return o.overflow="hidden",()=>{t>0&&(o.paddingRight=a),o.overflow=i}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const GU={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};const KU=["dialog"],YU=["*"];let QU=(()=>{class e{constructor(){this._ngbConfig=D(C1),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const XU=["animation","backdropClass"];let JU=(()=>{class e{constructor(){this._nativeElement=D(At).nativeElement,this._zone=D(De),this._injector=D(wt),this._cdRef=D(Mr)}ngOnInit(){Ti({mixedReadWrite:()=>Sr(this._zone,this._nativeElement,(t,r)=>{r&&Ry(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Sr(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(t){XU.forEach(r=>{Ty(t[r])&&(this[r]=t[r])}),this._cdRef.markForCheck()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,o){2&r&&(Ji("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),ir("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(r,o){},encapsulation:2})}}return e})();class yw{update(n){}close(n){}dismiss(n){}}class e${update(n){this._windowCmptRef.instance.updateOptions(n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Lt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Lt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,t,r,o){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=r,this._beforeDismiss=o,this._closed=new it,this._dismissed=new it,this._hidden=new it,n.instance.dismissEvent.subscribe(i=>{this.dismiss(i)}),this.result=new Promise((i,a)=>{this._resolve=i,this._reject=a}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function AU(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(r=>{!1!==r&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ke(void 0);n.subscribe(()=>{const{nativeElement:r}=this._windowCmptRef.location;r.parentNode.removeChild(r),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:r}=this._backdropCmptRef.location;r.parentNode.removeChild(r),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),vy(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var N1=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(N1||{});const t$=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"];let n$=(()=>{class e{constructor(){this._document=D(Et),this._elRef=D(At),this._zone=D(De),this._injector=D(wt),this._cdRef=D(Mr),this._closed$=new it,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new _e,this.shown=new it,this.hidden=new it}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Xu(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,Ti({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,r={animation:this.animation,runningTransition:"stop"},a=vy(Sr(this._zone,t,()=>t.classList.remove("show"),r),Sr(this._zone,this._dialogEl.nativeElement,()=>{},r));return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}updateOptions(t){t$.forEach(r=>{Ty(t[r])&&(this[r]=t[r])}),this._cdRef.markForCheck()}_show(){const t={animation:this.animation,runningTransition:"continue"};vy(Sr(this._zone,this._elRef.nativeElement,(i,a)=>{a&&Ry(i),i.classList.add("show")},t),Sr(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{qn(t,"keydown").pipe(Lt(this._closed$),Hn(o=>"Escape"===o.key)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(N1.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;qn(this._dialogEl.nativeElement,"mousedown").pipe(Lt(this._closed$),_r(()=>r=!1),mo(()=>qn(t,"mouseup").pipe(Lt(this._closed$),Ur(1))),Hn(({target:o})=>t===o)).subscribe(()=>{r=!0}),qn(t,"click").pipe(Lt(this._closed$)).subscribe(({target:o})=>{t===o&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(N1.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const r=t.querySelector("[ngbAutofocus]"),o=fw(t)[0];(r||o||t).focus()}}_restoreFocus(){const t=this._document.body,r=this._elWithFocus;let o;o=r&&r.focus&&t.contains(r)?r:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Sr(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(r,o){if(1&r&&Zd(KU,7),2&r){let i;Yi(i=Qi())&&(o._dialogEl=i.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(r,o){2&r&&(W("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy)("role",o.role),Ji("modal d-block"+(o.windowClass?" "+o.windowClass:"")),ir("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:YU,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(r,o){1&r&&(Go(),Gt(0,"div",1,0)(2,"div",2),Wo(3),Wt()()),2&r&&Ji("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return e})(),r$=(()=>{class e{constructor(){this._applicationRef=D(vr),this._injector=D(wt),this._environmentInjector=D(Nt),this._document=D(Et),this._scrollBar=D($U),this._activeWindowCmptHasChanged=new it,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new _e;const t=D(De);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const r=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,r=!1)=>{e.runOutsideAngular(()=>{const o=qn(n,"focusin").pipe(Lt(t),at(i=>i.target));qn(n,"keydown").pipe(Lt(t),Hn(i=>"Tab"===i.key),Iy(o)).subscribe(([i,a])=>{const[s,c]=fw(n);(a===s||a===n)&&i.shiftKey&&(c.focus(),i.preventDefault()),a===c&&!i.shiftKey&&(s.focus(),i.preventDefault())}),r&&qn(n,"click").pipe(Lt(t),Iy(o),at(i=>i[1])).subscribe(i=>i.focus())})})(t,r.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(r.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,r,o){const i=o.container instanceof HTMLElement?o.container:Ty(o.container)?this._document.querySelector(o.container):this._document.body;if(!i)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new yw,s=(t=o.injector||t).get(Nt,null)||this._environmentInjector,c=this._getContentRef(t,s,r,a,o);let l=!1!==o.backdrop?this._attachBackdrop(i):void 0,d=this._attachWindowComponent(i,c.nodes),h=new e$(d,c,l,o.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Ur(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=y=>{h.close(y)},a.dismiss=y=>{h.dismiss(y)},a.update=y=>{h.update(y)},h.update(o),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),l&&l.instance&&l.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(r=>r.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let r=gf(JU,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_attachWindowComponent(t,r){let o=gf(n$,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(o.hostView),t.appendChild(o.location.nativeElement),o}_getContentRef(t,r,o,i,a){return o?o instanceof rr?this._createFromTemplateRef(o,i):Xu(o)?this._createFromString(o):this._createFromComponent(t,r,o,i,a):new ca([])}_createFromTemplateRef(t,r){const i=t.createEmbeddedView({$implicit:r,close(a){r.close(a)},dismiss(a){r.dismiss(a)}});return this._applicationRef.attachView(i),new ca([i.rootNodes],i)}_createFromString(t){const r=this._document.createTextNode(`${t}`);return new ca([[r]])}_createFromComponent(t,r,o,i,a){const c=gf(o,{environmentInjector:r,elementInjector:wt.create({providers:[{provide:yw,useValue:i}],parent:t})}),l=c.location.nativeElement;return a.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new ca([[l]],c.hostView,c)}_setAriaHidden(t){const r=t.parentElement;r&&t!==this._document.body&&(Array.from(r.children).forEach(o=>{o!==t&&"SCRIPT"!==o.nodeName&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,r)=>{t?r.setAttribute("aria-hidden",t):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const r=()=>{const o=this._modalRefs.indexOf(t);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(r,r)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const r=this._windowCmpts.indexOf(t);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),o$=(()=>{class e{constructor(){this._injector=D(wt),this._modalStack=D(r$),this._config=D(QU)}open(t,r={}){const o={...this._config,animation:this._config.animation,...r};return this._modalStack.open(this._injector,t,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function a$(e){switch(e){case 0:return"homebase2_large.png";case 1:case 4:return"eufycam_large.jpg";case 2:return"sensor_large.png";case 3:case 37:case 39:return"floodlight_large.jpg";case 5:case 7:case 16:case 91:return"batterydoorbell2k_large.png";case 8:return"eufycam2c_large.jpg";case 9:case 14:case 15:return"eufycam2_large.png";case 10:return"motionsensor_large.png";case 11:return"keypad_large.png";case 18:return"homebase3_large.jpg";case 19:return"eufycam3_large.jpg";case 23:return"eufycam3c_large.jpg";case 24:return"eufycame330_large.jpg";case 25:return"minibase_chime_T8023_large.jpg";case 30:return"indoorcamc120_large.png";case 100:return"indoorcammini_large.jpg";case 31:case 35:return"indoorcamp24_large.png";case 32:case 33:return"solocame20_large.jpg";case 34:return"soloindoorcamc24_large.jpg";case 38:return"floodlight2pro_large.jpg";case 44:case 46:return"solooutdoorcamc22_large.png";case 45:case 60:case 61:case 62:return"solooutdoorcamc24_large.jpg";case 47:return"floodlightcame340_large.jpg";case 48:return"solocams340_large.png";case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 180:case 184:return"smartlock_t8500_large.jpg";case 63:return"solocams220_large.jpg";case 64:return"solocamc210_large.jpg";case 90:return"smartdrop_t8790_large.jpg";case 93:return"wireddoorbelldual_large.jpg";case 94:return"batterydoorbell_e340_large.jpg";case 104:return"indoorcams350_large.jpg";case 101:case 102:case 110:case 131:case 132:case 133:return"garage_camera_t8452_large.jpg";case 140:case 142:case 143:return"smartsafe_s10_t7400_large.jpg";case 141:return"smartsafe_s12_t7401_large.jpg";case 151:return"walllight_s100_large.jpg";case 10005:return"walllight_s120_large.jpg";case 157:return"smarttrack_link_t87B0_large.jpg";case 159:return"smarttrack_card_t87B2_large.jpg";default:return"unknown.png"}}const s$=new Map([0,1,2,3,4,5,7,8,9,10,11,14,15,16,18,19,23,24,25,30,31,32,33,34,35,37,38,39,44,45,46,47,48,50,51,52,53,54,55,56,57,58,60,61,62,63,64,90,91,93,94,100,101,102,104,110,131,132,133,140,141,142,143,151,157,159,180,184,10005].map(e=>[e,{image:a$(e)}])),c$=["*"];function l$(e,n){if(1&e){const t=Dt();Gt(0,"button",1),Ki("click",function(){return we(t),be(z().close())}),Wt()}}let d$=(()=>{class e{constructor(){this._ngbConfig=D(C1),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const u$=({classList:e})=>{e.remove("show")};let Ny=(()=>{class e{constructor(){this._config=D(d$),this._elementRef=D(At),this._zone=D(De),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new _e}close(){const t=Sr(this._zone,this._elementRef.nativeElement,u$,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(r,o){2&r&&(Ji("alert show"+(o.type?" alert-"+o.type:"")),ir("fade",o.animation)("alert-dismissible",o.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:c$,decls:2,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",t,1,"btn-close"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(r,o){1&r&&(Go(),Wo(0),Np(1,l$,1,0,"button",0)),2&r&&(w(),Lp(o.dismissible?1:-1))},styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}}return e})();const h$=["*"];let p$=(()=>{class e{constructor(){this._ngbConfig=D(C1),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),f$=0,y$=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(r,o){1&r&&V("mouseenter",function(){return o.onMouseEnter()})("mouseleave",function(){return o.onMouseLeave()}),2&r&&(Zi("id",o.id),Ji("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),ir("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave"},ngContentSelectors:h$,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(r,o){1&r&&(Go(),$o(0,"div",0),Gt(1,"div",1),Wo(2),Wt())},styles:["ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}\n"],encapsulation:2,changeDetection:0})}}return e})(),gw=(()=>{class e{constructor(){this._config=D(p$),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new _e,this.hidden=new _e,this._nativeElement=D(At).nativeElement,this._ngZone=D(De),this._document=D(Et),this._changeDetector=D(Mr),this._injector=D(wt),this._ngbTooltipWindowId="ngb-tooltip-"+f$++,this._popupService=new UU(y$),this._windowRef=null,this._positioning=function xU(){const e=D(gU);let n=null;return{createPopper(t){if(!n){let o=(t.updatePopperOptions||dw)(lw(t,e));n=nU(t.hostElement,t.targetElement,o)}},update(){n&&n.update()},setOptions(t){if(n){let o=(t.updatePopperOptions||dw)(lw(t,e));n.setOptions(o)}},destroy(){n&&(n.destroy(),n=null)}}}(),this._mouseEnterTooltip=new it,this._mouseLeaveTooltip=new it,this._opening=!0,this._transitioning=!1}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._opening&&this._transitioning&&(this._transitioning=!1,hw(this._windowRef.location.nativeElement)),!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:r,transition$:o}=this._popupService.open(this._ngbTooltip,t??this.tooltipContext,this.animation);this._opening=!0,this._transitioning=!0,this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._windowRef.setInput("onMouseEnter",()=>this._mouseEnterTooltip.next()),this._windowRef.setInput("onMouseLeave",()=>this._mouseLeaveTooltip.next()),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:i=>this.popperOptions(function qU(e){return n=>(n.modifiers.push(iU,{name:"offset",options:{offset:()=>e}}),n)}([0,6])(i))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=function t4(e,n){const t=n?.injector??D(wt);return Ut("NgAfterRender"),n4(e,t,n,!1)}({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),HU(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>{this._transitioning&&(this._transitioning=!1,this.shown.emit())})}}close(t=this.animation){this._opening&&this._transitioning&&(this._transitioning=!1,hw(this._windowRef.location.nativeElement)),null!=this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._opening=!1,this._transitioning=!0,this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._transitioning&&(this._transitioning=!1,this.hidden.emit()),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function ZU(e,n,t,r,o,i=0,a=0,s=zt,c=zt){const l=function WU(e){const n=(e||"").trim();if(0===n.length)return[];const t=n.split(/\s+/).map(o=>o.split(":")).map(o=>GU[o[0]]||o),r=t.filter(o=>o.includes("manual"));if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&t.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r.length?[]:t}(n);if(0===l.length)return()=>{};const d=new Set,h=[];let y;function f(b,x){e.addEventListener(b,x),h.push(()=>e.removeEventListener(b,x))}function M(b,x){clearTimeout(y),x>0?y=setTimeout(b,x):b()}for(const[b,x]of l)if(x?(f(b,()=>{d.add(b),M(()=>d.size>0&&r(),i)}),f(x,()=>{d.delete(b),M(()=>0===d.size&&o(),a)})):f(b,()=>t()?M(o,a):M(r,i)),"mouseenter"===b&&"mouseleave"===x&&a>0){const R=s.subscribe(()=>{d.delete(b),clearTimeout(y)}),A=c.subscribe(()=>{d.delete(b),M(()=>0===d.size&&o(),a)});h.push(()=>R.unsubscribe(),()=>A.unsubscribe())}return h.push(()=>clearTimeout(y)),()=>h.forEach(b=>b())}(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay,this._mouseEnterTooltip,this._mouseLeaveTooltip)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&this._windowRef.setInput("tooltipClass",t.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Xu(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Pn]})}}return e})();const g$=["*"],mw=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],kw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vw=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Mw=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],_w=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ww=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],bw=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Cw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Dw=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],xw=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Ew=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Sw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Aw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Iw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Tw=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Rw=[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Nw=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]];var O1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Oy=new P("LucideIcons",{factory:()=>new Ly({})});class Ly{constructor(n){this.icons=n}getIcon(n){return this.hasIcon(n)?this.icons[n]:null}hasIcon(n){return"object"==typeof this.icons&&n in this.icons}}let Kme=(()=>{class e{constructor(){this.color=O1.stroke,this.size=O1.width,this.strokeWidth=O1["stroke-width"],this.absoluteStrokeWidth=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Qme(e,n=3){return parseFloat(e.toFixed(n)).toString(10)}let la=(()=>{class e{constructor(t,r,o,i,a){this.elem=t,this.renderer=r,this.changeDetector=o,this.iconProviders=i,this.iconConfig=a,this.absoluteStrokeWidth=!1,this.defaultSize=O1.height}get size(){return this._size??this.iconConfig.size}set size(t){t?this._size=this.parseNumber(t):delete this._size}get strokeWidth(){return this._strokeWidth??this.iconConfig.strokeWidth}set strokeWidth(t){t?this._strokeWidth=this.parseNumber(t):delete this._strokeWidth}ngOnChanges(t){if(t.name||t.img||t.color||t.size||t.absoluteStrokeWidth||t.strokeWidth||t.class){this.color=this.color??this.iconConfig.color,this.size=this.parseNumber(this.size??this.iconConfig.size),this.strokeWidth=this.parseNumber(this.strokeWidth??this.iconConfig.strokeWidth),this.absoluteStrokeWidth=this.absoluteStrokeWidth??this.iconConfig.absoluteStrokeWidth;const r=this.img??this.name;if((e=>{for(const n in e)if(n.startsWith("aria-")||"role"===n||"title"===n)return!0;return!1})(this.getRestAttributes())||this.renderer.setAttribute(this.elem.nativeElement,"aria-hidden","true"),"string"==typeof r){const i=this.getIcon(this.toPascalCase(r));if(!i)throw new Error(`The "${r}" icon has not been provided by any available icon providers.`);this.replaceElement(i)}else{if(!Array.isArray(r))throw new Error("No icon name or image has been provided.");this.replaceElement(r)}}this.changeDetector.markForCheck()}replaceElement(t){const r=this.elem.nativeElement.childNodes,o={...O1,width:this.size,height:this.size,stroke:this.color??this.iconConfig.color,"stroke-width":this.absoluteStrokeWidth?Qme(this.strokeWidth/(this.size/this.defaultSize)):this.strokeWidth.toString(10)},i=this.createElement(["svg",o,t]);i.classList.add("lucide"),"string"==typeof this.name&&i.classList.add(`lucide-${this.name.replace("_","-")}`),this.class&&i.classList.add(...this.class.split(/ /).map(a=>a.trim()).filter(a=>a.length>0));for(const a of r)this.renderer.removeChild(this.elem.nativeElement,a);this.renderer.appendChild(this.elem.nativeElement,i)}getRestAttributes(){return Object.fromEntries(Array.from(this.elem.nativeElement.attributes).map(o=>[o.name,o.value]))}toPascalCase(t){return t.replace(/(\w)([a-z0-9]*)(_|-|\s*)/g,(r,o,i)=>o.toUpperCase()+i.toLowerCase())}parseNumber(t){if("string"==typeof t){const r=parseInt(t,10);if(isNaN(r))throw new Error(`${t} is not numeric.`);return r}return t}getIcon(t){for(const r of Array.isArray(this.iconProviders)?this.iconProviders:[this.iconProviders])if(r.hasIcon(t))return r.getIcon(t);return null}createElement([t,r,o=[]]){const i=this.renderer.createElement(t,"http://www.w3.org/2000/svg");return Object.keys(r).forEach(a=>{const s="string"==typeof r[a]?r[a]:r[a].toString(10);this.renderer.setAttribute(i,a,s)}),o.length&&o.forEach(a=>{const s=this.createElement(a);this.renderer.appendChild(i,s)}),i}}return e.\u0275fac=function(t){return new(t||e)(T(At),T(Br),T(Mr),T(Oy),T(Kme))},e.\u0275cmp=me({type:e,selectors:[["lucide-angular"],["lucide-icon"],["i-lucide"],["span-lucide"]],inputs:{class:"class",name:"name",img:"img",color:"color",absoluteStrokeWidth:"absoluteStrokeWidth",size:"size",strokeWidth:"strokeWidth"},standalone:!1,features:[Pn],ngContentSelectors:g$,decls:1,vars:0,template:function(t,r){1&t&&(Go(),Wo(0))},encapsulation:2}),e})();class Xme{constructor(n){this.icons=n}}const Jme=e=>new Ly(e??{});let ei=(()=>{class e{static pick(t){return{ngModule:e,providers:[{provide:Oy,multi:!0,useValue:new Ly(t)},{provide:Oy,multi:!0,useFactory:Jme,deps:[[new Gm,Xme]]}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=ho({type:e}),e.\u0275inj=Nr({imports:[[]]}),e})(),Qe=(()=>{class e extends EventTarget{stations=[];accessories$=new We(t=>{const r=o=>t.next(o);return window.homebridge.addEventListener("addAccessory",r),()=>{window.homebridge.removeEventListener("addAccessory",r)}});config=[{platform:"EufySecurity",name:"EufySecurity"}];constructor(){super(),this.init()}init(){this.getPlatformConfig(),this.accessories$.subscribe(t=>{this.stations=t.data}),this.loadStoredAccessories()}getStations(){return this.stations}getStation(t){return this.stations.find(r=>r.uniqueId===t)}getDevice(t){for(const r of this.stations)if(r.devices){const o=r.devices.find(i=>i.uniqueId===t);if(o)return o}}loadStoredAccessories(){var t=this;return H(function*(){try{const r=yield window.homebridge.request("/storedAccessories");return r.forEach(o=>{t.addAccessory(o)}),0!==r.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==r.length)}catch(r){return Promise.reject(r)}})()}addAccessory(t){this.stations.find(r=>r.uniqueId===t.uniqueId)||this.stations.push(t)}getConfig(){return this.config[0]}updateConfig(t){var r=this;return H(function*(){try{r.config=[t],yield window.homebridge.updatePluginConfig(r.config),r.dispatchEvent(new Event("configChanged"))}catch(o){console.log("There was an error updating your config: ",o,r.config)}})()}getPlatformConfig(){var t=this;return H(function*(){try{const r=yield window.homebridge.getPluginConfig();t.config=r.length>0?r:t.config}catch(r){console.error("Error fetching plugin config:",r)}return t.config})()}saveConfig(){return H(function*(){try{yield window.homebridge.savePluginConfig()}catch(t){console.log("There was an error when saving config: ",t)}})()}resetConfig(){return H(function*(){try{yield window.homebridge.updatePluginConfig([{}]),yield window.homebridge.savePluginConfig()}catch(t){console.log("There was an error when reseting config: ",t)}})()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const eke=e=>({$implicit:e,type:"both"}),tke=e=>({$implicit:e,type:"station"}),nke=e=>({$implicit:e,type:"device"}),rke=(e,n)=>["/config",e,n];function oke(e,n){if(1&e){const t=Dt();m(0,"div",7)(1,"h4",8),_(2,"Refresh stations and devices"),k(),m(3,"button",9),V("click",function(){return be(we(t).$implicit.dismiss("Cross click"))}),k()(),m(4,"div",10)(5,"div",11)(6,"p"),_(7,"To initiate a full station and device refresh, you will need to log into your eufy account. However, please be aware that this action may interfere with the plugin's connection to the eufy cloud."),k(),m(8,"ngb-alert",12),_(9," We strongly recommend that you "),m(10,"strong"),_(11,"stop"),k(),_(12," the plugin before proceeding further. "),k(),m(13,"p"),_(14,"Otherwise, you may experience glitches such as push notifications from the plugin no longer functioning correctly. (See "),m(15,"a",13),_(16,"here"),k(),_(17," for more information)."),k()()(),m(18,"div",14)(19,"a",15),V("click",function(){return be(we(t).$implicit.close("Login"))}),_(20,"Login with eufy"),k()()}2&e&&(w(8),E("dismissible",!1))}function ike(e,n){if(1&e){const t=Dt();jn(0),q(1,"p"),m(2,"ngb-alert",23)(3,"a",24),V("click",function(){we(t);const o=z(4),i=fn(1);return be(o.openReloadModal(i))})("keydown.enter",function(){we(t);const o=z(4),i=fn(1);return be(o.openReloadModal(i))}),_(4," Plugin has been updated, please refresh and reboot the plugin. "),k()(),q(5,"p"),Sn()}2&e&&(w(2),E("dismissible",!1))}function ake(e,n){1&e&&zc(0)}function ske(e,n){if(1&e&&(jn(0),m(1,"div",28),K(2,ake,1,0,"ng-container",29),k(),Sn()),2&e){const t=z(2).$implicit;z(5);const r=fn(8);w(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",eu(2,eke,t))}}function cke(e,n){1&e&&zc(0)}function lke(e,n){1&e&&zc(0)}function dke(e,n){if(1&e&&(jn(0),m(1,"div",28),K(2,lke,1,0,"ng-container",29),k(),Sn()),2&e){const t=n.$implicit;z(8);const r=fn(8);w(2),E("ngTemplateOutlet",r)("ngTemplateOutletContext",eu(2,nke,t))}}function uke(e,n){if(1&e&&(m(0,"div",28),K(1,cke,1,0,"ng-container",29),k(),K(2,dke,3,4,"ng-container",26)),2&e){const t=z(2).$implicit,r=z(5),o=fn(8);w(),E("ngTemplateOutlet",o)("ngTemplateOutletContext",eu(4,tke,t)),w(),E("ngForOf",t.devices)("ngForTrackBy",r.trackByDeviceId)}}function hke(e,n){if(1&e&&(jn(0),K(1,ske,3,4,"ng-container",6)(2,uke,3,6,"ng-template",null,5,yo),Sn()),2&e){const t=fn(3),r=z().$implicit;w(),E("ngIf",r.devices[0].uniqueId===r.uniqueId)("ngIfElse",t)}}function pke(e,n){if(1&e&&(jn(0),K(1,hke,4,2,"ng-container",27),Sn()),2&e){const t=n.$implicit;w(),E("ngIf",t&&t.devices&&0!==t.devices.length)}}function fke(e,n){if(1&e&&(q(0,"p"),m(1,"span"),_(2,"Click the name to access accessory configuration."),k(),q(3,"p"),m(4,"div",25),K(5,pke,2,1,"ng-container",26),k()),2&e){const t=z(2).ngIf,r=z(2);w(5),E("ngForOf",t)("ngForTrackBy",r.trackByStationId)}}function yke(e,n){if(1&e&&(jn(0),K(1,ike,6,1,"ng-container",6)(2,fke,6,2,"ng-template",null,4,yo),Sn()),2&e){const t=fn(3),r=z(3);w(),E("ngIf",r.versionUnmatched)("ngIfElse",t)}}function gke(e,n){if(1&e&&(jn(0),K(1,yke,4,2,"ng-container",6),Sn()),2&e){const t=n.ngIf;z(2);const r=fn(6);w(),E("ngIf",0!==t.length)("ngIfElse",r)}}function mke(e,n){if(1&e){const t=Dt();jn(0),m(1,"div",16)(2,"button",17),V("click",function(){we(t);const o=z(),i=fn(1);return be(o.openReloadModal(i))})("keydown.enter",function(){we(t);const o=z(),i=fn(1);return be(o.openReloadModal(i))}),q(3,"lucide-angular",18),k(),m(4,"button",19),q(5,"lucide-angular",20),k(),m(6,"button",21),q(7,"lucide-angular",22),k()(),K(8,gke,2,2,"ng-container",6),Jp(9,"async"),Sn()}if(2&e){const t=z(),r=fn(6);w(8),E("ngIf",ef(9,2,t.stations$))("ngIfElse",r)}}function kke(e,n){1&e&&(m(0,"div")(1,"div",30),_(2," You're not using a guest admin account with this plugin! You must use a guest admin account! Please look here for more details: https://github.com/homebridge-eufy-security/plugin/wiki/Create-a-dedicated-admin-account-for-Homebridge-Eufy-Security-Plugin "),k(),m(3,"button",31),_(4,"Cancel"),k()())}function vke(e,n){1&e&&(m(0,"div",32),_(1," No stations found. Please wait a few seconds and try again. Please check your configuration or try refreshing. Did you change the country settings? If the problem persists, please open an issue. "),k())}function Mke(e,n){if(1&e&&q(0,"lucide-angular",43),2&e){const t=z().$implicit;E("ngbTooltip",t.ignored?"Security Control OFF":"Security Control ON")("name",t.ignored?"shield-off":"shield")}}function _ke(e,n){1&e&&q(0,"lucide-angular",44)}function wke(e,n){if(1&e&&(m(0,"a",33)(1,"div",34)(2,"div",35)(3,"span",36),jn(4,37),K(5,Mke,1,2,"lucide-angular",38)(6,_ke,1,0,"lucide-angular",39),Sn(),k()(),q(7,"img",40),m(8,"div",41)(9,"h5",42),_(10),k()()()()),2&e){let t;const r=n.$implicit,o=n.type,i=z();E("routerLink",y_(9,rke,o,r.uniqueId)),w(4),E("ngSwitch",!0),w(),E("ngSwitchCase","both"===o),w(),E("ngSwitchCase","device"===o&&r.isKeypad),w(),Zc("opacity",("both"===o?r.devices[0].ignored:r.ignored)?.3:1),E("src","assets/devices/"+((null==(t=i.DeviceImage.get(r.type))?null:t.image)||"unknown.png"),Gl)("alt",r.displayName),w(3),Qd(r.displayName)}}let bke=(()=>{class e{modalService;pluginService;route;router;zone;cdr;stationsSubject=new On([]);stations$=this.stationsSubject.asObservable();versionUnmatched=!1;adminAccountUsed=!1;waitForAccessories;DeviceImage=s$;closeResult="";constructor(t,r,o,i,a,s){this.modalService=t,this.pluginService=r,this.route=o,this.router=i,this.zone=a,this.cdr=s}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.setupEventListeners(),this.updateStations(),!this.waitForAccessories&&0===this.stationsSubject.getValue().length&&this.loadStoredAccessories(),this.stations$.subscribe(t=>{console.log("Stations updated:",t)})}setupEventListeners(){window.homebridge.addEventListener("versionUnmatched",this.handleVersionUnmatched.bind(this)),this.pluginService.addEventListener("newAccessories",this.handleNewAccessories.bind(this)),window.homebridge.addEventListener("addAccessory",this.handleAddAccessory.bind(this)),window.homebridge.addEventListener("AdminAccountUsed",this.handleAdminAccountUsed.bind(this))}handleVersionUnmatched(t){console.log(`Stored version (${t.data.storedVersion}) does not match current version (${t.data.currentVersion})`),this.versionUnmatched=!0,this.cdr.markForCheck()}handleNewAccessories(){var t=this;return H(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAddAccessory(){var t=this;return H(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAdminAccountUsed(){var t=this;return H(function*(){console.log("Admin account used"),t.adminAccountUsed=!0,t.stationsSubject.next([]),yield t.pluginService.resetConfig(),t.cdr.markForCheck()})()}updateStations(){var t=this;return H(function*(){const r=t.pluginService.getStations();if(r.every(a=>!a.devices||0===a.devices.length))return void console.log("No stations with devices populated. Skipping update.");const{ignoreStations:o=[],ignoreDevices:i=[]}=t.pluginService.getConfig();r.forEach(a=>{a.ignored=o.includes(a.uniqueId),a.devices?.forEach(s=>{s.ignored=i.includes(s.uniqueId)})}),r!==t.stationsSubject.getValue()?(t.stationsSubject.next(r),t.cdr.markForCheck()):console.log("Nothing to update. Skipping update.")})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(r=>{this.closeResult=`Closed with: ${r}`},r=>{this.closeResult=`Dismissed ${this.getDismissReason(r)}`})}getDismissReason(t){return t===N1.ESC?"by pressing ESC":t===N1.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}loadStoredAccessories(){this.pluginService.loadStoredAccessories().then(t=>{t||this.router.navigateByUrl("/login")}).catch(()=>{this.router.navigateByUrl("/login")})}trackByStationId(t,r){return r.uniqueId}trackByDeviceId(t,r){return r.uniqueId}static \u0275fac=function(r){return new(r||e)(T(o$),T(Qe),T(ia),T(zn),T(De),T(Mr))};static \u0275cmp=me({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:9,vars:2,consts:[["reloadModal",""],["adminAccountUsedTemplate",""],["noStations",""],["cardTemplate",""],["stationsContent",""],["separateDevices",""],[4,"ngIf","ngIfElse"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[3,"dismissible"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"text-end"],["type","button","placement","bottom","ngbTooltip","Re Sync",1,"btn","btn-success",3,"click","keydown.enter"],["name","refresh-cw"],["type","button","placement","bottom","ngbTooltip","Having a bug?","routerLink","/githubissue",1,"btn","btn-warning"],["name","bug"],["type","button","placement","bottom","ngbTooltip","Global Settings","routerLink","/advancedConfig",1,"btn","btn-danger"],["name","sliders-horizontal"],["type","warning",3,"dismissible"],["tabindex","0",3,"click","keydown.enter"],[1,"row","row-cols-md-4"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"col-4","mb-4"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","alert",1,"alert","alert-danger"],["type","button","routerLink","/login",1,"btn","btn-primary"],["role","alert",1,"alert","alert-info"],[3,"routerLink"],[1,"card"],[1,"position-absolute","top-0","end-0"],[1,"d-flex","p-2",2,"z-index","20"],[3,"ngSwitch"],[3,"ngbTooltip","name",4,"ngSwitchCase"],["name","shield-alert","color","red",4,"ngSwitchCase"],[1,"card-img","p-4",3,"src","alt"],[1,"card-img-overlay"],[1,"card-title","position-absolute","bottom-0"],[3,"ngbTooltip","name"],["name","shield-alert","color","red"]],template:function(r,o){if(1&r&&K(0,oke,21,1,"ng-template",null,0,yo)(2,mke,10,4,"ng-container",6)(3,kke,5,0,"ng-template",null,1,yo)(5,vke,2,0,"ng-template",null,2,yo)(7,wke,11,12,"ng-template",null,3,yo),2&r){const i=fn(4);w(2),E("ngIf",!o.adminAccountUsed)("ngIfElse",i)}},dependencies:[Zr,mn,Gu,b1,fy,S7,ei,la,Ny,gw,A7],encapsulation:2,changeDetection:0})}return e})();const Wn={platform:"EufySecurity",name:"EufySecurity",username:"",password:"",deviceName:"MyPhone",enableDetailedLogging:!1,omitLogFiles:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",stations:[],cameras:[],cleanCache:!0,ignoreMultipleDevicesWarning:!1,autoSyncStation:!1,enableEmbeddedPKCS1Support:!1};class ut{pluginService;config;constructor(n){this.pluginService=n,this.config=this.pluginService.getConfig()}getCameraConfig(n){if(Array.isArray(this.config.cameras))return this.config.cameras.find(t=>t.serialNumber===n)||void 0}getStationConfig(n){if(Array.isArray(this.config.stations))return this.config.stations.find(t=>t.serialNumber===n)||void 0}updateConfig(n){var t=this;return H(function*(){t.config={...Wn,...t.config,...n},console.log("config:",t.config),yield t.pluginService.updateConfig(t.config)})()}updateAccessoryConfig(n,t,r){var o=this;return H(function*(){let i;if("camera"===r)Array.isArray(o.config.cameras)||(o.config.cameras=[]),i=o.config.cameras;else{if("station"!==r)throw new Error("Unsupported accessory type");Array.isArray(o.config.stations)||(o.config.stations=[]),i=o.config.stations}const a=i.findIndex(s=>s.serialNumber===t.uniqueId);a>=0?i[a]={...i[a],...n}:i.push({serialNumber:t.uniqueId,...n}),yield o.pluginService.updateConfig(o.config)})()}updateStationConfig(n,t){var r=this;return H(function*(){yield r.updateAccessoryConfig(n,t,"station")})()}updateDeviceConfig(n,t){var r=this;return H(function*(){yield r.updateAccessoryConfig(n,t,"camera")})()}}let Ow=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,r){this._renderer=t,this._elementRef=r}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(r){return new(r||e)(T(Br),T(At))};static \u0275dir=Y({type:e})}return e})(),da=(()=>{class e extends Ow{static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,features:[J]})}return e})();const Qr=new P(""),Dke={provide:Qr,useExisting:qe(()=>Kt),multi:!0};let Kt=(()=>{class e extends da{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&V("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[tt([Dke]),J]})}return e})();const xke={provide:Qr,useExisting:qe(()=>ti),multi:!0},Ske=new P("");let ti=(()=>{class e extends Ow{_compositionMode;_composing=!1;constructor(t,r,o){super(t,r),this._compositionMode=o,null==this._compositionMode&&(this._compositionMode=!function Eke(){const e=Lo()?Lo().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(r){return new(r||e)(T(Br),T(At),T(Ske,8))};static \u0275dir=Y({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){1&r&&V("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[tt([xke]),J]})}return e})();function Fy(e){return null==e||0===function Py(e){return null==e?null:Array.isArray(e)||"string"==typeof e?e.length:e instanceof Set?e.size:null}(e)}const an=new P(""),ni=new P(""),Ake=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function jw(e){return Fy(e.value)||Ake.test(e.value)?null:{email:!0}}function eh(e){return null}function qw(e){return null!=e}function Uw(e){return jc(e)?Zt(e):e}function $w(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Gw(e,n){return n.map(t=>t(e))}function Ww(e){return e.map(n=>function Ike(e){return!e.validate}(n)?n:t=>n.validate(t))}function Vy(e){return null!=e?function Zw(e){if(!e)return null;const n=e.filter(qw);return 0==n.length?null:function(t){return $w(Gw(t,n))}}(Ww(e)):null}function jy(e){return null!=e?function Kw(e){if(!e)return null;const n=e.filter(qw);return 0==n.length?null:function(t){return function Cke(...e){const n=hu(e),{args:t,keys:r}=Z8(e),o=new We(i=>{const{length:a}=t;if(!a)return void i.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d<a;d++){let h=!1;on(t[d]).subscribe(bt(i,y=>{h||(h=!0,l--),s[d]=y},()=>c--,void 0,()=>{(!c||!h)&&(l||i.next(r?K8(r,s):s),i.complete())}))}});return n?o.pipe(Cf(n)):o}(Gw(t,n).map(Uw)).pipe(at($w))}}(Ww(e)):null}function Yw(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Hy(e){return e?Array.isArray(e)?e:[e]:[]}function th(e,n){return Array.isArray(e)?e.includes(n):e===n}function Jw(e,n){const t=Hy(n);return Hy(e).forEach(o=>{th(t,o)||t.push(o)}),t}function eb(e,n){return Hy(n).filter(t=>!th(e,t))}class tb{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Vy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=jy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class sn extends tb{name;get formDirective(){return null}get path(){return null}}class ri extends tb{_parent=null;name=null;valueAccessor=null}class nb{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let ht=(()=>{class e extends nb{constructor(t){super(t)}static \u0275fac=function(r){return new(r||e)(T(ri,2))};static \u0275dir=Y({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&ir("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[J]})}return e})();const L1="VALID",rh="INVALID",Ns="PENDING",F1="DISABLED";class Os{}class ib extends Os{value;source;constructor(n,t){super(),this.value=n,this.source=t}}class qy extends Os{pristine;source;constructor(n,t){super(),this.pristine=n,this.source=t}}class Uy extends Os{touched;source;constructor(n,t){super(),this.touched=n,this.source=t}}class oh extends Os{status;source;constructor(n,t){super(),this.status=n,this.source=t}}class $y extends Os{source;constructor(n){super(),this.source=n}}function ih(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Zy{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,t){this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Oe(this.statusReactive)}set status(n){Oe(()=>this.statusReactive.set(n))}_status=ar(()=>this.statusReactive());statusReactive=jr(void 0);get valid(){return this.status===L1}get invalid(){return this.status===rh}get pending(){return this.status==Ns}get disabled(){return this.status===F1}get enabled(){return this.status!==F1}errors;get pristine(){return Oe(this.pristineReactive)}set pristine(n){Oe(()=>this.pristineReactive.set(n))}_pristine=ar(()=>this.pristineReactive());pristineReactive=jr(!0);get dirty(){return!this.pristine}get touched(){return Oe(this.touchedReactive)}set touched(n){Oe(()=>this.touchedReactive.set(n))}_touched=ar(()=>this.touchedReactive());touchedReactive=jr(!1);get untouched(){return!this.touched}_events=new it;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Jw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Jw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(eb(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(eb(n,this._rawAsyncValidators))}hasValidator(n){return th(this._rawValidators,n)}hasAsyncValidator(n){return th(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Uy(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Uy(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new qy(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new qy(!0,r))}markAsPending(n={}){this.status=Ns;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new oh(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=F1,this.errors=null,this._forEachChild(o=>{o.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new ib(this.value,r)),this._events.next(new oh(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=L1,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===L1||this.status===Ns)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new ib(this.value,t)),this._events.next(new oh(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?F1:L1}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Ns,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t,shouldHaveEmitted:!1!==n};const r=Uw(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new oh(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?F1:this.errors?rh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ns)?Ns:this._anyControlsHaveStatus(rh)?rh:L1}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),o&&this._events.next(new qy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Uy(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){ih(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Vke(e){return Array.isArray(e)?Vy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function jke(e){return Array.isArray(e)?jy(e):e||null}(this._rawAsyncValidators)}}const Ls=new P("",{factory:()=>ah}),ah="always";function P1(e,n,t=ah){(function Yy(e,n){const t=function Qw(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(Yw(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function Xw(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(Yw(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();lh(n._rawValidators,o),lh(n._rawAsyncValidators,o)})(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function Bke(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&lb(e,n)})}(e,n),function Uke(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function qke(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&lb(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function zke(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function lh(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function lb(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hb(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function pb(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const fb=class extends Zy{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,t,r){super(function Gy(e){return(ih(e)?e.validators:e)||null}(t),function Wy(e,n){return(ih(n)?n.asyncValidators:e)||null}(r,t)),this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ih(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=pb(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,!1!==t?.emitEvent&&this._events.next(new $y(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){hb(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){hb(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){pb(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},eve={provide:ri,useExisting:qe(()=>st)},yb=Promise.resolve();let st=(()=>{class e extends ri{_changeDetectorRef;callSetDisabledState;control=new fb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new _e;constructor(t,r,o,i,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Jy(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===ti?t=i:function Wke(e){return Object.getPrototypeOf(e.constructor)===da}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function Xy(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){P1(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){yb.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&_s(r);yb.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function sh(e,n){return[...n.path,e]}(t,this._parent):[t]}static \u0275fac=function(r){return new(r||e)(T(sn,9),T(an,10),T(ni,10),T(Qr,10),T(Mr,8),T(Ls,8))};static \u0275dir=Y({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[tt([eve]),J,Pn]})}return e})();const nve={provide:Qr,useExisting:qe(()=>Fs),multi:!0};let Fs=(()=>{class e extends da{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){1&r&&V("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[tt([nve]),J]})}return e})();const pve={provide:Qr,useExisting:qe(()=>bo),multi:!0};function Cb(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let bo=(()=>{class e extends da{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;appRefInjector=D(vr).injector;destroyRef=D(er);cdr=D(Mr);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Ti({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(t){this.cdr.markForCheck(),this.value=t;const o=Cb(this._getOptionId(t),t);this.setProperty("value",o)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function fve(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&V("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[tt([pve]),J]})}return e})(),ua=(()=>{class e{_element;_renderer;_select;id;constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Cb(this.id,t)),this._select._writeValueAfterRender())}set value(t){this._setElementValue(t),this._select&&this._select._writeValueAfterRender()}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(T(At),T(Br),T(bo,9))};static \u0275dir=Y({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();const yve={provide:Qr,useExisting:qe(()=>eg),multi:!0};function Db(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let eg=(()=>{class e extends da{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){let r;if(this.value=t,Array.isArray(t)){const o=t.map(i=>this._getOptionId(i));r=(i,a)=>{i._setSelected(o.indexOf(a.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const a=i;for(let s=0;s<a.length;s++){const l=this._getOptionValue(a[s].value);o.push(l)}}else{const a=r.options;for(let s=0;s<a.length;s++){const c=a[s];if(c.selected){const l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,t(o)}}_registerOption(t){const r=(this._idCounter++).toString();return this._optionMap.set(r,t),r}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,t))return r;return null}_getOptionValue(t){const r=function gve(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r)._value:t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&V("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[tt([yve]),J]})}return e})(),ha=(()=>{class e{_element;_renderer;_select;id;_value;constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Db(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Db(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(T(At),T(Br),T(eg,9))};static \u0275dir=Y({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),pa=(()=>{class e{_validator=eh;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):eh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Y({type:e,features:[Pn]})}return e})();const _ve={provide:an,useExisting:qe(()=>ng),multi:!0};let ng=(()=>{class e extends pa{email;inputName="email";normalizeInput=_s;createValidator=t=>jw;enabled(t){return t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=St(e)))(o||e)}})();static \u0275dir=Y({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[tt([_ve]),J]})}return e})(),Dve=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({})}return e})(),pt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ls,useValue:t.callSetDisabledState??ah}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({imports:[Dve]})}return e})();function xve(e,n){1&e&&(m(0,"span"),_(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),k())}function Eve(e,n){1&e&&(m(0,"option",6),_(1,"Use global setting"),k()),2&e&&E("ngValue",void 0)}function Sve(e,n){1&e&&(m(0,"option",6),_(1,"Use global setting"),k()),2&e&&E("ngValue",void 0)}function Ave(e,n){1&e&&(m(0,"option",6),_(1,"Use global setting"),k()),2&e&&E("ngValue",void 0)}function Ive(e,n){1&e&&(m(0,"option",6),_(1,"Use global setting"),k()),2&e&&E("ngValue",void 0)}let Ob=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}station;hkHome=void 0;hkAway=void 0;hkNight=void 0;hkOff=void 0;readValue(){var t=this;return H(function*(){const r=t.station?yield t.getStationConfig(t.station.uniqueId):yield t.pluginService.getConfig();r&&Object.prototype.hasOwnProperty.call(r,"hkHome")?t.hkHome=r.hkHome:t.station||(t.hkHome=Wn.hkHome),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?t.hkAway=r.hkAway:t.station||(t.hkAway=Wn.hkAway),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?t.hkNight=r.hkNight:t.station||(t.hkNight=Wn.hkNight),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?t.hkOff=r.hkOff:t.station||(t.hkOff=Wn.hkOff)})()}update(){var t=this;return H(function*(){let r=t.station?yield t.getStationConfig(t.station.uniqueId):yield t.pluginService.getConfig();void 0===r&&(r={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(r,"hkHome")?delete r.hkHome:r.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(r,"hkAway")?delete r.hkAway:r.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(r,"hkNight")?delete r.hkNight:r.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(r,"hkOff")?delete r.hkOff:r.hkOff=t.hkOff;let o=yield t.pluginService.getConfig();if(t.station){Array.isArray(o.stations)||(o.stations=[]);let i=-1;o.stations.forEach((a,s)=>{a.serialNumber===t.station?.uniqueId&&(i=s)}),i>=0?o.stations[i]=r:(r.serialNumber=t.station.uniqueId,o.stations.push(r))}else o=r;t.pluginService.updateConfig(o)})()}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{station:"station"},features:[J],decls:90,vars:41,consts:[[1,"settingsItem"],[4,"ngIf"],[1,"input-group","mb-1"],["for","inputGroupSelect01",1,"input-group-text","w-25"],["id","inputGroupSelect01",1,"form-select",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModelChange","change","ngModel"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModelChange","change","ngModel"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"span"),_(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),k(),q(3,"p"),K(4,xve,2,0,"span",1),q(5,"p"),m(6,"div",2)(7,"label",3),_(8,"HomeKit Home"),k(),m(9,"select",4),se("ngModelChange",function(a){return le(o.hkHome,a)||(o.hkHome=a),a}),V("change",function(){return o.update()}),K(10,Eve,2,1,"option",5),m(11,"option",6),_(12,"Eufy Home"),k(),m(13,"option",6),_(14,"Eufy Away"),k(),m(15,"option",6),_(16,"Eufy Schedule"),k(),m(17,"option",6),_(18,"Eufy Custom 1 (Night)"),k(),m(19,"option",6),_(20,"Eufy Custom 2"),k(),m(21,"option",6),_(22,"Eufy Custom 3"),k(),m(23,"option",6),_(24,"Eufy Geofencing"),k(),m(25,"option",6),_(26,"Eufy Disarmed"),k()()(),m(27,"div",2)(28,"label",7),_(29,"HomeKit Away"),k(),m(30,"select",8),se("ngModelChange",function(a){return le(o.hkAway,a)||(o.hkAway=a),a}),V("change",function(){return o.update()}),K(31,Sve,2,1,"option",5),m(32,"option",6),_(33,"Eufy Home"),k(),m(34,"option",6),_(35,"Eufy Away"),k(),m(36,"option",6),_(37,"Eufy Schedule"),k(),m(38,"option",6),_(39,"Eufy Custom 1 (Night)"),k(),m(40,"option",6),_(41,"Eufy Custom 2"),k(),m(42,"option",6),_(43,"Eufy Custom 3"),k(),m(44,"option",6),_(45,"Eufy Geofencing"),k(),m(46,"option",6),_(47,"Eufy Disarmed"),k()()(),m(48,"div",2)(49,"label",9),_(50,"HomeKit Night"),k(),m(51,"select",10),se("ngModelChange",function(a){return le(o.hkNight,a)||(o.hkNight=a),a}),V("change",function(){return o.update()}),K(52,Ave,2,1,"option",5),m(53,"option",6),_(54,"Eufy Home"),k(),m(55,"option",6),_(56,"Eufy Away"),k(),m(57,"option",6),_(58,"Eufy Schedule"),k(),m(59,"option",6),_(60,"Eufy Custom 1 (Night)"),k(),m(61,"option",6),_(62,"Eufy Custom 2"),k(),m(63,"option",6),_(64,"Eufy Custom 3"),k(),m(65,"option",6),_(66,"Eufy Geofencing"),k(),m(67,"option",6),_(68,"Eufy Disarmed"),k()()(),m(69,"div",2)(70,"label",11),_(71,"HomeKit Off"),k(),m(72,"select",12),se("ngModelChange",function(a){return le(o.hkOff,a)||(o.hkOff=a),a}),V("change",function(){return o.update()}),K(73,Ive,2,1,"option",5),m(74,"option",6),_(75,"Eufy Home"),k(),m(76,"option",6),_(77,"Eufy Away"),k(),m(78,"option",6),_(79,"Eufy Schedule"),k(),m(80,"option",6),_(81,"Eufy Custom 1 (Night)"),k(),m(82,"option",6),_(83,"Eufy Custom 2"),k(),m(84,"option",6),_(85,"Eufy Custom 3"),k(),m(86,"option",6),_(87,"Eufy Geofencing"),k(),m(88,"option",6),_(89,"Eufy Disarmed"),k()()()()),2&r&&(w(4),E("ngIf",o.station),w(5),ae("ngModel",o.hkHome),w(),E("ngIf",o.station),w(),E("ngValue",1),w(2),E("ngValue",0),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngValue",4),w(2),E("ngValue",5),w(2),E("ngValue",47),w(2),E("ngValue",63),w(5),ae("ngModel",o.hkAway),w(),E("ngIf",o.station),w(),E("ngValue",1),w(2),E("ngValue",0),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngValue",4),w(2),E("ngValue",5),w(2),E("ngValue",47),w(2),E("ngValue",63),w(5),ae("ngModel",o.hkNight),w(),E("ngIf",o.station),w(),E("ngValue",1),w(2),E("ngValue",0),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngValue",4),w(2),E("ngValue",5),w(2),E("ngValue",47),w(2),E("ngValue",63),w(5),ae("ngModel",o.hkOff),w(),E("ngIf",o.station),w(),E("ngValue",1),w(2),E("ngValue",0),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngValue",4),w(2),E("ngValue",5),w(2),E("ngValue",47),w(2),E("ngValue",63))},dependencies:[mn,pt,ua,ha,bo,ht,st],encapsulation:2})}return e})(),Tve=(()=>{class e extends ut{cleanCache=Wn.cleanCache;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.cleanCache=this.config.cleanCache??this.cleanCache}update(){this.updateConfig({cleanCache:this.cleanCache})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-clean-cache"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","cleanCache"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","cleanCache",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Clean cache automatically"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.cleanCache,a)||(o.cleanCache=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),k()()()),2&r&&(w(5),ae("ngModel",o.cleanCache))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),Rve=(()=>{class e extends ut{omitLogFiles=Wn.omitLogFiles;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.omitLogFiles=this.config.omitLogFiles??this.omitLogFiles}update(){this.updateConfig({omitLogFiles:this.omitLogFiles})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-omit-log-files"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","omitLogFiles"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","omitLogFiles",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Don't store log files"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.omitLogFiles,a)||(o.omitLogFiles=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),k()()()),2&r&&(w(5),ae("ngModel",o.omitLogFiles))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),Nve=(()=>{class e extends ut{ignoreMultipleDevicesWarning=Wn.ignoreMultipleDevicesWarning;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.ignoreMultipleDevicesWarning=this.config.ignoreMultipleDevicesWarning??this.ignoreMultipleDevicesWarning}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.ignoreMultipleDevicesWarning})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-ignore-multiple-devices-warning"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","ignoreMultipleDevicesWarning"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","ignoreMultipleDevicesWarning",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Enable snapshot and HKSV settings for multiple devices on one station"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.ignoreMultipleDevicesWarning,a)||(o.ignoreMultipleDevicesWarning=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," Normally it is not encouraged to use live snapshots and the HKSV feature if multiple cameras are connected through one and the same station. These options are therefore disabled by default for these devices. By enabling this setting you'll be able to use these features anyway, but please be aware that this might result in failing streams. "),k()()()),2&r&&(w(5),ae("ngModel",o.ignoreMultipleDevicesWarning))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),Ove=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}CameraMaxLivestreamDuration=30;inputIsInvalid=!1;readValue(){this.CameraMaxLivestreamDuration=this.config.CameraMaxLivestreamDuration??this.CameraMaxLivestreamDuration}update(){this.inputIsInvalid=!1,(!this.CameraMaxLivestreamDuration||this.CameraMaxLivestreamDuration<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.CameraMaxLivestreamDuration})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-livestream-duration-seconds"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],["for","CameraMaxLivestreamDuration"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","id","CameraMaxLivestreamDuration","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModelChange","change","ngModel"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Maximum Livestream Duration"),k(),m(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return le(o.CameraMaxLivestreamDuration,a)||(o.CameraMaxLivestreamDuration=a),a}),V("change",function(){return o.update()}),k(),m(7,"div",6)(8,"span",7),_(9,"seconds"),k()()()()(),m(10,"small")(11,"i"),_(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),k()()()),2&r&&(w(6),ae("ngModel",o.CameraMaxLivestreamDuration),W("class",o.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[pt,ti,Fs,ht,st],encapsulation:2})}return e})(),Lve=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}pollingIntervalMinutes=0;inputIsInvalid=!1;readValue(){this.pollingIntervalMinutes=this.config.pollingIntervalMinutes??this.pollingIntervalMinutes}update(){this.inputIsInvalid=!1,(!this.pollingIntervalMinutes||this.pollingIntervalMinutes<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.pollingIntervalMinutes})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-polling-interval-minutes"]],features:[J],decls:13,vars:2,consts:[[1,"settingsItem","pb-0"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],["for","pollingIntervalMinutes"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","id","pollingIntervalMinutes","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModelChange","change","ngModel"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Polling Interval"),k(),m(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return le(o.pollingIntervalMinutes,a)||(o.pollingIntervalMinutes=a),a}),V("change",function(){return o.update()}),k(),m(7,"div",6)(8,"span",7),_(9,"minutes"),k()()()()(),m(10,"small")(11,"i"),_(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),k()()()),2&r&&(w(6),ae("ngModel",o.pollingIntervalMinutes),W("class",o.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[pt,ti,Fs,ht,st],encapsulation:2})}return e})(),Fve=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-primary","col-12","col-sm-4"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Change username, password and country"),k(),m(4,"a",3),_(5,"New Login"),k()()())},dependencies:[Zr],encapsulation:2})}return e})(),Pve=(()=>{class e extends ut{autoSyncStation=Wn.autoSyncStation;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.autoSyncStation=this.config.autoSyncStation??this.autoSyncStation}update(){this.updateConfig({autoSyncStation:this.autoSyncStation})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-auto-sync-station"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","autoSyncStation"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","autoSyncStation",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Auto Sync Station status"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.autoSyncStation,a)||(o.autoSyncStation=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," When enabled, all alarm and change modes of all devices will be removed and replaced by a single new Alarm/Mode feature which will sync every mode together. Furthermore, this synchronization will exclusively occur through Apple HomeKit; syncing won't apply if changes are made using the Eufy App. "),k()()()),2&r&&(w(5),ae("ngModel",o.autoSyncStation))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),Vve=(()=>{class e extends ut{enableEmbeddedPKCS1Support=Wn.enableEmbeddedPKCS1Support;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.enableEmbeddedPKCS1Support=this.config.enableEmbeddedPKCS1Support??this.enableEmbeddedPKCS1Support}update(){this.updateConfig({enableEmbeddedPKCS1Support:this.enableEmbeddedPKCS1Support})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-embedded-pkcs1-support"]],features:[J],decls:12,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","enableEmbeddedPKCS1Support"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","enableEmbeddedPKCS1Support",1,"form-check-input",3,"ngModelChange","change","ngModel"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Node.js-Compatibility-with-Eufy-Security-Plugin","target","_blank"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Enable Embedded PKCS1 Support"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.enableEmbeddedPKCS1Support,a)||(o.enableEmbeddedPKCS1Support=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," Starting from Node.js versions 18.19.1, 20.11.1, and 21.6.2, the removal of RSA_PKCS1_PADDING support breaks Eufy Security's livestream/P2P functionality. We've developed a countermeasure based on software calculation, it will be 10x times less effective than hardware but it can make some cameras work on Node.js 22+. "),m(9,"a",5),_(10,"More technical details here"),k(),_(11,". "),k()()()),2&r&&(w(5),ae("ngModel",o.enableEmbeddedPKCS1Support))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),jve=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["app-advanced-config-options"]],decls:22,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"]],template:function(r,o){1&r&&(m(0,"a",0),q(1,"lucide-angular",1),_(2," Back\n"),k(),m(3,"h6"),_(4," Advanced Settings "),k(),q(5,"app-edit-credentials")(6,"hr")(7,"app-polling-interval-minutes")(8,"hr")(9,"app-livestream-duration-seconds")(10,"hr")(11,"app-ignore-multiple-devices-warning")(12,"hr")(13,"app-auto-sync-station")(14,"hr")(15,"app-omit-log-files")(16,"hr")(17,"app-clean-cache")(18,"hr")(19,"app-embedded-pkcs1-support")(20,"hr")(21,"app-guard-modes-mapping"))},dependencies:[Zr,Fve,Lve,Ove,Nve,Rve,Tve,Vve,Ob,Pve,ei,la],encapsulation:2})}return e})();function Hve(e,n){if(1&e&&(m(0,"div"),_(1),k()),2&e){const t=z();w(),po(" ",t.presetDescription," ")}}let zve=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;debug=void 0;readRate=void 0;vcodec=void 0;acodec=void 0;videoFilter=void 0;encoderOptions=void 0;probeSize=void 0;analyzeDuration=void 0;maxStreams=void 0;maxWidth=void 0;maxHeight=void 0;maxFPS=void 0;maxBitrate=void 0;useSeparateProcesses=void 0;preset=0;presetDescription;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([o,i])=>{t[o]=i}),t.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let t=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(t=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=2),t!==this.preset&&(this.preset=t)}update(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||""),o=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},i={};Object.prototype.hasOwnProperty.call(o,"audio")&&(i.audio=o.audio),t.debug&&(i.debug=t.debug),t.readRate&&(i.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(i.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(i.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(i.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(i.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(i.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(i.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(i.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(i.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(i.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(i.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(i.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(i.useSeparateProcesses=t.useSeparateProcesses),t.updateDeviceConfig({videoConfig:i},t.device),t.updatePreset()})()}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{device:"device"},features:[J],decls:99,vars:54,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Presets",1,"form-select",3,"ngModelChange","change","ngModel"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModelChange","change","ngModel"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"change","checked"],["type","text","placeholder","libx264",1,"form-control",3,"ngModelChange","change","ngModel"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModelChange","change","ngModel"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModelChange","change","ngModel"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModelChange","change","ngModel"],["type","number","placeholder","0",1,"form-control",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0),_(1," The following options directly change the way how ffmpeg is configured when a stream is started. If configured incorrectly these will most likely result in faulty streams or bad streaming performance. "),q(2,"p"),_(3," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),q(4,"p"),m(5,"div",1)(6,"div",2)(7,"select",3),se("ngModelChange",function(a){return le(o.preset,a)||(o.preset=a),a}),V("change",function(){return o.loadPreset()}),m(8,"option",4),_(9,"No Preset (default)"),k(),m(10,"option",4),_(11,"Copy"),k(),m(12,"option",4),_(13,"Performance"),k(),m(14,"option",4),_(15,"Custom"),k()()()(),K(16,Hve,2,1,"div",5),q(17,"p"),m(18,"div",6)(19,"div",7)(20,"input",8),se("ngModelChange",function(a){return le(o.debug,a)||(o.debug=a),a}),V("change",function(){return o.update()}),k()(),m(21,"span",9),_(22,"ffmpeg debug"),k()(),m(23,"div",6)(24,"div",7)(25,"input",8),se("ngModelChange",function(a){return le(o.useSeparateProcesses,a)||(o.useSeparateProcesses=a),a}),V("change",function(){return o.update()}),k()(),m(26,"span",9),_(27,"use separate processes for video and audio"),k()(),m(28,"div",6)(29,"div",7)(30,"input",8),se("ngModelChange",function(a){return le(o.readRate,a)||(o.readRate=a),a}),V("change",function(){return o.update()}),k()(),m(31,"span",9),_(32,"readRate"),k()(),m(33,"div",6)(34,"div",7)(35,"input",10),V("change",function(){return o.vcodec=void 0===o.vcodec?"":void 0,o.update()}),k()(),m(36,"span",9),_(37,"vcodec"),k(),m(38,"input",11),se("ngModelChange",function(a){return le(o.vcodec,a)||(o.vcodec=a),a}),V("change",function(){return o.update()}),k()(),m(39,"div",6)(40,"div",7)(41,"input",10),V("change",function(){return o.acodec=void 0===o.acodec?"":void 0,o.update()}),k()(),m(42,"span",9),_(43,"acodec"),k(),m(44,"input",12),se("ngModelChange",function(a){return le(o.acodec,a)||(o.acodec=a),a}),V("change",function(){return o.update()}),k()(),m(45,"div",6)(46,"div",7)(47,"input",10),V("change",function(){return o.videoFilter=void 0===o.videoFilter?"":void 0,o.update()}),k()(),m(48,"span",9),_(49,"videoFilter"),k(),m(50,"input",13),se("ngModelChange",function(a){return le(o.videoFilter,a)||(o.videoFilter=a),a}),V("change",function(){return o.update()}),k()(),m(51,"div",6)(52,"div",7)(53,"input",10),V("change",function(){return o.encoderOptions=void 0===o.encoderOptions?"":void 0,o.update()}),k()(),m(54,"span",9),_(55,"encoderOptions"),k(),m(56,"input",14),se("ngModelChange",function(a){return le(o.encoderOptions,a)||(o.encoderOptions=a),a}),V("change",function(){return o.update()}),k()(),m(57,"div",6)(58,"div",7)(59,"input",10),V("change",function(){return o.probeSize=void 0===o.probeSize?0:void 0,o.update()}),k()(),m(60,"span",9),_(61,"probeSize"),k(),m(62,"input",15),se("ngModelChange",function(a){return le(o.probeSize,a)||(o.probeSize=a),a}),V("change",function(){return o.update()}),k()(),m(63,"div",6)(64,"div",7)(65,"input",10),V("change",function(){return o.analyzeDuration=void 0===o.analyzeDuration?0:void 0,o.update()}),k()(),m(66,"span",9),_(67,"analyzeDuration"),k(),m(68,"input",15),se("ngModelChange",function(a){return le(o.analyzeDuration,a)||(o.analyzeDuration=a),a}),V("change",function(){return o.update()}),k()(),m(69,"div",6)(70,"div",7)(71,"input",10),V("change",function(){return o.maxStreams=void 0===o.maxStreams?0:void 0,o.update()}),k()(),m(72,"span",9),_(73,"maxStreams"),k(),m(74,"input",15),se("ngModelChange",function(a){return le(o.maxStreams,a)||(o.maxStreams=a),a}),V("change",function(){return o.update()}),k()(),m(75,"div",6)(76,"div",7)(77,"input",10),V("change",function(){return o.maxWidth=void 0===o.maxWidth?0:void 0,o.update()}),k()(),m(78,"span",9),_(79,"maxWidth"),k(),m(80,"input",15),se("ngModelChange",function(a){return le(o.maxWidth,a)||(o.maxWidth=a),a}),V("change",function(){return o.update()}),k()(),m(81,"div",6)(82,"div",7)(83,"input",10),V("change",function(){return o.maxHeight=void 0===o.maxHeight?0:void 0,o.update()}),k()(),m(84,"span",9),_(85,"maxHeight"),k(),m(86,"input",15),se("ngModelChange",function(a){return le(o.maxHeight,a)||(o.maxHeight=a),a}),V("change",function(){return o.update()}),k()(),m(87,"div",6)(88,"div",7)(89,"input",10),V("change",function(){return o.maxFPS=void 0===o.maxFPS?0:void 0,o.update()}),k()(),m(90,"span",9),_(91,"fps"),k(),m(92,"input",15),se("ngModelChange",function(a){return le(o.maxFPS,a)||(o.maxFPS=a),a}),V("change",function(){return o.update()}),k()(),m(93,"div",6)(94,"div",7)(95,"input",10),V("change",function(){return o.maxBitrate=void 0===o.maxBitrate?0:void 0,o.update()}),k()(),m(96,"span",9),_(97,"bitrate"),k(),m(98,"input",15),se("ngModelChange",function(a){return le(o.maxBitrate,a)||(o.maxBitrate=a),a}),V("change",function(){return o.update()}),k()()()),2&r&&(w(7),ae("ngModel",o.preset),w(),E("ngValue",0),w(2),E("ngValue",1),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngIf",o.presetDescription),w(4),ae("ngModel",o.debug),w(5),ae("ngModel",o.useSeparateProcesses),w(5),ae("ngModel",o.readRate),w(5),E("checked",void 0!==o.vcodec||null),w(3),ae("ngModel",o.vcodec),W("disabled",void 0===o.vcodec||null),w(3),E("checked",void 0!==o.acodec||null),w(3),ae("ngModel",o.acodec),W("disabled",void 0===o.acodec||null),w(3),E("checked",void 0!==o.videoFilter||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.videoFilter),W("disabled",void 0===o.videoFilter||"copy"===o.vcodec||null),w(3),E("checked",void 0!==o.encoderOptions||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.encoderOptions),W("disabled",void 0===o.encoderOptions||"copy"===o.vcodec||null),w(3),E("checked",void 0!==o.probeSize||null),w(3),ae("ngModel",o.probeSize),W("disabled",void 0===o.probeSize||null),w(3),E("checked",void 0!==o.analyzeDuration||null),w(3),ae("ngModel",o.analyzeDuration),W("disabled",void 0===o.analyzeDuration||null),w(3),E("checked",void 0!==o.maxStreams||null),w(3),ae("ngModel",o.maxStreams),W("disabled",void 0===o.maxStreams||null),w(3),E("checked",void 0!==o.maxWidth||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.maxWidth),W("disabled",void 0===o.maxWidth||"copy"===o.vcodec||null),w(3),E("checked",void 0!==o.maxHeight||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.maxHeight),W("disabled",void 0===o.maxHeight||"copy"===o.vcodec||null),w(3),E("checked",void 0!==o.maxFPS||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.maxFPS),W("disabled",void 0===o.maxFPS||"copy"===o.vcodec||null),w(3),E("checked",void 0!==o.maxBitrate||null),W("disabled","copy"===o.vcodec||null),w(),W("style","copy"===o.vcodec?"text-decoration: line-through; color: lightgray;":null,Si),w(2),ae("ngModel",o.maxBitrate),W("disabled",void 0===o.maxBitrate||"copy"===o.vcodec||null))},dependencies:[pt,ua,ha,ti,Fs,Kt,bo,ht,st,mn],encapsulation:2})}return e})();function Bve(e,n){if(1&e){const t=Dt();m(0,"div",5)(1,"span"),_(2,"Refresh Interval"),k(),m(3,"div",6)(4,"div",7)(5,"input",8),se("ngModelChange",function(o){we(t);const i=z();return le(i.value,o)||(i.value=o),be(o)}),V("change",function(){return we(t),be(z().update())}),k(),m(6,"div",9)(7,"span",10),_(8,"minutes"),k()()()()()}if(2&e){const t=z();w(5),ae("ngModel",t.value),W("class",t.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end")}}let qve=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=0;inputIsInvalid=!1;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(t.value=r.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){this.validate()&&this.updateDeviceConfig({refreshSnapshotIntervalMinutes:this.value},this.device)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{device:"device"},features:[J],decls:15,vars:2,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","refreshSnapshotIntervalMinutes",1,"form-check-input",3,"change"],["class","d-flex flex-column flex-sm-row justify-content-between align-items-start align-items-sm-center mb-2",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],[1,"input-group","input-group-sm"],["type","number","aria-label","Polling interval minutes","aria-describedby","basic-addon2",3,"ngModelChange","change","ngModel"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Periodic Snapshot Refresh"),k(),m(4,"div",2)(5,"input",3),V("change",function(){return o.switchSetting()}),k()()(),K(6,Bve,9,2,"div",4),m(7,"small")(8,"i"),_(9," This option will force a snapshot to be generated every x minutes. This snapshot will then be used for homekit. So that your snapshots will never be older than this."),q(10,"br"),_(11," Best used with 'Cloud Snapshots' handling method."),q(12,"br"),_(13," Every setting below 5 minutes will be discarded due to performance reasons."),q(14,"br"),k()()()),2&r&&(w(5),W("checked",o.value>0||null),w(),E("ngIf",o.value))},dependencies:[pt,ti,Fs,ht,st,mn],encapsulation:2})}return e})(),Uve=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(t.value=r.delayCameraSnapshot)})()}update(){this.updateDeviceConfig({delayCameraSnapshot:this.value},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{device:"device"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","delayCameraSnapshot",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Night-Vision Improvement for camera snapshots"),k(),m(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," Force night vision on dark snapshots to improve the image."),q(9,"br"),m(10,"b"),_(11,"The snapshot request will be delayed by half a second if you enable this setting."),k()()()()),2&r&&(w(5),ae("ngModel",o.value))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})(),$ve=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(t.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateDeviceConfig({immediateRingNotificationWithoutSnapshot:this.value},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{device:"device"},features:[J],decls:12,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","immediateRingNotificationWithoutSnapshot",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Immediate Notification on ring events"),k(),m(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),q(9,"br"),m(10,"b"),_(11,"This option however delivers most likely an empty (black) snapshot on those events!"),k()()()()),2&r&&(w(5),ae("ngModel",o.value))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})();var rg=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(rg||{}),og=function(e){return e[e.CHARGING=1]="CHARGING",e[e.UNPLUGGED=2]="UNPLUGGED",e[e.PLUGGED=3]="PLUGGED",e[e.SOLAR_CHARGING=4]="SOLAR_CHARGING",e}(og||{});function Gve(e,n){1&e&&(m(0,"div",13),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not recommened to use another snapshot method other than cloud snapshots. "),k())}function Wve(e,n){1&e&&(m(0,"div",14),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),k())}function Zve(e,n){1&e&&(m(0,"div",18),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),k())}function Kve(e,n){if(1&e&&(m(0,"div",14)(1,"b"),_(2,"Caution!"),k(),_(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),m(4,"a",15),_(5,"here"),k(),_(6," for more informtaion. "),k(),K(7,Wve,2,0,"div",16)(8,Zve,2,0,"div",17)),2&e){const t=z(2);w(7),E("ngIf",2===t.chargingStatus),w(),E("ngIf",4===t.chargingStatus)}}function Yve(e,n){if(1&e){const t=Dt();m(0,"div",1),K(1,Gve,2,0,"div",2),m(2,"div",3)(3,"span"),_(4,"Snapshot Handling Method"),k(),m(5,"div",4)(6,"select",5),se("ngModelChange",function(o){we(t);const i=z();return le(i.value,o)||(i.value=o),be(o)}),V("change",function(){return we(t),be(z().update())}),m(7,"option",6),_(8,"Force Refresh Snapshots"),k(),m(9,"option",6),_(10,"Balanced"),k(),m(11,"option",6),_(12,"Default (Cloud)"),k()()()(),K(13,Kve,9,2,"ng-template",7),m(14,"table",8)(15,"thead")(16,"tr")(17,"th",9),_(18,"Mode"),k(),m(19,"th",9),_(20,"Force Refresh Snapshots"),k(),m(21,"th",9),_(22,"Balanced"),k(),m(23,"th",9),_(24,"Default (Cloud)"),k()()(),m(25,"tbody")(26,"tr")(27,"td"),_(28,"Up-to-date Snapshots (events)"),k(),m(29,"td"),q(30,"lucide-angular",10),k(),m(31,"td"),q(32,"lucide-angular",10),k(),m(33,"td"),q(34,"lucide-angular",10),k()(),m(35,"tr")(36,"td"),_(37,"Up-to-date Snapshots (HomeKit View)"),k(),m(38,"td"),q(39,"lucide-angular",10),k(),m(40,"td"),q(41,"lucide-angular",11),k(),m(42,"td"),q(43,"lucide-angular",12),k()(),m(44,"tr")(45,"td"),_(46,"Performance"),k(),m(47,"td"),q(48,"lucide-angular",12),k(),m(49,"td"),q(50,"lucide-angular",10),k(),m(51,"td"),q(52,"lucide-angular",10),k()(),m(53,"tr")(54,"td"),_(55,"Battery life"),k(),m(56,"td"),q(57,"lucide-angular",12),k(),m(58,"td"),q(59,"lucide-angular",12),k(),m(60,"td"),q(61,"lucide-angular",10),k()()()()()}if(2&e){const t=z();w(),E("ngIf",!t.standalone),w(5),ae("ngModel",t.value),w(),E("ngValue",1),w(2),E("ngValue",2),w(2),E("ngValue",3),w(2),E("ngIf",1===t.value)}}let Qve=(()=>{class e extends ut{device;value=3;ignoreMultipleDevicesWarning=Wn.ignoreMultipleDevicesWarning;chargingStatus=og.PLUGGED;standalone=!1;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){yield t.readValue()})()}readValue(){var t=this;return H(function*(){const r=t.device?.uniqueId||"";if(t.device){t.chargingStatus=t.device.chargingStatus,t.standalone=t.device.standalone,t.ignoreMultipleDevicesWarning=t.config.ignoreMultipleDevicesWarning??t.ignoreMultipleDevicesWarning;const o=t.getCameraConfig(r);t.value=o.snapshotHandlingMethod??t.value,!t.ignoreMultipleDevicesWarning&&!t.standalone&&(t.value=3,t.update())}})()}update(){!this.ignoreMultipleDevicesWarning&&!this.standalone&&(this.value=3),this.updateDeviceConfig({snapshotHandlingMethod:this.value},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{device:"device"},features:[J],decls:1,vars:1,consts:[["class","settingsItem",4,"ngIf"],[1,"settingsItem"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModelChange","change","ngModel"],[3,"ngValue"],[3,"ngIf"],[1,"table","table-striped"],["scope","col"],["name","square-plus",2,"color","#7FFF00"],["name","square",2,"color","#FF8C00"],["name","square-minus",2,"color","#B22222"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-warning"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings#streams-take-a-long-time-to-start","target","_blank","rel","noopener noreferrer"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-secondary"]],template:function(r,o){1&r&&K(0,Yve,62,6,"div",0),2&r&&E("ngIf",o.standalone||!o.standalone&&o.ignoreMultipleDevicesWarning)},dependencies:[pt,ua,ha,bo,ht,st,mn,ei,la],encapsulation:2})}return e})();function Xve(e,n){1&e&&(m(0,"div"),_(1," You can enable this setting nevertheless in "),m(2,"a",9),_(3,"Plugin Settings"),k(),q(4,"p"),k())}function Jve(e,n){if(1&e&&(m(0,"div",7),_(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not recommened to use HomeKit Secure Video with this camera since this would likely lead to conflicts."),q(2,"p"),K(3,Xve,5,0,"div",8),k()),2&e){const t=z();w(3),E("ngIf",!t.ignoreMultipleDevicesWarning)}}function e4e(e,n){1&e&&(m(0,"div",7),_(1," Since your device is battery powered and currently not charging we don't recommend using this setting. The battery life will most likely decrease significantly. "),k())}function t4e(e,n){1&e&&(m(0,"div",10),_(1," Please be advised that since your device is only solar powered we cannot guarantee optimal results with this setting. It might well be, that your battery is depleting faster than it can be recharged by the sun. This depends heavily on your exact use case. "),k())}let n4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){yield t.readValue()})()}device;hsv=false;chargingStatus=og.PLUGGED;camerasOnSameStation=[];standalone=!0;ignoreMultipleDevicesWarning=Wn.ignoreMultipleDevicesWarning;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");t.hsv=r.hsv??t.hsv;try{t.device&&(t.chargingStatus=t.device.chargingStatus,t.standalone=t.device.standalone,t.ignoreMultipleDevicesWarning=t.config.ignoreMultipleDevicesWarning??t.ignoreMultipleDevicesWarning,t.camerasOnSameStation.length>1&&!t.ignoreMultipleDevicesWarning&&(t.hsv=!1,t.update()))}catch(o){console.log(o)}})()}update(){this.updateDeviceConfig({hsv:this.hsv},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-enable-hsv"]],inputs:{device:"device"},features:[J],decls:20,vars:5,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","hsv"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","hsv",1,"form-check-input",3,"ngModelChange","change","ngModel"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-warning"],[4,"ngIf"],["routerLink","/advancedConfig"],["role","alert",1,"alert","alert-secondary"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Use HomeKit Secure Video"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.hsv,a)||(o.hsv=a),a}),V("change",function(){return o.update()}),k()()(),K(6,Jve,4,1,"div",5)(7,e4e,2,0,"div",5)(8,t4e,2,0,"div",6),m(9,"small")(10,"i"),_(11," This feature is in an experimental state and can have some side-effects due to technical limitations imposed by the connection to the eufy device. "),q(12,"p"),m(13,"ul")(14,"li"),_(15,"The device will record until the HomeKit-Controller cancels the recording, or up to a maximum of three minutes. However Apple analyzes the recorded video and only shows the snippets containing an actual event. "),k(),m(16,"li"),_(17,"Due to the continued recording the power consumption will be higher than with the native recording through the eufy app. Keep this in mind, if you use battery powered devices."),k(),m(18,"li"),_(19,"If you use low performance hardware the recording might interfere with livestreaming. You might be able to utilize the 'copy' preset in advanced configuration to mitigate this."),k()()()()()),2&r&&(w(5),ae("ngModel",o.hsv),W("disabled",!o.standalone&&!o.ignoreMultipleDevicesWarning||null),w(),E("ngIf",!o.standalone),w(),E("ngIf",2===o.chargingStatus&&o.hsv),w(),E("ngIf",4===o.chargingStatus&&o.hsv))},dependencies:[pt,Kt,ht,st,mn,Zr],encapsulation:2})}return e})();function r4e(e,n){if(1&e){const t=Dt();m(0,"div",3)(1,"label",4),_(2),k(),m(3,"div",5)(4,"input",6),se("ngModelChange",function(o){const i=we(t).$implicit;return le(i.value,o)||(i.value=o),be(o)}),V("change",function(){return we(t),be(z().update())}),k()()()}if(2&e){const t=n.$implicit;w(),E("for","flexSwitchCheck"+t.name),w(),po(" Display HomeKit switch to turn ",t.description," on/off "),w(2),ae("ngModel",t.value),E("id","flexSwitchCheck"+t.name)}}let o4e=(()=>{class e extends ut{device;buttonConfigs=[{name:"Enable",button:"enableButton",description:"camera",value:true,propertyName:"DeviceEnabled"},{name:"Motion",button:"motionButton",description:"detection",value:true,propertyName:"DeviceMotionDetection"},{name:"Light",button:"lightButton",description:"light",value:true,propertyName:"DeviceLight"},{name:"IndoorChime",button:"indoorChimeButton",description:"indoor chime",value:false,propertyName:"DeviceChimeIndoor"}];constructor(t){super(t)}ngOnInit(){this.readValue()}readValue(){var t=this;return H(function*(){const o=t.getCameraConfig(t.device?.uniqueId??"");t.buttonConfigs=t.buttonConfigs.filter(i=>!(!t.device||!t.device[i.propertyName]||(i.button in o&&(i.value=o[i.button]??i.value),0)))})()}update(){const t={};this.buttonConfigs.forEach(r=>{t[r.button]=r.value}),this.updateDeviceConfig(t,this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-camera-buttons"]],inputs:{device:"device"},features:[J],decls:8,vars:1,consts:[[1,"settingsItem"],["class","d-flex justify-content-between align-items-center mb-2",4,"ngFor","ngForOf"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[3,"for"],[1,"form-check","form-switch"],["type","checkbox","role","switch",1,"form-check-input",3,"ngModelChange","change","ngModel","id"]],template:function(r,o){1&r&&(m(0,"div",0),K(1,r4e,5,4,"div",1),m(2,"small")(3,"i"),_(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),m(5,"a",2),_(6,"here"),k(),_(7," for more details. "),k()()()),2&r&&(w(),E("ngForOf",o.buttonConfigs))},dependencies:[Gu,pt,Kt,ht,st],encapsulation:2})}return e})();function i4e(e,n){1&e&&(m(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),k())}let a4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;rtspIsEnabled=!1;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.rtspIsEnabled=r.rtsp)})()}update(){this.updateDeviceConfig({talkback:this.value},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-talkback"]],inputs:{device:"device"},features:[J],decls:13,vars:2,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","talkback",1,"form-check-input",3,"ngModelChange","change","ngModel"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Talkback (Two way communication)"),k(),m(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()(),K(6,i4e,2,0,"div",4),m(7,"small")(8,"i"),_(9," Enables you to talk with someone infront of the camera while streaming. "),q(10,"p"),_(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),q(12,"br"),k()()()),2&r&&(w(5),ae("ngModel",o.value),w(),E("ngIf",o.rtspIsEnabled&&o.value))},dependencies:[pt,Kt,ht,st,mn],encapsulation:2})}return e})();let c4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=true;samplerate=0;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(t.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const o=r.videoConfig.audioSampleRate;(8===o||16===o||24===o)&&(t.samplerate=o)}})()}update(){var t=this;return H(function*(){if(!t.device)return;let r=t.getCameraConfig(t.device?.uniqueId||"");r||(r={serialNumber:t.device?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=t.value,r.videoConfig.audioSampleRate=t.samplerate,t.updateDeviceConfig(r,t.device)})()}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-enable-audio"]],inputs:{device:"device"},features:[J],decls:25,vars:7,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","audio",1,"form-check-input",3,"ngModelChange","change","ngModel"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Samplerate",1,"form-select",3,"ngModelChange","change","ngModel"],[3,"ngValue"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Audio"),k(),m(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," Try to enable audio streaming for this device."),q(9,"br"),_(10," If you encounter problems try to disable this setting. "),k()(),q(11,"p"),m(12,"div",4)(13,"span"),_(14,"Force Audio Sample Rate"),k(),m(15,"div",5)(16,"select",6),se("ngModelChange",function(a){return le(o.samplerate,a)||(o.samplerate=a),a}),V("change",function(){return o.update()}),m(17,"option",7),_(18,"Default Sample Rate"),k(),m(19,"option",7),_(20,"8 kHz"),k(),m(21,"option",7),_(22,"16 kHz"),k(),m(23,"option",7),_(24,"24 kHz"),k()()()()()),2&r&&(w(5),ae("ngModel",o.value),w(11),ae("ngModel",o.samplerate),W("disabled",!o.value||null),w(),E("ngValue",0),w(2),E("ngValue",8),w(2),E("ngValue",16),w(2),E("ngValue",24))},dependencies:[pt,ua,ha,Kt,bo,ht,st],encapsulation:2})}return e})();function l4e(e,n){1&e&&(m(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),k())}let d4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;talkbackIsEnabled=!1;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.talkbackIsEnabled=r.talkback)})()}update(){this.updateDeviceConfig({rtsp:this.value},this.device)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-rtsp-streaming"]],inputs:{device:"device"},features:[J],decls:11,vars:2,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","rtsp",1,"form-check-input",3,"ngModelChange","change","ngModel"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use RTSP streaming"),k(),m(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()(),K(6,l4e,2,0,"div",4),m(7,"small")(8,"i"),_(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),q(10,"br"),k()()()),2&r&&(w(5),ae("ngModel",o.value),w(),E("ngIf",o.talkbackIsEnabled&&o.value))},dependencies:[pt,Kt,ht,st,mn],encapsulation:2})}return e})();function u4e(e,n){1&e&&(m(0,"small")(1,"i"),_(2," This option is disabled since doorbells are handled always as cameras. "),k()())}function h4e(e,n){1&e&&(m(0,"small")(1,"i"),_(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),k()())}let p4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}device;checkDeviceConfig=new _e;value="true";disabled=!1;readValue(){var t=this;return H(function*(){const r=t.getCameraConfig(t.device?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(t.value=r.enableCamera)})()}update(){this.updateDeviceConfig({enableCamera:JSON.parse(this.value)},this.device),this.checkDeviceConfig.emit()}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-enable-camera"]],inputs:{device:"device"},outputs:{checkDeviceConfig:"checkDeviceConfig"},features:[J],decls:12,vars:4,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"col-12","col-sm-4"],["aria-label","Device Operation Mode",1,"form-select",3,"ngModelChange","change","ngModel"],["value","false"],["value","true"],[4,"ngIf"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span"),_(3,"Operation Mode"),k(),m(4,"div",2)(5,"select",3),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),m(6,"option",4),_(7,"Motion Sensor"),k(),m(8,"option",5),_(9,"Camera"),k()()()(),K(10,u4e,3,0,"small",6)(11,h4e,3,0,"small",6),k()),2&r&&(w(5),ae("ngModel",o.value),W("disabled",!!o.disabled||null),w(5),E("ngIf",o.disabled),w(),E("ngIf",!o.disabled))},dependencies:[pt,ua,ha,bo,ht,st,mn],encapsulation:2})}return e})(),f4e=(()=>{class e extends ut{identifier="";constructor(t){super(t)}ngOnInit(){this.readValue()}accessory;isStation=!1;isDisabled=!1;ignored=new _e;value=!0;readValue(){var t=this;return H(function*(){if(t.accessory){if(t.isDisabled)return void(t.value=!1);if(t.accessory.disabled)return void(t.value=!1);t.config=yield t.pluginService.getConfig(),t.identifier=t.isStation?"ignoreStations":"ignoreDevices",Array.isArray(t.config[t.identifier])&&(t.value=void 0===t.config[t.identifier].find(r=>r===t.accessory.uniqueId))}})()}update(){var t=this;return H(function*(){t.isDisabled||t.accessory&&(t.ignored.emit(!t.value),t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[t.identifier])&&void 0!==t.config[t.identifier].find(r=>r===t.accessory.uniqueId)&&(t.config[t.identifier]=t.config[t.identifier].filter(r=>r!==t.accessory.uniqueId)):Array.isArray(t.config[t.identifier])&&!t.config[t.identifier].find(r=>r===t.accessory.uniqueId)?t.config[t.identifier].push(t.accessory.uniqueId):Array.isArray(t.config[t.identifier])||(t.config[t.identifier]=[t.accessory.uniqueId]),t.pluginService.updateConfig(t.config))})()}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory",isStation:"isStation",isDisabled:"isDisabled"},outputs:{ignored:"ignored"},features:[J],decls:2,vars:3,consts:[[1,"form-check","form-switch"],["type","checkbox","role","switch",1,"form-check-input",3,"ngModelChange","change","ngModel","id","disabled"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"input",1),se("ngModelChange",function(a){return le(o.value,a)||(o.value=a),a}),V("change",function(){return o.update()}),k()()),2&r&&(w(),ae("ngModel",o.value),E("id",o.isStation?"ignoreStation":"ignoreDevice")("disabled",o.isDisabled))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})();function ig(e){e||(e=D(er));const n=new We(t=>{if(!e.destroyed)return e.onDestroy(t.next.bind(t));t.next()});return t=>t.pipe(Lt(n))}let m4e=(()=>{class e{constructor(){this._ngbConfig=D(C1),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ag=(()=>{class e{constructor(){this._config=D(m4e),this._element=D(At),this._zone=D(De),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new _e,this.horizontal=this._config.horizontal,this.shown=new _e,this.hidden=new _e}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,r){return Sr(this._zone,this._element.nativeElement,PU,{animation:r,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,r){this._runTransition(t,r).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(r,o){2&r&&ir("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})();const k4e=["container"],v4e=["ngbAccordionBody",""],M4e=["*"];let _4e=(()=>{class e{constructor(){this._ngbConfig=D(C1),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),w4e=0,Lb=(()=>{class e{constructor(){this._item=D(oi),this._viewRef=null,this.elementRef=D(At)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(r,o,i){if(1&r&&ys(i,rr,7),2&r){let a;Yi(a=Qi())&&(o._bodyTpl=a.first)}},viewQuery:function(r,o){if(1&r&&Zd(k4e,7,Vn),2&r){let i;Yi(i=Qi())&&(o._vcr=i.first)}},hostAttrs:[1,"accordion-body"],attrs:v4e,ngContentSelectors:M4e,decls:3,vars:0,consts:[["container",""]],template:function(r,o){1&r&&(Go(),Hp(0,null,0),Wo(2))},encapsulation:2})}}return e})(),sg=(()=>{class e{constructor(){this.item=D(oi),this.ngbCollapse=D(ag)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(r,o){2&r&&(Zi("id",o.item.collapseId),W("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[ap([ag])]})}}return e})(),Fb=(()=>{class e{constructor(){this.item=D(oi),this.accordion=D(gh)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(r,o){1&r&&V("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),2&r&&(Zi("id",o.item.toggleId),W("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),ir("collapsed",o.item.collapsed))}})}}return e})(),Pb=(()=>{class e{constructor(){this.item=D(oi)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(r,o){2&r&&Zi("disabled",o.item.disabled)},features:[ap([Fb])]})}}return e})(),Vb=(()=>{class e{constructor(){this.item=D(oi)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(r,o){2&r&&ir("collapsed",o.item.collapsed)}})}}return e})(),oi=(()=>{class e{constructor(){this._accordion=D(gh),this._cd=D(Mr),this._destroyRef=D(er),this._collapsed=!0,this._id="ngb-accordion-item-"+w4e++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new _e,this.shown=new _e,this.hide=new _e,this.hidden=new _e}set id(t){Xu(t)&&""!==t&&(this._id=t)}set destroyOnHide(t){this._destroyOnHide=t}get destroyOnHide(){return void 0===this._destroyOnHide?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(t){t?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){const{ngbCollapse:t}=this._collapse;t.animation=!1,t.collapsed=this.collapsed,t.animation=this._accordion.animation,t.hidden.pipe(ig(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id),this._cd.markForCheck()}),t.shown.pipe(ig(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(r,o,i){if(1&r&&ys(i,sg,7),2&r){let a;Yi(a=Qi())&&(o._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(r,o){2&r&&Zi("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]})}}return e})(),gh=(()=>{class e{constructor(){this._config=D(_4e),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new _e,this.shown=new _e,this.hide=new _e,this.hidden=new _e}toggle(t){this._getItem(t)?.toggle()}expand(t){this._getItem(t)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(t=>!t.collapsed)||this._items.first.expand():this._items.forEach(t=>t.expand()))}collapse(t){this._getItem(t)?.collapse()}collapseAll(){this._items?.forEach(t=>t.collapse())}isExpanded(t){const r=this._getItem(t);return!!r&&!r.collapsed}_ensureCanExpand(t){return!(this.closeOthers&&(this._items?(this._items.find(r=>!r.collapsed&&t!==r)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(t){return this._items?.find(r=>r.id===t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Y({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(r,o,i){if(1&r&&ys(i,oi,4),2&r){let a;Yi(a=Qi())&&(o._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})(),b4e=(()=>{class e extends ut{constructor(t){super(t)}ngOnInit(){this.readValue()}station;value=[];readValue(){var t=this;return H(function*(){const r=yield t.getStationConfig(t.station?.uniqueId||"");r&&Array.isArray(r.manualTriggerModes)&&(t.value=r.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(r=>r!==t):this.value.push(t)}update(){this.updateStationConfig({manualTriggerModes:this.value},this.station)}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{station:"station"},features:[J],decls:34,vars:4,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-start","align-items-sm-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","home",1,"form-check-input",3,"change"],["type","checkbox","role","switch","id","away",1,"form-check-input",3,"change"],["type","checkbox","role","switch","id","night",1,"form-check-input",3,"change"],["type","checkbox","role","switch","id","off",1,"form-check-input",3,"change"]],template:function(r,o){1&r&&(Gt(0,"div",0)(1,"div",1)(2,"span"),_(3,"HomeKit Home"),Wt(),Gt(4,"div",2)(5,"input",3),Ki("change",function(){return o.toggle(0),o.update()}),Wt()()(),Gt(6,"div",1)(7,"span"),_(8,"HomeKit Away"),Wt(),Gt(9,"div",2)(10,"input",4),Ki("change",function(){return o.toggle(1),o.update()}),Wt()()(),Gt(11,"div",1)(12,"span"),_(13,"HomeKit Night"),Wt(),Gt(14,"div",2)(15,"input",5),Ki("change",function(){return o.toggle(2),o.update()}),Wt()()(),Gt(16,"div",1)(17,"span"),_(18,"HomeKit Off/Disarmed"),Wt(),Gt(19,"div",2)(20,"input",6),Ki("change",function(){return o.toggle(3),o.update()}),Wt()()(),Gt(21,"small")(22,"i"),_(23," You can manually trigger (and reset) the stations alarm with a switch. Therefore you can utilize non eufy devices (e.g. a motion sensor, leak sensor, break-in sensor, ... from another vendor) to trigger the alarm with a homekit automation."),$o(24,"p"),_(25," In order to do so, you must specify in which station mode the alarm can be triggered. "),$o(26,"p"),_(27," Please be aware that this setting can only be set on a per station basis and not per automation."),$o(28,"br"),_(29," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),$o(30,"p"),_(31," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),$o(32,"br"),_(33," The native alarm delay setting is currently not supported. "),Wt()()()),2&r&&(w(5),W("checked",-1!==o.value.indexOf(0)||null),w(5),W("checked",-1!==o.value.indexOf(1)||null),w(5),W("checked",-1!==o.value.indexOf(2)||null),w(5),W("checked",-1!==o.value.indexOf(3)||null))},encapsulation:2})}return e})();function C4e(e,n){if(1&e&&(m(0,"p"),_(1),m(2,"span",6),_(3),k()()),2&e){const t=z(2);w(),po("",t.device.displayName," - "),w(2),Xd("(",t.device.type," - ",t.device.typename," - ",t.device.uniqueId,")")}}function D4e(e,n){1&e&&K(0,C4e,4,4,"ng-template",5),2&e&&E("ngIf",z().device)}function x4e(e,n){if(1&e&&(m(0,"p"),_(1),m(2,"span",6),_(3),k()()),2&e){const t=z(2);w(),po("",t.station.displayName," - "),w(2),Xd("(",t.station.type," - ",t.station.typename," - ",t.station.uniqueId,")")}}function E4e(e,n){1&e&&K(0,x4e,4,4,"ng-template",5),2&e&&E("ngIf",z().station)}function S4e(e,n){if(1&e){const t=Dt();m(0,"div",9)(1,"label",10),_(2,"Enable Device on Apple Homekit"),k(),m(3,"app-ignore-accessory",11),V("ignored",function(o){return we(t),be(z(2).ignoredDeviceChanged(o))}),k()()}if(2&e){const t=z(2);w(3),E("accessory",t.device)("isDisabled",t.device.isKeypad)}}function A4e(e,n){1&e&&(m(0,"p"),_(1," We've noticed a keypad in your setup. Please be aware that the keypad won't have any function with our plugin. The alarm triggering is already managed by the station's security mode, rendering the keypad useless. "),k())}function I4e(e,n){1&e&&(m(0,"p"),_(1," When the keypad is connected to the homebase, it generates an Off mode. Exercise caution when altering the security mode, as this process should occur automatically. If you encounter any issues, ensure to remove any configurations associated with eufy modes mapping. "),k())}function T4e(e,n){if(1&e&&(m(0,"div"),q(1,"hr")(2,"app-rtsp-streaming",20),k()),2&e){const t=z(4);w(2),E("device",t.device)}}function R4e(e,n){if(1&e&&(m(0,"div"),q(1,"hr")(2,"app-enable-audio",20),k()),2&e){const t=z(4);w(2),E("device",t.device)}}function N4e(e,n){if(1&e&&(m(0,"div"),q(1,"hr")(2,"app-talkback",20),k()),2&e){const t=z(4);w(2),E("device",t.device)}}function O4e(e,n){if(1&e){const t=Dt();m(0,"app-enable-camera",19),V("checkDeviceConfig",function(){return we(t),be(z(3).checkDeviceConfig())}),k(),K(1,T4e,3,1,"div",8)(2,R4e,3,1,"div",8)(3,N4e,3,1,"div",8)}if(2&e){const t=z(3);E("device",t.device),w(),E("ngIf",t.enableCamera&&t.supportsRTSP),w(),E("ngIf",t.enableCamera),w(),E("ngIf",t.enableCamera&&t.supportsTalkback)}}function L4e(e,n){if(1&e&&(m(0,"div"),q(1,"hr")(2,"app-enable-hsv",20),k()),2&e){const t=z(4);w(2),E("device",t.device)}}function F4e(e,n){if(1&e&&(q(0,"app-camera-buttons",20),K(1,L4e,3,1,"div",8)),2&e){const t=z(3);E("device",t.device),w(),E("ngIf",t.enableCamera)}}function P4e(e,n){if(1&e&&(m(0,"div"),q(1,"hr")(2,"app-immediate-notification-on-ring",20),k()),2&e){const t=z(5);w(2),E("device",t.device)}}function V4e(e,n){if(1&e&&(q(0,"app-snapshot-handling-method",20),K(1,P4e,3,1,"div",8),q(2,"hr")(3,"app-delay-camera-snapshots",20)(4,"hr")(5,"app-periodic-snapshot-refresh",20)),2&e){const t=z(4);E("device",t.device),w(),E("ngIf",t.isDoorbell),w(2),E("device",t.device),w(2),E("device",t.device)}}function j4e(e,n){1&e&&(m(0,"div",13)(1,"h2",14)(2,"button",15),_(3,"Snapshot Behaviour"),k()(),m(4,"div",16)(5,"div",17),K(6,V4e,6,4,"ng-template"),k()()())}function H4e(e,n){1&e&&q(0,"app-advanced-videoconfig",20),2&e&&E("device",z(4).device)}function z4e(e,n){1&e&&(m(0,"div",13)(1,"h2",14)(2,"button",15),_(3,"Advanced Video Config"),k()(),m(4,"div",16)(5,"div",17),K(6,H4e,1,1,"ng-template"),k()()())}function B4e(e,n){if(1&e&&(m(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),_(4,"Device Settings"),k()(),m(5,"div",16)(6,"div",17),K(7,O4e,4,4,"ng-template"),k()()(),m(8,"div",13)(9,"h2",14)(10,"button",15),_(11,"HomeKit Behaviour"),k()(),m(12,"div",16)(13,"div",17),K(14,F4e,2,2,"ng-template"),k()()(),K(15,j4e,7,0,"div",18)(16,z4e,7,0,"div",18),k()),2&e){const t=z(2);E("closeOthers",!0),w(15),E("ngIf",t.enableCamera),w(),E("ngIf",t.enableCamera)}}function q4e(e,n){if(1&e&&K(0,S4e,4,2,"div",7)(1,A4e,2,0,"p",8)(2,I4e,2,0,"p",8)(3,B4e,17,3,"ng-template",5),2&e){const t=z();E("ngIf",!t.device.isKeypad),w(),E("ngIf",t.device.isKeypad),w(),E("ngIf",t.device.isKeypad),w(),E("ngIf",!t.device.ignored&&t.isCamera)}}function U4e(e,n){1&e&&q(0,"app-guard-modes-mapping",24),2&e&&E("station",z(3).station)}function $4e(e,n){1&e&&q(0,"app-manual-alarm-modes",24),2&e&&E("station",z(3).station)}function G4e(e,n){1&e&&(m(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),_(4,"Customize HomeKit-Eufy App Mode Mapping"),k()(),m(5,"div",16)(6,"div",17),K(7,U4e,1,1,"ng-template"),k()()(),m(8,"div",13)(9,"h2",14)(10,"button",15),_(11,"Manual Alarm Trigger Modes"),k()(),m(12,"div",16)(13,"div",17),K(14,$4e,1,1,"ng-template"),k()()()()),2&e&&E("closeOthers",!0)}function W4e(e,n){if(1&e){const t=Dt();m(0,"div",9)(1,"label",21),_(2,"Enable Device Security Control on Apple Homekit"),k(),m(3,"app-ignore-accessory",22),V("ignored",function(o){return we(t),be(z().ignoredStationChanged(o))}),k()(),K(4,G4e,15,1,"div",23)}if(2&e){const t=z();w(3),E("accessory",t.station)("isStation",!0),w(),E("ngIf",!t.station.ignored)}}let Z4e=(()=>{class e extends ut{route;station;device;uniqueId="";type="";isDoorbell=!1;isCamera=!1;enableCamera=!0;supportsRTSP=!1;supportsTalkback=!1;constructor(t,r){super(t),this.route=r}ngOnInit(){switch(this.route.params.subscribe(t=>{this.uniqueId=t.id,this.type=t.type}),this.type){case"both":this.station=this.pluginService.getStation(this.uniqueId),this.device=this.pluginService.getDevice(this.uniqueId);break;case"station":this.station=this.pluginService.getStation(this.uniqueId);break;case"device":this.device=this.pluginService.getDevice(this.uniqueId)}this.station&&this.station.disabled&&(this.station.ignored=!0),this.device&&(this.checkDeviceConfig(),this.isCamera=this.device.isCamera??this.isCamera,this.isDoorbell=this.device.isDoorbell??this.isDoorbell,this.supportsRTSP=this.device.supportsRTSP??this.supportsRTSP,this.supportsTalkback=this.device.supportsTalkback??this.supportsTalkback,this.supportsRTSP||this.updateDeviceConfig({rtsp:!1},this.device),this.supportsTalkback||this.updateDeviceConfig({talkback:!1},this.device))}ignoredStationChanged(t){this.station.ignored=t}checkDeviceConfig(){const t=this.getCameraConfig(this.device?.uniqueId||"");t&&Object.prototype.hasOwnProperty.call(t,"enableCamera")&&(this.enableCamera=t.enableCamera)}ignoredDeviceChanged(t){this.device.ignored=t}static \u0275fac=function(r){return new(r||e)(T(Qe),T(ia))};static \u0275cmp=me({type:e,selectors:[["app-accessory-config-options"]],features:[J],decls:8,vars:4,consts:[["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"],[3,"ngSwitch"],[3,"ngSwitchCase"],[3,"ngSwitchDefault"],[3,"ngIf"],[1,"serial"],["class","d-flex justify-content-between align-items-center mt-2 mb-2",4,"ngIf"],[4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","mt-2","mb-2"],["for","ignoreDevice"],[3,"ignored","accessory","isDisabled"],["ngbAccordion","",3,"closeOthers"],["ngbAccordionItem",""],["ngbAccordionHeader",""],["ngbAccordionButton",""],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","",4,"ngIf"],[3,"checkDeviceConfig","device"],[3,"device"],["for","ignoreStation"],[3,"ignored","accessory","isStation"],["ngbAccordion","",3,"closeOthers",4,"ngIf"],[3,"station"]],template:function(r,o){1&r&&(m(0,"a",0),q(1,"lucide-angular",1),_(2," Back\n"),k(),jn(3,2),K(4,D4e,1,1,"ng-template",3)(5,E4e,1,1,"ng-template",4),Sn(),K(6,q4e,4,4,"ng-template",5)(7,W4e,5,3,"ng-template",5)),2&r&&(w(3),E("ngSwitch",o.type),w(),E("ngSwitchCase","device"),w(2),E("ngIf",o.device),w(),E("ngIf",o.station&&!o.station.disabled))},dependencies:[Zr,mn,b1,fy,x7,ei,la,f4e,p4e,d4e,c4e,a4e,o4e,n4e,Qve,$ve,Uve,qve,zve,Ob,b4e,Pb,gh,oi,Vb,Lb,sg],encapsulation:2})}return e})();const K4e={AF:"Afghanistan",AX:"Aland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and Mcdonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libyan Arab Jamahiriya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territory, Occupied",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",CS:"Serbia and Montenegro",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turk",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.s.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"};let Y4e=(()=>{class e{pluginService;constructor(t){this.pluginService=t}getCredentials(){const t=this.pluginService.getConfig();if(!t.username||!t.password)throw new Error("no full credentials in config");return{username:t.username,password:t.password,country:t.country?t.country:"US",deviceName:t.deviceName}}login(t){return H(function*(){try{const r=yield window.homebridge.request("/login",t);return Promise.resolve(r)}catch(r){return Promise.reject(r)}})()}updateConfigCredentials(t){var r=this;return H(function*(){let o={};try{o=r.pluginService.getConfig()}catch(i){console.log("Could not get credentials from config: ",i)}o.username=t.username,o.password=t.password,o.country=t.country,o.deviceName=t.deviceName,yield r.pluginService.updateConfig(o),yield r.pluginService.saveConfig()})()}static \u0275fac=function(r){return new(r||e)(de(Qe))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Q4e(e,n){1&e&&(_(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),q(1,"p"),m(2,"i"),_(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),k())}function X4e(e,n){if(1&e){const t=Dt();m(0,"p",5)(1,"ngb-alert",6),V("closed",function(){return we(t),be(z().resetLoginFailed())}),q(2,"lucide-angular",7),m(3,"strong"),_(4,"Login was not successful!"),k()()()}2&e&&(w(),E("dismissible",!0))}function J4e(e,n){if(1&e){const t=Dt();m(0,"div",8)(1,"div",9),q(2,"lucide-angular",10),m(3,"div"),_(4," Please make sure to restart plugin after you're done. "),k()(),m(5,"button",11),V("click",function(){return we(t),be(z().loginStep=1)}),_(6,"Continue"),k()()}}function e5e(e,n){1&e&&(_(0,"You can leave this field blank."),q(1,"p"),_(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),m(3,"a",30),_(4,"this disussion"),k(),_(5," to learn more."))}function t5e(e,n){if(1&e&&(m(0,"option"),_(1),k()),2&e){const t=n.$implicit,r=z(2);W("value",t.short)("selected",r.credentials.country===t.short||null),w(),po("",t.long," ")}}function n5e(e,n){1&e&&q(0,"span",31)}function r5e(e,n){1&e&&(m(0,"span"),_(1,"..."),k())}function o5e(e,n){if(1&e){const t=Dt();m(0,"div")(1,"div",12),q(2,"lucide-angular",10),m(3,"div"),_(4," Using the same account for both the Eufy App and the Eufy Security Plugin can sometimes cause unexpected issues. To ensure smooth operation, it's recommended to create a dedicated admin account for the Homebridge Eufy Security Plugin. Follow the steps described "),m(5,"a",13),_(6,"here"),k(),_(7,". "),k()(),m(8,"div",14)(9,"input",15),se("ngModelChange",function(o){we(t);const i=z();return le(i.credentials.username,o)||(i.credentials.username=o),be(o)}),k(),m(10,"label",16),_(11,"Email address"),k()(),q(12,"p"),m(13,"div",14)(14,"input",17),se("ngModelChange",function(o){we(t);const i=z();return le(i.credentials.password,o)||(i.credentials.password=o),be(o)}),k(),m(15,"label",18),_(16,"Password"),k()(),q(17,"p"),m(18,"div",14),K(19,e5e,6,0,"ng-template",null,1,yo),m(21,"input",19),se("ngModelChange",function(o){we(t);const i=z();return le(i.credentials.deviceName,o)||(i.credentials.deviceName=o),be(o)}),k(),m(22,"label",20),_(23,"Device Name"),k()(),m(24,"div",21)(25,"div",22)(26,"select",23),se("ngModelChange",function(o){we(t);const i=z();return le(i.credentials.country,o)||(i.credentials.country=o),be(o)}),K(27,t5e,2,3,"option",24),k(),m(28,"small")(29,"i"),_(30," Make sure to use the same country that you use to login with the eufy app. "),k()()(),q(31,"span",25),m(32,"div",26)(33,"button",27),V("click",function(){return we(t),be(z().login())}),K(34,n5e,1,0,"span",28),_(35," Login "),K(36,r5e,2,0,"span",4),k(),m(37,"button",29),V("click",function(){return we(t),be(z().cancelLogin())}),_(38," Cancel "),k()()()()}if(2&e){const t=fn(20),r=z();w(9),ae("ngModel",r.credentials.username),W("class",r.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),w(5),ae("ngModel",r.credentials.password),W("class",r.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),w(7),ae("ngModel",r.credentials.deviceName),E("ngbTooltip",t)("closeDelay",2500),W("class",r.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!r.loginInProgress||null),w(5),ae("ngModel",r.credentials.country),W("disabled",!!r.loginInProgress||null),w(),E("ngForOf",r.countries),w(6),W("disabled",!!r.loginInProgress||null),w(),E("ngIf",r.loginInProgress),w(2),E("ngIf",r.loginInProgress),w(),W("disabled",!!r.loginInProgress||null)}}function i5e(e,n){1&e&&q(0,"span",31)}function a5e(e,n){1&e&&(m(0,"span"),_(1,"..."),k())}function s5e(e,n){if(1&e){const t=Dt();m(0,"div")(1,"div",32),_(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),k(),m(3,"div",33)(4,"div",34)(5,"input",35),se("ngModelChange",function(o){we(t);const i=z();return le(i.otp,o)||(i.otp=o),be(o)}),k(),m(6,"label",36),_(7,"2FA Code"),k()()(),m(8,"div",37)(9,"div",38)(10,"button",39),V("click",function(){return we(t),be(z().login())}),K(11,i5e,1,0,"span",28),_(12," Verify "),K(13,a5e,2,0,"span",4),k()()(),m(14,"div",33)(15,"div",38)(16,"button",29),V("click",function(){return we(t),be(z().cancelLogin())}),_(17," Cancel "),k()()()()}if(2&e){const t=z();w(5),ae("ngModel",t.otp),W("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),w(5),W("disabled",!!t.loginInProgress||null),w(),E("ngIf",t.loginInProgress),w(2),E("ngIf",t.loginInProgress),w(3),W("disabled",!!t.loginInProgress||null)}}function c5e(e,n){1&e&&q(0,"span",31)}function l5e(e,n){1&e&&(m(0,"span"),_(1,"..."),k())}function d5e(e,n){if(1&e){const t=Dt();m(0,"div")(1,"div",32),_(2,"Please enter the captcha below."),k(),m(3,"div",37),q(4,"img",40),k(),m(5,"div",33)(6,"div",34)(7,"input",35),se("ngModelChange",function(o){we(t);const i=z();return le(i.captcha,o)||(i.captcha=o),be(o)}),k(),m(8,"label",36),_(9,"Captcha"),k()()(),m(10,"div",37)(11,"div",38)(12,"button",39),V("click",function(){return we(t),be(z().login())}),K(13,c5e,1,0,"span",28),_(14," Verify "),K(15,l5e,2,0,"span",4),k()()(),m(16,"div",33)(17,"div",38)(18,"button",29),V("click",function(){return we(t),be(z().cancelLogin())}),_(19," Cancel "),k()()()()}if(2&e){const t=z();w(4),E("src",t.captchaImageData,Gl),w(3),ae("ngModel",t.captcha),W("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),w(5),W("disabled",!!t.loginInProgress||null),w(),E("ngIf",t.loginInProgress),w(2),E("ngIf",t.loginInProgress),w(3),W("disabled",!!t.loginInProgress||null)}}var ur=function(e){return e[e.START=0]="START",e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(ur||{});let u5e=(()=>{class e{loginService;routerService;countries=[];credentials={username:"",password:"",country:"US",deviceName:""};otp="";captcha="";captchaImageData="";captchaId="";loginInProgress=!1;loginFailed=!1;loginStep=ur.START;firstLoginAssumed=!1;emailIsValid=!0;passwordIsValid=!0;otpIsValid=!0;captchaIsValid=!0;constructor(t,r){this.loginService=t,this.routerService=r}ngOnInit(){var t=this;return H(function*(){t.getCredentials(),t.fillCountryArray()})()}getCredentials(){var t=this;return H(function*(){try{t.credentials=t.loginService.getCredentials()}catch(r){t.firstLoginAssumed=!0,console.log(r)}})()}fillCountryArray(){Object.entries(K4e).forEach(([t,r])=>{this.countries.push({short:t,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===ur.LOGIN&&this.loginWithCredentials(),this.loginStep===ur.TFA&&this.loginWithTFA(),this.loginStep===ur.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return H(function*(){let r;try{r=yield t.loginService.login(t.credentials)}catch(o){console.log("login error: "+o)}t.evaluateLoginResult(r)})()}loginWithTFA(){var t=this;return H(function*(){let r;try{r=yield t.loginService.login({verifyCode:t.otp})}catch(o){console.log("login error: "+o)}t.evaluateLoginResult(r)})()}loginWithCaptcha(){var t=this;return H(function*(){let r;try{r=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(o){console.log("login error: "+o)}t.evaluateLoginResult(r)})()}evaluateLoginResult(t){if(this.loginInProgress=!1,t&&t.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(t&&t.failReason&&t.failReason===rg.TFA)return void(this.loginStep=ur.TFA);if(t&&t.failReason&&t.failReason===rg.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=ur.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=ur.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===ur.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===ur.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===ur.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===ur.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}static \u0275fac=function(r){return new(r||e)(T(Y4e),T(zn))};static \u0275cmp=me({type:e,selectors:[["app-login"]],decls:7,vars:5,consts:[["popInfo",""],["deviceNameExplanation",""],["class","col-11 col-sm-7",4,"ngIf"],["class","text-right",4,"ngIf"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","triangle-alert"],[1,"text-right"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center","text-left"],["name","info",1,"m-2"],["type","button",1,"btn","btn-primary",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Create-a-dedicated-admin-account-for-Homebridge-Eufy-Security-Plugin","target","_blank","rel","noopener noreferrer"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModelChange","ngModel"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModelChange","ngModel"],["for","floatingPassword"],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModelChange","ngModel","ngbTooltip","closeDelay"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-primary","col-12",3,"click"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"row","d-flex","justify-content-center"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModelChange","ngModel"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],["alt","captcha image",1,"col-10","col-sm-8",3,"src"]],template:function(r,o){1&r&&K(0,Q4e,4,0,"ng-template",null,0,yo)(2,X4e,5,1,"p",2)(3,J4e,7,0,"div",3)(4,o5e,39,18,"div",4)(5,s5e,18,7,"div",4)(6,d5e,20,8,"div",4),2&r&&(w(2),E("ngIf",o.loginFailed),w(),E("ngIf",0===o.loginStep),w(),E("ngIf",1===o.loginStep),w(),E("ngIf",2===o.loginStep),w(),E("ngIf",3===o.loginStep))},dependencies:[mn,Ny,pt,ua,ha,ti,bo,ht,ng,st,gw,Gu,ei,la],encapsulation:2})}return e})();function h5e(e,n){if(1&e){const t=Dt();m(0,"p",7)(1,"ngb-alert",8),V("closed",function(){return we(t),be(z().failed=!1)}),q(2,"lucide-angular",9),m(3,"strong"),_(4,"Reset was not successful!"),k()()()}2&e&&(w(),E("dismissible",!0))}let p5e=(()=>{class e{routerService;pluginService;disabled=!1;failed=!1;constructor(t,r){this.routerService=t,this.pluginService=r}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return H(function*(){t.disabled=!0;try{const r=yield window.homebridge.request("/reset");t.failed=1!==r.result}catch(r){console.error(r),t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.resetConfig(),window.homebridge.closeSettings())})()}static \u0275fac=function(r){return new(r||e)(T(zn),T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","alert-triangle"]],template:function(r,o){1&r&&(m(0,"div",0),K(1,h5e,5,1,"p",1),m(2,"div",2)(3,"h3",3),_(4,"Are you sure that you want to erase everything?"),k(),m(5,"div",4)(6,"button",5),V("click",function(){return o.cancel()}),_(7,"No"),k(),m(8,"button",6),V("click",function(){return o.resetEverything()}),_(9,"Do it!"),k()()()()),2&r&&(w(),E("ngIf",o.failed),w(5),W("disabled",!!o.disabled||null),w(2),W("disabled",!!o.disabled||null))},dependencies:[mn,Ny,ei,la],encapsulation:2})}return e})();var f5e=nt(838);const jb=["*"];function y5e(e,n){if(1&e&&(Gt(0,"span"),DM(1,0),Jp(2,"percent"),Wt()),2&e){const t=z();w(2),Up(ef(2,1,t.getValue()/t.max)),function xM(e){!function XN(e,n,t){if(Uc>0){const r=e.data[t];uM(e,n,Array.isArray(r)?r:r.update,Pr()-Uc-1,qc)}qc=0,Uc=0}(ie(),O(),e+27)}(1)}}let g5e=(()=>{class e{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),m5e=(()=>{class e{set max(t){this._max=!function uw(e){return!isNaN(function EU(e){return parseInt(`${e}`,10)}(e))}(t)||t<=0?100:t}get max(){return this._max}constructor(){this._config=D(g5e),this.stacked=D(k5e,{optional:!0}),this.animated=this._config.animated,this.ariaLabel=this._config.ariaLabel,this.striped=this._config.striped,this.showValue=this._config.showValue,this.textType=this._config.textType,this.type=this._config.type,this.value=0,this.height=this._config.height,this.max=this._config.max}getValue(){return function SU(e,n,t=0){return Math.max(Math.min(e,n),t)}(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:7,hostBindings:function(r,o){2&r&&(W("aria-valuenow",o.getValue())("aria-valuemax",o.max)("aria-label",o.ariaLabel),Zc("width",o.stacked?o.getPercentValue():null,"%")("height",o.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},ngContentSelectors:jb,decls:3,vars:11,consts:()=>{let t;return t=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[t]},template:function(r,o){1&r&&(Go(),Gt(0,"div"),Np(1,y5e,3,3,"span"),Wo(2),Wt()),2&r&&(Ji(d_("progress-bar",o.type?o.textType?" bg-"+o.type:" text-bg-"+o.type:"","",o.textType?" text-"+o.textType:"")),Zc("width",o.stacked?null:o.getPercentValue(),"%"),ir("progress-bar-animated",o.animated)("progress-bar-striped",o.striped),w(),Lp(o.showValue?1:-1))},dependencies:[T7],encapsulation:2,changeDetection:0})}}return e})(),k5e=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=me({type:e,selectors:[["ngb-progressbar-stacked"]],hostAttrs:[1,"progress-stacked"],ngContentSelectors:jb,decls:1,vars:0,template:function(r,o){1&r&&(Go(),Wo(0))},encapsulation:2,changeDetection:0})}}return e})();function v5e(e,n){if(1&e&&(m(0,"div",8),_(1),k()),2&e){const t=z();w(),po(" ",t.failureMessage," ")}}function M5e(e,n){1&e&&(m(0,"span"),_(1,"Download Logs"),k())}function _5e(e,n){1&e&&q(0,"span",11)}function w5e(e,n){1&e&&(m(0,"span"),_(1," Generating Log File..."),k())}function b5e(e,n){if(1&e){const t=Dt();m(0,"button",9),V("click",function(){return we(t),be(z().downloadLogs())}),K(1,M5e,2,0,"span",7)(2,_5e,1,0,"span",10)(3,w5e,2,0,"span",7),k()}if(2&e){const t=z();W("disabled",!!t.isDownloading||null),w(),E("ngIf",!t.isDownloading),w(),E("ngIf",t.isDownloading),w(),E("ngIf",t.isDownloading)}}function C5e(e,n){if(1&e){const t=Dt();m(0,"button",12),V("click",function(){return we(t),be(z().openLink())}),m(1,"span"),_(2,"Download Logs"),k()()}}function D5e(e,n){if(1&e&&(m(0,"ngb-progressbar",13),_(1),k()),2&e){const t=z();E("value",t.progress)("animated",!0)("striped",!0),w(),Qd(t.status)}}function x5e(e,n){1&e&&(m(0,"small")(1,"i")(2,"b"),_(3,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),m(4,"a",14),_(5,"site"),k(),_(6," can help."),k()()())}let Hb=(()=>{class e{router;zone;progress=0;status="";constructor(t,r){this.router=t,this.zone=r}ngOnInit(){this.router.events.subscribe(t=>{t instanceof h1&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsProgress",t=>{const r=t.data;console.log("downloadLogsProgress",r),this.zone.run(()=>{this.progress=r.progress,this.status=r.status})})}failed=!1;isDownloading=!1;hasDownloaded=!1;downloadMessage;failureMessage="";logFileLocation="";downloadLogs(){var t=this;return H(function*(){try{t.isDownloading=!0;const r=yield window.homebridge.request("/downloadLogs"),o=f5e.hp.from(r.data),i=new File([o],"logs.zip",{type:"application/zip"}),a=window.URL.createObjectURL(i);t.logFileLocation=a,t.hasDownloaded=!0}catch(r){console.log(r);const o=r;t.failed=!0,t.failureMessage=`Generating of compressed logs.zip file did not complete: ${o.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}static \u0275fac=function(r){return new(r||e)(T(zn),T(De))};static \u0275cmp=me({type:e,selectors:[["app-download-logs"]],decls:10,vars:5,consts:[[1,"settingsItem"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-primary col-12 col-sm-4",3,"click",4,"ngIf"],["type","button","class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],["class","mb-3","type","success",3,"value","animated","striped",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-primary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],["type","button",1,"btn","btn-success","col-12","col-sm-4",3,"click"],["type","success",1,"mb-3",3,"value","animated","striped"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(r,o){1&r&&(m(0,"div",0),K(1,v5e,2,1,"div",1),m(2,"div",2)(3,"span",3),_(4,"Download Logs"),k(),K(5,b5e,4,4,"button",4)(6,C5e,3,0,"button",5),k(),K(7,D5e,2,4,"ngb-progressbar",6),m(8,"p"),K(9,x5e,7,0,"small",7),k()()),2&r&&(w(),E("ngIf",o.failed),w(4),E("ngIf",!o.hasDownloaded),w(),E("ngIf",o.hasDownloaded),w(),E("ngIf",!o.hasDownloaded&&o.isDownloading),w(2),E("ngIf",o.hasDownloaded))},dependencies:[mn,m5e],encapsulation:2})}return e})(),E5e=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["app-reset-plugin"]],decls:12,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"],["href","https://github.com/homebridge/homebridge/wiki/Basic-Troubleshooting"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Reset Plugin"),k(),m(4,"a",3),_(5,"Remove everything"),k()(),m(6,"small")(7,"i"),_(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI (see "),m(9,"a",4),_(10,"Basic Troubleshooting"),k(),_(11,") "),k()()())},dependencies:[Zr],encapsulation:2})}return e})(),S5e=(()=>{class e extends ut{enableDetailedLogging=Wn.enableDetailedLogging;constructor(t){super(t)}ngOnInit(){var t=this;return H(function*(){t.readValue()})()}readValue(){this.enableDetailedLogging=this.config.enableDetailedLogging??this.enableDetailedLogging}update(){this.updateConfig({enableDetailedLogging:this.enableDetailedLogging})}static \u0275fac=function(r){return new(r||e)(T(Qe))};static \u0275cmp=me({type:e,selectors:[["app-enable-detailed-logging"]],features:[J],decls:9,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","enableDetailedLogging"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","enableDetailedLogging",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(r,o){1&r&&(m(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Debug Mode"),k(),m(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return le(o.enableDetailedLogging,a)||(o.enableDetailedLogging=a),a}),V("change",function(){return o.update()}),k()()(),m(6,"small")(7,"i"),_(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),k()()()),2&r&&(w(5),ae("ngModel",o.enableDetailedLogging))},dependencies:[pt,Kt,ht,st],encapsulation:2})}return e})();function A5e(e,n){if(1&e){const t=Dt();m(0,"div")(1,"p"),_(2,"To troubleshoot effectively before rising your issue to us:"),k(),m(3,"ol")(4,"li"),_(5,"Search Existing Issues: Check "),m(6,"a",5),_(7,"Common Issues"),k(),_(8," and "),m(9,"a",6),_(10,"User-Raised Issues"),k(),_(11,"."),k(),m(12,"li"),_(13,"Join Discord Server: Engage with developers and community on "),m(14,"a",7),_(15,"Discord"),k(),_(16,"."),k(),m(17,"li"),_(18,"Enable debug logging"),k(),m(19,"li"),_(20,"Reboot your system"),k(),m(21,"li"),_(22,"Reproduce the issue"),k(),m(23,"li"),_(24,"Download logs"),k()(),m(25,"p"),_(26,"Resetting the system may also help."),k(),m(27,"p"),_(28,"Remember to disable debug logging after troubleshooting."),k(),m(29,"div",8)(30,"button",9),V("click",function(){return we(t),z(),be(fn(5).toggle())}),_(31," OK! let me go! "),k()()()}if(2&e){const t=z();w(30),W("aria-expanded",!t.isCollapsed)}}const I5e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:bke},{path:"advancedConfig",component:jve},{path:"downloadLogs",component:Hb},{path:"githubissue",component:(()=>{class e{isCollapsed=!0;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=me({type:e,selectors:[["app-github-issue"]],decls:11,vars:2,consts:[["collapse","ngbCollapse"],["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"],[4,"ngIf"],[3,"ngbCollapseChange","ngbCollapse"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues","target","_blank","rel","noopener noreferrer"],["href","https://github.com/homebridge-eufy-security/plugin/issues","target","_blank","rel","noopener noreferrer"],["href","https://discord.gg/hZqqTfjzet","target","_blank","rel","noopener noreferrer"],[1,"text-center"],["type","button",1,"btn","btn-outline-primary",3,"click"]],template:function(r,o){if(1&r){const i=Dt();m(0,"a",1),q(1,"lucide-angular",2),_(2," Back\n"),k(),K(3,A5e,32,1,"div",3),m(4,"div",4,0),se("ngbCollapseChange",function(s){return we(i),le(o.isCollapsed,s)||(o.isCollapsed=s),be(s)}),q(6,"app-enable-detailed-logging")(7,"hr")(8,"app-download-logs")(9,"hr")(10,"app-reset-plugin"),k()}2&r&&(w(3),E("ngIf",o.isCollapsed),w(),ae("ngbCollapse",o.isCollapsed))},dependencies:[Zr,mn,ag,ei,la,Hb,E5e,S5e],encapsulation:2})}return e})()},{path:"config/:type/:id",component:Z4e},{path:"login",component:u5e},{path:"reset",component:p5e},{path:"**",redirectTo:"/accessories"}];let T5e=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({imports:[V7.forRoot(I5e,{scrollPositionRestoration:"enabled"}),V7]})}return e})();class zb{_doc;constructor(n){this._doc=n}manager}let cg=(()=>{class e extends zb{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o,i){return t.addEventListener(r,o,i),()=>this.removeEventListener(t,r,o,i)}removeEventListener(t,r,o,i){return t.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(de(Et))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const lg=new P("");let Bb=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,r){this._zone=r,t.forEach(a=>{a.manager=this});const o=t.filter(a=>!(a instanceof cg));this._plugins=o.slice().reverse();const i=t.find(a=>a instanceof cg);i&&this._plugins.push(i)}addEventListener(t,r,o,i){return this._findPluginFor(r).addEventListener(t,r,o,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new N(5101,!1);return this._eventNameToPlugin.set(t,r),r}static \u0275fac=function(r){return new(r||e)(de(lg),de(De))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const dg="ng-app-id";function qb(e){for(const n of e)n.remove()}function Ub(e,n){const t=n.createElement("style");return t.textContent=e,t}function ug(e,n){const t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}let $b=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,function L5e(e,n,t,r){const o=e.head?.querySelectorAll(`style[${dg}="${n}"],link[${dg}="${n}"]`);if(o)for(const i of o)i.removeAttribute(dg),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&t.set(i.textContent,{usage:0,elements:[i]})}(t,r,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,r){for(const o of t)this.addUsage(o,this.inline,Ub);r?.forEach(o=>this.addUsage(o,this.external,ug))}removeStyles(t,r){for(const o of t)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(t,r,o){const i=r.get(t);i?i.usage++:r.set(t,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(t,this.doc)))})}removeUsage(t,r){const o=r.get(t);o&&(o.usage--,o.usage<=0&&(qb(o.elements),r.delete(t)))}ngOnDestroy(){for(const[,{elements:t}]of[...this.inline,...this.external])qb(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(const[r,{elements:o}]of this.inline)o.push(this.addElement(t,Ub(r,this.doc)));for(const[r,{elements:o}]of this.external)o.push(this.addElement(t,ug(r,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,r){return this.nonce&&r.setAttribute("nonce",this.nonce),t.appendChild(r)}static \u0275fac=function(r){return new(r||e)(de(Et),de($a),de(Hk,8),de(jk))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const hg={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/Math/MathML"},pg=/%COMP%/g,z5e=new P("",{factory:()=>!0});function Wb(e,n){return n.map(t=>t.replace(pg,e))}let Zb=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(t,r,o,i,a,s,c=null,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=a,this.ngZone=s,this.nonce=c,this.tracingService=l,this.defaultRenderer=new fg(t,a,s,this.tracingService)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(t,r);return o instanceof Qb?o.applyToHost(t):o instanceof yg&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const a=this.doc,s=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case nr.Emulated:i=new Qb(c,l,r,this.appId,d,a,s,h);break;case nr.ShadowDom:return new Yb(c,t,r,a,s,this.nonce,h,l);case nr.ExperimentalIsolatedShadowDom:return new Yb(c,t,r,a,s,this.nonce,h);default:i=new yg(c,l,r,d,a,s,h)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(r){return new(r||e)(de(Bb),de($b),de($a),de(z5e),de(Et),de(De),de(Hk),de(kc,8))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();class fg{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(hg[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(Kb(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(Kb(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new N(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=hg[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=hg[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(zo.DashCase|zo.Important)?n.style.setProperty(t,r,o&zo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&zo.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r,o){if("string"==typeof n&&!(n=Lo().getGlobalEventTarget(this.doc,n)))throw new N(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(n,t,i)),this.eventManager.addEventListener(n,t,i,o)}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&t.preventDefault()}}}function Kb(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Yb extends fg{hostEl;sharedStylesHost;shadowRoot;constructor(n,t,r,o,i,a,s,c){super(n,o,i,s),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Wb(r.id,l);for(const h of l){const y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=h,this.shadowRoot.appendChild(y)}const d=r.getExternalStyles?.();if(d)for(const h of d){const y=ug(h,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}}class yg extends fg{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,r,o,i,a,s,c){super(n,i,a,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=c?Wb(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===Ii.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Qb extends yg{contentAttr;hostAttr;constructor(n,t,r,o,i,a,s,c){const l=o+"-"+r.id;super(n,t,r,i,a,s,c,l),this.contentAttr=function B5e(e){return"_ngcontent-%COMP%".replace(pg,e)}(l),this.hostAttr=function q5e(e){return"_nghost-%COMP%".replace(pg,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}class gg extends B9{supportsDOMEvents=!0;static makeCurrent(){!function z9(e){Hm??=e}(new gg)}onAndCancel(n,t,r,o){return n.addEventListener(t,r,o),()=>{n.removeEventListener(t,r,o)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function $5e(){return H1=H1||document.head.querySelector("base"),H1?H1.getAttribute("href"):null}();return null==t?null:function G5e(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){H1=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function N5e(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}(document.cookie,n)}}let H1=null,Z5e=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const Xb=["alt","control","meta","shift"],K5e={"\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"},Y5e={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Q5e=(()=>{class e extends zb{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o,i){const a=e.parseEventName(r),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lo().onAndCancel(t,a.domEventName,s,i))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let a="",s=r.indexOf("code");if(s>-1&&(r.splice(s,1),a="code."),Xb.forEach(l=>{const d=r.indexOf(l);d>-1&&(r.splice(d,1),a+=l+".")}),a+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let o=K5e[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Xb.forEach(a=>{a!==o&&(0,Y5e[a])(t)&&(i+=a+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static \u0275fac=function(r){return new(r||e)(de(Et))};static \u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function mg(){return(mg=H(function*(e,n,t){return vP({rootComponent:e,...Jb(n,t)})})).apply(this,arguments)}function Jb(e,n){return{platformRef:n?.platformRef,appProviders:[...tC,...e?.providers??[]],platformProviders:n3e}}const n3e=[{provide:jk,useValue:"browser"},{provide:Vk,useValue:function J5e(){gg.makeCurrent()},multi:!0},{provide:Et,useFactory:function t3e(){return function sx(e){V2=e}(document),document}}],eC=[{provide:x3,useClass:class W5e{addToWindow(n){yt.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new N(5103,!1);return i},yt.getAllAngularTestabilities=()=>n.getAllTestabilities(),yt.getAllAngularRootElements=()=>n.getAllRootElements(),yt.frameworkStabilizers||(yt.frameworkStabilizers=[]),yt.frameworkStabilizers.push(r=>{const o=yt.getAllAngularTestabilities();let i=o.length;const a=function(){i--,0==i&&r()};o.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Lo().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}}},{provide:D3,useClass:yp},{provide:yp,useClass:yp}],tC=[{provide:Kh,useValue:"root"},{provide:Js,useFactory:function e3e(){return new Js}},{provide:lg,useClass:cg,multi:!0},{provide:lg,useClass:Q5e,multi:!0},Zb,$b,Bb,{provide:H0,useExisting:Zb},{provide:class O5e{},useClass:Z5e},[]];(function X5e(){return mg.apply(this,arguments)})(GH,{providers:[qg((()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ho({type:e});static \u0275inj=Nr({providers:[...tC,...eC],imports:[NB,kP]})}return e})(),pt,T5e,function R5e(){return ei.pick({SlidersHorizontal:Ew,RefreshCw:bw,Download:vw,Bug:mw,Video:Nw,VideoOff:Rw,Shield:xw,ShieldOff:Dw,Eye:_w,EyeOff:Mw,ChevronLeft:kw,Square:Iw,SquarePlus:Aw,SquareMinus:Sw,TriangleAlert:Tw,Info:ww,ShieldAlert:Cw})}()),{provide:Fo,useClass:f7}]}).catch(e=>console.error(e))},838(va,Tn,nt){"use strict";const Vt=nt(981),ft=nt(20),Xe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Tn.hp=I,Tn.IS=50;const ve=2147483647;function Ge(g){if(g>ve)throw new RangeError('The value "'+g+'" is invalid for option "size"');const u=new Uint8Array(g);return Object.setPrototypeOf(u,I.prototype),u}function I(g,u,p){if("number"==typeof g){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return vn(g)}return Rn(g,u,p)}function Rn(g,u,p){if("string"==typeof g)return function te(g,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!I.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=0|Mn(g,u);let v=Ge(p);const C=v.write(g,u);return C!==p&&(v=v.slice(0,C)),v}(g,u);if(ArrayBuffer.isView(g))return function Fe(g){if(Nn(g,Uint8Array)){const u=new Uint8Array(g);return vt(u.buffer,u.byteOffset,u.byteLength)}return Me(g)}(g);if(null==g)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g);if(Nn(g,ArrayBuffer)||g&&Nn(g.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Nn(g,SharedArrayBuffer)||g&&Nn(g.buffer,SharedArrayBuffer)))return vt(g,u,p);if("number"==typeof g)throw new TypeError('The "value" argument must not be of type number. Received type number');const v=g.valueOf&&g.valueOf();if(null!=v&&v!==g)return I.from(v,u,p);const C=function Rt(g){if(I.isBuffer(g)){const u=0|Pe(g.length),p=Ge(u);return 0===p.length||g.copy(p,0,0,u),p}return void 0!==g.length?"number"!=typeof g.length||hr(g.length)?Ge(0):Me(g):"Buffer"===g.type&&Array.isArray(g.data)?Me(g.data):void 0}(g);if(C)return C;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof g[Symbol.toPrimitive])return I.from(g[Symbol.toPrimitive]("string"),u,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof g)}function Be(g){if("number"!=typeof g)throw new TypeError('"size" argument must be of type number');if(g<0)throw new RangeError('The value "'+g+'" is invalid for option "size"')}function vn(g){return Be(g),Ge(g<0?0:0|Pe(g))}function Me(g){const u=g.length<0?0:0|Pe(g.length),p=Ge(u);for(let v=0;v<u;v+=1)p[v]=255&g[v];return p}function vt(g,u,p){if(u<0||g.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(g.byteLength<u+(p||0))throw new RangeError('"length" is outside of buffer bounds');let v;return v=void 0===u&&void 0===p?new Uint8Array(g):void 0===p?new Uint8Array(g,u):new Uint8Array(g,u,p),Object.setPrototypeOf(v,I.prototype),v}function Pe(g){if(g>=ve)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ve.toString(16)+" bytes");return 0|g}function Mn(g,u){if(I.isBuffer(g))return g.length;if(ArrayBuffer.isView(g)||Nn(g,ArrayBuffer))return g.byteLength;if("string"!=typeof g)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof g);const p=g.length,v=arguments.length>2&&!0===arguments[2];if(!v&&0===p)return 0;let C=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return li(g).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*p;case"hex":return p>>>1;case"base64":return qs(g).length;default:if(C)return v?-1:li(g).length;u=(""+u).toLowerCase(),C=!0}}function Qt(g,u,p){let v=!1;if((void 0===u||u<0)&&(u=0),u>this.length||((void 0===p||p>this.length)&&(p=this.length),p<=0)||(p>>>=0)<=(u>>>=0))return"";for(g||(g="utf8");;)switch(g){case"hex":return Ch(this,u,p);case"utf8":case"utf-8":return q1(this,u,p);case"ascii":return Rr(this,u,p);case"latin1":case"binary":return bh(this,u,p);case"base64":return zs(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U1(this,u,p);default:if(v)throw new TypeError("Unknown encoding: "+g);g=(g+"").toLowerCase(),v=!0}}function Kn(g,u,p){const v=g[u];g[u]=g[p],g[p]=v}function Co(g,u,p,v,C){if(0===g.length)return-1;if("string"==typeof p?(v=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),hr(p=+p)&&(p=C?0:g.length-1),p<0&&(p=g.length+p),p>=g.length){if(C)return-1;p=g.length-1}else if(p<0){if(!C)return-1;p=0}if("string"==typeof u&&(u=I.from(u,v)),I.isBuffer(u))return 0===u.length?-1:Vs(g,u,p,v,C);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?C?Uint8Array.prototype.indexOf.call(g,u,p):Uint8Array.prototype.lastIndexOf.call(g,u,p):Vs(g,[u],p,v,C);throw new TypeError("val must be string, number or Buffer")}function Vs(g,u,p,v,C){let Ve,S=1,L=g.length,ge=u.length;if(void 0!==v&&("ucs2"===(v=String(v).toLowerCase())||"ucs-2"===v||"utf16le"===v||"utf-16le"===v)){if(g.length<2||u.length<2)return-1;S=2,L/=2,ge/=2,p/=2}function rt(ot,Re){return 1===S?ot[Re]:ot.readUInt16BE(Re*S)}if(C){let ot=-1;for(Ve=p;Ve<L;Ve++)if(rt(g,Ve)===rt(u,-1===ot?0:Ve-ot)){if(-1===ot&&(ot=Ve),Ve-ot+1===ge)return ot*S}else-1!==ot&&(Ve-=Ve-ot),ot=-1}else for(p+ge>L&&(p=L-ge),Ve=p;Ve>=0;Ve--){let ot=!0;for(let Re=0;Re<ge;Re++)if(rt(g,Ve+Re)!==rt(u,Re)){ot=!1;break}if(ot)return Ve}return-1}function js(g,u,p,v){p=Number(p)||0;const C=g.length-p;v?(v=Number(v))>C&&(v=C):v=C;const S=u.length;let L;for(v>S/2&&(v=S/2),L=0;L<v;++L){const ge=parseInt(u.substr(2*L,2),16);if(hr(ge))return L;g[p+L]=ge}return L}function Do(g,u,p,v){return di(li(u,g.length-p),g,p,v)}function Hs(g,u,p,v){return di(function _a(g){const u=[];for(let p=0;p<g.length;++p)u.push(255&g.charCodeAt(p));return u}(u),g,p,v)}function Cg(g,u,p,v){return di(qs(u),g,p,v)}function wh(g,u,p,v){return di(function Jt(g,u){let p,v,C;const S=[];for(let L=0;L<g.length&&!((u-=2)<0);++L)p=g.charCodeAt(L),v=p>>8,C=p%256,S.push(C),S.push(v);return S}(u,g.length-p),g,p,v)}function zs(g,u,p){return Vt.fromByteArray(0===u&&p===g.length?g:g.slice(u,p))}function q1(g,u,p){p=Math.min(g.length,p);const v=[];let C=u;for(;C<p;){const S=g[C];let L=null,ge=S>239?4:S>223?3:S>191?2:1;if(C+ge<=p){let rt,Ve,ot,Re;switch(ge){case 1:S<128&&(L=S);break;case 2:rt=g[C+1],128==(192&rt)&&(Re=(31&S)<<6|63&rt,Re>127&&(L=Re));break;case 3:rt=g[C+1],Ve=g[C+2],128==(192&rt)&&128==(192&Ve)&&(Re=(15&S)<<12|(63&rt)<<6|63&Ve,Re>2047&&(Re<55296||Re>57343)&&(L=Re));break;case 4:rt=g[C+1],Ve=g[C+2],ot=g[C+3],128==(192&rt)&&128==(192&Ve)&&128==(192&ot)&&(Re=(15&S)<<18|(63&rt)<<12|(63&Ve)<<6|63&ot,Re>65535&&Re<1114112&&(L=Re))}}null===L?(L=65533,ge=1):L>65535&&(L-=65536,v.push(L>>>10&1023|55296),L=56320|1023&L),v.push(L),C+=ge}return function xo(g){const u=g.length;if(u<=4096)return String.fromCharCode.apply(String,g);let p="",v=0;for(;v<u;)p+=String.fromCharCode.apply(String,g.slice(v,v+=4096));return p}(v)}function Rr(g,u,p){let v="";p=Math.min(g.length,p);for(let C=u;C<p;++C)v+=String.fromCharCode(127&g[C]);return v}function bh(g,u,p){let v="";p=Math.min(g.length,p);for(let C=u;C<p;++C)v+=String.fromCharCode(g[C]);return v}function Ch(g,u,p){const v=g.length;(!u||u<0)&&(u=0),(!p||p<0||p>v)&&(p=v);let C="";for(let S=u;S<p;++S)C+=wa[g[S]];return C}function U1(g,u,p){const v=g.slice(u,p);let C="";for(let S=0;S<v.length-1;S+=2)C+=String.fromCharCode(v[S]+256*v[S+1]);return C}function Mt(g,u,p){if(g%1!=0||g<0)throw new RangeError("offset is not uint");if(g+u>p)throw new RangeError("Trying to access beyond buffer length")}function Xt(g,u,p,v,C,S){if(!I.isBuffer(g))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>C||u<S)throw new RangeError('"value" argument is out of bounds');if(p+v>g.length)throw new RangeError("Index out of range")}function ai(g,u,p,v,C){Z1(u,v,C,g,p,7);let S=Number(u&BigInt(4294967295));g[p++]=S,S>>=8,g[p++]=S,S>>=8,g[p++]=S,S>>=8,g[p++]=S;let L=Number(u>>BigInt(32)&BigInt(4294967295));return g[p++]=L,L>>=8,g[p++]=L,L>>=8,g[p++]=L,L>>=8,g[p++]=L,p}function $1(g,u,p,v,C){Z1(u,v,C,g,p,7);let S=Number(u&BigInt(4294967295));g[p+7]=S,S>>=8,g[p+6]=S,S>>=8,g[p+5]=S,S>>=8,g[p+4]=S;let L=Number(u>>BigInt(32)&BigInt(4294967295));return g[p+3]=L,L>>=8,g[p+2]=L,L>>=8,g[p+1]=L,L>>=8,g[p]=L,p+8}function Dh(g,u,p,v,C,S){if(p+v>g.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function G1(g,u,p,v,C){return u=+u,p>>>=0,C||Dh(g,0,p,4),ft.write(g,u,p,v,23,4),p+4}function si(g,u,p,v,C){return u=+u,p>>>=0,C||Dh(g,0,p,8),ft.write(g,u,p,v,52,8),p+8}!(I.TYPED_ARRAY_SUPPORT=function j(){try{const g=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(g,u),42===g.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.buffer}}),Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.byteOffset}}),I.poolSize=8192,I.from=function(g,u,p){return Rn(g,u,p)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array),I.alloc=function(g,u,p){return function lt(g,u,p){return Be(g),g<=0?Ge(g):void 0!==u?"string"==typeof p?Ge(g).fill(u,p):Ge(g).fill(u):Ge(g)}(g,u,p)},I.allocUnsafe=function(g){return vn(g)},I.allocUnsafeSlow=function(g){return vn(g)},I.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==I.prototype},I.compare=function(u,p){if(Nn(u,Uint8Array)&&(u=I.from(u,u.offset,u.byteLength)),Nn(p,Uint8Array)&&(p=I.from(p,p.offset,p.byteLength)),!I.isBuffer(u)||!I.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let v=u.length,C=p.length;for(let S=0,L=Math.min(v,C);S<L;++S)if(u[S]!==p[S]){v=u[S],C=p[S];break}return v<C?-1:C<v?1:0},I.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},I.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return I.alloc(0);let v;if(void 0===p)for(p=0,v=0;v<u.length;++v)p+=u[v].length;const C=I.allocUnsafe(p);let S=0;for(v=0;v<u.length;++v){let L=u[v];if(Nn(L,Uint8Array))S+L.length>C.length?(I.isBuffer(L)||(L=I.from(L)),L.copy(C,S)):Uint8Array.prototype.set.call(C,L,S);else{if(!I.isBuffer(L))throw new TypeError('"list" argument must be an Array of Buffers');L.copy(C,S)}S+=L.length}return C},I.byteLength=Mn,I.prototype._isBuffer=!0,I.prototype.swap16=function(){const u=this.length;if(u%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<u;p+=2)Kn(this,p,p+1);return this},I.prototype.swap32=function(){const u=this.length;if(u%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<u;p+=4)Kn(this,p,p+3),Kn(this,p+1,p+2);return this},I.prototype.swap64=function(){const u=this.length;if(u%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<u;p+=8)Kn(this,p,p+7),Kn(this,p+1,p+6),Kn(this,p+2,p+5),Kn(this,p+3,p+4);return this},I.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?q1(this,0,u):Qt.apply(this,arguments)},I.prototype.toLocaleString=I.prototype.toString,I.prototype.equals=function(u){if(!I.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===I.compare(this,u)},I.prototype.inspect=function(){let u="";const p=Tn.IS;return u=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(u+=" ... "),"<Buffer "+u+">"},Xe&&(I.prototype[Xe]=I.prototype.inspect),I.prototype.compare=function(u,p,v,C,S){if(Nn(u,Uint8Array)&&(u=I.from(u,u.offset,u.byteLength)),!I.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(void 0===p&&(p=0),void 0===v&&(v=u?u.length:0),void 0===C&&(C=0),void 0===S&&(S=this.length),p<0||v>u.length||C<0||S>this.length)throw new RangeError("out of range index");if(C>=S&&p>=v)return 0;if(C>=S)return-1;if(p>=v)return 1;if(this===u)return 0;let L=(S>>>=0)-(C>>>=0),ge=(v>>>=0)-(p>>>=0);const rt=Math.min(L,ge),Ve=this.slice(C,S),ot=u.slice(p,v);for(let Re=0;Re<rt;++Re)if(Ve[Re]!==ot[Re]){L=Ve[Re],ge=ot[Re];break}return L<ge?-1:ge<L?1:0},I.prototype.includes=function(u,p,v){return-1!==this.indexOf(u,p,v)},I.prototype.indexOf=function(u,p,v){return Co(this,u,p,v,!0)},I.prototype.lastIndexOf=function(u,p,v){return Co(this,u,p,v,!1)},I.prototype.write=function(u,p,v,C){if(void 0===p)C="utf8",v=this.length,p=0;else if(void 0===v&&"string"==typeof p)C=p,v=this.length,p=0;else{if(!isFinite(p))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");p>>>=0,isFinite(v)?(v>>>=0,void 0===C&&(C="utf8")):(C=v,v=void 0)}const S=this.length-p;if((void 0===v||v>S)&&(v=S),u.length>0&&(v<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let L=!1;for(;;)switch(C){case"hex":return js(this,u,p,v);case"utf8":case"utf-8":return Do(this,u,p,v);case"ascii":case"latin1":case"binary":return Hs(this,u,p,v);case"base64":return Cg(this,u,p,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wh(this,u,p,v);default:if(L)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),L=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},I.prototype.slice=function(u,p){const v=this.length;(u=~~u)<0?(u+=v)<0&&(u=0):u>v&&(u=v),(p=void 0===p?v:~~p)<0?(p+=v)<0&&(p=0):p>v&&(p=v),p<u&&(p=u);const C=this.subarray(u,p);return Object.setPrototypeOf(C,I.prototype),C},I.prototype.readUintLE=I.prototype.readUIntLE=function(u,p,v){u>>>=0,p>>>=0,v||Mt(u,p,this.length);let C=this[u],S=1,L=0;for(;++L<p&&(S*=256);)C+=this[u+L]*S;return C},I.prototype.readUintBE=I.prototype.readUIntBE=function(u,p,v){u>>>=0,p>>>=0,v||Mt(u,p,this.length);let C=this[u+--p],S=1;for(;p>0&&(S*=256);)C+=this[u+--p]*S;return C},I.prototype.readUint8=I.prototype.readUInt8=function(u,p){return u>>>=0,p||Mt(u,1,this.length),this[u]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(u,p){return u>>>=0,p||Mt(u,2,this.length),this[u]|this[u+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(u,p){return u>>>=0,p||Mt(u,2,this.length),this[u]<<8|this[u+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},I.prototype.readUint32BE=I.prototype.readUInt32BE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},I.prototype.readBigUInt64LE=pr(function(u){Eo(u>>>=0,"offset");const p=this[u],v=this[u+7];(void 0===p||void 0===v)&&ci(u,this.length-8);const C=p+256*this[++u]+65536*this[++u]+this[++u]*2**24,S=this[++u]+256*this[++u]+65536*this[++u]+v*2**24;return BigInt(C)+(BigInt(S)<<BigInt(32))}),I.prototype.readBigUInt64BE=pr(function(u){Eo(u>>>=0,"offset");const p=this[u],v=this[u+7];(void 0===p||void 0===v)&&ci(u,this.length-8);const C=p*2**24+65536*this[++u]+256*this[++u]+this[++u],S=this[++u]*2**24+65536*this[++u]+256*this[++u]+v;return(BigInt(C)<<BigInt(32))+BigInt(S)}),I.prototype.readIntLE=function(u,p,v){u>>>=0,p>>>=0,v||Mt(u,p,this.length);let C=this[u],S=1,L=0;for(;++L<p&&(S*=256);)C+=this[u+L]*S;return S*=128,C>=S&&(C-=Math.pow(2,8*p)),C},I.prototype.readIntBE=function(u,p,v){u>>>=0,p>>>=0,v||Mt(u,p,this.length);let C=p,S=1,L=this[u+--C];for(;C>0&&(S*=256);)L+=this[u+--C]*S;return S*=128,L>=S&&(L-=Math.pow(2,8*p)),L},I.prototype.readInt8=function(u,p){return u>>>=0,p||Mt(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},I.prototype.readInt16LE=function(u,p){u>>>=0,p||Mt(u,2,this.length);const v=this[u]|this[u+1]<<8;return 32768&v?4294901760|v:v},I.prototype.readInt16BE=function(u,p){u>>>=0,p||Mt(u,2,this.length);const v=this[u+1]|this[u]<<8;return 32768&v?4294901760|v:v},I.prototype.readInt32LE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},I.prototype.readInt32BE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},I.prototype.readBigInt64LE=pr(function(u){Eo(u>>>=0,"offset");const p=this[u],v=this[u+7];return(void 0===p||void 0===v)&&ci(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(v<<24))<<BigInt(32))+BigInt(p+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),I.prototype.readBigInt64BE=pr(function(u){Eo(u>>>=0,"offset");const p=this[u],v=this[u+7];(void 0===p||void 0===v)&&ci(u,this.length-8);const C=(p<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(C)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+v)}),I.prototype.readFloatLE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),ft.read(this,u,!0,23,4)},I.prototype.readFloatBE=function(u,p){return u>>>=0,p||Mt(u,4,this.length),ft.read(this,u,!1,23,4)},I.prototype.readDoubleLE=function(u,p){return u>>>=0,p||Mt(u,8,this.length),ft.read(this,u,!0,52,8)},I.prototype.readDoubleBE=function(u,p){return u>>>=0,p||Mt(u,8,this.length),ft.read(this,u,!1,52,8)},I.prototype.writeUintLE=I.prototype.writeUIntLE=function(u,p,v,C){u=+u,p>>>=0,v>>>=0,C||Xt(this,u,p,v,Math.pow(2,8*v)-1,0);let S=1,L=0;for(this[p]=255&u;++L<v&&(S*=256);)this[p+L]=u/S&255;return p+v},I.prototype.writeUintBE=I.prototype.writeUIntBE=function(u,p,v,C){u=+u,p>>>=0,v>>>=0,C||Xt(this,u,p,v,Math.pow(2,8*v)-1,0);let S=v-1,L=1;for(this[p+S]=255&u;--S>=0&&(L*=256);)this[p+S]=u/L&255;return p+v},I.prototype.writeUint8=I.prototype.writeUInt8=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,1,255,0),this[p]=255&u,p+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,2,65535,0),this[p]=255&u,this[p+1]=u>>>8,p+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=255&u,p+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,4,4294967295,0),this[p+3]=u>>>24,this[p+2]=u>>>16,this[p+1]=u>>>8,this[p]=255&u,p+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,4,4294967295,0),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=255&u,p+4},I.prototype.writeBigUInt64LE=pr(function(u,p=0){return ai(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),I.prototype.writeBigUInt64BE=pr(function(u,p=0){return $1(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),I.prototype.writeIntLE=function(u,p,v,C){if(u=+u,p>>>=0,!C){const rt=Math.pow(2,8*v-1);Xt(this,u,p,v,rt-1,-rt)}let S=0,L=1,ge=0;for(this[p]=255&u;++S<v&&(L*=256);)u<0&&0===ge&&0!==this[p+S-1]&&(ge=1),this[p+S]=(u/L|0)-ge&255;return p+v},I.prototype.writeIntBE=function(u,p,v,C){if(u=+u,p>>>=0,!C){const rt=Math.pow(2,8*v-1);Xt(this,u,p,v,rt-1,-rt)}let S=v-1,L=1,ge=0;for(this[p+S]=255&u;--S>=0&&(L*=256);)u<0&&0===ge&&0!==this[p+S+1]&&(ge=1),this[p+S]=(u/L|0)-ge&255;return p+v},I.prototype.writeInt8=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=255&u,p+1},I.prototype.writeInt16LE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,2,32767,-32768),this[p]=255&u,this[p+1]=u>>>8,p+2},I.prototype.writeInt16BE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=255&u,p+2},I.prototype.writeInt32LE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,4,2147483647,-2147483648),this[p]=255&u,this[p+1]=u>>>8,this[p+2]=u>>>16,this[p+3]=u>>>24,p+4},I.prototype.writeInt32BE=function(u,p,v){return u=+u,p>>>=0,v||Xt(this,u,p,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[p]=u>>>24,this[p+1]=u>>>16,this[p+2]=u>>>8,this[p+3]=255&u,p+4},I.prototype.writeBigInt64LE=pr(function(u,p=0){return ai(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),I.prototype.writeBigInt64BE=pr(function(u,p=0){return $1(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),I.prototype.writeFloatLE=function(u,p,v){return G1(this,u,p,!0,v)},I.prototype.writeFloatBE=function(u,p,v){return G1(this,u,p,!1,v)},I.prototype.writeDoubleLE=function(u,p,v){return si(this,u,p,!0,v)},I.prototype.writeDoubleBE=function(u,p,v){return si(this,u,p,!1,v)},I.prototype.copy=function(u,p,v,C){if(!I.isBuffer(u))throw new TypeError("argument should be a Buffer");if(v||(v=0),!C&&0!==C&&(C=this.length),p>=u.length&&(p=u.length),p||(p=0),C>0&&C<v&&(C=v),C===v||0===u.length||0===this.length)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(v<0||v>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),u.length-p<C-v&&(C=u.length-p+v);const S=C-v;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(p,v,C):Uint8Array.prototype.set.call(u,this.subarray(v,C),p),S},I.prototype.fill=function(u,p,v,C){if("string"==typeof u){if("string"==typeof p?(C=p,p=0,v=this.length):"string"==typeof v&&(C=v,v=this.length),void 0!==C&&"string"!=typeof C)throw new TypeError("encoding must be a string");if("string"==typeof C&&!I.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(1===u.length){const L=u.charCodeAt(0);("utf8"===C&&L<128||"latin1"===C)&&(u=L)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(p<0||this.length<p||this.length<v)throw new RangeError("Out of range index");if(v<=p)return this;let S;if(p>>>=0,v=void 0===v?this.length:v>>>0,u||(u=0),"number"==typeof u)for(S=p;S<v;++S)this[S]=u;else{const L=I.isBuffer(u)?u:I.from(u,C),ge=L.length;if(0===ge)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(S=0;S<v-p;++S)this[S+p]=L[S%ge]}return this};const Xr={};function W1(g,u,p){Xr[g]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${g}]`,delete this.name}get code(){return g}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${g}]: ${this.message}`}}}function Ma(g){let u="",p=g.length;const v="-"===g[0]?1:0;for(;p>=v+4;p-=3)u=`_${g.slice(p-3,p)}${u}`;return`${g.slice(0,p)}${u}`}function Z1(g,u,p,v,C,S){if(g>p||g<u){const L="bigint"==typeof u?"n":"";let ge;throw ge=S>3?0===u||u===BigInt(0)?`>= 0${L} and < 2${L} ** ${8*(S+1)}${L}`:`>= -(2${L} ** ${8*(S+1)-1}${L}) and < 2 ** ${8*(S+1)-1}${L}`:`>= ${u}${L} and <= ${p}${L}`,new Xr.ERR_OUT_OF_RANGE("value",ge,g)}!function xh(g,u,p){Eo(u,"offset"),(void 0===g[u]||void 0===g[u+p])&&ci(u,g.length-(p+1))}(v,C,S)}function Eo(g,u){if("number"!=typeof g)throw new Xr.ERR_INVALID_ARG_TYPE(u,"number",g)}function ci(g,u,p){throw Math.floor(g)!==g?(Eo(g,p),new Xr.ERR_OUT_OF_RANGE(p||"offset","an integer",g)):u<0?new Xr.ERR_BUFFER_OUT_OF_BOUNDS:new Xr.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,g)}W1("ERR_BUFFER_OUT_OF_BOUNDS",function(g){return g?`${g} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W1("ERR_INVALID_ARG_TYPE",function(g,u){return`The "${g}" argument must be of type number. Received type ${typeof u}`},TypeError),W1("ERR_OUT_OF_RANGE",function(g,u,p){let v=`The value of "${g}" is out of range.`,C=p;return Number.isInteger(p)&&Math.abs(p)>2**32?C=Ma(String(p)):"bigint"==typeof p&&(C=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(C=Ma(C)),C+="n"),v+=` It must be ${u}. Received ${C}`,v},RangeError);const Ee=/[^+/0-9A-Za-z-_]/g;function li(g,u){let p;u=u||1/0;const v=g.length;let C=null;const S=[];for(let L=0;L<v;++L){if(p=g.charCodeAt(L),p>55295&&p<57344){if(!C){if(p>56319){(u-=3)>-1&&S.push(239,191,189);continue}if(L+1===v){(u-=3)>-1&&S.push(239,191,189);continue}C=p;continue}if(p<56320){(u-=3)>-1&&S.push(239,191,189),C=p;continue}p=65536+(C-55296<<10|p-56320)}else C&&(u-=3)>-1&&S.push(239,191,189);if(C=null,p<128){if((u-=1)<0)break;S.push(p)}else if(p<2048){if((u-=2)<0)break;S.push(p>>6|192,63&p|128)}else if(p<65536){if((u-=3)<0)break;S.push(p>>12|224,p>>6&63|128,63&p|128)}else{if(!(p<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}}return S}function qs(g){return Vt.toByteArray(function Bs(g){if((g=(g=g.split("=")[0]).trim().replace(Ee,"")).length<2)return"";for(;g.length%4!=0;)g+="=";return g}(g))}function di(g,u,p,v){let C;for(C=0;C<v&&!(C+p>=u.length||C>=g.length);++C)u[C+p]=g[C];return C}function Nn(g,u){return g instanceof u||null!=g&&null!=g.constructor&&null!=g.constructor.name&&g.constructor.name===u.name}function hr(g){return g!=g}const wa=function(){const g="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const v=16*p;for(let C=0;C<16;++C)u[v+C]=g[p]+g[C]}return u}();function pr(g){return typeof BigInt>"u"?ui:g}function ui(){throw new Error("BigInt not supported")}},981(va,Tn){"use strict";Tn.byteLength=function Ge(te){var Me=j(te),vt=Me[1];return 3*(Me[0]+vt)/4-vt},Tn.toByteArray=function Rn(te){var Me,Qt,Fe=j(te),vt=Fe[0],Rt=Fe[1],Pe=new Vt(function I(te,Me,Fe){return 3*(Me+Fe)/4-Fe}(0,vt,Rt)),Yt=0,Mn=Rt>0?vt-4:vt;for(Qt=0;Qt<Mn;Qt+=4)Me=X[te.charCodeAt(Qt)]<<18|X[te.charCodeAt(Qt+1)]<<12|X[te.charCodeAt(Qt+2)]<<6|X[te.charCodeAt(Qt+3)],Pe[Yt++]=Me>>16&255,Pe[Yt++]=Me>>8&255,Pe[Yt++]=255&Me;return 2===Rt&&(Me=X[te.charCodeAt(Qt)]<<2|X[te.charCodeAt(Qt+1)]>>4,Pe[Yt++]=255&Me),1===Rt&&(Me=X[te.charCodeAt(Qt)]<<10|X[te.charCodeAt(Qt+1)]<<4|X[te.charCodeAt(Qt+2)]>>2,Pe[Yt++]=Me>>8&255,Pe[Yt++]=255&Me),Pe},Tn.fromByteArray=function vn(te){for(var Me,Fe=te.length,vt=Fe%3,Rt=[],Yt=0,Mn=Fe-vt;Yt<Mn;Yt+=16383)Rt.push(lt(te,Yt,Yt+16383>Mn?Mn:Yt+16383));return 1===vt?Rt.push(nt[(Me=te[Fe-1])>>2]+nt[Me<<4&63]+"=="):2===vt&&Rt.push(nt[(Me=(te[Fe-2]<<8)+te[Fe-1])>>10]+nt[Me>>4&63]+nt[Me<<2&63]+"="),Rt.join("")};for(var nt=[],X=[],Vt=typeof Uint8Array<"u"?Uint8Array:Array,ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=0;Xe<64;++Xe)nt[Xe]=ft[Xe],X[ft.charCodeAt(Xe)]=Xe;function j(te){var Me=te.length;if(Me%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Fe=te.indexOf("=");return-1===Fe&&(Fe=Me),[Fe,Fe===Me?0:4-Fe%4]}function Be(te){return nt[te>>18&63]+nt[te>>12&63]+nt[te>>6&63]+nt[63&te]}function lt(te,Me,Fe){for(var Rt=[],Pe=Me;Pe<Fe;Pe+=3)Rt.push(Be((te[Pe]<<16&16711680)+(te[Pe+1]<<8&65280)+(255&te[Pe+2])));return Rt.join("")}X[45]=62,X[95]=63}},va=>{va(va.s=206)}]);
|