homebridge-eufy-security-avi
Version:
Control Eufy Security from homebridge.
1 lines • 510 kB
JavaScript
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[792],{283:(Ia,Qn,vt)=>{"use strict";function _e(e,n){return Object.is(e,n)}let Pe=null,kt=!1,tt=1;const Te=Symbol("SIGNAL");function W(e){const n=Pe;return Pe=e,n}const lt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function At(e){if(kt)throw new Error("");if(null===Pe)return;Pe.consumerOnSignalRead(e);const n=Pe.nextProducerIndex++;To(Pe),n<Pe.producerNode.length&&Pe.producerNode[n]!==e&&Wr(Pe)&&ki(Pe.producerNode[n],Pe.producerIndexOfThis[n]),Pe.producerNode[n]!==e&&(Pe.producerNode[n]=e,Pe.producerIndexOfThis[n]=Wr(Pe)?hn(e,Pe,n):0),Pe.producerLastReadVersion[n]=e.version}function ae(e){if((!Wr(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==tt)){if(!e.producerMustRecompute(e)&&!sn(e))return e.dirty=!1,void(e.lastCleanEpoch=tt);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=tt}}function Ce(e){if(void 0===e.liveConsumerNode)return;const n=kt;kt=!0;try{for(const t of e.liveConsumerNode)t.dirty||xt(t)}finally{kt=n}}function Ze(){return!1!==Pe?.consumerAllowSignalWrites}function xt(e){e.dirty=!0,Ce(e),e.consumerMarkedDirty?.(e)}function Wt(e){return e&&(e.nextProducerIndex=0),W(e)}function dt(e,n){if(W(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Wr(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)ki(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function sn(e){To(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(ae(t),i!==t.version))return!0}return!1}function vi(e){if(To(e),Wr(e))for(let n=0;n<e.producerNode.length;n++)ki(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function hn(e,n,t){if(kd(e),0===e.liveConsumerNode.length&&_d(e))for(let i=0;i<e.producerNode.length;i++)e.producerIndexOfThis[i]=hn(e.producerNode[i],e,i);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function ki(e,n){if(kd(e),1===e.liveConsumerNode.length&&_d(e))for(let i=0;i<e.producerNode.length;i++)ki(e.producerNode[i],e.producerIndexOfThis[i]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const i=e.liveConsumerIndexOfThis[n],r=e.liveConsumerNode[n];To(r),r.producerIndexOfThis[i]=n}}function Wr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function To(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function kd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function _d(e){return void 0!==e.producerNode}const lc=Symbol("UNSET"),dc=Symbol("COMPUTING"),Ta=Symbol("ERRORED"),Md={...lt,value:lc,dirty:!0,error:null,equal:_e,producerMustRecompute:e=>e.value===lc||e.value===dc,producerRecomputeValue(e){if(e.value===dc)throw new Error("Detected cycle in computations.");const n=e.value;e.value=dc;const t=Wt(e);let i;try{i=e.computation()}catch(r){i=Ta,e.error=r}finally{dt(e,t)}n!==lc&&n!==Ta&&i!==Ta&&e.equal(n,i)?e.value=n:(e.value=i,e.version++)}};let wd=function bd(){throw new Error};function Cd(){wd()}let Aa=null;function uc(e,n){Ze()||Cd(),e.equal(e.value,n)||(e.value=n,function Sd(e){e.version++,function Hn(){tt++}(),Ce(e),Aa?.()}(e))}const xd={...lt,equal:_e,value:void 0};function Se(e){return"function"==typeof e}function Ji(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const br=Ji(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Oa(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class cn{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 o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Se(i))try{i()}catch(o){n=o instanceof br?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Td(o)}catch(a){n=n??[],a instanceof br?n=[...n,...a.errors]:n.push(a)}}if(n)throw new br(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Td(n);else{if(n instanceof cn){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)&&Oa(t,n)}remove(n){const{_finalizers:t}=this;t&&Oa(t,n),n instanceof cn&&n._removeParent(this)}}cn.EMPTY=(()=>{const e=new cn;return e.closed=!0,e})();const Ra=cn.EMPTY;function Id(e){return e instanceof cn||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Td(e){Se(e)?e():e.unsubscribe()}const Xi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},wr={setTimeout(e,n,...t){const{delegate:i}=wr;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=wr;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xn(e){wr.setTimeout(()=>{const{onUnhandledError:n}=Xi;if(!n)throw e;n(e)})}function Cr(){}const rp=v("C",void 0,void 0);function v(e,n,t){return{kind:e,value:n,error:t}}let u=null;function p(e){if(Xi.useDeprecatedSynchronousErrorHandling){const n=!u;if(n&&(u={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=u;if(u=null,t)throw i}}else e()}class x extends cn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Id(n)&&n.add(this)):this.destination=r7}static create(n,t,i){return new it(n,t,i)}next(n){this.isStopped?Fe(function op(e){return v("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Fe(function er(e){return v("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Fe(rp,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 T=Function.prototype.bind;function P(e,n){return T.call(e,n)}class Me{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){qe(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){qe(i)}else qe(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){qe(t)}}}class it extends x{constructor(n,t,i){let r;if(super(),Se(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Xi.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&P(n.next,o),error:n.error&&P(n.error,o),complete:n.complete&&P(n.complete,o)}):r=n}this.destination=new Me(r)}}function qe(e){Xi.useDeprecatedSynchronousErrorHandling?function M(e){Xi.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=e)}(e):Xn(e)}function Fe(e,n){const{onStoppedNotification:t}=Xi;t&&wr.setTimeout(()=>t(e,n))}const r7={closed:!0,next:Cr,error:function _t(e){throw e},complete:Cr},ap="function"==typeof Symbol&&Symbol.observable||"@@observable";function Dr(e){return e}function sm(e){return 0===e.length?Dr:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let ut=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function s7(e){return e&&e instanceof x||function a7(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(e)&&Id(e)}(t)?t:new it(t,i,r);return p(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=cm(i))((r,o)=>{const a=new it({next:s=>{try{t(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[ap](){return this}pipe(...t){return sm(t)(this)}toPromise(t){return new(t=cm(t))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return e.create=n=>new e(n),e})();function cm(e){var n;return null!==(n=e??Xi.Promise)&&void 0!==n?n:Promise}const c7=Ji(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ye=(()=>{class e extends ut{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new lm(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new c7}next(t){p(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){p(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){p(()=>{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:i,isStopped:r,observers:o}=this;return i||r?Ra:(this.currentObservers=null,o.push(t),new cn(()=>{this.currentObservers=null,Oa(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new ut;return t.source=this,t}}return e.create=(n,t)=>new lm(n,t),e})();class lm extends Ye{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.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,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:Ra}}class ei extends Ye{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:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function dm(e){return Se(e?.lift)}function Vt(e){return n=>{if(dm(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(e,n,t,i,r){return new l7(e,n,t,i,r)}class l7 extends x{constructor(n,t,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}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 Ee(e,n){return Vt((t,i)=>{let r=0;t.subscribe(ht(i,o=>{i.next(e.call(n,o,r++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const Tm="https://g.co/ng/security#xss";class F extends Error{constructor(n,t){super(function Pa(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function xr(e){return{toString:e}.toString()}const La="__parameters__";function Ha(e,n,t){return xr(()=>{const i=function fp(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const h=c.hasOwnProperty(La)?c[La]:Object.defineProperty(c,La,{value:[]})[La];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(a),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const pt=globalThis;function Ge(e){for(let n in e)if(e[n]===Ge)return n;throw Error("Could not find renamed property on target object.")}function lx(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Yt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Yt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function yp(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const dx=Ge({__forward_ref__:Ge});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return Yt(this())},e}function re(e){return Pd(e)?e():e}function Pd(e){return"function"==typeof e&&e.hasOwnProperty(dx)&&e.__forward_ref__===Be}function Yr(e,n,t){e!=n&&function te(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(t,e,n,"==")}function j(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function $e(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fd(e){return Rm(e,Vd)||Rm(e,Pm)}function Rm(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ld(e){return e&&(e.hasOwnProperty(gp)||e.hasOwnProperty(gx))?e[gp]:null}const Vd=Ge({\u0275prov:Ge}),gp=Ge({\u0275inj:Ge}),Pm=Ge({ngInjectableDef:Ge}),gx=Ge({ngInjectorDef:Ge});class ${constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=j({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mp(e){return e&&!!e.\u0275providers}const pc=Ge({\u0275cmp:Ge}),bp=Ge({\u0275dir:Ge}),wp=Ge({\u0275pipe:Ge}),Lm=Ge({\u0275mod:Ge}),Sr=Ge({\u0275fac:Ge}),fc=Ge({__NG_ELEMENT_ID__:Ge}),Vm=Ge({__NG_ENV_ID__:Ge});function ge(e){return"string"==typeof e?e:null==e?"":String(e)}function Cp(e,n){throw new F(-201,!1)}var xe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(xe||{});let Dp;function Hm(){return Dp}function jn(e){const n=Dp;return Dp=e,n}function jm(e,n,t){const i=Fd(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&xe.Optional?null:void 0!==n?n:void Cp()}const yc={},xp="__NG_DI_FLAG__",Hd="ngTempTokenPath",bx=/\n/gm,Bm="__source";let ja;function Kr(e){const n=ja;return ja=e,n}function Dx(e,n=xe.Default){if(void 0===ja)throw new F(-203,!1);return null===ja?jm(e,void 0,n):ja.get(e,n&xe.Optional?null:void 0,n)}function ne(e,n=xe.Default){return(Hm()||Dx)(re(e),n)}function w(e,n=xe.Default){return ne(e,jd(n))}function jd(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Sp(e){const n=[];for(let t=0;t<e.length;t++){const i=re(e[t]);if(Array.isArray(i)){if(0===i.length)throw new F(900,!1);let r,o=xe.Default;for(let a=0;a<i.length;a++){const s=i[a],c=xx(s);"number"==typeof c?-1===c?r=s.token:o|=c:r=s}n.push(ne(r,o))}else n.push(ne(i))}return n}function gc(e,n){return e[xp]=n,e.prototype[xp]=n,e}function xx(e){return e[xp]}const mc=gc(Ha("Optional"),8),Bd=gc(Ha("SkipSelf"),4);function Oo(e,n){return e.hasOwnProperty(Sr)?e[Sr]:null}function Ba(e,n){e.forEach(t=>Array.isArray(t)?Ba(t,n):n(t))}function Um(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function zd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function ii(e,n,t){let i=za(e,n);return i>=0?e[1|i]=t:(i=~i,function qm(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Ip(e,n){const t=za(e,n);if(t>=0)return e[1|t]}function za(e,n){return function Gm(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),a=e[o<<t];if(n===a)return o<<t;a>n?r=o:i=o+1}return~(r<<t)}(e,n,1)}const tr={},Ae=[],Oi=new $(""),$m=new $("",-1),Tp=new $("");class qd{get(n,t=yc){if(t===yc){const i=new Error(`NullInjectorError: No provider for ${Yt(n)}!`);throw i.name="NullInjectorError",i}return t}}var Gd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Gd||{}),Ri=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ri||{}),Qr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Qr||{});function Ox(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}t=r+1}}function Ap(e,n,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const o=t[i++],a=t[i++],s=t[i++];e.setAttribute(n,a,s,o)}else{const o=r,a=t[++i];Zm(o)?e.setProperty(n,o,a):e.setAttribute(n,o,a),i++}}return i}function Wm(e){return 3===e||4===e||6===e}function Zm(e){return 64===e.charCodeAt(0)}function vc(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||Ym(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function Ym(e,n,t,i,r){let o=0,a=e.length;if(-1===n)a=-1;else for(;o<e.length;){const s=e[o++];if("number"==typeof s){if(s===n){a=-1;break}if(s>n){a=o-1;break}}}for(;o<e.length;){const s=e[o];if("number"==typeof s)break;if(s===t){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,n),o=a+1),e.splice(o++,0,t),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}const Km="ng-template";function Rx(e,n,t,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==Ox(n[r+1].toLowerCase(),t,0))return!0}else if(Np(e))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&"string"==typeof(o=n[r]);)if(o.toLowerCase()===t)return!0}return!1}function Np(e){return 4===e.type&&e.value!==Km}function Px(e,n,t){return n===(4!==e.type||t?e.value:Km)}function Fx(e,n,t){let i=4;const r=e.attrs,o=null!==r?function Hx(e){for(let n=0;n<e.length;n++)if(Wm(e[n]))return n;return e.length}(r):0;let a=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!a)if(4&i){if(i=2|1&i,""!==c&&!Px(e,c,t)||""===c&&1===n.length){if(Pi(i))return!1;a=!0}}else if(8&i){if(null===r||!Rx(e,r,c,t)){if(Pi(i))return!1;a=!0}}else{const l=n[++s],d=Lx(c,r,Np(e),t);if(-1===d){if(Pi(i))return!1;a=!0;continue}if(""!==l){let h;if(h=d>o?"":r[d+1].toLowerCase(),2&i&&l!==h){if(Pi(i))return!1;a=!0}}}}else{if(!a&&!Pi(i)&&!Pi(c))return!1;if(a&&Pi(c))continue;a=!1,i=c|1&i}}return Pi(i)||a}function Pi(e){return!(1&e)}function Lx(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r<n.length;){const a=n[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function jx(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Qm(e,n,t=!1){for(let i=0;i<n.length;i++)if(Fx(e,n[i],t))return!0;return!1}function Bx(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Jm(e,n){return e?":not("+n.trim()+")":n}function zx(e){let n=e[0],t=1,i=2,r="",o=!1;for(;t<e.length;){let a=e[t];if("string"==typeof a)if(2&i){const s=e[++t];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Pi(a)&&(n+=Jm(o,r),r=""),i=a,o=o||!Pi(i);t++}return""!==r&&(n+=Jm(o,r)),n}function se(e){return xr(()=>{const n=ev(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Gd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ri.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""};tv(t);const i=e.dependencies;return t.directiveDefs=$d(i,!1),t.pipeDefs=$d(i,!0),t.id=function Zx(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,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].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function Gx(e){return De(e)||Kt(e)}function $x(e){return null!==e}function Ke(e){return xr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Xm(e,n){if(null==e)return tr;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,a,s=Qr.None;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o):(o=r,a=r),n?(t[o]=s!==Qr.None?[i,s]:i,n[o]=a):t[o]=i}return t}function q(e){return xr(()=>{const n=ev(e);return tv(n),n})}function zn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function De(e){return e[pc]||null}function Kt(e){return e[bp]||null}function pn(e){return e[wp]||null}function _n(e,n){const t=e[Lm]||null;if(!t&&!0===n)throw new Error(`Type ${Yt(e)} does not have '\u0275mod' property.`);return t}function ev(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||tr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xm(e.inputs,n),outputs:Xm(e.outputs),debugInfo:null}}function tv(e){e.features?.forEach(n=>n(e))}function $d(e,n){if(!e)return null;const t=n?pn:Gx;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter($x)}function nv(...e){return{\u0275providers:Op(0,e),\u0275fromNgModule:!0}}function Op(e,...n){const t=[],i=new Set;let r;const o=a=>{t.push(a)};return Ba(n,a=>{const s=a;Zd(s,o,[],i)&&(r||=[],r.push(s))}),void 0!==r&&iv(r,o),t}function iv(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];Rp(r,o=>{n(o,i)})}}function Zd(e,n,t,i){if(!(e=re(e)))return!1;let r=null,o=Ld(e);const a=!o&&De(e);if(o||a){if(a&&!a.standalone)return!1;r=e}else{const c=e.ngModule;if(o=Ld(c),!o)return!1;r=c}const s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)Zd(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;i.add(r);try{Ba(o.imports,d=>{Zd(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&iv(l,n)}if(!s){const l=Oo(r)||(()=>new r);n({provide:r,useFactory:l,deps:Ae},r),n({provide:Tp,useValue:r,multi:!0},r),n({provide:Oi,useValue:()=>ne(r),multi:!0},r)}const c=o.providers;if(null!=c&&!s){const l=e;Rp(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function Rp(e,n){for(let t of e)Mp(t)&&(t=t.\u0275providers),Array.isArray(t)?Rp(t,n):n(t)}const Yx=Ge({provide:String,useValue:Ge});function Pp(e){return null!==e&&"object"==typeof e&&Yx in e}function Ro(e){return"function"==typeof e}const Fp=new $(""),Yd={},Qx={};let Lp;function Kd(){return void 0===Lp&&(Lp=new qd),Lp}class Mn{}class Ua extends Mn{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Hp(n,a=>this.processProvider(a)),this.records.set($m,qa(void 0,this)),r.has("environment")&&this.records.set(Mn,qa(void 0,this));const o=this.records.get(Fp);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Tp,Ae,xe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=W(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),W(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Kr(this),i=jn(void 0);try{return n()}finally{Kr(t),jn(i)}}get(n,t=yc,i=xe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Vm))return n[Vm](this);i=jd(i);const o=Kr(this),a=jn(void 0);try{if(!(i&xe.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function nS(e){return"function"==typeof e||"object"==typeof e&&e instanceof $}(n)&&Fd(n);c=l&&this.injectableDefInScope(l)?qa(Vp(n),Yd):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&xe.Self?Kd():this.parent).get(n,t=i&xe.Optional&&t===yc?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Hd]=s[Hd]||[]).unshift(Yt(n)),o)throw s;return function Sx(e,n,t,i){const r=e[Hd];throw n[Bm]&&r.unshift(n[Bm]),e.message=function Ex(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Yt(n);if(Array.isArray(n))r=n.map(Yt).join(" -> ");else if("object"==typeof n){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Yt(s)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(bx,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Hd]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{jn(a),Kr(o)}}resolveInjectorInitializers(){const n=W(null),t=Kr(this),i=jn(void 0);try{const o=this.get(Oi,Ae,xe.Self);for(const a of o)a()}finally{Kr(t),jn(i),W(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Yt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(n){let t=Ro(n=re(n))?n:re(n&&n.provide);const i=function Xx(e){return Pp(e)?qa(void 0,e.useValue):qa(av(e),Yd)}(n);if(!Ro(n)&&!0===n.multi){let r=this.records.get(t);r||(r=qa(void 0,Yd,!0),r.factory=()=>Sp(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=W(null);try{return t.value===Yd&&(t.value=Qx,t.value=t.factory()),"object"==typeof t.value&&t.value&&function tS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{W(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=re(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 Vp(e){const n=Fd(e),t=null!==n?n.factory:Oo(e);if(null!==t)return t;if(e instanceof $)throw new F(204,!1);if(e instanceof Function)return function Jx(e){if(e.length>0)throw new F(204,!1);const t=function yx(e){return e&&(e[Vd]||e[Pm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new F(204,!1)}function av(e,n,t){let i;if(Ro(e)){const r=re(e);return Oo(r)||Vp(r)}if(Pp(e))i=()=>re(e.useValue);else if(function ov(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Sp(e.deps||[]));else if(function rv(e){return!(!e||!e.useExisting)}(e))i=()=>ne(re(e.useExisting));else{const r=re(e&&(e.useClass||e.provide));if(!function eS(e){return!!e.deps}(e))return Oo(r)||Vp(r);i=()=>new r(...Sp(e.deps))}return i}function qa(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Hp(e,n){for(const t of e)Array.isArray(t)?Hp(t,n):t&&Mp(t)?Hp(t.\u0275providers,n):n(t)}function Er(e,n){e instanceof Ua&&e.assertNotDestroyed();const i=Kr(e),r=jn(void 0);try{return n()}finally{Kr(i),jn(r)}}function sv(){return void 0!==Hm()||null!=function Cx(){return ja}()}function Qd(e){if(!sv())throw new F(-203,!1)}const Mt=0,V=1,J=2,jt=3,Fi=4,fn=5,Sn=6,$a=7,rt=8,Bt=9,nr=10,ce=11,_c=12,lv=13,Wa=14,bt=15,Po=16,Za=17,Ir=18,Ya=19,dv=20,Xr=21,Xd=22,_i=23,Y=25,Bp=1,ir=7,Ka=9,Nt=10;var t1=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(t1||{});function Jt(e){return Array.isArray(e)&&"object"==typeof e[Bp]}function bn(e){return Array.isArray(e)&&!0===e[Bp]}function zp(e){return!!(4&e.flags)}function Fo(e){return e.componentOffset>-1}function n1(e){return!(1&~e.flags)}function Li(e){return!!e.template}function bc(e){return!!(512&e[J])}class fS{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function yv(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}function zt(){return gv}function gv(e){return e.type.prototype.ngOnChanges&&(e.setInput=gS),yS}function yS(){const e=vv(this),n=e?.current;if(n){const t=e.previous;if(t===tr)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function gS(e,n,t,i,r){const o=this.declaredInputs[i],a=vv(e)||function mS(e,n){return e[mv]=n}(e,{previous:tr,current:null}),s=a.current||(a.current={}),c=a.previous,l=c[o];s[o]=new fS(l&&l.currentValue,t,c===tr),yv(e,n,r,t)}zt.ngInherit=!0;const mv="__ngSimpleChanges__";function vv(e){return e[mv]||null}const rr=function(e,n,t){};function Ne(e){for(;Array.isArray(e);)e=e[Mt];return e}function wc(e,n){return Ne(n[e])}function En(e,n){return Ne(n[e.index])}function Cc(e,n){return e.data[n]}function Lo(e,n){return e[n]}function ri(e,n){const t=n[e];return Jt(t)?t:t[Mt]}function Wp(e){return!(128&~e[J])}function Mi(e,n){return null==n?null:e[n]}function Mv(e){e[Za]=0}function bv(e){1024&e[J]||(e[J]|=1024,Wp(e)&&r1(e))}function i1(e){return!!(9216&e[J]||e[_i]?.dirty)}function Zp(e){e[nr].changeDetectionScheduler?.notify(8),64&e[J]&&(e[J]|=1024),i1(e)&&r1(e)}function r1(e){e[nr].changeDetectionScheduler?.notify(0);let n=Tr(e);for(;null!==n&&!(8192&n[J])&&(n[J]|=8192,Wp(n));)n=Tr(n)}function o1(e,n){if(!(256&~e[J]))throw new F(911,!1);null===e[Xr]&&(e[Xr]=[]),e[Xr].push(n)}function Tr(e){const n=e[jt];return bn(n)?n[jt]:n}const le={lFrame:Pv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Cv=!1;function Dv(){return le.bindingsEnabled}function Vo(){return null!==le.skipHydrationRootTNode}function O(){return le.lFrame.lView}function be(){return le.lFrame.tView}function de(e){return le.lFrame.contextLView=e,e[rt]}function ue(e){return le.lFrame.contextLView=null,e}function We(){let e=xv();for(;null!==e&&64===e.type;)e=e.parent;return e}function xv(){return le.lFrame.currentTNode}function Dc(){const e=le.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function Vi(e,n){const t=le.lFrame;t.currentTNode=e,t.isParent=n}function Qp(){return le.lFrame.isParent}function Jp(){le.lFrame.isParent=!1}function Iv(){return Cv}function Tv(e){Cv=e}function In(){const e=le.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Ar(){return le.lFrame.bindingIndex}function Hi(){return le.lFrame.bindingIndex++}function Nr(e){const n=le.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Nv(e){le.lFrame.inI18n=e}function AS(e,n){const t=le.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xp(n)}function Xp(e){le.lFrame.currentDirectiveIndex=e}function t0(){return le.lFrame.currentQueryIndex}function s1(e){le.lFrame.currentQueryIndex=e}function OS(e){const n=e[V];return 2===n.type?n.declTNode:1===n.type?e[fn]:null}function Ov(e,n,t){if(t&xe.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&xe.Host||(r=OS(o),null===r||(o=o[Wa],10&r.type))););if(null===r)return!1;n=r,e=o}const i=le.lFrame=Rv();return i.currentTNode=n,i.lView=e,!0}function n0(e){const n=Rv(),t=e[V];le.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Rv(){const e=le.lFrame,n=null===e?null:e.child;return null===n?Pv(e):n}function Pv(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 Fv(){const e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Lv=Fv;function r0(){const e=Fv();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 yn(){return le.lFrame.selectedIndex}function Ho(e){le.lFrame.selectedIndex=e}function ot(){const e=le.lFrame;return Cc(e.tView,e.selectedIndex)}let Hv=!0;function xc(){return Hv}function or(e){Hv=e}function c1(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=o;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 l1(e,n,t){jv(e,n,3,t)}function d1(e,n,t,i){(3&e[J])===t&&jv(e,n,t,i)}function o0(e,n){let t=e[J];(3&t)===n&&(t&=16383,t+=1,e[J]=t)}function jv(e,n,t,i){const o=i??-1,a=n.length-1;let s=0;for(let c=void 0!==i?65535&e[Za]:0;c<a;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[Za]+=65536),(s<o||-1==o)&&(jS(e,t,n,c),e[Za]=(4294901760&e[Za])+c+2),c++}function Bv(e,n){rr(4,e,n);const t=W(null);try{n.call(e)}finally{W(t),rr(5,e,n)}}function jS(e,n,t,i){const r=t[i]<0,o=t[i+1],s=e[r?-t[i]:t[i]];r?e[J]>>14<e[Za]>>16&&(3&e[J])===n&&(e[J]+=16384,Bv(s,o)):Bv(s,o)}const Qa=-1;class Sc{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}const s0={};class jo{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=jd(i);const r=this.injector.get(n,s0,i);return r!==s0||t===s0?r:this.parentInjector.get(n,t,i)}}function c0(e){return e!==Qa}function Ec(e){return 32767&e}function Ic(e,n){let t=function GS(e){return e>>16}(e),i=n;for(;t>0;)i=i[Wa],t--;return i}let l0=!0;function u1(e){const n=l0;return l0=e,n}const Uv=255,qv=5;let WS=0;const ar={};function h1(e,n){const t=Gv(e,n);if(-1!==t)return t;const i=n[V];i.firstCreatePass&&(e.injectorIndex=n.length,d0(i.data,e),d0(n,null),d0(i.blueprint,null));const r=p1(e,n),o=e.injectorIndex;if(c0(r)){const a=Ec(r),s=Ic(r,n),c=s[V].data;for(let l=0;l<8;l++)n[o+l]=s[a+l]|c[a+l]}return n[o+8]=r,o}function d0(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Gv(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function p1(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=Jv(r),null===i)return Qa;if(t++,r=r[Wa],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return Qa}function u0(e,n,t){!function ZS(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(fc)&&(i=t[fc]),null==i&&(i=t[fc]=WS++);const r=i&Uv;n.data[e+(r>>qv)]|=1<<r}(e,n,t)}function $v(e,n,t){if(t&xe.Optional||void 0!==e)return e;Cp()}function Wv(e,n,t,i){if(t&xe.Optional&&void 0===i&&(i=null),!(t&(xe.Self|xe.Host))){const r=e[Bt],o=jn(void 0);try{return r?r.get(n,i,t&xe.Optional):jm(n,i,t&xe.Optional)}finally{jn(o)}}return $v(i,0,t)}function Zv(e,n,t,i=xe.Default,r){if(null!==e){if(2048&n[J]&&!(i&xe.Self)){const a=function XS(e,n,t,i,r){let o=e,a=n;for(;null!==o&&null!==a&&2048&a[J]&&!(512&a[J]);){const s=Yv(o,a,t,i|xe.Self,ar);if(s!==ar)return s;let c=o.parent;if(!c){const l=a[dv];if(l){const d=l.get(t,ar,i);if(d!==ar)return d}c=Jv(a),a=a[Wa]}o=c}return r}(e,n,t,i,ar);if(a!==ar)return a}const o=Yv(e,n,t,i,ar);if(o!==ar)return o}return Wv(n,t,i,r)}function Yv(e,n,t,i,r){const o=function QS(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(fc)?e[fc]:void 0;return"number"==typeof n?n>=0?n&Uv:JS:n}(t);if("function"==typeof o){if(!Ov(n,e,i))return i&xe.Host?$v(r,0,i):Wv(n,t,i,r);try{let a;if(a=o(i),null!=a||i&xe.Optional)return a;Cp()}finally{Lv()}}else if("number"==typeof o){let a=null,s=Gv(e,n),c=Qa,l=i&xe.Host?n[bt][fn]:null;for((-1===s||i&xe.SkipSelf)&&(c=-1===s?p1(e,n):n[s+8],c!==Qa&&Qv(i,!1)?(a=n[V],s=Ec(c),n=Ic(c,n)):s=-1);-1!==s;){const d=n[V];if(Kv(o,s,d.data)){const h=KS(s,n,t,a,i,l);if(h!==ar)return h}c=n[s+8],c!==Qa&&Qv(i,n[V].data[s+8]===l)&&Kv(o,s,n)?(a=d,s=Ec(c),n=Ic(c,n)):s=-1}}return r}function KS(e,n,t,i,r,o){const a=n[V],s=a.data[e+8],d=f1(s,a,t,null==i?Fo(s)&&l0:i!=a&&!!(3&s.type),r&xe.Host&&o===s);return null!==d?Bo(n,a,d,s):ar}function f1(e,n,t,i,r){const o=e.providerIndexes,a=n.data,s=1048575&o,c=e.directiveStart,d=o>>20,f=r?s+d:e.directiveEnd;for(let g=i?s:s+d;g<f;g++){const k=a[g];if(g<c&&t===k||g>=c&&k.type===t)return g}if(r){const g=a[c];if(g&&Li(g)&&g.type===t)return c}return null}function Bo(e,n,t,i){let r=e[t];const o=n.data;if(function BS(e){return e instanceof Sc}(r)){const a=r;a.resolving&&function kx(e,n){throw n&&n.join(" > "),new F(-200,e)}(function Le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ge(e)}(o[t]));const s=u1(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?jn(a.injectImpl):null;Ov(e,i,xe.Default);try{r=e[t]=a.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function HS(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=gv(n);(t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&jn(l),u1(s),a.resolving=!1,Lv()}}return r}function Kv(e,n,t){return!!(t[n+(e>>qv)]&1<<e)}function Qv(e,n){return!(e&xe.Self||e&xe.Host&&n)}class Xt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Zv(this._tNode,this._lView,n,jd(i),t)}}function JS(){return new Xt(We(),O())}function at(e){return xr(()=>{const n=e.prototype.constructor,t=n[Sr]||h0(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Sr]||h0(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function h0(e){return Pd(e)?()=>{const n=h0(re(e));return n&&n()}:Oo(e)}function Jv(e){const n=e[V],t=n.type;return 2===t?n.declTNode:1===t?e[fn]:null}function ik(e,n=null,t=null,i){const r=rk(e,n,t,i);return r.resolveInjectorInitializers(),r}function rk(e,n=null,t=null,i,r=new Set){const o=[t||Ae,nv(e)];return i=i||("object"==typeof e?void 0:Yt(e)),new Ua(o,n||Kd(),i||null,r)}class Ve{static{this.THROW_IF_NOT_FOUND=yc}static{this.NULL=new qd}static create(n,t){if(Array.isArray(n))return ik({name:""},t,n,"");{const i=n.name??"";return ik({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=j({token:Ve,providedIn:"any",factory:()=>ne($m)})}static{this.__NG_ELEMENT_ID__=-1}}new $("").__NG_ELEMENT_ID__=e=>{const n=We();if(null===n)throw new F(204,!1);if(2&n.type)return n.value;if(e&xe.Optional)return null;throw new F(204,!1)};function f0(e){return e.ngOriginalError}const ak=!0;let Or=(()=>{class e{static{this.__NG_ELEMENT_ID__=lE}static{this.__NG_ENV_ID__=t=>t}}return e})();class cE extends Or{constructor(n){super(),this._lView=n}onDestroy(n){return o1(this._lView,n),()=>function Yp(e,n){if(null===e[Xr])return;const t=e[Xr].indexOf(n);-1!==t&&e[Xr].splice(t,1)}(this._lView,n)}}function lE(){return new cE(O())}let zo=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ei(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}}return e})();const K=class dE extends Ye{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,sv()&&(this.destroyRef=w(Or,{optional:!0})??void 0,this.pendingTasks=w(zo,{optional:!0})??void 0)}emit(n){const t=W(null);try{super.next(n)}finally{W(t)}}subscribe(n,t,i){let r=n,o=t||(()=>null),a=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));const s=super.subscribe({next:r,error:o,complete:a});return n instanceof cn&&n.add(s),s}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function g1(...e){}function sk(e){let n,t;function i(){e=g1;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),i()})),()=>i()}function ck(e){return queueMicrotask(()=>e()),()=>{e=g1}}const y0="isAngularZone",m1=y0+"_ID";let uE=0;class ve{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new K(!1),this.onMicrotaskEmpty=new K(!1),this.onStable=new K(!1),this.onError=new K(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=ak}=n;if(typeof Zone>"u")throw new F(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=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,function fE(e){const n=()=>{!function pE(e){function n(){sk(()=>{e.callbackScheduled=!1,m0(e),e.isCheckStableRunning=!0,g0(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),m0(e))}(e)},t=uE++;e._inner=e._inner.fork({name:"angular",properties:{[y0]:!0,[m1]:t,[m1+t]:!0},onInvokeTask:(i,r,o,a,s,c)=>{if(function yE(e){return uk(e,"__ignore_ng_zone__")}(c))return i.invokeTask(o,a,s,c);try{return lk(e),i.invokeTask(o,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),dk(e)}},onInvoke:(i,r,o,a,s,c,l)=>{try{return lk(e),i.invoke(o,a,s,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function gE(e){return uk(e,"__scheduler_tick__")}(c)&&n(),dk(e)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,m0(e),g0(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(y0)}static assertInAngularZone(){if(!ve.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new F(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,hE,g1,g1);try{return o.runTask(a,t,i)}finally{o.cancelTask(a)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const hE={};function g0(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 m0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function lk(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dk(e){e._nesting--,g0(e)}class v0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new K,this.onMicrotaskEmpty=new K,this.onStable=new K,this.onError=new K}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}function uk(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class sr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&f0(n);for(;t&&f0(t);)t=f0(t);return t||null}}const vE=new $("",{providedIn:"root",factory:()=>{const e=w(ve),n=w(sr);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function kE(){return es(We(),O())}function es(e,n){return new Oe(En(e,n))}let Oe=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=kE}}return e})();function pk(e){return e instanceof Oe?e.nativeElement:e}function _E(){return this._results[Symbol.iterator]()}class k0{get changes(){return this._changes??=new K}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=k0.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=_E)}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 i=function Bn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Nx(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],o=n[i];if(t&&(r=t(r),o=t(o)),o!==r)return!1}return!0}(this._results,i,t))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function Ac(e){return!(128&~e.flags)}const M0=new Map;let bE=0;function b0(e){M0.delete(e[Ya])}const v1="__ngContext__";function wn(e,n){Jt(n)?(e[v1]=n[Ya],function CE(e){M0.set(e[Ya],e)}(n)):e[v1]=n}function wk(e){return Dk(e[_c])}function Ck(e){return Dk(e[Fi])}function Dk(e){for(;null!==e&&!bn(e);)e=e[Fi];return e}let C0;function to(){if(void 0!==C0)return C0;if(typeof document<"u")return document;throw new F(210,!1)}const ns=new $("",{providedIn:"root",factory:()=>BE}),BE="ng",Ok=new $(""),no=new $("",{providedIn:"platform",factory:()=>"unknown"}),Rk=new $("",{providedIn:"root",factory:()=>to().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Pk=()=>null;function A0(e,n,t=!1){return Pk(e,n,t)}const Uk=new $("",{providedIn:"root",factory:()=>!1});let S1,E1;function os(e){return function F0(){if(void 0===S1&&(S1=null,pt.trustedTypes))try{S1=pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return S1}()?.createHTML(e)||e}function Zk(e){return function L0(){if(void 0===E1&&(E1=null,pt.trustedTypes))try{E1=pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return E1}()?.createScriptURL(e)||e}class Yk{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tm})`}}function io(e){return e instanceof Yk?e.changingThisBreaksApplicationSecurity:e}function Vc(e,n){const t=function a9(e){return e instanceof Yk&&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 ${Tm})`)}return t===n}class s9{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(os(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class c9{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=os(n),t}}const d9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function V0(e){return(e=String(e)).match(d9)?e:"unsafe:"+e}function Rr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Hc(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const Qk=Rr("area,br,col,hr,img,wbr"),Jk=Rr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xk=Rr("rp,rt"),H0=Hc(Qk,Hc(Jk,Rr("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")),Hc(Xk,Rr("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")),Hc(Xk,Jk)),j0=Rr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e_=Hc(j0,Rr("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"),Rr("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"));var as=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}(as||{});function qo(e){const n=jc();return n?n.sanitize(as.STYLE,e)||"":Vc(e,"Style")?io(e):ge(e)}function T1(e){const n=jc();return n?n.sanitize(as.URL,e)||"":Vc(e,"URL")?io(e):V0(ge(e))}function r_(e){const n=jc();if(n)return Zk(n.sanitize(as.RESOURCE_URL,e)||"");if(Vc(e,"ResourceURL"))return Zk(io(e));throw new F(904,!1)}function jc(){const e=O();return e&&e[nr].sanitizer}const D9=/^>|^->|<!--|-->|--!>|<!-$/g,x9=/(<|>)/g,S9="\u200b$1\u200b";function oi(e){return e instanceof Function?e():e}function ai(e){return"browser"===(e??w(Ve)).get(no)}var ro=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ro||{});let q0;function G0(e,n){return q0(e,n)}function cs(e,n,t,i,r){if(null!=i){let o,a=!1;bn(i)?o=i:Jt(i)&&(a=!0,i=i[Mt]);const s=Ne(i);0===e&&null!==t?null==r?v_(n,t,s):Go(n,t,s,r||null,!0):1===e&&null!==t?Go(n,t,s,r||null,!0):2===e?zc(n,s,a):3===e&&n.destroyNode(s),null!=o&&function W9(e,n,t,i,r){const o=t[ir];o!==Ne(t)&&cs(n,e,i,o,r);for(let s=Nt;s<t.length;s++){const c=t[s];F1(c[V],c,e,n,i,o)}}(n,e,o,t,r)}}function $0(e,n){return e.createText(n)}function f_(e,n,t){e.setValue(n,t)}function W0(e,n){return e.createComment(function a_(e){return e.replace(D9,n=>n.replace(x9,S9))}(n))}function O1(e,n,t){return e.createElement(n,t)}function y_(e,n){n[nr].changeDetectionScheduler?.notify(9),F1(e,n,n[ce],2,null,null)}function g_(e,n){const t=e[Ka],i=n[jt];(Jt(i)||n[bt]!==i[jt][bt])&&(e[J]|=t1.HasTransplantedViews),null===t?e[Ka]=[n]:t.push(n)}function Z0(e,n){const t=e[Ka],i=t.indexOf(n);t.splice(i,1)}function Bc(e,n){if(e.length<=Nt)return;const t=Nt+n,i=e[t];if(i){const r=i[Po];null!==r&&r!==e&&Z0(r,i),n>0&&(e[t-1][Fi]=i[Fi]);const o=zd(e,Nt+n);!function H9(e,n){y_(e,n),n[Mt]=null,n[fn]=null}(i[V],i);const a=o[Ir];null!==a&&a.detachView(o[V]),i[jt]=null,i[Fi]=null,i[J]&=-129}return i}function R1(e,n){if(!(256&n[J])){const t=n[ce];t.destroyNode&&F1(e,n,t,3,null,null),function B9(e){let n=e[_c];if(!n)return Y0(e[V],e);for(;n;){let t=null;if(Jt(n))t=n[_c];else{const i=n[Nt];i&&(t=i)}if(!t){for(;n&&!n[Fi]&&n!==e;)Jt(n)&&Y0(n[V],n),n=n[jt];null===n&&(n=e),Jt(n)&&Y0(n[V],n),t=n&&n[Fi]}n=t}}(n)}}function Y0(e,n){if(256&n[J])return;const t=W(null);try{n[J]&=-129,n[J]|=256,n[_i]&&vi(n[_i]),function q9(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof Sc)){const o=t[i+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){const s=r[o[a]],c=o[a+1];rr(4,s,c);try{c.call(s)}finally{rr(5,s,c)}}else{rr(4,r,o);try{o.call(r)}finally{rr(5,r,o)}}}}}(e,n),function U9(e,n){const t=e.cleanup,i=n[$a];if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const a=t[o+3];a>=0?i[a]():i[-a].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[$a]=null);const r=n[Xr];if(null!==r){n[Xr]=null;for(let o=0;o<r.length;o++)(0,r[o])()}}(e,n),1===n[V].type&&n[ce].destroy();const i=n[Po];if(null!==i&&bn(n[jt])){i!==n[jt]&&Z0(i,n);const r=n[Ir];null!==r&&r.detachView(e)}b0(n)}finally{W(t)}}function K0(e,n,t){return m_(e,n.parent,t)}function m_(e,n,t){let i=n;for(;null!==i&&168&i.type;)i=(n=i).parent;if(null===i)return t[Mt];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===Ri.None||o===Ri.Emulated)return null}return En(i,t)}}function Go(e,n,t,i,r){e.insertBefore(n,t,i,r)}function v_(e,n,t){e.appendChild(n,t)}function k_(e,n,t,i,r){null!==i?Go(e,n,t,i,r):v_(e,n,t)}function Q0(e,n){return e.parentNode(n)}function __(e,n,t){return b_(e,n,t)}function M_(e,n,t){return 40&e.type?En(e,t):null}let J0,b_=M_;function w_(e,n){b_=e,J0=n}function P1(e,n,t,i){const r=K0(e,i,n),o=n[ce],s=__(i.parent||n[fn],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)k_(o,r,t[c],s,!1);else k_(o,r,t,s,!1);void 0!==J0&&J0(o,i,n,t,r)}function $o(e,n){if(null!==n){const t=n.type;if(3&t)return En(n,e);if(4&t)return X0(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return $o(e,i);{const r=e[n.index];return bn(r)?X0(-1,r):Ne(r)}}if(128&t)return $o(e,n.next);if(32&t)return G0(n,e)()||Ne(e[n.index]);{const i=C_(e,n);return null!==i?Array.isArray(i)?i[0]:$o(Tr(e[bt]),i):$o(e,n.next)}}return null}function C_(e,n){return null!==n?e[bt][fn].projection[n.projection]:null}function X0(e,n){const t=Nt+e+1;if(t<n.length){const i=n[t],r=i[V].firstChild;if(null!==r)return $o(i,r)}return n[ir]}function zc(e,n,t){e.removeChild(null,n,t)}function e2(e,n,t,i,r,o,a){for(;null!=t;){if(128===t.type){t=t.next;continue}const s=i[t.index],c=t.type;if(a&&0===n&&(s&&wn(Ne(s),i),t.flags|=2),32&~t.flags)if(8&c)e2(e,n,t.child,i,r,o,!1),cs(n,e,r,s,o);else if(32&c){const l=G0(t,i);let d;for(;d=l();)cs(n,e,r,d,o);cs(n,e,r,s,o)}else 16&c?x_(e,n,i,t,r,o):cs(n,e,r,s,o);t=a?t.projectionNext:t.next}}function F1(e,n,t,i,r,o){e2(t,i,e.firstChild,n,r,o,!1)}function x_(e,n,t,i,r,o){const a=t[bt],c=a[fn].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)cs(n,e,r,c[l],o);else{let l=c;const d=a[jt];Ac(i)&&(l.flags|=128),e2(e,n,l,d,r,o,!0)}}function S_(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function E_(e,n,t){const{mergedAttrs:i,classes:r,styles:o}=t;null!==i&&Ap(e,n,i),null!==r&&S_(e,n,r),null!==o&&function Y9(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}const me={};function b(e=1){I_(be(),O(),yn()+e,!1)}function I_(e,n,t,i){if(!i)if(3&~n[J]){const o=e.preOrderHooks;null!==o&&d1(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&l1(n,o,t)}Ho(t)}function N(e,n=xe.Default){const t=O();return null===t?ne(e,n):Zv(We(),t,re(e),n)}function A_(e,n,t,i,r,o){const a=W(null);try{let s=null;r&Qr.SignalBased&&(s=n[i][Te]),null!==s&&void 0!==s.transformFn&&(o=s.transformFn(o)),r&Qr.HasDecoratorInputTransform&&(o=e.inputTransforms[i].call(n,o)),null!==e.setInput?e.setInput(n,s,o,t,i):yv(n,s,i,o)}finally{W(a)}}function L1(e,n,t,i,r,o,a,s,c,l,d){const h=n.blueprint.slice();return h[Mt]=r,h[J]=204|i,(null!==l||e&&2048&e[J])&&(h[J]|=2048),Mv(h),h[jt]=h[Wa]=e,h[rt]=t,h[nr]=a||e&&e[nr],h[ce]=s||e&&e[ce],h[Bt]=c||e&&e[Bt]||null,h[fn]=o,h[Ya]=function wE(){return bE++}(),h[Sn]=d,h[dv]=l,h[bt]=2==n.type?e[bt]:h,h}function Wo(e,n,t,i,r){let o=e.data[n];if(null===o)o=t2(e,n,t,i,r),function TS(){return le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const a=Dc();o.injectorIndex=null===a?-1:a.injectorIndex}return Vi(o,!0),o}function t2(e,n,t,i,r){const o=xv(),a=Qp(),c=e.data[n]=function iI(e,n,t,i,r,o){let a=n?n.injectorIndex:-1,s=0;return Vo()&&(s|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(a?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}function Uc(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;o<t;o++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function N_(e,n,t,i,r){const o=yn(),a=2&i;try{Ho(-1),a&&n.length>Y&&I_(e,n,Y,!1),rr(a?2:0,r),t(i,r)}finally{Ho(o),rr(a?3:1,r)}}function n2(e,n,t){if(zp(n)){const i=W(null);try{const o=n.directiveEnd;for(let a=n.directiveStart;a<o;a++){const s=e.data[a];s.contentQueries&&s.contentQueries(1,t[a],a)}}finally{W(i)}}}function i2(e,n,t){Dv()&&(function dI(e,n,t,i){const r=t.directiveStart,o=t.directiveEnd;Fo(t)&&function mI(e,n,t){const i=En(n,e),r=O_(t);let a=16;t.signals?a=4096:t.onPush&&(a=64);const s=V1(e,L1(e,r,null,a,i,n,null,e[nr].rendererFactory.createRenderer(i,t),null,null,null));e[n.index]=s}(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||h1(t,n),wn(i,n);const a=t.initialInputs;for(let s=r;s<o;s++){const c=e.data[s],l=Bo(n,e,s,t);wn(l,n),null!==a&&vI(0,s-r,l,c,0,a),Li(c)&&(ri(t.index,n)[rt]=Bo(n,e,s,t))}}(e,n,t,En(t,n)),!(64&~t.flags)&&V_(e,n,t))}function r2(e,n,t=En){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const a=i[o+1],s=-1===a?t(n,e):e[a];e[r++]=s}}}function O_(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=o2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function o2(e,n,t,i,r,o,a,s,c,l,d){const h=Y+i,f=h+r,g=function Q9(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:me);return t}(h,f),k="function"==typeof l?l():l;return g[V]={type:e,blueprint:g,template:t,queries:null,viewQuery:s,declTNode:n,data:g.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:k,incompleteFirstPass:!1,ssrId:d}}let R_=()=>null;function P_(e,n,t,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const a=n[o];if(void 0===a)continue;i??={};let s,c=Qr.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let l=o;if(null!==r){if(!r.hasOwnProperty(o))continue;l=r[o]}0===e?F_(i,t,l,s,c):F_(i,t,l,s)}return i}function F_(e,n,t,i,r){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,i):o=e[t]=[n,i],void 0!==r&&o.push(r)}function qn(e,n,t,i,r,o,a,s){const c=En(n,t);let d,l=n.inputs;!s&&null!=l&&(d=l[i])?(d2(e,t,d,i,r),Fo(n)&&function aI(e,n){const t=ri(n,e);16&t[J]||(t[J]|=64)}(t,n.index)):3&n.type&&(i=function oI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=a?a(r,n.value||"",i):r,o.setProperty(c,i,r))}function a2(e,n,t,i){if(Dv()){const r=null===i?null:{"":-1},o=function hI(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o<t.length;o++){const a=t[o];if(Qm(n,a.selectors,!1))if(i||(i=[]),Li(a))if(null!==a.findHostDirectiveDefs){const s=[];r=r||new Map,a.findHostDirectiveDefs(a,s,r),i.unshift(...s,a),s2(e,n,s.length)}else i.unshift(a),s2(e,n,0);else r=r||new Map,a.findHostDirectiveDefs?.(a,i,r),i.push(a)}return null===i?null:[i,r]}(e,t);let a,s;null===o?a=s=null:[a,s]=o,null!==a&&L_(e,n,t,a,r,s),r&&function pI(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const o=t[n[r+1]];if(null==o)throw new F(-301,!1);i.push(n[r],o)}}}(t,i,r)}t.mergedAttrs=vc(t.mergedAttrs,t.attrs)}function L_(e,n,t,i,r,o){for(let l=0;l<i.length;l++)u0(h1(t,n),e,i[l].type);!function yI(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,i.length);for(let l=0;l<i.length;l++){const d=i[l];d.providersResolver&&d.providersResolver(d)}let a=!1,s=!1,c=Uc(e,n,i.length,null);for(let l=0;l<i.length;l++){const d=i[l];t.mergedAttrs=vc(t.mergedAttrs,d.hostAttrs),gI(e,t,n,c,d),fI(c,d,r),null!==d.contentQueries&&(t.flags|=4),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=64);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),a=!0),!s&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),s=!0),c++}!function rI(e,n,t){const r=n.directiveEnd,o=e.data,a=n.attrs,s=[];let c=null,l=null;for(let d=n.directiveStart;d<r;d++){const h=o[d],f=t?t.get(h):null,k=f?f.outputs:null;c=P_(0,h.inputs,d,c,f?f.inputs:null),l=P_(1,h.outputs,d,l,k);const C=null===c||null===a||Np(n)?null:kI(c,d,a);s.push(C)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=s,n.inputs=c,n.outputs=l}(e,t,o)}function V_(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function NS(){return le.lFrame.currentDirectiveIndex}();try{Ho(o);for(let s=i;s<r;s++){const c=e.data[s],l=n[s];Xp(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&uI(c,l)}}finally{Ho(-1),Xp(a)}}function uI(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function s2(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function fI(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;Li(n)&&(t[""]=e)}}function gI(e,n,t,i,r){e.data[i]=r;const o=r.factory||(r.factory=Oo(r.type)),a=new Sc(o,Li(r),N);e.blueprint[i]=a,t[i]=a,function cI(e,n,t,i,r){const o=r.hostBindings;if(o){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const s=~n.index;(function lI(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,i,o)}}(e,n,i,Uc(e,t,r.hostVars,me),r)}function c2(e,n,t,i,r,o,a){if(null==o)e.removeAttribute(n,r,t);else{const s=null==a?ge(o):a(o,i||"",r);e.setAttribute(n,r,s,t)}}function vI(e,n,t,i,r,o){const a=o[n];if(null!==a)for(let s=0;s<a.length;)A_(i,t,a[s++],a[s++],a[s++],a[s++])}function kI(e,n,t){let i=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===i&&(i=[]);const a=e[o];for(let s=0;s<a.length;s+=3)if(a[s]===n){i.push(o,a[s+1],a[s+2],t[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function H_(e,n,t,i){return[e,!0,0,n,null,i,null,t,null,null]}function j_(e,n){const t=e.contentQueries;if(null!==t){const i=W(null);try{for(let r=0;r<t.length;r+=2){const a=t[r+1];if(-1!==a){const s=e.data[a];s1(t[r]),s.contentQueries(2,n[a],a)}}}finally{W(i)}}}function V1(e,n){return e[_c]?e[lv][Fi]=n:e[_c]=n,e[lv]=n,n}function l2(e,n,t){s1(0);const i=W(null);try{n(e,t)}finally{W(i)}}function B_(e){return e[$a]??=[]}function z_(e){return e.cleanup??=[]}function H1(e,n){const t=e[Bt],i=t?t.get(sr,null):null;i&&i.handleError(n)}function d2(e,n,t,i,r){for(let o=0;o<t.length;){const a=t[o++],s=t[o++],c=t[o++];A_(e.data[a],n[a],i,s,c,r)}}function Pr(e,n,t){const i=wc(n,e);f_(e[ce],i,t)}function _I(e,n){const t=ri(n,e),i=t[V];!function MI(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[Mt];null!==r&&null===t[Sn]&&(t[Sn]=A0(r,t[Bt])),u2(i,t,t[rt])}function u2(e,n,t){n0(n);try{const i=e.viewQuery;null!==i&&l2(1,i,t);const r=e.template;null!==r&&N_(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Ir]?.finishViewCreation(e),e.staticContentQueries&&j_(e,n),e.staticViewQueries&&l2(2,e.viewQuery,t);const o=e.components;null!==o&&function bI(e,n){for(let t=0;t<n.length;t++)_I(e,n[t])}(n,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[J]&=-5,r0()}}function ls(e,n,t,i){const r=W(null);try{const o=n.tView,c=L1(e,o,t,4096&e[J]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);c[Po]=e[n.index];const d=e[Ir];return null!==d&&(c[Ir]=d.createEmbeddedView(o)),u2(o,c,t),c}finally{W(r)}}function Zo(e,n){return!n||null===n.firstChild||Ac(e)}function ds(e,n,t,i=!0){const r=n[V];if(function z9(e,n,t,i){const r=Nt+i,o=t.length;i>0&&(t[r-1][Fi]=n),i<o-Nt?(n[Fi]=t[r],Um(t,Nt+i,n)):(t.push(n),n[Fi]=null),n[jt]=t;const a=n[Po];null!==a&&t!==a&&g_(a,n);const s=n[Ir];null!==s&&s.insertView(e),Zp(n),n[J]|=128}(r,n,e,t),i){const a=X0(t,e),s=n[ce],c=Q0(s,e[ir]);null!==c&&function j9(e,n,t,i,r,o){i[Mt]=r,i[fn]=n,F1(e,i,t,1,r,o)}(r,e[fn],s,n,c,a)}const o=n[Sn];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function qc(e,n,t,i,r=!1){for(;null!==t;){if(128===t.type){t=r?t.projectionNext:t.next;continue}const o=n[t.index];null!==o&&i.push(Ne(o)),bn(o)&&G_(o,i);const a=t.type;if(8&a)qc(e,n,t.child,i);else if(32&a){const s=G0(t,n);let c;for(;c=s();)i.push(c)}else if(16&a){const s=C_(n,t);if(Array.isArray(s))i.push(...s);else{const c=Tr(n[bt]);qc(c[V],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}function G_(e,n){for(let t=Nt;t<e.length;t++){const i=e[t],r=i[V].firstChild;null!==r&&qc(i[V],i,r,n)}e[ir]!==e[Mt]&&n.push(e[ir])}let $_=[];const xI={...lt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{r1(e.lView)},consumerOnSignalRead(){this.lView[_i]=this}},EI={...lt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Tr(e.lView);for(;n&&!W_(n[V]);)n=Tr(n);n&&bv(n)},consumerOnSignalRead(){this.lView[_i]=this}};function W_(e){return 2!==e.type}const II=100;function j1(e,n=!0,t=0){const i=e[nr],r=i.rendererFactory;r.begin?.();try{!function TI(e,n){const t=Iv();try{Tv(!0),p2(e,n);let i=0;for(;i1(e);){if(i===II)throw new F(103,!1);i++,p2(e,1)}}finally{Tv(t)}}(e,t)}catch(a){throw n&&H1(e,a),a}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function AI(e,n,t,i){const r=n[J];if(!(256&~r))return;n[nr].inlineEffectRunner?.flush(),n0(n);let s=!0,c=null,l=null;W_(e)?(l=function wI(e){return e[_i]??function CI(e){const n=$_.pop()??Object.create(xI);return n.lView=e,n}(e)}(n),c=Wt(l)):null===function nt(){return Pe}()?(s=!1,l=function SI(e){const n=e[_i]??Object.create(EI);return n.lView=e,n}(n),c=Wt(l)):n[_i]&&(vi(n[_i]),n[_i]=null);try{Mv(n),function Av(e){return le.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&N_(e,n,t,2,i);const d=!(3&~r);if(d){const g=e.preOrderCheckHooks;null!==g&&l1(n,g,null)}else{const g=e.preOrderHooks;null!==g&&d1(n,g,0,null),o0(n,0)}if(function NI(e){for(let n=wk(e);null!==n;n=Ck(n)){if(!(n[J]&t1.HasTransplantedViews))continue;const t=n[Ka];for(let i=0;i<t.length;i++)bv(t[i])}}(n),Y_(n,0),null!==e.contentQueries&&j_(e,n),d){const g=e.contentCheckHooks;null!==g&&l1(n,g)}else{const g=e.contentHooks;null!==g&&d1(n,g,1),o0(n,1)}!function K9(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Ho(~r);else{const o=r,a=t[++i],s=t[++i];AS(a,o),s(2,n[o])}}}finally{Ho(-1)}}(e,n);const h=e.components;null!==h&&Q_(n,h,0);const f=e.viewQuery;if(null!==f&&l2(2,f,i),d){const g=e.viewCheckHooks;null!==g&&l1(n,g)}else{const g=e.viewHooks;null!==g&&d1(n,g,2),o0(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[Xd]){for(const g of n[Xd])g();n[Xd]=null}n[J]&=-73}catch(d){throw r1(n),d}finally{null!==l&&(dt(l,c),s&&function DI(e){e.lView[_i]!==e&&(e.lView=null,$_.push(e))}(l)),r0()}}function Y_(e,n){for(let t=wk(e);null!==t;t=Ck(t))for(let i=Nt;i<t.length;i++)K_(t[i],n)}function OI(e,n,t){K_(ri(n,e),t)}function K_(e,n){Wp(e)&&p2(e,n)}function p2(e,n){const i=e[V],r=e[J],o=e[_i];let a=!!(0===n&&16&r);if(a||=!!(64&r&&0===n),a||=!!(1024&r),a||=!(!o?.dirty||!sn(o)),a||=!1,o&&(o.dirty=!1),e[J]&=-9217,a)AI(i,e,i.template,e[rt]);else if(8192&r){Y_(e,1);const s=i.components;null!==s&&Q_(e,s,1)}}function Q_(e,n,t){for(let i=0;i<n.length;i++)OI(e,n[i],t)}function Gc(e,n){const t=Iv()?64:1088;for(e[nr].changeDetectionScheduler?.notify(n);e;){e[J]|=t;const i=Tr(e);if(bc(e)&&!i)return e;e=i}return null}class $c{get rootNodes(){const n=this._lView,t=n[V];return qc(t,n,t.firstChild,[])}constructor(n,t,i=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[rt]}set context(n){this._lView[rt]=n}get destroyed(){return!(256&~this._lView[J])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[jt];if(bn(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(Bc(n,i),zd(t,i))}this._attachedToViewContainer=!1}R1(this._lView[V],this._lView)}onDestroy(n){o1(this._lView,n)}markForCheck(){Gc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[J]&=-129}reattach(){Zp(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,j1(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=bc(this._lView),t=this._lView[Po];null!==t&&!n&&Z0(t,this._lView),y_(this._lView[V],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=n;const t=bc(this._lView),i=this._lView[Po];null!==i&&!t&&g_(i,this._lView),Zp(this._lView)}}let St=(()=>{class e{static{this.__NG_ELEMENT_ID__=FI}}return e})();const RI=St,PI=class extends RI{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=ls(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new $c(r)}};function FI(){return B1(We(),O())}function B1(e,n){return 4&e.type?new PI(n,e,es(e,n)):null}function e4(e,n,t){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?M_(e,0,t):Ne(t[r])}function t4(e,n,t,i,r){const o=n.insertBeforeIndex;if(Array.isArray(o)){let a=i,s=null;if(3&n.type||(s=a,a=r),null!==a&&-1===n.componentOffset)for(let c=1;c<o.length;c++)Go(e,a,t[o[c]],s,!1)}}function n4(e,n){if(e.push(n),e.length>1)for(let t=e.length-2;t>=0;t--){const i=e[t];i4(i)||GI(i,n)&&null===$I(i)&&WI(i,n.index)}}function i4(e){return!(64&e.type)}function GI(e,n){return i4(n)||e.index>n.index}function $I(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function WI(e,n){const t=e.insertBeforeIndex;Array.isArray(t)?t[0]=n:(w_(e4,t4),e.insertBeforeIndex=n)}function Kc(e,n){const t=e.data[n];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function KI(e,n,t){const i=t2(e,t,64,null,null);return n4(n,i),i}function U1(e,n){const t=n[e.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function r4(e){return e>>>17}function o4(e){return(131070&e)>>>1}function m2(e,n,t){e.index=0;const i=U1(n,t);e.removes=null!==i?n.remove[i]:Ae}function q1(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),m2(e,e.lView[V].data[~n],e.lView),q1(e))}return 0===e.stack.length?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),q1(e))}function JI(){const e={stack:[],index:-1};return function n(t,i){for(e.lView=i;e.stack.length;)e.stack.pop();return m2(e,t.value,i),q1.bind(null,e)}}let p4=()=>{},y4=()=>{},v4=()=>null;function Ko(e,n){return v4(e,n)}class hs{}const el=new $("",{providedIn:"root",factory:()=>!1}),k4=new $(""),C2=new $("");class ET{}class _4{}class TT{resolveComponentFactory(n){throw function IT(e){const n=Error(`No component factory found for ${Yt(e)}.`);return n.ngComponent=e,n}(n)}}class W1{static{this.NULL=new TT}}class D2{}let lr=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function AT(){const e=O(),t=ri(We().index,e);return(Jt(t)?t:e)[ce]}()}}return e})(),NT=(()=>{class e{static{this.\u0275prov=j({token:e,providedIn:"root",factory:()=>null})}}return e})();function Y1(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let a=0;a<n.length;a++){const s=n[a];"number"==typeof s?o=s:1==o?r=yp(r,s):2==o&&(i=yp(i,s+": "+n[++a]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}class C4 extends W1{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=De(n);return new il(t,this.ngModule)}}function D4(e,n){const t=[];for(const i in e){if(!e.hasOwnProperty(i))continue;const r=e[i];if(void 0===r)continue;const o=Array.isArray(r),a=o?r[0]:r;t.push(n?{propName:a,templateName:i,isSignal:!!((o?r[1]:Qr.None)&Qr.SignalBased)}:{propName:a,templateName:i})}return t}class il extends _4{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=D4(n.inputs,!0);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return D4(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function Ux(e){return e.map(zx).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){const o=W(null);try{let a=(r=r||this.ngModule)instanceof Mn?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new jo(n,a):n,c=s.get(D2,null);if(null===c)throw new F(407,!1);const h={rendererFactory:c,sanitizer:s.get(NT,null),inlineEffectRunner:null,changeDetectionScheduler:s.get(hs,null)},f=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",k=i?function J9(e,n,t,i){const o=i.get(Uk,!1)||t===Ri.ShadowDom,a=e.selectRootElement(n,o);return function X9(e){R_(e)}(a),a}(f,i,this.componentDef.encapsulation,s):O1(f,g,function PT(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g));let C=512;this.componentDef.signals?C|=4096:this.componentDef.onPush||(C|=16);let E=null;null!==k&&(E=A0(k,s,!0));const I=o2(0,null,null,1,0,null,null,null,null,null,null),S=L1(null,I,null,C,null,null,h,f,s,null,E);n0(S);let z,U,Z=null;try{const Q=this.componentDef;let we,Re=null;Q.findHostDirectiveDefs?(we=[],Re=new Map,Q.findHostDirectiveDefs(Q,we,Re),we.push(Q)):we=[Q];const Lt=function LT(e,n){const t=e[V],i=Y;return e[i]=n,Wo(t,i,2,"#host",null)}(S,k);Z=function VT(e,n,t,i,r,o,a){const s=r[V];!function HT(e,n,t,i){for(const r of e)n.mergedAttrs=vc(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Y1(n,n.mergedAttrs,!0),null!==t&&E_(i,t,n))}(i,e,n,a);let c=null;null!==n&&(c=A0(n,r[Bt]));const l=o.rendererFactory.createRenderer(n,t);let d=16;t.signals?d=4096:t.onPush&&(d=64);const h=L1(r,O_(t),null,d,r[e.index],e,o,l,null,null,c);return s.firstCreatePass&&s2(s,e,i.length-1),V1(r,h),r[e.index]=h}(Lt,k,Q,we,S,h,f),U=Cc(I,Y),k&&function BT(e,n,t,i){if(i)Ap(e,t,["ng-version","18.2.6"]);else{const{attrs:r,classes:o}=function qx(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===r?""!==o&&n.push(o,e[++i]):8===r&&t.push(o);else{if(!Pi(r))break;r=o}i++}return{attrs:n,classes:t}}(n.selectors[0]);r&&Ap(e,t,r),o&&o.length>0&&S_(e,t,o.join(" "))}}(f,Q,k,i),void 0!==t&&function zT(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const o=t[r];i.push(null!=o?Array.from(o):null)}}(U,this.ngContentSelectors,t),z=function jT(e,n,t,i,r,o){const a=We(),s=r[V],c=En(a,r);L_(s,r,a,t,null,i);for(let d=0;d<t.length;d++)wn(Bo(r,s,a.directiveStart+d,a),r);V_(s,r,a),c&&wn(c,r);const l=Bo(r,s,a.directiveStart+a.componentOffset,a);if(e[rt]=r[rt]=l,null!==o)for(const d of o)d(l,n);return n2(s,a,r),l}(Z,Q,we,Re,S,[UT]),u2(I,S,null)}catch(Q){throw null!==Z&&b0(Z),b0(S),Q}finally{r0()}return new FT(this.componentType,z,es(U,S),S,U)}finally{W(o)}}}class FT extends ET{constructor(n,t,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new $c(r,void 0,!1),this.componentType=n}setInput(n,t){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const o=this._rootLView;d2(o[V],o,r,n,t),this.previousInputValues.set(n,t),Gc(ri(this._tNode.index,o),1)}}get injector(){return new Xt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function UT(){const e=We();c1(O()[V],e)}let Gn=(()=>{class e{static{this.__NG_ELEMENT_ID__=qT}}return e})();function qT(){return E4(We(),O())}const GT=Gn,x4=class extends GT{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return es(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){const n=p1(this._hostTNode,this._hostLView);if(c0(n)){const t=Ic(n,this._hostLView),i=Ec(n);return new Xt(t[V].data[i+8],t)}return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=S4(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Nt}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=Ko(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(t||{},o,a);return this.insertImpl(s,r,Zo(this._hostTNode,a)),s}createComponent(n,t,i,r,o){const a=n&&!function kc(e){return"function"==typeof e}(n);let s;if(a)s=t;else{const k=t||{};s=k.index,i=k.injector,r=k.projectableNodes,o=k.environmentInjector||k.ngModuleRef}const c=a?n:new il(De(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const C=(a?l:this.parentInjector).get(Mn,null);C&&(o=C)}const d=De(c.componentType??{}),h=Ko(this._lContainer,d?.id??null),g=c.create(l,r,h?.firstChild??null,o);return this.insertImpl(g.hostView,s,Zo(this._hostTNode,h)),g}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function MS(e){return bn(e[jt])}(r)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=r[jt],l=new x4(c,c[fn],c[jt]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(t),a=this._lContainer;return ds(a,r,o,i),n.attachToViewContainerRef(),Um(E2(a),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=S4(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Bc(this._lContainer,t);i&&(zd(E2(this._lContainer),t),R1(i[V],i))}detach(n){const t=this._adjustIndex(n,-1),i=Bc(this._lContainer,t);return i&&null!=zd(E2(this._lContainer),t)?new $c(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function S4(e){return e[8]}function E2(e){return e[8]||(e[8]=[])}function E4(e,n){let t;const i=n[e.index];return bn(i)?t=i:(t=H_(i,n,null,e),n[e.index]=t,V1(n,t)),I4(t,n,e,i),new x4(t,e,n)}let I4=function A4(e,n,t,i){if(e[ir])return;let r;r=8&t.type?Ne(i):function $T(e,n){const t=e[ce],i=t.createComment(""),r=En(n,e);return Go(t,Q0(t,r),i,function G9(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[ir]=r},I2=()=>!1;class T2{constructor(n){this.queryList=n,this.matches=null}clone(){return new T2(this.queryList)}setDirty(){this.queryList.setDirty()}}class A2{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;o<i;o++){const a=t.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new A2(r)}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!==F2(n,t).matches&&this.queries[t].setDirty()}}class N4{constructor(n,t,i=null){this.flags=t,this.read=i,this.predicate="string"==typeof n?function eA(e){return e.split(",").map(n=>n.trim())}(n):n}}class N2{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==t?t.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==t?t.push(o):t=[o])}return null!==t?new N2(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class O2{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,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 O2(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1&~this.metadata.flags){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,t,KT(t,o)),this.matchTNodeWithReadOption(n,t,f1(t,n,o,!1,!1))}else i===St?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,f1(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Oe||r===Gn||r===St&&4&t.type)this.addMatch(t.index,-2);else{const o=f1(t,n,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function KT(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function JT(e,n,t,i){return-1===t?function QT(e,n){return 11&e.type?es(e,n):4&e.type?B1(e,n):null}(n,e):-2===t?function XT(e,n,t){return t===Oe?es(n,e):t===St?B1(n,e):t===Gn?E4(n,e):void 0}(e,n,i):Bo(e,e[V],t,n)}function O4(e,n,t,i){const r=n[Ir].queries[i];if(null===r.matches){const o=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:JT(n,o[l],a[c+1],t.metadata.read))}r.matches=s}return r.matches}function R2(e,n,t,i){const r=e.queries.getByIndex(t),o=r.matches;if(null!==o){const a=O4(e,n,r,t);for(let s=0;s<o.length;s+=2){const c=o[s];if(c>0)i.push(a[s/2]);else{const l=o[s+1],d=n[-c];for(let h=Nt;h<d.length;h++){const f=d[h];f[Po]===f[jt]&&R2(f[V],f,l,i)}if(null!==d[Ka]){const h=d[Ka];for(let f=0;f<h.length;f++){const g=h[f];R2(g[V],g,l,i)}}}}}return i}function R4(e,n,t){const i=new k0(!(4&~t));return function nI(e,n,t,i){const r=B_(n);r.push(t),e.firstCreatePass&&z_(e).push(i,r.length-1)}(e,n,i,i.destroy),(n[Ir]??=new A2).queries.push(new T2(i))-1}function L4(e,n,t){null===e.queries&&(e.queries=new N2),e.queries.track(new O2(n,t))}function F2(e,n){return e.queries.getByIndex(n)}function V4(e,n){const t=e[V],i=F2(t,n);return i.crossesNgTemplate?R2(t,e,n,[]):O4(t,e,i,n)}const H4=new Set;function Tn(e){H4.has(e)||(H4.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ps(e,n){Tn("NgSignals");const t=function np(e){const n=Object.create(xd);n.value=e;const t=()=>(At(n),n.value);return t[Te]=n,t}(e),i=t[Te];return n?.equal&&(i.equal=n.equal),t.set=r=>uc(i,r),t.update=r=>function Dd(e,n){Ze()||Cd(),uc(e,n(e.value))}(i,r),t.asReadonly=B4.bind(t),t}function B4(){const e=this[Te];if(void 0===e.readonlyFn){const n=()=>this();n[Te]=e,e.readonlyFn=n}return e.readonlyFn}function z4(e){return function j4(e){return"function"==typeof e&&void 0!==e[Te]}(e)&&"function"==typeof e.set}function ee(e){let n=function X4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(Li(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new F(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const a=e;a.inputs=Q1(e.inputs),a.inputTransforms=Q1(e.inputTransforms),a.declaredInputs=Q1(e.declaredInputs),a.outputs=Q1(e.outputs);const s=r.hostBindings;s&&yA(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&pA(e,c),l&&fA(e,l),uA(e,r),lx(e.outputs,r.outputs),Li(r)&&r.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let a=0;a<o.length;a++){const s=o[a];s&&s.ngInherit&&s(e),s===ee&&(t=!1)}}n=Object.getPrototypeOf(n)}!function hA(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=vc(r.hostAttrs,t=vc(t,r.hostAttrs))}}(i)}function uA(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function Q1(e){return e===tr?{}:e===Ae?[]:e}function pA(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function fA(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function yA(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function V2(e){const n=t=>{const i=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:re(r),inputs:tr,outputs:tr}:{directive:re(r.directive),inputs:tM(r.inputs),outputs:tM(r.outputs)});null===t.hostDirectives?(t.findHostDirectiveDefs=eM,t.hostDirectives=i):t.hostDirectives.unshift(...i)};return n.ngInherit=!0,n}function eM(e,n,t){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const r=Kt(i.directive);kA(r.declaredInputs,i.inputs),eM(r,n,t),t.set(r,i),n.push(r)}}function tM(e){if(void 0===e||0===e.length)return tr;const n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function kA(e,n){for(const t in n)n.hasOwnProperty(t)&&(e[n[t]]=e[t])}function iM(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}class Qo{}class rM{}class H2 extends Qo{constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new C4(this);const o=_n(n);this._bootstrapComponents=oi(o.bootstrap),this._r3Injector=rk(n,t,[{provide:Qo,useValue:this},{provide:W1,useValue:this.componentFactoryResolver},...i],Yt(n),new Set(["environment"])),r&&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 j2 extends rM{constructor(n){super(),this.moduleType=n}create(n){return new H2(this.moduleType,n,[])}}class oM extends Qo{constructor(n){super(),this.componentFactoryResolver=new C4(this),this.instance=null;const t=new Ua([...n.providers,{provide:Qo,useValue:this},{provide:W1,useValue:this.componentFactoryResolver}],n.parent||Kd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function J1(e,n,t=null){return new oM({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}function X1(e){return!!function B2(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function dr(e,n,t){return e[n]=t}function Ot(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Jo(e,n,t,i){const r=Ot(e,n,t);return Ot(e,n+1,i)||r}function al(e,n,t,i,r,o,a,s,c,l){const d=t+Y,h=n.firstCreatePass?function xA(e,n,t,i,r,o,a,s,c){const l=n.consts,d=Wo(n,e,4,a||null,s||null);a2(n,t,d,Mi(l,c)),c1(n,d);const h=d.tView=o2(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),h.queries=n.queries.embeddedTView(d)),d}(d,n,e,i,r,o,a,s,c):n.data[d];Vi(h,!1);const f=aM(n,e,h,t);xc()&&P1(n,e,f,h),wn(f,e);const g=H_(f,e,f,h);return e[d]=g,V1(e,g),function T4(e,n,t){return I2(e,n,t)}(g,h,e),n1(h)&&i2(n,e,h),null!=c&&r2(e,h,l),h}function H(e,n,t,i,r,o,a,s){const c=O(),l=be();return al(c,l,e,n,t,i,r,Mi(l.consts,o),a,s),H}let aM=function sM(e,n,t,i){return or(!0),n[ce].createComment("")};var An=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(An||{});let pM=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}}return e})();class ll{constructor(){this.ngZone=w(ve),this.scheduler=w(hs),this.errorHandler=w(sr,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[An.EarlyRead,An.Write,An.MixedReadWrite,An.Read]}execute(){this.executing=!0;for(const n of ll.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(i){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&this.sequences.delete(n);for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static{this.\u0275prov=j({token:ll,providedIn:"root",factory:()=>new ll})}}class TA{constructor(n,t,i,r){this.impl=n,this.hooks=t,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy()}}function dl(e,n){!n?.injector&&Qd();const t=n?.injector??w(Ve);return ai(t)?(Tn("NgAfterRender"),fM(e,t,n,!1)):yM}function Fr(e,n){!n?.injector&&Qd();const t=n?.injector??w(Ve);return ai(t)?(Tn("NgAfterNextRender"),fM(e,t,n,!0)):yM}function fM(e,n,t,i){const r=n.get(pM);r.impl??=n.get(ll);const a=new TA(r.impl,function AA(e,n){if(e instanceof Function){const t=[void 0,void 0,void 0,void 0];return t[n]=e,t}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,t?.phase??An.MixedReadWrite),i,n.get(Or));return r.impl.register(a),a}const yM={destroy(){}};function G(e,n,t,i){const r=O();return Ot(r,Hi(),n)&&(be(),function cr(e,n,t,i,r,o){const a=En(e,n);c2(n[ce],a,o,e.value,t,i,r)}(ot(),r,e,n,t,i)),G}function Ds(e,n,t,i,r,o,a,s){const l=function eu(e,n,t,i,r){const o=Jo(e,n,t,i);return Ot(e,n+2,r)||o}(e,Ar(),t,r,a);return Nr(3),l?n+ge(t)+i+ge(r)+o+ge(a)+s:me}function au(e,n){return e<<17|n<<2}function co(e){return e>>17&32767}function J2(e){return 2|e}function ea(e){return(131068&e)>>2}function X2(e,n){return-131069&e|n<<2}function ef(e){return 1|e}function BM(e,n,t,i){const r=e[t+1],o=null===n;let a=i?co(r):ea(r),s=!1;for(;0!==a&&(!1===s||o);){const l=e[a+1];pN(e[a],n)&&(s=!0,e[a+1]=i?ef(l):J2(l)),a=i?co(l):ea(l)}s&&(e[t+1]=i?J2(r):ef(r))}function pN(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&za(e,n)>=0}const en={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zM(e){return e.substring(en.key,en.keyEnd)}function UM(e,n){const t=en.textEnd;return t===n?-1:(n=en.keyEnd=function mN(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,en.key=n,t),As(e,n,t))}function As(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function D(e,n,t){const i=O();return Ot(i,Hi(),n)&&qn(be(),ot(),i,e,n,i[ce],t,!1),D}function tf(e,n,t,i,r){const a=r?"class":"style";d2(e,t,n.inputs[a],a,i)}function hl(e,n,t){return ji(e,n,t,!1),hl}function ze(e,n){return ji(e,n,null,!0),ze}function lo(e){Bi(xN,hr,e,!0)}function hr(e,n){for(let t=function yN(e){return function GM(e){en.key=0,en.keyEnd=0,en.value=0,en.valueEnd=0,en.textEnd=e.length}(e),UM(e,As(e,0,en.textEnd))}(n);t>=0;t=UM(n,t))ii(e,zM(n),!0)}function ji(e,n,t,i){const r=O(),o=be(),a=Nr(2);o.firstUpdatePass&&YM(o,e,a,i),n!==me&&Ot(r,a,n)&&QM(o,o.data[yn()],r,r[ce],e,r[a+1]=function EN(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Yt(io(e)))),e}(n,t),i,a)}function Bi(e,n,t,i){const r=be(),o=Nr(2);r.firstUpdatePass&&YM(r,null,o,i);const a=O();if(t!==me&&Ot(a,o,t)){const s=r.data[yn()];if(XM(s,i)&&!ZM(r,o)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=yp(c,t||"")),tf(r,s,a,t,i)}else!function SN(e,n,t,i,r,o,a,s){r===me&&(r=Ae);let c=0,l=0,d=0<r.length?r[0]:null,h=0<o.length?o[0]:null;for(;null!==d||null!==h;){const f=c<r.length?r[c+1]:void 0,g=l<o.length?o[l+1]:void 0;let C,k=null;d===h?(c+=2,l+=2,f!==g&&(k=h,C=g)):null===h||null!==d&&d<h?(c+=2,k=d):(l+=2,k=h,C=g),null!==k&&QM(e,n,t,i,k,C,a,s),d=c<r.length?r[c]:null,h=l<o.length?o[l]:null}}(r,s,a,a[ce],a[o+1],a[o+1]=function DN(e,n,t){if(null==t||""===t)return Ae;const i=[],r=io(t);if(Array.isArray(r))for(let o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,o)}}function ZM(e,n){return n>=e.expandoStartIndex}function YM(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[yn()],a=ZM(e,t);XM(o,i)&&null===n&&!a&&(n=!1),n=function MN(e,n,t,i){const r=function e0(e){const n=le.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=pl(t=nf(null,e,n,t,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==r)if(t=nf(r,e,n,t,i),null===o){let c=function bN(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==ea(i))return e[co(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=nf(null,e,n,c[1],i),c=pl(c,n.attrs,i),function wN(e,n,t,i){e[co(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function CN(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=pl(i,e[o].hostAttrs,t);return pl(i,n.attrs,t)}(e,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),t}(r,o,n,i),function uN(e,n,t,i,r,o){let a=o?n.classBindings:n.styleBindings,s=co(a),c=ea(a);e[i]=t;let d,l=!1;if(Array.isArray(t)?(d=t[1],(null===d||za(t,d)>0)&&(l=!0)):d=t,r)if(0!==c){const f=co(e[s+1]);e[i+1]=au(f,s),0!==f&&(e[f+1]=X2(e[f+1],i)),e[s+1]=function lN(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=au(s,0),0!==s&&(e[s+1]=X2(e[s+1],i)),s=i;else e[i+1]=au(c,0),0===s?s=i:e[c+1]=X2(e[c+1],i),c=i;l&&(e[i+1]=J2(e[i+1])),BM(e,d,i,!0),BM(e,d,i,!1),function hN(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&za(o,n)>=0&&(t[i+1]=ef(t[i+1]))}(n,d,e,i,o),a=au(s,c),o?n.classBindings=a:n.styleBindings=a}(r,o,n,t,a,i)}}function nf(e,n,t,i,r){let o=null;const a=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<a&&(o=n[s],i=pl(i,o.hostAttrs,r),o!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function pl(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ii(e,a,!!t||n[++o]))}return void 0===e?null:e}function xN(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&ii(e,i,t)}function QM(e,n,t,i,r,o,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function dN(e){return!(1&~e)}(l)?JM(c,n,t,r,ea(l),a):void 0;su(d)||(su(o)||function cN(e){return!(2&~e)}(l)&&(o=JM(c,null,t,r,s,a)),function Z9(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:ro.DashCase;null==r?e.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ro.Important),e.setStyle(t,i,r,o))}}(i,a,wc(yn(),t),r,o))}function JM(e,n,t,i,r,o){const a=null===n;let s;for(;r>0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,h=null===d;let f=t[r+1];f===me&&(f=h?Ae:void 0);let g=h?Ip(f,i):d===i?f:void 0;if(l&&!su(g)&&(g=Ip(c,i)),su(g)&&(s=g,a))return s;const k=e[r+1];r=a?co(k):ea(k)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(s=Ip(c,i))}return s}function su(e){return void 0!==e}function XM(e,n){return!!(e.flags&(n?8:16))}function e5(e,n,t,i,r){Bi(ii,hr,function Cs(e,n,t,i,r,o){const s=Jo(e,Ar(),t,r);return Nr(2),s?n+ge(t)+i+ge(r)+o:me}(O(),e,n,t,i,r),!0)}function Ft(e,n){Tn("NgControlFlow");const t=O(),i=Hi(),r=t[i]!==me?t[i]:-1,o=-1!==r?cu(t,Y+r):void 0;if(Ot(t,i,e)){const s=W(null);try{if(void 0!==o&&function h2(e,n){const t=Bc(e,n);return void 0!==t&&R1(t[V],t),t}(o,0),-1!==e){const c=Y+e,l=cu(t,c),d=function cf(e,n){return Cc(e,n)}(t[V],c),h=Ko(l,d.tView.ssrId);ds(l,ls(t,d,n,{dehydratedView:h}),0,Zo(d,h))}}finally{W(s)}}else if(void 0!==o){const s=function q_(e,n){const t=Nt+n;if(t<e.length)return e[t]}(o,0);void 0!==s&&(s[rt]=n)}}function cu(e,n){return e[n]}function y(e,n,t,i){const r=O(),o=be(),a=Y+e,s=r[ce],c=o.firstCreatePass?function GN(e,n,t,i,r,o){const a=n.consts,c=Wo(n,e,2,i,Mi(a,r));return a2(n,t,c,Mi(a,o)),null!==c.attrs&&Y1(c,c.attrs,!1),null!==c.mergedAttrs&&Y1(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(a,o,r,n,t,i):o.data[a],l=r5(o,r,c,s,n,e);r[a]=l;const d=n1(c);return Vi(c,!0),E_(s,l,c),!function ys(e){return!(32&~e.flags)}(c)&&xc()&&P1(o,r,l,c),0===function bS(){return le.lFrame.elementDepthCount}()&&wn(l,r),function wS(){le.lFrame.elementDepthCount++}(),d&&(i2(o,r,c),n2(o,c,r)),null!==i&&r2(r,c),y}function m(){let e=We();Qp()?Jp():(e=e.parent,Vi(e,!1));const n=e;(function DS(e){return le.skipHydrationRootTNode===e})(n)&&function IS(){le.skipHydrationRootTNode=null}(),function CS(){le.lFrame.elementDepthCount--}();const t=be();return t.firstCreatePass&&(c1(t,e),zp(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function US(e){return!!(8&e.flags)}(n)&&tf(t,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function qS(e){return!!(16&e.flags)}(n)&&tf(t,n,O(),n.stylesWithoutHost,!1),m}function B(e,n,t,i){return y(e,n,t,i),m(),B}let r5=(e,n,t,i,r,o)=>(or(!0),O1(i,r,function Vv(){return le.lFrame.currentNamespace}()));function ci(e,n,t){const i=O(),r=be(),o=e+Y,a=r.firstCreatePass?function ZN(e,n,t,i,r){const o=n.consts,a=Mi(o,i),s=Wo(n,e,8,"ng-container",a);return null!==a&&Y1(s,a,!0),a2(n,t,s,Mi(o,r)),null!==n.queries&&n.queries.elementStart(n,s),s}(o,r,i,n,t):r.data[o];Vi(a,!0);const s=o5(r,i,a,e);return i[o]=s,xc()&&P1(r,i,s,a),wn(s,i),n1(a)&&(i2(r,i,a),n2(r,a,i)),null!=t&&r2(i,a),ci}function li(){let e=We();const n=be();return Qp()?Jp():(e=e.parent,Vi(e,!1)),n.firstCreatePass&&(c1(n,e),zp(e)&&n.queries.elementEnd(e)),li}function fl(e,n,t){return ci(e,n,t),li(),fl}let o5=(e,n,t,i)=>(or(!0),W0(n[ce],""));function Ue(){return O()}function $n(e,n,t){const i=O();return Ot(i,Hi(),n)&&qn(be(),ot(),i,e,n,i[ce],t,!0),$n}const ta=void 0;var JN=["en",[["a","p"],["AM","PM"],ta],[["AM","PM"],ta,ta],[["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"]],ta,[["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"]],ta,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ta,"{1} 'at' {0}",ta],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function QN(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let Ns={};function Nn(e){const n=function XN(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=c5(n);if(t)return t;const i=n.split("-")[0];if(t=c5(i),t)return t;if("en"===i)return JN;throw new F(701,!1)}function c5(e){return e in Ns||(Ns[e]=pt.ng&&pt.ng.common&&pt.ng.common.locales&&pt.ng.common.locales[e]),Ns[e]}var st=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}(st||{});const eO=["zero","one","two","few","many"],lu="en-US",du={marker:"element"},uu={marker:"ICU"};var Wn=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Wn||{});let l5=lu,yl=0,gl=0;let ml=(e,n,t,i)=>(or(!0),function d5(e,n,t){const i=e[ce];switch(t){case Node.COMMENT_NODE:return W0(i,n);case Node.TEXT_NODE:return $0(i,n);case Node.ELEMENT_NODE:return O1(i,n,null)}}(e,t,i));function u5(e,n,t,i){const r=t[ce];let a,o=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]=ml(t,l,c,Node.TEXT_NODE))}else if("number"==typeof c)switch(1&c){case 0:const l=r4(c);let d,h;if(null===o&&(o=l,a=Q0(r,i)),l===o?(d=i,h=a):(d=null,h=Ne(t[l])),null!==h){const C=o4(c);Go(r,h,t[C],d,!1);const I=Kc(e,C);if(null!==I&&"object"==typeof I){const S=U1(I,t);null!==S&&u5(e,I.create[S],t,t[I.anchorIdx])}}break;case 1:const g=n[++s],k=n[++s];c2(r,wc(c>>>1,t),null,null,g,k,null)}else switch(c){case uu:const l=n[++s],d=n[++s];null===t[d]&&wn(t[d]=ml(t,d,l,Node.COMMENT_NODE),t);break;case du:const h=n[++s],f=n[++s];null===t[f]&&wn(t[f]=ml(t,f,h,Node.ELEMENT_NODE),t)}}}function h5(e,n,t,i,r){for(let o=0;o<t.length;o++){const a=t[o],s=t[++o];if(a&r){let c="";for(let l=o+1;l<=o+s;l++){const d=t[l];if("string"==typeof d)c+=d;else if("number"==typeof d)if(d<0)c+=ge(n[i-d]);else{const h=d>>>2;switch(3&d){case 1:const f=t[++l],g=t[++l],k=e.data[h];"string"==typeof k?c2(n[ce],n[h],null,k,f,c,g):qn(e,k,n,f,c,n[ce],g,!1);break;case 0:const C=n[h];null!==C&&f_(n[ce],C,c);break;case 2:dO(e,Kc(e,h),n,c);break;case 3:p5(e,Kc(e,h),i,n)}}}}else{const c=t[o+1];if(c>0&&!(3&~c)){const d=Kc(e,c>>>2);n[d.currentCaseLViewIndex]<0&&p5(e,d,i,n)}}o+=s}}function p5(e,n,t,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=yl;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),h5(e,i,n.update[r],t,o)}}function dO(e,n,t,i){const r=function uO(e,n){let t=e.cases.indexOf(n);if(-1===t)switch(e.type){case 1:{const i=function tO(e,n){const t=function s5(e){return Nn(e)[st.PluralCase]}(n)(parseInt(e,10)),i=eO[t];return void 0!==i?i:"other"}(n,function rO(){return l5}());t=e.cases.indexOf(i),-1===t&&"other"!==i&&(t=e.cases.indexOf("other"));break}case 0:t=e.cases.indexOf("other")}return-1===t?null:t}(n,i);if(U1(n,t)!==r&&(f5(e,n,t),t[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const a=t[n.anchorIdx];a&&u5(e,n.create[r],t,a),function vT(e,n,t){y4(e,n,t)}(t,n.anchorIdx,r)}}function f5(e,n,t){let i=U1(n,t);if(null!==i){const r=n.remove[i];for(let o=0;o<r.length;o++){const a=r[o];if(a>0){const s=wc(a,t);null!==s&&zc(t[ce],s)}else f5(e,Kc(e,~a),t)}}}const hu=/\ufffd(\d+):?\d*\ufffd/gi,pO=/\ufffd(\d+)\ufffd/,g5=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,vl="\ufffd",fO=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yO=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,gO=/\uE500/g;function m5(e,n,t,i,r,o,a){const s=Uc(e,i,1,null);let c=s<<Wn.SHIFT,l=Dc();n===l&&(l=null),null===l&&(c|=Wn.APPEND_EAGERLY),a&&(c|=Wn.COMMENT,function V9(e){void 0===q0&&(q0=e())}(JI)),r.push(c,null===o?"":o);const d=t2(e,s,a?32:1,null===o?"":o,null);n4(t,d);const h=d.index;return Vi(d,!1),null!==l&&n!==l&&function YI(e,n){let t=e.insertBeforeIndex;null===t?(w_(e4,t4),t=e.insertBeforeIndex=[null,n]):(Yr(Array.isArray(t),!0,"Expecting array here"),t.push(n))}(l,h),d}function kO(e,n,t,i,r,o,a,s){const c=s.match(hu),d=m5(n,t,i,a,r,c?null:s,!1).index;c&&kl(o,s,d,null,0,null),e.push({kind:0,index:d})}function kl(e,n,t,i,r,o){const a=e.length,s=a+1;e.push(null,null);const c=a+2,l=n.split(hu);let d=0;for(let h=0;h<l.length;h++){const f=l[h];if(1&h){const g=r+parseInt(f,10);e.push(-1-g),d|=v5(g)}else""!==f&&e.push(f)}return e.push(t<<2|(i?1:0)),i&&e.push(i,o),e[a]=d,e[s]=e.length-c,d}function v5(e){return 1<<Math.min(e,31)}function k5(e){let n,o,t="",i=0,r=!1;for(;null!==(n=fO.exec(e));)r?n[0]===`${vl}/*${o}${vl}`&&(i=n.index,r=!1):(t+=e.substring(i,n.index+n[0].length),o=n[1],r=!0);return t+=e.slice(i),t}function _5(e,n,t,i,r,o,a){let s=0;const c={type:o.type,currentCaseLViewIndex:Uc(n,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function xO(e,n,t){e.push(v5(n.mainBinding),2,-1-n.mainBinding,t<<2|2)})(i,o,a),function ZI(e,n,t){const i=e.data[n];null===i?e.data[n]=t:i.value=t}(n,a,c);const l=o.values,d=[];for(let h=0;h<l.length;h++){const f=l[h],g=[];for(let C=0;C<f.length;C++){const E=f[C];if("string"!=typeof E){const I=g.push(E)-1;f[C]=`\x3c!--\ufffd${I}\ufffd--\x3e`}}const k=[];d.push(k),s=CO(k,n,c,t,i,r,o.cases[h],f.join(""),g)|s}s&&function SO(e,n,t){e.push(n,1,t<<2|3)}(i,s,a),e.push({kind:3,index:a,cases:d,currentCaseLViewIndex:c.currentCaseLViewIndex})}function wO(e){const n=[],t=[];let i=1,r=0;const o=lf(e=e.replace(g5,function(a,s,c){return i="select"===c?0:1,r=parseInt(s.slice(1),10),""}));for(let a=0;a<o.length;){let s=o[a++].trim();1===i&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&n.push(s);const c=lf(o[a++]);n.length>t.length&&t.push(c)}return{type:i,mainBinding:r,cases:n,values:t}}function lf(e){if(!e)return[];let n=0;const t=[],i=[],r=/[{}]/g;let o;for(r.lastIndex=0;o=r.exec(e);){const s=o.index;if("}"==o[0]){if(t.pop(),0==t.length){const c=e.substring(n,s);g5.test(c)?i.push(wO(c)):i.push(c),n=s+1}}else{if(0==t.length){const c=e.substring(n,s);i.push(c),n=s+1}t.push("{")}}const a=e.substring(n);return i.push(a),i}function CO(e,n,t,i,r,o,a,s,c){const l=[],d=[],h=[];t.cases.push(a),t.create.push(l),t.remove.push(d),t.update.push(h);const g=function Kk(e){const n=new c9(e);return function l9(){try{return!!(new window.DOMParser).parseFromString(os(""),"text/html")}catch{return!1}}()?new s9(n):n}(to()).getInertBodyElement(s),k=function B0(e){return"content"in e&&function k9(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}(g)||g;return k?M5(e,n,t,i,r,l,d,h,k,o,c,0):0}function M5(e,n,t,i,r,o,a,s,c,l,d,h){let f=0,g=c.firstChild;for(;g;){const k=Uc(n,i,1,null);switch(g.nodeType){case Node.ELEMENT_NODE:const C=g,E=C.tagName.toLowerCase();if(H0.hasOwnProperty(E)){df(o,du,E,l,k),n.data[k]=E;const U=C.attributes;for(let Q=0;Q<U.length;Q++){const we=U.item(Q),Re=we.name.toLowerCase();we.value.match(hu)?e_.hasOwnProperty(Re)&&kl(s,we.value,k,we.name,0,j0[Re]?V0:null):EO(o,k,we)}const Z={kind:1,index:k,children:[]};e.push(Z),f=M5(Z.children,n,t,i,r,o,a,s,g,k,d,h+1)|f,b5(a,k,h)}break;case Node.TEXT_NODE:const I=g.textContent||"",S=I.match(hu);df(o,null,S?"":I,l,k),b5(a,k,h),S&&(f=kl(s,I,k,null,0,null)|f),e.push({kind:0,index:k});break;case Node.COMMENT_NODE:const z=pO.exec(g.textContent||"");if(z){const Z=d[parseInt(z[1],10)];df(o,uu,"",l,k),_5(e,n,i,r,l,Z,k),DO(a,k,h)}}g=g.nextSibling}return f}function b5(e,n,t){0===t&&e.push(n)}function DO(e,n,t){0===t&&(e.push(~n),e.push(n))}function df(e,n,t,i,r){null!==n&&e.push(n),e.push(t,r,function QI(e,n,t){return e|n<<17|t<<1}(0,i,r))}function EO(e,n,t){e.push(n<<1|1,t.name,t.value)}function C5(e,n,t=-1){const i=be(),r=O(),o=Y+e,a=Mi(i.consts,n),s=Dc();i.firstCreatePass&&function vO(e,n,t,i,r,o){const a=Dc(),s=[],c=[],l=[[]],d=[[]];r=function bO(e,n){if(function s4(e){return-1===e}(n))return k5(e);{const t=e.indexOf(`:${n}${vl}`)+2+n.toString().length,i=e.search(new RegExp(`${vl}\\/\\*\\d+:${n}${vl}`));return k5(e.substring(t,i))}}(r,o);const h=function mO(e){return e.replace(gO," ")}(r).split(yO);for(let f=0;f<h.length;f++){let g=h[f];if(1&f){const k=47===g.charCodeAt(0),C=g.charCodeAt(k?1:0),E=Y+Number.parseInt(g.substring(k?2:1));if(k)l.shift(),d.shift(),Vi(Dc(),!1);else{const I=KI(e,l[0],E);l.unshift([]),Vi(I,!0);const S={kind:2,index:E,children:[],type:35===C?0:1};d[0].push(S),d.unshift(S.children)}}else{const k=lf(g);for(let C=0;C<k.length;C++){let E=k[C];if(1&C){const I=E;if("object"!=typeof I)throw new Error(`Unable to parse ICU expression in "${r}" message.`);const z=m5(e,a,l[0],t,s,"",!0).index;_5(d[0],e,t,c,n,I,z)}else""!==E&&kO(d[0],e,a,l[0],s,c,t,E)}}}e.data[i]={create:s,update:c,ast:d[0],parentTNodeIndex:n}}(i,null===s?0:s.index,r,o,a,t),2===i.type?r[bt][J]|=32:r[J]|=32;const c=i.data[o],d=m_(i,s===r[fn]?null:s,r),h=s&&8&s.type?r[s.index]:null;(function cT(e,n,t,i){p4(e,n,t,i)})(r,o,s,t),function lO(e,n,t,i){const r=e[ce];for(let o=0;o<n.length;o++){const a=n[o++],l=(a&Wn.APPEND_EAGERLY)===Wn.APPEND_EAGERLY,d=a>>>Wn.SHIFT;let h=e[d],f=!1;null===h&&(h=e[d]=ml(e,d,n[o],(a&Wn.COMMENT)===Wn.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),f=xc()),l&&null!==t&&f&&Go(r,t,h,i,!1)}}(r,c.create,d,h),Nv(!0)}function Os(e,n,t){C5(e,n,t),function D5(){Nv(!1)}()}function uf(e){return function oO(e){e&&(yl|=1<<Math.min(gl,31)),gl++}(Ot(O(),Hi(),e)),uf}let S5=(e,n,t)=>{};function L(e,n,t,i){const r=O(),o=be(),a=We();return hf(o,r,r[ce],a,e,n,i),L}function hf(e,n,t,i,r,o,a){const s=n1(i),l=e.firstCreatePass&&z_(e),d=n[rt],h=B_(n);let f=!0;if(3&i.type||a){const C=En(i,n),E=a?a(C):C,I=h.length,S=a?U=>a(Ne(U[i.index])):i.index;let z=null;if(!a&&s&&(z=function HO(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const a=r[o];if(a===t&&r[o+1]===i){const s=n[$a],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,n,r,i.index)),null!==z)(z.__ngLastListenerFn__||z).__ngNextListenerFn__=o,z.__ngLastListenerFn__=o,f=!1;else{o=A5(i,n,d,o),S5(C,r,o);const U=t.listen(E,r,o);h.push(o,U),l&&l.push(r,S,I,I+1)}}else o=A5(i,n,d,o);const g=i.outputs;let k;if(f&&null!==g&&(k=g[r])){const C=k.length;if(C)for(let E=0;E<C;E+=2){const Z=n[k[E]][k[E+1]].subscribe(o),Q=h.length;h.push(o,Z),l&&l.push(r,i.index,Q,-(Q+1))}}}function T5(e,n,t,i){const r=W(null);try{return rr(6,n,t),!1!==t(i)}catch(o){return H1(e,o),!1}finally{rr(7,n,t),W(r)}}function A5(e,n,t,i){return function r(o){if(o===Function)return i;Gc(e.componentOffset>-1?ri(e.index,n):n,5);let s=T5(n,t,i,o),c=r.__ngNextListenerFn__;for(;c;)s=T5(n,t,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function R(e=1){return function RS(e){return(le.lFrame.contextLView=function wv(e,n){for(;e>0;)n=n[Wa],e--;return n}(e,le.lFrame.contextLView))[rt]}(e)}function jO(e,n){let t=null;const i=function Vx(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 r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?Qm(e,o,!0):Bx(i,o))return r}else t=r}return t}function ho(e){const n=O()[bt][fn];if(!n.projection){const i=n.projection=function Ud(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}(e?e.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){if(128!==o.type){const a=e?jO(o,e):0;null!==a&&(r[a]?r[a].projectionNext=o:i[a]=o,r[a]=o)}o=o.next}}}function po(e,n=0,t,i,r,o){const a=O(),s=be(),c=i?e+1:null;null!==c&&al(a,s,c,i,r,o,null,t);const l=Wo(s,Y+e,16,null,t||null);null===l.projection&&(l.projection=n),Jp();const h=!a[Sn]||Vo();null===a[bt][fn].projection[l.projection]&&null!==c?function BO(e,n,t){const i=Y+t,r=n.data[i],o=e[i],a=Ko(o,r.tView.ssrId);ds(o,ls(e,r,void 0,{dehydratedView:a}),0,Zo(r,a))}(a,s,c):h&&32&~l.flags&&function $9(e,n,t){x_(n[ce],0,n,t,K0(e,t,n),__(t.parent||n[fn],t,n))}(s,a,l)}function tn(e,n,t,i){!function F4(e,n,t,i){const r=be();if(r.firstCreatePass){const o=We();L4(r,new N4(n,t,i),o.index),function tA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),!(2&~t)&&(r.staticContentQueries=!0)}return R4(r,O(),t)}(e,n,t,i)}function na(e,n,t){!function P4(e,n,t){const i=be();return i.firstCreatePass&&(L4(i,new N4(e,n,t),-1),!(2&~n)&&(i.staticViewQueries=!0)),R4(i,O(),n)}(e,n,t)}function ft(e){const n=O(),t=be(),i=t0();s1(i+1);const r=F2(t,i);if(e.dirty&&function _S(e){return!(4&~e[J])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)e.reset([]);else{const o=V4(n,i);e.reset(o,pk),e.notifyOnChanges()}return!0}return!1}function yt(){return function P2(e,n){return e[Ir].queries[n].queryList}(O(),t0())}function gt(e){return Lo(function Sv(){return le.lFrame.contextLView}(),Y+e)}function _(e,n=""){const t=O(),i=be(),r=e+Y,o=i.firstCreatePass?Wo(i,r,1,n,null):i.data[r],a=K5(i,t,o,n,e);t[r]=a,xc()&&P1(i,t,a,o),Vi(o,!1)}let K5=(e,n,t,i,r)=>(or(!0),$0(n[ce],i));function wi(e){return Ci("",e,""),wi}function Ci(e,n,t){const i=O(),r=function ws(e,n,t,i){return Ot(e,Hi(),t)?n+ge(t)+i:me}(i,e,n,t);return r!==me&&Pr(i,yn(),r),Ci}function pu(e,n,t,i,r,o,a){const s=O(),c=Ds(s,e,n,t,i,r,o,a);return c!==me&&Pr(s,yn(),c),pu}function he(e,n,t){z4(n)&&(n=n());const i=O();return Ot(i,Hi(),n)&&qn(be(),ot(),i,e,n,i[ce],t,!1),he}function ye(e,n){const t=z4(e);return t&&e.set(n),t}function pe(e,n){const t=O(),i=be(),r=We();return hf(i,t,t[ce],r,e,n),pe}function yf(e,n,t,i,r){if(e=re(e),Array.isArray(e))for(let o=0;o<e.length;o++)yf(e[o],n,t,i,r);else{const o=be(),a=O(),s=We();let c=Ro(e)?e:re(e.provide);const l=av(e),d=1048575&s.providerIndexes,h=s.directiveStart,f=s.providerIndexes>>20;if(Ro(e)||!e.multi){const g=new Sc(l,r,N),k=mf(c,n,r?d:d+f,h);-1===k?(u0(h1(s,a),o,c),gf(o,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(g),a.push(g)):(t[k]=g,a[k]=g)}else{const g=mf(c,n,d+f,h),k=mf(c,n,d,d+f),E=k>=0&&t[k];if(r&&!E||!r&&!(g>=0&&t[g])){u0(h1(s,a),o,c);const I=function sR(e,n,t,i,r){const o=new Sc(e,t,N);return o.multi=[],o.index=n,o.componentProviders=0,a3(o,r,i&&!t),o}(r?aR:oR,t.length,r,i,l);!r&&E&&(t[k].providerFactory=I),gf(o,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(I),a.push(I)}else gf(o,e,g>-1?g:k,a3(t[r?k:g],l,!r&&i));!r&&i&&E&&t[k].componentProviders++}}}function gf(e,n,t,i){const r=Ro(n),o=function Kx(e){return!!e.useClass}(n);if(r||o){const c=(o?re(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(t);-1===d?l.push(t,[i,c]):l[d+1].push(i,c)}else l.push(t,c)}}}function a3(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function mf(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function oR(e,n,t,i){return vf(this.multi,[])}function aR(e,n,t,i){const r=this.multi;let o;if(this.providerFactory){const a=this.providerFactory.componentProviders,s=Bo(t,t[V],this.providerFactory.index,i);o=s.slice(0,a),vf(r,o);for(let c=a;c<s.length;c++)o.push(s[c])}else o=[],vf(r,o);return o}function vf(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Je(e,n=[]){return t=>{t.providersResolver=(i,r)=>function rR(e,n,t){const i=be();if(i.firstCreatePass){const r=Li(e);yf(t,i.data,i.blueprint,r,!0),yf(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}let cR=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Op(0,t.type),r=i.length>0?J1([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=j({token:e,providedIn:"environment",factory:()=>new e(ne(Mn))})}}return e})();function fe(e){Tn("NgStandalone"),e.getStandaloneInjector=n=>n.get(cR).getOrCreateStandaloneInjector(e)}function fo(e,n,t,i){return l3(O(),In(),e,n,t,i)}function _l(e,n,t,i,r){return function d3(e,n,t,i,r,o,a){const s=n+t;return Jo(e,s,r,o)?dr(e,s+2,a?i.call(a,r,o):i(r,o)):Ml(e,s+2)}(O(),In(),e,n,t,i,r)}function Ml(e,n){const t=e[n];return t===me?void 0:t}function l3(e,n,t,i,r,o){const a=n+t;return Ot(e,a,r)?dr(e,a+1,o?i.call(o,r):i(r)):Ml(e,a+1)}function _f(e,n){const t=be();let i;const r=e+Y;t.firstCreatePass?(i=function kR(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=Oo(i.type)),s=jn(N);try{const c=u1(!1),l=o();return u1(c),function ff(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,O(),r,l),l}finally{jn(s)}}function Mf(e,n,t){const i=e+Y,r=O(),o=Lo(r,i);return function bl(e,n){return e[V].data[n].pure}(r,i)?l3(r,In(),n,o.transform,t,o):o.transform(t)}function Ut(e,n){return B1(e,n)}let I3=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const R3=new $(""),vu=new $("");let If,Sf=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,If||(function gP(e){If=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ve.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}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(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),t()},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static{this.\u0275fac=function(i){return new(i||e)(ne(ve),ne(Ef),ne(vu))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})(),Ef=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return If?.findTestabilityInTree(this,t,i)??null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function xl(e){return!!e&&"function"==typeof e.then}function P3(e){return!!e&&"function"==typeof e.subscribe}const Tf=new $("");let F3=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=w(Tf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(xl(o))t.push(o);else if(P3(o)){const a=new Promise((s,c)=>{o.subscribe({complete:s,error:c})});t.push(a)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const ku=new $("");let Di=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(vE),this.afterRenderManager=w(pM),this.zonelessEnabled=w(el),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Ye,this.afterTick=new Ye,this.componentTypes=[],this.components=[],this.isStable=w(zo).hasPendingTasks.pipe(Ee(t=>!t)),this._injector=w(Mn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof _4;if(!this._injector.get(F3).done)throw!r&&function Jr(e){const n=De(e)||Kt(e)||pn(e);return null!==n&&n.standalone}(t),new F(405,!1);let a;a=r?t:this._injector.get(W1).resolveComponentFactory(t),this.componentTypes.push(a.componentType);const s=function mP(e){return e.isBoundToModule}(a)?void 0:this._injector.get(Qo),l=a.create(Ve.NULL,[],i||a.selector,s),d=l.location.nativeElement,h=l.injector.get(R3,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),_u(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new F(101,!1);const t=W(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,W(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(D2,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;0!==this.dirtyFlags&&i++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const i=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)_P(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>i1(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;_u(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(ku,[]);[...this._bootstrapListeners,...i].forEach(r=>r(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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>_u(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new F(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _u(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function _P(e,n,t,i){(t||i1(e))&&j1(e,n,t&&!i?0:1)}class MP{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let j3=(()=>{class e{compileModuleSync(t){return new j2(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=oi(_n(t).declarations).reduce((a,s)=>{const c=De(s);return c&&a.push(new il(c)),a},[]);return new MP(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),CP=(()=>{class e{constructor(){this.zone=w(ve),this.changeDetectionScheduler=w(hs),this.applicationRef=w(Di)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Af({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new ve({...Nf(),scheduleInRootZone:t}),[{provide:ve,useFactory:e},{provide:Oi,multi:!0,useFactory:()=>{const i=w(CP,{optional:!0});return()=>i.initialize()}},{provide:Oi,multi:!0,useFactory:()=>{const i=w(xP);return()=>{i.initialize()}}},!0===n?{provide:k4,useValue:!0}:[],{provide:C2,useValue:t??ak}]}function Nf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let xP=(()=>{class e{constructor(){this.subscription=new cn,this.initialized=!1,this.zone=w(ve),this.pendingTasks=w(zo)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ve.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Sl=(()=>{class e{constructor(){this.appRef=w(Di),this.taskService=w(zo),this.ngZone=w(ve),this.zonelessEnabled=w(el),this.disableScheduling=w(k4,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new cn,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(m1):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(C2,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof v0||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const i=this.useMicrotaskScheduler?ck:sk;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>i(()=>this.tick())):this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(m1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!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(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ck(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}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{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Lr=new $("",{providedIn:"root",factory:()=>w(Lr,xe.Optional|xe.SkipSelf)||function SP(){return typeof $localize<"u"&&$localize.locale||lu}()}),Rf=new $("");function bu(e){return!!e.platformInjector}let yo=null;let Rn=(()=>{class e{static{this.__NG_ELEMENT_ID__=LP}}return e})();function LP(e){return function VP(e,n,t){if(Fo(e)&&!t){const i=ri(e.index,n);return new $c(i,i)}return 175&e.type?new $c(n[bt],n):null}(We(),O(),!(16&~e))}class eb{constructor(){}supports(n){return X1(n)}create(n){return new UP(n)}}const zP=(e,n)=>n;class UP{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||zP}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const a=!i||t&&t.currentIndex<nb(i,r,o)?t:i,s=nb(a,r,o),c=a.currentIndex;if(a===i)r--,i=i._nextRemoved;else if(t=t._next,null==a.previousIndex)r++;else{o||(o=[]);const l=s-r,d=c-r;if(l!=d){for(let f=0;f<l;f++){const g=f<o.length?o[f]:o[f]=0,k=g+f;d<=k&&k<l&&(o[f]=g+1)}o[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=[]),!X1(n))throw new F(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,a,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)o=n[s],a=this._trackByFn(s,o),null!==t&&Object.is(t.trackById,a)?(i&&(t=this._verifyReinsertion(t,o,a,s)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,a,s),i=!0),t=t._next}else r=0,function CA(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Symbol.iterator]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,s=>{a=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,a)?(i&&(t=this._verifyReinsertion(t,s,a,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,a,r),i=!0),t=t._next,r++}),this.length=r;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,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new qP(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new tb),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 tb),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 qP{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class GP{constructor(){this._head=null,this._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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class tb{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new GP,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.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 nb(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}function rb(){return new jf([new eb])}let jf=(()=>{class e{static{this.\u0275prov=j({token:e,providedIn:"root",factory:rb})}constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||rb()),deps:[[e,new Bd,new mc]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new F(901,!1)}}return e})(),KP=(()=>{class e{constructor(t){}static{this.\u0275fac=function(i){return new(i||e)(ne(Di))}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();function cF(e){try{const{rootComponent:n,appProviders:t,platformProviders:i}=e,r=function FP(e=[]){if(yo)return yo;const n=function Z3(e=[],n){return Ve.create({name:n,providers:[{provide:Fp,useValue:"platform"},{provide:Rf,useValue:new Set([()=>yo=null])},...e]})}(e);return yo=n,function L3(){!function tp(e){wd=e}(()=>{throw new F(600,!1)})}(),function Y3(e){e.get(Ok,null)?.forEach(t=>t())}(n),n}(i),o=[Af({}),{provide:hs,useExisting:Sl},...t||[]];return function G3(e){const n=bu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(ve);return t.run(()=>{bu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(sr,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),bu(e)){const o=()=>n.destroy(),a=e.platformInjector.get(Rf);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else e.moduleRef.onDestroy(()=>{_u(e.allPlatformModules,e.moduleRef),r.unsubscribe()});return function kP(e,n,t){try{const i=t();return xl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(i,t,()=>{const o=n.get(F3);return o.runInitializers(),o.donePromise.then(()=>{if(function iO(e){"string"==typeof e&&(l5=e.toLowerCase().replace(/_/g,"-"))}(n.get(Lr,lu)||lu),bu(e)){const s=n.get(Di);return void 0!==e.rootComponent&&s.bootstrap(e.rootComponent),s}return function OP(e,n){const t=e.injector.get(Di);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new F(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new oM({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}const Mb=new $("");function Fs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Al(e,n){Tn("NgSignals");const t=function ep(e){const n=Object.create(Md);n.computation=e;const t=()=>{if(ae(n),At(n),n.value===Ta)throw n.error;return n.value};return t[Te]=n,t}(e);return n?.equal&&(t[Te].equal=n.equal),t}function yr(e){const n=W(null);try{return e()}finally{W(n)}}function qf(e,n){const t=De(e),i=n.elementInjector||Kd();return new il(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function go(e){return this instanceof go?(this.v=e,this):new go(e)}function Rb(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 Zf(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=e[o](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Yf=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Pb(e){return Se(e?.then)}function Fb(e){return Se(e[ap])}function Lb(e){return Symbol.asyncIterator&&Se(e?.[Symbol.asyncIterator])}function Vb(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 Hb=function iL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function jb(e){return Se(e?.[Hb])}function Bb(e){return function Ob(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},s("next"),s("throw"),s("return",function a(g){return function(k){return Promise.resolve(k).then(g,h)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(g,k){i[g]&&(r[g]=function(C){return new Promise(function(E,I){o.push([g,C,E,I])>1||c(g,C)})},k&&(r[g]=k(r[g])))}function c(g,k){try{!function l(g){g.value instanceof go?Promise.resolve(g.value.v).then(d,h):f(o[0][2],g)}(i[g](k))}catch(C){f(o[0][3],C)}}function d(g){c("next",g)}function h(g){c("throw",g)}function f(g,k){g(k),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield go(t.read());if(r)return yield go(void 0);yield yield go(i)}}finally{t.releaseLock()}})}function zb(e){return Se(e?.getReader)}function gn(e){if(e instanceof ut)return e;if(null!=e){if(Fb(e))return function rL(e){return new ut(n=>{const t=e[ap]();if(Se(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Yf(e))return function oL(e){return new ut(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(Pb(e))return function aL(e){return new ut(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Xn)})}(e);if(Lb(e))return Ub(e);if(jb(e))return function sL(e){return new ut(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(zb(e))return function cL(e){return Ub(Bb(e))}(e)}throw Vb(e)}function Ub(e){return new ut(n=>{(function lL(e,n){var t,i,r,o;return function Ab(e,n,t,i){return new(t||(t=Promise))(function(o,a){function s(d){try{l(i.next(d))}catch(h){a(h)}}function c(d){try{l(i.throw(d))}catch(h){a(h)}}function l(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(a){a(o)})}(d.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Rb(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Vr(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function qb(e,n=0){return Vt((t,i)=>{t.subscribe(ht(i,r=>Vr(i,e,()=>i.next(r),n),()=>Vr(i,e,()=>i.complete(),n),r=>Vr(i,e,()=>i.error(r),n)))})}function Gb(e,n=0){return Vt((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function $b(e,n){if(!e)throw new Error("Iterable cannot be null");return new ut(t=>{Vr(t,n,()=>{const i=e[Symbol.asyncIterator]();Vr(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function rn(e,n){return n?function yL(e,n){if(null!=e){if(Fb(e))return function dL(e,n){return gn(e).pipe(Gb(n),qb(n))}(e,n);if(Yf(e))return function hL(e,n){return new ut(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(Pb(e))return function uL(e,n){return gn(e).pipe(Gb(n),qb(n))}(e,n);if(Lb(e))return $b(e,n);if(jb(e))return function pL(e,n){return new ut(t=>{let i;return Vr(t,n,()=>{i=e[Hb](),Vr(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void t.error(a)}o?t.complete():t.next(r)},0,!0)}),()=>Se(i?.return)&&i.return()})}(e,n);if(zb(e))return function fL(e,n){return $b(Bb(e),n)}(e,n)}throw Vb(e)}(e,n):gn(e)}function Wb(e){return e&&Se(e.schedule)}function Kf(e){return e[e.length-1]}function Nu(e){return Se(Kf(e))?e.pop():void 0}function Nl(e){return Wb(Kf(e))?e.pop():void 0}function ie(...e){return rn(e,Nl(e))}const{isArray:mL}=Array,{getPrototypeOf:vL,prototype:kL,keys:_L}=Object;function Zb(e){if(1===e.length){const n=e[0];if(mL(n))return{args:n,keys:null};if(function ML(e){return e&&"object"==typeof e&&vL(e)===kL}(n)){const t=_L(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:bL}=Array;function Qf(e){return Ee(n=>function wL(e,n){return bL(n)?e(...n):e(n)}(e,n))}function Yb(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function Jf(...e){const n=Nl(e),t=Nu(e),{args:i,keys:r}=Zb(e);if(0===i.length)return rn([],n);const o=new ut(function CL(e,n,t=Dr){return i=>{Kb(n,()=>{const{length:r}=e,o=new Array(r);let a=r,s=r;for(let c=0;c<r;c++)Kb(n,()=>{const l=rn(e[c],n);let d=!1;l.subscribe(ht(i,h=>{o[c]=h,d||(d=!0,s--),s||i.next(t(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>Yb(r,a):Dr));return t?o.pipe(Qf(t)):o}function Kb(e,n,t){e?Vr(t,e,n):n()}const Ou=Ji(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function on(e,n,t=1/0){return Se(n)?on((i,r)=>Ee((o,a)=>n(i,o,r,a))(gn(e(i,r))),t):("number"==typeof n&&(t=n),Vt((i,r)=>function DL(e,n,t,i,r,o,a,s){const c=[];let l=0,d=0,h=!1;const f=()=>{h&&!c.length&&!l&&n.complete()},g=C=>l<i?k(C):c.push(C),k=C=>{o&&n.next(C),l++;let E=!1;gn(t(C,d++)).subscribe(ht(n,I=>{r?.(I),o?g(I):n.next(I)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l<i;){const I=c.shift();a?Vr(n,a,()=>k(I)):k(I)}f()}catch(I){n.error(I)}}))};return e.subscribe(ht(n,g,()=>{h=!0,f()})),()=>{s?.()}}(i,r,e,t)))}function Ls(e=1/0){return on(Dr,e)}function Ol(...e){return function xL(){return Ls(1)}()(rn(e,Nl(e)))}function Qb(e){return new ut(n=>{gn(e()).subscribe(n)})}function Ru(e,n){const t=Se(e)?e:()=>e,i=r=>r.error(t());return new ut(n?r=>n.schedule(i,0,r):i)}const di=new ut(e=>e.complete());function Xf(){return Vt((e,n)=>{let t=null;e._refCount++;const i=ht(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class Jb extends ut{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,dm(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new cn;const t=this.getSubject();n.add(this.source.subscribe(ht(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=cn.EMPTY)}return n}refCount(){return Xf()(this)}}let Xb=null;function mo(){return Xb}class IL{}const Ct=new $("");let ey=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w(AL),providedIn:"platform"})}}return e})();const TL=new $("");let AL=(()=>{class e extends ey{constructor(){super(),this._doc=w(Ct),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mo().getBaseHref(this._doc)}onPopState(t){const i=mo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=mo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.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,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function ty(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function ew(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Hr(e){return e&&"?"!==e[0]?"?"+e:e}let vo=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w(nw),providedIn:"root"})}}return e})();const tw=new $("");let nw=(()=>{class e extends vo{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(Ct).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 ty(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Hr(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+Hr(o));this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+Hr(o));this._platformLocation.replaceState(t,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(i){return new(i||e)(ne(ey),ne(tw,8))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),iw=(()=>{class e extends vo{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=ty(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let a=this.prepareExternalUrl(r+Hr(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){let a=this.prepareExternalUrl(r+Hr(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(i){return new(i||e)(ne(ey),ne(tw,8))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})(),Rl=(()=>{class e{constructor(t){this._subject=new K,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function RL(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(ew(rw(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Hr(i))}normalize(t){return e.stripTrailingSlash(function OL(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,rw(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hr(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Hr(i)),r)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static{this.normalizeQueryParams=Hr}static{this.joinWithSlash=ty}static{this.stripTrailingSlash=ew}static{this.\u0275fac=function(i){return new(i||e)(ne(vo))}}static{this.\u0275prov=j({token:e,factory:()=>function NL(){return new Rl(ne(vo))}(),providedIn:"root"})}}return e})();function rw(e){return e.replace(/\/index.html$/,"")}var Pu=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Pu||{});const qt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function xi(e,n){const t=Nn(e),i=t[st.NumberSymbols][n];if(typeof i>"u"){if(n===qt.CurrencyDecimal)return t[st.NumberSymbols][qt.Decimal];if(n===qt.CurrencyGroup)return t[st.NumberSymbols][qt.Group]}return i}const aV=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ly(e){const n=parseInt(e);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+e);return n}class _V{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}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 $u=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 i=this._viewContainer;t.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new _V(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const s=i.get(o);i.move(s,a),gw(s,r)}});for(let r=0,o=i.length;r<o;r++){const s=i.get(r).context;s.index=r,s.count=o,s.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{gw(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static{this.\u0275fac=function(i){return new(i||e)(N(Gn),N(St),N(jf))}}static{this.\u0275dir=q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function gw(e,n){e.context.$implicit=n.item}let Fn=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new MV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){mw("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){mw("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static{this.\u0275fac=function(i){return new(i||e)(N(Gn),N(St))}}static{this.\u0275dir=q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class MV{constructor(){this.$implicit=null,this.ngIf=null}}function mw(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Yt(n)}'.`)}class hy{constructor(n,t){this._viewContainerRef=n,this._templateRef=t,this._created=!1}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 Fl=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}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 i=t===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return e})(),py=(()=>{class e{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new hy(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(i){return new(i||e)(N(Gn),N(St),N(Fl,9))}}static{this.\u0275dir=q({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return e})(),vw=(()=>{class e{constructor(t,i,r){r._addDefault(new hy(t,i))}static{this.\u0275fac=function(i){return new(i||e)(N(Gn),N(St),N(Fl,9))}}static{this.\u0275dir=q({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return e})(),ra=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,i,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,r),get:(t,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||e)(N(Gn))}}static{this.\u0275dir=q({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[zt]})}}return e})();function Ui(e,n){return new F(2100,!1)}class CV{createSubscription(n,t){return yr(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){yr(()=>n.unsubscribe())}}class DV{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const xV=new DV,SV=new CV;let _w=(()=>{class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,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,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(xl(t))return xV;if(P3(t))return SV;throw Ui()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||e)(N(Rn,16))}}static{this.\u0275pipe=zn({name:"async",type:e,pure:!1,standalone:!0})}}return e})(),bw=(()=>{class e{constructor(t){this._locale=t}transform(t,i,r){if(!function fy(e){return!(null==e||""===e||e!=e)}(t))return null;r||=this._locale;try{return function uV(e,n,t){return function sy(e,n,t,i,r,o,a=!1){let s="",c=!1;if(isFinite(e)){let l=function fV(e){let i,r,o,a,s,n=Math.abs(e)+"",t=0;for((r=n.indexOf("."))>-1&&(n=n.replace(".","")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;"0"===n.charAt(o);o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;"0"===n.charAt(s);)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>22&&(i=i.splice(0,21),t=r-1,r=1),{digits:i,exponent:t,integerLen:r}}(e);a&&(l=function pV(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,f=n.maxFrac;if(o){const S=o.match(aV);if(null===S)throw new Error(`${o} is not a valid digit info`);const z=S[1],U=S[3],Z=S[5];null!=z&&(d=ly(z)),null!=U&&(h=ly(U)),null!=Z?f=ly(Z):null!=U&&h>f&&(f=h)}!function yV(e,n,t){if(n>t)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${t}).`);let i=e.digits,r=i.length-e.integerLen;const o=Math.min(Math.max(n,r),t);let a=o+e.integerLen,s=i[a];if(a>0){i.splice(Math.max(e.integerLen,a));for(let h=a;h<i.length;h++)i[h]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,a=o+1),i[0]=0;for(let h=1;h<a;h++)i[h]=0}if(s>=5)if(a-1<0){for(let h=0;h>a;h--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[a-1]++;for(;r<Math.max(0,o);r++)i.push(0);let c=0!==o;const l=n+e.integerLen,d=i.reduceRight(function(h,f,g,k){return k[g]=(f+=h)<10?f:f-10,c&&(0===k[g]&&g>=l?k.pop():c=!1),f>=10?1:0},0);d&&(i.unshift(d),e.integerLen++)}(l,h,f);let g=l.digits,k=l.integerLen;const C=l.exponent;let E=[];for(c=g.every(S=>!S);k<d;k++)g.unshift(0);for(;k<0;k++)g.unshift(0);k>0?E=g.splice(k,g.length):(E=g,g=[0]);const I=[];for(g.length>=n.lgSize&&I.unshift(g.splice(-n.lgSize,g.length).join(""));g.length>n.gSize;)I.unshift(g.splice(-n.gSize,g.length).join(""));g.length&&I.unshift(g.join("")),s=I.join(xi(t,i)),E.length&&(s+=xi(t,r)+E.join("")),C&&(s+=xi(t,qt.Exponential)+"+"+C)}else s=xi(t,qt.Infinity);return s=e<0&&!c?n.negPre+s+n.negSuf:n.posPre+s+n.posSuf,s}(e,function cy(e,n="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.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,o){const d=r.length-t.posPre.length-t.posSuf.length,h=o.indexOf("#");t.negPre=o.substring(0,h).replace(/'/g,""),t.negSuf=o.slice(h+d).replace(/'/g,"")}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}(function ny(e,n){return Nn(e)[st.NumberFormats][n]}(n,Pu.Percent),xi(n,qt.MinusSign)),n,qt.Group,qt.Decimal,t,!0).replace(new RegExp("%","g"),xi(n,qt.PercentSign))}(function yy(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}(t),r,i)}catch(o){throw Ui()}}static{this.\u0275fac=function(i){return new(i||e)(N(Lr,16))}}static{this.\u0275pipe=zn({name:"percent",type:e,pure:!0,standalone:!0})}}return e})();let qV=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();const ww="browser";function Cw(e){return"server"===e}let WV=(()=>{class e{static{this.\u0275prov=j({token:e,providedIn:"root",factory:()=>function $V(e){return e===ww}(w(no))?new ZV(w(Ct),window):new KV})}}return e})();class ZV{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function YV(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 i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class KV{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}function qi(e,n){return Vt((t,i)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&i.complete();t.subscribe(ht(i,c=>{r?.unsubscribe();let l=0;const d=o++;gn(e(c,d)).subscribe(r=ht(i,h=>i.next(n?n(c,h,d,l++):h),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Ei(e){return e<=0?()=>di:Vt((n,t)=>{let i=0;n.subscribe(ht(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function ln(e,n){return Vt((t,i)=>{let r=0;t.subscribe(ht(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Ku(e){return Vt((n,t)=>{let i=!1;n.subscribe(ht(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function Pw(e=DH){return Vt((n,t)=>{let i=!1;n.subscribe(ht(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function DH(){return new Ou}function oa(e,n){const t=arguments.length>=2;return i=>i.pipe(e?ln((r,o)=>e(r,o,i)):Dr,Ei(1),t?Ku(n):Pw(()=>new Ou))}function Hl(e,n){return Se(n)?on(e,n,1):on(e,1)}function dn(e,n,t){const i=Se(e)||n||t?{next:e,error:n,complete:t}:e;return i?Vt((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;r.subscribe(ht(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):Dr}function js(e){return Vt((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ht(t,void 0,void 0,a=>{o=gn(e(a,js(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function ky(e){return e<=0?()=>di:Vt((n,t)=>{let i=[];n.subscribe(ht(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function Fw(e){return Ee(()=>e)}function _y(e){return Vt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function mn(e){return Vt((n,t)=>{gn(e).subscribe(ht(t,()=>t.complete(),Cr)),!t.closed&&n.subscribe(t)})}class IH extends IL{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class My extends IH{static makeCurrent(){!function EL(e){Xb??=e}(new My)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}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 TH(){return jl=jl||document.querySelector("base"),jl?jl.getAttribute("href"):null}();return null==t?null:function AH(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){jl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function mV(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let jl=null,OH=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();const Qu=new $("");let Lw=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new F(5101,!1);return this._eventNameToPlugin.set(t,i),i}static{this.\u0275fac=function(i){return new(i||e)(ne(Qu),ne(ve))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();class by{constructor(n){this._doc=n}}const wy="ng-app-id";let Vw=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Cw(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${wy}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(wy),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(wy,this.appId),t.appendChild(a),a}}addStyleToHost(t,i){const r=this.getStyleElement(t,i),o=this.styleRef,a=o.get(i)?.elements;a?a.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||e)(ne(Ct),ne(ns),ne(Rk,8),ne(no))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();const Cy={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"},Dy=/%COMP%/g,LH=new $("",{providedIn:"root",factory:()=>!0});function jw(e,n){return n.map(t=>t.replace(Dy,e))}let Bw=(()=>{class e{constructor(t,i,r,o,a,s,c,l=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Cw(s),this.defaultRenderer=new xy(t,a,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ri.ShadowDom&&(i={...i,encapsulation:Ri.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof Uw?r.applyToHost(t):r instanceof Sy&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.doc,s=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Ri.Emulated:o=new Uw(c,l,i,this.appId,d,a,s,h);break;case Ri.ShadowDom:return new BH(c,l,t,i,a,s,this.nonce,h);default:o=new Sy(c,l,i,d,a,s,h)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||e)(ne(Lw),ne(Vw),ne(ns),ne(LH),ne(Ct),ne(no),ne(ve),ne(Rk))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();class xy{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Cy[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(zw(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(zw(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){t.remove()}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new F(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=Cy[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Cy[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(ro.DashCase|ro.Important)?n.style.setProperty(t,i,r&ro.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&ro.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=mo().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function zw(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class BH extends xy{constructor(n,t,i,r,o,a,s,c){super(n,o,a,c),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=jw(r.id,r.styles);for(const d of l){const h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sy extends xy{constructor(n,t,i,r,o,a,s,c){super(n,o,a,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?jw(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Uw extends Sy{constructor(n,t,i,r,o,a,s,c){const l=r+"-"+i.id;super(n,t,i,o,a,s,c,l),this.contentAttr=function VH(e){return"_ngcontent-%COMP%".replace(Dy,e)}(l),this.hostAttr=function HH(e){return"_nghost-%COMP%".replace(Dy,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let zH=(()=>{class e extends by{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||e)(ne(Ct))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})(),UH=(()=>{class e extends by{constructor(t){super(t),this.delegate=w(Mb,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,i,r){return this.delegate.addEventListener(t,i,r)}removeEventListener(t,i,r){return this.delegate.removeEventListener(t,i,r)}static{this.\u0275fac=function(i){return new(i||e)(ne(Ct))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();const qw=["alt","control","meta","shift"],qH={"\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"},GH={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let $H=(()=>{class e extends by{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),a=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mo().onAndCancel(t,o.domEventName,a))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),qw.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(t,i){let r=qH[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),qw.forEach(a=>{a!==r&&(0,GH[a])(t)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(i){return new(i||e)(ne(Ct))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();function Gw(e){return{appProviders:[...Ww,...e?.providers??[]],platformProviders:QH}}const QH=[{provide:no,useValue:ww},{provide:Ok,useValue:function ZH(){My.makeCurrent()},multi:!0},{provide:Ct,useFactory:function KH(){return function jE(e){C0=e}(document),document},deps:[]}],JH=new $(""),$w=[{provide:vu,useClass:class NH{addToWindow(n){pt.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new F(5103,!1);return o},pt.getAllAngularTestabilities=()=>n.getAllTestabilities(),pt.getAllAngularRootElements=()=>n.getAllRootElements(),pt.frameworkStabilizers||(pt.frameworkStabilizers=[]),pt.frameworkStabilizers.push(i=>{const r=pt.getAllAngularTestabilities();let o=r.length;const a=function(){o--,0==o&&i()};r.forEach(s=>{s.whenStable(a)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?mo().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:R3,useClass:Sf,deps:[ve,Ef,vu]},{provide:Sf,useClass:Sf,deps:[ve,Ef,vu]}],Ww=[{provide:Fp,useValue:"root"},{provide:sr,useFactory:function YH(){return new sr},deps:[]},{provide:Qu,useClass:zH,multi:!0,deps:[Ct,ve,no]},{provide:Qu,useClass:$H,multi:!0,deps:[Ct]},{provide:Qu,useClass:UH,multi:!0},Bw,Vw,Lw,{provide:D2,useExisting:Bw},{provide:class QV{},useClass:OH,deps:[]},[]];let XH=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ns,useValue:t.appId}]}}static{this.\u0275fac=function(i){return new(i||e)(ne(JH,12))}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({providers:[...Ww,...$w],imports:[qV,KP]})}}return e})(),ej=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static{this.\u0275fac=function(i){return new(i||e)(ne(Ct))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const ke="primary",Bl=Symbol("RouteTitle");class rj{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 Bs(e){return new rj(e)}function oj(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let o=0;o<i.length;o++){const a=i[o],s=e[o];if(":"===a[0])r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function gr(e,n){const t=e?Ey(e):void 0,i=n?Ey(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let o=0;o<t.length;o++)if(r=t[o],!Kw(e[r],n[r]))return!1;return!0}function Ey(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Kw(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,o)=>i[o]===r)}return e===n}function Qw(e){return e.length>0?e[e.length-1]:null}function ko(e){return function PF(e){return!!e&&(e instanceof ut||Se(e.lift)&&Se(e.subscribe))}(e)?e:xl(e)?rn(Promise.resolve(e)):ie(e)}const sj={exact:function e8(e,n,t){if(!ca(e.segments,n.segments)||!Xu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!e8(e.children[i],n.children[i],t))return!1;return!0},subset:t8},Jw={exact:function cj(e,n){return gr(e,n)},subset:function lj(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Kw(e[t],n[t]))},ignored:()=>!0};function Xw(e,n,t){return sj[t.paths](e.root,n.root,t.matrixParams)&&Jw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function t8(e,n,t){return n8(e,n,n.segments,t)}function n8(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!ca(r,t)||n.hasChildren()||!Xu(r,t,i))}if(e.segments.length===t.length){if(!ca(e.segments,t)||!Xu(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!t8(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(ca(e.segments,r)&&Xu(e.segments,r,i)&&e.children[ke])&&n8(e.children[ke],n,o,i)}}function Xu(e,n,t){return n.every((i,r)=>Jw[t](e[r].parameters,i.parameters))}class sa{constructor(n=new Qe([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Bs(this.queryParams),this._queryParamMap}toString(){return hj.serialize(this)}}class Qe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return th(this)}}class zl{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Bs(this.parameters),this._parameterMap}toString(){return o8(this)}}function ca(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let zs=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>new eh,providedIn:"root"})}}return e})();class eh{parse(n){const t=new wj(n);return new sa(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ul(n.root,!0)}`,i=function yj(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${nh(t)}=${nh(r)}`).join("&"):`${nh(t)}=${nh(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function pj(e){return encodeURI(e)}(n.fragment)}`:""}`}}const hj=new eh;function th(e){return e.segments.map(n=>o8(n)).join("/")}function Ul(e,n){if(!e.hasChildren())return th(e);if(n){const t=e.children[ke]?Ul(e.children[ke],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==ke&&i.push(`${r}:${Ul(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function uj(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===ke&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==ke&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===ke?[Ul(e.children[ke],!1)]:[`${r}:${Ul(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ke]?`${th(e)}/${t[0]}`:`${th(e)}/(${t.join("//")})`}}function i8(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nh(e){return i8(e).replace(/%3B/gi,";")}function Iy(e){return i8(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ih(e){return decodeURIComponent(e)}function r8(e){return ih(e.replace(/\+/g,"%20"))}function o8(e){return`${Iy(e.path)}${function fj(e){return Object.entries(e).map(([n,t])=>`;${Iy(n)}=${Iy(t)}`).join("")}(e.parameters)}`}const gj=/^[^\/()?;#]+/;function Ty(e){const n=e.match(gj);return n?n[0]:""}const mj=/^[^\/()?;=#]+/,kj=/^[^=?&#]+/,Mj=/^[^&#]+/;class wj{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qe([],{}):new Qe([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[ke]=new Qe(n,t)),i}parseSegment(){const n=Ty(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(n),new zl(ih(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function vj(e){const n=e.match(mj);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=Ty(this.remaining);r&&(i=r,this.capture(i))}n[ih(t)]=ih(i)}parseQueryParam(n){const t=function _j(e){const n=e.match(kj);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const a=function bj(e){const n=e.match(Mj);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const r=r8(t),o=r8(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Ty(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new F(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ke);const a=this.parseChildren();t[o]=1===Object.keys(a).length?a[ke]:new Qe([],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 F(4011,!1)}}function a8(e){return e.segments.length>0?new Qe([],{[ke]:e}):e}function s8(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=s8(r);if(i===ke&&0===o.segments.length&&o.hasChildren())for(const[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function Cj(e){if(1===e.numberOfChildren&&e.children[ke]){const n=e.children[ke];return new Qe(e.segments.concat(n.segments),n.children)}return e}(new Qe(e.segments,n))}function la(e){return e instanceof sa}function c8(e){let n;const r=a8(function t(o){const a={};for(const c of o.children){const l=t(c);a[c.outlet]=l}const s=new Qe(o.url,a);return o===e&&(n=s),s}(e.root));return n??r}function l8(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return Ay(r,r,r,t,i);const o=function xj(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new u8(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return Object.entries(o.outlets).forEach(([c,l])=>{s[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new u8(t,n,i)}(n);if(o.toRoot())return Ay(r,r,new Qe([],{}),t,i);const a=function Sj(e,n,t){if(e.isAbsolute)return new oh(n,!0,0);if(!t)return new oh(n,!1,NaN);if(null===t.parent)return new oh(t,!0,0);const i=rh(e.commands[0])?0:1;return function Ej(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new F(4005,!1);r=i.segments.length}return new oh(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),s=a.processChildren?Gl(a.segmentGroup,a.index,o.commands):h8(a.segmentGroup,a.index,o.commands);return Ay(r,a.segmentGroup,s,t,i)}function rh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ql(e){return"object"==typeof e&&null!=e&&e.outlets}function Ay(e,n,t,i,r){let a,o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),a=e===n?t:d8(e,n,t);const s=a8(s8(a));return new sa(s,o,r)}function d8(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:d8(o,n,t)}),new Qe(e.segments,i)}class u8{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&rh(i[0]))throw new F(4003,!1);const r=i.find(ql);if(r&&r!==Qw(i))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oh{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function h8(e,n,t){if(e??=new Qe([],{}),0===e.segments.length&&e.hasChildren())return Gl(e,n,t);const i=function Tj(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return o;const a=e.segments[r],s=t[i];if(ql(s))break;const c=`${s}`,l=i<t.length-1?t[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!f8(c,l,a))return o;i+=2}else{if(!f8(c,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const o=new Qe(e.segments.slice(0,i.pathIndex),{});return o.children[ke]=new Qe(e.segments.slice(i.pathIndex),e.children),Gl(o,0,r)}return i.match&&0===r.length?new Qe(e.segments,{}):i.match&&!e.hasChildren()?Ny(e,n,t):i.match?Gl(e,0,r):Ny(e,n,t)}function Gl(e,n,t){if(0===t.length)return new Qe(e.segments,{});{const i=function Ij(e){return ql(e[0])?e[0].outlets:{[ke]:e}}(t),r={};if(Object.keys(i).some(o=>o!==ke)&&e.children[ke]&&1===e.numberOfChildren&&0===e.children[ke].segments.length){const o=Gl(e.children[ke],n,t);return new Qe(e.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=h8(e.children[o],n,a))}),Object.entries(e.children).forEach(([o,a])=>{void 0===i[o]&&(r[o]=a)}),new Qe(e.segments,r)}}function Ny(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const o=t[r];if(ql(o)){const c=Aj(o.outlets);return new Qe(i,c)}if(0===r&&rh(t[0])){i.push(new zl(e.segments[n].path,p8(t[0]))),r++;continue}const a=ql(o)?o.outlets[ke]:`${o}`,s=r<t.length-1?t[r+1]:null;a&&s&&rh(s)?(i.push(new zl(a,p8(s))),r+=2):(i.push(new zl(a,{})),r++)}return new Qe(i,{})}function Aj(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=Ny(new Qe([],{}),0,i))}),n}function p8(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function f8(e,n,t){return e==t.path&&gr(n,t.parameters)}const $l="imperative";var Ie=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}(Ie||{});class mr{constructor(n,t){this.id=n,this.url=t}}class Wl extends mr{constructor(n,t,i="imperative",r=null){super(n,t),this.type=Ie.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends mr{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var hi=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(hi||{}),ah=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ah||{});class da extends mr{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Us extends mr{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=Ie.NavigationSkipped}}class Oy extends mr{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class y8 extends mr{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nj extends mr{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oj extends mr{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Rj extends mr{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pj extends mr{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fj{constructor(n){this.route=n,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Lj{constructor(n){this.route=n,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Vj{constructor(n){this.snapshot=n,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hj{constructor(n){this.snapshot=n,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jj{constructor(n){this.snapshot=n,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bj{constructor(n){this.snapshot=n,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class g8{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=Ie.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ry{}class sh{constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Gi(e){return e.outlet||ke}function Zl(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class Wj{get injector(){return Zl(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Yl(this.rootInjector),this.attachRef=null}}let Yl=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new Wj(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(i){return new(i||e)(ne(Mn))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class m8{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=Py(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Py(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Fy(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Fy(n,this._root).map(t=>t.value)}}function Py(e,n){if(e===n.value)return n;for(const t of n.children){const i=Py(e,t);if(i)return i}return null}function Fy(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Fy(e,t);if(i.length)return i.unshift(n),i}return[]}class $i{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function qs(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class v8 extends m8{constructor(n,t){super(n),this.snapshot=t,Ly(this,n)}toString(){return this.snapshot.toString()}}function k8(e){const n=function Zj(e){const o=new lh([],{},{},"",{},ke,e,null,{});return new _8("",new $i(o,[]))}(e),t=new ei([new zl("",{})]),i=new ei({}),r=new ei({}),o=new ei({}),a=new ei(""),s=new _o(t,i,o,a,r,ke,e,n.root);return s.snapshot=n.root,new v8(new $i(s,[]),n)}class _o{constructor(n,t,i,r,o,a,s,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Ee(l=>l[Bl]))??ie(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o}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(Ee(n=>Bs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ee(n=>Bs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ch(e,n,t="emptyOnly"){let i;const{routeConfig:r}=e;return i=null===n||"always"!==t&&""!==r?.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,...r?.data,...e._resolvedData}},r&&b8(r)&&(i.resolve[Bl]=r.title),i}class lh{get title(){return this.data?.[Bl]}constructor(n,t,i,r,o,a,s,c,l){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Bs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _8 extends m8{constructor(n,t){super(t),this.url=n,Ly(this,t)}toString(){return M8(this._root)}}function Ly(e,n){n.value._routerState=e,n.children.forEach(t=>Ly(e,t))}function M8(e){const n=e.children.length>0?` { ${e.children.map(M8).join(", ")} } `:"";return`${e.value}${n}`}function Vy(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,gr(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),gr(n.params,t.params)||e.paramsSubject.next(t.params),function aj(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!gr(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),gr(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Hy(e,n){const t=gr(e.params,n.params)&&function dj(e,n){return ca(e,n)&&e.every((t,i)=>gr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Hy(e.parent,n.parent))}function b8(e){return"string"==typeof e.title||null===e.title}let jy=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ke,this.activateEvents=new K,this.deactivateEvents=new K,this.attachEvents=new K,this.detachEvents=new K,this.parentContexts=w(Yl),this.location=w(Gn),this.changeDetector=w(Rn),this.inputBinder=w(dh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),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 F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,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,i){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=t;const r=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new By(t,s,r.injector);this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[zt]})}}return e})();class By{__ngOutletInjector(n){return new By(this.route,this.childContexts,n)}constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===_o?this.route:n===Yl?this.childContexts:this.parent.get(n,t)}}const dh=new $("");let w8=(()=>{class e{constructor(){this.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:i}=t,r=Jf([i.queryParams,i.params,i.data]).pipe(qi(([o,a,s],c)=>(s={...o,...a,...s},0===c?ie(s):Promise.resolve(s)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const a=function RF(e){const n=De(e);if(!n)return null;const t=new il(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}}}(i.component);if(a)for(const{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,o[s]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();function Kl(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function Kj(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Kl(e,i,r);return Kl(e,i)})}(e,n,t);return new $i(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Kl(e,s)),a}}const i=function Qj(e){return new _o(new ei(e.url),new ei(e.params),new ei(e.queryParams),new ei(e.fragment),new ei(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>Kl(e,o));return new $i(i,r)}}class zy{constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const C8="ngNavigationCancelingError";function uh(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=la(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=D8(!1,hi.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function D8(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[C8]=!0,t.cancellationCode=n,t}function x8(e){return!!e&&e[C8]}class eB{constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Vy(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=qs(t);n.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,t,a.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=qs(n);for(const a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=qs(n);for(const a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=qs(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Bj(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Hj(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Vy(r),r===o)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,a.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),Vy(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}}class S8{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class hh{constructor(n,t){this.component=n,this.route=t}}function tB(e,n,t){const i=e._root;return Ql(i,n?n._root:null,t,[i.value])}function Gs(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function fx(e){return null!==Fd(e)}(e)?n.get(e):e:i}function Ql(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=qs(n);return e.children.forEach(a=>{(function iB(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function rB(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!ca(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ca(e.url,n.url)||!gr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hy(e,n)||!gr(e.queryParams,n.queryParams);default:return!Hy(e,n)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new S8(i)):(o.data=a.data,o._resolvedData=a._resolvedData),Ql(e,n,o.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new hh(s.outlet.component,a))}else a&&Jl(n,s,r),r.canActivateChecks.push(new S8(i)),Ql(e,null,o.component?s?s.children:null:t,i,r)})(a,o[a.value.outlet],t,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Jl(s,t.getContext(a),r)),r}function Jl(e,n,t){const i=qs(e),r=e.value;Object.entries(i).forEach(([o,a])=>{Jl(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new hh(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Xl(e){return"function"==typeof e}function E8(e){return e instanceof Ou||"EmptyError"===e?.name}const ph=Symbol("INITIAL_VALUE");function $s(){return qi(e=>Jf(e.map(n=>n.pipe(Ei(1),function Rw(...e){const n=Nl(e);return Vt((t,i)=>{(n?Ol(e,t,n):Ol(e,t)).subscribe(i)})}(ph)))).pipe(Ee(n=>{for(const t of n)if(!0!==t){if(t===ph)return ph;if(!1===t||uB(t))return t}return!0}),ln(n=>n!==ph),Ei(1)))}function uB(e){return la(e)||e instanceof zy}function I8(e){return function o7(...e){return sm(e)}(dn(n=>{if("boolean"!=typeof n)throw uh(0,n)}),Ee(n=>!0===n))}class Uy{constructor(n){this.segmentGroup=n||null}}class fh extends Error{constructor(n){super(),this.urlTree=n}}function Ws(e){return Ru(new Uy(e))}class CB{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ie(i);if(r.numberOfChildren>1||!r.children[ke])return Ru(new F(4e3,!1));r=r.children[ke]}}applyRedirectCommands(n,t,i,r,o){if("string"!=typeof t){const s=t,{queryParams:c,fragment:l,routeConfig:d,url:h,outlet:f,params:g,data:k,title:C}=r,E=Er(o,()=>s({params:g,data:k,queryParams:c,fragment:l,routeConfig:d,url:h,outlet:f,title:C}));if(E instanceof sa)throw new fh(E);t=E}const a=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new fh(a);return a}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new sa(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&":"===o[0]){const s=o.substring(1);i[r]=t[s]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let a={};return Object.entries(t.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(n,c,i,r)}),new Qe(o,a)}createSegments(n,t,i,r){return t.map(o=>":"===o.path[0]?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new F(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const qy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DB(e,n,t,i,r){const o=T8(e,n,t);return o.matched?(i=function zj(e,n){return e.providers&&!e._injector&&(e._injector=J1(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function MB(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?ie(r.map(a=>{const s=Gs(a,e);return ko(function dB(e){return e&&Xl(e.canMatch)}(s)?s.canMatch(n,t):Er(e,()=>s(n,t)))})).pipe($s(),I8()):ie(!0)}(i,n,t).pipe(Ee(a=>!0===a?o:{...qy}))):ie(o)}function T8(e,n,t){if("**"===n.path)return function xB(e){return{matched:!0,parameters:e.length>0?Qw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...qy}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||oj)(t,e,n);if(!r)return{...qy};const o={};Object.entries(r.posParams??{}).forEach(([s,c])=>{o[s]=c.path});const a=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function A8(e,n,t,i){return t.length>0&&function IB(e,n,t){return t.some(i=>yh(e,n,i)&&Gi(i)!==ke)}(e,t,i)?{segmentGroup:new Qe(n,EB(i,new Qe(t,e.children))),slicedSegments:[]}:0===t.length&&function TB(e,n,t){return t.some(i=>yh(e,n,i))}(e,t,i)?{segmentGroup:new Qe(e.segments,SB(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new Qe(e.segments,e.children),slicedSegments:t}}function SB(e,n,t,i){const r={};for(const o of t)if(yh(e,n,o)&&!i[Gi(o)]){const a=new Qe([],{});r[Gi(o)]=a}return{...i,...r}}function EB(e,n){const t={};t[ke]=n;for(const i of e)if(""===i.path&&Gi(i)!==ke){const r=new Qe([],{});t[Gi(i)]=r}return t}function yh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class NB{}class PB{constructor(n,t,i,r,o,a,s){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new CB(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new F(4002,`'${n.segmentGroup}'`)}recognize(){const n=A8(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Ee(({children:t,rootSnapshot:i})=>{const r=new $i(i,t),o=new _8("",r),a=function Dj(e,n,t=null,i=null){return l8(c8(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){const t=new lh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),ke,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,ke,t).pipe(Ee(i=>({children:i,rootSnapshot:t})),js(i=>{if(i instanceof fh)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Uy?this.noMatchError(i):i}))}processSegmentGroup(n,t,i,r,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i,o):this.processSegment(n,t,i,i.segments,r,!0,o).pipe(Ee(a=>a instanceof $i?[a]:[]))}processChildren(n,t,i,r){const o=[];for(const a of Object.keys(i.children))"primary"===a?o.unshift(a):o.push(a);return rn(o).pipe(Hl(a=>{const s=i.children[a],c=function $j(e,n){const t=e.filter(i=>Gi(i)===n);return t.push(...e.filter(i=>Gi(i)!==n)),t}(t,a);return this.processSegmentGroup(n,c,s,a,r)}),function SH(e,n){return Vt(function xH(e,n,t,i,r){return(o,a)=>{let s=t,c=n,l=0;o.subscribe(ht(a,d=>{const h=l++;c=s?e(c,d,h):(s=!0,d),i&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(e,n,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Ku(null),function EH(e,n){const t=arguments.length>=2;return i=>i.pipe(e?ln((r,o)=>e(r,o,i)):Dr,ky(1),t?Ku(n):Pw(()=>new Ou))}(),on(a=>{if(null===a)return Ws(i);const s=N8(a);return function FB(e){e.sort((n,t)=>n.value.outlet===ke?-1:t.value.outlet===ke?1:n.value.outlet.localeCompare(t.value.outlet))}(s),ie(s)}))}processSegment(n,t,i,r,o,a,s){return rn(t).pipe(Hl(c=>this.processSegmentAgainstRoute(c._injector??n,t,c,i,r,o,a,s).pipe(js(l=>{if(l instanceof Uy)return ie(null);throw l}))),oa(c=>!!c),js(c=>{if(E8(c))return function AB(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?ie(new NB):Ws(i);throw c}))}processSegmentAgainstRoute(n,t,i,r,o,a,s,c){return Gi(i)===a||a!==ke&&yh(r,o,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,a,c):Ws(r):Ws(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,a,s){const{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:h,remainingSegments:f}=T8(t,r,o);if(!c)return Ws(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const g=new lh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,O8(r),Gi(r),r.component??r._loadedComponent??null,r,R8(r)),k=ch(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(k.params),g.data=Object.freeze(k.data);const C=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,g,n);return this.applyRedirects.lineralizeSegments(r,C).pipe(on(E=>this.processSegment(n,i,t,E.concat(f),a,!1,s)))}matchSegmentAgainstRoute(n,t,i,r,o,a){const s=DB(t,i,r,n);return"**"===i.path&&(t.children={}),s.pipe(qi(c=>c.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(qi(({routes:l})=>{const d=i._loadedInjector??n,{parameters:h,consumedSegments:f,remainingSegments:g}=c,k=new lh(f,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,O8(i),Gi(i),i.component??i._loadedComponent??null,i,R8(i)),C=ch(k,a,this.paramsInheritanceStrategy);k.params=Object.freeze(C.params),k.data=Object.freeze(C.data);const{segmentGroup:E,slicedSegments:I}=A8(t,f,g,l);if(0===I.length&&E.hasChildren())return this.processChildren(d,l,E,k).pipe(Ee(z=>new $i(k,z)));if(0===l.length&&0===I.length)return ie(new $i(k,[]));const S=Gi(i)===o;return this.processSegment(d,l,E,I,S?ke:o,!0,k).pipe(Ee(z=>new $i(k,z instanceof $i?[z]:[])))})):Ws(t)))}getChildConfig(n,t,i){return t.children?ie({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ie({routes:t._loadedRoutes,injector:t._loadedInjector}):function _B(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?ie(!0):ie(r.map(a=>{const s=Gs(a,e);return ko(function aB(e){return e&&Xl(e.canLoad)}(s)?s.canLoad(n,t):Er(e,()=>s(n,t)))})).pipe($s(),I8())}(n,t,i).pipe(on(r=>r?this.configLoader.loadChildren(n,t).pipe(dn(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function wB(){return Ru(D8(!1,hi.GuardRejected))}())):ie({routes:[],injector:n})}}function LB(e){const n=e.value.routeConfig;return n&&""===n.path}function N8(e){const n=[],t=new Set;for(const i of e){if(!LB(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=N8(i.children);n.push(new $i(i.value,r))}return n.filter(i=>!t.has(i))}function O8(e){return e.data||{}}function R8(e){return e.resolve||{}}function P8(e){const n=e.children.map(t=>P8(t)).flat();return[e,...n]}function Gy(e){return qi(n=>{const t=e(n);return t?rn(t).pipe(Ee(()=>n)):ie(n)})}let F8=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===ke);return i}getResolvedTitleForRoute(t){return t.data[Bl]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w(UB),providedIn:"root"})}}return e})(),UB=(()=>{class e extends F8{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||e)(ne(ej))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Zs=new $("",{providedIn:"root",factory:()=>({})});let L8=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[fe],decls:1,vars:0,template:function(i,r){1&i&&B(0,"router-outlet")},dependencies:[jy],encapsulation:2})}}return e})();function $y(e){const n=e.children&&e.children.map($y),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ke&&(t.component=L8),t}const Ys=new $("");let Wy=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(j3)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ie(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=ko(t.loadComponent()).pipe(Ee(V8),dn(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),_y(()=>{this.componentLoaders.delete(t)})),r=new Jb(i,()=>new Ye).pipe(Xf());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ie({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function qB(e,n,t,i){return ko(e.loadChildren()).pipe(Ee(V8),on(r=>r instanceof rM||Array.isArray(r)?ie(r):rn(n.compileModuleAsync(r))),Ee(r=>{i&&i(e);let o,a,s=!1;return Array.isArray(r)?(a=r,!0):(o=r.create(t).injector,a=o.get(Ys,[],{optional:!0,self:!0}).flat()),{routes:a.map($y),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(_y(()=>{this.childrenLoaders.delete(i)})),a=new Jb(o,()=>new Ye).pipe(Xf());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function V8(e){return function GB(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Zy=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w($B),providedIn:"root"})}}return e})(),$B=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const H8=new $(""),j8=new $("");function WB(e,n,t){const i=e.get(j8),r=e.get(Ct);return e.get(ve).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o;const a=new Promise(l=>{o=l}),s=r.startViewTransition(()=>(o(),function ZB(e){return new Promise(n=>{Fr({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:c}=i;return c&&Er(e,()=>c({transition:s,from:n,to:t})),a})}const B8=new $("");let gh=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ye,this.transitionAbortSubject=new Ye,this.configLoader=w(Wy),this.environmentInjector=w(Mn),this.urlSerializer=w(zs),this.rootContexts=w(Yl),this.location=w(Rl),this.inputBindingEnabled=null!==w(dh,{optional:!0}),this.titleStrategy=w(F8),this.options=w(Zs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(Zy),this.createViewTransition=w(H8,{optional:!0}),this.navigationErrorHandler=w(B8,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ie(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Lj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Fj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new ei({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:$l,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ln(o=>0!==o.id),Ee(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),qi(o=>{let a=!1,s=!1;return ie(o).pipe(qi(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",hi.SupersededByNewNavigation),di;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:"string"==typeof c.extras.browserUrl?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const h="";return this.events.next(new Us(c.id,this.urlSerializer.serialize(c.rawUrl),h,ah.IgnoredSameUrlNavigation)),c.resolve(!1),di}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return ie(c).pipe(qi(h=>{const f=this.transitions?.getValue();return this.events.next(new Wl(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?di:Promise.resolve(h)}),function VB(e,n,t,i,r,o){return on(a=>function OB(e,n,t,i,r,o,a="emptyOnly"){return new PB(e,n,t,i,r,a,o).recognize()}(e,n,t,i,a.extractedUrl,r,o).pipe(Ee(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),dn(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects};const f=new y8(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:h,extractedUrl:f,source:g,restoredState:k,extras:C}=c,E=new Wl(h,this.urlSerializer.serialize(f),g,k);this.events.next(E);const I=k8(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:I,urlAfterRedirects:f,extras:{...C,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,ie(o)}{const h="";return this.events.next(new Us(c.id,this.urlSerializer.serialize(c.extractedUrl),h,ah.IgnoredByUrlHandlingStrategy)),c.resolve(!1),di}}),dn(c=>{const l=new Nj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),Ee(c=>(this.currentTransition=o={...c,guards:tB(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function hB(e,n){return on(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=t;return 0===a.length&&0===o.length?ie({...t,guardsResult:!0}):function pB(e,n,t,i){return rn(e).pipe(on(r=>function kB(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?ie(o.map(s=>{const c=Zl(n)??r,l=Gs(s,c);return ko(function lB(e){return e&&Xl(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,i):Er(c,()=>l(e,n,t,i))).pipe(oa())})).pipe($s()):ie(!0)}(r.component,r.route,t,n,i)),oa(r=>!0!==r,!0))}(a,i,r,e).pipe(on(s=>s&&function oB(e){return"boolean"==typeof e}(s)?function fB(e,n,t,i){return rn(n).pipe(Hl(r=>Ol(function gB(e,n){return null!==e&&n&&n(new Vj(e)),ie(!0)}(r.route.parent,i),function yB(e,n){return null!==e&&n&&n(new jj(e)),ie(!0)}(r.route,i),function vB(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>function nB(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(a)).filter(a=>null!==a).map(a=>Qb(()=>ie(a.guards.map(c=>{const l=Zl(a.node)??t,d=Gs(c,l);return ko(function cB(e){return e&&Xl(e.canActivateChild)}(d)?d.canActivateChild(i,e):Er(l,()=>d(i,e))).pipe(oa())})).pipe($s())));return ie(o).pipe($s())}(e,r.path,t),function mB(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ie(!0);const r=i.map(o=>Qb(()=>{const a=Zl(n)??t,s=Gs(o,a);return ko(function sB(e){return e&&Xl(e.canActivate)}(s)?s.canActivate(n,e):Er(a,()=>s(n,e))).pipe(oa())}));return ie(r).pipe($s())}(e,r.route,t))),oa(r=>!0!==r,!0))}(i,o,e,n):ie(s)),Ee(s=>({...t,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),dn(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&"boolean"!=typeof c.guardsResult)throw uh(0,c.guardsResult);const l=new Oj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),ln(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",hi.GuardRejected),!1)),Gy(c=>{if(c.guards.canActivateChecks.length)return ie(c).pipe(dn(l=>{const d=new Rj(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),qi(l=>{let d=!1;return ie(l).pipe(function HB(e,n){return on(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return ie(t);const o=new Set(r.map(c=>c.route)),a=new Set;for(const c of o)if(!a.has(c))for(const l of P8(c))a.add(l);let s=0;return rn(a).pipe(Hl(c=>o.has(c)?function jB(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!b8(r)&&(o[Bl]=r.title),function BB(e,n,t,i){const r=Ey(e);if(0===r.length)return ie({});const o={};return rn(r).pipe(on(a=>function zB(e,n,t,i){const r=Zl(n)??i,o=Gs(e,r);return ko(o.resolve?o.resolve(n,t):Er(r,()=>o(n,t)))}(e[a],n,t,i).pipe(oa(),dn(s=>{if(s instanceof zy)throw uh(new eh,s);o[a]=s}))),ky(1),Fw(o),js(a=>E8(a)?di:Ru(a)))}(o,e,n,i).pipe(Ee(a=>(e._resolvedData=a,e.data=ch(e,e.parent,t).resolve,null)))}(c,i,e,n):(c.data=ch(c,c.parent,e).resolve,ie(void 0))),dn(()=>s++),ky(1),on(c=>s===a.size?ie(t):di))})}(this.paramsInheritanceStrategy,this.environmentInjector),dn({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",hi.NoDataFromResolver)}}))}),dn(l=>{const d=new Pj(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Gy(c=>{const l=d=>{const h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(dn(f=>{d.component=f}),Ee(()=>{})));for(const f of d.children)h.push(...l(f));return h};return Jf(l(c.targetSnapshot.root)).pipe(Ku(null),Ei(1))}),Gy(()=>this.afterPreactivation()),qi(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?rn(d).pipe(Ee(()=>o)):ie(o)}),Ee(c=>{const l=function Yj(e,n,t){const i=Kl(e,n._root,t?t._root:void 0);return new v8(i,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),dn(()=>{this.events.next(new Ry)}),((e,n,t,i)=>Ee(r=>(new eB(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Ei(1),dn({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),mn(this.transitionAbortSubject.pipe(dn(c=>{throw c}))),_y(()=>{!a&&!s&&this.cancelNavigationTransition(o,"",hi.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),js(c=>{if(s=!0,x8(c))this.events.next(new da(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function Jj(e){return x8(e)&&la(e.url)}(c)?this.events.next(new sh(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{const l=new Oy(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{const d=Er(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof zy){const{message:h,cancellationCode:f}=uh(0,d);this.events.next(new da(o.id,this.urlSerializer.serialize(o.extractedUrl),h,f)),this.events.next(new sh(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);const h=t.errorHandler(c);o.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return di}))}))}cancelNavigationTransition(t,i,r){const o=new da(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),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))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function YB(e){return e!==$l}let KB=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w(JB),providedIn:"root"})}}return e})();class QB{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let JB=(()=>{class e extends QB{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),z8=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:()=>w(XB),providedIn:"root"})}}return e})(),XB=(()=>{class e extends z8{constructor(){super(...arguments),this.location=w(Rl),this.urlSerializer=w(zs),this.options=w(Zs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(Zy),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new sa,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=k8(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof Wl)this.stateMemento=this.createStateMemento();else if(t instanceof Us)this.rawUrlTree=i.initialUrl;else if(t instanceof y8){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof Ry?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof da&&(t.code===hi.GuardRejected||t.code===hi.NoDataFromResolver)?this.restoreHistory(i):t instanceof Oy?this.restoreHistory(i,!0):t instanceof zr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=t instanceof sa?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&0===o&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ed=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ed||{});function U8(e,n){e.events.pipe(ln(t=>t instanceof zr||t instanceof da||t instanceof Oy||t instanceof Us),Ee(t=>t instanceof zr||t instanceof Us?ed.COMPLETE:t instanceof da&&(t.code===hi.Redirect||t.code===hi.SupersededByNewNavigation)?ed.REDIRECTING:ed.FAILED),ln(t=>t!==ed.REDIRECTING),Ei(1)).subscribe(()=>{n()})}function ez(e){throw e}const tz={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nz={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zn=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=w(I3),this.stateManager=w(z8),this.options=w(Zs,{optional:!0})||{},this.pendingTasks=w(zo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(gh),this.urlSerializer=w(zs),this.location=w(Rl),this.urlHandlingStrategy=w(Zy),this._events=new Ye,this.errorHandler=this.options.errorHandler||ez,this.navigated=!1,this.routeReuseStrategy=w(KB),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(Ys,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(dh,{optional:!0}),this.eventsSubscription=new cn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof da&&i.code!==hi.Redirect&&i.code!==hi.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof zr)this.navigated=!0;else if(i instanceof sh){const a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),c={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||YB(r.source),...a};this.scheduleNavigation(s,$l,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function rz(e){return!(e instanceof Ry||e instanceof sh)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});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),$l,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const s=this.parseUrl(t);this.scheduleNavigation(s,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map($y),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a;let h,d=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{h=c8(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),h=this.currentUrlTree.root}return l8(h,t,d,l??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=la(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,$l,null,i)}navigate(t,i={skipLocationChange:!1}){return function iz(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new F(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,i){let r;if(r=!0===i?{...tz}:!1===i?{...nz}:i,la(t))return Xw(this.currentUrlTree,t,r);const o=this.parseUrl(t);return Xw(this.currentUrlTree,o,r)}removeEmptyProps(t){return Object.entries(t).reduce((i,[r,o])=>(null!=o&&(i[r]=o),i),{})}scheduleNavigation(t,i,r,o,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,f)=>{s=h,c=f});const d=this.pendingTasks.add();return U8(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vr=(()=>{class e{constructor(t,i,r,o,a,s){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.href=null,this.onChanges=new Ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=la(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,o,a){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==t||i||r||o||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(s,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const i=null===this.href?null:function o_(e,n,t){return function C9(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?r_:T1}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.routerLinkInput?null:la(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{this.\u0275fac=function(i){return new(i||e)(N(Zn),N(_o),function eo(e){return function YS(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const o=t[r];if(Wm(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(o===n)return t[r+1];r+=2}}}return null}(We(),e)}("tabindex"),N(lr),N(Oe),N(vo))}}static{this.\u0275dir=q({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&L("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&G("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Fs],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Fs],replaceUrl:[2,"replaceUrl","replaceUrl",Fs],routerLink:"routerLink"},standalone:!0,features:[iM,zt]})}}return e})();class q8{}let sz=(()=>{class e{constructor(t,i,r,o,a){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ln(t=>t instanceof zr),Hl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=J1(o.providers,t,`Route: ${o.path}`));const a=o._injector??t,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return rn(r).pipe(Ls())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ie(null);const o=r.pipe(on(a=>null===a?ie(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return i.loadComponent&&!i._loadedComponent?rn([o,this.loader.loadComponent(i)]).pipe(Ls()):o})}static{this.\u0275fac=function(i){return new(i||e)(ne(Zn),ne(j3),ne(Mn),ne(q8),ne(Wy))}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Yy=new $("");let G8=(()=>{class e{constructor(t,i,r,o,a={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.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 Wl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof zr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Us&&t.code===ah.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof g8&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new g8(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){!function T_(){throw new Error("invalid")}()}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac})}}return e})();function kr(e,n){return{\u0275kind:e,\u0275providers:n}}function W8(){const e=w(Ve);return n=>{const t=e.get(Di);if(n!==t.components[0])return;const i=e.get(Zn),r=e.get(Z8);1===e.get(Ky)&&i.initialNavigation(),e.get(Y8,null,xe.Optional)?.setUpPreloading(),e.get(Yy,null,xe.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Z8=new $("",{factory:()=>new Ye}),Ky=new $("",{providedIn:"root",factory:()=>1}),Y8=new $("");function uz(e){return kr(0,[{provide:Y8,useExisting:sz},{provide:q8,useExisting:e}])}function pz(e){return kr(9,[{provide:H8,useValue:WB},{provide:j8,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const K8=new $("ROUTER_FORROOT_GUARD"),fz=[Rl,{provide:zs,useClass:eh},Zn,Yl,{provide:_o,useFactory:function $8(e){return e.routerState.root},deps:[Zn]},Wy,[]];let Q8=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[fz,[],{provide:Ys,multi:!0,useValue:t},{provide:K8,useFactory:vz,deps:[[Zn,new mc,new Bd]]},{provide:Zs,useValue:i||{}},i?.useHash?{provide:vo,useClass:iw}:{provide:vo,useClass:nw},{provide:Yy,useFactory:()=>{const e=w(WV),n=w(ve),t=w(Zs),i=w(gh),r=w(zs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new G8(r,i,e,n,t)}},i?.preloadingStrategy?uz(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?kz(i):[],i?.bindToComponentInputs?kr(8,[w8,{provide:dh,useExisting:w8}]).\u0275providers:[],i?.enableViewTransitions?pz().\u0275providers:[],[{provide:J8,useFactory:W8},{provide:ku,multi:!0,useExisting:J8}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Ys,multi:!0,useValue:t}]}}static{this.\u0275fac=function(i){return new(i||e)(ne(K8,8))}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();function vz(e){return"guarded"}function kz(e){return["disabled"===e.initialNavigation?kr(3,[{provide:Tf,multi:!0,useFactory:()=>{const n=w(Zn);return()=>{n.setUpLocationChangeListener()}}},{provide:Ky,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?kr(2,[{provide:Ky,useValue:0},{provide:Tf,multi:!0,deps:[Ve],useFactory:n=>{const t=n.get(TL,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(Zn),o=n.get(Z8);U8(r,()=>{i(!0)}),n.get(gh).afterPreactivation=()=>(i(!0),o.closed?ie(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const J8=new $("");let Mz=(()=>{class e{title="config-ui";logoSrc="assets/images/homebridge-eufy-security.png";static \u0275fac=function(i){return new(i||e)};static \u0275cmp=se({type:e,selectors:[["app-root"]],standalone:!0,features:[fe],decls:5,vars:0,consts:[[1,"pluginContent","container"],[1,"footer"]],template:function(i,r){1&i&&(y(0,"div",0),B(1,"router-outlet"),m(),B(2,"hr"),y(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"),m())},dependencies:[jy],encapsulation:2})}return e})();function X8(e,n,t,i,r,o,a){try{var s=e[o](a),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function oe(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(c){X8(o,i,r,a,s,"next",c)}function s(c){X8(o,i,r,a,s,"throw",c)}a(void 0)})}}function Ur(e){e||(Qd(),e=w(Or));const n=new ut(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(mn(n))}const xz=["addListener","removeListener"],Sz=["addEventListener","removeEventListener"],Ez=["on","off"];function vn(e,n,t,i){if(Se(t)&&(i=t,t=void 0),i)return vn(e,n,t).pipe(Qf(i));const[r,o]=function Az(e){return Se(e.addEventListener)&&Se(e.removeEventListener)}(e)?Sz.map(a=>s=>e[a](n,s,t)):function Iz(e){return Se(e.addListener)&&Se(e.removeListener)}(e)?xz.map(e6(e,n)):function Tz(e){return Se(e.on)&&Se(e.off)}(e)?Ez.map(e6(e,n)):[];if(!r&&Yf(e))return on(a=>vn(a,n,t))(gn(e));if(!r)throw new TypeError("Invalid event target");return new ut(a=>{const s=(...c)=>a.next(1<c.length?c:c[0]);return r(s),()=>o(s)})}function e6(e,n){return t=>i=>e[t](n,i)}class Nz extends cn{constructor(n,t){super()}schedule(n,t=0){return this}}const mh={setInterval(e,n,...t){const{delegate:i}=mh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=mh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},t6={now:()=>(t6.delegate||Date).now(),delegate:void 0};class td{constructor(n,t=td.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}td.now=t6.now;const n6=new class Rz extends td{constructor(n,t=td.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class Oz extends Nz{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return mh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&mh.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Oa(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),Pz=n6;function i6(e=0,n,t=Pz){let i=-1;return null!=n&&(Wb(n)?t=n:i=n),new ut(r=>{let o=function Fz(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let a=0;return t.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}const{isArray:Lz}=Array;function r6(e){return 1===e.length&&Lz(e[0])?e[0]:e}function o6(...e){return 1===(e=r6(e)).length?gn(e[0]):new ut(function Vz(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(gn(e[i]).subscribe(ht(n,r=>{if(t){for(let o=0;o<t.length;o++)o!==i&&t[o].unsubscribe();t=null}n.next(r)})))}}(e))}function Qy(...e){const n=Nu(e),t=r6(e);return t.length?new ut(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let a=0;!i.closed&&a<t.length;a++)gn(t[a]).subscribe(ht(i,s=>{if(r[a].push(s),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,d)=>!l.length&&o[d])&&i.complete()}},()=>{o[a]=!0,!r[a].length&&i.complete()}));return()=>{r=o=null}}):di}function Jy(...e){const n=Nu(e);return Vt((t,i)=>{const r=e.length,o=new Array(r);let a=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)gn(e[c]).subscribe(ht(i,l=>{o[c]=l,!s&&!a[c]&&(a[c]=!0,(s=a.every(Dr))&&(a=null))},Cr));t.subscribe(ht(i,c=>{if(s){const l=[c,...o];i.next(n?n(...l):l)}}))})}function a6(e,n){return n?t=>Ol(n.pipe(Ei(1),function Bz(){return Vt((e,n)=>{e.subscribe(ht(n,Cr))})}()),t.pipe(a6(e))):on((t,i)=>gn(e(t,i)).pipe(Ei(1),Fw(t)))}let s6=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(i){return new(i||e)(N(lr),N(Oe))}}static{this.\u0275dir=q({type:e})}}return e})(),ua=(()=>{class e extends s6{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,features:[ee]})}}return e})();const Ii=new $(""),Wz={provide:Ii,useExisting:Be(()=>Cn),multi:!0};let Cn=(()=>{class e extends ua{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){1&i&&L("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[Je([Wz]),ee]})}}return e})();const Zz={provide:Ii,useExisting:Be(()=>Mo),multi:!0},Kz=new $("");let Mo=(()=>{class e extends s6{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Yz(){const e=mo()?mo().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{this.\u0275fac=function(i){return new(i||e)(N(lr),N(Oe),N(Kz,8))}}static{this.\u0275dir=q({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(i,r){1&i&&L("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Je([Zz]),ee]})}}return e})();const kn=new $(""),wo=new $(""),Qz=/^(?=.{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 p6(e){return function bo(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||Qz.test(e.value)?null:{email:!0}}function vh(e){return null}function m6(e){return null!=e}function v6(e){return xl(e)?rn(e):e}function k6(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function _6(e,n){return n.map(t=>t(e))}function M6(e){return e.map(n=>function Jz(e){return!e.validate}(n)?n:t=>n.validate(t))}function Xy(e){return null!=e?function b6(e){if(!e)return null;const n=e.filter(m6);return 0==n.length?null:function(t){return k6(_6(t,n))}}(M6(e)):null}function eg(e){return null!=e?function w6(e){if(!e)return null;const n=e.filter(m6);return 0==n.length?null:function(t){return function $z(...e){const n=Nu(e),{args:t,keys:i}=Zb(e),r=new ut(o=>{const{length:a}=t;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d<a;d++){let h=!1;gn(t[d]).subscribe(ht(o,f=>{h||(h=!0,l--),s[d]=f},()=>c--,void 0,()=>{(!c||!h)&&(l||o.next(i?Yb(i,s):s),o.complete())}))}});return n?r.pipe(Qf(n)):r}(_6(t,n).map(v6)).pipe(Ee(k6))}}(M6(e)):null}function C6(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function tg(e){return e?Array.isArray(e)?e:[e]:[]}function kh(e,n){return Array.isArray(e)?e.includes(n):e===n}function S6(e,n){const t=tg(n);return tg(e).forEach(r=>{kh(t,r)||t.push(r)}),t}function E6(e,n){return tg(n).filter(t=>!kh(e,t))}class I6{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Xy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=eg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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 Ln extends I6{get formDirective(){return null}get path(){return null}}class Co extends I6{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class T6{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 Et=(()=>{class e extends T6{constructor(t){super(t)}static{this.\u0275fac=function(i){return new(i||e)(N(Co,2))}}static{this.\u0275dir=q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&ze("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ee]})}}return e})();const nd="VALID",Mh="INVALID",Ks="PENDING",id="DISABLED";class Qs{}class N6 extends Qs{constructor(n,t){super(),this.value=n,this.source=t}}class rg extends Qs{constructor(n,t){super(),this.pristine=n,this.source=t}}class og extends Qs{constructor(n,t){super(),this.touched=n,this.source=t}}class bh extends Qs{constructor(n,t){super(),this.status=n,this.source=t}}function wh(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class cg{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Al(()=>this.statusReactive()),this.statusReactive=ps(void 0),this._pristine=Al(()=>this.pristineReactive()),this.pristineReactive=ps(!0),this._touched=Al(()=>this.touchedReactive()),this.touchedReactive=ps(!1),this._events=new Ye,this.events=this._events.asObservable(),this._onDisabledChange=[],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 yr(this.statusReactive)}set status(n){yr(()=>this.statusReactive.set(n))}get valid(){return this.status===nd}get invalid(){return this.status===Mh}get pending(){return this.status==Ks}get disabled(){return this.status===id}get enabled(){return this.status!==id}get pristine(){return yr(this.pristineReactive)}set pristine(n){yr(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return yr(this.touchedReactive)}set touched(n){yr(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}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(S6(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(S6(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(E6(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(E6(n,this._rawAsyncValidators))}hasValidator(n){return kh(this._rawValidators,n)}hasAsyncValidator(n){return kh(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:i}),t&&!1!==n.emitEvent&&this._events.next(new og(!0,i))}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 i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),t&&!1!==n.emitEvent&&this._events.next(new og(!1,i))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:i}),t&&!1!==n.emitEvent&&this._events.next(new rg(!1,i))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),t&&!1!==n.emitEvent&&this._events.next(new rg(!0,i))}markAsPending(n={}){this.status=Ks;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new bh(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=id,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue();const i=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new N6(this.value,i)),this._events.next(new bh(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=nd,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===nd||this.status===Ks)&&this._runAsyncValidator(i,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new N6(this.value,t)),this._events.next(new bh(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()?id:nd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Ks,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const i=v6(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!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((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.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,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new bh(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,i)}_initObservables(){this.valueChanges=new K,this.statusChanges=new K}_calculateStatus(){return this._allControlsDisabled()?id:this.errors?Mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ks)?Ks:this._anyControlsHaveStatus(Mh)?Mh:nd}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),r&&this._events.next(new rg(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new og(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){wh(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 aU(e){return Array.isArray(e)?Xy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function sU(e){return Array.isArray(e)?eg(e):e||null}(this._rawAsyncValidators)}}const Js=new $("CallSetDisabledState",{providedIn:"root",factory:()=>Ch}),Ch="always";function rd(e,n,t=Ch){(function dg(e,n){const t=function D6(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(C6(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function x6(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(C6(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Sh(n._rawValidators,r),Sh(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function dU(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&P6(e,n)})}(e,n),function hU(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function uU(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&P6(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function lU(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Sh(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function P6(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function V6(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function H6(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const j6=class extends cg{constructor(n=null,t,i){super(function ag(e){return(wh(e)?e.validators:e)||null}(t),function sg(e,n){return(wh(n)?n.asyncValidators:e)||null}(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wh(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=H6(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(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),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){V6(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){V6(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){H6(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}},_U={provide:Co,useExisting:Be(()=>Dt)},U6=Promise.resolve();let Dt=(()=>{class e extends Co{constructor(t,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new j6,this._registered=!1,this.name="",this.update=new K,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function pg(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Mo?t=o:function yU(e){return Object.getPrototypeOf(e.constructor)===ua}(o)?i=o:r=o}),r||i||t||null}(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function hg(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(){rd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){U6.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&Fs(i);U6.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function Dh(e,n){return[...n.path,e]}(t,this._parent):[t]}static{this.\u0275fac=function(i){return new(i||e)(N(Ln,9),N(kn,10),N(wo,10),N(Ii,10),N(Rn,8),N(Js,8))}}static{this.\u0275dir=q({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"],features:[Je([_U]),ee,zt]})}}return e})();const bU={provide:Ii,useExisting:Be(()=>Xs),multi:!0};let Xs=(()=>{class e extends ua{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&L("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Je([bU]),ee]})}}return e})();const AU={provide:Ii,useExisting:Be(()=>qr),multi:!0};function K6(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let qr=(()=>{class e extends ua{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=K6(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function NU(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&L("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Je([AU]),ee]})}}return e})(),ha=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(K6(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||e)(N(Oe),N(lr),N(qr,9))}}static{this.\u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();const OU={provide:Ii,useExisting:Be(()=>vg),multi:!0};function Q6(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let vg=(()=>{class e extends ua{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(o=>this._getOptionId(o));i=(o,a)=>{o._setSelected(r.indexOf(a.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const a=o;for(let s=0;s<a.length;s++){const l=this._getOptionValue(a[s].value);r.push(l)}}else{const a=i.options;for(let s=0;s<a.length;s++){const c=a[s];if(c.selected){const l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function RU(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){1&i&&L("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Je([OU]),ee]})}}return e})(),pa=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Q6(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Q6(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{this.\u0275fac=function(i){return new(i||e)(N(Oe),N(lr),N(vg,9))}}static{this.\u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})(),fa=(()=>{class e{constructor(){this._validator=vh}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):vh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,features:[zt]})}}return e})();const HU={provide:kn,useExisting:Be(()=>_g),multi:!0};let _g=(()=>{class e extends fa{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Fs,this.createValidator=t=>p6}enabled(t){return t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=at(e)))(r||e)}})()}static{this.\u0275dir=q({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Je([HU]),ee]})}}return e})(),UU=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),It=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Js,useValue:t.callSetDisabledState??Ch}]}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({imports:[UU]})}}return e})();var GU={left:"right",right:"left",bottom:"top",top:"bottom"};function Ih(e){return e.replace(/left|right|bottom|top/g,function(n){return GU[n]})}function _r(e){return e.split("-")[0]}var $U={start:"end",end:"start"};function aC(e){return e.replace(/start|end/g,function(n){return $U[n]})}var pi="top",Wi="bottom",Zi="right",fi="left",Mg="auto",ad=[pi,Wi,Zi,fi],ec="start",sd="end",sC="viewport",cd="popper",cC=ad.reduce(function(e,n){return e.concat([n+"-"+ec,n+"-"+sd])},[]),lC=[].concat(ad,[Mg]).reduce(function(e,n){return e.concat([n,n+"-"+ec,n+"-"+sd])},[]),rq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function ya(e){return e instanceof yi(e).Element||e instanceof Element}function Ti(e){return e instanceof yi(e).HTMLElement||e instanceof HTMLElement}function bg(e){return!(typeof ShadowRoot>"u")&&(e instanceof yi(e).ShadowRoot||e instanceof ShadowRoot)}function Do(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}var ga=Math.max,Th=Math.min,tc=Math.round;function wg(){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 dC(){return!/^((?!chrome|android).)*safari/i.test(wg())}function nc(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,o=1;n&&Ti(e)&&(r=e.offsetWidth>0&&tc(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&tc(i.height)/e.offsetHeight||1);var s=(ya(e)?yi(e):window).visualViewport,c=!dC()&&t,l=(i.left+(c&&s?s.offsetLeft:0))/r,d=(i.top+(c&&s?s.offsetTop:0))/o,h=i.width/r,f=i.height/o;return{width:h,height:f,top:d,right:l+h,bottom:d+f,left:l,x:l,y:d}}function Cg(e){var n=yi(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Dg(e){return nc(Do(e)).left+Cg(e).scrollLeft}function Gr(e){return yi(e).getComputedStyle(e)}function Mr(e){return e?(e.nodeName||"").toLowerCase():null}function Ah(e){return"html"===Mr(e)?e:e.assignedSlot||e.parentNode||(bg(e)?e.host:null)||Do(e)}function xg(e){var n=Gr(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function uC(e){return["html","body","#document"].indexOf(Mr(e))>=0?e.ownerDocument.body:Ti(e)&&xg(e)?e:uC(Ah(e))}function ld(e,n){var t;void 0===n&&(n=[]);var i=uC(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),o=yi(i),a=r?[o].concat(o.visualViewport||[],xg(i)?i:[]):i,s=n.concat(a);return r?s:s.concat(ld(Ah(a)))}function sq(e){return["table","td","th"].indexOf(Mr(e))>=0}function hC(e){return Ti(e)&&"fixed"!==Gr(e).position?e.offsetParent:null}function dd(e){for(var n=yi(e),t=hC(e);t&&sq(t)&&"static"===Gr(t).position;)t=hC(t);return t&&("html"===Mr(t)||"body"===Mr(t)&&"static"===Gr(t).position)?n:t||function cq(e){var n=/firefox/i.test(wg());if(/Trident/i.test(wg())&&Ti(e)&&"fixed"===Gr(e).position)return null;var r=Ah(e);for(bg(r)&&(r=r.host);Ti(r)&&["html","body"].indexOf(Mr(r))<0;){var o=Gr(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||n&&"filter"===o.willChange||n&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||n}function pC(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&bg(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Sg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fC(e,n,t){return n===sC?Sg(function oq(e,n){var t=yi(e),i=Do(e),r=t.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,c=0;if(r){o=r.width,a=r.height;var l=dC();(l||!l&&"fixed"===n)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+Dg(e),y:c}}(e,t)):ya(n)?function lq(e,n){var t=nc(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):Sg(function aq(e){var n,t=Do(e),i=Cg(e),r=null==(n=e.ownerDocument)?void 0:n.body,o=ga(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ga(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Dg(e),c=-i.scrollTop;return"rtl"===Gr(r||t).direction&&(s+=ga(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(Do(e)))}function ic(e){return e.split("-")[1]}function Eg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yC(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?_r(i):null,o=i?ic(i):null,a=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(r){case pi:c={x:a,y:n.y-t.height};break;case Wi:c={x:a,y:n.y+n.height};break;case Zi:c={x:n.x+n.width,y:s};break;case fi:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=r?Eg(r):null;if(null!=l){var d="y"===l?"height":"width";switch(o){case ec:c[l]=c[l]-(n[d]/2-t[d]/2);break;case sd:c[l]=c[l]+(n[d]/2-t[d]/2)}}return c}function mC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vC(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function Ig(e,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,d=void 0===l?sC:l,h=n.elementContext,f=void 0===h?cd:h,g=n.altBoundary,k=void 0!==g&&g,C=n.padding,E=void 0===C?0:C,I=mC("number"!=typeof E?E:vC(E,ad)),z=e.rects.popper,U=e.elements[k?f===cd?"reference":cd:f],Z=function uq(e,n,t,i){var r="clippingParents"===n?function dq(e){var n=ld(Ah(e)),i=["absolute","fixed"].indexOf(Gr(e).position)>=0&&Ti(e)?dd(e):e;return ya(i)?n.filter(function(r){return ya(r)&&pC(r,i)&&"body"!==Mr(r)}):[]}(e):[].concat(n),o=[].concat(r,[t]),s=o.reduce(function(c,l){var d=fC(e,l,i);return c.top=ga(d.top,c.top),c.right=Th(d.right,c.right),c.bottom=Th(d.bottom,c.bottom),c.left=ga(d.left,c.left),c},fC(e,o[0],i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(ya(U)?U:U.contextElement||Do(e.elements.popper),c,d,a),Q=nc(e.elements.reference),we=yC({reference:Q,element:z,strategy:"absolute",placement:r}),Re=Sg(Object.assign({},z,we)),Lt=f===cd?Re:Q,an={top:Z.top-Lt.top+I.top,bottom:Lt.bottom-Z.bottom+I.bottom,left:Z.left-Lt.left+I.left,right:Lt.right-Z.right+I.right},Dn=e.modifiersData.offset;if(f===cd&&Dn){var Ki=Dn[r];Object.keys(an).forEach(function(Vn){var Ca=[Zi,Wi].indexOf(Vn)>=0?1:-1,Da=[pi,Wi].indexOf(Vn)>=0?"y":"x";an[Vn]+=Ki[Da]*Ca})}return an}const yq={name:"flip",enabled:!0,phase:"main",fn:function fq(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var r=t.mainAxis,o=void 0===r||r,a=t.altAxis,s=void 0===a||a,c=t.fallbackPlacements,l=t.padding,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,k=void 0===g||g,C=t.allowedAutoPlacements,E=n.options.placement,I=_r(E),z=c||(I!==E&&k?function pq(e){if(_r(e)===Mg)return[];var n=Ih(e);return[aC(e),n,aC(n)]}(E):[Ih(E)]),U=[E].concat(z).reduce(function(cc,Io){return cc.concat(_r(Io)===Mg?function hq(e,n){void 0===n&&(n={});var r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?lC:c,d=ic(n.placement),h=d?s?cC:cC.filter(function(k){return ic(k)===d}):ad,f=h.filter(function(k){return l.indexOf(k)>=0});0===f.length&&(f=h);var g=f.reduce(function(k,C){return k[C]=Ig(e,{placement:C,boundary:r,rootBoundary:o,padding:a})[_r(C)],k},{});return Object.keys(g).sort(function(k,C){return g[k]-g[C]})}(n,{placement:Io,boundary:d,rootBoundary:h,padding:l,flipVariations:k,allowedAutoPlacements:C}):Io)},[]),Z=n.rects.reference,Q=n.rects.popper,we=new Map,Re=!0,Lt=U[0],an=0;an<U.length;an++){var Dn=U[an],Ki=_r(Dn),Vn=ic(Dn)===ec,Ca=[pi,Wi].indexOf(Ki)>=0,Da=Ca?"width":"height",mi=Ig(n,{placement:Dn,boundary:d,rootBoundary:h,altBoundary:f,padding:l}),Qi=Ca?Vn?Zi:fi:Vn?Wi:pi;Z[Da]>Q[Da]&&(Qi=Ih(Qi));var Yh=Ih(Qi),xa=[];if(o&&xa.push(mi[Ki]<=0),s&&xa.push(mi[Qi]<=0,mi[Yh]<=0),xa.every(function(cc){return cc})){Lt=Dn,Re=!1;break}we.set(Dn,xa)}if(Re)for(var nm=function(Io){var vd=U.find(function(Jh){var Sa=we.get(Jh);if(Sa)return Sa.slice(0,Io).every(function(im){return im})});if(vd)return Lt=vd,"break"},md=k?3:1;md>0&&"break"!==nm(md);md--);n.placement!==Lt&&(n.modifiersData[i]._skip=!0,n.placement=Lt,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ud(e,n,t){return ga(e,Th(n,t))}function Tg(e){var n=nc(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}const kq={name:"preventOverflow",enabled:!0,phase:"main",fn:function vq(e){var n=e.state,t=e.options,i=e.name,r=t.mainAxis,o=void 0===r||r,a=t.altAxis,s=void 0!==a&&a,f=t.tether,g=void 0===f||f,k=t.tetherOffset,C=void 0===k?0:k,E=Ig(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),I=_r(n.placement),S=ic(n.placement),z=!S,U=Eg(I),Z=function gq(e){return"x"===e?"y":"x"}(U),Q=n.modifiersData.popperOffsets,we=n.rects.reference,Re=n.rects.popper,Lt="function"==typeof C?C(Object.assign({},n.rects,{placement:n.placement})):C,an="number"==typeof Lt?{mainAxis:Lt,altAxis:Lt}:Object.assign({mainAxis:0,altAxis:0},Lt),Dn=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Ki={x:0,y:0};if(Q){if(o){var Vn,Ca="y"===U?pi:fi,Da="y"===U?Wi:Zi,mi="y"===U?"height":"width",Qi=Q[U],Yh=Qi+E[Ca],xa=Qi-E[Da],Kh=g?-Re[mi]/2:0,nm=S===ec?we[mi]:Re[mi],md=S===ec?-Re[mi]:-we[mi],Qh=n.elements.arrow,cc=g&&Qh?Tg(Qh):{width:0,height:0},Io=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},vd=Io[Ca],Jh=Io[Da],Sa=ud(0,we[mi],cc[mi]),im=z?we[mi]/2-Kh-Sa-vd-an.mainAxis:nm-Sa-vd-an.mainAxis,j_e=z?-we[mi]/2+Kh+Sa+Jh+an.mainAxis:md+Sa+Jh+an.mainAxis,rm=n.elements.arrow&&dd(n.elements.arrow),B_e=rm?"y"===U?rm.clientTop||0:rm.clientLeft||0:0,YD=null!=(Vn=Dn?.[U])?Vn:0,U_e=Qi+j_e-YD,KD=ud(g?Th(Yh,Qi+im-YD-B_e):Yh,Qi,g?ga(xa,U_e):xa);Q[U]=KD,Ki[U]=KD-Qi}if(s){var QD,Ea=Q[Z],Xh="y"===Z?"height":"width",JD=Ea+E["x"===U?pi:fi],XD=Ea-E["x"===U?Wi:Zi],om=-1!==[pi,fi].indexOf(I),e7=null!=(QD=Dn?.[Z])?QD:0,t7=om?JD:Ea-we[Xh]-Re[Xh]-e7+an.altAxis,n7=om?Ea+we[Xh]+Re[Xh]-e7-an.altAxis:XD,i7=g&&om?function mq(e,n,t){var i=ud(e,n,t);return i>t?t:i}(t7,Ea,n7):ud(g?t7:JD,Ea,g?n7:XD);Q[Z]=i7,Ki[Z]=i7-Ea}n.modifiersData[i]=Ki}},requiresIfExists:["offset"]},wq={name:"arrow",enabled:!0,phase:"main",fn:function Mq(e){var n,t=e.state,i=e.name,r=e.options,o=t.elements.arrow,a=t.modifiersData.popperOffsets,s=_r(t.placement),c=Eg(s),d=[fi,Zi].indexOf(s)>=0?"height":"width";if(o&&a){var h=function(n,t){return mC("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:vC(n,ad))}(r.padding,t),f=Tg(o),g="y"===c?pi:fi,k="y"===c?Wi:Zi,C=t.rects.reference[d]+t.rects.reference[c]-a[c]-t.rects.popper[d],E=a[c]-t.rects.reference[c],I=dd(o),S=I?"y"===c?I.clientHeight||0:I.clientWidth||0:0,Q=S/2-f[d]/2+(C/2-E/2),we=ud(h[g],Q,S-f[d]-h[k]);t.modifiersData[i]=((n={})[c]=we,n.centerOffset=we-Q,n)}},effect:function bq(e){var n=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||pC(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sq(e,n,t){void 0===t&&(t=!1);var i=Ti(n),r=Ti(n)&&function xq(e){var n=e.getBoundingClientRect(),t=tc(n.width)/e.offsetWidth||1,i=tc(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),o=Do(n),a=nc(e,r,t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==Mr(n)||xg(o))&&(s=function Dq(e){return e!==yi(e)&&Ti(e)?function Cq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Cg(e)}(n)),Ti(n)?((c=nc(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):o&&(c.x=Dg(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Eq(e){var n=new Map,t=new Set,i=[];function r(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&r(c)}}),i.push(o)}return e.forEach(function(o){n.set(o.name,o)}),e.forEach(function(o){t.has(o.name)||r(o)}),i}function Tq(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var kC={placement:"bottom",modifiers:[],strategy:"absolute"};function _C(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function Nq(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?kC:r;return function(s,c,l){void 0===l&&(l=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},kC,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],f=!1,g={state:d,setOptions:function(I){var S="function"==typeof I?I(d.options):I;C(),d.options=Object.assign({},o,d.options,S),d.scrollParents={reference:ya(s)?ld(s):s.contextElement?ld(s.contextElement):[],popper:ld(c)};var z=function Iq(e){var n=Eq(e);return rq.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function Aq(e){var n=e.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(i,d.options.modifiers)));return d.orderedModifiers=z.filter(function(U){return U.enabled}),function k(){d.orderedModifiers.forEach(function(E){var S=E.options,U=E.effect;if("function"==typeof U){var Z=U({state:d,name:E.name,instance:g,options:void 0===S?{}:S});h.push(Z||function(){})}})}(),g.update()},forceUpdate:function(){if(!f){var I=d.elements,S=I.reference,z=I.popper;if(_C(S,z)){d.rects={reference:Sq(S,dd(z),"fixed"===d.options.strategy),popper:Tg(z)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(an){return d.modifiersData[an.name]=Object.assign({},an.data)});for(var U=0;U<d.orderedModifiers.length;U++)if(!0!==d.reset){var Z=d.orderedModifiers[U],Q=Z.fn,we=Z.options;"function"==typeof Q&&(d=Q({state:d,options:void 0===we?{}:we,name:Z.name,instance:g})||d)}else d.reset=!1,U=-1}}},update:Tq(function(){return new Promise(function(E){g.forceUpdate(),E(d)})}),destroy:function(){C(),f=!0}};if(!_C(s,c))return g;function C(){h.forEach(function(E){return E()}),h=[]}return g.setOptions(l).then(function(E){!f&&l.onFirstUpdate&&l.onFirstUpdate(E)}),g}}var Nh={passive:!0},Lq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MC(e){var n,t=e.popper,i=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=a.x,g=void 0===f?0:f,k=a.y,C=void 0===k?0:k,E="function"==typeof d?d({x:g,y:C}):{x:g,y:C};g=E.x,C=E.y;var I=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),z=fi,U=pi,Z=window;if(l){var Q=dd(t),we="clientHeight",Re="clientWidth";Q===yi(t)&&"static"!==Gr(Q=Do(t)).position&&"absolute"===s&&(we="scrollHeight",Re="scrollWidth"),(r===pi||(r===fi||r===Zi)&&o===sd)&&(U=Wi,C-=(h&&Q===Z&&Z.visualViewport?Z.visualViewport.height:Q[we])-i.height,C*=c?1:-1),r!==fi&&(r!==pi&&r!==Wi||o!==sd)||(z=Zi,g-=(h&&Q===Z&&Z.visualViewport?Z.visualViewport.width:Q[Re])-i.width,g*=c?1:-1)}var Vn,Dn=Object.assign({position:s},l&&Lq),Ki=!0===d?function Vq(e,n){var i=e.y,r=n.devicePixelRatio||1;return{x:tc(e.x*r)/r||0,y:tc(i*r)/r||0}}({x:g,y:C},yi(t)):{x:g,y:C};return g=Ki.x,C=Ki.y,Object.assign({},Dn,c?((Vn={})[U]=S?"0":"",Vn[z]=I?"0":"",Vn.transform=(Z.devicePixelRatio||1)<=1?"translate("+g+"px, "+C+"px)":"translate3d("+g+"px, "+C+"px, 0)",Vn):((n={})[U]=S?C+"px":"",n[z]=I?g+"px":"",n.transform="",n))}var qq=Nq({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function Oq(e){var n=e.state,t=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,c=yi(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&l.forEach(function(d){d.addEventListener("scroll",t.update,Nh)}),s&&c.addEventListener("resize",t.update,Nh),function(){o&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Nh)}),s&&c.removeEventListener("resize",t.update,Nh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function Pq(e){var n=e.state;n.modifiersData[e.name]=yC({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Hq(e){var n=e.state,t=e.options,i=t.gpuAcceleration,r=void 0===i||i,o=t.adaptive,a=void 0===o||o,s=t.roundOffsets,c=void 0===s||s,l={placement:_r(n.placement),variation:ic(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,MC(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,MC(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 Bq(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];!Ti(o)||!Mr(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(a){var s=r[a];!1===s?o.removeAttribute(a):o.setAttribute(a,!0===s?"":s)}))})},effect:function zq(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(i){var r=n.elements[i],o=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(c,l){return c[l]="",c},{});!Ti(r)||!Mr(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const Wq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function $q(e){var n=e.state,i=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=lC.reduce(function(d,h){return d[h]=function Gq(e,n,t){var i=_r(e),r=[fi,pi].indexOf(i)>=0?-1:1,o="function"==typeof t?t(Object.assign({},n,{placement:e})):t,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[fi,Zi].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(h,n.rects,o),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[i]=a}},rc=["*"];function Zq(e,n){if(1&e){const t=Ue();y(0,"button",1),L("click",function(){return de(t),ue(R().close())}),m()}}const CG=["dialog"];function e$(e,n){1&e&&_(0),2&e&&wi(R(2).title)}function t$(e,n){}function n$(e,n){if(1&e&&(y(0,"h3",2),H(1,e$,1,1,"ng-template",null,0,Ut)(3,t$,0,0,"ng-template",4),m()),2&e){const t=gt(2),i=R();b(3),D("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}function i$(e,n){if(1&e&&(y(0,"span"),Os(1,0),_f(2,"percent"),m()),2&e){const t=R();b(2),uf(Mf(2,1,t.getValue()/t.max)),function x5(e){!function aO(e,n,t){if(gl>0){const i=e.data[t];h5(e,n,Array.isArray(i)?i:i.update,Ar()-gl-1,yl)}yl=0,gl=0}(be(),O(),e+Y)}(1)}}const wC={animation:!0,transitionTimerDelayMs:5};let ma=(()=>{class e{constructor(){this.animation=wC.animation}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),f$=(()=>{class e{constructor(){this._ngbConfig=w(ma),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xo(e){return"string"==typeof e}function un(e){return!isNaN(function Yn(e){return parseInt(`${e}`,10)}(e))}function va(e){return null!=e}function oc(e){return(e||document.body).getBoundingClientRect()}const v$=()=>{},{transitionTimerDelayMs:k$}=wC,hd=new Map,gi=(e,n,t,i)=>{let r=i.context||{};const o=hd.get(n);if(o)switch(i.runningTransition){case"continue":return di;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),hd.delete(n)}const a=t(n,i.animation,r)||v$;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>a()),ie(void 0).pipe(function m$(e){return n=>new ut(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 Ye,c=new Ye,l=s.pipe(function jz(...e){return n=>Ol(n,ie(...e))}(!0));hd.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const d=function y$(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const h=vn(n,"transitionend").pipe(mn(l),ln(({target:g})=>g===n));o6(i6(d+k$).pipe(mn(l)),h,c).pipe(mn(l)).subscribe(()=>{hd.delete(n),e.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()},M$=(e,n,t)=>{let{direction:i,maxSize:r,dimension:o}=t;const{classList:a}=e;function s(){a.add("collapse"),"show"===i?a.add("show"):a.remove("show")}if(n)return r||(r=function _$(e,n){if(typeof navigator>"u")return"0px";const{classList:t}=e,i=t.contains("show");i||t.add("show"),e.style[n]="";const r=e.getBoundingClientRect()[n]+"px";return i||t.remove("show"),r}(e,o),t.maxSize=r,e.style[o]="show"!==i?r:"0px",a.remove("collapse","collapsing","show"),oc(e),a.add("collapsing")),e.style[o]="show"===i?r:"0px",()=>{s(),a.remove("collapsing"),e.style[o]=""};s()};let b$=(()=>{class e{constructor(){this._ngbConfig=w(ma),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ng=(()=>{class e{constructor(){this._config=w(b$),this._element=w(Oe),this._zone=w(ve),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new K,this.horizontal=this._config.horizontal,this.shown=new K,this.hidden=new K}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,i){return gi(this._zone,this._element.nativeElement,M$,{animation:i,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,i){this._runTransition(t,i).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,r){2&i&&ze("collapse-horizontal",r.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}}return e})(),w$=0,EC=(()=>{class e{constructor(){this._vcr=w(Gn),this._element=w(Oe).nativeElement,this._item=w(So),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(const t of this._viewRef.rootNodes)this._element.appendChild(t)}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,r,o){if(1&i&&tn(o,St,7),2&i){let a;ft(a=yt())&&(r._bodyTpl=a.first)}},hostAttrs:[1,"accordion-body"],standalone:!0})}}return e})(),Og=(()=>{class e{constructor(){this.item=w(So),this.ngbCollapse=w(Ng)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,r){2&i&&($n("id",r.item.collapseId),G("aria-labelledby",r.item.toggleId))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[V2([Ng])]})}}return e})(),IC=(()=>{class e{constructor(){this.item=w(So),this.accordion=w(Oh)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(i,r){1&i&&L("click",function(){return!r.item.disabled&&r.accordion.toggle(r.item.id)}),2&i&&($n("id",r.item.toggleId),G("aria-controls",r.item.collapseId)("aria-expanded",!r.item.collapsed),ze("collapsed",r.item.collapsed))},standalone:!0})}}return e})(),TC=(()=>{class e{constructor(){this.item=w(So)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(i,r){2&i&&$n("disabled",r.item.disabled)},standalone:!0,features:[V2([IC])]})}}return e})(),AC=(()=>{class e{constructor(){this.item=w(So)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,r){2&i&&ze("collapsed",r.item.collapsed)},standalone:!0})}}return e})(),So=(()=>{class e{constructor(){this._accordion=w(Oh),this._cd=w(Rn),this._destroyRef=w(Or),this._collapsed=!0,this._id="ngb-accordion-item-"+w$++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new K,this.shown=new K,this.hide=new K,this.hidden=new K}set id(t){xo(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(Ur(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),t.shown.pipe(Ur(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}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(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,r,o){if(1&i&&tn(o,Og,7),2&i){let a;ft(a=yt())&&(r._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,r){2&i&&$n("id",r.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}}return e})(),Oh=(()=>{class e{constructor(){this._config=w(f$),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new K,this.shown=new K,this.hide=new K,this.hidden=new K}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 i=this._getItem(t);return!!i&&!i.collapsed}_ensureCanExpand(t){return!(this.closeOthers&&(this._items?(this._items.find(i=>!i.collapsed&&t!==i)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(t){return this._items?.find(i=>i.id===t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,r,o){if(1&i&&tn(o,So,4),2&i){let a;ft(a=yt())&&(r._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}}return e})(),Rg=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),C$=(()=>{class e{constructor(){this._ngbConfig=w(ma),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const D$=({classList:e})=>{e.remove("show")};let Pg=(()=>{class e{constructor(){this._config=w(C$),this._elementRef=w(Oe),this._zone=w(ve),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new K}close(){const t=gi(this._zone,this._elementRef.nativeElement,D$,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,r){2&i&&(lo("alert show"+(r.type?" alert-"+r.type:"")),ze("fade",r.animation)("alert-dismissible",r.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[fe],ngContentSelectors:rc,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(i,r){1&i&&(ho(),po(0),H(1,Zq,1,0,"button",0)),2&i&&(b(),Ft(r.dismissible?1:-1))},styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}}return e})(),Fg=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),RC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),PC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();const Hh=(e,n)=>!!n&&n.some(t=>t.contains(e)),jC=(e,n)=>!n||null!=function g$(e,n){return!n||typeof e.closest>"u"?null:e.closest(n)}(e,n),G$=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 jh(e,n,t,i,r,o,a,s){t&&e.runOutsideAngular((e=>G$?()=>setTimeout(()=>e(),100):e)(()=>{const l=vn(n,"keydown").pipe(mn(r),ln(f=>"Escape"===f.key),dn(f=>f.preventDefault())),d=vn(n,"mousedown").pipe(Ee(f=>{const g=f.target;return 2!==f.button&&!Hh(g,a)&&("inside"===t?Hh(g,o)&&jC(g,s):"outside"===t?!Hh(g,o):jC(g,s)||!Hh(g,o))}),mn(r)),h=vn(n,"mouseup").pipe(Jy(d),ln(([f,g])=>g),function zz(e,n=n6){const t=i6(e,n);return a6(()=>t)}(0),mn(r));o6([l.pipe(Ee(f=>0)),h.pipe(Ee(f=>1))]).subscribe(f=>e.run(()=>i(f)))}))}const BC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zC(e){const n=Array.from(e.querySelectorAll(BC)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}let W$=(()=>{class e{constructor(){this._element=w(Ct).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Z$=/\s+/,Y$=/ +/gi,K$={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"]},J$=/^left/,X$=/^right/,eW=/^start/,tW=/^end/;function qC({placement:e,baseClass:n},t){let i=Array.isArray(e)?e:e.split(Z$),o=i.findIndex(l=>"auto"===l);o>=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==i.find(d=>-1!==d.search("^"+l))&&i.splice(o++,1,l)});const a=i.map(l=>function Q$(e,n){const[t,i]=K$[e];return n&&i||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,f=l.placement;let g=h.className;g=g.replace(d,""),g+=` ${function nW(e,n){let[t,i]=n.split("-");const r=t.replace(J$,"start").replace(X$,"end");let o=[r];if(i){let a=i;("left"===t||"right"===t)&&(a=a.replace(eW,"top").replace(tW,"bottom")),o.push(`${r}-${a}`)}return e&&(o=o.map(a=>`${e}-${a}`)),o.join(" ")}(n,f)}`,g=g.trim().replace(Y$," "),h.className=g}},yq,kq,wq,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function GC(e){return e}function Bh(){const e=w(W$);let n=null;return{createPopper(t){if(!n){let r=(t.updatePopperOptions||GC)(qC(t,e));n=qq(t.hostElement,t.targetElement,r)}},update(){n&&n.update()},setOptions(t){if(n){let r=(t.updatePopperOptions||GC)(qC(t,e));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}function zh(e){return n=>(n.modifiers.push(Wq,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let nD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),rD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),MW=(()=>{class e{constructor(){this._ngbConfig=w(ma),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class ba{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class oD{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=w(Ct),this._applicationRef=w(Di),this._injector=w(Ve),this._viewContainerRef=w(Gn),this._ngZone=w(ve)}open(n,t,i=!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:r}=this._windowRef.location,o=new Ye;Fr(()=>{o.next(),o.complete()},{injector:this._injector,phase:An.MixedReadWrite});const a=o.pipe(on(()=>gi(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?gi(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(dn(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):ie(void 0)}_getContentRef(n,t){if(n){if(n instanceof St){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new ba([i.rootNodes],i)}return new ba([[this._document.createTextNode(`${n}`)]])}return new ba([])}}let bW=(()=>{class e{constructor(){this._document=w(Ct)}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:a}=r;if(t>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=a),r.overflow=o}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),wW=(()=>{class e{constructor(){this._nativeElement=w(Oe).nativeElement,this._zone=w(ve),this._injector=w(Ve)}ngOnInit(){Fr(()=>gi(this._zone,this._nativeElement,(t,i)=>{i&&oc(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:An.MixedReadWrite})}hide(){return gi(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(lo("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ze("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[fe],decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return e})();class aD{update(n){}close(n){}dismiss(n){}}const CW=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],DW=["animation","backdropClass"];class xW{_applyWindowOptions(n,t){CW.forEach(i=>{va(t[i])&&(n[i]=t[i])})}_applyBackdropOptions(n,t){DW.forEach(i=>{va(t[i])&&(n[i]=t[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(mn(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(mn(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Ye,this._dismissed=new Ye,this._hidden=new Ye,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,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 DC(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ie(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Qy(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var yd=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(yd||{});let SW=(()=>{class e{constructor(){this._document=w(Ct),this._elRef=w(Oe),this._zone=w(ve),this._injector=w(Ve),this._closed$=new Ye,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new K,this.shown=new Ye,this.hidden=new Ye}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":xo(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,Fr(()=>this._show(),{injector:this._injector,phase:An.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},a=Qy(gi(this._zone,t,()=>t.classList.remove("show"),i),gi(this._zone,this._dialogEl.nativeElement,()=>{},i));return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){const t={animation:this.animation,runningTransition:"continue"};Qy(gi(this._zone,this._elRef.nativeElement,(o,a)=>{a&&oc(o),o.classList.add("show")},t),gi(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(()=>{vn(t,"keydown").pipe(mn(this._closed$),ln(r=>"Escape"===r.key)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(yd.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;vn(this._dialogEl.nativeElement,"mousedown").pipe(mn(this._closed$),dn(()=>i=!1),qi(()=>vn(t,"mouseup").pipe(mn(this._closed$),Ei(1))),ln(({target:r})=>t===r)).subscribe(()=>{i=!0}),vn(t,"click").pipe(mn(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(yd.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=zC(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&gi(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&na(CG,7),2&i){let o;ft(o=yt())&&(r._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,r){2&i&&(G("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),lo("modal d-block"+(r.windowClass?" "+r.windowClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[fe],ngContentSelectors:rc,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,r){1&i&&(ho(),y(0,"div",1,0)(2,"div",2),po(3),m()()),2&i&&lo("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return e})(),EW=(()=>{class e{constructor(){this._applicationRef=w(Di),this._injector=w(Ve),this._environmentInjector=w(Mn),this._document=w(Ct),this._scrollBar=w(bW),this._activeWindowCmptHasChanged=new Ye,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new K;const t=w(ve);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const i=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{e.runOutsideAngular(()=>{const r=vn(n,"focusin").pipe(mn(t),Ee(o=>o.target));vn(n,"keydown").pipe(mn(t),ln(o=>"Tab"===o.key),Jy(r)).subscribe(([o,a])=>{const[s,c]=zC(n);(a===s||a===n)&&o.shiftKey&&(c.focus(),o.preventDefault()),a===c&&!o.shiftKey&&(s.focus(),o.preventDefault())}),i&&vn(n,"click").pipe(mn(t),Jy(r),Ee(o=>o[1])).subscribe(o=>o.focus())})})(t,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r){const o=r.container instanceof HTMLElement?r.container:va(r.container)?this._document.querySelector(r.container):this._document.body;if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new aD,s=(t=r.injector||t).get(Mn,null)||this._environmentInjector,c=this._getContentRef(t,s,i,a,r);let l=!1!==r.backdrop?this._attachBackdrop(o):void 0,d=this._attachWindowComponent(o,c.nodes),h=new xW(d,c,l,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Ei(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),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(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=qf(wW,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=qf(SW,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_getContentRef(t,i,r,o,a){return r?r instanceof St?this._createFromTemplateRef(r,o):xo(r)?this._createFromString(r):this._createFromComponent(t,i,r,o,a):new ba([])}_createFromTemplateRef(t,i){const o=t.createEmbeddedView({$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}});return this._applicationRef.attachView(o),new ba([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ba([[i]])}_createFromComponent(t,i,r,o,a){const c=qf(r,{environmentInjector:i,elementInjector:Ve.create({providers:[{provide:aD,useValue:o}],parent:t})}),l=c.location.nativeElement;return a.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new ba([[l]],c.hostView,c)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),sD=(()=>{class e{constructor(){this._injector=w(Ve),this._modalStack=w(EW),this._config=w(MW)}open(t,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({providers:[sD]})}}return e})(),uD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),kD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();const LW={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function _D(e,n,t,i,r,o=0,a=0){const s=function VW(e){const n=(e||"").trim();if(0===n.length)return[];const t=n.split(/\s+/).map(r=>r.split(":")).map(r=>LW[r[0]]||r),i=t.filter(r=>r.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&t.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:t}(n);if(0===s.length)return()=>{};const c=new Set,l=[];let d;function h(g,k){e.addEventListener(g,k),l.push(()=>e.removeEventListener(g,k))}function f(g,k){clearTimeout(d),k>0?d=setTimeout(g,k):g()}for(const[g,k]of s)k?(h(g,()=>{c.add(g),f(()=>c.size>0&&i(),o)}),h(k,()=>{c.delete(g),f(()=>0===c.size&&r(),a)})):h(g,()=>t()?f(r,a):f(i,o));return()=>l.forEach(g=>g())}let HW=(()=>{class e{constructor(){this._ngbConfig=w(ma),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="click",this.disablePopover=!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(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jW=0,BW=(()=>{class e{isTitleTemplate(){return this.title instanceof St}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(i,r){2&i&&($n("id",r.id),lo("popover"+(r.popoverClass?" "+r.popoverClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[fe],ngContentSelectors:rc,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(ho(),B(0,"div",1),H(1,n$,4,2,"h3",2),y(2,"div",3),po(3),m()),2&i&&(b(),Ft(r.title?1:-1))},dependencies:[ra],encapsulation:2,changeDetection:0})}}return e})(),zW=(()=>{class e{constructor(){this._config=w(HW),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.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new K,this.hidden=new K,this._nativeElement=w(Oe).nativeElement,this._ngZone=w(ve),this._document=w(Ct),this._changeDetector=w(Rn),this._injector=w(Ve),this._ngbPopoverWindowId="ngb-popover-"+jW++,this._popupService=new oD(BW),this._windowRef=null,this._positioning=Bh()}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:r}=this._popupService.open(this.ngbPopover,t??this.popoverContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",t??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),"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-popover",updatePopperOptions:o=>this.popperOptions(zh([0,8])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=dl(()=>{this._positioning.update()},{phase:An.MixedReadWrite,injector:this._injector})}),jh(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=_D(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:i,disablePopover:r,popoverClass:o}){o&&this.isOpen()&&this._windowRef.setInput("popoverClass",o.currentValue),(t||i||r)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(xo(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[zt]})}}return e})(),MD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),UW=(()=>{class e{constructor(){this.max=100,this.animated=!1,this.ariaLabel="progress bar",this.striped=!1,this.showValue=!1}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qW=(()=>{class e{set max(t){this._max=!un(t)||t<=0?100:t}get max(){return this._max}constructor(){this._config=w(UW),this.stacked=w(GW,{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 CC(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(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:7,hostBindings:function(i,r){2&i&&(G("aria-valuenow",r.getValue())("aria-valuemax",r.max)("aria-label",r.ariaLabel),hl("width",r.stacked?r.getPercentValue():null,"%")("height",r.height))},inputs:{max:"max",animated:"animated",ariaLabel:"ariaLabel",striped:"striped",showValue:"showValue",textType:"textType",type:"type",value:"value",height:"height"},standalone:!0,features:[fe],ngContentSelectors:rc,decls:3,vars:11,consts:()=>{let t;return t=$localize`:@@ngb.progressbar.value:${"\ufffd0\ufffd"}:INTERPOLATION:`,[t]},template:function(i,r){1&i&&(ho(),y(0,"div"),H(1,i$,3,3,"span"),po(2),m()),2&i&&(e5("progress-bar",r.type?r.textType?" bg-"+r.type:" text-bg-"+r.type:"","",r.textType?" text-"+r.textType:"",""),hl("width",r.stacked?null:r.getPercentValue(),"%"),ze("progress-bar-animated",r.animated)("progress-bar-striped",r.striped),b(),Ft(r.showValue?1:-1))},dependencies:[bw],encapsulation:2,changeDetection:0})}}return e})(),GW=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-progressbar-stacked"]],hostAttrs:[1,"progress-stacked"],standalone:!0,features:[fe],ngContentSelectors:rc,decls:1,vars:0,template:function(i,r){1&i&&(ho(),po(0))},encapsulation:2,changeDetection:0})}}return e})(),bD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),wD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),CD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),DD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),xD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),YW=(()=>{class e{constructor(){this._ngbConfig=w(ma),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(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),KW=0,QW=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=se({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,r){2&i&&($n("id",r.id),lo("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[fe],ngContentSelectors:rc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,r){1&i&&(ho(),B(0,"div",0),y(1,"div",1),po(2),m())},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})(),SD=(()=>{class e{constructor(){this._config=w(YW),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 K,this.hidden=new K,this._nativeElement=w(Oe).nativeElement,this._ngZone=w(ve),this._document=w(Ct),this._changeDetector=w(Rn),this._injector=w(Ve),this._ngbTooltipWindowId="ngb-tooltip-"+KW++,this._popupService=new oD(QW),this._windowRef=null,this._positioning=Bh()}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,t??this.tooltipContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),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:o=>this.popperOptions(zh([0,6])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=dl(()=>{this._positioning.update()},{phase:An.MixedReadWrite,injector:this._injector})}),jh(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){null!=this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=_D(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&this._windowRef.setInput("tooltipClass",t.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(xo(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=q({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"],standalone:!0,features:[zt]})}}return e})(),Qg=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();new $("live announcer delay",{providedIn:"root",factory:()=>100});let ED=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})(),ID=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({})}}return e})();const XW=[Rg,Fg,RC,PC,nD,rD,cD,uD,ID,kD,MD,bD,wD,CD,DD,xD,Qg,ED];let eZ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=$e({imports:[XW,Rg,Fg,RC,PC,nD,rD,cD,uD,ID,kD,MD,bD,wD,CD,DD,xD,Qg,ED]})}}return e})();function nZ(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 iZ=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:nZ(e)}])),rZ=["*"],TD=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],AD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ND=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],OD=[["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"}]],RD=[["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"}]],PD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],FD=[["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"}]],LD=[["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"}]],VD=[["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"}]],HD=[["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"}]],jD=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],BD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],zD=[["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"}]],UD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],qD=[["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"}]],GD=[["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"}]],$D=[["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 gd={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 Jg=new $("LucideIcons",{factory:()=>new Xg({})});class Xg{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 gve=(()=>{class e{constructor(){this.color=gd.stroke,this.size=gd.width,this.strokeWidth=gd["stroke-width"],this.absoluteStrokeWidth=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function mve(e,n=3){return parseFloat(e.toFixed(n)).toString(10)}let wa=(()=>{class e{constructor(t,i,r,o,a){this.elem=t,this.renderer=i,this.changeDetector=r,this.iconProviders=o,this.iconConfig=a,this.absoluteStrokeWidth=!1,this.defaultSize=gd.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 i=this.img??this.name;if("string"==typeof i){const r=this.getIcon(this.toPascalCase(i));if(!r)throw new Error(`The "${i}" icon has not been provided by any available icon providers.`);this.replaceElement(r)}else{if(!Array.isArray(i))throw new Error("No icon name or image has been provided.");this.replaceElement(i)}}this.changeDetector.markForCheck()}replaceElement(t){const i={...gd,width:this.size,height:this.size,stroke:this.color??this.iconConfig.color,"stroke-width":this.absoluteStrokeWidth?mve(this.strokeWidth/(this.size/this.defaultSize)):this.strokeWidth.toString(10)},r=this.createElement(["svg",i,t]);r.classList.add("lucide"),"string"==typeof this.name&&r.classList.add(`lucide-${this.name.replace("_","-")}`),this.class&&r.classList.add(...this.class.split(/ /).map(a=>a.trim()).filter(a=>a.length>0));const o=this.elem.nativeElement.childNodes;for(const a of o)this.renderer.removeChild(this.elem.nativeElement,a);this.renderer.appendChild(this.elem.nativeElement,r)}toPascalCase(t){return t.replace(/(\w)([a-z0-9]*)(_|-|\s*)/g,(i,r,o)=>r.toUpperCase()+o.toLowerCase())}parseNumber(t){if("string"==typeof t){const i=parseInt(t,10);if(isNaN(i))throw new Error(`${t} is not numeric.`);return i}return t}getIcon(t){for(const i of Array.isArray(this.iconProviders)?this.iconProviders:[this.iconProviders])if(i.hasIcon(t))return i.getIcon(t);return null}createElement([t,i,r=[]]){const o=this.renderer.createElement(t,"http://www.w3.org/2000/svg");return Object.keys(i).forEach(a=>{const s="string"==typeof i[a]?i[a]:i[a].toString(10);this.renderer.setAttribute(o,a,s)}),r.length&&r.forEach(a=>{const s=this.createElement(a);this.renderer.appendChild(o,s)}),o}}return e.\u0275fac=function(t){return new(t||e)(N(Oe),N(lr),N(Rn),N(Jg),N(gve))},e.\u0275cmp=se({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"},features:[zt],ngContentSelectors:rZ,decls:1,vars:0,template:function(t,i){1&t&&(ho(),po(0))},encapsulation:2}),e})();class vve{constructor(n){this.icons=n}}const kve=e=>new Xg(e??{});let Eo=(()=>{class e{static pick(t){return{ngModule:e,providers:[{provide:Jg,multi:!0,useValue:new Xg(t)},{provide:Jg,multi:!0,useFactory:kve,deps:[[new mc,vve]]}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ke({type:e}),e.\u0275inj=$e({imports:[[]]}),e})(),mt=(()=>{class e extends EventTarget{stations=[];accessories$=new ut(t=>{const i=r=>t.next(r);return window.homebridge.addEventListener("addAccessory",i),()=>{window.homebridge.removeEventListener("addAccessory",i)}});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(i=>i.uniqueId===t)}getDevice(t){for(const i of this.stations)if(i.devices){const r=i.devices.find(o=>o.uniqueId===t);if(r)return r}}loadStoredAccessories(){var t=this;return oe(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(r=>{t.addAccessory(r)}),0!==i.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(t){this.stations.find(i=>i.uniqueId===t.uniqueId)||this.stations.push(t)}getConfig(){return this.config[0]}updateConfig(t){var i=this;return oe(function*(){try{i.config=[t],yield window.homebridge.updatePluginConfig(i.config),i.dispatchEvent(new Event("configChanged"))}catch(r){console.log("There was an error updating your config: ",r,i.config)}})()}getPlatformConfig(){var t=this;return oe(function*(){try{const i=yield window.homebridge.getPluginConfig();t.config=i.length>0?i:t.config}catch(i){console.error("Error fetching plugin config:",i)}return t.config})()}saveConfig(){return oe(function*(){try{yield window.homebridge.savePluginConfig()}catch(t){console.log("There was an error when saving config: ",t)}})()}resetConfig(){return oe(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(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const _ve=e=>({$implicit:e,type:"both"}),Mve=e=>({$implicit:e,type:"station"}),bve=e=>({$implicit:e,type:"device"}),wve=(e,n)=>["/config",e,n];function Cve(e,n){if(1&e){const t=Ue();y(0,"div",7)(1,"h4",8),_(2,"Refresh stations and devices"),m(),y(3,"button",9),L("click",function(){return ue(de(t).$implicit.dismiss("Cross click"))}),m()(),y(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."),m(),y(8,"ngb-alert",12),_(9," We strongly recommend that you "),y(10,"strong"),_(11,"stop"),m(),_(12," the plugin before proceeding further. "),m(),y(13,"p"),_(14,"Otherwise, you may experience glitches such as push notifications from the plugin no longer functioning correctly. (See "),y(15,"a",13),_(16,"here"),m(),_(17," for more information)."),m()()(),y(18,"div",14)(19,"a",15),L("click",function(){return ue(de(t).$implicit.close("Login"))}),_(20,"Login with eufy"),m()()}2&e&&(b(8),D("dismissible",!1))}function Dve(e,n){if(1&e){const t=Ue();ci(0),B(1,"p"),y(2,"ngb-alert",23)(3,"a",24),L("click",function(){de(t);const r=R(4),o=gt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=R(4),o=gt(1);return ue(r.openReloadModal(o))}),_(4," Plugin has been updated, please refresh and reboot the plugin. "),m()(),B(5,"p"),li()}2&e&&(b(2),D("dismissible",!1))}function xve(e,n){1&e&&fl(0)}function Sve(e,n){if(1&e&&(ci(0),y(1,"div",28),H(2,xve,1,0,"ng-container",29),m(),li()),2&e){const t=R(2).$implicit;R(5);const i=gt(8);b(2),D("ngTemplateOutlet",i)("ngTemplateOutletContext",fo(2,_ve,t))}}function Eve(e,n){1&e&&fl(0)}function Ive(e,n){1&e&&fl(0)}function Tve(e,n){if(1&e&&(ci(0),y(1,"div",28),H(2,Ive,1,0,"ng-container",29),m(),li()),2&e){const t=n.$implicit;R(8);const i=gt(8);b(2),D("ngTemplateOutlet",i)("ngTemplateOutletContext",fo(2,bve,t))}}function Ave(e,n){if(1&e&&(y(0,"div",28),H(1,Eve,1,0,"ng-container",29),m(),H(2,Tve,3,4,"ng-container",26)),2&e){const t=R(2).$implicit,i=R(5),r=gt(8);b(),D("ngTemplateOutlet",r)("ngTemplateOutletContext",fo(4,Mve,t)),b(),D("ngForOf",t.devices)("ngForTrackBy",i.trackByDeviceId)}}function Nve(e,n){if(1&e&&(ci(0),H(1,Sve,3,4,"ng-container",6)(2,Ave,3,6,"ng-template",null,5,Ut),li()),2&e){const t=gt(3),i=R().$implicit;b(),D("ngIf",i.devices[0].uniqueId===i.uniqueId)("ngIfElse",t)}}function Ove(e,n){if(1&e&&(ci(0),H(1,Nve,4,2,"ng-container",27),li()),2&e){const t=n.$implicit;b(),D("ngIf",t&&0!==(null==t.devices?null:t.devices.length))}}function Rve(e,n){if(1&e&&(B(0,"p"),y(1,"span"),_(2,"Click the name to access accessory configuration."),m(),B(3,"p"),y(4,"div",25),H(5,Ove,2,1,"ng-container",26),m()),2&e){const t=R(2).ngIf,i=R(2);b(5),D("ngForOf",t)("ngForTrackBy",i.trackByStationId)}}function Pve(e,n){if(1&e&&(ci(0),H(1,Dve,6,1,"ng-container",6)(2,Rve,6,2,"ng-template",null,4,Ut),li()),2&e){const t=gt(3),i=R(3);b(),D("ngIf",i.versionUnmatched)("ngIfElse",t)}}function Fve(e,n){if(1&e&&(ci(0),H(1,Pve,4,2,"ng-container",6),li()),2&e){const t=n.ngIf;R(2);const i=gt(6);b(),D("ngIf",0!==t.length)("ngIfElse",i)}}function Lve(e,n){if(1&e){const t=Ue();ci(0),y(1,"div",16)(2,"button",17),L("click",function(){de(t);const r=R(),o=gt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=R(),o=gt(1);return ue(r.openReloadModal(o))}),B(3,"lucide-angular",18),m(),y(4,"button",19),B(5,"lucide-angular",20),m(),y(6,"button",21),B(7,"lucide-angular",22),m()(),H(8,Fve,2,2,"ng-container",6),_f(9,"async"),li()}if(2&e){const t=R(),i=gt(6);b(8),D("ngIf",Mf(9,2,t.stations$))("ngIfElse",i)}}function Vve(e,n){1&e&&(y(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 "),m(),y(3,"button",31),_(4,"Cancel"),m()())}function Hve(e,n){1&e&&(y(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. "),m())}function jve(e,n){if(1&e&&B(0,"lucide-angular",43),2&e){const t=R().$implicit;D("ngbTooltip",t.ignored?"Security Control OFF":"Security Control ON")("name",t.ignored?"shield-off":"shield")}}function Bve(e,n){1&e&&B(0,"lucide-angular",44)}function zve(e,n){if(1&e&&(y(0,"a",33)(1,"div",34)(2,"div",35)(3,"span",36),ci(4,37),H(5,jve,1,2,"lucide-angular",38)(6,Bve,1,0,"lucide-angular",39),li(),m()(),B(7,"img",40),y(8,"div",41)(9,"h5",42),_(10),m()()()()),2&e){let t;const i=n.$implicit,r=n.type,o=R();D("routerLink",_l(9,wve,r,i.uniqueId)),b(4),D("ngSwitch",!0),b(),D("ngSwitchCase","both"===r),b(),D("ngSwitchCase","device"===r&&i.isKeypad),b(),hl("opacity",("both"===r?i.devices[0].ignored:i.ignored)?.3:1),D("src","assets/devices/"+((null==(t=o.DeviceImage.get(i.type))?null:t.image)||"unknown.png"),T1)("alt",i.displayName),b(3),wi(i.displayName)}}let Uve=(()=>{class e{modalService;pluginService;route;router;zone;cdr;stationsSubject=new ei([]);stations$=this.stationsSubject.asObservable();versionUnmatched=!1;adminAccountUsed=!1;waitForAccessories;DeviceImage=iZ;closeResult="";constructor(t,i,r,o,a,s){this.modalService=t,this.pluginService=i,this.route=r,this.router=o,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 oe(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAddAccessory(){var t=this;return oe(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAdminAccountUsed(){var t=this;return oe(function*(){console.log("Admin account used"),t.adminAccountUsed=!0,t.stationsSubject.next([]),yield t.pluginService.resetConfig(),t.cdr.markForCheck()})()}updateStations(){var t=this;return oe(function*(){const i=t.pluginService.getStations();if(i.every(a=>!a.devices||0===a.devices.length))return void console.log("No stations with devices populated. Skipping update.");const{ignoreStations:r=[],ignoreDevices:o=[]}=t.pluginService.getConfig();i.forEach(a=>{a.ignored=r.includes(a.uniqueId),a.devices?.forEach(s=>{s.ignored=o.includes(s.uniqueId)})}),i!==t.stationsSubject.getValue()?(t.stationsSubject.next(i),t.cdr.markForCheck()):console.log("Nothing to update. Skipping update.")})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(t){return t===yd.ESC?"by pressing ESC":t===yd.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,i){return i.uniqueId}trackByDeviceId(t,i){return i.uniqueId}static \u0275fac=function(i){return new(i||e)(N(sD),N(mt),N(_o),N(Zn),N(ve),N(Rn))};static \u0275cmp=se({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},standalone:!0,features:[fe],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(i,r){if(1&i&&H(0,Cve,21,1,"ng-template",null,0,Ut)(2,Lve,10,4,"ng-container",6)(3,Vve,5,0,"ng-template",null,1,Ut)(5,Hve,2,0,"ng-template",null,2,Ut)(7,zve,11,12,"ng-template",null,3,Ut),2&i){const o=gt(4);b(2),D("ngIf",!r.adminAccountUsed)("ngIfElse",o)}},dependencies:[vr,Fn,$u,Fl,py,ra,Eo,wa,Fg,Pg,Qg,SD,_w],encapsulation:2,changeDetection:0})}return e})();const Ai={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};class Tt{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 oe(function*(){t.config={...Ai,...t.config,...n},console.log("config:",t.config),yield t.pluginService.updateConfig(t.config)})()}updateAccessoryConfig(n,t,i){var r=this;return oe(function*(){let o;if("camera"===i)Array.isArray(r.config.cameras)||(r.config.cameras=[]),o=r.config.cameras;else{if("station"!==i)throw new Error("Unsupported accessory type");Array.isArray(r.config.stations)||(r.config.stations=[]),o=r.config.stations}const a=o.findIndex(s=>s.serialNumber===t.uniqueId);a>=0?o[a]={...o[a],...n}:o.push({serialNumber:t.uniqueId,...n}),yield r.pluginService.updateConfig(r.config)})()}updateStationConfig(n,t){var i=this;return oe(function*(){yield i.updateAccessoryConfig(n,t,"station")})()}updateDeviceConfig(n,t){var i=this;return oe(function*(){yield i.updateAccessoryConfig(n,t,"camera")})()}}function qve(e,n){1&e&&(y(0,"span"),_(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function Gve(e,n){1&e&&(y(0,"option",6),_(1,"Use global setting"),m()),2&e&&D("ngValue",void 0)}function $ve(e,n){1&e&&(y(0,"option",6),_(1,"Use global setting"),m()),2&e&&D("ngValue",void 0)}function Wve(e,n){1&e&&(y(0,"option",6),_(1,"Use global setting"),m()),2&e&&D("ngValue",void 0)}function Zve(e,n){1&e&&(y(0,"option",6),_(1,"Use global setting"),m()),2&e&&D("ngValue",void 0)}let WD=(()=>{class e extends Tt{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 oe(function*(){const i=t.station?yield t.getStationConfig(t.station.uniqueId):yield t.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?t.hkHome=i.hkHome:t.station||(t.hkHome=Ai.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.station||(t.hkAway=Ai.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.station||(t.hkNight=Ai.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.station||(t.hkOff=Ai.hkOff)})()}update(){var t=this;return oe(function*(){let i=t.station?yield t.getStationConfig(t.station.uniqueId):yield t.pluginService.getConfig();void 0===i&&(i={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=t.hkOff;let r=yield t.pluginService.getConfig();if(t.station){Array.isArray(r.stations)||(r.stations=[]);let o=-1;r.stations.forEach((a,s)=>{a.serialNumber===t.station?.uniqueId&&(o=s)}),o>=0?r.stations[o]=i:(i.serialNumber=t.station.uniqueId,r.stations.push(i))}else r=i;t.pluginService.updateConfig(r)})()}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{station:"station"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"span"),_(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),m(),B(3,"p"),H(4,qve,2,0,"span",1),B(5,"p"),y(6,"div",2)(7,"label",3),_(8,"HomeKit Home"),m(),y(9,"select",4),pe("ngModelChange",function(a){return ye(r.hkHome,a)||(r.hkHome=a),a}),L("change",function(){return r.update()}),H(10,Gve,2,1,"option",5),y(11,"option",6),_(12,"Eufy Home"),m(),y(13,"option",6),_(14,"Eufy Away"),m(),y(15,"option",6),_(16,"Eufy Schedule"),m(),y(17,"option",6),_(18,"Eufy Custom 1 (Night)"),m(),y(19,"option",6),_(20,"Eufy Custom 2"),m(),y(21,"option",6),_(22,"Eufy Custom 3"),m(),y(23,"option",6),_(24,"Eufy Geofencing"),m(),y(25,"option",6),_(26,"Eufy Disarmed"),m()()(),y(27,"div",2)(28,"label",7),_(29,"HomeKit Away"),m(),y(30,"select",8),pe("ngModelChange",function(a){return ye(r.hkAway,a)||(r.hkAway=a),a}),L("change",function(){return r.update()}),H(31,$ve,2,1,"option",5),y(32,"option",6),_(33,"Eufy Home"),m(),y(34,"option",6),_(35,"Eufy Away"),m(),y(36,"option",6),_(37,"Eufy Schedule"),m(),y(38,"option",6),_(39,"Eufy Custom 1 (Night)"),m(),y(40,"option",6),_(41,"Eufy Custom 2"),m(),y(42,"option",6),_(43,"Eufy Custom 3"),m(),y(44,"option",6),_(45,"Eufy Geofencing"),m(),y(46,"option",6),_(47,"Eufy Disarmed"),m()()(),y(48,"div",2)(49,"label",9),_(50,"HomeKit Night"),m(),y(51,"select",10),pe("ngModelChange",function(a){return ye(r.hkNight,a)||(r.hkNight=a),a}),L("change",function(){return r.update()}),H(52,Wve,2,1,"option",5),y(53,"option",6),_(54,"Eufy Home"),m(),y(55,"option",6),_(56,"Eufy Away"),m(),y(57,"option",6),_(58,"Eufy Schedule"),m(),y(59,"option",6),_(60,"Eufy Custom 1 (Night)"),m(),y(61,"option",6),_(62,"Eufy Custom 2"),m(),y(63,"option",6),_(64,"Eufy Custom 3"),m(),y(65,"option",6),_(66,"Eufy Geofencing"),m(),y(67,"option",6),_(68,"Eufy Disarmed"),m()()(),y(69,"div",2)(70,"label",11),_(71,"HomeKit Off"),m(),y(72,"select",12),pe("ngModelChange",function(a){return ye(r.hkOff,a)||(r.hkOff=a),a}),L("change",function(){return r.update()}),H(73,Zve,2,1,"option",5),y(74,"option",6),_(75,"Eufy Home"),m(),y(76,"option",6),_(77,"Eufy Away"),m(),y(78,"option",6),_(79,"Eufy Schedule"),m(),y(80,"option",6),_(81,"Eufy Custom 1 (Night)"),m(),y(82,"option",6),_(83,"Eufy Custom 2"),m(),y(84,"option",6),_(85,"Eufy Custom 3"),m(),y(86,"option",6),_(87,"Eufy Geofencing"),m(),y(88,"option",6),_(89,"Eufy Disarmed"),m()()()()),2&i&&(b(4),D("ngIf",r.station),b(5),he("ngModel",r.hkHome),b(),D("ngIf",r.station),b(),D("ngValue",1),b(2),D("ngValue",0),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngValue",4),b(2),D("ngValue",5),b(2),D("ngValue",47),b(2),D("ngValue",63),b(5),he("ngModel",r.hkAway),b(),D("ngIf",r.station),b(),D("ngValue",1),b(2),D("ngValue",0),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngValue",4),b(2),D("ngValue",5),b(2),D("ngValue",47),b(2),D("ngValue",63),b(5),he("ngModel",r.hkNight),b(),D("ngIf",r.station),b(),D("ngValue",1),b(2),D("ngValue",0),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngValue",4),b(2),D("ngValue",5),b(2),D("ngValue",47),b(2),D("ngValue",63),b(5),he("ngModel",r.hkOff),b(),D("ngIf",r.station),b(),D("ngValue",1),b(2),D("ngValue",0),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngValue",4),b(2),D("ngValue",5),b(2),D("ngValue",47),b(2),D("ngValue",63))},dependencies:[Fn,It,ha,pa,qr,Et,Dt],encapsulation:2})}return e})(),Yve=(()=>{class e extends Tt{cleanCache=Ai.cleanCache;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){t.readValue()})()}readValue(){this.cleanCache=this.config.cleanCache??this.cleanCache}update(){this.updateConfig({cleanCache:this.cleanCache})}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-clean-cache"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Clean cache automatically"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.cleanCache,a)||(r.cleanCache=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),_(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&i&&(b(5),he("ngModel",r.cleanCache))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),Kve=(()=>{class e extends Tt{omitLogFiles=Ai.omitLogFiles;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){t.readValue()})()}readValue(){this.omitLogFiles=this.config.omitLogFiles??this.omitLogFiles}update(){this.updateConfig({omitLogFiles:this.omitLogFiles})}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-omit-log-files"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Don't store log files"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.omitLogFiles,a)||(r.omitLogFiles=a),a}),L("change",function(){return r.update()}),m()()(),y(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. "),m()()()),2&i&&(b(5),he("ngModel",r.omitLogFiles))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),Qve=(()=>{class e extends Tt{ignoreMultipleDevicesWarning=Ai.ignoreMultipleDevicesWarning;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){t.readValue()})()}readValue(){this.ignoreMultipleDevicesWarning=this.config.ignoreMultipleDevicesWarning??this.ignoreMultipleDevicesWarning}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.ignoreMultipleDevicesWarning})}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-ignore-multiple-devices-warning"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Enable snapshot and HKSV settings for multiple devices on one station"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.ignoreMultipleDevicesWarning,a)||(r.ignoreMultipleDevicesWarning=a),a}),L("change",function(){return r.update()}),m()()(),y(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. "),m()()()),2&i&&(b(5),he("ngModel",r.ignoreMultipleDevicesWarning))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),Jve=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){var t=this;return oe(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(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-livestream-duration-seconds"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Maximum Livestream Duration"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),pe("ngModelChange",function(a){return ye(r.CameraMaxLivestreamDuration,a)||(r.CameraMaxLivestreamDuration=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),_(9,"seconds"),m()()()()(),y(10,"small")(11,"i"),_(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&i&&(b(6),he("ngModel",r.CameraMaxLivestreamDuration),G("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[It,Mo,Xs,Et,Dt],encapsulation:2})}return e})(),Xve=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){var t=this;return oe(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(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-polling-interval-minutes"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Polling Interval"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),pe("ngModelChange",function(a){return ye(r.pollingIntervalMinutes,a)||(r.pollingIntervalMinutes=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),_(9,"minutes"),m()()()()(),y(10,"small")(11,"i"),_(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&i&&(b(6),he("ngModel",r.pollingIntervalMinutes),G("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[It,Mo,Xs,Et,Dt],encapsulation:2})}return e})(),eke=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=se({type:e,selectors:[["app-edit-credentials"]],standalone:!0,features:[fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Change username, password and country"),m(),y(4,"a",3),_(5,"New Login"),m()()())},dependencies:[vr],encapsulation:2})}return e})(),tke=(()=>{class e extends Tt{autoSyncStation=Ai.autoSyncStation;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){t.readValue()})()}readValue(){this.autoSyncStation=this.config.autoSyncStation??this.autoSyncStation}update(){this.updateConfig({autoSyncStation:this.autoSyncStation})}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-auto-sync-station"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Auto Sync Station status"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.autoSyncStation,a)||(r.autoSyncStation=a),a}),L("change",function(){return r.update()}),m()()(),y(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. "),m()()()),2&i&&(b(5),he("ngModel",r.autoSyncStation))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),nke=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=se({type:e,selectors:[["app-advanced-config-options"]],standalone:!0,features:[fe],decls:20,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"]],template:function(i,r){1&i&&(y(0,"a",0),B(1,"lucide-angular",1),_(2," Back\n"),m(),y(3,"h6"),_(4," Advanced Settings "),m(),B(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-guard-modes-mapping"))},dependencies:[vr,eke,Xve,Jve,Qve,Kve,Yve,WD,tke,Eo,wa],encapsulation:2})}return e})();function ike(e,n){if(1&e&&(y(0,"div"),_(1),m()),2&e){const t=R();b(),Ci(" ",t.presetDescription," ")}}let rke=(()=>{class e extends Tt{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 oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")&&Object.entries(i.videoConfig).forEach(([r,o])=>{t[r]=o}),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 oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||""),r=i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")?i.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(r,"audio")&&(o.audio=r.audio),t.debug&&(o.debug=t.debug),t.readRate&&(o.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(o.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(o.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(o.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(o.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(o.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(o.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(o.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(o.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(o.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(o.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(o.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(o.useSeparateProcesses=t.useSeparateProcesses),t.updateDeviceConfig({videoConfig:o},t.device),t.updatePreset()})()}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(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. "),B(2,"p"),_(3," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),B(4,"p"),y(5,"div",1)(6,"div",2)(7,"select",3),pe("ngModelChange",function(a){return ye(r.preset,a)||(r.preset=a),a}),L("change",function(){return r.loadPreset()}),y(8,"option",4),_(9,"No Preset (default)"),m(),y(10,"option",4),_(11,"Copy"),m(),y(12,"option",4),_(13,"Performance"),m(),y(14,"option",4),_(15,"Custom"),m()()()(),H(16,ike,2,1,"div",5),B(17,"p"),y(18,"div",6)(19,"div",7)(20,"input",8),pe("ngModelChange",function(a){return ye(r.debug,a)||(r.debug=a),a}),L("change",function(){return r.update()}),m()(),y(21,"span",9),_(22,"ffmpeg debug"),m()(),y(23,"div",6)(24,"div",7)(25,"input",8),pe("ngModelChange",function(a){return ye(r.useSeparateProcesses,a)||(r.useSeparateProcesses=a),a}),L("change",function(){return r.update()}),m()(),y(26,"span",9),_(27,"use separate processes for video and audio"),m()(),y(28,"div",6)(29,"div",7)(30,"input",8),pe("ngModelChange",function(a){return ye(r.readRate,a)||(r.readRate=a),a}),L("change",function(){return r.update()}),m()(),y(31,"span",9),_(32,"readRate"),m()(),y(33,"div",6)(34,"div",7)(35,"input",10),L("change",function(){return r.vcodec=void 0===r.vcodec?"":void 0,r.update()}),m()(),y(36,"span",9),_(37,"vcodec"),m(),y(38,"input",11),pe("ngModelChange",function(a){return ye(r.vcodec,a)||(r.vcodec=a),a}),L("change",function(){return r.update()}),m()(),y(39,"div",6)(40,"div",7)(41,"input",10),L("change",function(){return r.acodec=void 0===r.acodec?"":void 0,r.update()}),m()(),y(42,"span",9),_(43,"acodec"),m(),y(44,"input",12),pe("ngModelChange",function(a){return ye(r.acodec,a)||(r.acodec=a),a}),L("change",function(){return r.update()}),m()(),y(45,"div",6)(46,"div",7)(47,"input",10),L("change",function(){return r.videoFilter=void 0===r.videoFilter?"":void 0,r.update()}),m()(),y(48,"span",9),_(49,"videoFilter"),m(),y(50,"input",13),pe("ngModelChange",function(a){return ye(r.videoFilter,a)||(r.videoFilter=a),a}),L("change",function(){return r.update()}),m()(),y(51,"div",6)(52,"div",7)(53,"input",10),L("change",function(){return r.encoderOptions=void 0===r.encoderOptions?"":void 0,r.update()}),m()(),y(54,"span",9),_(55,"encoderOptions"),m(),y(56,"input",14),pe("ngModelChange",function(a){return ye(r.encoderOptions,a)||(r.encoderOptions=a),a}),L("change",function(){return r.update()}),m()(),y(57,"div",6)(58,"div",7)(59,"input",10),L("change",function(){return r.probeSize=void 0===r.probeSize?0:void 0,r.update()}),m()(),y(60,"span",9),_(61,"probeSize"),m(),y(62,"input",15),pe("ngModelChange",function(a){return ye(r.probeSize,a)||(r.probeSize=a),a}),L("change",function(){return r.update()}),m()(),y(63,"div",6)(64,"div",7)(65,"input",10),L("change",function(){return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,r.update()}),m()(),y(66,"span",9),_(67,"analyzeDuration"),m(),y(68,"input",15),pe("ngModelChange",function(a){return ye(r.analyzeDuration,a)||(r.analyzeDuration=a),a}),L("change",function(){return r.update()}),m()(),y(69,"div",6)(70,"div",7)(71,"input",10),L("change",function(){return r.maxStreams=void 0===r.maxStreams?0:void 0,r.update()}),m()(),y(72,"span",9),_(73,"maxStreams"),m(),y(74,"input",15),pe("ngModelChange",function(a){return ye(r.maxStreams,a)||(r.maxStreams=a),a}),L("change",function(){return r.update()}),m()(),y(75,"div",6)(76,"div",7)(77,"input",10),L("change",function(){return r.maxWidth=void 0===r.maxWidth?0:void 0,r.update()}),m()(),y(78,"span",9),_(79,"maxWidth"),m(),y(80,"input",15),pe("ngModelChange",function(a){return ye(r.maxWidth,a)||(r.maxWidth=a),a}),L("change",function(){return r.update()}),m()(),y(81,"div",6)(82,"div",7)(83,"input",10),L("change",function(){return r.maxHeight=void 0===r.maxHeight?0:void 0,r.update()}),m()(),y(84,"span",9),_(85,"maxHeight"),m(),y(86,"input",15),pe("ngModelChange",function(a){return ye(r.maxHeight,a)||(r.maxHeight=a),a}),L("change",function(){return r.update()}),m()(),y(87,"div",6)(88,"div",7)(89,"input",10),L("change",function(){return r.maxFPS=void 0===r.maxFPS?0:void 0,r.update()}),m()(),y(90,"span",9),_(91,"fps"),m(),y(92,"input",15),pe("ngModelChange",function(a){return ye(r.maxFPS,a)||(r.maxFPS=a),a}),L("change",function(){return r.update()}),m()(),y(93,"div",6)(94,"div",7)(95,"input",10),L("change",function(){return r.maxBitrate=void 0===r.maxBitrate?0:void 0,r.update()}),m()(),y(96,"span",9),_(97,"bitrate"),m(),y(98,"input",15),pe("ngModelChange",function(a){return ye(r.maxBitrate,a)||(r.maxBitrate=a),a}),L("change",function(){return r.update()}),m()()()),2&i&&(b(7),he("ngModel",r.preset),b(),D("ngValue",0),b(2),D("ngValue",1),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngIf",r.presetDescription),b(4),he("ngModel",r.debug),b(5),he("ngModel",r.useSeparateProcesses),b(5),he("ngModel",r.readRate),b(5),D("checked",void 0!==r.vcodec||null),b(3),he("ngModel",r.vcodec),G("disabled",void 0===r.vcodec||null),b(3),D("checked",void 0!==r.acodec||null),b(3),he("ngModel",r.acodec),G("disabled",void 0===r.acodec||null),b(3),D("checked",void 0!==r.videoFilter||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.videoFilter),G("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),b(3),D("checked",void 0!==r.encoderOptions||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.encoderOptions),G("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),b(3),D("checked",void 0!==r.probeSize||null),b(3),he("ngModel",r.probeSize),G("disabled",void 0===r.probeSize||null),b(3),D("checked",void 0!==r.analyzeDuration||null),b(3),he("ngModel",r.analyzeDuration),G("disabled",void 0===r.analyzeDuration||null),b(3),D("checked",void 0!==r.maxStreams||null),b(3),he("ngModel",r.maxStreams),G("disabled",void 0===r.maxStreams||null),b(3),D("checked",void 0!==r.maxWidth||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.maxWidth),G("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),b(3),D("checked",void 0!==r.maxHeight||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.maxHeight),G("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),b(3),D("checked",void 0!==r.maxFPS||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.maxFPS),G("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),b(3),D("checked",void 0!==r.maxBitrate||null),G("disabled","copy"===r.vcodec||null),b(),G("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,qo),b(2),he("ngModel",r.maxBitrate),G("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null))},dependencies:[It,ha,pa,Mo,Xs,Cn,qr,Et,Dt,Fn],encapsulation:2})}return e})();function oke(e,n){if(1&e){const t=Ue();y(0,"div",5)(1,"span"),_(2,"Refresh Interval"),m(),y(3,"div",6)(4,"div",7)(5,"input",8),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(R().update())}),m(),y(6,"div",9)(7,"span",10),_(8,"minutes"),m()()()()()}if(2&e){const t=R();b(5),he("ngModel",t.value),G("class",t.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end")}}let ake=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=0;inputIsInvalid=!1;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"refreshSnapshotIntervalMinutes")&&(t.value=i.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(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Periodic Snapshot Refresh"),m(),y(4,"div",2)(5,"input",3),L("change",function(){return r.switchSetting()}),m()()(),H(6,oke,9,2,"div",4),y(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."),B(10,"br"),_(11," Best used with 'Cloud Snapshots' handling method."),B(12,"br"),_(13," Every setting below 5 minutes will be discarded due to performance reasons."),B(14,"br"),m()()()),2&i&&(b(5),G("checked",r.value>0||null),b(),D("ngIf",r.value))},dependencies:[It,Mo,Xs,Et,Dt,Fn],encapsulation:2})}return e})(),ske=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"delayCameraSnapshot")&&(t.value=i.delayCameraSnapshot)})()}update(){this.updateDeviceConfig({delayCameraSnapshot:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Night-Vision Improvement for camera snapshots"),m(),y(4,"div",2)(5,"input",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),_(8," Force night vision on dark snapshots to improve the image."),B(9,"br"),y(10,"b"),_(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&i&&(b(5),he("ngModel",r.value))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),cke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"immediateRingNotificationWithoutSnapshot")&&(t.value=i.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateDeviceConfig({immediateRingNotificationWithoutSnapshot:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Immediate Notification on ring events"),m(),y(4,"div",2)(5,"input",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(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."),B(9,"br"),y(10,"b"),_(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&i&&(b(5),he("ngModel",r.value))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})();var em=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(em||{}),tm=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}(tm||{});function lke(e,n){1&e&&(y(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. "),m())}function dke(e,n){1&e&&(y(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. "),m())}function uke(e,n){1&e&&(y(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. "),m())}function hke(e,n){if(1&e&&(y(0,"div",14)(1,"b"),_(2,"Caution!"),m(),_(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 "),y(4,"a",15),_(5,"here"),m(),_(6," for more informtaion. "),m(),H(7,dke,2,0,"div",16)(8,uke,2,0,"div",17)),2&e){const t=R(2);b(7),D("ngIf",2===t.chargingStatus),b(),D("ngIf",4===t.chargingStatus)}}function pke(e,n){if(1&e){const t=Ue();y(0,"div",1),H(1,lke,2,0,"div",2),y(2,"div",3)(3,"span"),_(4,"Snapshot Handling Method"),m(),y(5,"div",4)(6,"select",5),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(R().update())}),y(7,"option",6),_(8,"Force Refresh Snapshots"),m(),y(9,"option",6),_(10,"Balanced"),m(),y(11,"option",6),_(12,"Default (Cloud)"),m()()()(),H(13,hke,9,2,"ng-template",7),y(14,"table",8)(15,"thead")(16,"tr")(17,"th",9),_(18,"Mode"),m(),y(19,"th",9),_(20,"Force Refresh Snapshots"),m(),y(21,"th",9),_(22,"Balanced"),m(),y(23,"th",9),_(24,"Default (Cloud)"),m()()(),y(25,"tbody")(26,"tr")(27,"td"),_(28,"Up-to-date Snapshots (events)"),m(),y(29,"td"),B(30,"lucide-angular",10),m(),y(31,"td"),B(32,"lucide-angular",10),m(),y(33,"td"),B(34,"lucide-angular",10),m()(),y(35,"tr")(36,"td"),_(37,"Up-to-date Snapshots (HomeKit View)"),m(),y(38,"td"),B(39,"lucide-angular",10),m(),y(40,"td"),B(41,"lucide-angular",11),m(),y(42,"td"),B(43,"lucide-angular",12),m()(),y(44,"tr")(45,"td"),_(46,"Performance"),m(),y(47,"td"),B(48,"lucide-angular",12),m(),y(49,"td"),B(50,"lucide-angular",10),m(),y(51,"td"),B(52,"lucide-angular",10),m()(),y(53,"tr")(54,"td"),_(55,"Battery life"),m(),y(56,"td"),B(57,"lucide-angular",12),m(),y(58,"td"),B(59,"lucide-angular",12),m(),y(60,"td"),B(61,"lucide-angular",10),m()()()()()}if(2&e){const t=R();b(),D("ngIf",!t.standalone),b(5),he("ngModel",t.value),b(),D("ngValue",1),b(2),D("ngValue",2),b(2),D("ngValue",3),b(2),D("ngIf",1===t.value)}}let fke=(()=>{class e extends Tt{device;value=3;ignoreMultipleDevicesWarning=Ai.ignoreMultipleDevicesWarning;chargingStatus=tm.PLUGGED;standalone=!1;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){yield t.readValue()})()}readValue(){var t=this;return oe(function*(){const i=t.device?.uniqueId||"";if(t.device){t.chargingStatus=t.device.chargingStatus,t.standalone=t.device.standalone,t.ignoreMultipleDevicesWarning=t.config.ignoreMultipleDevicesWarning??t.ignoreMultipleDevicesWarning;const r=t.getCameraConfig(i);t.value=r.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(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&H(0,pke,62,6,"div",0),2&i&&D("ngIf",r.standalone||!r.standalone&&r.ignoreMultipleDevicesWarning)},dependencies:[It,ha,pa,qr,Et,Dt,Fn,Eo,wa],encapsulation:2})}return e})();function yke(e,n){1&e&&(y(0,"div"),_(1," You can enable this setting nevertheless in "),y(2,"a",9),_(3,"Plugin Settings"),m(),B(4,"p"),m())}function gke(e,n){if(1&e&&(y(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."),B(2,"p"),H(3,yke,5,0,"div",8),m()),2&e){const t=R();b(3),D("ngIf",!t.ignoreMultipleDevicesWarning)}}function mke(e,n){1&e&&(y(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. "),m())}function vke(e,n){1&e&&(y(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. "),m())}let kke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){yield t.readValue()})()}device;hsv=false;chargingStatus=tm.PLUGGED;camerasOnSameStation=[];standalone=!0;ignoreMultipleDevicesWarning=Ai.ignoreMultipleDevicesWarning;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");t.hsv=i.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(r){console.log(r)}})()}update(){this.updateDeviceConfig({hsv:this.hsv},this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-enable-hsv"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Use HomeKit Secure Video"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.hsv,a)||(r.hsv=a),a}),L("change",function(){return r.update()}),m()()(),H(6,gke,4,1,"div",5)(7,mke,2,0,"div",5)(8,vke,2,0,"div",6),y(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. "),B(12,"p"),y(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. "),m(),y(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."),m(),y(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."),m()()()()()),2&i&&(b(5),he("ngModel",r.hsv),G("disabled",!r.standalone&&!r.ignoreMultipleDevicesWarning||null),b(),D("ngIf",!r.standalone),b(),D("ngIf",2===r.chargingStatus&&r.hsv),b(),D("ngIf",4===r.chargingStatus&&r.hsv))},dependencies:[It,Cn,Et,Dt,Fn,vr],encapsulation:2})}return e})();function _ke(e,n){if(1&e){const t=Ue();y(0,"div",3)(1,"label",4),_(2),m(),y(3,"div",5)(4,"input",6),pe("ngModelChange",function(r){const o=de(t).$implicit;return ye(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(R().update())}),m()()()}if(2&e){const t=n.$implicit;b(),D("for","flexSwitchCheck"+t.name),b(),Ci(" Display HomeKit switch to turn ",t.description," on/off "),b(2),he("ngModel",t.value),D("id","flexSwitchCheck"+t.name)}}let Mke=(()=>{class e extends Tt{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 oe(function*(){const r=t.getCameraConfig(t.device?.uniqueId??"");t.buttonConfigs=t.buttonConfigs.filter(o=>!(!t.device||!t.device[o.propertyName]||(o.button in r&&(o.value=r[o.button]??o.value),0)))})()}update(){const t={};this.buttonConfigs.forEach(i=>{t[i.button]=i.value}),this.updateDeviceConfig(t,this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-camera-buttons"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0),H(1,_ke,5,4,"div",1),y(2,"small")(3,"i"),_(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),y(5,"a",2),_(6,"here"),m(),_(7," for more details. "),m()()()),2&i&&(b(),D("ngForOf",r.buttonConfigs))},dependencies:[$u,It,Cn,Et,Dt],encapsulation:2})}return e})();function bke(e,n){1&e&&(y(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let wke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;rtspIsEnabled=!1;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(t.value=i.talkback),i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(t.rtspIsEnabled=i.rtsp)})()}update(){this.updateDeviceConfig({talkback:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-talkback"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Talkback (Two way communication)"),m(),y(4,"div",2)(5,"input",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),H(6,bke,2,0,"div",4),y(7,"small")(8,"i"),_(9," Enables you to talk with someone infront of the camera while streaming. "),B(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."),B(12,"br"),m()()()),2&i&&(b(5),he("ngModel",r.value),b(),D("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[It,Cn,Et,Dt,Fn],encapsulation:2})}return e})();let Dke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=true;samplerate=0;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");if(i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audio")&&(t.value=i.videoConfig.audio),i&&i.videoConfig&&Object.prototype.hasOwnProperty.call(i.videoConfig,"audioSampleRate")){const r=i.videoConfig.audioSampleRate;(8===r||16===r||24===r)&&(t.samplerate=r)}})()}update(){var t=this;return oe(function*(){if(!t.device)return;let i=t.getCameraConfig(t.device?.uniqueId||"");i||(i={serialNumber:t.device?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(i,"videoConfig")||(i.videoConfig={}),i.videoConfig.audio=t.value,i.videoConfig.audioSampleRate=t.samplerate,t.updateDeviceConfig(i,t.device)})()}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-enable-audio"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Enable Audio"),m(),y(4,"div",2)(5,"input",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),_(8," Try to enable audio streaming for this device."),B(9,"br"),_(10," If you encounter problems try to disable this setting. "),m()(),B(11,"p"),y(12,"div",4)(13,"span"),_(14,"Force Audio Sample Rate"),m(),y(15,"div",5)(16,"select",6),pe("ngModelChange",function(a){return ye(r.samplerate,a)||(r.samplerate=a),a}),L("change",function(){return r.update()}),y(17,"option",7),_(18,"Default Sample Rate"),m(),y(19,"option",7),_(20,"8 kHz"),m(),y(21,"option",7),_(22,"16 kHz"),m(),y(23,"option",7),_(24,"24 kHz"),m()()()()()),2&i&&(b(5),he("ngModel",r.value),b(11),he("ngModel",r.samplerate),G("disabled",!r.value||null),b(),D("ngValue",0),b(2),D("ngValue",8),b(2),D("ngValue",16),b(2),D("ngValue",24))},dependencies:[It,ha,pa,Cn,qr,Et,Dt],encapsulation:2})}return e})();function xke(e,n){1&e&&(y(0,"div",5),_(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let Ske=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;talkbackIsEnabled=!1;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"rtsp")&&(t.value=i.rtsp),i&&Object.prototype.hasOwnProperty.call(i,"talkback")&&(t.talkbackIsEnabled=i.talkback)})()}update(){this.updateDeviceConfig({rtsp:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-rtsp-streaming"]],inputs:{device:"device"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Use RTSP streaming"),m(),y(4,"div",2)(5,"input",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),H(6,xke,2,0,"div",4),y(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!"),B(10,"br"),m()()()),2&i&&(b(5),he("ngModel",r.value),b(),D("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[It,Cn,Et,Dt,Fn],encapsulation:2})}return e})();function Eke(e,n){1&e&&(y(0,"small")(1,"i"),_(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function Ike(e,n){1&e&&(y(0,"small")(1,"i"),_(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let Tke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}device;checkDeviceConfig=new K;value="true";disabled=!1;readValue(){var t=this;return oe(function*(){const i=t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"enableCamera")&&(t.value=i.enableCamera)})()}update(){this.updateDeviceConfig({enableCamera:JSON.parse(this.value)},this.device),this.checkDeviceConfig.emit()}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-enable-camera"]],inputs:{device:"device"},outputs:{checkDeviceConfig:"checkDeviceConfig"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"Operation Mode"),m(),y(4,"div",2)(5,"select",3),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),y(6,"option",4),_(7,"Motion Sensor"),m(),y(8,"option",5),_(9,"Camera"),m()()()(),H(10,Eke,3,0,"small",6)(11,Ike,3,0,"small",6),m()),2&i&&(b(5),he("ngModel",r.value),G("disabled",!!r.disabled||null),b(5),D("ngIf",r.disabled),b(),D("ngIf",!r.disabled))},dependencies:[It,ha,pa,qr,Et,Dt,Fn],encapsulation:2})}return e})(),Ake=(()=>{class e extends Tt{identifier="";constructor(t){super(t)}ngOnInit(){this.readValue()}accessory;isStation=!1;isDisabled=!1;ignored=new K;value=!0;readValue(){var t=this;return oe(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(i=>i===t.accessory.uniqueId))}})()}update(){var t=this;return oe(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(i=>i===t.accessory.uniqueId)&&(t.config[t.identifier]=t.config[t.identifier].filter(i=>i!==t.accessory.uniqueId)):Array.isArray(t.config[t.identifier])&&!t.config[t.identifier].find(i=>i===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(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory",isStation:"isStation",isDisabled:"isDisabled"},outputs:{ignored:"ignored"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"input",1),pe("ngModelChange",function(a){return ye(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()),2&i&&(b(),he("ngModel",r.value),D("id",r.isStation?"ignoreStation":"ignoreDevice")("disabled",r.isDisabled))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})(),Nke=(()=>{class e extends Tt{constructor(t){super(t)}ngOnInit(){this.readValue()}station;value=[];readValue(){var t=this;return oe(function*(){const i=yield t.getStationConfig(t.station?.uniqueId||"");i&&Array.isArray(i.manualTriggerModes)&&(t.value=i.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(i=>i!==t):this.value.push(t)}update(){this.updateStationConfig({manualTriggerModes:this.value},this.station)}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{station:"station"},standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span"),_(3,"HomeKit Home"),m(),y(4,"div",2)(5,"input",3),L("change",function(){return r.toggle(0),r.update()}),m()()(),y(6,"div",1)(7,"span"),_(8,"HomeKit Away"),m(),y(9,"div",2)(10,"input",4),L("change",function(){return r.toggle(1),r.update()}),m()()(),y(11,"div",1)(12,"span"),_(13,"HomeKit Night"),m(),y(14,"div",2)(15,"input",5),L("change",function(){return r.toggle(2),r.update()}),m()()(),y(16,"div",1)(17,"span"),_(18,"HomeKit Off/Disarmed"),m(),y(19,"div",2)(20,"input",6),L("change",function(){return r.toggle(3),r.update()}),m()()(),y(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."),B(24,"p"),_(25," In order to do so, you must specify in which station mode the alarm can be triggered. "),B(26,"p"),_(27," Please be aware that this setting can only be set on a per station basis and not per automation."),B(28,"br"),_(29," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),B(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."),B(32,"br"),_(33," The native alarm delay setting is currently not supported. "),m()()()),2&i&&(b(5),G("checked",-1!==r.value.indexOf(0)||null),b(5),G("checked",-1!==r.value.indexOf(1)||null),b(5),G("checked",-1!==r.value.indexOf(2)||null),b(5),G("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})}return e})();function Oke(e,n){if(1&e&&(y(0,"p"),_(1),y(2,"span",6),_(3),m()()),2&e){const t=R(2);b(),Ci("",t.device.displayName," - "),b(2),pu("(",t.device.type," - ",t.device.typename," - ",t.device.uniqueId,")")}}function Rke(e,n){1&e&&H(0,Oke,4,4,"ng-template",5),2&e&&D("ngIf",R().device)}function Pke(e,n){if(1&e&&(y(0,"p"),_(1),y(2,"span",6),_(3),m()()),2&e){const t=R(2);b(),Ci("",t.station.displayName," - "),b(2),pu("(",t.station.type," - ",t.station.typename," - ",t.station.uniqueId,")")}}function Fke(e,n){1&e&&H(0,Pke,4,4,"ng-template",5),2&e&&D("ngIf",R().station)}function Lke(e,n){if(1&e){const t=Ue();y(0,"div",9)(1,"label",10),_(2,"Enable Device on Apple Homekit"),m(),y(3,"app-ignore-accessory",11),L("ignored",function(r){return de(t),ue(R(2).ignoredDeviceChanged(r))}),m()()}if(2&e){const t=R(2);b(3),D("accessory",t.device)("isDisabled",t.device.isKeypad)}}function Vke(e,n){1&e&&(y(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. "),m())}function Hke(e,n){1&e&&(y(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. "),m())}function jke(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-rtsp-streaming",20),m()),2&e){const t=R(4);b(2),D("device",t.device)}}function Bke(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-audio",20),m()),2&e){const t=R(4);b(2),D("device",t.device)}}function zke(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-talkback",20),m()),2&e){const t=R(4);b(2),D("device",t.device)}}function Uke(e,n){if(1&e){const t=Ue();y(0,"app-enable-camera",19),L("checkDeviceConfig",function(){return de(t),ue(R(3).checkDeviceConfig())}),m(),H(1,jke,3,1,"div",8)(2,Bke,3,1,"div",8)(3,zke,3,1,"div",8)}if(2&e){const t=R(3);D("device",t.device),b(),D("ngIf",t.enableCamera&&t.supportsRTSP),b(),D("ngIf",t.enableCamera),b(),D("ngIf",t.enableCamera&&t.supportsTalkback)}}function qke(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-hsv",20),m()),2&e){const t=R(4);b(2),D("device",t.device)}}function Gke(e,n){if(1&e&&(B(0,"app-camera-buttons",20),H(1,qke,3,1,"div",8)),2&e){const t=R(3);D("device",t.device),b(),D("ngIf",t.enableCamera)}}function $ke(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-immediate-notification-on-ring",20),m()),2&e){const t=R(5);b(2),D("device",t.device)}}function Wke(e,n){if(1&e&&(B(0,"app-snapshot-handling-method",20),H(1,$ke,3,1,"div",8),B(2,"hr")(3,"app-delay-camera-snapshots",20)(4,"hr")(5,"app-periodic-snapshot-refresh",20)),2&e){const t=R(4);D("device",t.device),b(),D("ngIf",t.isDoorbell),b(2),D("device",t.device),b(2),D("device",t.device)}}function Zke(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),_(3,"Snapshot Behaviour"),m()(),y(4,"div",16)(5,"div",17),H(6,Wke,6,4,"ng-template"),m()()())}function Yke(e,n){1&e&&B(0,"app-advanced-videoconfig",20),2&e&&D("device",R(4).device)}function Kke(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),_(3,"Advanced Video Config"),m()(),y(4,"div",16)(5,"div",17),H(6,Yke,1,1,"ng-template"),m()()())}function Qke(e,n){if(1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),_(4,"Device Settings"),m()(),y(5,"div",16)(6,"div",17),H(7,Uke,4,4,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),_(11,"HomeKit Behaviour"),m()(),y(12,"div",16)(13,"div",17),H(14,Gke,2,2,"ng-template"),m()()(),H(15,Zke,7,0,"div",18)(16,Kke,7,0,"div",18),m()),2&e){const t=R(2);D("closeOthers",!0),b(15),D("ngIf",t.enableCamera),b(),D("ngIf",t.enableCamera)}}function Jke(e,n){if(1&e&&H(0,Lke,4,2,"div",7)(1,Vke,2,0,"p",8)(2,Hke,2,0,"p",8)(3,Qke,17,3,"ng-template",5),2&e){const t=R();D("ngIf",!t.device.isKeypad),b(),D("ngIf",t.device.isKeypad),b(),D("ngIf",t.device.isKeypad),b(),D("ngIf",!t.device.ignored&&t.isCamera)}}function Xke(e,n){1&e&&B(0,"app-guard-modes-mapping",24),2&e&&D("station",R(3).station)}function e_e(e,n){1&e&&B(0,"app-manual-alarm-modes",24),2&e&&D("station",R(3).station)}function t_e(e,n){1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),_(4,"Customize HomeKit-Eufy App Mode Mapping"),m()(),y(5,"div",16)(6,"div",17),H(7,Xke,1,1,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),_(11,"Manual Alarm Trigger Modes"),m()(),y(12,"div",16)(13,"div",17),H(14,e_e,1,1,"ng-template"),m()()()()),2&e&&D("closeOthers",!0)}function n_e(e,n){if(1&e){const t=Ue();y(0,"div",9)(1,"label",21),_(2,"Enable Device Security Control on Apple Homekit"),m(),y(3,"app-ignore-accessory",22),L("ignored",function(r){return de(t),ue(R().ignoredStationChanged(r))}),m()(),H(4,t_e,15,1,"div",23)}if(2&e){const t=R();b(3),D("accessory",t.station)("isStation",!0),b(),D("ngIf",!t.station.ignored)}}let i_e=(()=>{class e extends Tt{route;station;device;uniqueId="";type="";isDoorbell=!1;isCamera=!1;enableCamera=!0;supportsRTSP=!1;supportsTalkback=!1;constructor(t,i){super(t),this.route=i}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(i){return new(i||e)(N(mt),N(_o))};static \u0275cmp=se({type:e,selectors:[["app-accessory-config-options"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"a",0),B(1,"lucide-angular",1),_(2," Back\n"),m(),ci(3,2),H(4,Rke,1,1,"ng-template",3)(5,Fke,1,1,"ng-template",4),li(),H(6,Jke,4,4,"ng-template",5)(7,n_e,5,3,"ng-template",5)),2&i&&(b(3),D("ngSwitch",r.type),b(),D("ngSwitchCase","device"),b(2),D("ngIf",r.device),b(),D("ngIf",r.station&&!r.station.disabled))},dependencies:[vr,Fn,Fl,py,vw,Eo,wa,Ake,Tke,Ske,Dke,wke,Mke,kke,fke,cke,ske,ake,rke,WD,Nke,Rg,TC,Oh,So,AC,EC,Og],encapsulation:2})}return e})();const r_e={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 o_e=(()=>{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 oe(function*(){try{const i=yield window.homebridge.request("/login",t);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(t){var i=this;return oe(function*(){let r={};try{r=i.pluginService.getConfig()}catch(o){console.log("Could not get credentials from config: ",o)}r.username=t.username,r.password=t.password,r.country=t.country,r.deviceName=t.deviceName,yield i.pluginService.updateConfig(r),yield i.pluginService.saveConfig()})()}static \u0275fac=function(i){return new(i||e)(ne(mt))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function a_e(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."),B(1,"p"),y(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."),m())}function s_e(e,n){1&e&&(y(0,"p"),_(1,"You can override this warning by configuring a special parameter in the global configuration after login. To resolve this issue, please consider downgrading to a compatible version using a command similar to: sudo hb-service update-node 20.11.0."),m(),y(2,"p"),_(3," Versions known to cause compatibility issues with this plugin include those within the following ranges: "),m(),y(4,"ul")(5,"li"),_(6,"Node.js 18.x.x (starting from 18.19.1 up to the next major release)"),m(),y(7,"li"),_(8,"Node.js 20.x.x (starting from 20.11.1 up to the next major release)"),m(),y(9,"li"),_(10,"Node.js 21.x.x (starting from 21.6.2 up to the next major release)"),m()(),y(11,"p"),_(12," For instructions on how to upgrade or downgrade Node.js, please refer to: https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js For more information on the security vulnerability affecting Node.js, visit: https://nodejs.org/en/blog/vulnerability/february-2024-security-releases#nodejs-is-vulnerable-to-the-marvin-attack-timing-variant-of-the-bleichenbacher-attack-against-pkcs1-v15-padding-cve-2023-46809---medium "),m())}function c_e(e,n){if(1&e){const t=Ue();y(0,"p",6)(1,"ngb-alert",7),L("closed",function(){return de(t),ue(R().resetLoginFailed())}),B(2,"lucide-angular",8),y(3,"strong"),_(4,"Login was not successful!"),m()()()}2&e&&(b(),D("dismissible",!0))}function l_e(e,n){if(1&e&&(y(0,"div",14),B(1,"lucide-angular",12),y(2,"div"),_(3),y(4,"u",15),_(5," Tell me why... "),m()()()),2&e){const t=R(2),i=gt(3);b(3),Ci(" Error: Your current Node.js version ",t.nodeJSversion," is incompatible with the RSA_PKCS1_PADDING used by the plugin. If you run the plugin with an incompatible version of Node.js, livestream functionality will be disrupted. "),b(),D("autoClose","outside")("ngbPopover",i)}}function d_e(e,n){if(1&e){const t=Ue();y(0,"div",9),H(1,l_e,6,3,"div",10),y(2,"div",11),B(3,"lucide-angular",12),y(4,"div"),_(5," Please make sure to restart plugin after you're done. "),m()(),y(6,"button",13),L("click",function(){return de(t),ue(R().loginStep=1)}),_(7,"Continue"),m()()}if(2&e){const t=R();b(),D("ngIf",t.nodeJSIncompatible)}}function u_e(e,n){1&e&&(_(0,"You can leave this field blank."),B(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 "),y(3,"a",34),_(4,"this disussion"),m(),_(5," to learn more."))}function h_e(e,n){if(1&e&&(y(0,"option"),_(1),m()),2&e){const t=n.$implicit,i=R(2);G("value",t.short)("selected",i.credentials.country===t.short||null),b(),Ci("",t.long," ")}}function p_e(e,n){1&e&&B(0,"span",35)}function f_e(e,n){1&e&&(y(0,"span"),_(1,"..."),m())}function y_e(e,n){if(1&e){const t=Ue();y(0,"div")(1,"div",16),B(2,"lucide-angular",12),y(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 "),y(5,"a",17),_(6,"here"),m(),_(7,". "),m()(),y(8,"div",18)(9,"input",19),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.credentials.username,r)||(o.credentials.username=r),ue(r)}),m(),y(10,"label",20),_(11,"Email address"),m()(),B(12,"p"),y(13,"div",18)(14,"input",21),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.credentials.password,r)||(o.credentials.password=r),ue(r)}),m(),y(15,"label",22),_(16,"Password"),m()(),B(17,"p"),y(18,"div",18),H(19,u_e,6,0,"ng-template",null,2,Ut),y(21,"input",23),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.credentials.deviceName,r)||(o.credentials.deviceName=r),ue(r)}),m(),y(22,"label",24),_(23,"Device Name"),m()(),y(24,"div",25)(25,"div",26)(26,"select",27),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.credentials.country,r)||(o.credentials.country=r),ue(r)}),H(27,h_e,2,3,"option",28),m(),y(28,"small")(29,"i"),_(30," Make sure to use the same country that you use to login with the eufy app. "),m()()(),B(31,"span",29),y(32,"div",30)(33,"button",31),L("click",function(){return de(t),ue(R().login())}),H(34,p_e,1,0,"span",32),_(35," Login "),H(36,f_e,2,0,"span",5),m(),y(37,"button",33),L("click",function(){return de(t),ue(R().cancelLogin())}),_(38," Cancel "),m()()()()}if(2&e){const t=gt(20),i=R();b(9),he("ngModel",i.credentials.username),G("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),he("ngModel",i.credentials.password),G("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(7),he("ngModel",i.credentials.deviceName),D("ngbTooltip",t)("closeDelay",2500),G("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),he("ngModel",i.credentials.country),G("disabled",!!i.loginInProgress||null),b(),D("ngForOf",i.countries),b(6),G("disabled",!!i.loginInProgress||null),b(),D("ngIf",i.loginInProgress),b(2),D("ngIf",i.loginInProgress),b(),G("disabled",!!i.loginInProgress||null)}}function g_e(e,n){1&e&&B(0,"span",35)}function m_e(e,n){1&e&&(y(0,"span"),_(1,"..."),m())}function v_e(e,n){if(1&e){const t=Ue();y(0,"div")(1,"div",36),_(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),y(3,"div",37)(4,"div",38)(5,"input",39),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.otp,r)||(o.otp=r),ue(r)}),m(),y(6,"label",40),_(7,"2FA Code"),m()()(),y(8,"div",41)(9,"div",42)(10,"button",43),L("click",function(){return de(t),ue(R().login())}),H(11,g_e,1,0,"span",32),_(12," Verify "),H(13,m_e,2,0,"span",5),m()()(),y(14,"div",37)(15,"div",42)(16,"button",33),L("click",function(){return de(t),ue(R().cancelLogin())}),_(17," Cancel "),m()()()()}if(2&e){const t=R();b(5),he("ngModel",t.otp),G("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),G("disabled",!!t.loginInProgress||null),b(),D("ngIf",t.loginInProgress),b(2),D("ngIf",t.loginInProgress),b(3),G("disabled",!!t.loginInProgress||null)}}function k_e(e,n){1&e&&B(0,"span",35)}function __e(e,n){1&e&&(y(0,"span"),_(1,"..."),m())}function M_e(e,n){if(1&e){const t=Ue();y(0,"div")(1,"div",36),_(2,"Please enter the captcha below."),m(),y(3,"div",41),B(4,"img",44),m(),y(5,"div",37)(6,"div",38)(7,"input",39),pe("ngModelChange",function(r){de(t);const o=R();return ye(o.captcha,r)||(o.captcha=r),ue(r)}),m(),y(8,"label",40),_(9,"Captcha"),m()()(),y(10,"div",41)(11,"div",42)(12,"button",43),L("click",function(){return de(t),ue(R().login())}),H(13,k_e,1,0,"span",32),_(14," Verify "),H(15,__e,2,0,"span",5),m()()(),y(16,"div",37)(17,"div",42)(18,"button",33),L("click",function(){return de(t),ue(R().cancelLogin())}),_(19," Cancel "),m()()()()}if(2&e){const t=R();b(4),D("src",t.captchaImageData,T1),b(3),he("ngModel",t.captcha),G("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),G("disabled",!!t.loginInProgress||null),b(),D("ngIf",t.loginInProgress),b(2),D("ngIf",t.loginInProgress),b(3),G("disabled",!!t.loginInProgress||null)}}var Ni=function(e){return e[e.START=0]="START",e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Ni||{});let b_e=(()=>{class e{loginService;routerService;countries=[];credentials={username:"",password:"",country:"US",deviceName:""};otp="";captcha="";captchaImageData="";captchaId="";loginInProgress=!1;loginFailed=!1;loginStep=Ni.START;firstLoginAssumed=!1;nodeJSIncompatible=!0;nodeJSversion="1.1.1";emailIsValid=!0;passwordIsValid=!0;otpIsValid=!0;captchaIsValid=!0;constructor(t,i){this.loginService=t,this.routerService=i}ngOnInit(){var t=this;return oe(function*(){const i=yield window.homebridge.request("/nodeJSVersion");t.nodeJSversion=i.nodeJSversion,t.nodeJSIncompatible=i.nodeJSIncompatible,console.log("r: ",i),t.getCredentials(),t.fillCountryArray()})()}getCredentials(){var t=this;return oe(function*(){try{t.credentials=t.loginService.getCredentials()}catch(i){t.firstLoginAssumed=!0,console.log(i)}})()}fillCountryArray(){Object.entries(r_e).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Ni.LOGIN&&this.loginWithCredentials(),this.loginStep===Ni.TFA&&this.loginWithTFA(),this.loginStep===Ni.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return oe(function*(){let i;try{i=yield t.loginService.login(t.credentials)}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithTFA(){var t=this;return oe(function*(){let i;try{i=yield t.loginService.login({verifyCode:t.otp})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithCaptcha(){var t=this;return oe(function*(){let i;try{i=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}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===em.TFA)return void(this.loginStep=Ni.TFA);if(t&&t.failReason&&t.failReason===em.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=Ni.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=Ni.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===Ni.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===Ni.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===Ni.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===Ni.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}static \u0275fac=function(i){return new(i||e)(N(o_e),N(Zn))};static \u0275cmp=se({type:e,selectors:[["app-login"]],standalone:!0,features:[fe],decls:9,vars:5,consts:[["popInfo",""],["popInfoNodeJS",""],["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"],["class","alert alert-danger d-flex align-items-center text-left","role","alert",4,"ngIf"],["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-danger","d-flex","align-items-center","text-left"],["role","button","popoverTitle","Please downgrade your NodeJS version",3,"autoClose","ngbPopover"],["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(i,r){1&i&&H(0,a_e,4,0,"ng-template",null,0,Ut)(2,s_e,13,0,"ng-template",null,1,Ut)(4,c_e,5,1,"p",3)(5,d_e,8,1,"div",4)(6,y_e,39,18,"div",5)(7,v_e,18,7,"div",5)(8,M_e,20,8,"div",5),2&i&&(b(4),D("ngIf",r.loginFailed),b(),D("ngIf",0===r.loginStep),b(),D("ngIf",1===r.loginStep),b(),D("ngIf",2===r.loginStep),b(),D("ngIf",3===r.loginStep))},dependencies:[Fn,Pg,zW,It,ha,pa,Mo,qr,Et,_g,Dt,SD,$u,Eo,wa],encapsulation:2})}return e})();function w_e(e,n){if(1&e){const t=Ue();y(0,"p",7)(1,"ngb-alert",8),L("closed",function(){return de(t),ue(R().failed=!1)}),B(2,"lucide-angular",9),y(3,"strong"),_(4,"Reset was not successful!"),m()()()}2&e&&(b(),D("dismissible",!0))}let C_e=(()=>{class e{routerService;pluginService;disabled=!1;failed=!1;constructor(t,i){this.routerService=t,this.pluginService=i}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return oe(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch(i){console.error(i),t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.resetConfig(),window.homebridge.closeSettings())})()}static \u0275fac=function(i){return new(i||e)(N(Zn),N(mt))};static \u0275cmp=se({type:e,selectors:[["app-reset-confirmation"]],standalone:!0,features:[fe],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(i,r){1&i&&(y(0,"div",0),H(1,w_e,5,1,"p",1),y(2,"div",2)(3,"h3",3),_(4,"Are you sure that you want to erase everything?"),m(),y(5,"div",4)(6,"button",5),L("click",function(){return r.cancel()}),_(7,"No"),m(),y(8,"button",6),L("click",function(){return r.resetEverything()}),_(9,"Do it!"),m()()()()),2&i&&(b(),D("ngIf",r.failed),b(5),G("disabled",!!r.disabled||null),b(2),G("disabled",!!r.disabled||null))},dependencies:[Fn,Pg,Eo,wa],encapsulation:2})}return e})();var D_e=vt(838);function x_e(e,n){if(1&e&&(y(0,"div",8),_(1),m()),2&e){const t=R();b(),Ci(" ",t.failureMessage," ")}}function S_e(e,n){1&e&&(y(0,"span"),_(1,"Download Logs"),m())}function E_e(e,n){1&e&&B(0,"span",11)}function I_e(e,n){1&e&&(y(0,"span"),_(1," Generating Log File..."),m())}function T_e(e,n){if(1&e){const t=Ue();y(0,"button",9),L("click",function(){return de(t),ue(R().downloadLogs())}),H(1,S_e,2,0,"span",7)(2,E_e,1,0,"span",10)(3,I_e,2,0,"span",7),m()}if(2&e){const t=R();G("disabled",!!t.isDownloading||null),b(),D("ngIf",!t.isDownloading),b(),D("ngIf",t.isDownloading),b(),D("ngIf",t.isDownloading)}}function A_e(e,n){if(1&e){const t=Ue();y(0,"button",12),L("click",function(){return de(t),ue(R().openLink())}),y(1,"span"),_(2,"Download Logs"),m()()}}function N_e(e,n){if(1&e&&(y(0,"ngb-progressbar",13),_(1),m()),2&e){const t=R();D("value",t.progress)("animated",!0)("striped",!0),b(),wi(t.status)}}function O_e(e,n){1&e&&(y(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 "),y(4,"a",14),_(5,"site"),m(),_(6," can help."),m()()())}let ZD=(()=>{class e{router;zone;progress=0;status="";constructor(t,i){this.router=t,this.zone=i}ngOnInit(){this.router.events.subscribe(t=>{t instanceof Wl&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsProgress",t=>{const i=t.data;console.log("downloadLogsProgress",i),this.zone.run(()=>{this.progress=i.progress,this.status=i.status})})}failed=!1;isDownloading=!1;hasDownloaded=!1;downloadMessage;failureMessage="";logFileLocation="";downloadLogs(){var t=this;return oe(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=D_e.hp.from(i.data),o=new File([r],"logs.zip",{type:"application/zip"}),a=window.URL.createObjectURL(o);t.logFileLocation=a,t.hasDownloaded=!0}catch(i){console.log(i);const r=i;t.failed=!0,t.failureMessage=`Generating of compressed logs.zip file did not complete: ${r.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}static \u0275fac=function(i){return new(i||e)(N(Zn),N(ve))};static \u0275cmp=se({type:e,selectors:[["app-download-logs"]],standalone:!0,features:[fe],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(i,r){1&i&&(y(0,"div",0),H(1,x_e,2,1,"div",1),y(2,"div",2)(3,"span",3),_(4,"Download Logs"),m(),H(5,T_e,4,4,"button",4)(6,A_e,3,0,"button",5),m(),H(7,N_e,2,4,"ngb-progressbar",6),y(8,"p"),H(9,O_e,7,0,"small",7),m()()),2&i&&(b(),D("ngIf",r.failed),b(4),D("ngIf",!r.hasDownloaded),b(),D("ngIf",r.hasDownloaded),b(),D("ngIf",!r.hasDownloaded&&r.isDownloading),b(2),D("ngIf",r.hasDownloaded))},dependencies:[Fn,qW],encapsulation:2})}return e})(),R_e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=se({type:e,selectors:[["app-reset-plugin"]],standalone:!0,features:[fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),_(3,"Reset Plugin"),m(),y(4,"a",3),_(5,"Remove everything"),m()(),y(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 "),y(9,"a",4),_(10,"Basic Troubleshooting"),m(),_(11,") "),m()()())},dependencies:[vr],encapsulation:2})}return e})(),P_e=(()=>{class e extends Tt{enableDetailedLogging=Ai.enableDetailedLogging;constructor(t){super(t)}ngOnInit(){var t=this;return oe(function*(){t.readValue()})()}readValue(){this.enableDetailedLogging=this.config.enableDetailedLogging??this.enableDetailedLogging}update(){this.updateConfig({enableDetailedLogging:this.enableDetailedLogging})}static \u0275fac=function(i){return new(i||e)(N(mt))};static \u0275cmp=se({type:e,selectors:[["app-enable-detailed-logging"]],standalone:!0,features:[ee,fe],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(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),_(3,"Debug Mode"),m(),y(4,"div",3)(5,"input",4),pe("ngModelChange",function(a){return ye(r.enableDetailedLogging,a)||(r.enableDetailedLogging=a),a}),L("change",function(){return r.update()}),m()()(),y(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. "),m()()()),2&i&&(b(5),he("ngModel",r.enableDetailedLogging))},dependencies:[It,Cn,Et,Dt],encapsulation:2})}return e})();function F_e(e,n){if(1&e){const t=Ue();y(0,"div")(1,"p"),_(2,"To troubleshoot effectively before rising your issue to us:"),m(),y(3,"ol")(4,"li"),_(5,"Search Existing Issues: Check "),y(6,"a",5),_(7,"Common Issues"),m(),_(8," and "),y(9,"a",6),_(10,"User-Raised Issues"),m(),_(11,"."),m(),y(12,"li"),_(13,"Join Discord Server: Engage with developers and community on "),y(14,"a",7),_(15,"Discord"),m(),_(16,"."),m(),y(17,"li"),_(18,"Enable debug logging"),m(),y(19,"li"),_(20,"Reboot your system"),m(),y(21,"li"),_(22,"Reproduce the issue"),m(),y(23,"li"),_(24,"Download logs"),m()(),y(25,"p"),_(26,"Resetting the system may also help."),m(),y(27,"p"),_(28,"Remember to disable debug logging after troubleshooting."),m(),y(29,"div",8)(30,"button",9),L("click",function(){return de(t),R(),ue(gt(5).toggle())}),_(31," OK! let me go! "),m()()()}if(2&e){const t=R();b(30),G("aria-expanded",!t.isCollapsed)}}const L_e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Uve},{path:"advancedConfig",component:nke},{path:"downloadLogs",component:ZD},{path:"githubissue",component:(()=>{class e{isCollapsed=!0;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=se({type:e,selectors:[["app-github-issue"]],standalone:!0,features:[fe],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(i,r){if(1&i){const o=Ue();y(0,"a",1),B(1,"lucide-angular",2),_(2," Back\n"),m(),H(3,F_e,32,1,"div",3),y(4,"div",4,0),pe("ngbCollapseChange",function(s){return de(o),ye(r.isCollapsed,s)||(r.isCollapsed=s),ue(s)}),B(6,"app-enable-detailed-logging")(7,"hr")(8,"app-download-logs")(9,"hr")(10,"app-reset-plugin"),m()}2&i&&(b(3),D("ngIf",r.isCollapsed),b(),he("ngbCollapse",r.isCollapsed))},dependencies:[vr,Fn,Ng,Eo,wa,ZD,R_e,P_e],encapsulation:2})}return e})()},{path:"config/:type/:id",component:i_e},{path:"login",component:b_e},{path:"reset",component:C_e},{path:"**",redirectTo:"/accessories"}];(function WH(e,n){return cF({rootComponent:e,...Gw(n)})})(Mz,{providers:[nv(XH,It,eZ,(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=$e({imports:[Q8.forRoot(L_e,{scrollPositionRestoration:"enabled"}),Q8]})}return e})(),function H_e(){return Eo.pick({SlidersHorizontal:jD,RefreshCw:FD,Download:ND,Bug:TD,Video:$D,VideoOff:GD,Shield:HD,ShieldOff:VD,Eye:RD,EyeOff:OD,ChevronLeft:AD,Square:UD,SquarePlus:zD,SquareMinus:BD,TriangleAlert:qD,Info:PD,ShieldAlert:LD})}()),{provide:vo,useClass:iw}]}).catch(e=>console.error(e))},981:(Ia,Qn)=>{"use strict";Qn.byteLength=function nt(ae){var Ce=W(ae),xt=Ce[1];return 3*(Ce[0]+xt)/4-xt},Qn.toByteArray=function Jn(ae){var Ce,hn,Ze=W(ae),xt=Ze[0],Wt=Ze[1],dt=new Pe(function A(ae,Ce,Ze){return 3*(Ce+Ze)/4-Ze}(0,xt,Wt)),sn=0,vi=Wt>0?xt-4:xt;for(hn=0;hn<vi;hn+=4)Ce=_e[ae.charCodeAt(hn)]<<18|_e[ae.charCodeAt(hn+1)]<<12|_e[ae.charCodeAt(hn+2)]<<6|_e[ae.charCodeAt(hn+3)],dt[sn++]=Ce>>16&255,dt[sn++]=Ce>>8&255,dt[sn++]=255&Ce;return 2===Wt&&(Ce=_e[ae.charCodeAt(hn)]<<2|_e[ae.charCodeAt(hn+1)]>>4,dt[sn++]=255&Ce),1===Wt&&(Ce=_e[ae.charCodeAt(hn)]<<10|_e[ae.charCodeAt(hn+1)]<<4|_e[ae.charCodeAt(hn+2)]>>2,dt[sn++]=Ce>>8&255,dt[sn++]=255&Ce),dt},Qn.fromByteArray=function Hn(ae){for(var Ce,Ze=ae.length,xt=Ze%3,Wt=[],sn=0,vi=Ze-xt;sn<vi;sn+=16383)Wt.push(At(ae,sn,sn+16383>vi?vi:sn+16383));return 1===xt?Wt.push(vt[(Ce=ae[Ze-1])>>2]+vt[Ce<<4&63]+"=="):2===xt&&Wt.push(vt[(Ce=(ae[Ze-2]<<8)+ae[Ze-1])>>10]+vt[Ce>>4&63]+vt[Ce<<2&63]+"="),Wt.join("")};for(var vt=[],_e=[],Pe=typeof Uint8Array<"u"?Uint8Array:Array,kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0;tt<64;++tt)vt[tt]=kt[tt],_e[kt.charCodeAt(tt)]=tt;function W(ae){var Ce=ae.length;if(Ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ze=ae.indexOf("=");return-1===Ze&&(Ze=Ce),[Ze,Ze===Ce?0:4-Ze%4]}function lt(ae){return vt[ae>>18&63]+vt[ae>>12&63]+vt[ae>>6&63]+vt[63&ae]}function At(ae,Ce,Ze){for(var Wt=[],dt=Ce;dt<Ze;dt+=3)Wt.push(lt((ae[dt]<<16&16711680)+(ae[dt+1]<<8&65280)+(255&ae[dt+2])));return Wt.join("")}_e[45]=62,_e[95]=63},838:(Ia,Qn,vt)=>{"use strict";const Pe=vt(981),kt=vt(20),tt="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Qn.hp=A,Qn.IS=50;const Te=2147483647;function nt(v){if(v>Te)throw new RangeError('The value "'+v+'" is invalid for option "size"');const u=new Uint8Array(v);return Object.setPrototypeOf(u,A.prototype),u}function A(v,u,p){if("number"==typeof v){if("string"==typeof u)throw new TypeError('The "string" argument must be of type string. Received type number');return Hn(v)}return Jn(v,u,p)}function Jn(v,u,p){if("string"==typeof v)return function ae(v,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!A.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=0|vi(v,u);let M=nt(p);const x=M.write(v,u);return x!==p&&(M=M.slice(0,x)),M}(v,u);if(ArrayBuffer.isView(v))return function Ze(v){if(Xn(v,Uint8Array)){const u=new Uint8Array(v);return xt(u.buffer,u.byteOffset,u.byteLength)}return Ce(v)}(v);if(null==v)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(Xn(v,ArrayBuffer)||v&&Xn(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xn(v,SharedArrayBuffer)||v&&Xn(v.buffer,SharedArrayBuffer)))return xt(v,u,p);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');const M=v.valueOf&&v.valueOf();if(null!=M&&M!==v)return A.from(M,u,p);const x=function Wt(v){if(A.isBuffer(v)){const u=0|dt(v.length),p=nt(u);return 0===p.length||v.copy(p,0,0,u),p}return void 0!==v.length?"number"!=typeof v.length||Cr(v.length)?nt(0):Ce(v):"Buffer"===v.type&&Array.isArray(v.data)?Ce(v.data):void 0}(v);if(x)return x;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return A.from(v[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 v)}function lt(v){if("number"!=typeof v)throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function Hn(v){return lt(v),nt(v<0?0:0|dt(v))}function Ce(v){const u=v.length<0?0:0|dt(v.length),p=nt(u);for(let M=0;M<u;M+=1)p[M]=255&v[M];return p}function xt(v,u,p){if(u<0||v.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<u+(p||0))throw new RangeError('"length" is outside of buffer bounds');let M;return M=void 0===u&&void 0===p?new Uint8Array(v):void 0===p?new Uint8Array(v,u):new Uint8Array(v,u,p),Object.setPrototypeOf(M,A.prototype),M}function dt(v){if(v>=Te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Te.toString(16)+" bytes");return 0|v}function vi(v,u){if(A.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||Xn(v,ArrayBuffer))return v.byteLength;if("string"!=typeof v)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const p=v.length,M=arguments.length>2&&!0===arguments[2];if(!M&&0===p)return 0;let x=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Ra(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*p;case"hex":return p>>>1;case"base64":return Xi(v).length;default:if(x)return M?-1:Ra(v).length;u=(""+u).toLowerCase(),x=!0}}function hn(v,u,p){let M=!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(v||(v="utf8");;)switch(v){case"hex":return Aa(this,u,p);case"utf8":case"utf-8":return Md(this,u,p);case"ascii":return Cd(this,u,p);case"latin1":case"binary":return tp(this,u,p);case"base64":return Ta(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return np(this,u,p);default:if(M)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),M=!0}}function ki(v,u,p){const M=v[u];v[u]=v[p],v[p]=M}function Wr(v,u,p,M,x){if(0===v.length)return-1;if("string"==typeof p?(M=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),Cr(p=+p)&&(p=x?0:v.length-1),p<0&&(p=v.length+p),p>=v.length){if(x)return-1;p=v.length-1}else if(p<0){if(!x)return-1;p=0}if("string"==typeof u&&(u=A.from(u,M)),A.isBuffer(u))return 0===u.length?-1:To(v,u,p,M,x);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(v,u,p):Uint8Array.prototype.lastIndexOf.call(v,u,p):To(v,[u],p,M,x);throw new TypeError("val must be string, number or Buffer")}function To(v,u,p,M,x){let qe,T=1,P=v.length,Me=u.length;if(void 0!==M&&("ucs2"===(M=String(M).toLowerCase())||"ucs-2"===M||"utf16le"===M||"utf-16le"===M)){if(v.length<2||u.length<2)return-1;T=2,P/=2,Me/=2,p/=2}function it(_t,Fe){return 1===T?_t[Fe]:_t.readUInt16BE(Fe*T)}if(x){let _t=-1;for(qe=p;qe<P;qe++)if(it(v,qe)===it(u,-1===_t?0:qe-_t)){if(-1===_t&&(_t=qe),qe-_t+1===Me)return _t*T}else-1!==_t&&(qe-=qe-_t),_t=-1}else for(p+Me>P&&(p=P-Me),qe=p;qe>=0;qe--){let _t=!0;for(let Fe=0;Fe<Me;Fe++)if(it(v,qe+Fe)!==it(u,Fe)){_t=!1;break}if(_t)return qe}return-1}function kd(v,u,p,M){p=Number(p)||0;const x=v.length-p;M?(M=Number(M))>x&&(M=x):M=x;const T=u.length;let P;for(M>T/2&&(M=T/2),P=0;P<M;++P){const Me=parseInt(u.substr(2*P,2),16);if(Cr(Me))return P;v[p+P]=Me}return P}function _d(v,u,p,M){return wr(Ra(u,v.length-p),v,p,M)}function ep(v,u,p,M){return wr(function Id(v){const u=[];for(let p=0;p<v.length;++p)u.push(255&v.charCodeAt(p));return u}(u),v,p,M)}function lc(v,u,p,M){return wr(Xi(u),v,p,M)}function dc(v,u,p,M){return wr(function Td(v,u){let p,M,x;const T=[];for(let P=0;P<v.length&&!((u-=2)<0);++P)p=v.charCodeAt(P),M=p>>8,x=p%256,T.push(x),T.push(M);return T}(u,v.length-p),v,p,M)}function Ta(v,u,p){return Pe.fromByteArray(0===u&&p===v.length?v:v.slice(u,p))}function Md(v,u,p){p=Math.min(v.length,p);const M=[];let x=u;for(;x<p;){const T=v[x];let P=null,Me=T>239?4:T>223?3:T>191?2:1;if(x+Me<=p){let it,qe,_t,Fe;switch(Me){case 1:T<128&&(P=T);break;case 2:it=v[x+1],128==(192&it)&&(Fe=(31&T)<<6|63&it,Fe>127&&(P=Fe));break;case 3:it=v[x+1],qe=v[x+2],128==(192&it)&&128==(192&qe)&&(Fe=(15&T)<<12|(63&it)<<6|63&qe,Fe>2047&&(Fe<55296||Fe>57343)&&(P=Fe));break;case 4:it=v[x+1],qe=v[x+2],_t=v[x+3],128==(192&it)&&128==(192&qe)&&128==(192&_t)&&(Fe=(15&T)<<18|(63&it)<<12|(63&qe)<<6|63&_t,Fe>65535&&Fe<1114112&&(P=Fe))}}null===P?(P=65533,Me=1):P>65535&&(P-=65536,M.push(P>>>10&1023|55296),P=56320|1023&P),M.push(P),x+=Me}return function wd(v){const u=v.length;if(u<=bd)return String.fromCharCode.apply(String,v);let p="",M=0;for(;M<u;)p+=String.fromCharCode.apply(String,v.slice(M,M+=bd));return p}(M)}!(A.TYPED_ARRAY_SUPPORT=function W(){try{const v=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(v,u),42===v.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(A.prototype,"parent",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.buffer}}),Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.byteOffset}}),A.poolSize=8192,A.from=function(v,u,p){return Jn(v,u,p)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array),A.alloc=function(v,u,p){return function At(v,u,p){return lt(v),v<=0?nt(v):void 0!==u?"string"==typeof p?nt(v).fill(u,p):nt(v).fill(u):nt(v)}(v,u,p)},A.allocUnsafe=function(v){return Hn(v)},A.allocUnsafeSlow=function(v){return Hn(v)},A.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==A.prototype},A.compare=function(u,p){if(Xn(u,Uint8Array)&&(u=A.from(u,u.offset,u.byteLength)),Xn(p,Uint8Array)&&(p=A.from(p,p.offset,p.byteLength)),!A.isBuffer(u)||!A.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let M=u.length,x=p.length;for(let T=0,P=Math.min(M,x);T<P;++T)if(u[T]!==p[T]){M=u[T],x=p[T];break}return M<x?-1:x<M?1:0},A.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}},A.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return A.alloc(0);let M;if(void 0===p)for(p=0,M=0;M<u.length;++M)p+=u[M].length;const x=A.allocUnsafe(p);let T=0;for(M=0;M<u.length;++M){let P=u[M];if(Xn(P,Uint8Array))T+P.length>x.length?(A.isBuffer(P)||(P=A.from(P)),P.copy(x,T)):Uint8Array.prototype.set.call(x,P,T);else{if(!A.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(x,T)}T+=P.length}return x},A.byteLength=vi,A.prototype._isBuffer=!0,A.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)ki(this,p,p+1);return this},A.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)ki(this,p,p+3),ki(this,p+1,p+2);return this},A.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)ki(this,p,p+7),ki(this,p+1,p+6),ki(this,p+2,p+5),ki(this,p+3,p+4);return this},A.prototype.toLocaleString=A.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?Md(this,0,u):hn.apply(this,arguments)},A.prototype.equals=function(u){if(!A.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===A.compare(this,u)},A.prototype.inspect=function(){let u="";const p=Qn.IS;return u=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(u+=" ... "),"<Buffer "+u+">"},tt&&(A.prototype[tt]=A.prototype.inspect),A.prototype.compare=function(u,p,M,x,T){if(Xn(u,Uint8Array)&&(u=A.from(u,u.offset,u.byteLength)),!A.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===M&&(M=u?u.length:0),void 0===x&&(x=0),void 0===T&&(T=this.length),p<0||M>u.length||x<0||T>this.length)throw new RangeError("out of range index");if(x>=T&&p>=M)return 0;if(x>=T)return-1;if(p>=M)return 1;if(this===u)return 0;let P=(T>>>=0)-(x>>>=0),Me=(M>>>=0)-(p>>>=0);const it=Math.min(P,Me),qe=this.slice(x,T),_t=u.slice(p,M);for(let Fe=0;Fe<it;++Fe)if(qe[Fe]!==_t[Fe]){P=qe[Fe],Me=_t[Fe];break}return P<Me?-1:Me<P?1:0},A.prototype.includes=function(u,p,M){return-1!==this.indexOf(u,p,M)},A.prototype.indexOf=function(u,p,M){return Wr(this,u,p,M,!0)},A.prototype.lastIndexOf=function(u,p,M){return Wr(this,u,p,M,!1)},A.prototype.write=function(u,p,M,x){if(void 0===p)x="utf8",M=this.length,p=0;else if(void 0===M&&"string"==typeof p)x=p,M=this.length,p=0;else{if(!isFinite(p))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");p>>>=0,isFinite(M)?(M>>>=0,void 0===x&&(x="utf8")):(x=M,M=void 0)}const T=this.length-p;if((void 0===M||M>T)&&(M=T),u.length>0&&(M<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let P=!1;for(;;)switch(x){case"hex":return kd(this,u,p,M);case"utf8":case"utf-8":return _d(this,u,p,M);case"ascii":case"latin1":case"binary":return ep(this,u,p,M);case"base64":return lc(this,u,p,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dc(this,u,p,M);default:if(P)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),P=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const bd=4096;function Cd(v,u,p){let M="";p=Math.min(v.length,p);for(let x=u;x<p;++x)M+=String.fromCharCode(127&v[x]);return M}function tp(v,u,p){let M="";p=Math.min(v.length,p);for(let x=u;x<p;++x)M+=String.fromCharCode(v[x]);return M}function Aa(v,u,p){const M=v.length;(!u||u<0)&&(u=0),(!p||p<0||p>M)&&(p=M);let x="";for(let T=u;T<p;++T)x+=rp[v[T]];return x}function np(v,u,p){const M=v.slice(u,p);let x="";for(let T=0;T<M.length-1;T+=2)x+=String.fromCharCode(M[T]+256*M[T+1]);return x}function Zt(v,u,p){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+u>p)throw new RangeError("Trying to access beyond buffer length")}function xn(v,u,p,M,x,T){if(!A.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>x||u<T)throw new RangeError('"value" argument is out of bounds');if(p+M>v.length)throw new RangeError("Index out of range")}function uc(v,u,p,M,x){Se(u,M,x,v,p,7);let T=Number(u&BigInt(4294967295));v[p++]=T,T>>=8,v[p++]=T,T>>=8,v[p++]=T,T>>=8,v[p++]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return v[p++]=P,P>>=8,v[p++]=P,P>>=8,v[p++]=P,P>>=8,v[p++]=P,p}function Dd(v,u,p,M,x){Se(u,M,x,v,p,7);let T=Number(u&BigInt(4294967295));v[p+7]=T,T>>=8,v[p+6]=T,T>>=8,v[p+5]=T,T>>=8,v[p+4]=T;let P=Number(u>>BigInt(32)&BigInt(4294967295));return v[p+3]=P,P>>=8,v[p+2]=P,P>>=8,v[p+1]=P,P>>=8,v[p]=P,p+8}function ip(v,u,p,M,x,T){if(p+M>v.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function xd(v,u,p,M,x){return u=+u,p>>>=0,x||ip(v,0,p,4),kt.write(v,u,p,M,23,4),p+4}function Sd(v,u,p,M,x){return u=+u,p>>>=0,x||ip(v,0,p,8),kt.write(v,u,p,M,52,8),p+8}A.prototype.slice=function(u,p){const M=this.length;(u=~~u)<0?(u+=M)<0&&(u=0):u>M&&(u=M),(p=void 0===p?M:~~p)<0?(p+=M)<0&&(p=0):p>M&&(p=M),p<u&&(p=u);const x=this.subarray(u,p);return Object.setPrototypeOf(x,A.prototype),x},A.prototype.readUintLE=A.prototype.readUIntLE=function(u,p,M){u>>>=0,p>>>=0,M||Zt(u,p,this.length);let x=this[u],T=1,P=0;for(;++P<p&&(T*=256);)x+=this[u+P]*T;return x},A.prototype.readUintBE=A.prototype.readUIntBE=function(u,p,M){u>>>=0,p>>>=0,M||Zt(u,p,this.length);let x=this[u+--p],T=1;for(;p>0&&(T*=256);)x+=this[u+--p]*T;return x},A.prototype.readUint8=A.prototype.readUInt8=function(u,p){return u>>>=0,p||Zt(u,1,this.length),this[u]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(u,p){return u>>>=0,p||Zt(u,2,this.length),this[u]|this[u+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(u,p){return u>>>=0,p||Zt(u,2,this.length),this[u]<<8|this[u+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},A.prototype.readBigUInt64LE=er(function(u){Ji(u>>>=0,"offset");const p=this[u],M=this[u+7];(void 0===p||void 0===M)&&br(u,this.length-8);const x=p+256*this[++u]+65536*this[++u]+this[++u]*2**24,T=this[++u]+256*this[++u]+65536*this[++u]+M*2**24;return BigInt(x)+(BigInt(T)<<BigInt(32))}),A.prototype.readBigUInt64BE=er(function(u){Ji(u>>>=0,"offset");const p=this[u],M=this[u+7];(void 0===p||void 0===M)&&br(u,this.length-8);const x=p*2**24+65536*this[++u]+256*this[++u]+this[++u],T=this[++u]*2**24+65536*this[++u]+256*this[++u]+M;return(BigInt(x)<<BigInt(32))+BigInt(T)}),A.prototype.readIntLE=function(u,p,M){u>>>=0,p>>>=0,M||Zt(u,p,this.length);let x=this[u],T=1,P=0;for(;++P<p&&(T*=256);)x+=this[u+P]*T;return T*=128,x>=T&&(x-=Math.pow(2,8*p)),x},A.prototype.readIntBE=function(u,p,M){u>>>=0,p>>>=0,M||Zt(u,p,this.length);let x=p,T=1,P=this[u+--x];for(;x>0&&(T*=256);)P+=this[u+--x]*T;return T*=128,P>=T&&(P-=Math.pow(2,8*p)),P},A.prototype.readInt8=function(u,p){return u>>>=0,p||Zt(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},A.prototype.readInt16LE=function(u,p){u>>>=0,p||Zt(u,2,this.length);const M=this[u]|this[u+1]<<8;return 32768&M?4294901760|M:M},A.prototype.readInt16BE=function(u,p){u>>>=0,p||Zt(u,2,this.length);const M=this[u+1]|this[u]<<8;return 32768&M?4294901760|M:M},A.prototype.readInt32LE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},A.prototype.readInt32BE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},A.prototype.readBigInt64LE=er(function(u){Ji(u>>>=0,"offset");const p=this[u],M=this[u+7];return(void 0===p||void 0===M)&&br(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(M<<24))<<BigInt(32))+BigInt(p+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),A.prototype.readBigInt64BE=er(function(u){Ji(u>>>=0,"offset");const p=this[u],M=this[u+7];(void 0===p||void 0===M)&&br(u,this.length-8);const x=(p<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(x)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+M)}),A.prototype.readFloatLE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),kt.read(this,u,!0,23,4)},A.prototype.readFloatBE=function(u,p){return u>>>=0,p||Zt(u,4,this.length),kt.read(this,u,!1,23,4)},A.prototype.readDoubleLE=function(u,p){return u>>>=0,p||Zt(u,8,this.length),kt.read(this,u,!0,52,8)},A.prototype.readDoubleBE=function(u,p){return u>>>=0,p||Zt(u,8,this.length),kt.read(this,u,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(u,p,M,x){u=+u,p>>>=0,M>>>=0,x||xn(this,u,p,M,Math.pow(2,8*M)-1,0);let T=1,P=0;for(this[p]=255&u;++P<M&&(T*=256);)this[p+P]=u/T&255;return p+M},A.prototype.writeUintBE=A.prototype.writeUIntBE=function(u,p,M,x){u=+u,p>>>=0,M>>>=0,x||xn(this,u,p,M,Math.pow(2,8*M)-1,0);let T=M-1,P=1;for(this[p+T]=255&u;--T>=0&&(P*=256);)this[p+T]=u/P&255;return p+M},A.prototype.writeUint8=A.prototype.writeUInt8=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,1,255,0),this[p]=255&u,p+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,2,65535,0),this[p]=255&u,this[p+1]=u>>>8,p+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=255&u,p+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(u,p,M){return u=+u,p>>>=0,M||xn(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},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(u,p,M){return u=+u,p>>>=0,M||xn(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},A.prototype.writeBigUInt64LE=er(function(u,p=0){return uc(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=er(function(u,p=0){return Dd(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(u,p,M,x){if(u=+u,p>>>=0,!x){const it=Math.pow(2,8*M-1);xn(this,u,p,M,it-1,-it)}let T=0,P=1,Me=0;for(this[p]=255&u;++T<M&&(P*=256);)u<0&&0===Me&&0!==this[p+T-1]&&(Me=1),this[p+T]=(u/P|0)-Me&255;return p+M},A.prototype.writeIntBE=function(u,p,M,x){if(u=+u,p>>>=0,!x){const it=Math.pow(2,8*M-1);xn(this,u,p,M,it-1,-it)}let T=M-1,P=1,Me=0;for(this[p+T]=255&u;--T>=0&&(P*=256);)u<0&&0===Me&&0!==this[p+T+1]&&(Me=1),this[p+T]=(u/P|0)-Me&255;return p+M},A.prototype.writeInt8=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=255&u,p+1},A.prototype.writeInt16LE=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,2,32767,-32768),this[p]=255&u,this[p+1]=u>>>8,p+2},A.prototype.writeInt16BE=function(u,p,M){return u=+u,p>>>=0,M||xn(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=255&u,p+2},A.prototype.writeInt32LE=function(u,p,M){return u=+u,p>>>=0,M||xn(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},A.prototype.writeInt32BE=function(u,p,M){return u=+u,p>>>=0,M||xn(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},A.prototype.writeBigInt64LE=er(function(u,p=0){return uc(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=er(function(u,p=0){return Dd(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(u,p,M){return xd(this,u,p,!0,M)},A.prototype.writeFloatBE=function(u,p,M){return xd(this,u,p,!1,M)},A.prototype.writeDoubleLE=function(u,p,M){return Sd(this,u,p,!0,M)},A.prototype.writeDoubleBE=function(u,p,M){return Sd(this,u,p,!1,M)},A.prototype.copy=function(u,p,M,x){if(!A.isBuffer(u))throw new TypeError("argument should be a Buffer");if(M||(M=0),!x&&0!==x&&(x=this.length),p>=u.length&&(p=u.length),p||(p=0),x>0&&x<M&&(x=M),x===M||0===u.length||0===this.length)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),u.length-p<x-M&&(x=u.length-p+M);const T=x-M;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(p,M,x):Uint8Array.prototype.set.call(u,this.subarray(M,x),p),T},A.prototype.fill=function(u,p,M,x){if("string"==typeof u){if("string"==typeof p?(x=p,p=0,M=this.length):"string"==typeof M&&(x=M,M=this.length),void 0!==x&&"string"!=typeof x)throw new TypeError("encoding must be a string");if("string"==typeof x&&!A.isEncoding(x))throw new TypeError("Unknown encoding: "+x);if(1===u.length){const P=u.charCodeAt(0);("utf8"===x&&P<128||"latin1"===x)&&(u=P)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(p<0||this.length<p||this.length<M)throw new RangeError("Out of range index");if(M<=p)return this;let T;if(p>>>=0,M=void 0===M?this.length:M>>>0,u||(u=0),"number"==typeof u)for(T=p;T<M;++T)this[T]=u;else{const P=A.isBuffer(u)?u:A.from(u,x),Me=P.length;if(0===Me)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(T=0;T<M-p;++T)this[T+p]=P[T%Me]}return this};const Ao={};function Na(v,u,p){Ao[v]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${v}]`,delete this.name}get code(){return v}set code(x){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:x,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function Ed(v){let u="",p=v.length;const M="-"===v[0]?1:0;for(;p>=M+4;p-=3)u=`_${v.slice(p-3,p)}${u}`;return`${v.slice(0,p)}${u}`}function Se(v,u,p,M,x,T){if(v>p||v<u){const P="bigint"==typeof u?"n":"";let Me;throw Me=T>3?0===u||u===BigInt(0)?`>= 0${P} and < 2${P} ** ${8*(T+1)}${P}`:`>= -(2${P} ** ${8*(T+1)-1}${P}) and < 2 ** ${8*(T+1)-1}${P}`:`>= ${u}${P} and <= ${p}${P}`,new Ao.ERR_OUT_OF_RANGE("value",Me,v)}!function am(v,u,p){Ji(u,"offset"),(void 0===v[u]||void 0===v[u+p])&&br(u,v.length-(p+1))}(M,x,T)}function Ji(v,u){if("number"!=typeof v)throw new Ao.ERR_INVALID_ARG_TYPE(u,"number",v)}function br(v,u,p){throw Math.floor(v)!==v?(Ji(v,p),new Ao.ERR_OUT_OF_RANGE(p||"offset","an integer",v)):u<0?new Ao.ERR_BUFFER_OUT_OF_BOUNDS:new Ao.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,v)}Na("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Na("ERR_INVALID_ARG_TYPE",function(v,u){return`The "${v}" argument must be of type number. Received type ${typeof u}`},TypeError),Na("ERR_OUT_OF_RANGE",function(v,u,p){let M=`The value of "${v}" is out of range.`,x=p;return Number.isInteger(p)&&Math.abs(p)>2**32?x=Ed(String(p)):"bigint"==typeof p&&(x=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(x=Ed(x)),x+="n"),M+=` It must be ${u}. Received ${x}`,M},RangeError);const Oa=/[^+/0-9A-Za-z-_]/g;function Ra(v,u){let p;u=u||1/0;const M=v.length;let x=null;const T=[];for(let P=0;P<M;++P){if(p=v.charCodeAt(P),p>55295&&p<57344){if(!x){if(p>56319){(u-=3)>-1&&T.push(239,191,189);continue}if(P+1===M){(u-=3)>-1&&T.push(239,191,189);continue}x=p;continue}if(p<56320){(u-=3)>-1&&T.push(239,191,189),x=p;continue}p=65536+(x-55296<<10|p-56320)}else x&&(u-=3)>-1&&T.push(239,191,189);if(x=null,p<128){if((u-=1)<0)break;T.push(p)}else if(p<2048){if((u-=2)<0)break;T.push(p>>6|192,63&p|128)}else if(p<65536){if((u-=3)<0)break;T.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;T.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}}return T}function Xi(v){return Pe.toByteArray(function cn(v){if((v=(v=v.split("=")[0]).trim().replace(Oa,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function wr(v,u,p,M){let x;for(x=0;x<M&&!(x+p>=u.length||x>=v.length);++x)u[x+p]=v[x];return x}function Xn(v,u){return v instanceof u||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===u.name}function Cr(v){return v!=v}const rp=function(){const v="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const M=16*p;for(let x=0;x<16;++x)u[M+x]=v[p]+v[x]}return u}();function er(v){return typeof BigInt>"u"?op:v}function op(){throw new Error("BigInt not supported")}},20:(Ia,Qn)=>{Qn.read=function(vt,_e,Pe,kt,tt){var Te,W,nt=8*tt-kt-1,A=(1<<nt)-1,Jn=A>>1,lt=-7,At=Pe?tt-1:0,Hn=Pe?-1:1,ae=vt[_e+At];for(At+=Hn,Te=ae&(1<<-lt)-1,ae>>=-lt,lt+=nt;lt>0;Te=256*Te+vt[_e+At],At+=Hn,lt-=8);for(W=Te&(1<<-lt)-1,Te>>=-lt,lt+=kt;lt>0;W=256*W+vt[_e+At],At+=Hn,lt-=8);if(0===Te)Te=1-Jn;else{if(Te===A)return W?NaN:1/0*(ae?-1:1);W+=Math.pow(2,kt),Te-=Jn}return(ae?-1:1)*W*Math.pow(2,Te-kt)},Qn.write=function(vt,_e,Pe,kt,tt,Te){var W,nt,A,Jn=8*Te-tt-1,lt=(1<<Jn)-1,At=lt>>1,Hn=23===tt?Math.pow(2,-24)-Math.pow(2,-77):0,ae=kt?0:Te-1,Ce=kt?1:-1,Ze=_e<0||0===_e&&1/_e<0?1:0;for(_e=Math.abs(_e),isNaN(_e)||_e===1/0?(nt=isNaN(_e)?1:0,W=lt):(W=Math.floor(Math.log(_e)/Math.LN2),_e*(A=Math.pow(2,-W))<1&&(W--,A*=2),(_e+=W+At>=1?Hn/A:Hn*Math.pow(2,1-At))*A>=2&&(W++,A/=2),W+At>=lt?(nt=0,W=lt):W+At>=1?(nt=(_e*A-1)*Math.pow(2,tt),W+=At):(nt=_e*Math.pow(2,At-1)*Math.pow(2,tt),W=0));tt>=8;vt[Pe+ae]=255&nt,ae+=Ce,nt/=256,tt-=8);for(W=W<<tt|nt,Jn+=tt;Jn>0;vt[Pe+ae]=255&W,ae+=Ce,W/=256,Jn-=8);vt[Pe+ae-Ce]|=128*Ze}}},Ia=>{Ia(Ia.s=283)}]);