homebridge-eufy-security 4.3.7 → 4.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/FUNDING.yml +1 -0
- package/README.md +14 -17
- package/dist/platform.js +4 -4
- package/dist/platform.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/{main.833234849091e498.js → main.e4cc13735389edfb.js} +1 -1
- package/homebridge-ui/server.js +1 -1
- package/homebridge-ui/version.d.ts +1 -1
- package/homebridge-ui/version.js +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[792],{12:(Fa,Jn,ht)=>{"use strict";function _e(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 Z(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(c){_e(o,i,r,a,s,"next",c)}function s(c){_e(o,i,r,a,s,"throw",c)}a(void 0)})}}function Dt(e,n){return Object.is(e,n)}let ve=null,Je=!1,Ne=1;const Me=Symbol("SIGNAL");function S(e){const n=ve;return ve=e,n}const Gt={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ee(e){if(Je)throw new Error("");if(null===ve)return;ve.consumerOnSignalRead(e);const n=ve.nextProducerIndex++;La(ve),n<ve.producerNode.length&&ve.producerNode[n]!==e&&To(ve)&&Pa(ve.producerNode[n],ve.producerIndexOfThis[n]),ve.producerNode[n]!==e&&(ve.producerNode[n]=e,ve.producerIndexOfThis[n]=To(ve)?pc(e,ve,n):0),ve.producerLastReadVersion[n]=e.version}function Fe(e){if((!To(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Ne)){if(!e.producerMustRecompute(e)&&!ki(e))return void $t(e);e.producerRecomputeValue(e),$t(e)}}function xt(e){if(void 0===e.liveConsumerNode)return;const n=Je;Je=!0;try{for(const t of e.liveConsumerNode)t.dirty||kt(t)}finally{Je=n}}function pn(){return!1!==ve?.consumerAllowSignalWrites}function kt(e){e.dirty=!0,xt(e),e.consumerMarkedDirty?.(e)}function $t(e){e.dirty=!1,e.lastCleanEpoch=Ne}function Dn(e){return e&&(e.nextProducerIndex=0),S(e)}function Lt(e,n){if(S(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(To(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Pa(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ki(e){La(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(Fe(t),i!==t.version))return!0}return!1}function Io(e){if(La(e),To(e))for(let n=0;n<e.producerNode.length;n++)Pa(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 pc(e,n,t){if(Sd(e),0===e.liveConsumerNode.length&&Ed(e))for(let i=0;i<e.producerNode.length;i++)e.producerIndexOfThis[i]=pc(e.producerNode[i],e,i);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Pa(e,n){if(Sd(e),1===e.liveConsumerNode.length&&Ed(e))for(let i=0;i<e.producerNode.length;i++)Pa(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];La(r),r.producerIndexOfThis[i]=n}}function To(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function La(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Sd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ed(e){return void 0!==e.producerNode}const Xi=Symbol("UNSET"),wr=Symbol("COMPUTING"),er=Symbol("ERRORED"),tp={...Gt,value:Xi,dirty:!0,error:null,equal:Dt,kind:"computed",producerMustRecompute:e=>e.value===Xi||e.value===wr,producerRecomputeValue(e){if(e.value===wr)throw new Error("Detected cycle in computations.");const n=e.value;e.value=wr;const t=Dn(e);let i,r=!1;try{i=e.computation(),S(null),r=n!==Xi&&n!==er&&i!==er&&e.equal(n,i)}catch(o){i=er,e.error=o}finally{Lt(e,t)}r?e.value=n:(e.value=i,e.version++)}};let Id=function np(){throw new Error};function Td(e){Id(e)}function Ao(e,n){pn()||Td(e),e.equal(e.value,n)||(e.value=n,function gc(e){e.version++,function Ce(){Ne++}(),xt(e)}(e))}const tr={...Gt,equal:Dt,value:void 0,kind:"signal"};let mc;function Kr(){return mc}function nr(e){const n=mc;return mc=e,n}const vc=Symbol("NotFound");function ye(e){return"function"==typeof e}function No(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}Error;const _c=No(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 Xn(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class on{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(ye(i))try{i()}catch(o){n=o instanceof _c?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{p(o)}catch(a){n=n??[],a instanceof _c?n=[...n,...a.errors]:n.push(a)}}if(n)throw new _c(n)}}add(n){var t;if(n&&n!==this)if(this.closed)p(n);else{if(n instanceof on){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)&&Xn(t,n)}remove(n){const{_finalizers:t}=this;t&&Xn(t,n),n instanceof on&&n._removeParent(this)}}on.EMPTY=(()=>{const e=new on;return e.closed=!0,e})();const v=on.EMPTY;function u(e){return e instanceof on||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function p(e){ye(e)?e():e.unsubscribe()}const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},D={setTimeout(e,n,...t){const{delegate:i}=D;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=D;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function A(e){D.setTimeout(()=>{const{onUnhandledError:n}=_;if(!n)throw e;n(e)})}function O(){}const be=it("C",void 0,void 0);function it(e,n,t){return{kind:e,value:n,error:t}}let Ee=null;function Od(e){if(_.useDeprecatedSynchronousErrorHandling){const n=!Ee;if(n&&(Ee={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ee;if(Ee=null,t)throw i}}else e()}class sp extends on{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,u(n)&&n.add(this)):this.destination=dD}static create(n,t,i){return new lp(n,t,i)}next(n){this.isStopped?dp(function nt(e){return it("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?dp(function pt(e){return it("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?dp(be,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 sD=Function.prototype.bind;function cp(e,n){return sD.call(e,n)}class cD{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Fd(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Fd(i)}else Fd(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Fd(t)}}}class lp extends sp{constructor(n,t,i){let r;if(super(),ye(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&_.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&cp(n.next,o),error:n.error&&cp(n.error,o),complete:n.complete&&cp(n.complete,o)}):r=n}this.destination=new cD(r)}}function Fd(e){_.useDeprecatedSynchronousErrorHandling?function aD(e){_.useDeprecatedSynchronousErrorHandling&&Ee&&(Ee.errorThrown=!0,Ee.error=e)}(e):A(e)}function dp(e,n){const{onStoppedNotification:t}=_;t&&D.setTimeout(()=>t(e,n))}const dD={closed:!0,next:O,error:function lD(e){throw e},complete:O},up="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cr(e){return e}function Cm(e){return 0===e.length?Cr:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let dt=(()=>{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 pD(e){return e&&e instanceof sp||function hD(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&u(e)}(t)?t:new lp(t,i,r);return Od(()=>{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=Dm(i))((r,o)=>{const a=new lp({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)}[up](){return this}pipe(...t){return Cm(t)(this)}toPromise(t){return new(t=Dm(t))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return e.create=n=>new e(n),e})();function Dm(e){var n;return null!==(n=e??_.Promise)&&void 0!==n?n:Promise}const fD=No(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ze=(()=>{class e extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new xm(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new fD}next(t){Od(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Od(()=>{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(){Od(()=>{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?v:(this.currentObservers=null,o.push(t),new on(()=>{this.currentObservers=null,Xn(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new dt;return t.source=this,t}}return e.create=(n,t)=>new xm(n,t),e})();class xm extends ze{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:v}}class ei extends ze{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 Sm(e){return ye(e?.lift)}function Ht(e){return n=>{if(Sm(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 ut(e,n,t,i,r){return new gD(e,n,t,i,r)}class gD extends sp{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 Ie(e,n){return Ht((t,i)=>{let r=0;t.subscribe(ut(i,o=>{i.next(e.call(n,o,r++))}))})}const Em="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class P extends Error{code;constructor(n,t){super(function Dr(e,n){return`${function yD(e){return`NG0${Math.abs(e)}`}(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const Pd=Symbol("InputSignalNode#UNSET"),Im={...tr,transformFn:void 0,applyValueToInputSignal(e,n){Ao(e,n)}};function Tm(e,n){const t=Object.create(Im);function i(){if(ee(t),t.value===Pd)throw new P(-950,null);return t.value}return t.value=e,t.transformFn=n?.transform,i[Me]=t,i}function xr(e){return{toString:e}.toString()}const ja="__parameters__";function za(e,n,t){return xr(()=>{const i=function hp(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(ja)?c[ja]:Object.defineProperty(c,ja,{value:[]})[ja];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(a),c}}return r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const St=globalThis;function qe(e){for(let n in e)if(e[n]===qe)return n;throw Error("Could not find renamed property on target object.")}function mD(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Zt(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(Zt).join(", ")}]`;if(null==e)return""+e;const n=e.overriddenName||e.name;if(n)return`${n}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return i>=0?t.slice(0,i):t}function pp(e,n){return e?n?`${e} ${n}`:e:n||""}const vD=qe({__forward_ref__:qe});function Le(e){return e.__forward_ref__=Le,e.toString=function(){return Zt(this())},e}function ce(e){return Ld(e)?e():e}function Ld(e){return"function"==typeof e&&e.hasOwnProperty(vD)&&e.__forward_ref__===Le}function Ro(e,n,t){e!=n&&function J(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(t,e,n,"==")}function H(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vd(e){return Nm(e,jd)||Nm(e,Rm)}function Nm(e,n){return e.hasOwnProperty(n)?e[n]:null}function Hd(e){return e&&(e.hasOwnProperty(fp)||e.hasOwnProperty(CD))?e[fp]:null}const jd=qe({\u0275prov:qe}),fp=qe({\u0275inj:qe}),Rm=qe({ngInjectableDef:qe}),CD=qe({ngInjectorDef:qe});class z{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=H({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 qa=qe({\u0275cmp:qe}),vp=qe({\u0275dir:qe}),kp=qe({\u0275pipe:qe}),Fm=qe({\u0275mod:qe}),Sr=qe({\u0275fac:qe}),Mc=qe({__NG_ELEMENT_ID__:qe}),Pm=qe({__NG_ENV_ID__:qe});function pe(e){return"string"==typeof e?e:null==e?"":String(e)}function Lm(e,n){throw new P(-200,e)}function _p(e,n){throw new P(-201,!1)}var De=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}(De||{});let Mp;function Vm(){return Mp}function Hn(e){const n=Mp;return Mp=e,n}function Hm(e,n,t){const i=Vd(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&De.Optional?null:void 0!==n?n:void _p()}const Oo={},bp="__NG_DI_FLAG__";class jm{injector;constructor(n){this.injector=n}retrieve(n,t){return this.injector.get(n,t.optional?vc:Oo,t)}}const qd="ngTempTokenPath",ID=/\n/gm,Bm="__source";function AD(e,n=De.Default){if(void 0===Kr())throw new P(-203,!1);if(null===Kr())return Hm(e,void 0,n);{const t=Kr();let i;return i=t instanceof jm?t.injector:t,i.get(e,n&De.Optional?null:void 0,n)}}function oe(e,n=De.Default){return(Vm()||AD)(ce(e),n)}function w(e,n=De.Default){return oe(e,Ud(n))}function Ud(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wp(e){const n=[];for(let t=0;t<e.length;t++){const i=ce(e[t]);if(Array.isArray(i)){if(0===i.length)throw new P(900,!1);let r,o=De.Default;for(let a=0;a<i.length;a++){const s=i[a],c=ND(s);"number"==typeof c?-1===c?r=s.token:o|=c:r=s}n.push(oe(r,o))}else n.push(oe(i))}return n}function bc(e,n){return e[bp]=n,e.prototype[bp]=n,e}function ND(e){return e[bp]}const Gd=bc(za("Optional"),8),Cp=bc(za("SkipSelf"),4);function Fo(e,n){return e.hasOwnProperty(Sr)?e[Sr]:null}function Ua(e,n){e.forEach(t=>Array.isArray(t)?Ua(t,n):n(t))}function qm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function $d(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function ni(e,n,t){let i=wc(e,n);return i>=0?e[1|i]=t:(i=~i,function Gm(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 Dp(e,n){const t=wc(e,n);if(t>=0)return e[1|t]}function wc(e,n){return function HD(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 Ni={},Re=[],_i=new z(""),$m=new z("",-1),xp=new z("");class Zd{get(n,t=Oo){if(t===Oo){const i=new Error(`NullInjectorError: No provider for ${Zt(n)}!`);throw i.name="NullInjectorError",i}return t}}function ii(e,n){const t=e[Fm]||null;if(!t&&!0===n)throw new Error(`Type ${Zt(e)} does not have '\u0275mod' property.`);return t}function xe(e){return e[qa]||null}function fn(e){return e[vp]||null}function ri(e){return e[kp]||null}function Wm(...e){return{\u0275providers:Sp(0,e),\u0275fromNgModule:!0}}function Sp(e,...n){const t=[],i=new Set;let r;const o=a=>{t.push(a)};return Ua(n,a=>{const s=a;Kd(s,o,[],i)&&(r||=[],r.push(s))}),void 0!==r&&Zm(r,o),t}function Zm(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];Ep(r,o=>{n(o,i)})}}function Kd(e,n,t,i){if(!(e=ce(e)))return!1;let r=null,o=Hd(e);const a=!o&&xe(e);if(o||a){if(a&&!a.standalone)return!1;r=e}else{const c=e.ngModule;if(o=Hd(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)Kd(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;i.add(r);try{Ua(o.imports,d=>{Kd(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&Zm(l,n)}if(!s){const l=Fo(r)||(()=>new r);n({provide:r,useFactory:l,deps:Re},r),n({provide:xp,useValue:r,multi:!0},r),n({provide:_i,useValue:()=>oe(r),multi:!0},r)}const c=o.providers;if(null!=c&&!s){const l=e;Ep(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function Ep(e,n){for(let t of e)mp(t)&&(t=t.\u0275providers),Array.isArray(t)?Ep(t,n):n(t)}const jD=qe({provide:String,useValue:qe});function Ip(e){return null!==e&&"object"==typeof e&&jD in e}function Vo(e){return"function"==typeof e}const Tp=new z(""),Yd={},Qm={};let Ap;function Qd(){return void 0===Ap&&(Ap=new Zd),Ap}class bn{}class Ho extends bn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,Rp(n,a=>this.processProvider(a)),this.records.set($m,Ga(void 0,this)),r.has("environment")&&this.records.set(bn,Ga(void 0,this));const o=this.records.get(Tp);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(xp,Re,De.Self))}retrieve(n,t){return this.get(n,t.optional?vc:Oo,t)}destroy(){Cc(this),this._destroyed=!0;const n=S(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(),S(n)}}onDestroy(n){return Cc(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Cc(this);const t=nr(this),i=Hn(void 0);try{return n()}finally{nr(t),Hn(i)}}get(n,t=Oo,i=De.Default){if(Cc(this),n.hasOwnProperty(Pm))return n[Pm](this);i=Ud(i);const o=nr(this),a=Hn(void 0);try{if(!(i&De.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function $D(e){return"function"==typeof e||"object"==typeof e&&e instanceof z}(n)&&Vd(n);c=l&&this.injectableDefInScope(l)?Ga(Np(n),Yd):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&De.Self?Qd():this.parent).get(n,t=i&De.Optional&&t===Oo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[qd]=s[qd]||[]).unshift(Zt(n)),o)throw s;return function RD(e,n,t,i){const r=e[qd];throw n[Bm]&&r.unshift(n[Bm]),e.message=function OD(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Zt(n);if(Array.isArray(n))r=n.map(Zt).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):Zt(s)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(ID,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[qd]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{Hn(a),nr(o)}}resolveInjectorInitializers(){const n=S(null),t=nr(this),i=Hn(void 0);try{const o=this.get(_i,Re,De.Self);for(const a of o)a()}finally{nr(t),Hn(i),S(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Zt(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){let t=Vo(n=ce(n))?n:ce(n&&n.provide);const i=function qD(e){return Ip(e)?Ga(void 0,e.useValue):Ga(Jm(e),Yd)}(n);if(!Vo(n)&&!0===n.multi){let r=this.records.get(t);r||(r=Ga(void 0,Yd,!0),r.factory=()=>wp(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=S(null);try{return t.value===Qm?Lm(Zt(n)):t.value===Yd&&(t.value=Qm,t.value=t.factory()),"object"==typeof t.value&&t.value&&function GD(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{S(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ce(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 Np(e){const n=Vd(e),t=null!==n?n.factory:Fo(e);if(null!==t)return t;if(e instanceof z)throw new P(204,!1);if(e instanceof Function)return function zD(e){if(e.length>0)throw new P(204,!1);const t=function wD(e){return e&&(e[jd]||e[Rm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new P(204,!1)}function Jm(e,n,t){let i;if(Vo(e)){const r=ce(e);return Fo(r)||Np(r)}if(Ip(e))i=()=>ce(e.useValue);else if(function Ym(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...wp(e.deps||[]));else if(function Km(e){return!(!e||!e.useExisting)}(e))i=()=>oe(ce(e.useExisting));else{const r=ce(e&&(e.useClass||e.provide));if(!function UD(e){return!!e.deps}(e))return Fo(r)||Np(r);i=()=>new r(...wp(e.deps))}return i}function Cc(e){if(e.destroyed)throw new P(205,!1)}function Ga(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Rp(e,n){for(const t of e)Array.isArray(t)?Rp(t,n):t&&mp(t)?Rp(t.\u0275providers,n):n(t)}function Ri(e,n){let t;e instanceof Ho?(Cc(e),t=e):t=new jm(e);const r=nr(t),o=Hn(void 0);try{return n()}finally{nr(r),Hn(o)}}function Xm(){return void 0!==Vm()||null!=Kr()}function jo(e){if(!Xm())throw new P(-203,!1)}const K=26;function It(e){return Array.isArray(e)&&"object"==typeof e[1]}function Yt(e){return Array.isArray(e)&&!0===e[1]}function Pp(e){return!!(4&e.flags)}function Fi(e){return e.componentOffset>-1}function n1(e){return!(1&~e.flags)}function ai(e){return!!e.template}function Ir(e){return!!(512&e[2])}function Qr(e){return!(256&~e[2])}class rx{previousValue;currentValue;firstChange;constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function sv(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}const sn=(()=>{const e=()=>cv;return e.ngInherit=!0,e})();function cv(e){return e.type.prototype.ngOnChanges&&(e.setInput=ax),ox}function ox(){const e=dv(this),n=e?.current;if(n){const t=e.previous;if(t===Ni)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function ax(e,n,t,i,r){const o=this.declaredInputs[i],a=dv(e)||function sx(e,n){return e[lv]=n}(e,{previous:Ni,current:null}),s=a.current||(a.current={}),c=a.previous,l=c[o];s[o]=new rx(l&&l.currentValue,t,c===Ni),sv(e,n,r,t)}const lv="__ngSimpleChanges__";function dv(e){return e[lv]||null}function Ae(e){for(;Array.isArray(e);)e=e[0];return e}function Ja(e,n){return Ae(n[e])}function Sn(e,n){return Ae(n[e.index])}function Uo(e,n){return e.data[n]}function Go(e,n){return e[n]}function En(e,n){const t=n[e];return It(t)?t:t[0]}function Hp(e){return!(128&~e[2])}function Mi(e,n){return null==n?null:e[n]}function pv(e){e[17]=0}function jp(e){1024&e[2]||(e[2]|=1024,Hp(e)&&Xa(e))}function Sc(e){return!!(9216&e[2]||e[24]?.dirty)}function Bp(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),Sc(e)&&Xa(e)}function Xa(e){e[10].changeDetectionScheduler?.notify(0);let n=Tr(e);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,Hp(n));)n=Tr(n)}function r1(e,n){if(Qr(e))throw new P(911,!1);null===e[21]&&(e[21]=[]),e[21].push(n)}function Tr(e){const n=e[3];return Yt(n)?n[3]:n}function qp(e){return e[7]??=[]}function Up(e){return e.cleanup??=[]}const le={lFrame:wv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let $p=!1;function Wp(){return le.bindingsEnabled}function $o(){return null!==le.skipHydrationRootTNode}function N(){return le.lFrame.lView}function ie(){return le.lFrame.tView}function de(e){return le.lFrame.contextLView=e,e[8]}function ue(e){return le.lFrame.contextLView=null,e}function we(){let e=gv();for(;null!==e&&64===e.type;)e=e.parent;return e}function gv(){return le.lFrame.currentTNode}function Ec(){const e=le.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function Pi(e,n){const t=le.lFrame;t.currentTNode=e,t.isParent=n}function Zp(){return le.lFrame.isParent}function Kp(){le.lFrame.isParent=!1}function vv(){return $p}function a1(e){const n=$p;return $p=e,n}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 bi(){return le.lFrame.bindingIndex++}function Nr(e){const n=le.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function _v(e){le.lFrame.inI18n=e}function bx(e,n){const t=le.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yp(n)}function Yp(e){le.lFrame.currentDirectiveIndex=e}function Jp(){return le.lFrame.currentQueryIndex}function s1(e){le.lFrame.currentQueryIndex=e}function Cx(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[5]:null}function Mv(e,n,t){if(t&De.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&De.Host||(r=Cx(o),null===r||(o=o[14],10&r.type))););if(null===r)return!1;n=r,e=o}const i=le.lFrame=bv();return i.currentTNode=n,i.lView=e,!0}function Xp(e){const n=bv(),t=e[1];le.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function bv(){const e=le.lFrame,n=null===e?null:e.child;return null===n?wv(e):n}function wv(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 Cv(){const e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Dv=Cv;function e0(){const e=Cv();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 gn(){return le.lFrame.selectedIndex}function Wo(e){le.lFrame.selectedIndex=e}function Ze(){const e=le.lFrame;return Uo(e.tView,e.selectedIndex)}let Sv=!0;function Ic(){return Sv}function or(e){Sv=e}function t0(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 c1(e,n,t){Ev(e,n,3,t)}function l1(e,n,t,i){(3&e[2])===t&&Ev(e,n,t,i)}function n0(e,n){let t=e[2];(3&t)===n&&(t&=16383,t+=1,e[2]=t)}function Ev(e,n,t,i){const o=i??-1,a=n.length-1;let s=0;for(let c=void 0!==i?65535&e[17]:0;c<a;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[17]+=65536),(s<o||-1==o)&&(Ax(e,t,n,c),e[17]=(4294901760&e[17])+c+2),c++}function Iv(e,n){const t=S(null);try{n.call(e)}finally{S(t)}}function Ax(e,n,t,i){const r=t[i]<0,o=t[i+1],s=e[r?-t[i]:t[i]];r?e[2]>>14<e[17]>>16&&(3&e[2])===n&&(e[2]+=16384,Iv(s,o)):Iv(s,o)}class Tc{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,i){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=i}}function Tv(e){return 3===e||4===e||6===e}function Av(e){return 64===e.charCodeAt(0)}function ts(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||Nv(e,t,r,0,-1===t||2===t?n[++i]:null)}}return e}function Nv(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)return void(null!==r&&(e[o+1]=r));o++,null!==r&&o++}-1!==a&&(e.splice(a,0,n),o=a+1),e.splice(o++,0,t),null!==r&&e.splice(o++,0,r)}function a0(e){return-1!==e}function Ac(e){return 32767&e}function Nc(e,n){let t=function Px(e){return e>>16}(e),i=n;for(;t>0;)i=i[14],t--;return i}let s0=!0;function d1(e){const n=s0;return s0=e,n}let Lx=0;const ar={};function u1(e,n){const t=Fv(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,c0(i.data,e),c0(n,null),c0(i.blueprint,null));const r=h1(e,n),o=e.injectorIndex;if(a0(r)){const a=Ac(r),s=Nc(r,n),c=s[1].data;for(let l=0;l<8;l++)n[o+l]=s[a+l]|c[a+l]}return n[o+8]=r,o}function c0(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Fv(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function h1(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=zv(r),null===i)return-1;if(t++,r=r[14],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function l0(e,n,t){!function Vx(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Mc)&&(i=t[Mc]),null==i&&(i=t[Mc]=Lx++);const r=255&i;n.data[e+(r>>5)]|=1<<r}(e,n,t)}function Pv(e,n,t){if(t&De.Optional||void 0!==e)return e;_p()}function Lv(e,n,t,i){if(t&De.Optional&&void 0===i&&(i=null),!(t&(De.Self|De.Host))){const r=e[9],o=Hn(void 0);try{return r?r.get(n,i,t&De.Optional):Hm(n,i,t&De.Optional)}finally{Hn(o)}}return Pv(i,0,t)}function Vv(e,n,t,i=De.Default,r){if(null!==e){if(2048&n[2]&&!(i&De.Self)){const a=function qx(e,n,t,i,r){let o=e,a=n;for(;null!==o&&null!==a&&2048&a[2]&&!Ir(a);){const s=Hv(o,a,t,i|De.Self,ar);if(s!==ar)return s;let c=o.parent;if(!c){const l=a[20];if(l){const d=l.get(t,ar,i);if(d!==ar)return d}c=zv(a),a=a[14]}o=c}return r}(e,n,t,i,ar);if(a!==ar)return a}const o=Hv(e,n,t,i,ar);if(o!==ar)return o}return Lv(n,t,i,r)}function Hv(e,n,t,i,r){const o=function Bx(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Mc)?e[Mc]:void 0;return"number"==typeof n?n>=0?255&n:zx:n}(t);if("function"==typeof o){if(!Mv(n,e,i))return i&De.Host?Pv(r,0,i):Lv(n,t,i,r);try{let a;if(a=o(i),null!=a||i&De.Optional)return a;_p()}finally{Dv()}}else if("number"==typeof o){let a=null,s=Fv(e,n),c=-1,l=i&De.Host?n[15][5]:null;for((-1===s||i&De.SkipSelf)&&(c=-1===s?h1(e,n):n[s+8],-1!==c&&Bv(i,!1)?(a=n[1],s=Ac(c),n=Nc(c,n)):s=-1);-1!==s;){const d=n[1];if(jv(o,s,d.data)){const h=jx(s,n,t,a,i,l);if(h!==ar)return h}c=n[s+8],-1!==c&&Bv(i,n[1].data[s+8]===l)&&jv(o,s,n)?(a=d,s=Ac(c),n=Nc(c,n)):s=-1}}return r}function jx(e,n,t,i,r,o){const a=n[1],s=a.data[e+8],d=p1(s,a,t,null==i?Fi(s)&&s0:i!=a&&!!(3&s.type),r&De.Host&&o===s);return null!==d?Rc(n,a,d,s):ar}function p1(e,n,t,i,r){const o=e.providerIndexes,a=n.data,s=1048575&o,c=e.directiveStart,d=o>>20,g=r?s+d:e.directiveEnd;for(let f=i?s:s+d;f<g;f++){const k=a[f];if(f<c&&t===k||f>=c&&k.type===t)return f}if(r){const f=a[c];if(f&&ai(f)&&f.type===t)return c}return null}function Rc(e,n,t,i){let r=e[t];const o=n.data;if(r instanceof Tc){const a=r;a.resolving&&Lm(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pe(e)}(o[t]));const s=d1(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?Hn(a.injectImpl):null;Mv(e,i,De.Default);try{r=e[t]=a.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function Tx(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=cv(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&&Hn(l),d1(s),a.resolving=!1,Dv()}}return r}function jv(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function Bv(e,n){return!(e&De.Self||e&De.Host&&n)}class Tt{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Vv(this._tNode,this._lView,n,Ud(i),t)}}function zx(){return new Tt(we(),N())}function rt(e){return xr(()=>{const n=e.prototype.constructor,t=n[Sr]||d0(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Sr]||d0(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function d0(e){return Ld(e)?()=>{const n=d0(ce(e));return n&&n()}:Fo(e)}function zv(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[5]:null}function Wv(e,n=null,t=null,i){const r=Zv(e,n,t,i);return r.resolveInjectorInitializers(),r}function Zv(e,n=null,t=null,i,r=new Set){const o=[t||Re,Wm(e)];return i=i||("object"==typeof e?void 0:Zt(e)),new Ho(o,n||Qd(),i||null,r)}class je{static THROW_IF_NOT_FOUND=Oo;static NULL=new Zd;static create(n,t){if(Array.isArray(n))return Wv({name:""},t,n,"");{const i=n.name??"";return Wv({name:i},n.parent,n.providers,i)}}static \u0275prov=H({token:je,providedIn:"any",factory:()=>oe($m)});static __NG_ELEMENT_ID__=-1}new z("").__NG_ELEMENT_ID__=e=>{const n=we();if(null===n)throw new P(204,!1);if(2&n.type)return n.value;if(e&De.Optional)return null;throw new P(204,!1)};const Kv=!1;let si=(()=>class e{static __NG_ELEMENT_ID__=Jx;static __NG_ENV_ID__=t=>t})();class Yv extends si{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return r1(this._lView,n),()=>function zp(e,n){if(null===e[21])return;const t=e[21].indexOf(n);-1!==t&&e[21].splice(t,1)}(this._lView,n)}}function Jx(){return new Yv(N())}class Rr{}const Oc=new z("",{providedIn:"root",factory:()=>!1}),Qv=new z(""),h0=new z("");let eo=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ei(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(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 \u0275prov=H({token:e,providedIn:"root",factory:()=>new e})}return e})();const Q=class eS extends ze{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Xm()&&(this.destroyRef=w(si,{optional:!0})??void 0,this.pendingTasks=w(eo,{optional:!0})??void 0)}emit(n){const t=S(null);try{super.next(n)}finally{S(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 on&&n.add(s),s}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Fc(...e){}function Jv(e){let n,t;function i(){e=Fc;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 Xv(e){return queueMicrotask(()=>e()),()=>{e=Fc}}const p0="isAngularZone",g1=p0+"_ID";let tS=0;class ge{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Q(!1);onMicrotaskEmpty=new Q(!1);onStable=new Q(!1);onError=new Q(!1);constructor(n){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Kv}=n;if(typeof Zone>"u")throw new P(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 rS(e){const n=()=>{!function iS(e){function n(){Jv(()=>{e.callbackScheduled=!1,g0(e),e.isCheckStableRunning=!0,f0(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),g0(e))}(e)},t=tS++;e._inner=e._inner.fork({name:"angular",properties:{[p0]:!0,[g1]:t,[g1+t]:!0},onInvokeTask:(i,r,o,a,s,c)=>{if(function oS(e){return nk(e,"__ignore_ng_zone__")}(c))return i.invokeTask(o,a,s,c);try{return ek(e),i.invokeTask(o,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),tk(e)}},onInvoke:(i,r,o,a,s,c,l)=>{try{return ek(e),i.invoke(o,a,s,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function aS(e){return nk(e,"__scheduler_tick__")}(c)&&n(),tk(e)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,g0(e),f0(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(p0)}static assertInAngularZone(){if(!ge.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new P(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,nS,Fc,Fc);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 nS={};function f0(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 g0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function ek(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tk(e){e._nesting--,f0(e)}class y0{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Q;onMicrotaskEmpty=new Q;onStable=new Q;onError=new Q;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 nk(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Li{_console=console;handleError(n){this._console.error("ERROR",n)}}const cS=new z("",{providedIn:"root",factory:()=>{const e=w(ge),n=w(Li);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function rk(e,n){return Tm(e,n)}const dS=(rk.required=function lS(e){return Tm(Pd,e)},rk);function uS(){return ns(we(),N())}function ns(e,n){return new Oe(Sn(e,n))}let Oe=(()=>class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=uS})();function ok(e){return e instanceof Oe?e.nativeElement:e}function sr(e,n){const t=function Ad(e,n){const t=Object.create(tr);t.value=e,void 0!==n&&(t.equal=n);const i=()=>(ee(t),t.value);return i[Me]=t,i}(e,n?.equal),i=t[Me];return t.set=r=>Ao(i,r),t.update=r=>function fc(e,n){pn()||Td(e),Ao(e,n(e.value))}(i,r),t.asReadonly=y1.bind(t),t}function y1(){const e=this[Me];if(void 0===e.readonlyFn){const n=()=>this();n[Me]=e,e.readonlyFn=n}return e.readonlyFn}function sk(e){return function ak(e){return"function"==typeof e&&void 0!==e[Me]}(e)&&"function"==typeof e.set}function hS(){return this._results[Symbol.iterator]()}class pS{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ze}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const i=function jn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function VD(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.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=hS}function Lc(e){return!(128&~e.flags)}var m1=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(m1||{});const v1=new Map;let gS=0;function v0(e){v1.delete(e[19])}const _0="__ngContext__";function zn(e,n){It(n)?(e[_0]=n[19],function mS(e){v1.set(e[19],e)}(n)):e[_0]=n}function yk(e){return vk(e[12])}function mk(e){return vk(e[4])}function vk(e){for(;null!==e&&!Yt(e);)e=e[4];return e}let b0;function cr(){if(void 0!==b0)return b0;if(typeof document<"u")return document;throw new P(210,!1)}const Ko=new z("",{providedIn:"root",factory:()=>PS}),PS="ng",w0=new z(""),C0=new z("",{providedIn:"platform",factory:()=>"unknown"}),Dk=new z("",{providedIn:"root",factory:()=>cr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Ik=new z("",{providedIn:"root",factory:()=>!1});var F0=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(F0||{});const rs=new z(""),Rk=new Set;function qn(e){Rk.has(e)||(Rk.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}let C1=(()=>class e{view;node;constructor(t,i){this.view=t,this.node=i}static __NG_ELEMENT_ID__=BS})();function BS(){return new C1(N(),we())}var os=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(os||{});let P0=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=H({token:e,providedIn:"root",factory:()=>new e})}return e})();const Ok=[os.EarlyRead,os.Write,os.MixedReadWrite,os.Read];let Fk=(()=>{class e{ngZone=w(ge);scheduler=w(Rr);errorHandler=w(Li,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(rs,{optional:!0})}execute(){this.executing=!0;for(const i of Ok)for(const r of this.sequences)if(!r.erroredOrDestroyed&&r.hooks[i])try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,r.hooks[i])(r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(const i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(const i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){const{view:i}=t;void 0!==i?((i[25]??=[]).push(t),Xa(i),i[2]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,i){return i?i.run(F0.AFTER_NEXT_RENDER,t):t()}static \u0275prov=H({token:e,providedIn:"root",factory:()=>new e})}return e})();class Pk{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,i,r,o,a=null){this.impl=n,this.hooks=t,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const n=this.view?.[25];n&&(this.view[25]=n.filter(t=>t!==this))}}function no(e,n){!n?.injector&&jo();const t=n?.injector??w(je);return qn("NgAfterNextRender"),Lk(e,t,n,!0)}function Lk(e,n,t,i){const r=n.get(P0);r.impl??=n.get(Fk);const o=n.get(rs,null,{optional:!0}),a=t?.phase??os.MixedReadWrite,s=!0!==t?.manualCleanup?n.get(si):null,c=n.get(C1,null,{optional:!0}),l=new Pk(r.impl,function zS(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,a),c?.view,i,s,o?.snapshot(null));return r.impl.register(l),l}function s_(e,n){const t=e.contentQueries;if(null!==t){const i=S(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{S(i)}}}function K0(e,n,t){s1(0);const i=S(null);try{n(e,t)}finally{S(i)}}function Y0(e,n,t){if(Pp(n)){const i=S(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{S(i)}}}var wi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wi||{});let R1,O1;function ps(e){return function c_(){if(void 0===R1&&(R1=null,St.trustedTypes))try{R1=St.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return R1}()?.createHTML(e)||e}function u_(e){return function Q0(){if(void 0===O1&&(O1=null,St.trustedTypes))try{O1=St.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return O1}()?.createScriptURL(e)||e}class h_{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Em})`}}function io(e){return e instanceof h_?e.changingThisBreaksApplicationSecurity:e}function Qc(e,n){const t=function I9(e){return e instanceof h_&&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 ${Em})`)}return t===n}class T9{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(ps(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class A9{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=ps(n),t}}const R9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function J0(e){return(e=String(e)).match(R9)?e:"unsafe:"+e}function Pr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Jc(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const f_=Pr("area,br,col,hr,img,wbr"),g_=Pr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y_=Pr("rp,rt"),X0=Jc(f_,Jc(g_,Pr("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")),Jc(y_,Pr("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")),Jc(y_,g_)),e2=Pr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),m_=Jc(e2,Pr("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"),Pr("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 fs=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}(fs||{});function Jo(e){const n=Xc();return n?n.sanitize(fs.STYLE,e)||"":Qc(e,"Style")?io(e):pe(e)}function P1(e){const n=Xc();return n?n.sanitize(fs.URL,e)||"":Qc(e,"URL")?io(e):J0(pe(e))}function M_(e){const n=Xc();if(n)return u_(n.sanitize(fs.RESOURCE_URL,e)||"");if(Qc(e,"ResourceURL"))return u_(io(e));throw new P(904,!1)}function Xc(){const e=N();return e&&e[10].sanitizer}const Z9=/^>|^->|<!--|-->|--!>|<!-$/g,K9=/(<|>)/g;function lr(e){return e instanceof Function?e():e}function sE(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}}const A_="ng-template";function cE(e,n,t,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==sE(n[r+1].toLowerCase(),t,0))return!0}else if(r2(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 r2(e){return 4===e.type&&e.value!==A_}function lE(e,n,t){return n===(4!==e.type||t?e.value:A_)}function dE(e,n,t){let i=4;const r=e.attrs,o=null!==r?function pE(e){for(let n=0;n<e.length;n++)if(Tv(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&&!lE(e,c,t)||""===c&&1===n.length){if(Vi(i))return!1;a=!0}}else if(8&i){if(null===r||!cE(e,r,c,t)){if(Vi(i))return!1;a=!0}}else{const l=n[++s],d=uE(c,r,r2(e),t);if(-1===d){if(Vi(i))return!1;a=!0;continue}if(""!==l){let h;if(h=d>o?"":r[d+1].toLowerCase(),2&i&&l!==h){if(Vi(i))return!1;a=!0}}}}else{if(!a&&!Vi(i)&&!Vi(c))return!1;if(a&&Vi(c))continue;a=!1,i=c|1&i}}return Vi(i)||a}function Vi(e){return!(1&e)}function uE(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 fE(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 N_(e,n,t=!1){for(let i=0;i<n.length;i++)if(dE(e,n[i],t))return!0;return!1}function gE(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 R_(e,n){return e?":not("+n.trim()+")":n}function yE(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&&!Vi(a)&&(n+=R_(o,r),r=""),i=a,o=o||!Vi(i);t++}return""!==r&&(n+=R_(o,r)),n}const fe={};function o2(e,n){return e.createText(n)}function O_(e,n,t){e.setValue(n,t)}function a2(e,n){return e.createComment(function w_(e){return e.replace(Z9,n=>n.replace(K9,"\u200b$1\u200b"))}(n))}function H1(e,n,t){return e.createElement(n,t)}function Xo(e,n,t,i,r){e.insertBefore(n,t,i,r)}function F_(e,n,t){e.appendChild(n,t)}function P_(e,n,t,i,r){null!==i?Xo(e,n,t,i,r):F_(e,n,t)}function el(e,n,t){e.removeChild(null,n,t)}function V_(e,n,t){const{mergedAttrs:i,classes:r,styles:o}=t;null!==i&&function Fx(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];Av(o)?e.setProperty(n,o,a):e.setAttribute(n,o,a),i++}}}(e,n,i),null!==r&&function _E(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}(e,n,r),null!==o&&function kE(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}function s2(e,n,t,i,r,o,a,s,c,l,d){const h=K+i,g=h+r,f=function ME(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:fe);return t}(h,g),k="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:s,declTNode:n,data:f.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:g,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}}function j1(e,n,t,i,r,o,a,s,c,l,d){const h=n.blueprint.slice();return h[0]=r,h[2]=1228|i,(null!==l||e&&2048&e[2])&&(h[2]|=2048),pv(h),h[3]=h[14]=e,h[8]=t,h[10]=a||e&&e[10],h[11]=s||e&&e[11],h[9]=c||e&&e[9]||null,h[5]=o,h[19]=function yS(){return gS++}(),h[6]=d,h[20]=l,h[15]=2==n.type?e[15]:h,h}function c2(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function tl(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 l2(e,n){return e[12]?e[13][4]=n:e[12]=n,e[13]=n,n}function b(e=1){j_(ie(),N(),gn()+e,!1)}function j_(e,n,t,i){if(!i)if(3&~n[2]){const o=e.preOrderHooks;null!==o&&l1(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&c1(n,o,t)}Wo(t)}var B1=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(B1||{});function d2(e,n,t,i){const r=S(null);try{const[o,a,s]=e.inputs[t];let c=null;!!(a&B1.SignalBased)&&(c=n[o][Me]),null!==c&&void 0!==c.transformFn?i=c.transformFn(i):null!==s&&(i=s.call(n,i)),null!==e.setInput?e.setInput(n,c,i,t,o):sv(n,c,o,i)}finally{S(r)}}function B_(e,n,t,i,r){const o=gn(),a=2&i;try{Wo(-1),a&&n.length>K&&j_(e,n,K,!1),t(i,r)}finally{Wo(o)}}function z1(e,n,t){(function IE(e,n,t){const i=t.directiveStart,r=t.directiveEnd;Fi(t)&&function bE(e,n,t){const i=Sn(n,e),r=function H_(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=s2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}(t),o=e[10].rendererFactory,a=l2(e,j1(e,r,null,c2(t),i,n,null,o.createRenderer(i,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||u1(t,n);const o=t.initialInputs;for(let a=i;a<r;a++){const s=e.data[a],c=Rc(n,e,a,t);zn(c,n),null!==o&&NE(0,a-i,c,s,0,o),ai(s)&&(En(t.index,n)[8]=Rc(n,e,a,t))}})(e,n,t),!(64&~t.flags)&&function TE(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function wx(){return le.lFrame.currentDirectiveIndex}();try{Wo(o);for(let s=i;s<r;s++){const c=e.data[s],l=n[s];Yp(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&AE(c,l)}}finally{Wo(-1),Yp(a)}}(e,n,t)}function u2(e,n,t=Sn){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}}}let y2,z_=()=>null;function Un(e,n,t,i,r,o,a,s){if(s||!g2(n,e,t,i,r)){if(3&n.type){const c=Sn(n,t);i=function SE(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)}}else Fi(n)&&function EE(e,n){const t=En(n,e);16&t[2]||(t[2]|=64)}(t,n.index)}function AE(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function h2(e,n){const t=e.directiveRegistry;let i=null;if(t)for(let r=0;r<t.length;r++){const o=t[r];N_(n,o.selectors,!1)&&(i??=[],ai(o)?i.unshift(o):i.push(o))}return i}function p2(e,n,t,i,r,o,a){if(null==o)e.removeAttribute(n,r,t);else{const s=null==a?pe(o):a(o,i||"",r);e.setAttribute(n,r,s,t)}}function NE(e,n,t,i,r,o){const a=o[n];if(null!==a)for(let s=0;s<a.length;s+=2)d2(i,t,a[s],a[s+1])}function g2(e,n,t,i,r){const o=e.inputs?.[i],a=e.hostDirectiveInputs?.[i];let s=!1;if(a)for(let c=0;c<a.length;c+=2){const l=a[c];d2(n.data[l],t[l],a[c+1],r),s=!0}if(o)for(const c of o)d2(n.data[c],t[c],i,r),s=!0;return s}function RE(e,n){const t=En(n,e),i=t[1];!function OE(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[0];null!==r&&null===t[6]&&(t[6]=null),q1(i,t,t[8])}function q1(e,n,t){Xp(n);try{const i=e.viewQuery;null!==i&&K0(1,i,t);const r=e.template;null!==r&&B_(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[18]?.finishViewCreation(e),e.staticContentQueries&&s_(e,n),e.staticViewQueries&&K0(2,e.viewQuery,t);const o=e.components;null!==o&&function FE(e,n){for(let t=0;t<n.length;t++)RE(e,n[t])}(n,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,e0()}}function ys(e,n,t,i){const r=S(null);try{const o=n.tView,c=j1(e,o,t,4096&e[2]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);c[16]=e[n.index];const d=e[18];return null!==d&&(c[18]=d.createEmbeddedView(o)),q1(o,c,t),c}finally{S(r)}}function ea(e,n){return!n||null===n.firstChild||Lc(e)}function m2(e,n){return y2(e,n)}var ro=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ro||{});function oo(e){return!(32&~e.flags)}function ms(e,n,t,i,r){if(null!=i){let o,a=!1;Yt(i)?o=i:It(i)&&(a=!0,i=i[0]);const s=Ae(i);0===e&&null!==t?null==r?F_(n,t,s):Xo(n,t,s,r||null,!0):1===e&&null!==t?Xo(n,t,s,r||null,!0):2===e?el(n,s,a):3===e&&n.destroyNode(s),null!=o&&function zE(e,n,t,i,r){const o=t[7];o!==Ae(t)&&ms(n,e,i,o,r);for(let s=10;s<t.length;s++){const c=t[s];G1(c[1],c,e,n,i,o)}}(n,e,o,t,r)}}function $_(e,n){n[10].changeDetectionScheduler?.notify(9),G1(e,n,n[11],2,null,null)}function v2(e,n){const t=e[9],i=t.indexOf(n);t.splice(i,1)}function nl(e,n){if(Qr(n))return;const t=n[11];t.destroyNode&&G1(e,n,t,3,null,null),function VE(e){let n=e[12];if(!n)return k2(e[1],e);for(;n;){let t=null;if(It(n))t=n[12];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)It(n)&&k2(n[1],n),n=n[3];null===n&&(n=e),It(n)&&k2(n[1],n),t=n&&n[4]}n=t}}(n)}function k2(e,n){if(Qr(n))return;const t=S(null);try{n[2]&=-129,n[2]|=256,n[24]&&Io(n[24]),function jE(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 Tc)){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];try{c.call(s)}finally{}}else try{o.call(r)}finally{}}}}(e,n),function HE(e,n){const t=e.cleanup,i=n[7];if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const s=t[a+3];s>=0?i[s]():i[-s].unsubscribe(),a+=2}else t[a].call(i[t[a+1]]);null!==i&&(n[7]=null);const r=n[21];if(null!==r){n[21]=null;for(let a=0;a<r.length;a++)(0,r[a])()}const o=n[23];if(null!==o){n[23]=null;for(const a of o)a.destroy()}}(e,n),1===n[1].type&&n[11].destroy();const i=n[16];if(null!==i&&Yt(n[3])){i!==n[3]&&v2(i,n);const r=n[18];null!==r&&r.detachView(e)}v0(n)}finally{S(t)}}function _2(e,n,t){return W_(e,n.parent,t)}function W_(e,n,t){let i=n;for(;null!==i&&168&i.type;)i=(n=i).parent;if(null===i)return t[0];if(Fi(i)){const{encapsulation:r}=e.data[i.directiveStart+i.componentOffset];if(r===wi.None||r===wi.Emulated)return null}return Sn(i,t)}function Z_(e,n,t){return Y_(e,n,t)}function K_(e,n,t){return 40&e.type?Sn(e,t):null}let M2,Y_=K_;function Q_(e,n){Y_=e,M2=n}function U1(e,n,t,i){const r=_2(e,i,n),o=n[11],s=Z_(i.parent||n[5],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)P_(o,r,t[c],s,!1);else P_(o,r,t,s,!1);void 0!==M2&&M2(o,i,n,t,r)}function ta(e,n){if(null!==n){const t=n.type;if(3&t)return Sn(n,e);if(4&t)return b2(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return ta(e,i);{const r=e[n.index];return Yt(r)?b2(-1,r):Ae(r)}}if(128&t)return ta(e,n.next);if(32&t)return m2(n,e)()||Ae(e[n.index]);{const i=J_(e,n);return null!==i?Array.isArray(i)?i[0]:ta(Tr(e[15]),i):ta(e,n.next)}}return null}function J_(e,n){return null!==n?e[15][5].projection[n.projection]:null}function b2(e,n){const t=10+e+1;if(t<n.length){const i=n[t],r=i[1].firstChild;if(null!==r)return ta(i,r)}return n[7]}function w2(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&&zn(Ae(s),i),t.flags|=2),!oo(t))if(8&c)w2(e,n,t.child,i,r,o,!1),ms(n,e,r,s,o);else if(32&c){const l=m2(t,i);let d;for(;d=l();)ms(n,e,r,d,o);ms(n,e,r,s,o)}else 16&c?X_(e,n,i,t,r,o):ms(n,e,r,s,o);t=a?t.projectionNext:t.next}}function G1(e,n,t,i,r,o){w2(t,i,e.firstChild,n,r,o,!1)}function X_(e,n,t,i,r,o){const a=t[15],c=a[5].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)ms(n,e,r,c[l],o);else{let l=c;const d=a[3];Lc(i)&&(l.flags|=128),w2(e,n,l,d,r,o,!0)}}function vs(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(Ae(o)),Yt(o)&&C2(o,i);const a=t.type;if(8&a)vs(e,n,t.child,i);else if(32&a){const s=m2(t,n);let c;for(;c=s();)i.push(c)}else if(16&a){const s=J_(n,t);if(Array.isArray(s))i.push(...s);else{const c=Tr(n[15]);vs(c[1],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}function C2(e,n){for(let t=10;t<e.length;t++){const i=e[t],r=i[1].firstChild;null!==r&&vs(i[1],i,r,n)}e[7]!==e[0]&&n.push(e[7])}function e4(e){if(null!==e[25]){for(const n of e[25])n.impl.addSequence(n);e[25].length=0}}let t4=[];const WE={...Gt,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Xa(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},KE={...Gt,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=Tr(e.lView);for(;n&&!n4(n[1]);)n=Tr(n);n&&jp(n)},consumerOnSignalRead(){this.lView[24]=this}};function n4(e){return 2!==e.type}function i4(e){if(null===e[23])return;let n=!0;for(;n;){let t=!1;for(const i of e[23])i.dirty&&(t=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=t&&!!(8192&e[2])}}function $1(e,n=!0,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function QE(e,n){const t=vv();try{a1(!0),D2(e,n);let i=0;for(;Sc(e);){if(100===i)throw new P(103,!1);i++,D2(e,1)}}finally{a1(t)}}(e,t)}catch(a){throw n&&function f2(e,n){const t=e[9],i=t?t.get(Li,null):null;i&&i.handleError(n)}(e,a),a}finally{r.end?.()}}function o4(e,n,t,i){if(Qr(n))return;const r=n[2];Xp(n);let s=!0,c=null,l=null;n4(e)?(l=function UE(e){return e[24]??function GE(e){const n=t4.pop()??Object.create(WE);return n.lView=e,n}(e)}(n),c=Dn(l)):null===function Mn(){return ve}()?(s=!1,l=function ZE(e){const n=e[24]??Object.create(KE);return n.lView=e,n}(n),c=Dn(l)):n[24]&&(Io(n[24]),n[24]=null);try{pv(n),function kv(e){return le.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&B_(e,n,t,2,i);const d=!(3&~r);if(d){const f=e.preOrderCheckHooks;null!==f&&c1(n,f,null)}else{const f=e.preOrderHooks;null!==f&&l1(n,f,0,null),n0(n,0)}if(function JE(e){for(let n=yk(e);null!==n;n=mk(n)){if(!(2&n[2]))continue;const t=n[9];for(let i=0;i<t.length;i++)jp(t[i])}}(n),i4(n),a4(n,0),null!==e.contentQueries&&s_(e,n),d){const f=e.contentCheckHooks;null!==f&&c1(n,f)}else{const f=e.contentHooks;null!==f&&l1(n,f,1),n0(n,1)}!function eI(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)Wo(~r);else{const o=r,a=t[++i],s=t[++i];bx(a,o);const c=n[o];s(2,c)}}}finally{Wo(-1)}}(e,n);const h=e.components;null!==h&&c4(n,h,0);const g=e.viewQuery;if(null!==g&&K0(2,g,i),d){const f=e.viewCheckHooks;null!==f&&c1(n,f)}else{const f=e.viewHooks;null!==f&&l1(n,f,2),n0(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[22]){for(const f of n[22])f();n[22]=null}e4(n),n[2]&=-73}catch(d){throw Xa(n),d}finally{null!==l&&(Lt(l,c),s&&function $E(e){e.lView[24]!==e&&(e.lView=null,t4.push(e))}(l)),e0()}}function a4(e,n){for(let t=yk(e);null!==t;t=mk(t))for(let i=10;i<t.length;i++)s4(t[i],n)}function XE(e,n,t){const i=En(n,e);s4(i,t)}function s4(e,n){Hp(e)&&D2(e,n)}function D2(e,n){const i=e[1],r=e[2],o=e[24];let a=!!(0===n&&16&r);if(a||=!!(64&r&&0===n),a||=!!(1024&r),a||=!(!o?.dirty||!ki(o)),a||=!1,o&&(o.dirty=!1),e[2]&=-9217,a)o4(i,e,i.template,e[8]);else if(8192&r){i4(e),a4(e,1);const s=i.components;null!==s&&c4(e,s,1),e4(e)}}function c4(e,n,t){for(let i=0;i<n.length;i++)XE(e,n[i],t)}function il(e,n){const t=vv()?64:1088;for(e[10].changeDetectionScheduler?.notify(n);e;){e[2]|=t;const i=Tr(e);if(Ir(e)&&!i)return e;e=i}return null}function l4(e,n,t,i){return[e,!0,0,n,null,i,null,t,null,null]}function ks(e,n,t,i=!0){const r=n[1];if(function tI(e,n,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=n),i<o-10?(n[4]=t[r],qm(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const a=n[16];null!==a&&t!==a&&u4(a,n);const s=n[18];null!==s&&s.insertView(e),Bp(n),n[2]|=128}(r,n,e,t),i){const a=b2(t,e),s=n[11],c=s.parentNode(e[7]);null!==c&&function LE(e,n,t,i,r,o){i[0]=r,i[5]=n,G1(e,i,t,1,r,o)}(r,e[5],s,n,c,a)}const o=n[6];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function rl(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[16];null!==r&&r!==e&&v2(r,i),n>0&&(e[t-1][4]=i[4]);const o=$d(e,10+n);!function G_(e,n){$_(e,n),n[0]=null,n[5]=null}(i[1],i);const a=o[18];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function u4(e,n){const t=e[9],i=n[3];(It(i)||n[15]!==i[3][15])&&(e[2]|=2),null===t?e[9]=[n]:t.push(n)}let ol=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const n=this._lView,t=n[1];return vs(t,n,t.firstChild,[])}constructor(n,t,i=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=i}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return Qr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Yt(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(rl(n,i),$d(t,i))}this._attachedToViewContainer=!1}nl(this._lView[1],this._lView)}onDestroy(n){r1(this._lView,n)}markForCheck(){il(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){Bp(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,$1(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Ir(this._lView),t=this._lView[16];null!==t&&!n&&v2(t,this._lView),$_(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=n;const t=Ir(this._lView),i=this._lView[16];null!==i&&!t&&u4(i,this._lView),Bp(this._lView)}},Ft=(()=>class e{static __NG_ELEMENT_ID__=rI})();const nI=Ft,iI=class extends nI{_declarationLView;_declarationTContainer;elementRef;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=ys(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new ol(r)}};function rI(){return W1(we(),N())}function W1(e,n){return 4&e.type?new iI(n,e,ns(e,n)):null}function f4(e,n,t){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?K_(e,0,t):Ae(t[r])}function g4(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++)Xo(e,a,t[o[c]],s,!1)}}function _s(e,n,t,i,r){let o=e.data[n];if(null===o)o=T2(e,n,t,i,r),function Mx(){return le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const a=Ec();o.injectorIndex=null===a?-1:a.injectorIndex}return Pi(o,!0),o}function T2(e,n,t,i,r){const o=gv(),a=Zp(),c=e.data[n]=function fI(e,n,t,i,r,o){let a=n?n.injectorIndex:-1,s=0;return $o()&&(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:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,t,n,i,r);return function pI(e,n,t,i){null===e.firstChild&&(e.firstChild=n),null!==t&&(i?null==t.child&&null!==n.parent&&(t.child=n):null===t.next&&(t.next=n,n.prev=t))}(e,c,o,a),c}function y4(e,n){if(e.push(n),e.length>1)for(let t=e.length-2;t>=0;t--){const i=e[t];m4(i)||gI(i,n)&&null===yI(i)&&mI(i,n.index)}}function m4(e){return!(64&e.type)}function gI(e,n){return m4(n)||e.index>n.index}function yI(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function mI(e,n){const t=e.insertBeforeIndex;Array.isArray(t)?t[0]=n:(Q_(f4,g4),e.insertBeforeIndex=n)}function ll(e,n){const t=e.data[n];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function _I(e,n,t){const i=T2(e,t,64,null,null);return y4(n,i),i}function K1(e,n){const t=n[e.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function v4(e){return e>>>17}function k4(e){return(131070&e)>>>1}function A2(e,n,t){e.index=0;const i=K1(n,t);e.removes=null!==i?n.remove[i]:Re}function Y1(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),A2(e,e.lView[1].data[~n],e.lView),Y1(e))}return 0===e.stack.length?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),Y1(e))}function bI(){const e={stack:[],index:-1};return function n(t,i){for(e.lView=i;e.stack.length;)e.stack.pop();return A2(e,t.value,i),Y1.bind(null,e)}}let eT=class{},O4=class{};class tT{resolveComponentFactory(n){throw Error(`No component factory found for ${Zt(n)}.`)}}let eu=class{static NULL=new tT};class V2{}let ur=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function nT(){const e=N(),t=En(we().index,e);return(It(t)?t:e)[11]}()})(),iT=(()=>{class e{static \u0275prov=H({token:e,providedIn:"root",factory:()=>null})}return e})();const j2={};class ws{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=Ud(i);const r=this.injector.get(n,j2,i);return r!==j2||t===j2?r:this.parentInjector.get(n,t,i)}}function B2(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=pp(r,s):2==o&&(i=pp(i,s+": "+n[++a]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}function R(e,n=De.Default){const t=N();return null===t?oe(e,n):Vv(we(),t,ce(e),n)}function z2(e,n,t,i,r){const o=null===i?null:{"":-1},a=r(e,t);if(null!==a){let s,c=null,l=null;const d=function cT(e){let n=null,t=!1;for(let a=0;a<e.length;a++){const s=e[a];if(0===a&&ai(s)&&(n=s),null!==s.findHostDirectiveDefs){t=!0;break}}if(!t)return null;let i=null,r=null,o=null;for(const a of e)null!==a.findHostDirectiveDefs&&(i??=[],r??=new Map,o??=new Map,lT(a,i,o,r)),a===n&&(i??=[],i.push(a));return null!==i?(i.push(...null===n?e:e.slice(1)),[i,r,o]):null}(a);null===d?s=a:[s,c,l]=d,function uT(e,n,t,i,r,o,a){const s=i.length;let c=!1;for(let g=0;g<s;g++){const f=i[g];!c&&ai(f)&&(c=!0,dT(e,t,g)),l0(u1(t,n),e,f.type)}!function mT(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,s);for(let g=0;g<s;g++){const f=i[g];f.providersResolver&&f.providersResolver(f)}let l=!1,d=!1,h=tl(e,n,s,null);s>0&&(t.directiveToIndex=new Map);for(let g=0;g<s;g++){const f=i[g];if(t.mergedAttrs=ts(t.mergedAttrs,f.hostAttrs),pT(e,t,n,h,f),yT(h,f,r),null!==a&&a.has(f)){const[C,E]=a.get(f);t.directiveToIndex.set(f.type,[h,C+t.directiveStart,E+t.directiveStart])}else(null===o||!o.has(f))&&t.directiveToIndex.set(f.type,h);null!==f.contentQueries&&(t.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=64);const k=f.type.prototype;!l&&(k.ngOnChanges||k.ngOnInit||k.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),l=!0),!d&&(k.ngOnChanges||k.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),d=!0),h++}!function hT(e,n,t){for(let i=n.directiveStart;i<n.directiveEnd;i++){const r=e.data[i];if(null!==t&&t.has(r)){const o=t.get(r);V4(0,n,o,i),V4(1,n,o,i),j4(n,i,!0)}else L4(0,n,r,i),L4(1,n,r,i),j4(n,i,!1)}}(e,t,o)}(e,n,t,s,o,c,l)}null!==o&&null!==i&&function sT(e,n,t){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const o=t[n[r+1]];if(null==o)throw new P(-301,!1);i.push(n[r],o)}}(t,i,o)}function lT(e,n,t,i){const r=n.length;e.findHostDirectiveDefs(e,n,i),t.set(e,[r,n.length-1])}function dT(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function L4(e,n,t,i){const r=0===e?t.inputs:t.outputs;for(const o in r)if(r.hasOwnProperty(o)){let a;a=0===e?n.inputs??={}:n.outputs??={},a[o]??=[],a[o].push(i),H4(n,o)}}function V4(e,n,t,i){const r=0===e?t.inputs:t.outputs;for(const o in r)if(r.hasOwnProperty(o)){const a=r[o];let s;s=0===e?n.hostDirectiveInputs??={}:n.hostDirectiveOutputs??={},s[a]??=[],s[a].push(i,o),H4(n,a)}}function H4(e,n){"class"===n?e.flags|=8:"style"===n&&(e.flags|=16)}function j4(e,n,t){const{attrs:i,inputs:r,hostDirectiveInputs:o}=e;if(null===i||!t&&null===r||t&&null===o||r2(e))return e.initialInputs??=[],void e.initialInputs.push(null);let a=null,s=0;for(;s<i.length;){const c=i[s];if(0!==c)if(5!==c){if("number"==typeof c)break;if(!t&&r.hasOwnProperty(c)){const l=r[c];for(const d of l)if(d===n){a??=[],a.push(c,i[s+1]);break}}else if(t&&o.hasOwnProperty(c)){const l=o[c];for(let d=0;d<l.length;d+=2)if(l[d]===n){a??=[],a.push(l[d+1],i[s+1]);break}}s+=2}else s+=2;else s+=4}e.initialInputs??=[],e.initialInputs.push(a)}function pT(e,n,t,i,r){e.data[i]=r;const o=r.factory||(r.factory=Fo(r.type)),a=new Tc(o,ai(r),R);e.blueprint[i]=a,t[i]=a,function fT(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 gT(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,tl(e,t,r.hostVars,fe),r)}function yT(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;ai(n)&&(t[""]=e)}}function B4(e,n,t,i,r,o,a,s){const c=n.consts,d=_s(n,e,2,i,Mi(c,a));return o&&z2(n,t,d,Mi(c,s),r),d.mergedAttrs=ts(d.mergedAttrs,d.attrs),null!==d.attrs&&B2(d,d.attrs,!1),null!==d.mergedAttrs&&B2(d,d.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,d),d}function z4(e,n){t0(e,n),Pp(n)&&e.queries.elementEnd(n)}class q4 extends eu{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=xe(n);return new gl(t,this.ngModule)}}class gl extends O4{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function vT(e){return Object.keys(e).map(n=>{const[t,i,r]=e[n],o={propName:t,templateName:n,isSignal:!!(i&B1.SignalBased)};return r&&(o.transform=r),o})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function kT(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function mE(e){return e.map(yE).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,i,r){const o=S(null);try{const a=this.componentDef,s=i?["ng-version","19.2.8"]:function vE(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(!Vi(r))break;r=o}i++}return t.length&&n.push(1,...t),n}(this.componentDef.selectors[0]),c=s2(0,null,null,1,0,null,null,null,null,[s],null),l=function _T(e,n,t){let i=n instanceof bn?n:n?.injector;return i&&null!==e.getStandaloneInjector&&(i=e.getStandaloneInjector(i)||i),i?new ws(t,i):t}(a,r||this.ngModule,n),d=function MT(e){const n=e.get(V2,null);if(null===n)throw new P(407,!1);return{rendererFactory:n,sanitizer:e.get(iT,null),changeDetectionScheduler:e.get(Rr,null)}}(l),h=d.rendererFactory.createRenderer(null,a),g=i?function wE(e,n,t,i){const o=i.get(Ik,!1)||t===wi.ShadowDom,a=e.selectRootElement(n,o);return function CE(e){z_(e)}(a),a}(h,i,a.encapsulation,l):function bT(e,n){const t=(e.selectors[0][0]||"div").toLowerCase();return H1(n,t,"svg"===t?"svg":"math"===t?"math":null)}(a,h),f=j1(null,c,null,512|c2(a),null,null,d,h,l,null,null);f[K]=g,Xp(f);let k=null;try{const C=B4(K,c,f,"#host",()=>[this.componentDef],!0,0);g&&(V_(h,g,C),zn(g,f)),z1(c,f,C),Y0(c,C,f),z4(c,C),void 0!==t&&function CT(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const o=t[r];i.push(null!=o&&o.length?Array.from(o):null)}}(C,this.ngContentSelectors,t),k=En(C.index,f),f[8]=k[8],q1(c,f,null)}catch(C){throw null!==k&&v0(k),v0(f),C}finally{e0()}return new wT(this.componentType,f)}finally{S(o)}}}class wT extends eT{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t){super(),this._rootLView=t,this._tNode=Uo(t[1],K),this.location=ns(this._tNode,t),this.instance=En(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new ol(t,void 0,!1),this.componentType=n}setInput(n,t){const i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const r=this._rootLView;g2(i,r[1],r,n,t),this.previousInputValues.set(n,t),il(En(i.index,r),1)}get injector(){return new Tt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}let Gn=(()=>class e{static __NG_ELEMENT_ID__=DT})();function DT(){return $4(we(),N())}const xT=Gn,U4=class extends xT{_lContainer;_hostTNode;_hostLView;constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return ns(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){const n=h1(this._hostTNode,this._hostLView);if(a0(n)){const t=Nc(n,this._hostLView),i=Ac(n);return new Tt(t[1].data[i+8],t)}return new Tt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=G4(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(s,r,ea(this._hostTNode,null)),s}createComponent(n,t,i,r,o){const a=n&&!function Dc(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 gl(xe(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const C=(a?l:this.parentInjector).get(bn,null);C&&(o=C)}xe(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,s,ea(this._hostTNode,null)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function ux(e){return Yt(e[3])}(r)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=r[3],l=new U4(c,c[5],c[3]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(t),a=this._lContainer;return ks(a,r,o,i),n.attachToViewContainerRef(),qm(q2(a),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=G4(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=rl(this._lContainer,t);i&&($d(q2(this._lContainer),t),nl(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=rl(this._lContainer,t);return i&&null!=$d(q2(this._lContainer),t)?new ol(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function G4(e){return e[8]}function q2(e){return e[8]||(e[8]=[])}function $4(e,n){let t;const i=n[e.index];return Yt(i)?t=i:(t=l4(i,n,null,e),n[e.index]=t,l2(n,t)),W4(t,n,e,i),new U4(t,e,n)}let W4=function K4(e,n,t,i){if(e[7])return;let r;r=8&t.type?Ae(i):function ST(e,n){const t=e[11],i=t.createComment(""),r=Sn(n,e),o=t.parentNode(r);return Xo(t,o,i,t.nextSibling(r),!1),i}(n,t),e[7]=r};class G2{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new G2(this.queryList)}setDirty(){this.queryList.setDirty()}}class $2{queries;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 $2(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!==Q2(n,t).matches&&this.queries[t].setDirty()}}class Y4{flags;read;predicate;constructor(n,t,i=null){this.flags=t,this.read=i,this.predicate="string"==typeof n?function FT(e){return e.split(",").map(n=>n.trim())}(n):n}}class W2{queries;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 W2(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 Z2{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,t=-1){this.metadata=n,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Z2(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,AT(t,o)),this.matchTNodeWithReadOption(n,t,p1(t,n,o,!1,!1))}else i===Ft?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,p1(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===Ft&&4&t.type)this.addMatch(t.index,-2);else{const o=p1(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 AT(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 RT(e,n,t,i){return-1===t?function NT(e,n){return 11&e.type?ns(e,n):4&e.type?W1(e,n):null}(n,e):-2===t?function OT(e,n,t){return t===Oe?ns(n,e):t===Ft?W1(n,e):t===Gn?$4(n,e):void 0}(e,n,i):Rc(e,e[1],t,n)}function Q4(e,n,t,i){const r=n[18].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:RT(n,o[l],a[c+1],t.metadata.read))}r.matches=s}return r.matches}function K2(e,n,t,i){const r=e.queries.getByIndex(t),o=r.matches;if(null!==o){const a=Q4(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=10;h<d.length;h++){const g=d[h];g[16]===g[3]&&K2(g[1],g,l,i)}if(null!==d[9]){const h=d[9];for(let g=0;g<h.length;g++){const f=h[g];K2(f[1],f,l,i)}}}}}return i}function J4(e,n,t){const i=new pS(!(4&~t));return function hx(e,n,t,i){const r=qp(n);r.push(t),e.firstCreatePass&&Up(e).push(i,r.length-1)}(e,n,i,i.destroy),(n[18]??=new $2).queries.push(new G2(i))-1}function tM(e,n,t){null===e.queries&&(e.queries=new W2),e.queries.track(new Z2(n,t))}function Q2(e,n){return e.queries.getByIndex(n)}function nM(e,n){const t=e[1],i=Q2(t,n);return i.crossesNgTemplate?K2(t,e,n,[]):Q4(t,e,i,n)}let ra=class{},pM=class{};class ef extends ra{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new q4(this);constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t;const o=ii(n);this._bootstrapComponents=lr(o.bootstrap),this._r3Injector=Zv(n,t,[{provide:ra,useValue:this},{provide:eu,useValue:this.componentFactoryResolver},...i],Zt(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 tf extends pM{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ef(this.moduleType,n,[])}}class fM extends ra{injector;componentFactoryResolver=new q4(this);instance=null;constructor(n){super();const t=new Ho([...n.providers,{provide:ra,useValue:this},{provide:eu,useValue:this.componentFactoryResolver}],n.parent||Qd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function nu(e,n,t=null){return new fM({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let ZT=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Sp(0,t.type),r=i.length>0?nu([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 \u0275prov=H({token:e,providedIn:"environment",factory:()=>new e(oe(bn))})}return e})();function re(e){return xr(()=>{const n=gM(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===m1.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(ZT).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wi.Emulated,styles:e.styles||Re,_:null,schemas:e.schemas||null,tView:null,id:""};n.standalone&&qn("NgStandalone"),yM(t);const i=e.dependencies;return t.directiveDefs=iu(i,!1),t.pipeDefs=iu(i,!0),t.id=function eA(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function KT(e){return xe(e)||fn(e)}function YT(e){return null!==e}function Ye(e){return xr(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QT(e,n){if(null==e)return Ni;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,a,s,c;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,c=r[3]||null):(o=r,a=r,s=B1.None,c=null),t[o]=[i,s,c],n[o]=a}return t}function JT(e){if(null==e)return Ni;const n={};for(const t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function $(e){return xr(()=>{const n=gM(e);return yM(n),n})}function $n(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function gM(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,inputConfig:e.inputs||Ni,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:QT(e.inputs,n),outputs:JT(e.outputs),debugInfo:null}}function yM(e){e.features?.forEach(n=>n(e))}function iu(e,n){if(!e)return null;const t=n?ri:KT;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(YT)}function Y(e){let n=function mM(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(ai(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new P(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const a=e;a.inputs=nf(e.inputs),a.declaredInputs=nf(e.declaredInputs),a.outputs=nf(e.outputs);const s=r.hostBindings;s&&oA(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&iA(e,c),l&&rA(e,l),tA(e,r),mD(e.outputs,r.outputs),ai(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===Y&&(t=!1)}}n=Object.getPrototypeOf(n)}!function nA(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=ts(r.hostAttrs,t=ts(t,r.hostAttrs))}}(i)}function tA(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t])}}function nf(e){return e===Ni?{}:e===Re?[]:e}function iA(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function rA(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function oA(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function rf(e){const n=t=>{const i=Array.isArray(e);null===t.hostDirectives?(t.findHostDirectiveDefs=vM,t.hostDirectives=i?e.map(af):[e]):i?t.hostDirectives.unshift(...e.map(af)):t.hostDirectives.unshift(e)};return n.ngInherit=!0,n}function vM(e,n,t){if(null!==e.hostDirectives)for(const i of e.hostDirectives)if("function"==typeof i){const r=i();for(const o of r)kM(af(o),n,t)}else kM(i,n,t)}function kM(e,n,t){const i=fn(e.directive);(function lA(e,n){for(const t in n)n.hasOwnProperty(t)&&(e[n[t]]=e[t])})(i.declaredInputs,e.inputs),vM(i,n,t),t.set(i,e),n.push(i)}function af(e){return"function"==typeof e?{directive:ce(e),inputs:Ni,outputs:Ni}:{directive:ce(e.directive),inputs:_M(e.inputs),outputs:_M(e.outputs)}}function _M(e){if(void 0===e||0===e.length)return Ni;const n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function ru(e){return!!function sf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function hr(e,n,t){return e[n]=t}function At(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function oa(e,n,t,i){const r=At(e,n,t);return At(e,n+1,i)||r}function vl(e,n,t,i,r,o,a,s,c,l){const d=t+K,h=n.firstCreatePass?function pA(e,n,t,i,r,o,a,s,c){const l=n.consts,d=_s(n,e,4,a||null,s||null);Wp()&&z2(n,t,d,Mi(l,c),h2),d.mergedAttrs=ts(d.mergedAttrs,d.attrs),t0(n,d);const h=d.tView=s2(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];Pi(h,!1);const g=bM(n,e,h,t);Ic()&&U1(n,e,g,h),zn(g,e);const f=l4(g,e,g,h);return e[d]=f,l2(e,f),n1(h)&&z1(n,e,h),null!=c&&u2(e,h,l),h}function j(e,n,t,i,r,o,a,s){const c=N(),l=ie();return vl(c,l,e,n,t,i,r,Mi(l.consts,o),a,s),j}let bM=function wM(e,n,t,i){return or(!0),n[11].createComment("")};let df=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const PM=new z(""),lu=new z("");let yf,ff=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(t,i,r){this._ngZone=t,this.registry=i,yf||(function uN(e){yf=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:()=>{ge.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 \u0275fac=function(i){return new(i||e)(oe(ge),oe(gf),oe(lu))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),gf=(()=>{class e{_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 yf?.findTestabilityInTree(this,t,i)??null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),mf=(()=>{class e{static \u0275prov=H({token:e,providedIn:"root",factory:()=>new hN})}return e})();class hN{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){const i=this.queues.get(n.zone);i.has(n)&&(i.delete(n),this.queuedEffectCount--)}enqueue(n){const t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}function _l(e){return!!e&&"function"==typeof e.then}function LM(e){return!!e&&"function"==typeof e.subscribe}const VM=new z("");function HM(e){return function Lo(e){return{\u0275providers:e}}([{provide:VM,multi:!0,useValue:e}])}let jM=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i});appInits=w(VM,{optional:!0})??[];injector=w(je);constructor(){}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=Ri(this.injector,r);if(_l(o))t.push(o);else if(LM(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ml=new z("");let An=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(cS);afterRenderManager=w(P0);zonelessEnabled=w(Oc);rootEffectScheduler=w(mf);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ze;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(eo).hasPendingTasks.pipe(Ie(t=>!t));constructor(){w(rs,{optional:!0})}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}_injector=w(bn);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,i){return this.bootstrapImpl(t,i)}bootstrapImpl(t,i,r=je.NULL){const o=t instanceof O4;if(!this._injector.get(jM).done)throw new P(405,"");let s;s=o?t:this._injector.get(eu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function pN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ra),d=s.create(r,[],i||s.selector,c),h=d.location.nativeElement,g=d.injector.get(PM,null);return g?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),du(this.components,d),g?.unregisterApplication(h)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){null!==this.tracingSnapshot?this.tracingSnapshot.run(F0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new P(101,!1);const t=S(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,S(t),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(V2,null,{optional:!0}));let t=0;for(;0!==this.dirtyFlags&&t++<10;)this.synchronizeOnce()}synchronizeOnce(){if(16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const t=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)gN(i,r,t,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Sc(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;du(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ml,[]).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._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>du(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new P(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function du(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function gN(e,n,t,i){(t||Sc(e))&&$1(e,n,t&&!i?0:1)}function U(e,n,t,i){const r=N();return At(r,bi(),n)&&(ie(),function dr(e,n,t,i,r,o){const a=Sn(e,n);p2(n[11],a,o,e.value,t,i,r)}(Ze(),r,e,n,t,i)),U}function Ts(e,n,t,i,r,o,a,s){const l=function ou(e,n,t,i,r){const o=oa(e,n,t,i);return At(e,n+2,r)||o}(e,Ar(),t,r,a);return Nr(3),l?n+pe(t)+i+pe(r)+o+pe(a)+s:fe}function uu(e,n){return e<<17|n<<2}function sa(e){return e>>17&32767}function bf(e){return 2|e}function Ps(e){return(131068&e)>>2}function wf(e,n){return-131069&e|n<<2}function Cf(e){return 1|e}function a5(e,n,t,i){const r=e[t+1],o=null===n;let a=i?sa(r):Ps(r),s=!1;for(;0!==a&&(!1===s||o);){const l=e[a+1];tR(e[a],n)&&(s=!0,e[a+1]=i?Cf(l):bf(l)),a=i?sa(l):Ps(l)}s&&(e[t+1]=i?bf(r):Cf(r))}function tR(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&wc(e,n)>=0}const Qt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function s5(e){return e.substring(Qt.key,Qt.keyEnd)}function c5(e,n){const t=Qt.textEnd;return t===n?-1:(n=Qt.keyEnd=function oR(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Qt.key=n,t),Ls(e,n,t))}function Ls(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function x(e,n,t){const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!1),x}function Df(e,n,t,i,r){g2(n,e,t,r?"class":"style",i)}function wl(e,n,t){return Hi(e,n,t,!1),wl}function $e(e,n){return Hi(e,n,null,!0),$e}function ca(e){ji(fR,fr,e,!0)}function fr(e,n){for(let t=function iR(e){return function d5(e){Qt.key=0,Qt.keyEnd=0,Qt.value=0,Qt.valueEnd=0,Qt.textEnd=e.length}(e),c5(e,Ls(e,0,Qt.textEnd))}(n);t>=0;t=c5(n,t))ni(e,s5(n),!0)}function Hi(e,n,t,i){const r=N(),o=ie(),a=Nr(2);o.firstUpdatePass&&f5(o,e,a,i),n!==fe&&At(r,a,n)&&y5(o,o.data[gn()],r,r[11],e,r[a+1]=function yR(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Zt(io(e)))),e}(n,t),i,a)}function ji(e,n,t,i){const r=ie(),o=Nr(2);r.firstUpdatePass&&f5(r,null,o,i);const a=N();if(t!==fe&&At(a,o,t)){const s=r.data[gn()];if(v5(s,i)&&!p5(r,o)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=pp(c,t||"")),Df(r,s,a,t,i)}else!function gR(e,n,t,i,r,o,a,s){r===fe&&(r=Re);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 g=c<r.length?r[c+1]:void 0,f=l<o.length?o[l+1]:void 0;let C,k=null;d===h?(c+=2,l+=2,g!==f&&(k=h,C=f)):null===h||null!==d&&d<h?(c+=2,k=d):(l+=2,k=h,C=f),null!==k&&y5(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[11],a[o+1],a[o+1]=function pR(e,n,t){if(null==t||""===t)return Re;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 p5(e,n){return n>=e.expandoStartIndex}function f5(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[gn()],a=p5(e,t);v5(o,i)&&null===n&&!a&&(n=!1),n=function lR(e,n,t,i){const r=function Qp(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=Cl(t=xf(null,e,n,t,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==r)if(t=xf(r,e,n,t,i),null===o){let c=function dR(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Ps(i))return e[sa(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=xf(null,e,n,c[1],i),c=Cl(c,n.attrs,i),function uR(e,n,t,i){e[sa(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function hR(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=Cl(i,e[o].hostAttrs,t);return Cl(i,n.attrs,t)}(e,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),t}(r,o,n,i),function XN(e,n,t,i,r,o){let a=o?n.classBindings:n.styleBindings,s=sa(a),c=Ps(a);e[i]=t;let d,l=!1;if(Array.isArray(t)?(d=t[1],(null===d||wc(t,d)>0)&&(l=!0)):d=t,r)if(0!==c){const g=sa(e[s+1]);e[i+1]=uu(g,s),0!==g&&(e[g+1]=wf(e[g+1],i)),e[s+1]=function QN(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=uu(s,0),0!==s&&(e[s+1]=wf(e[s+1],i)),s=i;else e[i+1]=uu(c,0),0===s?s=i:e[c+1]=wf(e[c+1],i),c=i;l&&(e[i+1]=bf(e[i+1])),a5(e,d,i,!0),a5(e,d,i,!1),function eR(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&wc(o,n)>=0&&(t[i+1]=Cf(t[i+1]))}(n,d,e,i,o),a=uu(s,c),o?n.classBindings=a:n.styleBindings=a}(r,o,n,t,a,i)}}function xf(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=Cl(i,o.hostAttrs,r),o!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function Cl(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]),ni(e,a,!!t||n[++o]))}return void 0===e?null:e}function fR(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&ni(e,i,t)}function y5(e,n,t,i,r,o,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function JN(e){return!(1&~e)}(l)?m5(c,n,t,r,Ps(l),a):void 0;hu(d)||(hu(o)||function YN(e){return!(2&~e)}(l)&&(o=m5(c,null,t,r,s,a)),function qE(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,Ja(gn(),t),r,o))}function m5(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 g=t[r+1];g===fe&&(g=h?Re:void 0);let f=h?Dp(g,i):d===i?g:void 0;if(l&&!hu(f)&&(f=Dp(c,i)),hu(f)&&(s=f,a))return s;const k=e[r+1];r=a?sa(k):Ps(k)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(s=Dp(c,i))}return s}function hu(e){return void 0!==e}function v5(e,n){return!!(e.flags&(n?8:16))}function k5(e,n,t,i,r){ji(ni,fr,function Is(e,n,t,i,r,o){const s=oa(e,Ar(),t,r);return Nr(2),s?n+pe(t)+i+pe(r)+o:fe}(N(),e,n,t,i,r),!0)}function jt(e,n){qn("NgControlFlow");const t=N(),i=bi(),r=t[i]!==fe?t[i]:-1,o=-1!==r?pu(t,K+r):void 0;if(At(t,i,e)){const s=S(null);try{if(void 0!==o&&function x2(e,n){const t=rl(e,n);return void 0!==t&&nl(t[1],t),t}(o,0),-1!==e){const c=K+e,l=pu(t,c),d=function Tf(e,n){return Uo(e,n)}(t[1],c),h=null;ks(l,ys(t,d,n,{dehydratedView:h}),0,ea(d,h))}}finally{S(s)}}else if(void 0!==o){const s=function d4(e,n){const t=10+n;if(t<e.length)return e[t]}(o,0);void 0!==s&&(s[8]=n)}}function pu(e,n){return e[n]}function y(e,n,t,i){const r=N(),o=ie(),a=K+e,s=r[11],c=o.firstCreatePass?B4(a,o,r,n,h2,Wp(),t,i):o.data[a],l=w5(o,r,c,s,n,e);r[a]=l;const d=n1(c);return Pi(c,!0),V_(s,l,c),!oo(c)&&Ic()&&U1(o,r,l,c),(0===function px(){return le.lFrame.elementDepthCount}()||d)&&zn(l,r),function fx(){le.lFrame.elementDepthCount++}(),d&&(z1(o,r,c),Y0(o,c,r)),null!==i&&u2(r,c),y}function m(){let e=we();Zp()?Kp():(e=e.parent,Pi(e,!1));const n=e;(function yx(e){return le.skipHydrationRootTNode===e})(n)&&function _x(){le.skipHydrationRootTNode=null}(),function gx(){le.lFrame.elementDepthCount--}();const t=ie();return t.firstCreatePass&&z4(t,n),null!=n.classesWithoutHost&&function Rx(e){return!!(8&e.flags)}(n)&&Df(t,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ox(e){return!!(16&e.flags)}(n)&&Df(t,n,N(),n.stylesWithoutHost,!1),m}function B(e,n,t,i){return y(e,n,t,i),m(),B}let w5=(e,n,t,i,r,o)=>(or(!0),H1(i,r,function xv(){return le.lFrame.currentNamespace}()));function ci(e,n,t){const i=N(),r=ie(),o=e+K,a=r.firstCreatePass?function FR(e,n,t,i,r){const o=n.consts,a=Mi(o,i),s=_s(n,e,8,"ng-container",a);null!==a&&B2(s,a,!0);const c=Mi(o,r);return Wp()&&z2(n,t,s,c,h2),s.mergedAttrs=ts(s.mergedAttrs,s.attrs),null!==n.queries&&n.queries.elementStart(n,s),s}(o,r,i,n,t):r.data[o];Pi(a,!0);const s=C5(r,i,a,e);return i[o]=s,Ic()&&U1(r,i,s,a),zn(s,i),n1(a)&&(z1(r,i,a),Y0(r,a,i)),null!=t&&u2(i,a),ci}function li(){let e=we();const n=ie();return Zp()?Kp():(e=e.parent,Pi(e,!1)),n.firstCreatePass&&(t0(n,e),Pp(e)&&n.queries.elementEnd(e)),li}function Vs(e,n,t){return ci(e,n,t),li(),Vs}let C5=(e,n,t,i)=>(or(!0),a2(n[11],""));function Be(){return N()}function di(e,n,t){const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!0),di}const la=void 0;var HR=["en",[["a","p"],["AM","PM"],la],[["AM","PM"],la,la],[["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"]],la,[["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"]],la,[["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}",la,"{1} 'at' {0}",la],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VR(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let Hs={};function Nn(e){const n=function jR(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=S5(n);if(t)return t;const i=n.split("-")[0];if(t=S5(i),t)return t;if("en"===i)return HR;throw new P(701,!1)}function S5(e){return e in Hs||(Hs[e]=St.ng&&St.ng.common&&St.ng.common.locales&&St.ng.common.locales[e]),Hs[e]}var ot=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}(ot||{});const BR=["zero","one","two","few","many"],fu="en-US",gu={marker:"element"},yu={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 E5=fu,Dl=0,xl=0;let Sl=(e,n,t,i)=>(or(!0),function I5(e,n,t){const i=e[11];switch(t){case Node.COMMENT_NODE:return a2(i,n);case Node.TEXT_NODE:return o2(i,n);case Node.ELEMENT_NODE:return H1(i,n,null)}}(e,t,i));function T5(e,n,t,i){const r=t[11];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]=Sl(t,0,c,Node.TEXT_NODE))}else if("number"==typeof c)switch(1&c){case 0:const l=v4(c);let d,h;if(null===o&&(o=l,a=r.parentNode(i)),l===o?(d=i,h=a):(d=null,h=Ae(t[l])),null!==h){const C=k4(c);Xo(r,h,t[C],d,!1);const T=ll(e,C);if(null!==T&&"object"==typeof T){const I=K1(T,t);null!==I&&T5(e,T.create[I],t,t[T.anchorIdx])}}break;case 1:const f=n[++s],k=n[++s];p2(r,Ja(c>>>1,t),null,null,f,k,null)}else switch(c){case yu:const l=n[++s],d=n[++s];null===t[d]&&zn(t[d]=Sl(t,0,l,Node.COMMENT_NODE),t);break;case gu:const h=n[++s],g=n[++s];null===t[g]&&zn(t[g]=Sl(t,0,h,Node.ELEMENT_NODE),t)}}}function A5(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+=pe(n[i-d]);else{const h=d>>>2;switch(3&d){case 1:const g=t[++l],f=t[++l],k=e.data[h];"string"==typeof k?p2(n[11],n[h],null,k,g,c,f):Un(e,k,n,g,c,n[11],f,!1);break;case 0:const C=n[h];null!==C&&O_(n[11],C,c);break;case 2:QR(e,ll(e,h),n,c);break;case 3:N5(e,ll(e,h),i,n)}}}}else{const c=t[o+1];if(c>0&&!(3&~c)){const d=ll(e,c>>>2);n[d.currentCaseLViewIndex]<0&&N5(e,d,i,n)}}o+=s}}function N5(e,n,t,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=Dl;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),A5(e,i,n.update[r],t,o)}}function QR(e,n,t,i){const r=function JR(e,n){let t=e.cases.indexOf(n);if(-1===t)switch(e.type){case 1:{const i=function zR(e,n){const t=function x5(e){return Nn(e)[ot.PluralCase]}(n)(parseInt(e,10)),i=BR[t];return void 0!==i?i:"other"}(n,function GR(){return E5}());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(K1(n,t)!==r&&(R5(e,n,t),t[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const a=t[n.anchorIdx];a&&T5(e,n.create[r],t,a)}}function R5(e,n,t){let i=K1(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=Ja(a,t);null!==s&&el(t[11],s)}else R5(e,ll(e,~a),t)}}}const mu=/\ufffd(\d+):?\d*\ufffd/gi,eO=/\ufffd(\d+)\ufffd/,F5=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,tO=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,nO=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,iO=/\uE500/g;function P5(e,n,t,i,r,o,a){const s=tl(e,i,1,null);let c=s<<Wn.SHIFT,l=Ec();n===l&&(l=null),null===l&&(c|=Wn.APPEND_EAGERLY),a&&(c|=Wn.COMMENT,function PE(e){void 0===y2&&(y2=e())}(bI)),r.push(c,null===o?"":o);const d=T2(e,s,a?32:1,null===o?"":o,null);y4(t,d);const h=d.index;return Pi(d,!1),null!==l&&n!==l&&function kI(e,n){let t=e.insertBeforeIndex;null===t?(Q_(f4,g4),t=e.insertBeforeIndex=[null,n]):(Ro(Array.isArray(t),!0,"Expecting array here"),t.push(n))}(l,h),d}function aO(e,n,t,i,r,o,a,s){const c=s.match(mu),d=P5(n,t,i,a,r,c?null:s,!1).index;c&&Il(o,s,d,null,0,null),e.push({kind:0,index:d})}function Il(e,n,t,i,r,o){const a=e.length,s=a+1;e.push(null,null);const c=a+2,l=n.split(mu);let d=0;for(let h=0;h<l.length;h++){const g=l[h];if(1&h){const f=r+parseInt(g,10);e.push(-1-f),d|=L5(f)}else""!==g&&e.push(g)}return e.push(t<<2|(i?1:0)),i&&e.push(i,o),e[a]=d,e[s]=e.length-c,d}function L5(e){return 1<<Math.min(e,31)}function V5(e){let n,o,t="",i=0,r=!1;for(;null!==(n=tO.exec(e));)r?n[0]===`\ufffd/*${o}\ufffd`&&(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 H5(e,n,t,i,r,o,a){let s=0;const c={type:o.type,currentCaseLViewIndex:tl(n,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function pO(e,n,t){e.push(L5(n.mainBinding),2,-1-n.mainBinding,t<<2|2)})(i,o,a),function vI(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 g=l[h],f=[];for(let C=0;C<g.length;C++){const E=g[C];if("string"!=typeof E){const T=f.push(E)-1;g[C]=`\x3c!--\ufffd${T}\ufffd--\x3e`}}const k=[];d.push(k),s=uO(k,n,c,t,i,r,o.cases[h],g.join(""),f)|s}s&&function fO(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 dO(e){const n=[],t=[];let i=1,r=0;const o=Af(e=e.replace(F5,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=Af(o[a++]);n.length>t.length&&t.push(c)}return{type:i,mainBinding:r,cases:n,values:t}}function Af(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);F5.test(c)?i.push(dO(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 uO(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 f=function p_(e){const n=new A9(e);return function N9(){try{return!!(new window.DOMParser).parseFromString(ps(""),"text/html")}catch{return!1}}()?new T9(n):n}(cr()).getInertBodyElement(s),k=function t2(e){return"content"in e&&function z9(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}(f)||f;return k?j5(e,n,t,i,r,l,d,h,k,o,c,0):0}function j5(e,n,t,i,r,o,a,s,c,l,d,h){let g=0,f=c.firstChild;for(;f;){const k=tl(n,i,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:const C=f,E=C.tagName.toLowerCase();if(X0.hasOwnProperty(E)){Nf(o,gu,E,l,k),n.data[k]=E;const G=C.attributes;for(let me=0;me<G.length;me++){const Se=G.item(me),We=Se.name.toLowerCase();Se.value.match(mu)?m_.hasOwnProperty(We)&&Il(s,Se.value,k,Se.name,0,e2[We]?J0:null):gO(o,k,Se)}const W={kind:1,index:k,children:[]};e.push(W),g=j5(W.children,n,t,i,r,o,a,s,f,k,d,h+1)|g,B5(a,k,h)}break;case Node.TEXT_NODE:const T=f.textContent||"",I=T.match(mu);Nf(o,null,I?"":T,l,k),B5(a,k,h),I&&(g=Il(s,T,k,null,0,null)|g),e.push({kind:0,index:k});break;case Node.COMMENT_NODE:const q=eO.exec(f.textContent||"");if(q){const W=d[parseInt(q[1],10)];Nf(o,yu,"",l,k),H5(e,n,i,r,l,W,k),hO(a,k,h)}}f=f.nextSibling}return g}function B5(e,n,t){0===t&&e.push(n)}function hO(e,n,t){0===t&&(e.push(~n),e.push(n))}function Nf(e,n,t,i,r){null!==n&&e.push(n),e.push(t,r,function MI(e,n,t){return e|n<<17|t<<1}(0,i,r))}function gO(e,n,t){e.push(n<<1|1,t.name,t.value)}function q5(e,n,t=-1){const i=ie(),r=N(),o=K+e,a=Mi(i.consts,n),s=Ec();i.firstCreatePass&&function oO(e,n,t,i,r,o){const a=Ec(),s=[],c=[],l=[[]],d=[[]];r=function lO(e,n){if(function M4(e){return-1===e}(n))return V5(e);{const t=e.indexOf(`:${n}\ufffd`)+2+n.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${n}\ufffd`));return V5(e.substring(t,i))}}(r,o);const h=function rO(e){return e.replace(iO," ")}(r).split(nO);for(let g=0;g<h.length;g++){let f=h[g];if(1&g){const k=47===f.charCodeAt(0),C=f.charCodeAt(k?1:0),E=K+Number.parseInt(f.substring(k?2:1));if(k)l.shift(),d.shift(),Pi(Ec(),!1);else{const T=_I(e,l[0],E);l.unshift([]),Pi(T,!0);const I={kind:2,index:E,children:[],type:35===C?0:1};d[0].push(I),d.unshift(I.children)}}else{const k=Af(f);for(let C=0;C<k.length;C++){let E=k[C];if(1&C){const T=E;if("object"!=typeof T)throw new Error(`Unable to parse ICU expression in "${r}" message.`);const q=P5(e,a,l[0],t,s,"",!0).index;H5(d[0],e,t,c,n,T,q)}else""!==E&&aO(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[15][2]|=32:r[2]|=32;const c=i.data[o],d=W_(i,s===r[5]?null:s,r);(function YR(e,n,t,i){const r=e[11];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],g=!1;null===h&&(h=e[d]=Sl(e,0,n[o],(a&Wn.COMMENT)===Wn.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),g=Ic()),l&&null!==t&&g&&Xo(r,t,h,i,!1)}})(r,c.create,d,s&&8&s.type?r[s.index]:null),_v(!0)}function js(e,n,t){q5(e,n,t),function U5(){_v(!1)}()}function Rf(e){return function $R(e){e&&(Dl|=1<<Math.min(xl,31)),xl++}(At(N(),bi(),e)),Rf}function $5(e,n,t){return function i(r){if(r===Function)return t;il(Fi(e)?En(e.index,n):n,5);const a=n[8];let s=W5(n,a,t,r),c=i.__ngNextListenerFn__;for(;c;)s=W5(n,a,c,r)&&s,c=c.__ngNextListenerFn__;return s}}function W5(e,n,t,i){const r=S(null);try{return!1!==t(i)}catch(o){return function xO(e,n){const t=e[9],i=t?t.get(Li,null):null;i&&i.handleError(n)}(e,o),!1}finally{S(r)}}function Z5(e,n,t,i,r,o){const s=n[1],d=n[t][s.data[t].outputs[i]],h=s.firstCreatePass?Up(s):null,g=qp(n),f=d.subscribe(o),k=g.length;g.push(o,f),h&&h.push(r,e.index,k,-(k+1))}function L(e,n,t,i){const r=N(),o=ie(),a=we();return Of(o,r,r[11],a,e,n,i),L}function Of(e,n,t,i,r,o,a){const s=n1(i),l=e.firstCreatePass?Up(e):null,d=qp(n);let h=!0;if(3&i.type||a){const g=Sn(i,n),f=a?a(g):g,k=d.length,C=a?T=>a(Ae(T[i.index])):i.index;let E=null;if(!a&&s&&(E=function SO(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[7],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,h=!1;else{o=$5(i,n,o);const T=t.listen(f,r,o);d.push(o,T),l&&l.push(r,C,k,k+1)}}else o=$5(i,n,o);if(h){const g=i.outputs?.[r],f=i.hostDirectiveOutputs?.[r];if(f&&f.length)for(let k=0;k<f.length;k+=2)Z5(i,n,f[k],f[k+1],r,o);if(g&&g.length)for(const k of g)Z5(i,n,k,r,r,o)}}function F(e=1){return function Dx(e){return(le.lFrame.contextLView=function fv(e,n){for(;e>0;)n=n[14],e--;return n}(e,le.lFrame.contextLView))[8]}(e)}function EO(e,n){let t=null;const i=function hE(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?N_(e,o,!0):gE(i,o))return r}else t=r}return t}function ho(e){const n=N()[15][5];if(!n.projection){const i=n.projection=function Wd(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?EO(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=N(),s=ie(),c=i?e+1:null;null!==c&&vl(a,s,c,i,r,o,null,t);const l=_s(s,K+e,16,null,t||null);null===l.projection&&(l.projection=n),Kp();const h=!a[6]||$o();null===a[15][5].projection[l.projection]&&null!==c?function IO(e,n,t){const i=K+t,r=n.data[i],o=e[i];ks(o,ys(e,r,void 0,{dehydratedView:null}),0,ea(r,null))}(a,s,c):h&&!oo(l)&&function BE(e,n,t){X_(n[11],0,n,t,_2(e,t,n),Z_(t.parent||n[5],t,n))}(s,a,l)}function Jt(e,n,t,i){!function eM(e,n,t,i){const r=ie();if(r.firstCreatePass){const o=we();tM(r,new Y4(n,t,i),o.index),function PT(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 J4(r,N(),t)}(e,n,t,i)}function fo(e,n,t){!function X4(e,n,t){const i=ie();return i.firstCreatePass&&(tM(i,new Y4(e,n,t),-1),!(2&~n)&&(i.staticViewQueries=!0)),J4(i,N(),n)}(e,n,t)}function at(e){const n=N(),t=ie(),i=Jp();s1(i+1);const r=Q2(t,i);if(e.dirty&&function dx(e){return!(4&~e[2])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)e.reset([]);else{const o=nM(n,i);e.reset(o,ok),e.notifyOnChanges()}return!0}return!1}function st(){return function Y2(e,n){return e[18].queries[n].queryList}(N(),Jp())}function Mt(e){return Go(function yv(){return le.lFrame.contextLView}(),K+e)}function M(e,n=""){const t=N(),i=ie(),r=e+K,o=i.firstCreatePass?_s(i,r,1,n,null):i.data[r],a=y3(i,t,o,n,e);t[r]=a,Ic()&&U1(i,t,a,o),Pi(o,!1)}let y3=(e,n,t,i,r)=>(or(!0),o2(n[11],i));function Bi(e){return zi("",e,""),Bi}function zi(e,n,t){const i=N(),r=function Es(e,n,t,i){return At(e,bi(),t)?n+pe(t)+i:fe}(i,e,n,t);return r!==fe&&Lr(i,gn(),r),zi}function vu(e,n,t,i,r,o,a){const s=N(),c=Ts(s,e,n,t,i,r,o,a);return c!==fe&&Lr(s,gn(),c),vu}function Lr(e,n,t){const i=Ja(n,e);O_(e[11],i,t)}function ae(e,n,t){sk(n)&&(n=n());const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!1),ae}function he(e,n){const t=sk(e);return t&&e.set(n),t}function se(e,n){const t=N(),i=ie(),r=we();return Of(i,t,t[11],r,e,n),se}function Lf(e,n,t,i,r){if(e=ce(e),Array.isArray(e))for(let o=0;o<e.length;o++)Lf(e[o],n,t,i,r);else{const o=ie(),a=N(),s=we();let c=Vo(e)?e:ce(e.provide);const l=Jm(e),d=1048575&s.providerIndexes,h=s.directiveStart,g=s.providerIndexes>>20;if(Vo(e)||!e.multi){const f=new Tc(l,r,R),k=Hf(c,n,r?d:d+g,h);-1===k?(l0(u1(s,a),o,c),Vf(o,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(f),a.push(f)):(t[k]=f,a[k]=f)}else{const f=Hf(c,n,d+g,h),k=Hf(c,n,d,d+g),E=k>=0&&t[k];if(r&&!E||!r&&!(f>=0&&t[f])){l0(u1(s,a),o,c);const T=function YO(e,n,t,i,r){const o=new Tc(e,t,R);return o.multi=[],o.index=n,o.componentProviders=0,x3(o,r,i&&!t),o}(r?KO:ZO,t.length,r,i,l);!r&&E&&(t[k].providerFactory=T),Vf(o,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(T),a.push(T)}else Vf(o,e,f>-1?f:k,x3(t[r?k:f],l,!r&&i));!r&&i&&E&&t[k].componentProviders++}}}function Vf(e,n,t,i){const r=Vo(n),o=function BD(e){return!!e.useClass}(n);if(r||o){const c=(o?ce(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 x3(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Hf(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function ZO(e,n,t,i){return jf(this.multi,[])}function KO(e,n,t,i){const r=this.multi;let o;if(this.providerFactory){const a=this.providerFactory.componentProviders,s=Rc(t,t[1],this.providerFactory.index,i);o=s.slice(0,a),jf(r,o);for(let c=a;c<s.length;c++)o.push(s[c])}else o=[],jf(r,o);return o}function jf(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Xe(e,n=[]){return t=>{t.providersResolver=(i,r)=>function WO(e,n,t){const i=ie();if(i.firstCreatePass){const r=ai(e);Lf(t,i.data,i.blueprint,r,!0),Lf(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}function go(e,n,t,i){return E3(N(),In(),e,n,t,i)}function Tl(e,n,t,i,r){return function I3(e,n,t,i,r,o,a){const s=n+t;return oa(e,s,r,o)?hr(e,s+2,a?i.call(a,r,o):i(r,o)):Al(e,s+2)}(N(),In(),e,n,t,i,r)}function Al(e,n){const t=e[n];return t===fe?void 0:t}function E3(e,n,t,i,r,o){const a=n+t;return At(e,a,r)?hr(e,a+1,o?i.call(o,r):i(r)):Al(e,a+1)}function zf(e,n){const t=ie();let i;const r=e+K;t.firstCreatePass?(i=function sF(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=Fo(i.type)),s=Hn(R);try{const c=d1(!1),l=o();return d1(c),function Pf(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,N(),r,l),l}finally{Hn(s)}}function qf(e,n,t){const i=e+K,r=N(),o=Go(r,i);return function Nl(e,n){return e[1].data[n].pure}(r,i)?E3(r,In(),n,o.transform,t,o):o.transform(t)}function ln(e,n){return W1(e,n)}class VF{ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let HF=(()=>{class e{compileModuleSync(t){return new tf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=lr(ii(t).declarations).reduce((a,s)=>{const c=xe(s);return c&&a.push(new gl(c)),a},[]);return new VF(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zF=(()=>{class e{zone=w(ge);changeDetectionScheduler=w(Rr);applicationRef=w(An);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zf({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new ge({...Kf(),scheduleInRootZone:t}),[{provide:ge,useFactory:e},{provide:_i,multi:!0,useFactory:()=>{const i=w(zF,{optional:!0});return()=>i.initialize()}},{provide:_i,multi:!0,useFactory:()=>{const i=w(UF);return()=>{i.initialize()}}},!0===n?{provide:Qv,useValue:!0}:[],{provide:h0,useValue:t??Kv}]}function Kf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let UF=(()=>{class e{subscription=new on;initialized=!1;zone=w(ge);pendingTasks=w(eo);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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ol=(()=>{class e{appRef=w(An);taskService=w(eo);ngZone=w(ge);zonelessEnabled=w(Oc);tracing=w(rs,{optional:!0});disableScheduling=w(Qv,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new on;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(g1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(h0,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 y0||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;let i=!1;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 6:case 13:this.appRef.dirtyFlags|=2,i=!0;break;case 12:this.appRef.dirtyFlags|=16,i=!0;break;case 11:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?Xv:Jv;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(g1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Xv(()=>{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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Vr=new z("",{providedIn:"root",factory:()=>w(Vr,De.Optional|De.SkipSelf)||function GF(){return typeof $localize<"u"&&$localize.locale||fu}()}),wu=new z(""),QF=new z("");function Fl(e){return!e.moduleRef}let yo=null;let Zn=(()=>class e{static __NG_ELEMENT_ID__=iP})();function iP(e){return function rP(e,n,t){if(Fi(e)&&!t){const i=En(e.index,n);return new ol(i,i)}return 175&e.type?new ol(n[15],n):null}(we(),N(),!(16&~e))}class lb{constructor(){}supports(n){return ru(n)}create(n){return new lP(n)}}const cP=(e,n)=>n;class lP{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||cP}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<ub(i,r,o)?t:i,s=ub(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 g=0;g<l;g++){const f=g<o.length?o[g]:o[g]=0,k=f+g;d<=k&&k<l&&(o[g]=f+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=[]),!ru(n))throw new P(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 uA(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 dP(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 db),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 db),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 dP{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}}class uP{_head=null;_tail=null;add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let 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 db{map=new Map;put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new uP,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 ub(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 pb(){return new tg([new lb])}let tg=(()=>{class e{factories;static \u0275prov=H({token:e,providedIn:"root",factory:pb});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||pb()),deps:[[e,new Cp,new Gd]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new P(901,!1)}}return e})(),yP=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(oe(An))};static \u0275mod=Ye({type:e});static \u0275inj=Ue({})}return e})();function mP(e){try{const{rootComponent:n,appProviders:t,platformProviders:i}=e,r=function nP(e=[]){if(yo)return yo;const n=function ib(e=[],n){return je.create({name:n,providers:[{provide:Tp,useValue:"platform"},{provide:wu,useValue:new Set([()=>yo=null])},...e]})}(e);return yo=n,function BM(){!function Vt(e){Id=e}(()=>{throw new P(600,!1)})}(),function rb(e){const n=e.get(w0,null);Ri(e,()=>{n?.forEach(t=>t())})}(n),n}(i),o=[Zf({}),{provide:Rr,useExisting:Ol},...t||[]];return function eb(e){const n=Fl(e)?e.r3Injector:e.moduleRef.injector,t=n.get(ge);return t.run(()=>{Fl(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(Li,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),Fl(e)){const o=()=>n.destroy(),a=e.platformInjector.get(wu);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{const o=()=>e.moduleRef.destroy(),a=e.platformInjector.get(wu);a.add(o),e.moduleRef.onDestroy(()=>{du(e.allPlatformModules,e.moduleRef),r.unsubscribe(),a.delete(o)})}return function XF(e,n,t){try{const i=t();return _l(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(jM);return o.runInitializers(),o.donePromise.then(()=>{if(function UR(e){"string"==typeof e&&(E5=e.toLowerCase().replace(/_/g,"-"))}(n.get(Vr,fu)||fu),!n.get(QF,!0))return Fl(e)?n.get(An):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Fl(e)){const c=n.get(An);return void 0!==e.rootComponent&&c.bootstrap(e.rootComponent),c}return function JF(e,n){const t=e.injector.get(An);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new P(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new fM({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}function zs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Bt(e){return function ap(e){const n=S(null);try{return e()}finally{S(n)}}(e)}function Hr(e,n){return function ep(e,n){const t=Object.create(tp);t.computation=e,void 0!==n&&(t.equal=n);const i=()=>{if(Fe(t),ee(t),t.value===er)throw t.error;return t.value};return i[Me]=t,i}(e,n?.equal)}function og(e,n){const t=xe(e),i=n.elementInjector||Qd();return new gl(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}const Pt=new z("");let Ob=null;function mo(){return Ob}class sL{}let ag=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(lL),providedIn:"platform"})}return e})();const cL=new z("");let lL=(()=>{class e extends ag{_location;_history;_doc=w(Pt);constructor(){super(),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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function sg(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function Fb(e){const n=e.search(/#|\?|$/);return"/"===e[n-1]?e.slice(0,n-1)+e.slice(n):e}function jr(e){return e&&"?"!==e[0]?`?${e}`:e}let vo=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(Lb),providedIn:"root"})}return e})();const Pb=new z("");let Lb=(()=>{class e extends vo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(Pt).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 sg(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+jr(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+jr(o));this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+jr(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 \u0275fac=function(i){return new(i||e)(oe(ag),oe(Pb,8))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ll=(()=>{class e{_subject=new ze;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function hL(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Fb(Vb(i))),this._locationStrategy.onPopState(r=>{this._subject.next({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+jr(i))}normalize(t){return e.stripTrailingSlash(function uL(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Vb(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+jr(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+jr(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??void 0,complete:r??void 0})}static normalizeQueryParams=jr;static joinWithSlash=sg;static stripTrailingSlash=Fb;static \u0275fac=function(i){return new(i||e)(oe(vo))};static \u0275prov=H({token:e,factory:()=>function dL(){return new Ll(oe(vo))}(),providedIn:"root"})}return e})();function Vb(e){return e.replace(/\/index.html$/,"")}function ko(e){return this instanceof ko?(this.v=e,this):new ko(e)}function zb(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 ug(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 pg=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function qb(e){return ye(e?.then)}function Ub(e){return ye(e[up])}function Gb(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function $b(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 Wb=function jL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Zb(e){return ye(e?.[Wb])}function Kb(e){return function Bb(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function a(f){return function(k){return Promise.resolve(k).then(f,h)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(f,k){i[f]&&(r[f]=function(C){return new Promise(function(E,T){o.push([f,C,E,T])>1||c(f,C)})},k&&(r[f]=k(r[f])))}function c(f,k){try{!function l(f){f.value instanceof ko?Promise.resolve(f.value.v).then(d,h):g(o[0][2],f)}(i[f](k))}catch(C){g(o[0][3],C)}}function d(f){c("next",f)}function h(f){c("throw",f)}function g(f,k){f(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 ko(t.read());if(r)return yield ko(void 0);yield yield ko(i)}}finally{t.releaseLock()}})}function Yb(e){return ye(e?.getReader)}function yn(e){if(e instanceof dt)return e;if(null!=e){if(Ub(e))return function BL(e){return new dt(n=>{const t=e[up]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(pg(e))return function zL(e){return new dt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(qb(e))return function qL(e){return new dt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,A)})}(e);if(Gb(e))return Qb(e);if(Zb(e))return function UL(e){return new dt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Yb(e))return function GL(e){return Qb(Kb(e))}(e)}throw $b(e)}function Qb(e){return new dt(n=>{(function $L(e,n){var t,i,r,o;return function Hb(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=zb(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 Br(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 Jb(e,n=0){return Ht((t,i)=>{t.subscribe(ut(i,r=>Br(i,e,()=>i.next(r),n),()=>Br(i,e,()=>i.complete(),n),r=>Br(i,e,()=>i.error(r),n)))})}function Xb(e,n=0){return Ht((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function ew(e,n){if(!e)throw new Error("Iterable cannot be null");return new dt(t=>{Br(t,n,()=>{const i=e[Symbol.asyncIterator]();Br(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Xt(e,n){return n?function JL(e,n){if(null!=e){if(Ub(e))return function WL(e,n){return yn(e).pipe(Xb(n),Jb(n))}(e,n);if(pg(e))return function KL(e,n){return new dt(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(qb(e))return function ZL(e,n){return yn(e).pipe(Xb(n),Jb(n))}(e,n);if(Gb(e))return ew(e,n);if(Zb(e))return function YL(e,n){return new dt(t=>{let i;return Br(t,n,()=>{i=e[Wb](),Br(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)}),()=>ye(i?.return)&&i.return()})}(e,n);if(Yb(e))return function QL(e,n){return ew(Kb(e),n)}(e,n)}throw $b(e)}(e,n):yn(e)}function tw(e){return e&&ye(e.schedule)}function fg(e){return e[e.length-1]}function Au(e){return ye(fg(e))?e.pop():void 0}function Vl(e){return tw(fg(e))?e.pop():void 0}function ne(...e){return Xt(e,Vl(e))}const{isArray:eV}=Array,{getPrototypeOf:tV,prototype:nV,keys:iV}=Object;function nw(e){if(1===e.length){const n=e[0];if(eV(n))return{args:n,keys:null};if(function rV(e){return e&&"object"==typeof e&&tV(e)===nV}(n)){const t=iV(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:oV}=Array;function gg(e){return Ie(n=>function aV(e,n){return oV(n)?e(...n):e(n)}(e,n))}function iw(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function yg(...e){const n=Vl(e),t=Au(e),{args:i,keys:r}=nw(e);if(0===i.length)return Xt([],n);const o=new dt(function sV(e,n,t=Cr){return i=>{rw(n,()=>{const{length:r}=e,o=new Array(r);let a=r,s=r;for(let c=0;c<r;c++)rw(n,()=>{const l=Xt(e[c],n);let d=!1;l.subscribe(ut(i,h=>{o[c]=h,d||(d=!0,s--),s||i.next(t(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>iw(r,a):Cr));return t?o.pipe(gg(t)):o}function rw(e,n,t){e?Br(t,e,n):n()}const Nu=No(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function en(e,n,t=1/0){return ye(n)?en((i,r)=>Ie((o,a)=>n(i,o,r,a))(yn(e(i,r))),t):("number"==typeof n&&(t=n),Ht((i,r)=>function cV(e,n,t,i,r,o,a,s){const c=[];let l=0,d=0,h=!1;const g=()=>{h&&!c.length&&!l&&n.complete()},f=C=>l<i?k(C):c.push(C),k=C=>{o&&n.next(C),l++;let E=!1;yn(t(C,d++)).subscribe(ut(n,T=>{r?.(T),o?f(T):n.next(T)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l<i;){const T=c.shift();a?Br(n,a,()=>k(T)):k(T)}g()}catch(T){n.error(T)}}))};return e.subscribe(ut(n,f,()=>{h=!0,g()})),()=>{s?.()}}(i,r,e,t)))}function qs(e=1/0){return en(Cr,e)}function Hl(...e){return function lV(){return qs(1)}()(Xt(e,Vl(e)))}function ow(e){return new dt(n=>{yn(e()).subscribe(n)})}function Ru(e,n){const t=ye(e)?e:()=>e,i=r=>r.error(t());return new dt(n?r=>n.schedule(i,0,r):i)}const Kn=new dt(e=>e.complete());function mg(){return Ht((e,n)=>{let t=null;e._refCount++;const i=ut(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 aw extends dt{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Sm(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 on;const t=this.getSubject();n.add(this.source.subscribe(ut(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=on.EMPTY)}return n}refCount(){return mg()(this)}}function qi(e,n){return Ht((t,i)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&i.complete();t.subscribe(ut(i,c=>{r?.unsubscribe();let l=0;const d=o++;yn(e(c,d)).subscribe(r=ut(i,h=>i.next(n?n(c,h,d,l++):h),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Di(e){return e<=0?()=>Kn:Ht((n,t)=>{let i=0;n.subscribe(ut(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function dn(e,n){return Ht((t,i)=>{let r=0;t.subscribe(ut(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Ou(e){return Ht((n,t)=>{let i=!1;n.subscribe(ut(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function cw(e=uV){return Ht((n,t)=>{let i=!1;n.subscribe(ut(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function uV(){return new Nu}function ua(e,n){const t=arguments.length>=2;return i=>i.pipe(e?dn((r,o)=>e(r,o,i)):Cr,Di(1),t?Ou(n):cw(()=>new Nu))}function jl(e,n){return ye(n)?en(e,n,1):en(e,1)}function un(e,n,t){const i=ye(e)||n||t?{next:e,error:n,complete:t}:e;return i?Ht((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;r.subscribe(ut(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)}))}):Cr}function Us(e){return Ht((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ut(t,void 0,void 0,a=>{o=yn(e(a,Us(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function vg(e){return e<=0?()=>Kn:Ht((n,t)=>{let i=[];n.subscribe(ut(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 kg(e){return Ht((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function mn(e){return Ht((n,t)=>{yn(e).subscribe(ut(t,()=>t.complete(),O)),!t.closed&&n.subscribe(t)})}let gV=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ke="primary",zl=Symbol("RouteTitle");class kV{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Gs(e){return new kV(e)}function _V(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 mr(e,n){const t=e?_g(e):void 0,i=n?_g(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],!uw(e[r],n[r]))return!1;return!0}function _g(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function uw(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 hw(e){return e.length>0?e[e.length-1]:null}function Mo(e){return function pL(e){return!!e&&(e instanceof dt||ye(e.lift)&&ye(e.subscribe))}(e)?e:_l(e)?Xt(Promise.resolve(e)):ne(e)}const bV={exact:function gw(e,n,t){if(!pa(e.segments,n.segments)||!Fu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!gw(e.children[i],n.children[i],t))return!1;return!0},subset:yw},pw={exact:function wV(e,n){return mr(e,n)},subset:function CV(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>uw(e[t],n[t]))},ignored:()=>!0};function fw(e,n,t){return bV[t.paths](e.root,n.root,t.matrixParams)&&pw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function yw(e,n,t){return mw(e,n,n.segments,t)}function mw(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!pa(r,t)||n.hasChildren()||!Fu(r,t,i))}if(e.segments.length===t.length){if(!pa(e.segments,t)||!Fu(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!yw(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!!(pa(e.segments,r)&&Fu(e.segments,r,i)&&e.children[ke])&&mw(e.children[ke],n,o,i)}}function Fu(e,n,t){return n.every((i,r)=>pw[t](e[r].parameters,i.parameters))}class ha{root;queryParams;fragment;_queryParamMap;constructor(n=new Qe([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Gs(this.queryParams),this._queryParamMap}toString(){return SV.serialize(this)}}class Qe{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lu(this)}}class ql{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Gs(this.parameters),this._parameterMap}toString(){return _w(this)}}function pa(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Ul=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>new Pu,providedIn:"root"})}return e})();class Pu{parse(n){const t=new VV(n);return new ha(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Gl(n.root,!0)}`,i=function TV(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Vu(t)}=${Vu(r)}`).join("&"):`${Vu(t)}=${Vu(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function EV(e){return encodeURI(e)}(n.fragment)}`:""}`}}const SV=new Pu;function Lu(e){return e.segments.map(n=>_w(n)).join("/")}function Gl(e,n){if(!e.hasChildren())return Lu(e);if(n){const t=e.children[ke]?Gl(e.children[ke],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==ke&&i.push(`${r}:${Gl(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function xV(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?[Gl(e.children[ke],!1)]:[`${r}:${Gl(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ke]?`${Lu(e)}/${t[0]}`:`${Lu(e)}/(${t.join("//")})`}}function vw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vu(e){return vw(e).replace(/%3B/gi,";")}function Mg(e){return vw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hu(e){return decodeURIComponent(e)}function kw(e){return Hu(e.replace(/\+/g,"%20"))}function _w(e){return`${Mg(e.path)}${function IV(e){return Object.entries(e).map(([n,t])=>`;${Mg(n)}=${Mg(t)}`).join("")}(e.parameters)}`}const AV=/^[^\/()?;#]+/;function bg(e){const n=e.match(AV);return n?n[0]:""}const NV=/^[^\/()?;=#]+/,OV=/^[^=?&#]+/,PV=/^[^&#]+/;class VV{url;remaining;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=bg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(n),new ql(Hu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function RV(e){const n=e.match(NV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=bg(this.remaining);r&&(i=r,this.capture(i))}n[Hu(t)]=Hu(i)}parseQueryParam(n){const t=function FV(e){const n=e.match(OV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const a=function LV(e){const n=e.match(PV);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const r=kw(t),o=kw(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=bg(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(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 P(4011,!1)}}function Mw(e){return e.segments.length>0?new Qe([],{[ke]:e}):e}function bw(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=bw(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 HV(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 fa(e){return e instanceof ha}function ww(e){let n;const r=Mw(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 Cw(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return wg(r,r,r,t,i);const o=function BV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new xw(!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 xw(t,n,i)}(n);if(o.toRoot())return wg(r,r,new Qe([],{}),t,i);const a=function zV(e,n,t){if(e.isAbsolute)return new Bu(n,!0,0);if(!t)return new Bu(n,!1,NaN);if(null===t.parent)return new Bu(t,!0,0);const i=ju(e.commands[0])?0:1;return function qV(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new Bu(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),s=a.processChildren?Wl(a.segmentGroup,a.index,o.commands):Sw(a.segmentGroup,a.index,o.commands);return wg(r,a.segmentGroup,s,t,i)}function ju(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function $l(e){return"object"==typeof e&&null!=e&&e.outlets}function wg(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:Dw(e,n,t);const s=Mw(bw(a));return new ha(s,o,r)}function Dw(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:Dw(o,n,t)}),new Qe(e.segments,i)}class xw{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&ju(i[0]))throw new P(4003,!1);const r=i.find($l);if(r&&r!==hw(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bu{segmentGroup;processChildren;index;constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function Sw(e,n,t){if(e??=new Qe([],{}),0===e.segments.length&&e.hasChildren())return Wl(e,n,t);const i=function GV(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($l(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(!Iw(c,l,a))return o;i+=2}else{if(!Iw(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),Wl(o,0,r)}return i.match&&0===r.length?new Qe(e.segments,{}):i.match&&!e.hasChildren()?Cg(e,n,t):i.match?Wl(e,0,r):Cg(e,n,t)}function Wl(e,n,t){if(0===t.length)return new Qe(e.segments,{});{const i=function UV(e){return $l(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=Wl(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]=Sw(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 Cg(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const o=t[r];if($l(o)){const c=$V(o.outlets);return new Qe(i,c)}if(0===r&&ju(t[0])){i.push(new ql(e.segments[n].path,Ew(t[0]))),r++;continue}const a=$l(o)?o.outlets[ke]:`${o}`,s=r<t.length-1?t[r+1]:null;a&&s&&ju(s)?(i.push(new ql(a,Ew(s))),r+=2):(i.push(new ql(a,{})),r++)}return new Qe(i,{})}function $V(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=Cg(new Qe([],{}),0,i))}),n}function Ew(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function Iw(e,n,t){return e==t.path&&mr(n,t.parameters)}const zu="imperative";var Te=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}(Te||{});class vr{id;url;constructor(n,t){this.id=n,this.url=t}}class Zl extends vr{type=Te.NavigationStart;navigationTrigger;restoredState;constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends vr{urlAfterRedirects;type=Te.NavigationEnd;constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ui=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ui||{}),qu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(qu||{});class ga extends vr{reason;code;type=Te.NavigationCancel;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $s extends vr{reason;code;type=Te.NavigationSkipped;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}}class Dg extends vr{error;target;type=Te.NavigationError;constructor(n,t,i,r){super(n,t),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Tw extends vr{urlAfterRedirects;state;type=Te.RoutesRecognized;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WV extends vr{urlAfterRedirects;state;type=Te.GuardsCheckStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZV extends vr{urlAfterRedirects;state;shouldActivate;type=Te.GuardsCheckEnd;constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class KV extends vr{urlAfterRedirects;state;type=Te.ResolveStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YV extends vr{urlAfterRedirects;state;type=Te.ResolveEnd;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QV{route;type=Te.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class JV{route;type=Te.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class XV{snapshot;type=Te.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eH{snapshot;type=Te.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tH{snapshot;type=Te.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nH{snapshot;type=Te.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Aw{routerEvent;position;anchor;type=Te.Scroll;constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class xg{}class Uu{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Ui(e){return e.outlet||ke}function Kl(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 cH{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Kl(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Yl(this.rootInjector)}}let Yl=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}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 cH(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(i){return new(i||e)(oe(bn))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Nw{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Sg(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Sg(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Eg(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Eg(n,this._root).map(t=>t.value)}}function Sg(e,n){if(e===n.value)return n;for(const t of n.children){const i=Sg(e,t);if(i)return i}return null}function Eg(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Eg(e,t);if(i.length)return i.unshift(n),i}return[]}class Gi{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ws(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class Rw extends Nw{snapshot;constructor(n,t){super(n),this.snapshot=t,Ig(this,n)}toString(){return this.snapshot.toString()}}function Ow(e){const n=function lH(e){const o=new $u([],{},{},"",{},ke,e,null,{});return new Fw("",new Gi(o,[]))}(e),t=new ei([new ql("",{})]),i=new ei({}),r=new ei({}),o=new ei({}),a=new ei(""),s=new ya(t,i,o,a,r,ke,e,n.root);return s.snapshot=n.root,new Rw(new Gi(s,[]),n)}class ya{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;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(Ie(l=>l[zl]))??ne(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(Ie(n=>Gs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ie(n=>Gs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gu(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&&Lw(r)&&(i.resolve[zl]=r.title),i}class $u{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[zl]}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??=Gs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fw extends Nw{url;constructor(n,t){super(t),this.url=n,Ig(this,t)}toString(){return Pw(this._root)}}function Ig(e,n){n.value._routerState=e,n.children.forEach(t=>Ig(e,t))}function Pw(e){const n=e.children.length>0?` { ${e.children.map(Pw).join(", ")} } `:"";return`${e.value}${n}`}function Tg(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,mr(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),mr(n.params,t.params)||e.paramsSubject.next(t.params),function MV(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!mr(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),mr(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ag(e,n){const t=mr(e.params,n.params)&&function DV(e,n){return pa(e,n)&&e.every((t,i)=>mr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Ag(e.parent,n.parent))}function Lw(e){return"string"==typeof e.title||null===e.title}const dH=new z("");let Ng=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=ke;activateEvents=new Q;deactivateEvents=new Q;attachEvents=new Q;detachEvents=new Q;routerOutletData=dS(void 0);parentContexts=w(Yl);location=w(Gn);changeDetector=w(Zn);inputBinder=w(Wu,{optional:!0});supportsBindingToComponentInputs=!0;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 P(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(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 P(4013,!1);this._activatedRoute=t;const r=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new uH(t,s,r.injector,this.routerOutletData);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 \u0275fac=function(i){return new(i||e)};static \u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[sn]})}return e})();class uH{route;childContexts;parent;outletData;constructor(n,t,i,r){this.route=n,this.childContexts=t,this.parent=i,this.outletData=r}get(n,t){return n===ya?this.route:n===Yl?this.childContexts:n===dH?this.outletData:this.parent.get(n,t)}}const Wu=new z("");let Vw=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=yg([i.queryParams,i.params,i.data]).pipe(qi(([o,a,s],c)=>(s={...o,...a,...s},0===c?ne(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 oL(e){const n=xe(e);if(!n)return null;const t=new gl(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();function Ql(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function pH(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Ql(e,i,r);return Ql(e,i)})}(e,n,t);return new Gi(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=>Ql(e,s)),a}}const i=function fH(e){return new ya(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=>Ql(e,o));return new Gi(i,r)}}class Rg{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const Hw="ngNavigationCancelingError";function Zu(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=fa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=jw(!1,ui.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function jw(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[Hw]=!0,t.cancellationCode=n,t}function Bw(e){return!!e&&e[Hw]}class mH{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;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),Tg(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Ws(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=Ws(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=Ws(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=Ws(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new nH(o.value.snapshot))}),n.children.length&&this.forwardEvent(new eH(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Tg(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),Tg(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 zw{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ku{component;route;constructor(n,t){this.component=n,this.route=t}}function vH(e,n,t){const i=e._root;return Jl(i,n?n._root:null,t,[i.value])}function Zs(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function bD(e){return null!==Vd(e)}(e)?n.get(e):e:i}function Jl(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ws(n);return e.children.forEach(a=>{(function _H(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 MH(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!pa(e.url,n.url);case"pathParamsOrQueryParamsChange":return!pa(e.url,n.url)||!mr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ag(e,n)||!mr(e.queryParams,n.queryParams);default:return!Ag(e,n)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new zw(i)):(o.data=a.data,o._resolvedData=a._resolvedData),Jl(e,n,o.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Ku(s.outlet.component,a))}else a&&Xl(n,s,r),r.canActivateChecks.push(new zw(i)),Jl(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])=>Xl(s,t.getContext(a),r)),r}function Xl(e,n,t){const i=Ws(e),r=e.value;Object.entries(i).forEach(([o,a])=>{Xl(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new Ku(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ed(e){return"function"==typeof e}function qw(e){return e instanceof Nu||"EmptyError"===e?.name}const Yu=Symbol("INITIAL_VALUE");function Ks(){return qi(e=>yg(e.map(n=>n.pipe(Di(1),function sw(...e){const n=Vl(e);return Ht((t,i)=>{(n?Hl(e,t,n):Hl(e,t)).subscribe(i)})}(Yu)))).pipe(Ie(n=>{for(const t of n)if(!0!==t){if(t===Yu)return Yu;if(!1===t||EH(t))return t}return!0}),dn(n=>n!==Yu),Di(1)))}function EH(e){return fa(e)||e instanceof Rg}function Uw(e){return function uD(...e){return Cm(e)}(un(n=>{if("boolean"!=typeof n)throw Zu(0,n)}),Ie(n=>!0===n))}class Og{segmentGroup;constructor(n){this.segmentGroup=n||null}}class Fg extends Error{urlTree;constructor(n){super(),this.urlTree=n}}function Ys(e){return Ru(new Og(e))}class BH{urlSerializer;urlTree;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 ne(i);if(r.numberOfChildren>1||!r.children[ke])return Ru(new P(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:g,params:f,data:k,title:C}=r,E=Ri(o,()=>s({params:f,data:k,queryParams:c,fragment:l,routeConfig:d,url:h,outlet:g,title:C}));if(E instanceof ha)throw new Fg(E);t=E}const a=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new Fg(a);return a}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new ha(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 P(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 Pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zH(e,n,t,i,r){const o=Gw(e,n,t);return o.matched?(i=function iH(e,n){return e.providers&&!e._injector&&(e._injector=nu(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function VH(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?ne(r.map(a=>{const s=Zs(a,e);return Mo(function SH(e){return e&&ed(e.canMatch)}(s)?s.canMatch(n,t):Ri(e,()=>s(n,t)))})).pipe(Ks(),Uw()):ne(!0)}(i,n,t).pipe(Ie(a=>!0===a?o:{...Pg}))):ne(o)}function Gw(e,n,t){if("**"===n.path)return function qH(e){return{matched:!0,parameters:e.length>0?hw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Pg}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||_V)(t,e,n);if(!r)return{...Pg};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 $w(e,n,t,i){return t.length>0&&function $H(e,n,t){return t.some(i=>Qu(e,n,i)&&Ui(i)!==ke)}(e,t,i)?{segmentGroup:new Qe(n,GH(i,new Qe(t,e.children))),slicedSegments:[]}:0===t.length&&function WH(e,n,t){return t.some(i=>Qu(e,n,i))}(e,t,i)?{segmentGroup:new Qe(e.segments,UH(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new Qe(e.segments,e.children),slicedSegments:t}}function UH(e,n,t,i){const r={};for(const o of t)if(Qu(e,n,o)&&!i[Ui(o)]){const a=new Qe([],{});r[Ui(o)]=a}return{...i,...r}}function GH(e,n){const t={};t[ke]=n;for(const i of e)if(""===i.path&&Ui(i)!==ke){const r=new Qe([],{});t[Ui(i)]=r}return t}function Qu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class KH{}class JH{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;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 BH(this.urlSerializer,this.urlTree)}noMatchError(n){return new P(4002,`'${n.segmentGroup}'`)}recognize(){const n=$w(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Ie(({children:t,rootSnapshot:i})=>{const r=new Gi(i,t),o=new Fw("",r),a=function jV(e,n,t=null,i=null){return Cw(ww(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 $u([],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(Ie(i=>({children:i,rootSnapshot:t})),Us(i=>{if(i instanceof Fg)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Og?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(Ie(a=>a instanceof Gi?[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 Xt(o).pipe(jl(a=>{const s=i.children[a],c=function sH(e,n){const t=e.filter(i=>Ui(i)===n);return t.push(...e.filter(i=>Ui(i)!==n)),t}(t,a);return this.processSegmentGroup(n,c,s,a,r)}),function pV(e,n){return Ht(function hV(e,n,t,i,r){return(o,a)=>{let s=t,c=n,l=0;o.subscribe(ut(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)),Ou(null),function fV(e,n){const t=arguments.length>=2;return i=>i.pipe(e?dn((r,o)=>e(r,o,i)):Cr,vg(1),t?Ou(n):cw(()=>new Nu))}(),en(a=>{if(null===a)return Ys(i);const s=Ww(a);return function XH(e){e.sort((n,t)=>n.value.outlet===ke?-1:t.value.outlet===ke?1:n.value.outlet.localeCompare(t.value.outlet))}(s),ne(s)}))}processSegment(n,t,i,r,o,a,s){return Xt(t).pipe(jl(c=>this.processSegmentAgainstRoute(c._injector??n,t,c,i,r,o,a,s).pipe(Us(l=>{if(l instanceof Og)return ne(null);throw l}))),ua(c=>!!c),Us(c=>{if(qw(c))return function ZH(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?ne(new KH):Ys(i);throw c}))}processSegmentAgainstRoute(n,t,i,r,o,a,s,c){return Ui(i)===a||a!==ke&&Qu(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):Ys(r):Ys(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,a,s){const{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:h,remainingSegments:g}=Gw(t,r,o);if(!c)return Ys(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=new $u(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zw(r),Ui(r),r.component??r._loadedComponent??null,r,Kw(r)),k=Gu(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(k.params),f.data=Object.freeze(k.data);const C=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,f,n);return this.applyRedirects.lineralizeSegments(r,C).pipe(en(E=>this.processSegment(n,i,t,E.concat(g),a,!1,s)))}matchSegmentAgainstRoute(n,t,i,r,o,a){const s=zH(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:g,remainingSegments:f}=c,k=new $u(g,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zw(i),Ui(i),i.component??i._loadedComponent??null,i,Kw(i)),C=Gu(k,a,this.paramsInheritanceStrategy);k.params=Object.freeze(C.params),k.data=Object.freeze(C.data);const{segmentGroup:E,slicedSegments:T}=$w(t,g,f,l);if(0===T.length&&E.hasChildren())return this.processChildren(d,l,E,k).pipe(Ie(q=>new Gi(k,q)));if(0===l.length&&0===T.length)return ne(new Gi(k,[]));const I=Ui(i)===o;return this.processSegment(d,l,E,T,I?ke:o,!0,k).pipe(Ie(q=>new Gi(k,q instanceof Gi?[q]:[])))})):Ys(t)))}getChildConfig(n,t,i){return t.children?ne({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ne({routes:t._loadedRoutes,injector:t._loadedInjector}):function LH(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?ne(!0):ne(r.map(a=>{const s=Zs(a,e);return Mo(function wH(e){return e&&ed(e.canLoad)}(s)?s.canLoad(n,t):Ri(e,()=>s(n,t)))})).pipe(Ks(),Uw())}(n,t,i).pipe(en(r=>r?this.configLoader.loadChildren(n,t).pipe(un(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function jH(){return Ru(jw(!1,ui.GuardRejected))}())):ne({routes:[],injector:n})}}function ej(e){const n=e.value.routeConfig;return n&&""===n.path}function Ww(e){const n=[],t=new Set;for(const i of e){if(!ej(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=Ww(i.children);n.push(new Gi(i.value,r))}return n.filter(i=>!t.has(i))}function Zw(e){return e.data||{}}function Kw(e){return e.resolve||{}}function Yw(e){const n=e.children.map(t=>Yw(t)).flat();return[e,...n]}function Lg(e){return qi(n=>{const t=e(n);return t?Xt(t).pipe(Ie(()=>n)):ne(n)})}let Qw=(()=>{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[zl]}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(aj),providedIn:"root"})}return e})(),aj=(()=>{class e extends Qw{title;constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||e)(oe(gV))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const td=new z("",{providedIn:"root",factory:()=>({})});let Jw=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){1&i&&B(0,"router-outlet")},dependencies:[Ng],encapsulation:2})}return e})();function Vg(e){const n=e.children&&e.children.map(Vg),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ke&&(t.component=Jw),t}const Ju=new z("");let Hg=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(HF);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ne(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Mo(t.loadComponent()).pipe(Ie(Xw),un(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),kg(()=>{this.componentLoaders.delete(t)})),r=new aw(i,()=>new ze).pipe(mg());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ne({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function sj(e,n,t,i){return Mo(e.loadChildren()).pipe(Ie(Xw),en(r=>r instanceof pM||Array.isArray(r)?ne(r):Xt(n.compileModuleAsync(r))),Ie(r=>{i&&i(e);let o,a,s=!1;return Array.isArray(r)?(a=r,!0):(o=r.create(t).injector,a=o.get(Ju,[],{optional:!0,self:!0}).flat()),{routes:a.map(Vg),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(kg(()=>{this.childrenLoaders.delete(i)})),a=new aw(o,()=>new ze).pipe(mg());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xw(e){return function cj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let jg=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(lj),providedIn:"root"})}return e})(),lj=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const e8=new z(""),t8=new z("");function dj(e,n,t){const i=e.get(t8),r=e.get(Pt);return e.get(ge).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 uj(e){return new Promise(n=>{no({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:c}=i;return c&&Ri(e,()=>c({transition:s,from:n,to:t})),a})}const n8=new z("");let Bg=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ze;transitionAbortSubject=new ze;configLoader=w(Hg);environmentInjector=w(bn);destroyRef=w(si);urlSerializer=w(Ul);rootContexts=w(Yl);location=w(Ll);inputBindingEnabled=null!==w(Wu,{optional:!0});titleStrategy=w(Qw);options=w(td,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(jg);createViewTransition=w(e8,{optional:!0});navigationErrorHandler=w(n8,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>ne(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=r=>this.events.next(new JV(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new QV(r)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...t,extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i})}setupNavigations(t){return this.transitions=new ei(null),this.transitions.pipe(dn(i=>null!==i),qi(i=>{let r=!1,o=!1;return ne(i).pipe(qi(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",ui.SupersededByNewNavigation),Kn;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:"string"==typeof a.extras.browserUrl?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const s=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!s&&"reload"!==(a.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const l="";return this.events.next(new $s(a.id,this.urlSerializer.serialize(a.rawUrl),l,qu.IgnoredSameUrlNavigation)),a.resolve(!1),Kn}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ne(a).pipe(qi(l=>(this.events.next(new Zl(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Kn:Promise.resolve(l))),function tj(e,n,t,i,r,o){return en(a=>function YH(e,n,t,i,r,o,a="emptyOnly"){return new JH(e,n,t,i,r,a,o).recognize()}(e,n,t,i,a.extractedUrl,r,o).pipe(Ie(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),un(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:l.urlAfterRedirects};const d=new Tw(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){const{id:l,extractedUrl:d,source:h,restoredState:g,extras:f}=a,k=new Zl(l,this.urlSerializer.serialize(d),h,g);this.events.next(k);const C=Ow(this.rootComponentType).snapshot;return this.currentTransition=i={...a,targetSnapshot:C,urlAfterRedirects:d,extras:{...f,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=d,ne(i)}{const l="";return this.events.next(new $s(a.id,this.urlSerializer.serialize(a.extractedUrl),l,qu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Kn}}),un(a=>{const s=new WV(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ie(a=>(this.currentTransition=i={...a,guards:vH(a.targetSnapshot,a.currentSnapshot,this.rootContexts)},i)),function IH(e,n){return en(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=t;return 0===a.length&&0===o.length?ne({...t,guardsResult:!0}):function TH(e,n,t,i){return Xt(e).pipe(en(r=>function PH(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?ne(o.map(s=>{const c=Kl(n)??r,l=Zs(s,c);return Mo(function xH(e){return e&&ed(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,i):Ri(c,()=>l(e,n,t,i))).pipe(ua())})).pipe(Ks()):ne(!0)}(r.component,r.route,t,n,i)),ua(r=>!0!==r,!0))}(a,i,r,e).pipe(en(s=>s&&function bH(e){return"boolean"==typeof e}(s)?function AH(e,n,t,i){return Xt(n).pipe(jl(r=>Hl(function RH(e,n){return null!==e&&n&&n(new XV(e)),ne(!0)}(r.route.parent,i),function NH(e,n){return null!==e&&n&&n(new tH(e)),ne(!0)}(r.route,i),function FH(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>function kH(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=>ow(()=>ne(a.guards.map(c=>{const l=Kl(a.node)??t,d=Zs(c,l);return Mo(function DH(e){return e&&ed(e.canActivateChild)}(d)?d.canActivateChild(i,e):Ri(l,()=>d(i,e))).pipe(ua())})).pipe(Ks())));return ne(o).pipe(Ks())}(e,r.path,t),function OH(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ne(!0);const r=i.map(o=>ow(()=>{const a=Kl(n)??t,s=Zs(o,a);return Mo(function CH(e){return e&&ed(e.canActivate)}(s)?s.canActivate(n,e):Ri(a,()=>s(n,e))).pipe(ua())}));return ne(r).pipe(Ks())}(e,r.route,t))),ua(r=>!0!==r,!0))}(i,o,e,n):ne(s)),Ie(s=>({...t,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),un(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&"boolean"!=typeof a.guardsResult)throw Zu(0,a.guardsResult);const s=new ZV(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),dn(a=>!!a.guardsResult||(this.cancelNavigationTransition(a,"",ui.GuardRejected),!1)),Lg(a=>{if(0!==a.guards.canActivateChecks.length)return ne(a).pipe(un(s=>{const c=new KV(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),qi(s=>{let c=!1;return ne(s).pipe(function nj(e,n){return en(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return ne(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 Yw(c))a.add(l);let s=0;return Xt(a).pipe(jl(c=>o.has(c)?function ij(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!Lw(r)&&(o[zl]=r.title),function rj(e,n,t,i){const r=_g(e);if(0===r.length)return ne({});const o={};return Xt(r).pipe(en(a=>function oj(e,n,t,i){const r=Kl(n)??i,o=Zs(e,r);return Mo(o.resolve?o.resolve(n,t):Ri(r,()=>o(n,t)))}(e[a],n,t,i).pipe(ua(),un(s=>{if(s instanceof Rg)throw Zu(new Pu,s);o[a]=s}))),vg(1),Ie(()=>o),Us(a=>qw(a)?Kn:Ru(a)))}(o,e,n,i).pipe(Ie(a=>(e._resolvedData=a,e.data=Gu(e,e.parent,t).resolve,null)))}(c,i,e,n):(c.data=Gu(c,c.parent,e).resolve,ne(void 0))),un(()=>s++),vg(1),en(c=>s===a.size?ne(t):Kn))})}(this.paramsInheritanceStrategy,this.environmentInjector),un({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(s,"",ui.NoDataFromResolver)}}))}),un(s=>{const c=new YV(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),Lg(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(un(d=>{c.component=d}),Ie(()=>{})));for(const d of c.children)l.push(...s(d));return l};return yg(s(a.targetSnapshot.root)).pipe(Ou(null),Di(1))}),Lg(()=>this.afterPreactivation()),qi(()=>{const{currentSnapshot:a,targetSnapshot:s}=i,c=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return c?Xt(c).pipe(Ie(()=>i)):ne(i)}),Ie(a=>{const s=function hH(e,n,t){const i=Ql(e,n._root,t?t._root:void 0);return new Rw(i,n)}(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i={...a,targetRouterState:s},this.currentNavigation.targetRouterState=s,i}),un(()=>{this.events.next(new xg)}),((e,n,t,i)=>Ie(r=>(new mH(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),Di(1),un({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),mn(this.transitionAbortSubject.pipe(un(a=>{throw a}))),kg(()=>{!r&&!o&&this.cancelNavigationTransition(i,"",ui.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Us(a=>{if(this.destroyed)return i.resolve(!1),Kn;if(o=!0,Bw(a))this.events.next(new ga(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),function gH(e){return Bw(e)&&fa(e.url)}(a)?this.events.next(new Uu(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{const s=new Dg(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{const c=Ri(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(!(c instanceof Rg))throw this.events.next(s),a;{const{message:l,cancellationCode:d}=Zu(0,c);this.events.next(new ga(i.id,this.urlSerializer.serialize(i.extractedUrl),l,d)),this.events.next(new Uu(c.redirectTo,c.navigationBehaviorOptions))}}catch(c){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(c)}}return Kn}))}))}cancelNavigationTransition(t,i,r){const o=new ga(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hj(e){return e!==zu}let pj=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(gj),providedIn:"root"})}return e})();class fj{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let gj=(()=>{class e extends fj{static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),i8=(()=>{class e{urlSerializer=w(Ul);options=w(td,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=w(Ll);urlHandlingStrategy=w(jg);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ha;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:i,targetBrowserUrl:r}){const o=void 0!==t?this.urlHandlingStrategy.merge(t,i):i,a=r??o;return a instanceof ha?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:i,initialUrl:r}){i&&t?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=t):this.rawUrlTree=r}routerState=Ow(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:()=>w(yj),providedIn:"root"})}return e})(),yj=(()=>{class e extends i8{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&setTimeout(()=>{t(i.url,i.state,"popstate")})})}handleRouterEvent(t,i){t instanceof Zl?this.updateStateMemento():t instanceof $s?this.commitTransition(i):t instanceof Tw?"eager"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):t instanceof xg?(this.commitTransition(i),"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):t instanceof ga&&(t.code===ui.GuardRejected||t.code===ui.NoDataFromResolver)?this.restoreHistory(i):t instanceof Dg?this.restoreHistory(i,!0):t instanceof zr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:i,id:r}){const{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(t)||o){const s=this.browserPageId,c={...a,...this.generateNgRouterState(r,s)};this.location.replaceState(t,"",c)}else{const s={...a,...this.generateNgRouterState(r,this.browserPageId+1)};this.location.go(t,"",s)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&0===o&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function r8(e,n){e.events.pipe(dn(t=>t instanceof zr||t instanceof ga||t instanceof Dg||t instanceof $s),Ie(t=>t instanceof zr||t instanceof $s?0:t instanceof ga&&(t.code===ui.Redirect||t.code===ui.SupersededByNewNavigation)?2:1),dn(t=>2!==t),Di(1)).subscribe(()=>{n()})}const mj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xi=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(df);stateManager=w(i8);options=w(td,{optional:!0})||{};pendingTasks=w(eo);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Bg);urlSerializer=w(Ul);location=w(Ll);urlHandlingStrategy=w(jg);_events=new ze;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(pj);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(Ju,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Wu,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new on;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 ga&&i.code!==ui.Redirect&&i.code!==ui.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof zr)this.navigated=!0;else if(i instanceof Uu){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||hj(r.source),...a};this.scheduleNavigation(s,zu,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function _j(e){return!(e instanceof xg||e instanceof Uu)})(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),zu,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i,r)=>{this.navigateToSyncWithBrowser(t,r,i)})}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(Vg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),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=ww(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),h=this.currentUrlTree.root}return Cw(h,t,d,l??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=fa(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,zu,null,i)}navigate(t,i={skipLocationChange:!1}){return function kj(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new P(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?{...mj}:!1===i?{...vj}:i,fa(t))return fw(this.currentUrlTree,t,r);const o=this.parseUrl(t);return fw(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,g)=>{s=h,c=g});const d=this.pendingTasks.add();return r8(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mj=(()=>{class e{title="config-ui";logoSrc="assets/images/homebridge-eufy-security.png";static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-root"]],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),M(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:[Ng],encapsulation:2})}return e})(),bj=(()=>{class e{static \u0275prov=H({token:e,providedIn:"root",factory:()=>new wj(w(Pt),window)})}return e})();class wj{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function Cj(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])}}let g8=(()=>{class e extends vo{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,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=sg(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+jr(o))||this._platformLocation.pathname;this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+jr(o))||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 \u0275fac=function(i){return new(i||e)(oe(ag),oe(Pb,8))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();var nh=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(nh||{});function Si(e,n){const t=Nn(e),i=t[ot.NumberSymbols][n];if(typeof i>"u"){if(12===n)return t[ot.NumberSymbols][0];if(13===n)return t[ot.NumberSymbols][1]}return i}const wB=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Jg(e){const n=parseInt(e);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+e);return n}class PB{$implicit;ngForOf;index;count;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 ph=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r}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 PB(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),S8(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=>{S8(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(R(Gn),R(Ft),R(tg))};static \u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function S8(e,n){e.context.$implicit=n.item}let Fn=(()=>{class e{_viewContainer;_context=new LB;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,i){this._viewContainer=t,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){E8(t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){E8(t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(R(Gn),R(Ft))};static \u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})();class LB{$implicit=null;ngIf=null}function E8(e,n){if(e&&!e.createEmbeddedView)throw new P(2020,!1)}class ty{_viewContainerRef;_templateRef;_created=!1;constructor(n,t){this._viewContainerRef=n,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let ad=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const 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 \u0275fac=function(i){return new(i||e)};static \u0275dir=$({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),ny=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new ty(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(i){return new(i||e)(R(Gn),R(Ft),R(ad,9))};static \u0275dir=$({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),I8=(()=>{class e{constructor(t,i,r){r._addDefault(new ty(t,i))}static \u0275fac=function(i){return new(i||e)(R(Gn),R(Ft),R(ad,9))};static \u0275dir=$({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})(),Js=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}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 \u0275fac=function(i){return new(i||e)(R(Gn))};static \u0275dir=$({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[sn]})}return e})();function Wi(e,n){return new P(2100,!1)}class jB{createSubscription(n,t){return Bt(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){Bt(()=>n.unsubscribe())}}class BB{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const zB=new BB,qB=new jB;let A8=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(_l(t))return zB;if(LM(t))return qB;throw Wi()}_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 \u0275fac=function(i){return new(i||e)(R(Zn,16))};static \u0275pipe=$n({name:"async",type:e,pure:!1})}return e})(),R8=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,i,r){if(!function iy(e){return!(null==e||""===e||e!=e)}(t))return null;r||=this._locale;try{return function EB(e,n,t){return function Yg(e,n,t,i,r,o,a=!1){let s="",c=!1;if(isFinite(e)){let l=function AB(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 TB(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,g=n.maxFrac;if(o){const I=o.match(wB);if(null===I)throw new Error(`${o} is not a valid digit info`);const q=I[1],G=I[3],W=I[5];null!=q&&(d=Jg(q)),null!=G&&(h=Jg(G)),null!=W?g=Jg(W):null!=G&&h>g&&(g=h)}!function NB(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,g,f,k){return k[f]=(g+=h)<10?g:g-10,c&&(0===k[f]&&f>=l?k.pop():c=!1),g>=10?1:0},0);d&&(i.unshift(d),e.integerLen++)}(l,h,g);let f=l.digits,k=l.integerLen;const C=l.exponent;let E=[];for(c=f.every(I=>!I);k<d;k++)f.unshift(0);for(;k<0;k++)f.unshift(0);k>0?E=f.splice(k,f.length):(E=f,f=[0]);const T=[];for(f.length>=n.lgSize&&T.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)T.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&T.unshift(f.join("")),s=T.join(Si(t,i)),E.length&&(s+=Si(t,r)+E.join("")),C&&(s+=Si(t,6)+"+"+C)}else s=Si(t,9);return s=e<0&&!c?n.negPre+s+n.negSuf:n.posPre+s+n.posSuf,s}(e,function Qg(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 Gg(e,n){return Nn(e)[ot.NumberFormats][n]}(n,nh.Percent),Si(n,5)),n,1,0,t,!0).replace(new RegExp("%","g"),Si(n,3))}(function ry(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 Wi()}}static \u0275fac=function(i){return new(i||e)(R(Vr,16))};static \u0275pipe=$n({name:"percent",type:e,pure:!0})}return e})();let az=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({})}return e})(),kr=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ze;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;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")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=fa(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 b_(e,n,t){return function W9(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?M_:P1}(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:fa(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||e)(R(xi),R(ya),function Xr(e){return function Hx(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(Tv(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"),R(ur),R(Oe),R(vo))};static \u0275dir=$({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&&U("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",zs],skipLocationChange:[2,"skipLocationChange","skipLocationChange",zs],replaceUrl:[2,"replaceUrl","replaceUrl",zs],routerLink:"routerLink"},features:[sn]})}return e})();class O8{}let lz=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,i,r,o){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(dn(t=>t instanceof zr),jl(()=>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=nu(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 Xt(r).pipe(qs())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ne(null);const o=r.pipe(en(a=>null===a?ne(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return i.loadComponent&&!i._loadedComponent?Xt([o,this.loader.loadComponent(i)]).pipe(qs()):o})}static \u0275fac=function(i){return new(i||e)(oe(xi),oe(bn),oe(O8),oe(Hg))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const oy=new z("");let F8=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,i,r,o,a={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,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 Zl?(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 $s&&t.code===qu.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 Aw&&(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 Aw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){!function P4(){throw new Error("invalid")}()};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();function _r(e,n){return{\u0275kind:e,\u0275providers:n}}function L8(){const e=w(je);return n=>{const t=e.get(An);if(n!==t.components[0])return;const i=e.get(xi),r=e.get(V8);1===e.get(ay)&&i.initialNavigation(),e.get(H8,null,De.Optional)?.setUpPreloading(),e.get(oy,null,De.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const V8=new z("",{factory:()=>new ze}),ay=new z("",{providedIn:"root",factory:()=>1}),H8=new z("");function pz(e){return _r(0,[{provide:H8,useExisting:lz},{provide:O8,useExisting:e}])}function gz(e){return qn("NgRouterViewTransitions"),_r(9,[{provide:e8,useValue:dj},{provide:t8,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const yz=[Ll,{provide:Ul,useClass:Pu},xi,Yl,{provide:ya,useFactory:function P8(e){return e.routerState.root},deps:[xi]},Hg,[]];let j8=(()=>{class e{constructor(){}static forRoot(t,i){return{ngModule:e,providers:[yz,[],{provide:Ju,multi:!0,useValue:t},[],i?.errorHandler?{provide:n8,useValue:i.errorHandler}:[],{provide:td,useValue:i||{}},i?.useHash?{provide:vo,useClass:g8}:{provide:vo,useClass:Lb},{provide:oy,useFactory:()=>{const e=w(bj),n=w(ge),t=w(td),i=w(Bg),r=w(Ul);return t.scrollOffset&&e.setOffset(t.scrollOffset),new F8(r,i,e,n,t)}},i?.preloadingStrategy?pz(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?_z(i):[],i?.bindToComponentInputs?_r(8,[Vw,{provide:Wu,useExisting:Vw}]).\u0275providers:[],i?.enableViewTransitions?gz().\u0275providers:[],[{provide:B8,useFactory:L8},{provide:Ml,multi:!0,useExisting:B8}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Ju,multi:!0,useValue:t}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({})}return e})();function _z(e){return["disabled"===e.initialNavigation?_r(3,[HM(()=>{w(xi).setUpLocationChangeListener()}),{provide:ay,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?_r(2,[{provide:ay,useValue:0},HM(()=>{const n=w(je);return n.get(cL,Promise.resolve()).then(()=>new Promise(i=>{const r=n.get(xi),o=n.get(V8);r8(r,()=>{i(!0)}),n.get(Bg).afterPreactivation=()=>(i(!0),o.closed?ne(void 0):o),r.initialNavigation()}))})]).\u0275providers:[]]}const B8=new z("");function Ur(e){e||(jo(),e=w(si));const n=new dt(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(mn(n))}const Sz=["addListener","removeListener"],Ez=["addEventListener","removeEventListener"],Iz=["on","off"];function vn(e,n,t,i){if(ye(t)&&(i=t,t=void 0),i)return vn(e,n,t).pipe(gg(i));const[r,o]=function Nz(e){return ye(e.addEventListener)&&ye(e.removeEventListener)}(e)?Ez.map(a=>s=>e[a](n,s,t)):function Tz(e){return ye(e.addListener)&&ye(e.removeListener)}(e)?Sz.map(q8(e,n)):function Az(e){return ye(e.on)&&ye(e.off)}(e)?Iz.map(q8(e,n)):[];if(!r&&pg(e))return en(a=>vn(a,n,t))(yn(e));if(!r)throw new TypeError("Invalid event target");return new dt(a=>{const s=(...c)=>a.next(1<c.length?c:c[0]);return r(s),()=>o(s)})}function q8(e,n){return t=>i=>e[t](n,i)}class Rz extends on{constructor(n,t){super()}schedule(n,t=0){return this}}const fh={setInterval(e,n,...t){const{delegate:i}=fh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=fh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},U8={now:()=>(U8.delegate||Date).now(),delegate:void 0};class sd{constructor(n,t=sd.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}sd.now=U8.now;const G8=new class Fz extends sd{constructor(n,t=sd.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 Rz{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 fh.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&&fh.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,Xn(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),Pz=G8;function $8(e=0,n,t=Pz){let i=-1;return null!=n&&(tw(n)?t=n:i=n),new dt(r=>{let o=function Lz(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:Vz}=Array;function W8(e){return 1===e.length&&Vz(e[0])?e[0]:e}function Z8(...e){return 1===(e=W8(e)).length?yn(e[0]):new dt(function Hz(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(yn(e[i]).subscribe(ut(n,r=>{if(t){for(let o=0;o<t.length;o++)o!==i&&t[o].unsubscribe();t=null}n.next(r)})))}}(e))}function sy(...e){const n=Au(e),t=W8(e);return t.length?new dt(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let a=0;!i.closed&&a<t.length;a++)yn(t[a]).subscribe(ut(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}}):Kn}function cy(...e){const n=Au(e);return Ht((t,i)=>{const r=e.length,o=new Array(r);let a=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)yn(e[c]).subscribe(ut(i,l=>{o[c]=l,!s&&!a[c]&&(a[c]=!0,(s=a.every(Cr))&&(a=null))},O));t.subscribe(ut(i,c=>{if(s){const l=[c,...o];i.next(n?n(...l):l)}}))})}function K8(e,n){return n?t=>Hl(n.pipe(Di(1),function zz(){return Ht((e,n)=>{e.subscribe(ut(n,O))})}()),t.pipe(K8(e))):en((t,i)=>yn(e(t,i)).pipe(Di(1),function qz(e){return Ie(()=>e)}(t)))}let Y8=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,i){this._renderer=t,this._elementRef=i}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 \u0275fac=function(i){return new(i||e)(R(ur),R(Oe))};static \u0275dir=$({type:e})}return e})(),ma=(()=>{class e extends Y8{static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({type:e,features:[Y]})}return e})();const Ii=new z(""),Kz={provide:Ii,useExisting:Le(()=>kn),multi:!0};let kn=(()=>{class e extends ma{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({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()})},standalone:!1,features:[Xe([Kz]),Y]})}return e})();const Yz={provide:Ii,useExisting:Le(()=>bo),multi:!0},Jz=new z("");let bo=(()=>{class e extends Y8{_compositionMode;_composing=!1;constructor(t,i,r){super(t,i),this._compositionMode=r,null==this._compositionMode&&(this._compositionMode=!function Qz(){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 \u0275fac=function(i){return new(i||e)(R(ur),R(Oe),R(Jz,8))};static \u0275dir=$({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)})},standalone:!1,features:[Xe([Yz]),Y]})}return e})();function ly(e){return null==e||0===function dy(e){return null==e?null:Array.isArray(e)||"string"==typeof e?e.length:e instanceof Set?e.size:null}(e)}const _n=new z(""),wo=new z(""),Xz=/^(?=.{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 t6(e){return ly(e.value)||Xz.test(e.value)?null:{email:!0}}function gh(e){return null}function o6(e){return null!=e}function a6(e){return _l(e)?Xt(e):e}function s6(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function c6(e,n){return n.map(t=>t(e))}function l6(e){return e.map(n=>function eq(e){return!e.validate}(n)?n:t=>n.validate(t))}function uy(e){return null!=e?function d6(e){if(!e)return null;const n=e.filter(o6);return 0==n.length?null:function(t){return s6(c6(t,n))}}(l6(e)):null}function hy(e){return null!=e?function u6(e){if(!e)return null;const n=e.filter(o6);return 0==n.length?null:function(t){return function Zz(...e){const n=Au(e),{args:t,keys:i}=nw(e),r=new dt(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;yn(t[d]).subscribe(ut(o,g=>{h||(h=!0,l--),s[d]=g},()=>c--,void 0,()=>{(!c||!h)&&(l||o.next(i?iw(i,s):s),o.complete())}))}});return n?r.pipe(gg(n)):r}(c6(t,n).map(a6)).pipe(Ie(s6))}}(l6(e)):null}function h6(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function py(e){return e?Array.isArray(e)?e:[e]:[]}function yh(e,n){return Array.isArray(e)?e.includes(n):e===n}function g6(e,n){const t=py(n);return py(e).forEach(r=>{yh(t,r)||t.push(r)}),t}function y6(e,n){return py(n).filter(t=>!yh(e,t))}class m6{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=uy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=hy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Pn extends m6{name;get formDirective(){return null}get path(){return null}}class Co extends m6{_parent=null;name=null;valueAccessor=null}class v6{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let bt=(()=>{class e extends v6{constructor(t){super(t)}static \u0275fac=function(i){return new(i||e)(R(Co,2))};static \u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&$e("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)},standalone:!1,features:[Y]})}return e})();const cd="VALID",vh="INVALID",Xs="PENDING",ld="DISABLED";class ec{}class _6 extends ec{value;source;constructor(n,t){super(),this.value=n,this.source=t}}class yy extends ec{pristine;source;constructor(n,t){super(),this.pristine=n,this.source=t}}class my extends ec{touched;source;constructor(n,t){super(),this.touched=n,this.source=t}}class kh extends ec{status;source;constructor(n,t){super(),this.status=n,this.source=t}}function _h(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class _y{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,t){this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Bt(this.statusReactive)}set status(n){Bt(()=>this.statusReactive.set(n))}_status=Hr(()=>this.statusReactive());statusReactive=sr(void 0);get valid(){return this.status===cd}get invalid(){return this.status===vh}get pending(){return this.status==Xs}get disabled(){return this.status===ld}get enabled(){return this.status!==ld}errors;get pristine(){return Bt(this.pristineReactive)}set pristine(n){Bt(()=>this.pristineReactive.set(n))}_pristine=Hr(()=>this.pristineReactive());pristineReactive=sr(!0);get dirty(){return!this.pristine}get touched(){return Bt(this.touchedReactive)}set touched(n){Bt(()=>this.touchedReactive.set(n))}_touched=Hr(()=>this.touchedReactive());touchedReactive=sr(!1);get untouched(){return!this.touched}_events=new ze;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(g6(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(g6(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(y6(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(y6(n,this._rawAsyncValidators))}hasValidator(n){return yh(this._rawValidators,n)}hasAsyncValidator(n){return yh(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 my(!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 my(!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 yy(!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 yy(!0,i))}markAsPending(n={}){this.status=Xs;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new kh(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=ld,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 _6(this.value,i)),this._events.next(new kh(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=cd,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===cd||this.status===Xs)&&this._runAsyncValidator(i,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new _6(this.value,t)),this._events.next(new kh(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()?ld:cd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Xs,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const i=a6(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 kh(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,i)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?ld:this.errors?vh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xs)?Xs:this._anyControlsHaveStatus(vh)?vh:cd}_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 yy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new my(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){_h(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 cq(e){return Array.isArray(e)?uy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function lq(e){return Array.isArray(e)?hy(e):e||null}(this._rawAsyncValidators)}}const tc=new z("",{providedIn:"root",factory:()=>Mh}),Mh="always";function dd(e,n,t=Mh){(function by(e,n){const t=function p6(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(h6(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function f6(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(h6(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Ch(n._rawValidators,r),Ch(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function hq(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&D6(e,n)})}(e,n),function fq(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 pq(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&D6(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function uq(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Ch(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function D6(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function E6(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function I6(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const T6=class extends _y{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,t,i){super(function vy(e){return(_h(e)?e.validators:e)||null}(t),function ky(e,n){return(_h(n)?n.asyncValidators:e)||null}(i,t)),this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=I6(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){E6(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){E6(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){I6(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}},Cq={provide:Co,useExisting:Le(()=>mt)},A6=Promise.resolve();let mt=(()=>{class e extends Co{_changeDetectorRef;callSetDisabledState;control=new T6;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Q;constructor(t,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Dy(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===bo?t=o:function mq(e){return Object.getPrototypeOf(e.constructor)===ma}(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 Cy(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(){dd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){A6.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&zs(i);A6.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function bh(e,n){return[...n.path,e]}(t,this._parent):[t]}static \u0275fac=function(i){return new(i||e)(R(Pn,9),R(_n,10),R(wo,10),R(Ii,10),R(Zn,8),R(tc,8))};static \u0275dir=$({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Xe([Cq]),Y,sn]})}return e})();const xq={provide:Ii,useExisting:Le(()=>nc),multi:!0};let nc=(()=>{class e extends ma{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({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()})},standalone:!1,features:[Xe([xq]),Y]})}return e})();const Fq={provide:Ii,useExisting:Le(()=>Gr),multi:!0};function V6(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Gr=(()=>{class e extends ma{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;const r=V6(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 Pq(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({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"},standalone:!1,features:[Xe([Fq]),Y]})}return e})(),va=(()=>{class e{_element;_renderer;_select;id;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(V6(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 \u0275fac=function(i){return new(i||e)(R(Oe),R(ur),R(Gr,9))};static \u0275dir=$({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();const Lq={provide:Ii,useExisting:Le(()=>xy),multi:!0};function H6(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let xy=(()=>{class e extends ma{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;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 Vq(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({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"},standalone:!1,features:[Xe([Lq]),Y]})}return e})(),ka=(()=>{class e{_element;_renderer;_select;id;_value;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(H6(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(H6(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||e)(R(Oe),R(ur),R(xy,9))};static \u0275dir=$({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),_a=(()=>{class e{_validator=gh;_onChange;_enabled;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):gh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static \u0275fac=function(i){return new(i||e)};static \u0275dir=$({type:e,features:[sn]})}return e})();const qq={provide:_n,useExisting:Le(()=>Ey),multi:!0};let Ey=(()=>{class e extends _a{email;inputName="email";normalizeInput=zs;createValidator=t=>t6;enabled(t){return t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=$({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[Xe([qq]),Y]})}return e})(),Wq=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({})}return e})(),wt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:tc,useValue:t.callSetDisabledState??Mh}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({imports:[Wq]})}return e})();var Kq={left:"right",right:"left",bottom:"top",top:"bottom"};function Ah(e){return e.replace(/left|right|bottom|top/g,function(n){return Kq[n]})}function Mr(e){return e.split("-")[0]}var Yq={start:"end",end:"start"};function Z6(e){return e.replace(/start|end/g,function(n){return Yq[n]})}var pi="top",Zi="bottom",Ki="right",fi="left",Iy="auto",pd=[pi,Zi,Ki,fi],ic="start",fd="end",K6="viewport",gd="popper",Y6=pd.reduce(function(e,n){return e.concat([n+"-"+ic,n+"-"+fd])},[]),Q6=[].concat(pd,[Iy]).reduce(function(e,n){return e.concat([n,n+"-"+ic,n+"-"+fd])},[]),cU=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Ma(e){return e instanceof gi(e).Element||e instanceof Element}function Ti(e){return e instanceof gi(e).HTMLElement||e instanceof HTMLElement}function Ty(e){return!(typeof ShadowRoot>"u")&&(e instanceof gi(e).ShadowRoot||e instanceof ShadowRoot)}function Do(e){return((Ma(e)?e.ownerDocument:e.document)||window.document).documentElement}var ba=Math.max,Nh=Math.min,rc=Math.round;function Ay(){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 J6(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function oc(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&&rc(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&rc(i.height)/e.offsetHeight||1);var s=(Ma(e)?gi(e):window).visualViewport,c=!J6()&&t,l=(i.left+(c&&s?s.offsetLeft:0))/r,d=(i.top+(c&&s?s.offsetTop:0))/o,h=i.width/r,g=i.height/o;return{width:h,height:g,top:d,right:l+h,bottom:d+g,left:l,x:l,y:d}}function Ny(e){var n=gi(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Ry(e){return oc(Do(e)).left+Ny(e).scrollLeft}function $r(e){return gi(e).getComputedStyle(e)}function br(e){return e?(e.nodeName||"").toLowerCase():null}function Rh(e){return"html"===br(e)?e:e.assignedSlot||e.parentNode||(Ty(e)?e.host:null)||Do(e)}function Oy(e){var n=$r(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function X6(e){return["html","body","#document"].indexOf(br(e))>=0?e.ownerDocument.body:Ti(e)&&Oy(e)?e:X6(Rh(e))}function yd(e,n){var t;void 0===n&&(n=[]);var i=X6(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),o=gi(i),a=r?[o].concat(o.visualViewport||[],Oy(i)?i:[]):i,s=n.concat(a);return r?s:s.concat(yd(Rh(a)))}function uU(e){return["table","td","th"].indexOf(br(e))>=0}function eC(e){return Ti(e)&&"fixed"!==$r(e).position?e.offsetParent:null}function md(e){for(var n=gi(e),t=eC(e);t&&uU(t)&&"static"===$r(t).position;)t=eC(t);return t&&("html"===br(t)||"body"===br(t)&&"static"===$r(t).position)?n:t||function hU(e){var n=/firefox/i.test(Ay());if(/Trident/i.test(Ay())&&Ti(e)&&"fixed"===$r(e).position)return null;var r=Rh(e);for(Ty(r)&&(r=r.host);Ti(r)&&["html","body"].indexOf(br(r))<0;){var o=$r(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 tC(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&Ty(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nC(e,n,t){return n===K6?Fy(function lU(e,n){var t=gi(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=J6();(l||!l&&"fixed"===n)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+Ry(e),y:c}}(e,t)):Ma(n)?function pU(e,n){var t=oc(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):Fy(function dU(e){var n,t=Do(e),i=Ny(e),r=null==(n=e.ownerDocument)?void 0:n.body,o=ba(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ba(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Ry(e),c=-i.scrollTop;return"rtl"===$r(r||t).direction&&(s+=ba(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(Do(e)))}function ac(e){return e.split("-")[1]}function Py(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iC(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?Mr(i):null,o=i?ac(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 Zi:c={x:a,y:n.y+n.height};break;case Ki: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?Py(r):null;if(null!=l){var d="y"===l?"height":"width";switch(o){case ic:c[l]=c[l]-(n[d]/2-t[d]/2);break;case fd:c[l]=c[l]+(n[d]/2-t[d]/2)}}return c}function oC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function aC(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function Ly(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?K6:l,h=n.elementContext,g=void 0===h?gd:h,f=n.altBoundary,k=void 0!==f&&f,C=n.padding,E=void 0===C?0:C,T=oC("number"!=typeof E?E:aC(E,pd)),q=e.rects.popper,G=e.elements[k?g===gd?"reference":gd:g],W=function gU(e,n,t,i){var r="clippingParents"===n?function fU(e){var n=yd(Rh(e)),i=["absolute","fixed"].indexOf($r(e).position)>=0&&Ti(e)?md(e):e;return Ma(i)?n.filter(function(r){return Ma(r)&&tC(r,i)&&"body"!==br(r)}):[]}(e):[].concat(n),o=[].concat(r,[t]),s=o.reduce(function(c,l){var d=nC(e,l,i);return c.top=ba(d.top,c.top),c.right=Nh(d.right,c.right),c.bottom=Nh(d.bottom,c.bottom),c.left=ba(d.left,c.left),c},nC(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}(Ma(G)?G:G.contextElement||Do(e.elements.popper),c,d,a),me=oc(e.elements.reference),Se=iC({reference:me,element:q,strategy:"absolute",placement:r}),We=Fy(Object.assign({},q,Se)),tn=g===gd?We:me,nn={top:W.top-tn.top+T.top,bottom:tn.bottom-W.bottom+T.bottom,left:W.left-tn.left+T.left,right:tn.right-W.right+T.right},Cn=e.modifiersData.offset;if(g===gd&&Cn){var Qi=Cn[r];Object.keys(nn).forEach(function(Ln){var Ta=[Ki,Zi].indexOf(Ln)>=0?1:-1,Aa=[pi,Zi].indexOf(Ln)>=0?"y":"x";nn[Ln]+=Qi[Aa]*Ta})}return nn}const kU={name:"flip",enabled:!0,phase:"main",fn:function vU(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,g=t.altBoundary,f=t.flipVariations,k=void 0===f||f,C=t.allowedAutoPlacements,E=n.options.placement,T=Mr(E),q=c||(T!==E&&k?function mU(e){if(Mr(e)===Iy)return[];var n=Ah(e);return[Z6(e),n,Z6(n)]}(E):[Ah(E)]),G=[E].concat(q).reduce(function(hc,Eo){return hc.concat(Mr(Eo)===Iy?function yU(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?Q6:c,d=ac(n.placement),h=d?s?Y6:Y6.filter(function(k){return ac(k)===d}):pd,g=h.filter(function(k){return l.indexOf(k)>=0});0===g.length&&(g=h);var f=g.reduce(function(k,C){return k[C]=Ly(e,{placement:C,boundary:r,rootBoundary:o,padding:a})[Mr(C)],k},{});return Object.keys(f).sort(function(k,C){return f[k]-f[C]})}(n,{placement:Eo,boundary:d,rootBoundary:h,padding:l,flipVariations:k,allowedAutoPlacements:C}):Eo)},[]),W=n.rects.reference,me=n.rects.popper,Se=new Map,We=!0,tn=G[0],nn=0;nn<G.length;nn++){var Cn=G[nn],Qi=Mr(Cn),Ln=ac(Cn)===ic,Ta=[pi,Zi].indexOf(Qi)>=0,Aa=Ta?"width":"height",vi=Ly(n,{placement:Cn,boundary:d,rootBoundary:h,altBoundary:g,padding:l}),Ji=Ta?Ln?Ki:fi:Ln?Zi:pi;W[Aa]>me[Aa]&&(Ji=Ah(Ji));var Kh=Ah(Ji),Na=[];if(o&&Na.push(vi[Qi]<=0),s&&Na.push(vi[Ji]<=0,vi[Kh]<=0),Na.every(function(hc){return hc})){tn=Cn,We=!1;break}Se.set(Cn,Na)}if(We)for(var _m=function(Eo){var xd=G.find(function(Jh){var Ra=Se.get(Jh);if(Ra)return Ra.slice(0,Eo).every(function(Mm){return Mm})});if(xd)return tn=xd,"break"},Dd=k?3:1;Dd>0&&"break"!==_m(Dd);Dd--);n.placement!==tn&&(n.modifiersData[i]._skip=!0,n.placement=tn,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vd(e,n,t){return ba(e,Nh(n,t))}function Vy(e){var n=oc(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 wU={name:"preventOverflow",enabled:!0,phase:"main",fn:function bU(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,g=t.tether,f=void 0===g||g,k=t.tetherOffset,C=void 0===k?0:k,E=Ly(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),T=Mr(n.placement),I=ac(n.placement),q=!I,G=Py(T),W=function _U(e){return"x"===e?"y":"x"}(G),me=n.modifiersData.popperOffsets,Se=n.rects.reference,We=n.rects.popper,tn="function"==typeof C?C(Object.assign({},n.rects,{placement:n.placement})):C,nn="number"==typeof tn?{mainAxis:tn,altAxis:tn}:Object.assign({mainAxis:0,altAxis:0},tn),Cn=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Qi={x:0,y:0};if(me){if(o){var Ln,Ta="y"===G?pi:fi,Aa="y"===G?Zi:Ki,vi="y"===G?"height":"width",Ji=me[G],Kh=Ji+E[Ta],Na=Ji-E[Aa],Yh=f?-We[vi]/2:0,_m=I===ic?Se[vi]:We[vi],Dd=I===ic?-We[vi]:-Se[vi],Qh=n.elements.arrow,hc=f&&Qh?Vy(Qh):{width:0,height:0},Eo=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},xd=Eo[Ta],Jh=Eo[Aa],Ra=vd(0,Se[vi],hc[vi]),Mm=q?Se[vi]/2-Yh-Ra-xd-nn.mainAxis:_m-Ra-xd-nn.mainAxis,uMe=q?-Se[vi]/2+Yh+Ra+Jh+nn.mainAxis:Dd+Ra+Jh+nn.mainAxis,bm=n.elements.arrow&&md(n.elements.arrow),hMe=bm?"y"===G?bm.clientTop||0:bm.clientLeft||0:0,Q7=null!=(Ln=Cn?.[G])?Ln:0,fMe=Ji+uMe-Q7,J7=vd(f?Nh(Kh,Ji+Mm-Q7-hMe):Kh,Ji,f?ba(Na,fMe):Na);me[G]=J7,Qi[G]=J7-Ji}if(s){var X7,Oa=me[W],Xh="y"===W?"height":"width",eD=Oa+E["x"===G?pi:fi],tD=Oa-E["x"===G?Zi:Ki],wm=-1!==[pi,fi].indexOf(T),nD=null!=(X7=Cn?.[W])?X7:0,iD=wm?eD:Oa-Se[Xh]-We[Xh]-nD+nn.altAxis,rD=wm?Oa+Se[Xh]+We[Xh]-nD-nn.altAxis:tD,oD=f&&wm?function MU(e,n,t){var i=vd(e,n,t);return i>t?t:i}(iD,Oa,rD):vd(f?iD:eD,Oa,f?rD:tD);me[W]=oD,Qi[W]=oD-Oa}n.modifiersData[i]=Qi}},requiresIfExists:["offset"]},SU={name:"arrow",enabled:!0,phase:"main",fn:function DU(e){var n,t=e.state,i=e.name,r=e.options,o=t.elements.arrow,a=t.modifiersData.popperOffsets,s=Mr(t.placement),c=Py(s),d=[fi,Ki].indexOf(s)>=0?"height":"width";if(o&&a){var h=function(n,t){return oC("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:aC(n,pd))}(r.padding,t),g=Vy(o),f="y"===c?pi:fi,k="y"===c?Zi:Ki,C=t.rects.reference[d]+t.rects.reference[c]-a[c]-t.rects.popper[d],E=a[c]-t.rects.reference[c],T=md(o),I=T?"y"===c?T.clientHeight||0:T.clientWidth||0:0,me=I/2-g[d]/2+(C/2-E/2),Se=vd(h[f],me,I-g[d]-h[k]);t.modifiersData[i]=((n={})[c]=Se,n.centerOffset=Se-me,n)}},effect:function xU(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))||tC(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function AU(e,n,t){void 0===t&&(t=!1);var i=Ti(n),r=Ti(n)&&function TU(e){var n=e.getBoundingClientRect(),t=rc(n.width)/e.offsetWidth||1,i=rc(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),o=Do(n),a=oc(e,r,t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==br(n)||Oy(o))&&(s=function IU(e){return e!==gi(e)&&Ti(e)?function EU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Ny(e)}(n)),Ti(n)?((c=oc(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):o&&(c.x=Ry(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function NU(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 OU(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function cC(){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 PU(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?sC:r;return function(s,c,l){void 0===l&&(l=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},sC,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],g=!1,f={state:d,setOptions:function(T){var I="function"==typeof T?T(d.options):T;C(),d.options=Object.assign({},o,d.options,I),d.scrollParents={reference:Ma(s)?yd(s):s.contextElement?yd(s.contextElement):[],popper:yd(c)};var q=function RU(e){var n=NU(e);return cU.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function FU(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=q.filter(function(G){return G.enabled}),function k(){d.orderedModifiers.forEach(function(E){var I=E.options,G=E.effect;if("function"==typeof G){var W=G({state:d,name:E.name,instance:f,options:void 0===I?{}:I});h.push(W||function(){})}})}(),f.update()},forceUpdate:function(){if(!g){var T=d.elements,I=T.reference,q=T.popper;if(cC(I,q)){d.rects={reference:AU(I,md(q),"fixed"===d.options.strategy),popper:Vy(q)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(nn){return d.modifiersData[nn.name]=Object.assign({},nn.data)});for(var G=0;G<d.orderedModifiers.length;G++)if(!0!==d.reset){var W=d.orderedModifiers[G],me=W.fn,Se=W.options;"function"==typeof me&&(d=me({state:d,options:void 0===Se?{}:Se,name:W.name,instance:f})||d)}else d.reset=!1,G=-1}}},update:OU(function(){return new Promise(function(E){f.forceUpdate(),E(d)})}),destroy:function(){C(),g=!0}};if(!cC(s,c))return f;function C(){h.forEach(function(E){return E()}),h=[]}return f.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)}),f}}var Oh={passive:!0},BU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lC(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,g=a.x,f=void 0===g?0:g,k=a.y,C=void 0===k?0:k,E="function"==typeof d?d({x:f,y:C}):{x:f,y:C};f=E.x,C=E.y;var T=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),q=fi,G=pi,W=window;if(l){var me=md(t),Se="clientHeight",We="clientWidth";me===gi(t)&&"static"!==$r(me=Do(t)).position&&"absolute"===s&&(Se="scrollHeight",We="scrollWidth"),(r===pi||(r===fi||r===Ki)&&o===fd)&&(G=Zi,C-=(h&&me===W&&W.visualViewport?W.visualViewport.height:me[Se])-i.height,C*=c?1:-1),r!==fi&&(r!==pi&&r!==Zi||o!==fd)||(q=Ki,f-=(h&&me===W&&W.visualViewport?W.visualViewport.width:me[We])-i.width,f*=c?1:-1)}var Ln,Cn=Object.assign({position:s},l&&BU),Qi=!0===d?function zU(e,n){var i=e.y,r=n.devicePixelRatio||1;return{x:rc(e.x*r)/r||0,y:rc(i*r)/r||0}}({x:f,y:C},gi(t)):{x:f,y:C};return f=Qi.x,C=Qi.y,Object.assign({},Cn,c?((Ln={})[G]=I?"0":"",Ln[q]=T?"0":"",Ln.transform=(W.devicePixelRatio||1)<=1?"translate("+f+"px, "+C+"px)":"translate3d("+f+"px, "+C+"px, 0)",Ln):((n={})[G]=I?C+"px":"",n[q]=T?f+"px":"",n.transform="",n))}var ZU=PU({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function LU(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=gi(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&l.forEach(function(d){d.addEventListener("scroll",t.update,Oh)}),s&&c.addEventListener("resize",t.update,Oh),function(){o&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Oh)}),s&&c.removeEventListener("resize",t.update,Oh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function HU(e){var n=e.state;n.modifiersData[e.name]=iC({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function qU(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:Mr(n.placement),variation:ac(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,lC(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,lC(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 GU(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)||!br(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 $U(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)||!br(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const QU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function YU(e){var n=e.state,i=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=Q6.reduce(function(d,h){return d[h]=function KU(e,n,t){var i=Mr(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,Ki].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}},JU=["container"],XU=["ngbAccordionBody",""],sc=["*"];function eG(e,n){if(1&e){const t=Be();y(0,"button",1),L("click",function(){return de(t),ue(F().close())}),m()}}const TG=["dialog"];function c$(e,n){if(1&e&&(y(0,"span"),js(1,0),zf(2,"percent"),m()),2&e){const t=F();b(2),Rf(qf(2,1,t.getValue()/t.max)),function G5(e){!function WR(e,n,t){if(xl>0){const i=e.data[t];A5(e,n,Array.isArray(i)?i:i.update,Ar()-xl-1,Dl)}Dl=0,xl=0}(ie(),N(),e+K)}(1)}}const uC={animation:!0,transitionTimerDelayMs:5};let cc=(()=>{class e{constructor(){this.animation=uC.animation}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),k$=(()=>{class e{constructor(){this._ngbConfig=w(cc),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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function wa(e){return"string"==typeof e}function hn(e){return!isNaN(function Yn(e){return parseInt(`${e}`,10)}(e))}function Ca(e){return null!=e}function lc(e){return(e||document.body).getBoundingClientRect()}const w$=()=>{},{transitionTimerDelayMs:C$}=uC,kd=new Map,yi=(e,n,t,i)=>{let r=i.context||{};const o=kd.get(n);if(o)switch(i.runningTransition){case"continue":return Kn;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),kd.delete(n)}const a=t(n,i.animation,r)||w$;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>a()),ne(void 0).pipe(function b$(e){return n=>new dt(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 ze,c=new ze,l=s.pipe(function Bz(...e){return n=>Hl(n,ne(...e))}(!0));kd.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const d=function _$(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),dn(({target:f})=>f===n));Z8($8(d+C$).pipe(mn(l)),h,c).pipe(mn(l)).subscribe(()=>{kd.delete(n),e.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()},x$=(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 D$(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"),lc(e),a.add("collapsing")),e.style[o]="show"===i?r:"0px",()=>{s(),a.remove("collapsing"),e.style[o]=""};s()};let S$=(()=>{class e{constructor(){this._ngbConfig=w(cc),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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jy=(()=>{class e{constructor(){this._config=w(S$),this._element=w(Oe),this._zone=w(ge),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new Q,this.horizontal=this._config.horizontal,this.shown=new Q,this.hidden=new Q}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 yi(this._zone,this._element.nativeElement,x$,{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=$({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,r){2&i&&$e("collapse-horizontal",r.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})(),E$=0,yC=(()=>{class e{constructor(){this._item=w(xo),this._viewRef=null,this.elementRef=w(Oe)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,r,o){if(1&i&&Jt(o,Ft,7),2&i){let a;at(a=st())&&(r._bodyTpl=a.first)}},viewQuery:function(i,r){if(1&i&&fo(JU,7,Gn),2&i){let o;at(o=st())&&(r._vcr=o.first)}},hostAttrs:[1,"accordion-body"],attrs:XU,ngContentSelectors:sc,decls:3,vars:0,consts:[["container",""]],template:function(i,r){1&i&&(ho(),Vs(0,null,0),po(2))},encapsulation:2})}}return e})(),By=(()=>{class e{constructor(){this.item=w(xo),this.ngbCollapse=w(jy)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,r){2&i&&(di("id",r.item.collapseId),U("aria-labelledby",r.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[rf([jy])]})}}return e})(),mC=(()=>{class e{constructor(){this.item=w(xo),this.accordion=w(Fh)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({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&&(di("id",r.item.toggleId),U("aria-controls",r.item.collapseId)("aria-expanded",!r.item.collapsed),$e("collapsed",r.item.collapsed))}})}}return e})(),vC=(()=>{class e{constructor(){this.item=w(xo)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(i,r){2&i&&di("disabled",r.item.disabled)},features:[rf([mC])]})}}return e})(),kC=(()=>{class e{constructor(){this.item=w(xo)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,r){2&i&&$e("collapsed",r.item.collapsed)}})}}return e})(),xo=(()=>{class e{constructor(){this._accordion=w(Fh),this._cd=w(Zn),this._destroyRef=w(si),this._collapsed=!0,this._id="ngb-accordion-item-"+E$++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new Q,this.shown=new Q,this.hide=new Q,this.hidden=new Q}set id(t){wa(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),this._cd.markForCheck()}),t.shown.pipe(Ur(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,r,o){if(1&i&&Jt(o,By,7),2&i){let a;at(a=st())&&(r._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,r){2&i&&di("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"]})}}return e})(),Fh=(()=>{class e{constructor(){this._config=w(k$),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new Q,this.shown=new Q,this.hide=new Q,this.hidden=new Q}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=$({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,r,o){if(1&i&&Jt(o,xo,4),2&i){let a;at(a=st())&&(r._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})(),zy=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),I$=(()=>{class e{constructor(){this._ngbConfig=w(cc),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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const T$=({classList:e})=>{e.remove("show")};let qy=(()=>{class e{constructor(){this._config=w(I$),this._elementRef=w(Oe),this._zone=w(ge),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new Q}close(){const t=yi(this._zone,this._elementRef.nativeElement,T$,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,r){2&i&&(ca("alert show"+(r.type?" alert-"+r.type:"")),$e("fade",r.animation)("alert-dismissible",r.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:sc,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),j(1,eG,1,0,"button",0)),2&i&&(b(),jt(r.dismissible?1:-1))},styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}}return e})(),Uy=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),bC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),wC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})();const Bh=(e,n)=>!!n&&n.some(t=>t.contains(e)),EC=(e,n)=>!n||null!=function M$(e,n){return!n||typeof e.closest>"u"?null:e.closest(n)}(e,n),Y$=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 Qy(e,n,t,i,r,o,a,s){t&&e.runOutsideAngular((e=>Y$?()=>setTimeout(()=>e(),100):e)(()=>{const l=vn(n,"keydown").pipe(mn(r),dn(g=>"Escape"===g.key),un(g=>g.preventDefault())),d=vn(n,"mousedown").pipe(Ie(g=>{const f=g.target;return 2!==g.button&&!Bh(f,a)&&("inside"===t?Bh(f,o)&&EC(f,s):"outside"===t?!Bh(f,o):EC(f,s)||!Bh(f,o))}),mn(r)),h=vn(n,"mouseup").pipe(cy(d),dn(([g,f])=>f),function Uz(e,n=G8){const t=$8(e,n);return K8(()=>t)}(0),mn(r));Z8([l.pipe(Ie(g=>0)),h.pipe(Ie(g=>1))]).subscribe(g=>e.run(()=>i(g)))}))}const IC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function TC(e){const n=Array.from(e.querySelectorAll(IC)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}let J$=(()=>{class e{constructor(){this._element=w(Pt).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const X$=/\s+/,eW=/ +/gi,tW={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"]},iW=/^left/,rW=/^right/,oW=/^start/,aW=/^end/;function NC({placement:e,baseClass:n},t){let i=Array.isArray(e)?e:e.split(X$),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 nW(e,n){const[t,i]=tW[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,g=l.placement;let f=h.className;f=f.replace(d,""),f+=` ${function sW(e,n){let[t,i]=n.split("-");const r=t.replace(iW,"start").replace(rW,"end");let o=[r];if(i){let a=i;("left"===t||"right"===t)&&(a=a.replace(oW,"top").replace(aW,"bottom")),o.push(`${r}-${a}`)}return e&&(o=o.map(a=>`${e}-${a}`)),o.join(" ")}(n,g)}`,f=f.trim().replace(eW," "),h.className=f}},kU,wU,SU,{enabled:!0,name:"flip",options:{fallbackPlacements:a}}]}}function RC(e){return e}new Date(1882,10,12),new Date(2174,10,25);let UC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),$C=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),xW=(()=>{class e{constructor(){this._ngbConfig=w(cc),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class Ea{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class SW{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=w(Pt),this._applicationRef=w(An),this._injector=w(je),this._viewContainerRef=w(Gn),this._ngZone=w(ge)}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 ze;no({mixedReadWrite:()=>{o.next(),o.complete()}},{injector:this._injector});const a=o.pipe(en(()=>yi(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?yi(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(un(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):ne(void 0)}_getContentRef(n,t){if(n){if(n instanceof Ft){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new Ea([i.rootNodes],i)}return new Ea([[this._document.createTextNode(`${n}`)]])}return new Ea([])}}let EW=(()=>{class e{constructor(){this._document=w(Pt)}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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),IW=(()=>{class e{constructor(){this._nativeElement=w(Oe).nativeElement,this._zone=w(ge),this._injector=w(je)}ngOnInit(){no({mixedReadWrite:()=>yi(this._zone,this._nativeElement,(t,i)=>{i&&lc(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return yi(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=re({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(ca("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),$e("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return e})();class WC{update(n){}close(n){}dismiss(n){}}const TW=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],AW=["animation","backdropClass"];class NW{_applyWindowOptions(n,t){TW.forEach(i=>{Ca(t[i])&&(n[i]=t[i])})}_applyBackdropOptions(n,t){AW.forEach(i=>{Ca(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 ze,this._dismissed=new ze,this._hidden=new ze,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 pC(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():ne(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}}),sy(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var bd=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(bd||{});let RW=(()=>{class e{constructor(){this._document=w(Pt),this._elRef=w(Oe),this._zone=w(ge),this._injector=w(je),this._closed$=new ze,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new Q,this.shown=new ze,this.hidden=new ze}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":wa(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,no({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},a=sy(yi(this._zone,t,()=>t.classList.remove("show"),i),yi(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"};sy(yi(this._zone,this._elRef.nativeElement,(o,a)=>{a&&lc(o),o.classList.add("show")},t),yi(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$),dn(r=>"Escape"===r.key)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(bd.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;vn(this._dialogEl.nativeElement,"mousedown").pipe(mn(this._closed$),un(()=>i=!1),qi(()=>vn(t,"mouseup").pipe(mn(this._closed$),Di(1))),dn(({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(bd.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=TC(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&&yi(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=re({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&fo(TG,7),2&i){let o;at(o=st())&&(r._dialogEl=o.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,r){2&i&&(U("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy)("role",r.role),ca("modal d-block"+(r.windowClass?" "+r.windowClass:"")),$e("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:sc,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&&ca("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})(),OW=(()=>{class e{constructor(){this._applicationRef=w(An),this._injector=w(je),this._environmentInjector=w(bn),this._document=w(Pt),this._scrollBar=w(EW),this._activeWindowCmptHasChanged=new ze,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new Q;const t=w(ge);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),Ie(o=>o.target));vn(n,"keydown").pipe(mn(t),dn(o=>"Tab"===o.key),cy(r)).subscribe(([o,a])=>{const[s,c]=TC(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),cy(r),Ie(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:Ca(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 WC,s=(t=r.injector||t).get(bn,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 NW(d,c,l,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Di(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{h.close(g)},a.dismiss=g=>{h.dismiss(g)},a.update=g=>{h.update(g)},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=og(IW,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=og(RW,{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 Ft?this._createFromTemplateRef(r,o):wa(r)?this._createFromString(r):this._createFromComponent(t,i,r,o,a):new Ea([])}_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 Ea([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new Ea([[i]])}_createFromComponent(t,i,r,o,a){const c=og(r,{environmentInjector:i,elementInjector:je.create({providers:[{provide:WC,useValue:o}],parent:t})}),l=c.location.nativeElement;return a.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Ea([[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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ZC=(()=>{class e{constructor(){this._injector=w(je),this._modalStack=w(OW),this._config=w(xW)}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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),KC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({providers:[ZC]})}}return e})(),JC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),a7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})();const qW={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let s7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),$W=(()=>{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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),WW=(()=>{class e{set max(t){this._max=!hn(t)||t<=0?100:t}get max(){return this._max}constructor(){this._config=w($W),this.stacked=w(ZW,{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 hC(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=re({type:e,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:7,hostBindings:function(i,r){2&i&&(U("aria-valuenow",r.getValue())("aria-valuemax",r.max)("aria-label",r.ariaLabel),wl("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"},ngContentSelectors:sc,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"),j(1,c$,3,3,"span"),po(2),m()),2&i&&(k5("progress-bar",r.type?r.textType?" bg-"+r.type:" text-bg-"+r.type:"","",r.textType?" text-"+r.textType:"",""),wl("width",r.stacked?null:r.getPercentValue(),"%"),$e("progress-bar-animated",r.animated)("progress-bar-striped",r.striped),b(),jt(r.showValue?1:-1))},dependencies:[R8],encapsulation:2,changeDetection:0})}}return e})(),ZW=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-progressbar-stacked"]],hostAttrs:[1,"progress-stacked"],ngContentSelectors:sc,decls:1,vars:0,template:function(i,r){1&i&&(ho(),po(0))},encapsulation:2,changeDetection:0})}}return e})(),c7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),l7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),d7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),u7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),h7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),JW=(()=>{class e{constructor(){this._ngbConfig=w(cc),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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),XW=0,eZ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,r){2&i&&(di("id",r.id),ca("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),$e("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:sc,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})(),p7=(()=>{class e{constructor(){this._config=w(JW),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 Q,this.hidden=new Q,this._nativeElement=w(Oe).nativeElement,this._ngZone=w(ge),this._document=w(Pt),this._changeDetector=w(Zn),this._injector=w(je),this._ngbTooltipWindowId="ngb-tooltip-"+XW++,this._popupService=new SW(eZ),this._windowRef=null,this._positioning=function Jy(){const e=w(J$);let n=null;return{createPopper(t){if(!n){let r=(t.updatePopperOptions||RC)(NC(t,e));n=ZU(t.hostElement,t.targetElement,r)}},update(){n&&n.update()},setOptions(t){if(n){let r=(t.updatePopperOptions||RC)(NC(t,e));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}()}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(function Xy(e){return n=>(n.modifiers.push(QU,{name:"offset",options:{offset:()=>e}}),n)}([0,6])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=function zc(e,n){!n?.injector&&jo();const t=n?.injector??w(je);return qn("NgAfterRender"),Lk(e,t,n,!1)}({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Qy(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=function GW(e,n,t,i,r,o=0,a=0){const s=function UW(e){const n=(e||"").trim();if(0===n.length)return[];const t=n.split(/\s+/).map(r=>r.split(":")).map(r=>qW[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(f,k){e.addEventListener(f,k),l.push(()=>e.removeEventListener(f,k))}function g(f,k){clearTimeout(d),k>0?d=setTimeout(f,k):f()}for(const[f,k]of s)k?(h(f,()=>{c.add(f),g(()=>c.size>0&&i(),o)}),h(k,()=>{c.delete(f),g(()=>0===c.size&&r(),a)})):h(f,()=>t()?g(r,a):g(i,o));return()=>l.forEach(f=>f())}(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(wa(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=$({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[sn]})}}return e})(),cm=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})();new z("live announcer delay",{providedIn:"root",factory:()=>100});let f7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})(),g7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({})}}return e})();const nZ=[zy,Uy,bC,wC,UC,$C,KC,JC,g7,a7,s7,c7,l7,d7,u7,h7,cm,f7];let iZ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=Ue({imports:[nZ,zy,Uy,bC,wC,UC,$C,KC,JC,g7,a7,s7,c7,l7,d7,u7,h7,cm,f7]})}}return e})();function oZ(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 aZ=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:oZ(e)}])),sZ=["*"],y7=[["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"}]],m7=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],v7=[["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"}]],k7=[["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"}]],_7=[["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"}]],M7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],b7=[["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"}]],w7=[["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"}]],C7=[["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"}]],D7=[["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"}]],x7=[["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"}]],S7=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],E7=[["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"}]],I7=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],T7=[["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"}]],A7=[["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"}]],N7=[["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 wd={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 lm=new z("LucideIcons",{factory:()=>new dm({})});class dm{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 gke=(()=>{class e{constructor(){this.color=wd.stroke,this.size=wd.width,this.strokeWidth=wd["stroke-width"],this.absoluteStrokeWidth=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function yke(e,n=3){return parseFloat(e.toFixed(n)).toString(10)}let Ia=(()=>{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=wd.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={...wd,width:this.size,height:this.size,stroke:this.color??this.iconConfig.color,"stroke-width":this.absoluteStrokeWidth?yke(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)(R(Oe),R(ur),R(Zn),R(lm),R(gke))},e.\u0275cmp=re({type:e,selectors:[["lucide-angular"],["lucide-icon"],["i-lucide"],["span-lucide"]],inputs:{class:"class",name:"name",img:"img",color:"color",absoluteStrokeWidth:"absoluteStrokeWidth",size:"size",strokeWidth:"strokeWidth"},standalone:!1,features:[sn],ngContentSelectors:sZ,decls:1,vars:0,template:function(t,i){1&t&&(ho(),po(0))},encapsulation:2}),e})();class mke{constructor(n){this.icons=n}}const vke=e=>new dm(e??{});let So=(()=>{class e{static pick(t){return{ngModule:e,providers:[{provide:lm,multi:!0,useValue:new dm(t)},{provide:lm,multi:!0,useFactory:vke,deps:[[new Gd,mke]]}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ye({type:e}),e.\u0275inj=Ue({imports:[[]]}),e})(),lt=(()=>{class e extends EventTarget{stations=[];accessories$=new dt(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 Z(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 Z(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 Z(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 Z(function*(){try{yield window.homebridge.savePluginConfig()}catch(t){console.log("There was an error when saving config: ",t)}})()}resetConfig(){return Z(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=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const kke=e=>({$implicit:e,type:"both"}),_ke=e=>({$implicit:e,type:"station"}),Mke=e=>({$implicit:e,type:"device"}),bke=(e,n)=>["/config",e,n];function wke(e,n){if(1&e){const t=Be();y(0,"div",7)(1,"h4",8),M(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"),M(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),M(9," We strongly recommend that you "),y(10,"strong"),M(11,"stop"),m(),M(12," the plugin before proceeding further. "),m(),y(13,"p"),M(14,"Otherwise, you may experience glitches such as push notifications from the plugin no longer functioning correctly. (See "),y(15,"a",13),M(16,"here"),m(),M(17," for more information)."),m()()(),y(18,"div",14)(19,"a",15),L("click",function(){return ue(de(t).$implicit.close("Login"))}),M(20,"Login with eufy"),m()()}2&e&&(b(8),x("dismissible",!1))}function Cke(e,n){if(1&e){const t=Be();ci(0),B(1,"p"),y(2,"ngb-alert",23)(3,"a",24),L("click",function(){de(t);const r=F(4),o=Mt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=F(4),o=Mt(1);return ue(r.openReloadModal(o))}),M(4," Plugin has been updated, please refresh and reboot the plugin. "),m()(),B(5,"p"),li()}2&e&&(b(2),x("dismissible",!1))}function Dke(e,n){1&e&&Vs(0)}function xke(e,n){if(1&e&&(ci(0),y(1,"div",28),j(2,Dke,1,0,"ng-container",29),m(),li()),2&e){const t=F(2).$implicit;F(5);const i=Mt(8);b(2),x("ngTemplateOutlet",i)("ngTemplateOutletContext",go(2,kke,t))}}function Ske(e,n){1&e&&Vs(0)}function Eke(e,n){1&e&&Vs(0)}function Ike(e,n){if(1&e&&(ci(0),y(1,"div",28),j(2,Eke,1,0,"ng-container",29),m(),li()),2&e){const t=n.$implicit;F(8);const i=Mt(8);b(2),x("ngTemplateOutlet",i)("ngTemplateOutletContext",go(2,Mke,t))}}function Tke(e,n){if(1&e&&(y(0,"div",28),j(1,Ske,1,0,"ng-container",29),m(),j(2,Ike,3,4,"ng-container",26)),2&e){const t=F(2).$implicit,i=F(5),r=Mt(8);b(),x("ngTemplateOutlet",r)("ngTemplateOutletContext",go(4,_ke,t)),b(),x("ngForOf",t.devices)("ngForTrackBy",i.trackByDeviceId)}}function Ake(e,n){if(1&e&&(ci(0),j(1,xke,3,4,"ng-container",6)(2,Tke,3,6,"ng-template",null,5,ln),li()),2&e){const t=Mt(3),i=F().$implicit;b(),x("ngIf",i.devices[0].uniqueId===i.uniqueId)("ngIfElse",t)}}function Nke(e,n){if(1&e&&(ci(0),j(1,Ake,4,2,"ng-container",27),li()),2&e){const t=n.$implicit;b(),x("ngIf",t&&0!==(null==t.devices?null:t.devices.length))}}function Rke(e,n){if(1&e&&(B(0,"p"),y(1,"span"),M(2,"Click the name to access accessory configuration."),m(),B(3,"p"),y(4,"div",25),j(5,Nke,2,1,"ng-container",26),m()),2&e){const t=F(2).ngIf,i=F(2);b(5),x("ngForOf",t)("ngForTrackBy",i.trackByStationId)}}function Oke(e,n){if(1&e&&(ci(0),j(1,Cke,6,1,"ng-container",6)(2,Rke,6,2,"ng-template",null,4,ln),li()),2&e){const t=Mt(3),i=F(3);b(),x("ngIf",i.versionUnmatched)("ngIfElse",t)}}function Fke(e,n){if(1&e&&(ci(0),j(1,Oke,4,2,"ng-container",6),li()),2&e){const t=n.ngIf;F(2);const i=Mt(6);b(),x("ngIf",0!==t.length)("ngIfElse",i)}}function Pke(e,n){if(1&e){const t=Be();ci(0),y(1,"div",16)(2,"button",17),L("click",function(){de(t);const r=F(),o=Mt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=F(),o=Mt(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()(),j(8,Fke,2,2,"ng-container",6),zf(9,"async"),li()}if(2&e){const t=F(),i=Mt(6);b(8),x("ngIf",qf(9,2,t.stations$))("ngIfElse",i)}}function Lke(e,n){1&e&&(y(0,"div")(1,"div",30),M(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),M(4,"Cancel"),m()())}function Vke(e,n){1&e&&(y(0,"div",32),M(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 Hke(e,n){if(1&e&&B(0,"lucide-angular",43),2&e){const t=F().$implicit;x("ngbTooltip",t.ignored?"Security Control OFF":"Security Control ON")("name",t.ignored?"shield-off":"shield")}}function jke(e,n){1&e&&B(0,"lucide-angular",44)}function Bke(e,n){if(1&e&&(y(0,"a",33)(1,"div",34)(2,"div",35)(3,"span",36),ci(4,37),j(5,Hke,1,2,"lucide-angular",38)(6,jke,1,0,"lucide-angular",39),li(),m()(),B(7,"img",40),y(8,"div",41)(9,"h5",42),M(10),m()()()()),2&e){let t;const i=n.$implicit,r=n.type,o=F();x("routerLink",Tl(9,bke,r,i.uniqueId)),b(4),x("ngSwitch",!0),b(),x("ngSwitchCase","both"===r),b(),x("ngSwitchCase","device"===r&&i.isKeypad),b(),wl("opacity",("both"===r?i.devices[0].ignored:i.ignored)?.3:1),x("src","assets/devices/"+((null==(t=o.DeviceImage.get(i.type))?null:t.image)||"unknown.png"),P1)("alt",i.displayName),b(3),Bi(i.displayName)}}let zke=(()=>{class e{modalService;pluginService;route;router;zone;cdr;stationsSubject=new ei([]);stations$=this.stationsSubject.asObservable();versionUnmatched=!1;adminAccountUsed=!1;waitForAccessories;DeviceImage=aZ;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 Z(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAddAccessory(){var t=this;return Z(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAdminAccountUsed(){var t=this;return Z(function*(){console.log("Admin account used"),t.adminAccountUsed=!0,t.stationsSubject.next([]),yield t.pluginService.resetConfig(),t.cdr.markForCheck()})()}updateStations(){var t=this;return Z(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===bd.ESC?"by pressing ESC":t===bd.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)(R(ZC),R(lt),R(ya),R(xi),R(ge),R(Zn))};static \u0275cmp=re({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:9,vars:2,consts:[["reloadModal",""],["adminAccountUsedTemplate",""],["noStations",""],["cardTemplate",""],["stationsContent",""],["separateDevices",""],[4,"ngIf","ngIfElse"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[3,"dismissible"],["href","https://github.com/homebridge-eufy-security/plugin/issues/59#issuecomment-1147314942","target","_blank","rel","noopener noreferrer"],[1,"modal-footer"],["routerLink","/login",1,"btn","btn-success",3,"click"],[1,"text-end"],["type","button","placement","bottom","ngbTooltip","Re Sync",1,"btn","btn-success",3,"click","keydown.enter"],["name","refresh-cw"],["type","button","placement","bottom","ngbTooltip","Having a bug?","routerLink","/githubissue",1,"btn","btn-warning"],["name","bug"],["type","button","placement","bottom","ngbTooltip","Global Settings","routerLink","/advancedConfig",1,"btn","btn-danger"],["name","sliders-horizontal"],["type","warning",3,"dismissible"],["tabindex","0",3,"click","keydown.enter"],[1,"row","row-cols-md-4"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"col-4","mb-4"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","alert",1,"alert","alert-danger"],["type","button","routerLink","/login",1,"btn","btn-primary"],["role","alert",1,"alert","alert-info"],[3,"routerLink"],[1,"card"],[1,"position-absolute","top-0","end-0"],[1,"d-flex","p-2",2,"z-index","20"],[3,"ngSwitch"],[3,"ngbTooltip","name",4,"ngSwitchCase"],["name","shield-alert","color","red",4,"ngSwitchCase"],[1,"card-img","p-4",3,"src","alt"],[1,"card-img-overlay"],[1,"card-title","position-absolute","bottom-0"],[3,"ngbTooltip","name"],["name","shield-alert","color","red"]],template:function(i,r){if(1&i&&j(0,wke,21,1,"ng-template",null,0,ln)(2,Pke,10,4,"ng-container",6)(3,Lke,5,0,"ng-template",null,1,ln)(5,Vke,2,0,"ng-template",null,2,ln)(7,Bke,11,12,"ng-template",null,3,ln),2&i){const o=Mt(4);b(2),x("ngIf",!r.adminAccountUsed)("ngIfElse",o)}},dependencies:[kr,Fn,ph,ad,ny,Js,So,Ia,Uy,qy,cm,p7,A8],encapsulation:2,changeDetection:0})}return e})();const mi={platform:"EufySecurity",name:"EufySecurity",username:"",password:"",deviceName:"MyPhone",enableDetailedLogging:!1,omitLogFiles:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",stations:[],cameras:[],cleanCache:!0,ignoreMultipleDevicesWarning:!1,autoSyncStation:!1,enableEmbeddedPKCS1Support:!1};class Ct{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 Z(function*(){t.config={...mi,...t.config,...n},console.log("config:",t.config),yield t.pluginService.updateConfig(t.config)})()}updateAccessoryConfig(n,t,i){var r=this;return Z(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 Z(function*(){yield i.updateAccessoryConfig(n,t,"station")})()}updateDeviceConfig(n,t){var i=this;return Z(function*(){yield i.updateAccessoryConfig(n,t,"camera")})()}}function qke(e,n){1&e&&(y(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function Uke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function Gke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function $ke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function Wke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}let R7=(()=>{class e extends Ct{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 Z(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=mi.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.station||(t.hkAway=mi.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.station||(t.hkNight=mi.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.station||(t.hkOff=mi.hkOff)})()}update(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{station:"station"},features:[Y],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"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),m(),B(3,"p"),j(4,qke,2,0,"span",1),B(5,"p"),y(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),m(),y(9,"select",4),se("ngModelChange",function(a){return he(r.hkHome,a)||(r.hkHome=a),a}),L("change",function(){return r.update()}),j(10,Uke,2,1,"option",5),y(11,"option",6),M(12,"Eufy Home"),m(),y(13,"option",6),M(14,"Eufy Away"),m(),y(15,"option",6),M(16,"Eufy Schedule"),m(),y(17,"option",6),M(18,"Eufy Custom 1 (Night)"),m(),y(19,"option",6),M(20,"Eufy Custom 2"),m(),y(21,"option",6),M(22,"Eufy Custom 3"),m(),y(23,"option",6),M(24,"Eufy Geofencing"),m(),y(25,"option",6),M(26,"Eufy Disarmed"),m()()(),y(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),m(),y(30,"select",8),se("ngModelChange",function(a){return he(r.hkAway,a)||(r.hkAway=a),a}),L("change",function(){return r.update()}),j(31,Gke,2,1,"option",5),y(32,"option",6),M(33,"Eufy Home"),m(),y(34,"option",6),M(35,"Eufy Away"),m(),y(36,"option",6),M(37,"Eufy Schedule"),m(),y(38,"option",6),M(39,"Eufy Custom 1 (Night)"),m(),y(40,"option",6),M(41,"Eufy Custom 2"),m(),y(42,"option",6),M(43,"Eufy Custom 3"),m(),y(44,"option",6),M(45,"Eufy Geofencing"),m(),y(46,"option",6),M(47,"Eufy Disarmed"),m()()(),y(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),m(),y(51,"select",10),se("ngModelChange",function(a){return he(r.hkNight,a)||(r.hkNight=a),a}),L("change",function(){return r.update()}),j(52,$ke,2,1,"option",5),y(53,"option",6),M(54,"Eufy Home"),m(),y(55,"option",6),M(56,"Eufy Away"),m(),y(57,"option",6),M(58,"Eufy Schedule"),m(),y(59,"option",6),M(60,"Eufy Custom 1 (Night)"),m(),y(61,"option",6),M(62,"Eufy Custom 2"),m(),y(63,"option",6),M(64,"Eufy Custom 3"),m(),y(65,"option",6),M(66,"Eufy Geofencing"),m(),y(67,"option",6),M(68,"Eufy Disarmed"),m()()(),y(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),m(),y(72,"select",12),se("ngModelChange",function(a){return he(r.hkOff,a)||(r.hkOff=a),a}),L("change",function(){return r.update()}),j(73,Wke,2,1,"option",5),y(74,"option",6),M(75,"Eufy Home"),m(),y(76,"option",6),M(77,"Eufy Away"),m(),y(78,"option",6),M(79,"Eufy Schedule"),m(),y(80,"option",6),M(81,"Eufy Custom 1 (Night)"),m(),y(82,"option",6),M(83,"Eufy Custom 2"),m(),y(84,"option",6),M(85,"Eufy Custom 3"),m(),y(86,"option",6),M(87,"Eufy Geofencing"),m(),y(88,"option",6),M(89,"Eufy Disarmed"),m()()()()),2&i&&(b(4),x("ngIf",r.station),b(5),ae("ngModel",r.hkHome),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkAway),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkNight),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkOff),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63))},dependencies:[Fn,wt,va,ka,Gr,bt,mt],encapsulation:2})}return e})(),Zke=(()=>{class e extends Ct{cleanCache=mi.cleanCache;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-clean-cache"]],features:[Y],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),M(3,"Clean cache automatically"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.cleanCache,a)||(r.cleanCache=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&i&&(b(5),ae("ngModel",r.cleanCache))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Kke=(()=>{class e extends Ct{omitLogFiles=mi.omitLogFiles;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-omit-log-files"]],features:[Y],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),M(3,"Don't store log files"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.omitLogFiles,a)||(r.omitLogFiles=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.omitLogFiles))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Yke=(()=>{class e extends Ct{ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-ignore-multiple-devices-warning"]],features:[Y],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),M(3,"Enable snapshot and HKSV settings for multiple devices on one station"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.ignoreMultipleDevicesWarning,a)||(r.ignoreMultipleDevicesWarning=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.ignoreMultipleDevicesWarning))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Qke=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-livestream-duration-seconds"]],features:[Y],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),M(3,"Maximum Livestream Duration"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return he(r.CameraMaxLivestreamDuration,a)||(r.CameraMaxLivestreamDuration=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),M(9,"seconds"),m()()()()(),y(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&i&&(b(6),ae("ngModel",r.CameraMaxLivestreamDuration),U("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wt,bo,nc,bt,mt],encapsulation:2})}return e})(),Jke=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-polling-interval-minutes"]],features:[Y],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),M(3,"Polling Interval"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return he(r.pollingIntervalMinutes,a)||(r.pollingIntervalMinutes=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),M(9,"minutes"),m()()()()(),y(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&i&&(b(6),ae("ngModel",r.pollingIntervalMinutes),U("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wt,bo,nc,bt,mt],encapsulation:2})}return e})(),Xke=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-primary","col-12","col-sm-4"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),m(),y(4,"a",3),M(5,"New Login"),m()()())},dependencies:[kr],encapsulation:2})}return e})(),e_e=(()=>{class e extends Ct{autoSyncStation=mi.autoSyncStation;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-auto-sync-station"]],features:[Y],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),M(3,"Auto Sync Station status"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.autoSyncStation,a)||(r.autoSyncStation=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.autoSyncStation))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),t_e=(()=>{class e extends Ct{enableEmbeddedPKCS1Support=mi.enableEmbeddedPKCS1Support;constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){t.readValue()})()}readValue(){this.enableEmbeddedPKCS1Support=this.config.enableEmbeddedPKCS1Support??this.enableEmbeddedPKCS1Support}update(){this.updateConfig({enableEmbeddedPKCS1Support:this.enableEmbeddedPKCS1Support})}static \u0275fac=function(i){return new(i||e)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-embedded-pkcs1-support"]],features:[Y],decls:12,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","enableEmbeddedPKCS1Support"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","enableEmbeddedPKCS1Support",1,"form-check-input",3,"ngModelChange","change","ngModel"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Node.js-Compatibility-with-Eufy-Security-Plugin","target","_blank"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),M(3,"Enable Embedded PKCS1 Support"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.enableEmbeddedPKCS1Support,a)||(r.enableEmbeddedPKCS1Support=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Starting from Node.js versions 18.19.1, 20.11.1, and 21.6.2, the removal of RSA_PKCS1_PADDING support breaks Eufy Security's livestream/P2P functionality. We've developed a countermeasure based on software calculation, it will be 10x times less effective than hardware but it can make some cameras work on Node.js 22+. "),y(9,"a",5),M(10,"More technical details here"),m(),M(11,". "),m()()()),2&i&&(b(5),ae("ngModel",r.enableEmbeddedPKCS1Support))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),n_e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-advanced-config-options"]],decls:22,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"]],template:function(i,r){1&i&&(y(0,"a",0),B(1,"lucide-angular",1),M(2," Back\n"),m(),y(3,"h6"),M(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-embedded-pkcs1-support")(20,"hr")(21,"app-guard-modes-mapping"))},dependencies:[kr,Xke,Jke,Qke,Yke,Kke,Zke,t_e,R7,e_e,So,Ia],encapsulation:2})}return e})();function i_e(e,n){if(1&e&&(y(0,"div"),M(1),m()),2&e){const t=F();b(),zi(" ",t.presetDescription," ")}}let r_e=(()=>{class e extends Ct{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 Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{device:"device"},features:[Y],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),M(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"),M(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),se("ngModelChange",function(a){return he(r.preset,a)||(r.preset=a),a}),L("change",function(){return r.loadPreset()}),y(8,"option",4),M(9,"No Preset (default)"),m(),y(10,"option",4),M(11,"Copy"),m(),y(12,"option",4),M(13,"Performance"),m(),y(14,"option",4),M(15,"Custom"),m()()()(),j(16,i_e,2,1,"div",5),B(17,"p"),y(18,"div",6)(19,"div",7)(20,"input",8),se("ngModelChange",function(a){return he(r.debug,a)||(r.debug=a),a}),L("change",function(){return r.update()}),m()(),y(21,"span",9),M(22,"ffmpeg debug"),m()(),y(23,"div",6)(24,"div",7)(25,"input",8),se("ngModelChange",function(a){return he(r.useSeparateProcesses,a)||(r.useSeparateProcesses=a),a}),L("change",function(){return r.update()}),m()(),y(26,"span",9),M(27,"use separate processes for video and audio"),m()(),y(28,"div",6)(29,"div",7)(30,"input",8),se("ngModelChange",function(a){return he(r.readRate,a)||(r.readRate=a),a}),L("change",function(){return r.update()}),m()(),y(31,"span",9),M(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),M(37,"vcodec"),m(),y(38,"input",11),se("ngModelChange",function(a){return he(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),M(43,"acodec"),m(),y(44,"input",12),se("ngModelChange",function(a){return he(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),M(49,"videoFilter"),m(),y(50,"input",13),se("ngModelChange",function(a){return he(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),M(55,"encoderOptions"),m(),y(56,"input",14),se("ngModelChange",function(a){return he(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),M(61,"probeSize"),m(),y(62,"input",15),se("ngModelChange",function(a){return he(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),M(67,"analyzeDuration"),m(),y(68,"input",15),se("ngModelChange",function(a){return he(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),M(73,"maxStreams"),m(),y(74,"input",15),se("ngModelChange",function(a){return he(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),M(79,"maxWidth"),m(),y(80,"input",15),se("ngModelChange",function(a){return he(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),M(85,"maxHeight"),m(),y(86,"input",15),se("ngModelChange",function(a){return he(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),M(91,"fps"),m(),y(92,"input",15),se("ngModelChange",function(a){return he(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),M(97,"bitrate"),m(),y(98,"input",15),se("ngModelChange",function(a){return he(r.maxBitrate,a)||(r.maxBitrate=a),a}),L("change",function(){return r.update()}),m()()()),2&i&&(b(7),ae("ngModel",r.preset),b(),x("ngValue",0),b(2),x("ngValue",1),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngIf",r.presetDescription),b(4),ae("ngModel",r.debug),b(5),ae("ngModel",r.useSeparateProcesses),b(5),ae("ngModel",r.readRate),b(5),x("checked",void 0!==r.vcodec||null),b(3),ae("ngModel",r.vcodec),U("disabled",void 0===r.vcodec||null),b(3),x("checked",void 0!==r.acodec||null),b(3),ae("ngModel",r.acodec),U("disabled",void 0===r.acodec||null),b(3),x("checked",void 0!==r.videoFilter||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.videoFilter),U("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.encoderOptions||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.encoderOptions),U("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.probeSize||null),b(3),ae("ngModel",r.probeSize),U("disabled",void 0===r.probeSize||null),b(3),x("checked",void 0!==r.analyzeDuration||null),b(3),ae("ngModel",r.analyzeDuration),U("disabled",void 0===r.analyzeDuration||null),b(3),x("checked",void 0!==r.maxStreams||null),b(3),ae("ngModel",r.maxStreams),U("disabled",void 0===r.maxStreams||null),b(3),x("checked",void 0!==r.maxWidth||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.maxWidth),U("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxHeight||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.maxHeight),U("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxFPS||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.maxFPS),U("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxBitrate||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Jo),b(2),ae("ngModel",r.maxBitrate),U("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null))},dependencies:[wt,va,ka,bo,nc,kn,Gr,bt,mt,Fn],encapsulation:2})}return e})();function o_e(e,n){if(1&e){const t=Be();y(0,"div",5)(1,"span"),M(2,"Refresh Interval"),m(),y(3,"div",6)(4,"div",7)(5,"input",8),se("ngModelChange",function(r){de(t);const o=F();return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),m(),y(6,"div",9)(7,"span",10),M(8,"minutes"),m()()()()()}if(2&e){const t=F();b(5),ae("ngModel",t.value),U("class",t.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end")}}let a_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=0;inputIsInvalid=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{device:"device"},features:[Y],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"),M(3,"Periodic Snapshot Refresh"),m(),y(4,"div",2)(5,"input",3),L("change",function(){return r.switchSetting()}),m()()(),j(6,o_e,9,2,"div",4),y(7,"small")(8,"i"),M(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"),M(11," Best used with 'Cloud Snapshots' handling method."),B(12,"br"),M(13," Every setting below 5 minutes will be discarded due to performance reasons."),B(14,"br"),m()()()),2&i&&(b(5),U("checked",r.value>0||null),b(),x("ngIf",r.value))},dependencies:[wt,bo,nc,bt,mt,Fn],encapsulation:2})}return e})(),s_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{device:"device"},features:[Y],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"),M(3,"Night-Vision Improvement for camera snapshots"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),B(9,"br"),y(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&i&&(b(5),ae("ngModel",r.value))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),c_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{device:"device"},features:[Y],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"),M(3,"Immediate Notification on ring events"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&i&&(b(5),ae("ngModel",r.value))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})();var um=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(um||{}),hm=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}(hm||{});function l_e(e,n){1&e&&(y(0,"div",13),M(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 d_e(e,n){1&e&&(y(0,"div",14),M(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 u_e(e,n){1&e&&(y(0,"div",18),M(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 h_e(e,n){if(1&e&&(y(0,"div",14)(1,"b"),M(2,"Caution!"),m(),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),M(5,"here"),m(),M(6," for more informtaion. "),m(),j(7,d_e,2,0,"div",16)(8,u_e,2,0,"div",17)),2&e){const t=F(2);b(7),x("ngIf",2===t.chargingStatus),b(),x("ngIf",4===t.chargingStatus)}}function p_e(e,n){if(1&e){const t=Be();y(0,"div",1),j(1,l_e,2,0,"div",2),y(2,"div",3)(3,"span"),M(4,"Snapshot Handling Method"),m(),y(5,"div",4)(6,"select",5),se("ngModelChange",function(r){de(t);const o=F();return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),y(7,"option",6),M(8,"Force Refresh Snapshots"),m(),y(9,"option",6),M(10,"Balanced"),m(),y(11,"option",6),M(12,"Default (Cloud)"),m()()()(),j(13,h_e,9,2,"ng-template",7),y(14,"table",8)(15,"thead")(16,"tr")(17,"th",9),M(18,"Mode"),m(),y(19,"th",9),M(20,"Force Refresh Snapshots"),m(),y(21,"th",9),M(22,"Balanced"),m(),y(23,"th",9),M(24,"Default (Cloud)"),m()()(),y(25,"tbody")(26,"tr")(27,"td"),M(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"),M(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"),M(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"),M(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=F();b(),x("ngIf",!t.standalone),b(5),ae("ngModel",t.value),b(),x("ngValue",1),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngIf",1===t.value)}}let f_e=(()=>{class e extends Ct{device;value=3;ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;chargingStatus=hm.PLUGGED;standalone=!1;constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){yield t.readValue()})()}readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{device:"device"},features:[Y],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&&j(0,p_e,62,6,"div",0),2&i&&x("ngIf",r.standalone||!r.standalone&&r.ignoreMultipleDevicesWarning)},dependencies:[wt,va,ka,Gr,bt,mt,Fn,So,Ia],encapsulation:2})}return e})();function g_e(e,n){1&e&&(y(0,"div"),M(1," You can enable this setting nevertheless in "),y(2,"a",9),M(3,"Plugin Settings"),m(),B(4,"p"),m())}function y_e(e,n){if(1&e&&(y(0,"div",7),M(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"),j(3,g_e,5,0,"div",8),m()),2&e){const t=F();b(3),x("ngIf",!t.ignoreMultipleDevicesWarning)}}function m_e(e,n){1&e&&(y(0,"div",7),M(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 v_e(e,n){1&e&&(y(0,"div",10),M(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 k_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){yield t.readValue()})()}device;hsv=false;chargingStatus=hm.PLUGGED;camerasOnSameStation=[];standalone=!0;ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-hsv"]],inputs:{device:"device"},features:[Y],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),M(3,"Use HomeKit Secure Video"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.hsv,a)||(r.hsv=a),a}),L("change",function(){return r.update()}),m()()(),j(6,y_e,4,1,"div",5)(7,m_e,2,0,"div",5)(8,v_e,2,0,"div",6),y(9,"small")(10,"i"),M(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"),M(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"),M(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"),M(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),ae("ngModel",r.hsv),U("disabled",!r.standalone&&!r.ignoreMultipleDevicesWarning||null),b(),x("ngIf",!r.standalone),b(),x("ngIf",2===r.chargingStatus&&r.hsv),b(),x("ngIf",4===r.chargingStatus&&r.hsv))},dependencies:[wt,kn,bt,mt,Fn,kr],encapsulation:2})}return e})();function __e(e,n){if(1&e){const t=Be();y(0,"div",3)(1,"label",4),M(2),m(),y(3,"div",5)(4,"input",6),se("ngModelChange",function(r){const o=de(t).$implicit;return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),m()()()}if(2&e){const t=n.$implicit;b(),x("for","flexSwitchCheck"+t.name),b(),zi(" Display HomeKit switch to turn ",t.description," on/off "),b(2),ae("ngModel",t.value),x("id","flexSwitchCheck"+t.name)}}let M_e=(()=>{class e extends Ct{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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-camera-buttons"]],inputs:{device:"device"},features:[Y],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),j(1,__e,5,4,"div",1),y(2,"small")(3,"i"),M(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),y(5,"a",2),M(6,"here"),m(),M(7," for more details. "),m()()()),2&i&&(b(),x("ngForOf",r.buttonConfigs))},dependencies:[ph,wt,kn,bt,mt],encapsulation:2})}return e})();function b_e(e,n){1&e&&(y(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let w_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;rtspIsEnabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-talkback"]],inputs:{device:"device"},features:[Y],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"),M(3,"Enable Talkback (Two way communication)"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),j(6,b_e,2,0,"div",4),y(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),B(10,"p"),M(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),ae("ngModel",r.value),b(),x("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[wt,kn,bt,mt,Fn],encapsulation:2})}return e})();let D_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=true;samplerate=0;readValue(){var t=this;return Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-audio"]],inputs:{device:"device"},features:[Y],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"),M(3,"Enable Audio"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),B(9,"br"),M(10," If you encounter problems try to disable this setting. "),m()(),B(11,"p"),y(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),m(),y(15,"div",5)(16,"select",6),se("ngModelChange",function(a){return he(r.samplerate,a)||(r.samplerate=a),a}),L("change",function(){return r.update()}),y(17,"option",7),M(18,"Default Sample Rate"),m(),y(19,"option",7),M(20,"8 kHz"),m(),y(21,"option",7),M(22,"16 kHz"),m(),y(23,"option",7),M(24,"24 kHz"),m()()()()()),2&i&&(b(5),ae("ngModel",r.value),b(11),ae("ngModel",r.samplerate),U("disabled",!r.value||null),b(),x("ngValue",0),b(2),x("ngValue",8),b(2),x("ngValue",16),b(2),x("ngValue",24))},dependencies:[wt,va,ka,kn,Gr,bt,mt],encapsulation:2})}return e})();function x_e(e,n){1&e&&(y(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let S_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;talkbackIsEnabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-rtsp-streaming"]],inputs:{device:"device"},features:[Y],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"),M(3,"Use RTSP streaming"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),j(6,x_e,2,0,"div",4),y(7,"small")(8,"i"),M(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),ae("ngModel",r.value),b(),x("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[wt,kn,bt,mt,Fn],encapsulation:2})}return e})();function E_e(e,n){1&e&&(y(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function I_e(e,n){1&e&&(y(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let T_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;checkDeviceConfig=new Q;value="true";disabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-camera"]],inputs:{device:"device"},outputs:{checkDeviceConfig:"checkDeviceConfig"},features:[Y],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"),M(3,"Operation Mode"),m(),y(4,"div",2)(5,"select",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),y(6,"option",4),M(7,"Motion Sensor"),m(),y(8,"option",5),M(9,"Camera"),m()()()(),j(10,E_e,3,0,"small",6)(11,I_e,3,0,"small",6),m()),2&i&&(b(5),ae("ngModel",r.value),U("disabled",!!r.disabled||null),b(5),x("ngIf",r.disabled),b(),x("ngIf",!r.disabled))},dependencies:[wt,va,ka,Gr,bt,mt,Fn],encapsulation:2})}return e})(),A_e=(()=>{class e extends Ct{identifier="";constructor(t){super(t)}ngOnInit(){this.readValue()}accessory;isStation=!1;isDisabled=!1;ignored=new Q;value=!0;readValue(){var t=this;return Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory",isStation:"isStation",isDisabled:"isDisabled"},outputs:{ignored:"ignored"},features:[Y],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),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()),2&i&&(b(),ae("ngModel",r.value),x("id",r.isStation?"ignoreStation":"ignoreDevice")("disabled",r.isDisabled))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),N_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}station;value=[];readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{station:"station"},features:[Y],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"),M(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"),M(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"),M(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"),M(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"),M(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"),M(25," In order to do so, you must specify in which station mode the alarm can be triggered. "),B(26,"p"),M(27," Please be aware that this setting can only be set on a per station basis and not per automation."),B(28,"br"),M(29," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),B(30,"p"),M(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"),M(33," The native alarm delay setting is currently not supported. "),m()()()),2&i&&(b(5),U("checked",-1!==r.value.indexOf(0)||null),b(5),U("checked",-1!==r.value.indexOf(1)||null),b(5),U("checked",-1!==r.value.indexOf(2)||null),b(5),U("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})}return e})();function R_e(e,n){if(1&e&&(y(0,"p"),M(1),y(2,"span",6),M(3),m()()),2&e){const t=F(2);b(),zi("",t.device.displayName," - "),b(2),vu("(",t.device.type," - ",t.device.typename," - ",t.device.uniqueId,")")}}function O_e(e,n){1&e&&j(0,R_e,4,4,"ng-template",5),2&e&&x("ngIf",F().device)}function F_e(e,n){if(1&e&&(y(0,"p"),M(1),y(2,"span",6),M(3),m()()),2&e){const t=F(2);b(),zi("",t.station.displayName," - "),b(2),vu("(",t.station.type," - ",t.station.typename," - ",t.station.uniqueId,")")}}function P_e(e,n){1&e&&j(0,F_e,4,4,"ng-template",5),2&e&&x("ngIf",F().station)}function L_e(e,n){if(1&e){const t=Be();y(0,"div",9)(1,"label",10),M(2,"Enable Device on Apple Homekit"),m(),y(3,"app-ignore-accessory",11),L("ignored",function(r){return de(t),ue(F(2).ignoredDeviceChanged(r))}),m()()}if(2&e){const t=F(2);b(3),x("accessory",t.device)("isDisabled",t.device.isKeypad)}}function V_e(e,n){1&e&&(y(0,"p"),M(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 H_e(e,n){1&e&&(y(0,"p"),M(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 j_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-rtsp-streaming",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function B_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-audio",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function z_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-talkback",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function q_e(e,n){if(1&e){const t=Be();y(0,"app-enable-camera",19),L("checkDeviceConfig",function(){return de(t),ue(F(3).checkDeviceConfig())}),m(),j(1,j_e,3,1,"div",8)(2,B_e,3,1,"div",8)(3,z_e,3,1,"div",8)}if(2&e){const t=F(3);x("device",t.device),b(),x("ngIf",t.enableCamera&&t.supportsRTSP),b(),x("ngIf",t.enableCamera),b(),x("ngIf",t.enableCamera&&t.supportsTalkback)}}function U_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-hsv",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function G_e(e,n){if(1&e&&(B(0,"app-camera-buttons",20),j(1,U_e,3,1,"div",8)),2&e){const t=F(3);x("device",t.device),b(),x("ngIf",t.enableCamera)}}function $_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-immediate-notification-on-ring",20),m()),2&e){const t=F(5);b(2),x("device",t.device)}}function W_e(e,n){if(1&e&&(B(0,"app-snapshot-handling-method",20),j(1,$_e,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=F(4);x("device",t.device),b(),x("ngIf",t.isDoorbell),b(2),x("device",t.device),b(2),x("device",t.device)}}function Z_e(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),M(3,"Snapshot Behaviour"),m()(),y(4,"div",16)(5,"div",17),j(6,W_e,6,4,"ng-template"),m()()())}function K_e(e,n){1&e&&B(0,"app-advanced-videoconfig",20),2&e&&x("device",F(4).device)}function Y_e(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),M(3,"Advanced Video Config"),m()(),y(4,"div",16)(5,"div",17),j(6,K_e,1,1,"ng-template"),m()()())}function Q_e(e,n){if(1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),M(4,"Device Settings"),m()(),y(5,"div",16)(6,"div",17),j(7,q_e,4,4,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),M(11,"HomeKit Behaviour"),m()(),y(12,"div",16)(13,"div",17),j(14,G_e,2,2,"ng-template"),m()()(),j(15,Z_e,7,0,"div",18)(16,Y_e,7,0,"div",18),m()),2&e){const t=F(2);x("closeOthers",!0),b(15),x("ngIf",t.enableCamera),b(),x("ngIf",t.enableCamera)}}function J_e(e,n){if(1&e&&j(0,L_e,4,2,"div",7)(1,V_e,2,0,"p",8)(2,H_e,2,0,"p",8)(3,Q_e,17,3,"ng-template",5),2&e){const t=F();x("ngIf",!t.device.isKeypad),b(),x("ngIf",t.device.isKeypad),b(),x("ngIf",t.device.isKeypad),b(),x("ngIf",!t.device.ignored&&t.isCamera)}}function X_e(e,n){1&e&&B(0,"app-guard-modes-mapping",24),2&e&&x("station",F(3).station)}function e4e(e,n){1&e&&B(0,"app-manual-alarm-modes",24),2&e&&x("station",F(3).station)}function t4e(e,n){1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),M(4,"Customize HomeKit-Eufy App Mode Mapping"),m()(),y(5,"div",16)(6,"div",17),j(7,X_e,1,1,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),M(11,"Manual Alarm Trigger Modes"),m()(),y(12,"div",16)(13,"div",17),j(14,e4e,1,1,"ng-template"),m()()()()),2&e&&x("closeOthers",!0)}function n4e(e,n){if(1&e){const t=Be();y(0,"div",9)(1,"label",21),M(2,"Enable Device Security Control on Apple Homekit"),m(),y(3,"app-ignore-accessory",22),L("ignored",function(r){return de(t),ue(F().ignoredStationChanged(r))}),m()(),j(4,t4e,15,1,"div",23)}if(2&e){const t=F();b(3),x("accessory",t.station)("isStation",!0),b(),x("ngIf",!t.station.ignored)}}let i4e=(()=>{class e extends Ct{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)(R(lt),R(ya))};static \u0275cmp=re({type:e,selectors:[["app-accessory-config-options"]],features:[Y],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),M(2," Back\n"),m(),ci(3,2),j(4,O_e,1,1,"ng-template",3)(5,P_e,1,1,"ng-template",4),li(),j(6,J_e,4,4,"ng-template",5)(7,n4e,5,3,"ng-template",5)),2&i&&(b(3),x("ngSwitch",r.type),b(),x("ngSwitchCase","device"),b(2),x("ngIf",r.device),b(),x("ngIf",r.station&&!r.station.disabled))},dependencies:[kr,Fn,ad,ny,I8,So,Ia,A_e,T_e,S_e,D_e,w_e,M_e,k_e,f_e,c_e,s_e,a_e,r_e,R7,N_e,zy,vC,Fh,xo,kC,yC,By],encapsulation:2})}return e})();const r4e={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 o4e=(()=>{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 Z(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 Z(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)(oe(lt))};static \u0275prov=H({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function a4e(e,n){1&e&&(M(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"),M(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 s4e(e,n){if(1&e){const t=Be();y(0,"p",5)(1,"ngb-alert",6),L("closed",function(){return de(t),ue(F().resetLoginFailed())}),B(2,"lucide-angular",7),y(3,"strong"),M(4,"Login was not successful!"),m()()()}2&e&&(b(),x("dismissible",!0))}function c4e(e,n){if(1&e){const t=Be();y(0,"div",8)(1,"div",9),B(2,"lucide-angular",10),y(3,"div"),M(4," Please make sure to restart plugin after you're done. "),m()(),y(5,"button",11),L("click",function(){return de(t),ue(F().loginStep=1)}),M(6,"Continue"),m()()}}function l4e(e,n){1&e&&(M(0,"You can leave this field blank."),B(1,"p"),M(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",30),M(4,"this disussion"),m(),M(5," to learn more."))}function d4e(e,n){if(1&e&&(y(0,"option"),M(1),m()),2&e){const t=n.$implicit,i=F(2);U("value",t.short)("selected",i.credentials.country===t.short||null),b(),zi("",t.long," ")}}function u4e(e,n){1&e&&B(0,"span",31)}function h4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function p4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",12),B(2,"lucide-angular",10),y(3,"div"),M(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",13),M(6,"here"),m(),M(7,". "),m()(),y(8,"div",14)(9,"input",15),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.username,r)||(o.credentials.username=r),ue(r)}),m(),y(10,"label",16),M(11,"Email address"),m()(),B(12,"p"),y(13,"div",14)(14,"input",17),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.password,r)||(o.credentials.password=r),ue(r)}),m(),y(15,"label",18),M(16,"Password"),m()(),B(17,"p"),y(18,"div",14),j(19,l4e,6,0,"ng-template",null,1,ln),y(21,"input",19),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.deviceName,r)||(o.credentials.deviceName=r),ue(r)}),m(),y(22,"label",20),M(23,"Device Name"),m()(),y(24,"div",21)(25,"div",22)(26,"select",23),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.country,r)||(o.credentials.country=r),ue(r)}),j(27,d4e,2,3,"option",24),m(),y(28,"small")(29,"i"),M(30," Make sure to use the same country that you use to login with the eufy app. "),m()()(),B(31,"span",25),y(32,"div",26)(33,"button",27),L("click",function(){return de(t),ue(F().login())}),j(34,u4e,1,0,"span",28),M(35," Login "),j(36,h4e,2,0,"span",4),m(),y(37,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(38," Cancel "),m()()()()}if(2&e){const t=Mt(20),i=F();b(9),ae("ngModel",i.credentials.username),U("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),ae("ngModel",i.credentials.password),U("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(7),ae("ngModel",i.credentials.deviceName),x("ngbTooltip",t)("closeDelay",2500),U("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),ae("ngModel",i.credentials.country),U("disabled",!!i.loginInProgress||null),b(),x("ngForOf",i.countries),b(6),U("disabled",!!i.loginInProgress||null),b(),x("ngIf",i.loginInProgress),b(2),x("ngIf",i.loginInProgress),b(),U("disabled",!!i.loginInProgress||null)}}function f4e(e,n){1&e&&B(0,"span",31)}function g4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function y4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",32),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),y(3,"div",33)(4,"div",34)(5,"input",35),se("ngModelChange",function(r){de(t);const o=F();return he(o.otp,r)||(o.otp=r),ue(r)}),m(),y(6,"label",36),M(7,"2FA Code"),m()()(),y(8,"div",37)(9,"div",38)(10,"button",39),L("click",function(){return de(t),ue(F().login())}),j(11,f4e,1,0,"span",28),M(12," Verify "),j(13,g4e,2,0,"span",4),m()()(),y(14,"div",33)(15,"div",38)(16,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(17," Cancel "),m()()()()}if(2&e){const t=F();b(5),ae("ngModel",t.otp),U("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),U("disabled",!!t.loginInProgress||null),b(),x("ngIf",t.loginInProgress),b(2),x("ngIf",t.loginInProgress),b(3),U("disabled",!!t.loginInProgress||null)}}function m4e(e,n){1&e&&B(0,"span",31)}function v4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function k4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",32),M(2,"Please enter the captcha below."),m(),y(3,"div",37),B(4,"img",40),m(),y(5,"div",33)(6,"div",34)(7,"input",35),se("ngModelChange",function(r){de(t);const o=F();return he(o.captcha,r)||(o.captcha=r),ue(r)}),m(),y(8,"label",36),M(9,"Captcha"),m()()(),y(10,"div",37)(11,"div",38)(12,"button",39),L("click",function(){return de(t),ue(F().login())}),j(13,m4e,1,0,"span",28),M(14," Verify "),j(15,v4e,2,0,"span",4),m()()(),y(16,"div",33)(17,"div",38)(18,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(19," Cancel "),m()()()()}if(2&e){const t=F();b(4),x("src",t.captchaImageData,P1),b(3),ae("ngModel",t.captcha),U("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),U("disabled",!!t.loginInProgress||null),b(),x("ngIf",t.loginInProgress),b(2),x("ngIf",t.loginInProgress),b(3),U("disabled",!!t.loginInProgress||null)}}var Ai=function(e){return e[e.START=0]="START",e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Ai||{});let _4e=(()=>{class e{loginService;routerService;countries=[];credentials={username:"",password:"",country:"US",deviceName:""};otp="";captcha="";captchaImageData="";captchaId="";loginInProgress=!1;loginFailed=!1;loginStep=Ai.START;firstLoginAssumed=!1;emailIsValid=!0;passwordIsValid=!0;otpIsValid=!0;captchaIsValid=!0;constructor(t,i){this.loginService=t,this.routerService=i}ngOnInit(){var t=this;return Z(function*(){t.getCredentials(),t.fillCountryArray()})()}getCredentials(){var t=this;return Z(function*(){try{t.credentials=t.loginService.getCredentials()}catch(i){t.firstLoginAssumed=!0,console.log(i)}})()}fillCountryArray(){Object.entries(r4e).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Ai.LOGIN&&this.loginWithCredentials(),this.loginStep===Ai.TFA&&this.loginWithTFA(),this.loginStep===Ai.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return Z(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 Z(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 Z(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===um.TFA)return void(this.loginStep=Ai.TFA);if(t&&t.failReason&&t.failReason===um.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=Ai.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=Ai.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===Ai.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===Ai.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===Ai.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===Ai.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)(R(o4e),R(xi))};static \u0275cmp=re({type:e,selectors:[["app-login"]],decls:7,vars:5,consts:[["popInfo",""],["deviceNameExplanation",""],["class","col-11 col-sm-7",4,"ngIf"],["class","text-right",4,"ngIf"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","triangle-alert"],[1,"text-right"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center","text-left"],["name","info",1,"m-2"],["type","button",1,"btn","btn-primary",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Create-a-dedicated-admin-account-for-Homebridge-Eufy-Security-Plugin","target","_blank","rel","noopener noreferrer"],[1,"form-floating","mb-3"],["type","email","id","floatingInput","placeholder","name@example.com","ngModel","","email","",3,"ngModelChange","ngModel"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModelChange","ngModel"],["for","floatingPassword"],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModelChange","ngModel","ngbTooltip","closeDelay"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"col-0","col-sm-1"],[1,"col-12","col-sm-5","text-end","mb-3"],["type","button",1,"btn","btn-success","col-12","mb-3",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["type","button",1,"btn","btn-primary","col-12",3,"click"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[1,"row","d-flex","justify-content-center"],[1,"form-floating","mb-3","col-8","col-sm-6"],["type","text","id","floatingOTP","placeholder","",3,"ngModelChange","ngModel"],["for","floatingOTP"],[1,"row","d-flex","justify-content-center","mb-3"],[1,"col-8","col-sm-6"],["type","button",1,"btn","btn-success","col-12",3,"click"],["alt","captcha image",1,"col-10","col-sm-8",3,"src"]],template:function(i,r){1&i&&j(0,a4e,4,0,"ng-template",null,0,ln)(2,s4e,5,1,"p",2)(3,c4e,7,0,"div",3)(4,p4e,39,18,"div",4)(5,y4e,18,7,"div",4)(6,k4e,20,8,"div",4),2&i&&(b(2),x("ngIf",r.loginFailed),b(),x("ngIf",0===r.loginStep),b(),x("ngIf",1===r.loginStep),b(),x("ngIf",2===r.loginStep),b(),x("ngIf",3===r.loginStep))},dependencies:[Fn,qy,wt,va,ka,bo,Gr,bt,Ey,mt,p7,ph,So,Ia],encapsulation:2})}return e})();function M4e(e,n){if(1&e){const t=Be();y(0,"p",7)(1,"ngb-alert",8),L("closed",function(){return de(t),ue(F().failed=!1)}),B(2,"lucide-angular",9),y(3,"strong"),M(4,"Reset was not successful!"),m()()()}2&e&&(b(),x("dismissible",!0))}let b4e=(()=>{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 Z(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)(R(xi),R(lt))};static \u0275cmp=re({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","alert-triangle"]],template:function(i,r){1&i&&(y(0,"div",0),j(1,M4e,5,1,"p",1),y(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),m(),y(5,"div",4)(6,"button",5),L("click",function(){return r.cancel()}),M(7,"No"),m(),y(8,"button",6),L("click",function(){return r.resetEverything()}),M(9,"Do it!"),m()()()()),2&i&&(b(),x("ngIf",r.failed),b(5),U("disabled",!!r.disabled||null),b(2),U("disabled",!!r.disabled||null))},dependencies:[Fn,qy,So,Ia],encapsulation:2})}return e})();var w4e=ht(838);function C4e(e,n){if(1&e&&(y(0,"div",8),M(1),m()),2&e){const t=F();b(),zi(" ",t.failureMessage," ")}}function D4e(e,n){1&e&&(y(0,"span"),M(1,"Download Logs"),m())}function x4e(e,n){1&e&&B(0,"span",11)}function S4e(e,n){1&e&&(y(0,"span"),M(1," Generating Log File..."),m())}function E4e(e,n){if(1&e){const t=Be();y(0,"button",9),L("click",function(){return de(t),ue(F().downloadLogs())}),j(1,D4e,2,0,"span",7)(2,x4e,1,0,"span",10)(3,S4e,2,0,"span",7),m()}if(2&e){const t=F();U("disabled",!!t.isDownloading||null),b(),x("ngIf",!t.isDownloading),b(),x("ngIf",t.isDownloading),b(),x("ngIf",t.isDownloading)}}function I4e(e,n){if(1&e){const t=Be();y(0,"button",12),L("click",function(){return de(t),ue(F().openLink())}),y(1,"span"),M(2,"Download Logs"),m()()}}function T4e(e,n){if(1&e&&(y(0,"ngb-progressbar",13),M(1),m()),2&e){const t=F();x("value",t.progress)("animated",!0)("striped",!0),b(),Bi(t.status)}}function A4e(e,n){1&e&&(y(0,"small")(1,"i")(2,"b"),M(3,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),y(4,"a",14),M(5,"site"),m(),M(6," can help."),m()()())}let O7=(()=>{class e{router;zone;progress=0;status="";constructor(t,i){this.router=t,this.zone=i}ngOnInit(){this.router.events.subscribe(t=>{t instanceof Zl&&""!==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 Z(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=w4e.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)(R(xi),R(ge))};static \u0275cmp=re({type:e,selectors:[["app-download-logs"]],decls:10,vars:5,consts:[[1,"settingsItem"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-primary col-12 col-sm-4",3,"click",4,"ngIf"],["type","button","class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],["class","mb-3","type","success",3,"value","animated","striped",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-primary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],["type","button",1,"btn","btn-success","col-12","col-sm-4",3,"click"],["type","success",1,"mb-3",3,"value","animated","striped"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(i,r){1&i&&(y(0,"div",0),j(1,C4e,2,1,"div",1),y(2,"div",2)(3,"span",3),M(4,"Download Logs"),m(),j(5,E4e,4,4,"button",4)(6,I4e,3,0,"button",5),m(),j(7,T4e,2,4,"ngb-progressbar",6),y(8,"p"),j(9,A4e,7,0,"small",7),m()()),2&i&&(b(),x("ngIf",r.failed),b(4),x("ngIf",!r.hasDownloaded),b(),x("ngIf",r.hasDownloaded),b(),x("ngIf",!r.hasDownloaded&&r.isDownloading),b(2),x("ngIf",r.hasDownloaded))},dependencies:[Fn,WW],encapsulation:2})}return e})(),N4e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-reset-plugin"]],decls:12,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"],["href","https://github.com/homebridge/homebridge/wiki/Basic-Troubleshooting"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),m(),y(4,"a",3),M(5,"Remove everything"),m()(),y(6,"small")(7,"i"),M(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),M(10,"Basic Troubleshooting"),m(),M(11,") "),m()()())},dependencies:[kr],encapsulation:2})}return e})(),R4e=(()=>{class e extends Ct{enableDetailedLogging=mi.enableDetailedLogging;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-detailed-logging"]],features:[Y],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),M(3,"Debug Mode"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.enableDetailedLogging,a)||(r.enableDetailedLogging=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.enableDetailedLogging))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})();function O4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"p"),M(2,"To troubleshoot effectively before rising your issue to us:"),m(),y(3,"ol")(4,"li"),M(5,"Search Existing Issues: Check "),y(6,"a",5),M(7,"Common Issues"),m(),M(8," and "),y(9,"a",6),M(10,"User-Raised Issues"),m(),M(11,"."),m(),y(12,"li"),M(13,"Join Discord Server: Engage with developers and community on "),y(14,"a",7),M(15,"Discord"),m(),M(16,"."),m(),y(17,"li"),M(18,"Enable debug logging"),m(),y(19,"li"),M(20,"Reboot your system"),m(),y(21,"li"),M(22,"Reproduce the issue"),m(),y(23,"li"),M(24,"Download logs"),m()(),y(25,"p"),M(26,"Resetting the system may also help."),m(),y(27,"p"),M(28,"Remember to disable debug logging after troubleshooting."),m(),y(29,"div",8)(30,"button",9),L("click",function(){return de(t),F(),ue(Mt(5).toggle())}),M(31," OK! let me go! "),m()()()}if(2&e){const t=F();b(30),U("aria-expanded",!t.isCollapsed)}}const F4e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:zke},{path:"advancedConfig",component:n_e},{path:"downloadLogs",component:O7},{path:"githubissue",component:(()=>{class e{isCollapsed=!0;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-github-issue"]],decls:11,vars:2,consts:[["collapse","ngbCollapse"],["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"],[4,"ngIf"],[3,"ngbCollapseChange","ngbCollapse"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues","target","_blank","rel","noopener noreferrer"],["href","https://github.com/homebridge-eufy-security/plugin/issues","target","_blank","rel","noopener noreferrer"],["href","https://discord.gg/hZqqTfjzet","target","_blank","rel","noopener noreferrer"],[1,"text-center"],["type","button",1,"btn","btn-outline-primary",3,"click"]],template:function(i,r){if(1&i){const o=Be();y(0,"a",1),B(1,"lucide-angular",2),M(2," Back\n"),m(),j(3,O4e,32,1,"div",3),y(4,"div",4,0),se("ngbCollapseChange",function(s){return de(o),he(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),x("ngIf",r.isCollapsed),b(),ae("ngbCollapse",r.isCollapsed))},dependencies:[kr,Fn,jy,So,Ia,O7,N4e,R4e],encapsulation:2})}return e})()},{path:"config/:type/:id",component:i4e},{path:"login",component:_4e},{path:"reset",component:b4e},{path:"**",redirectTo:"/accessories"}];let P4e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({imports:[j8.forRoot(F4e,{scrollPositionRestoration:"enabled"}),j8]})}return e})();function P7(e){return"server"===e}const pm=new z("");let L7=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,i){this._zone=i,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r,o){return this._findPluginFor(i).addEventListener(t,i,r,o)}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 P(5101,!1);return this._eventNameToPlugin.set(t,i),i}static \u0275fac=function(i){return new(i||e)(oe(pm),oe(ge))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();class V7{_doc;constructor(n){this._doc=n}manager}const Zh="ng-app-id";function H7(e){for(const n of e)n.remove()}function j7(e,n){const t=n.createElement("style");return t.textContent=e,t}function fm(e,n){const t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}let B7=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.isServer=P7(o),function B4e(e,n,t,i){const r=e.head?.querySelectorAll(`style[${Zh}="${n}"],link[${Zh}="${n}"]`);if(r)for(const o of r)o.removeAttribute(Zh),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&t.set(o.textContent,{usage:0,elements:[o]})}(t,i,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,i){for(const r of t)this.addUsage(r,this.inline,j7);i?.forEach(r=>this.addUsage(r,this.external,fm))}removeStyles(t,i){for(const r of t)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(t,i,r){const o=i.get(t);o?o.usage++:i.set(t,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(t,this.doc)))})}removeUsage(t,i){const r=i.get(t);r&&(r.usage--,r.usage<=0&&(H7(r.elements),i.delete(t)))}ngOnDestroy(){for(const[,{elements:t}]of[...this.inline,...this.external])H7(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(const[i,{elements:r}]of this.inline)r.push(this.addElement(t,j7(i,this.doc)));for(const[i,{elements:r}]of this.external)r.push(this.addElement(t,fm(i,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(Zh,this.appId),t.appendChild(i)}static \u0275fac=function(i){return new(i||e)(oe(Pt),oe(Ko),oe(Dk,8),oe(C0))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();const gm={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"},ym=/%COMP%/g,W4e=new z("",{providedIn:"root",factory:()=>!0});function q7(e,n){return n.map(t=>t.replace(ym,e))}let U7=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,i,r,o,a,s,c,l=null,d=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.tracingService=d,this.platformIsServer=P7(s),this.defaultRenderer=new mm(t,a,c,this.platformIsServer,this.tracingService)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===wi.ShadowDom&&(i={...i,encapsulation:wi.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof $7?r.applyToHost(t):r instanceof vm&&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,g=this.tracingService;switch(i.encapsulation){case wi.Emulated:o=new $7(c,l,i,this.appId,d,a,s,h,g);break;case wi.ShadowDom:return new Q4e(c,l,t,i,a,s,this.nonce,h,g);default:o=new vm(c,l,i,d,a,s,h,g)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(i){return new(i||e)(oe(L7),oe(B7),oe(Ko),oe(W4e),oe(Pt),oe(C0),oe(ge),oe(Dk),oe(rs,8))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();class mm{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,i,r,o){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(gm[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(G7(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(G7(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 P(-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=gm[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=gm[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,r){if("string"==typeof n&&!(n=mo().getGlobalEventTarget(this.doc,n)))throw new P(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,t,o)),this.eventManager.addEventListener(n,t,o,r)}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function G7(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Q4e extends mm{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,i,r,o,a,s,c,l){super(n,o,a,c,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=q7(r.id,d);for(const g of d){const f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=g,this.shadowRoot.appendChild(f)}const h=r.getExternalStyles?.();if(h)for(const g of h){const f=fm(g,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}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 vm extends mm{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,i,r,o,a,s,c,l){super(n,o,a,s,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=l?q7(l,d):d,this.styleUrls=i.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class $7 extends vm{contentAttr;hostAttr;constructor(n,t,i,r,o,a,s,c,l){const d=r+"-"+i.id;super(n,t,i,o,a,s,c,l,d),this.contentAttr=function Z4e(e){return"_ngcontent-%COMP%".replace(ym,e)}(d),this.hostAttr=function K4e(e){return"_nghost-%COMP%".replace(ym,e)}(d)}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}}class km extends sL{supportsDOMEvents=!0;static makeCurrent(){!function aL(e){Ob??=e}(new km)}onAndCancel(n,t,i,r){return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}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 J4e(){return Cd=Cd||document.querySelector("base"),Cd?Cd.getAttribute("href"):null}();return null==t?null:function X4e(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Cd=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function V4e(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 Cd=null,tMe=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||e)};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})(),nMe=(()=>{class e extends V7{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r,o){return t.addEventListener(i,r,o),()=>this.removeEventListener(t,i,r,o)}removeEventListener(t,i,r,o){return t.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();const W7=["alt","control","meta","shift"],iMe={"\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"},rMe={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oMe=(()=>{class e extends V7{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r,o){const a=e.parseEventName(i),s=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mo().onAndCancel(t,a.domEventName,s,o))}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."),W7.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=iMe[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"),W7.forEach(a=>{a!==r&&(0,rMe[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 \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=H({token:e,factory:e.\u0275fac})}return e})();function Z7(e){return{appProviders:[...Y7,...e?.providers??[]],platformProviders:dMe}}const dMe=[{provide:C0,useValue:"browser"},{provide:w0,useValue:function sMe(){km.makeCurrent()},multi:!0},{provide:Pt,useFactory:function lMe(){return function FS(e){b0=e}(document),document}}],K7=[{provide:lu,useClass:class eMe{addToWindow(n){St.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new P(5103,!1);return o},St.getAllAngularTestabilities=()=>n.getAllTestabilities(),St.getAllAngularRootElements=()=>n.getAllRootElements(),St.frameworkStabilizers||(St.frameworkStabilizers=[]),St.frameworkStabilizers.push(i=>{const r=St.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)}}},{provide:PM,useClass:ff,deps:[ge,gf,lu]},{provide:ff,useClass:ff,deps:[ge,gf,lu]}],Y7=[{provide:Tp,useValue:"root"},{provide:Li,useFactory:function cMe(){return new Li}},{provide:pm,useClass:nMe,multi:!0,deps:[Pt]},{provide:pm,useClass:oMe,multi:!0,deps:[Pt]},U7,B7,L7,{provide:V2,useExisting:U7},{provide:class j4e{},useClass:tMe},[]];(function aMe(e,n){return mP({rootComponent:e,...Z7(n)})})(Mj,{providers:[Wm((()=>{class e{constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ye({type:e});static \u0275inj=Ue({providers:[...Y7,...K7],imports:[az,yP]})}return e})(),wt,iZ,P4e,function L4e(){return So.pick({SlidersHorizontal:x7,RefreshCw:b7,Download:v7,Bug:y7,Video:N7,VideoOff:A7,Shield:D7,ShieldOff:C7,Eye:_7,EyeOff:k7,ChevronLeft:m7,Square:I7,SquarePlus:E7,SquareMinus:S7,TriangleAlert:T7,Info:M7,ShieldAlert:w7})}()),{provide:vo,useClass:g8}]}).catch(e=>console.error(e))},20:(Fa,Jn)=>{Jn.read=function(ht,_e,Z,Dt,ve){var Je,Ne,Me=8*ve-Dt-1,S=(1<<Me)-1,Mn=S>>1,Rt=-7,rn=Z?ve-1:0,Gt=Z?-1:1,ee=ht[_e+rn];for(rn+=Gt,Je=ee&(1<<-Rt)-1,ee>>=-Rt,Rt+=Me;Rt>0;Je=256*Je+ht[_e+rn],rn+=Gt,Rt-=8);for(Ne=Je&(1<<-Rt)-1,Je>>=-Rt,Rt+=Dt;Rt>0;Ne=256*Ne+ht[_e+rn],rn+=Gt,Rt-=8);if(0===Je)Je=1-Mn;else{if(Je===S)return Ne?NaN:1/0*(ee?-1:1);Ne+=Math.pow(2,Dt),Je-=Mn}return(ee?-1:1)*Ne*Math.pow(2,Je-Dt)},Jn.write=function(ht,_e,Z,Dt,ve,Je){var Ne,Me,S,Mn=8*Je-ve-1,Rt=(1<<Mn)-1,rn=Rt>>1,Gt=23===ve?Math.pow(2,-24)-Math.pow(2,-77):0,ee=Dt?0:Je-1,Ce=Dt?1:-1,Fe=_e<0||0===_e&&1/_e<0?1:0;for(_e=Math.abs(_e),isNaN(_e)||_e===1/0?(Me=isNaN(_e)?1:0,Ne=Rt):(Ne=Math.floor(Math.log(_e)/Math.LN2),_e*(S=Math.pow(2,-Ne))<1&&(Ne--,S*=2),(_e+=Ne+rn>=1?Gt/S:Gt*Math.pow(2,1-rn))*S>=2&&(Ne++,S/=2),Ne+rn>=Rt?(Me=0,Ne=Rt):Ne+rn>=1?(Me=(_e*S-1)*Math.pow(2,ve),Ne+=rn):(Me=_e*Math.pow(2,rn-1)*Math.pow(2,ve),Ne=0));ve>=8;ht[Z+ee]=255&Me,ee+=Ce,Me/=256,ve-=8);for(Ne=Ne<<ve|Me,Mn+=ve;Mn>0;ht[Z+ee]=255&Ne,ee+=Ce,Ne/=256,Mn-=8);ht[Z+ee-Ce]|=128*Fe}},838:(Fa,Jn,ht)=>{"use strict";const Z=ht(981),Dt=ht(20),ve="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Jn.hp=S,Jn.IS=50;const Je=2147483647;function Me(v){if(v>Je)throw new RangeError('The value "'+v+'" is invalid for option "size"');const u=new Uint8Array(v);return Object.setPrototypeOf(u,S.prototype),u}function S(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 Gt(v)}return Mn(v,u,p)}function Mn(v,u,p){if("string"==typeof v)return function ee(v,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!S.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=0|Dn(v,u);let _=Me(p);const D=_.write(v,u);return D!==p&&(_=_.slice(0,D)),_}(v,u);if(ArrayBuffer.isView(v))return function Fe(v){if(ye(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(ye(v,ArrayBuffer)||v&&ye(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(v,SharedArrayBuffer)||v&&ye(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 _=v.valueOf&&v.valueOf();if(null!=_&&_!==v)return S.from(_,u,p);const D=function pn(v){if(S.isBuffer(v)){const u=0|kt(v.length),p=Me(u);return 0===p.length||v.copy(p,0,0,u),p}return void 0!==v.length?"number"!=typeof v.length||No(v.length)?Me(0):Ce(v):"Buffer"===v.type&&Array.isArray(v.data)?Ce(v.data):void 0}(v);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return S.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 Rt(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 Gt(v){return Rt(v),Me(v<0?0:0|kt(v))}function Ce(v){const u=v.length<0?0:0|kt(v.length),p=Me(u);for(let _=0;_<u;_+=1)p[_]=255&v[_];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 _;return _=void 0===u&&void 0===p?new Uint8Array(v):void 0===p?new Uint8Array(v,u):new Uint8Array(v,u,p),Object.setPrototypeOf(_,S.prototype),_}function kt(v){if(v>=Je)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je.toString(16)+" bytes");return 0|v}function Dn(v,u){if(S.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||ye(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,_=arguments.length>2&&!0===arguments[2];if(!_&&0===p)return 0;let D=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Kr(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*p;case"hex":return p>>>1;case"base64":return Rd(v).length;default:if(D)return _?-1:Kr(v).length;u=(""+u).toLowerCase(),D=!0}}function Lt(v,u,p){let _=!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 Id(this,u,p);case"utf8":case"utf-8":return Xi(this,u,p);case"ascii":return tp(this,u,p);case"latin1":case"binary":return np(this,u,p);case"base64":return ep(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Td(this,u,p);default:if(_)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),_=!0}}function ki(v,u,p){const _=v[u];v[u]=v[p],v[p]=_}function Io(v,u,p,_,D){if(0===v.length)return-1;if("string"==typeof p?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),No(p=+p)&&(p=D?0:v.length-1),p<0&&(p=v.length+p),p>=v.length){if(D)return-1;p=v.length-1}else if(p<0){if(!D)return-1;p=0}if("string"==typeof u&&(u=S.from(u,_)),S.isBuffer(u))return 0===u.length?-1:pc(v,u,p,_,D);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,u,p):Uint8Array.prototype.lastIndexOf.call(v,u,p):pc(v,[u],p,_,D);throw new TypeError("val must be string, number or Buffer")}function pc(v,u,p,_,D){let nt,A=1,O=v.length,be=u.length;if(void 0!==_&&("ucs2"===(_=String(_).toLowerCase())||"ucs-2"===_||"utf16le"===_||"utf-16le"===_)){if(v.length<2||u.length<2)return-1;A=2,O/=2,be/=2,p/=2}function pt(it,Ee){return 1===A?it[Ee]:it.readUInt16BE(Ee*A)}if(D){let it=-1;for(nt=p;nt<O;nt++)if(pt(v,nt)===pt(u,-1===it?0:nt-it)){if(-1===it&&(it=nt),nt-it+1===be)return it*A}else-1!==it&&(nt-=nt-it),it=-1}else for(p+be>O&&(p=O-be),nt=p;nt>=0;nt--){let it=!0;for(let Ee=0;Ee<be;Ee++)if(pt(v,nt+Ee)!==pt(u,Ee)){it=!1;break}if(it)return nt}return-1}function Pa(v,u,p,_){p=Number(p)||0;const D=v.length-p;_?(_=Number(_))>D&&(_=D):_=D;const A=u.length;let O;for(_>A/2&&(_=A/2),O=0;O<_;++O){const be=parseInt(u.substr(2*O,2),16);if(No(be))return O;v[p+O]=be}return O}function To(v,u,p,_){return kc(Kr(u,v.length-p),v,p,_)}function La(v,u,p,_){return kc(function nr(v){const u=[];for(let p=0;p<v.length;++p)u.push(255&v.charCodeAt(p));return u}(u),v,p,_)}function Sd(v,u,p,_){return kc(Rd(u),v,p,_)}function Ed(v,u,p,_){return kc(function vc(v,u){let p,_,D;const A=[];for(let O=0;O<v.length&&!((u-=2)<0);++O)p=v.charCodeAt(O),_=p>>8,D=p%256,A.push(D),A.push(_);return A}(u,v.length-p),v,p,_)}function ep(v,u,p){return Z.fromByteArray(0===u&&p===v.length?v:v.slice(u,p))}function Xi(v,u,p){p=Math.min(v.length,p);const _=[];let D=u;for(;D<p;){const A=v[D];let O=null,be=A>239?4:A>223?3:A>191?2:1;if(D+be<=p){let pt,nt,it,Ee;switch(be){case 1:A<128&&(O=A);break;case 2:pt=v[D+1],128==(192&pt)&&(Ee=(31&A)<<6|63&pt,Ee>127&&(O=Ee));break;case 3:pt=v[D+1],nt=v[D+2],128==(192&pt)&&128==(192&nt)&&(Ee=(15&A)<<12|(63&pt)<<6|63&nt,Ee>2047&&(Ee<55296||Ee>57343)&&(O=Ee));break;case 4:pt=v[D+1],nt=v[D+2],it=v[D+3],128==(192&pt)&&128==(192&nt)&&128==(192&it)&&(Ee=(15&A)<<18|(63&pt)<<12|(63&nt)<<6|63&it,Ee>65535&&Ee<1114112&&(O=Ee))}}null===O?(O=65533,be=1):O>65535&&(O-=65536,_.push(O>>>10&1023|55296),O=56320|1023&O),_.push(O),D+=be}return function er(v){const u=v.length;if(u<=wr)return String.fromCharCode.apply(String,v);let p="",_=0;for(;_<u;)p+=String.fromCharCode.apply(String,v.slice(_,_+=wr));return p}(_)}!(S.TYPED_ARRAY_SUPPORT=function Ne(){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(S.prototype,"parent",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.byteOffset}}),S.poolSize=8192,S.from=function(v,u,p){return Mn(v,u,p)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array),S.alloc=function(v,u,p){return function rn(v,u,p){return Rt(v),v<=0?Me(v):void 0!==u?"string"==typeof p?Me(v).fill(u,p):Me(v).fill(u):Me(v)}(v,u,p)},S.allocUnsafe=function(v){return Gt(v)},S.allocUnsafeSlow=function(v){return Gt(v)},S.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==S.prototype},S.compare=function(u,p){if(ye(u,Uint8Array)&&(u=S.from(u,u.offset,u.byteLength)),ye(p,Uint8Array)&&(p=S.from(p,p.offset,p.byteLength)),!S.isBuffer(u)||!S.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let _=u.length,D=p.length;for(let A=0,O=Math.min(_,D);A<O;++A)if(u[A]!==p[A]){_=u[A],D=p[A];break}return _<D?-1:D<_?1:0},S.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}},S.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return S.alloc(0);let _;if(void 0===p)for(p=0,_=0;_<u.length;++_)p+=u[_].length;const D=S.allocUnsafe(p);let A=0;for(_=0;_<u.length;++_){let O=u[_];if(ye(O,Uint8Array))A+O.length>D.length?(S.isBuffer(O)||(O=S.from(O)),O.copy(D,A)):Uint8Array.prototype.set.call(D,O,A);else{if(!S.isBuffer(O))throw new TypeError('"list" argument must be an Array of Buffers');O.copy(D,A)}A+=O.length}return D},S.byteLength=Dn,S.prototype._isBuffer=!0,S.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},S.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},S.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},S.prototype.toLocaleString=S.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?Xi(this,0,u):Lt.apply(this,arguments)},S.prototype.equals=function(u){if(!S.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===S.compare(this,u)},S.prototype.inspect=function(){let u="";const p=Jn.IS;return u=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(u+=" ... "),"<Buffer "+u+">"},ve&&(S.prototype[ve]=S.prototype.inspect),S.prototype.compare=function(u,p,_,D,A){if(ye(u,Uint8Array)&&(u=S.from(u,u.offset,u.byteLength)),!S.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===_&&(_=u?u.length:0),void 0===D&&(D=0),void 0===A&&(A=this.length),p<0||_>u.length||D<0||A>this.length)throw new RangeError("out of range index");if(D>=A&&p>=_)return 0;if(D>=A)return-1;if(p>=_)return 1;if(this===u)return 0;let O=(A>>>=0)-(D>>>=0),be=(_>>>=0)-(p>>>=0);const pt=Math.min(O,be),nt=this.slice(D,A),it=u.slice(p,_);for(let Ee=0;Ee<pt;++Ee)if(nt[Ee]!==it[Ee]){O=nt[Ee],be=it[Ee];break}return O<be?-1:be<O?1:0},S.prototype.includes=function(u,p,_){return-1!==this.indexOf(u,p,_)},S.prototype.indexOf=function(u,p,_){return Io(this,u,p,_,!0)},S.prototype.lastIndexOf=function(u,p,_){return Io(this,u,p,_,!1)},S.prototype.write=function(u,p,_,D){if(void 0===p)D="utf8",_=this.length,p=0;else if(void 0===_&&"string"==typeof p)D=p,_=this.length,p=0;else{if(!isFinite(p))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");p>>>=0,isFinite(_)?(_>>>=0,void 0===D&&(D="utf8")):(D=_,_=void 0)}const A=this.length-p;if((void 0===_||_>A)&&(_=A),u.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let O=!1;for(;;)switch(D){case"hex":return Pa(this,u,p,_);case"utf8":case"utf-8":return To(this,u,p,_);case"ascii":case"latin1":case"binary":return La(this,u,p,_);case"base64":return Sd(this,u,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ed(this,u,p,_);default:if(O)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),O=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wr=4096;function tp(v,u,p){let _="";p=Math.min(v.length,p);for(let D=u;D<p;++D)_+=String.fromCharCode(127&v[D]);return _}function np(v,u,p){let _="";p=Math.min(v.length,p);for(let D=u;D<p;++D)_+=String.fromCharCode(v[D]);return _}function Id(v,u,p){const _=v.length;(!u||u<0)&&(u=0),(!p||p<0||p>_)&&(p=_);let D="";for(let A=u;A<p;++A)D+=_c[v[A]];return D}function Td(v,u,p){const _=v.slice(u,p);let D="";for(let A=0;A<_.length-1;A+=2)D+=String.fromCharCode(_[A]+256*_[A+1]);return D}function Vt(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 Wt(v,u,p,_,D,A){if(!S.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>D||u<A)throw new RangeError('"value" argument is out of bounds');if(p+_>v.length)throw new RangeError("Index out of range")}function Ad(v,u,p,_,D){Nd(u,_,D,v,p,7);let A=Number(u&BigInt(4294967295));v[p++]=A,A>>=8,v[p++]=A,A>>=8,v[p++]=A,A>>=8,v[p++]=A;let O=Number(u>>BigInt(32)&BigInt(4294967295));return v[p++]=O,O>>=8,v[p++]=O,O>>=8,v[p++]=O,O>>=8,v[p++]=O,p}function ip(v,u,p,_,D){Nd(u,_,D,v,p,7);let A=Number(u&BigInt(4294967295));v[p+7]=A,A>>=8,v[p+6]=A,A>>=8,v[p+5]=A,A>>=8,v[p+4]=A;let O=Number(u>>BigInt(32)&BigInt(4294967295));return v[p+3]=O,O>>=8,v[p+2]=O,O>>=8,v[p+1]=O,O>>=8,v[p]=O,p+8}function Ao(v,u,p,_,D,A){if(p+_>v.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function fc(v,u,p,_,D){return u=+u,p>>>=0,D||Ao(v,0,p,4),Dt.write(v,u,p,_,23,4),p+4}function rp(v,u,p,_,D){return u=+u,p>>>=0,D||Ao(v,0,p,8),Dt.write(v,u,p,_,52,8),p+8}S.prototype.slice=function(u,p){const _=this.length;(u=~~u)<0?(u+=_)<0&&(u=0):u>_&&(u=_),(p=void 0===p?_:~~p)<0?(p+=_)<0&&(p=0):p>_&&(p=_),p<u&&(p=u);const D=this.subarray(u,p);return Object.setPrototypeOf(D,S.prototype),D},S.prototype.readUintLE=S.prototype.readUIntLE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u],A=1,O=0;for(;++O<p&&(A*=256);)D+=this[u+O]*A;return D},S.prototype.readUintBE=S.prototype.readUIntBE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u+--p],A=1;for(;p>0&&(A*=256);)D+=this[u+--p]*A;return D},S.prototype.readUint8=S.prototype.readUInt8=function(u,p){return u>>>=0,p||Vt(u,1,this.length),this[u]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(u,p){return u>>>=0,p||Vt(u,2,this.length),this[u]|this[u+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(u,p){return u>>>=0,p||Vt(u,2,this.length),this[u]<<8|this[u+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},S.prototype.readBigUInt64LE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=p+256*this[++u]+65536*this[++u]+this[++u]*2**24,A=this[++u]+256*this[++u]+65536*this[++u]+_*2**24;return BigInt(D)+(BigInt(A)<<BigInt(32))}),S.prototype.readBigUInt64BE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=p*2**24+65536*this[++u]+256*this[++u]+this[++u],A=this[++u]*2**24+65536*this[++u]+256*this[++u]+_;return(BigInt(D)<<BigInt(32))+BigInt(A)}),S.prototype.readIntLE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u],A=1,O=0;for(;++O<p&&(A*=256);)D+=this[u+O]*A;return A*=128,D>=A&&(D-=Math.pow(2,8*p)),D},S.prototype.readIntBE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=p,A=1,O=this[u+--D];for(;D>0&&(A*=256);)O+=this[u+--D]*A;return A*=128,O>=A&&(O-=Math.pow(2,8*p)),O},S.prototype.readInt8=function(u,p){return u>>>=0,p||Vt(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},S.prototype.readInt16LE=function(u,p){u>>>=0,p||Vt(u,2,this.length);const _=this[u]|this[u+1]<<8;return 32768&_?4294901760|_:_},S.prototype.readInt16BE=function(u,p){u>>>=0,p||Vt(u,2,this.length);const _=this[u+1]|this[u]<<8;return 32768&_?4294901760|_:_},S.prototype.readInt32LE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},S.prototype.readInt32BE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},S.prototype.readBigInt64LE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];return(void 0===p||void 0===_)&&Va(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(_<<24))<<BigInt(32))+BigInt(p+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),S.prototype.readBigInt64BE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=(p<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(D)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+_)}),S.prototype.readFloatLE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),Dt.read(this,u,!0,23,4)},S.prototype.readFloatBE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),Dt.read(this,u,!1,23,4)},S.prototype.readDoubleLE=function(u,p){return u>>>=0,p||Vt(u,8,this.length),Dt.read(this,u,!0,52,8)},S.prototype.readDoubleBE=function(u,p){return u>>>=0,p||Vt(u,8,this.length),Dt.read(this,u,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(u,p,_,D){u=+u,p>>>=0,_>>>=0,D||Wt(this,u,p,_,Math.pow(2,8*_)-1,0);let A=1,O=0;for(this[p]=255&u;++O<_&&(A*=256);)this[p+O]=u/A&255;return p+_},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(u,p,_,D){u=+u,p>>>=0,_>>>=0,D||Wt(this,u,p,_,Math.pow(2,8*_)-1,0);let A=_-1,O=1;for(this[p+A]=255&u;--A>=0&&(O*=256);)this[p+A]=u/O&255;return p+_},S.prototype.writeUint8=S.prototype.writeUInt8=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,1,255,0),this[p]=255&u,p+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,65535,0),this[p]=255&u,this[p+1]=u>>>8,p+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=255&u,p+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeBigUInt64LE=Xn(function(u,p=0){return Ad(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=Xn(function(u,p=0){return ip(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(u,p,_,D){if(u=+u,p>>>=0,!D){const pt=Math.pow(2,8*_-1);Wt(this,u,p,_,pt-1,-pt)}let A=0,O=1,be=0;for(this[p]=255&u;++A<_&&(O*=256);)u<0&&0===be&&0!==this[p+A-1]&&(be=1),this[p+A]=(u/O|0)-be&255;return p+_},S.prototype.writeIntBE=function(u,p,_,D){if(u=+u,p>>>=0,!D){const pt=Math.pow(2,8*_-1);Wt(this,u,p,_,pt-1,-pt)}let A=_-1,O=1,be=0;for(this[p+A]=255&u;--A>=0&&(O*=256);)u<0&&0===be&&0!==this[p+A+1]&&(be=1),this[p+A]=(u/O|0)-be&255;return p+_},S.prototype.writeInt8=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=255&u,p+1},S.prototype.writeInt16LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,32767,-32768),this[p]=255&u,this[p+1]=u>>>8,p+2},S.prototype.writeInt16BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=255&u,p+2},S.prototype.writeInt32LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeInt32BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeBigInt64LE=Xn(function(u,p=0){return Ad(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=Xn(function(u,p=0){return ip(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(u,p,_){return fc(this,u,p,!0,_)},S.prototype.writeFloatBE=function(u,p,_){return fc(this,u,p,!1,_)},S.prototype.writeDoubleLE=function(u,p,_){return rp(this,u,p,!0,_)},S.prototype.writeDoubleBE=function(u,p,_){return rp(this,u,p,!1,_)},S.prototype.copy=function(u,p,_,D){if(!S.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),!D&&0!==D&&(D=this.length),p>=u.length&&(p=u.length),p||(p=0),D>0&&D<_&&(D=_),D===_||0===u.length||0===this.length)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),u.length-p<D-_&&(D=u.length-p+_);const A=D-_;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(p,_,D):Uint8Array.prototype.set.call(u,this.subarray(_,D),p),A},S.prototype.fill=function(u,p,_,D){if("string"==typeof u){if("string"==typeof p?(D=p,p=0,_=this.length):"string"==typeof _&&(D=_,_=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!S.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===u.length){const O=u.charCodeAt(0);("utf8"===D&&O<128||"latin1"===D)&&(u=O)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;let A;if(p>>>=0,_=void 0===_?this.length:_>>>0,u||(u=0),"number"==typeof u)for(A=p;A<_;++A)this[A]=u;else{const O=S.isBuffer(u)?u:S.from(u,D),be=O.length;if(0===be)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(A=0;A<_-p;++A)this[A+p]=O[A%be]}return this};const tr={};function gc(v,u,p){tr[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(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function yc(v){let u="",p=v.length;const _="-"===v[0]?1:0;for(;p>=_+4;p-=3)u=`_${v.slice(p-3,p)}${u}`;return`${v.slice(0,p)}${u}`}function Nd(v,u,p,_,D,A){if(v>p||v<u){const O="bigint"==typeof u?"n":"";let be;throw be=A>3?0===u||u===BigInt(0)?`>= 0${O} and < 2${O} ** ${8*(A+1)}${O}`:`>= -(2${O} ** ${8*(A+1)-1}${O}) and < 2 ** ${8*(A+1)-1}${O}`:`>= ${u}${O} and <= ${p}${O}`,new tr.ERR_OUT_OF_RANGE("value",be,v)}!function op(v,u,p){Zr(u,"offset"),(void 0===v[u]||void 0===v[u+p])&&Va(u,v.length-(p+1))}(_,D,A)}function Zr(v,u){if("number"!=typeof v)throw new tr.ERR_INVALID_ARG_TYPE(u,"number",v)}function Va(v,u,p){throw Math.floor(v)!==v?(Zr(v,p),new tr.ERR_OUT_OF_RANGE(p||"offset","an integer",v)):u<0?new tr.ERR_BUFFER_OUT_OF_BOUNDS:new tr.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,v)}gc("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),gc("ERR_INVALID_ARG_TYPE",function(v,u){return`The "${v}" argument must be of type number. Received type ${typeof u}`},TypeError),gc("ERR_OUT_OF_RANGE",function(v,u,p){let _=`The value of "${v}" is out of range.`,D=p;return Number.isInteger(p)&&Math.abs(p)>2**32?D=yc(String(p)):"bigint"==typeof p&&(D=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(D=yc(D)),D+="n"),_+=` It must be ${u}. Received ${D}`,_},RangeError);const ap=/[^+/0-9A-Za-z-_]/g;function Kr(v,u){let p;u=u||1/0;const _=v.length;let D=null;const A=[];for(let O=0;O<_;++O){if(p=v.charCodeAt(O),p>55295&&p<57344){if(!D){if(p>56319){(u-=3)>-1&&A.push(239,191,189);continue}if(O+1===_){(u-=3)>-1&&A.push(239,191,189);continue}D=p;continue}if(p<56320){(u-=3)>-1&&A.push(239,191,189),D=p;continue}p=65536+(D-55296<<10|p-56320)}else D&&(u-=3)>-1&&A.push(239,191,189);if(D=null,p<128){if((u-=1)<0)break;A.push(p)}else if(p<2048){if((u-=2)<0)break;A.push(p>>6|192,63&p|128)}else if(p<65536){if((u-=3)<0)break;A.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;A.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}}return A}function Rd(v){return Z.toByteArray(function mc(v){if((v=(v=v.split("=")[0]).trim().replace(ap,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function kc(v,u,p,_){let D;for(D=0;D<_&&!(D+p>=u.length||D>=v.length);++D)u[D+p]=v[D];return D}function ye(v,u){return v instanceof u||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===u.name}function No(v){return v!=v}const _c=function(){const v="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const _=16*p;for(let D=0;D<16;++D)u[_+D]=v[p]+v[D]}return u}();function Xn(v){return typeof BigInt>"u"?on:v}function on(){throw new Error("BigInt not supported")}},981:(Fa,Jn)=>{"use strict";Jn.byteLength=function Me(ee){var Ce=Ne(ee),xt=Ce[1];return 3*(Ce[0]+xt)/4-xt},Jn.toByteArray=function Mn(ee){var Ce,Lt,Fe=Ne(ee),xt=Fe[0],pn=Fe[1],kt=new Z(function S(ee,Ce,Fe){return 3*(Ce+Fe)/4-Fe}(0,xt,pn)),$t=0,Dn=pn>0?xt-4:xt;for(Lt=0;Lt<Dn;Lt+=4)Ce=_e[ee.charCodeAt(Lt)]<<18|_e[ee.charCodeAt(Lt+1)]<<12|_e[ee.charCodeAt(Lt+2)]<<6|_e[ee.charCodeAt(Lt+3)],kt[$t++]=Ce>>16&255,kt[$t++]=Ce>>8&255,kt[$t++]=255&Ce;return 2===pn&&(Ce=_e[ee.charCodeAt(Lt)]<<2|_e[ee.charCodeAt(Lt+1)]>>4,kt[$t++]=255&Ce),1===pn&&(Ce=_e[ee.charCodeAt(Lt)]<<10|_e[ee.charCodeAt(Lt+1)]<<4|_e[ee.charCodeAt(Lt+2)]>>2,kt[$t++]=Ce>>8&255,kt[$t++]=255&Ce),kt},Jn.fromByteArray=function Gt(ee){for(var Ce,Fe=ee.length,xt=Fe%3,pn=[],$t=0,Dn=Fe-xt;$t<Dn;$t+=16383)pn.push(rn(ee,$t,$t+16383>Dn?Dn:$t+16383));return 1===xt?pn.push(ht[(Ce=ee[Fe-1])>>2]+ht[Ce<<4&63]+"=="):2===xt&&pn.push(ht[(Ce=(ee[Fe-2]<<8)+ee[Fe-1])>>10]+ht[Ce>>4&63]+ht[Ce<<2&63]+"="),pn.join("")};for(var ht=[],_e=[],Z=typeof Uint8Array<"u"?Uint8Array:Array,Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=0;ve<64;++ve)ht[ve]=Dt[ve],_e[Dt.charCodeAt(ve)]=ve;function Ne(ee){var Ce=ee.length;if(Ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Fe=ee.indexOf("=");return-1===Fe&&(Fe=Ce),[Fe,Fe===Ce?0:4-Fe%4]}function Rt(ee){return ht[ee>>18&63]+ht[ee>>12&63]+ht[ee>>6&63]+ht[63&ee]}function rn(ee,Ce,Fe){for(var pn=[],kt=Ce;kt<Fe;kt+=3)pn.push(Rt((ee[kt]<<16&16711680)+(ee[kt+1]<<8&65280)+(255&ee[kt+2])));return pn.join("")}_e[45]=62,_e[95]=63}},Fa=>{Fa(Fa.s=12)}]);
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[792],{12:(Fa,Qn,ht)=>{"use strict";function _e(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 Z(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function a(c){_e(o,i,r,a,s,"next",c)}function s(c){_e(o,i,r,a,s,"throw",c)}a(void 0)})}}function Dt(e,n){return Object.is(e,n)}let ve=null,Qe=!1,Ne=1;const Me=Symbol("SIGNAL");function S(e){const n=ve;return ve=e,n}const $t={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ee(e){if(Qe)throw new Error("");if(null===ve)return;ve.consumerOnSignalRead(e);const n=ve.nextProducerIndex++;La(ve),n<ve.producerNode.length&&ve.producerNode[n]!==e&&Io(ve)&&Pa(ve.producerNode[n],ve.producerIndexOfThis[n]),ve.producerNode[n]!==e&&(ve.producerNode[n]=e,ve.producerIndexOfThis[n]=Io(ve)?pc(e,ve,n):0),ve.producerLastReadVersion[n]=e.version}function Fe(e){if((!Io(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Ne)){if(!e.producerMustRecompute(e)&&!ki(e))return void Gt(e);e.producerRecomputeValue(e),Gt(e)}}function xt(e){if(void 0===e.liveConsumerNode)return;const n=Qe;Qe=!0;try{for(const t of e.liveConsumerNode)t.dirty||kt(t)}finally{Qe=n}}function pn(){return!1!==ve?.consumerAllowSignalWrites}function kt(e){e.dirty=!0,xt(e),e.consumerMarkedDirty?.(e)}function Gt(e){e.dirty=!1,e.lastCleanEpoch=Ne}function Dn(e){return e&&(e.nextProducerIndex=0),S(e)}function Lt(e,n){if(S(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Io(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Pa(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ki(e){La(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(Fe(t),i!==t.version))return!0}return!1}function To(e){if(La(e),Io(e))for(let n=0;n<e.producerNode.length;n++)Pa(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 pc(e,n,t){if(Sd(e),0===e.liveConsumerNode.length&&Ed(e))for(let i=0;i<e.producerNode.length;i++)e.producerIndexOfThis[i]=pc(e.producerNode[i],e,i);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Pa(e,n){if(Sd(e),1===e.liveConsumerNode.length&&Ed(e))for(let i=0;i<e.producerNode.length;i++)Pa(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];La(r),r.producerIndexOfThis[i]=n}}function Io(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function La(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Sd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ed(e){return void 0!==e.producerNode}const Xi=Symbol("UNSET"),wr=Symbol("COMPUTING"),er=Symbol("ERRORED"),tp={...$t,value:Xi,dirty:!0,error:null,equal:Dt,kind:"computed",producerMustRecompute:e=>e.value===Xi||e.value===wr,producerRecomputeValue(e){if(e.value===wr)throw new Error("Detected cycle in computations.");const n=e.value;e.value=wr;const t=Dn(e);let i,r=!1;try{i=e.computation(),S(null),r=n!==Xi&&n!==er&&i!==er&&e.equal(n,i)}catch(o){i=er,e.error=o}finally{Lt(e,t)}r?e.value=n:(e.value=i,e.version++)}};let Td=function np(){throw new Error};function Id(e){Td(e)}function Ao(e,n){pn()||Id(e),e.equal(e.value,n)||(e.value=n,function gc(e){e.version++,function Ce(){Ne++}(),xt(e)}(e))}const tr={...$t,equal:Dt,value:void 0,kind:"signal"};let mc;function Yr(){return mc}function nr(e){const n=mc;return mc=e,n}const vc=Symbol("NotFound");function ye(e){return"function"==typeof e}function No(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}Error;const _c=No(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 Xn(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class on{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(ye(i))try{i()}catch(o){n=o instanceof _c?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{p(o)}catch(a){n=n??[],a instanceof _c?n=[...n,...a.errors]:n.push(a)}}if(n)throw new _c(n)}}add(n){var t;if(n&&n!==this)if(this.closed)p(n);else{if(n instanceof on){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)&&Xn(t,n)}remove(n){const{_finalizers:t}=this;t&&Xn(t,n),n instanceof on&&n._removeParent(this)}}on.EMPTY=(()=>{const e=new on;return e.closed=!0,e})();const v=on.EMPTY;function u(e){return e instanceof on||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function p(e){ye(e)?e():e.unsubscribe()}const _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},D={setTimeout(e,n,...t){const{delegate:i}=D;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=D;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function A(e){D.setTimeout(()=>{const{onUnhandledError:n}=_;if(!n)throw e;n(e)})}function O(){}const be=it("C",void 0,void 0);function it(e,n,t){return{kind:e,value:n,error:t}}let Ee=null;function Od(e){if(_.useDeprecatedSynchronousErrorHandling){const n=!Ee;if(n&&(Ee={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ee;if(Ee=null,t)throw i}}else e()}class sp extends on{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,u(n)&&n.add(this)):this.destination=d7}static create(n,t,i){return new lp(n,t,i)}next(n){this.isStopped?dp(function nt(e){return it("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?dp(function pt(e){return it("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?dp(be,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 s7=Function.prototype.bind;function cp(e,n){return s7.call(e,n)}class c7{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Fd(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Fd(i)}else Fd(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Fd(t)}}}class lp extends sp{constructor(n,t,i){let r;if(super(),ye(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&_.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&cp(n.next,o),error:n.error&&cp(n.error,o),complete:n.complete&&cp(n.complete,o)}):r=n}this.destination=new c7(r)}}function Fd(e){_.useDeprecatedSynchronousErrorHandling?function a7(e){_.useDeprecatedSynchronousErrorHandling&&Ee&&(Ee.errorThrown=!0,Ee.error=e)}(e):A(e)}function dp(e,n){const{onStoppedNotification:t}=_;t&&D.setTimeout(()=>t(e,n))}const d7={closed:!0,next:O,error:function l7(e){throw e},complete:O},up="function"==typeof Symbol&&Symbol.observable||"@@observable";function Cr(e){return e}function Cm(e){return 0===e.length?Cr:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let dt=(()=>{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 p7(e){return e&&e instanceof sp||function h7(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&u(e)}(t)?t:new lp(t,i,r);return Od(()=>{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=Dm(i))((r,o)=>{const a=new lp({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)}[up](){return this}pipe(...t){return Cm(t)(this)}toPromise(t){return new(t=Dm(t))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return e.create=n=>new e(n),e})();function Dm(e){var n;return null!==(n=e??_.Promise)&&void 0!==n?n:Promise}const f7=No(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ze=(()=>{class e extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new xm(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new f7}next(t){Od(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Od(()=>{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(){Od(()=>{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?v:(this.currentObservers=null,o.push(t),new on(()=>{this.currentObservers=null,Xn(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new dt;return t.source=this,t}}return e.create=(n,t)=>new xm(n,t),e})();class xm extends ze{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:v}}class ei extends ze{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 Sm(e){return ye(e?.lift)}function jt(e){return n=>{if(Sm(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 ut(e,n,t,i,r){return new g7(e,n,t,i,r)}class g7 extends sp{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 Te(e,n){return jt((t,i)=>{let r=0;t.subscribe(ut(i,o=>{i.next(e.call(n,o,r++))}))})}const Em="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class P extends Error{code;constructor(n,t){super(function Dr(e,n){return`${function y7(e){return`NG0${Math.abs(e)}`}(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const Pd=Symbol("InputSignalNode#UNSET"),Tm={...tr,transformFn:void 0,applyValueToInputSignal(e,n){Ao(e,n)}};function Im(e,n){const t=Object.create(Tm);function i(){if(ee(t),t.value===Pd)throw new P(-950,null);return t.value}return t.value=e,t.transformFn=n?.transform,i[Me]=t,i}function xr(e){return{toString:e}.toString()}const Ha="__parameters__";function za(e,n,t){return xr(()=>{const i=function hp(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(Ha)?c[Ha]:Object.defineProperty(c,Ha,{value:[]})[Ha];for(;h.length<=d;)h.push(null);return(h[d]=h[d]||[]).push(a),c}}return r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const St=globalThis;function qe(e){for(let n in e)if(e[n]===qe)return n;throw Error("Could not find renamed property on target object.")}function m7(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Zt(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(Zt).join(", ")}]`;if(null==e)return""+e;const n=e.overriddenName||e.name;if(n)return`${n}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return i>=0?t.slice(0,i):t}function pp(e,n){return e?n?`${e} ${n}`:e:n||""}const v7=qe({__forward_ref__:qe});function Le(e){return e.__forward_ref__=Le,e.toString=function(){return Zt(this())},e}function ce(e){return Ld(e)?e():e}function Ld(e){return"function"==typeof e&&e.hasOwnProperty(v7)&&e.__forward_ref__===Le}function Ro(e,n,t){e!=n&&function Q(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 Ue(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vd(e){return Nm(e,Hd)||Nm(e,Rm)}function Nm(e,n){return e.hasOwnProperty(n)?e[n]:null}function jd(e){return e&&(e.hasOwnProperty(fp)||e.hasOwnProperty(C7))?e[fp]:null}const Hd=qe({\u0275prov:qe}),fp=qe({\u0275inj:qe}),Rm=qe({ngInjectableDef:qe}),C7=qe({ngInjectorDef:qe});class z{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=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 qa=qe({\u0275cmp:qe}),vp=qe({\u0275dir:qe}),kp=qe({\u0275pipe:qe}),Fm=qe({\u0275mod:qe}),Sr=qe({\u0275fac:qe}),Mc=qe({__NG_ELEMENT_ID__:qe}),Pm=qe({__NG_ENV_ID__:qe});function pe(e){return"string"==typeof e?e:null==e?"":String(e)}function Lm(e,n){throw new P(-200,e)}function _p(e,n){throw new P(-201,!1)}var De=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}(De||{});let Mp;function Vm(){return Mp}function jn(e){const n=Mp;return Mp=e,n}function jm(e,n,t){const i=Vd(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&De.Optional?null:void 0!==n?n:void _p()}const Oo={},bp="__NG_DI_FLAG__";class Hm{injector;constructor(n){this.injector=n}retrieve(n,t){return this.injector.get(n,t.optional?vc:Oo,t)}}const qd="ngTempTokenPath",T7=/\n/gm,Bm="__source";function A7(e,n=De.Default){if(void 0===Yr())throw new P(-203,!1);if(null===Yr())return jm(e,void 0,n);{const t=Yr();let i;return i=t instanceof Hm?t.injector:t,i.get(e,n&De.Optional?null:void 0,n)}}function oe(e,n=De.Default){return(Vm()||A7)(ce(e),n)}function w(e,n=De.Default){return oe(e,Ud(n))}function Ud(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wp(e){const n=[];for(let t=0;t<e.length;t++){const i=ce(e[t]);if(Array.isArray(i)){if(0===i.length)throw new P(900,!1);let r,o=De.Default;for(let a=0;a<i.length;a++){const s=i[a],c=N7(s);"number"==typeof c?-1===c?r=s.token:o|=c:r=s}n.push(oe(r,o))}else n.push(oe(i))}return n}function bc(e,n){return e[bp]=n,e.prototype[bp]=n,e}function N7(e){return e[bp]}const $d=bc(za("Optional"),8),Cp=bc(za("SkipSelf"),4);function Fo(e,n){return e.hasOwnProperty(Sr)?e[Sr]:null}function Ua(e,n){e.forEach(t=>Array.isArray(t)?Ua(t,n):n(t))}function qm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Gd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function ni(e,n,t){let i=wc(e,n);return i>=0?e[1|i]=t:(i=~i,function $m(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 Dp(e,n){const t=wc(e,n);if(t>=0)return e[1|t]}function wc(e,n){return function j7(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 Ni={},Re=[],_i=new z(""),Gm=new z("",-1),xp=new z("");class Zd{get(n,t=Oo){if(t===Oo){const i=new Error(`NullInjectorError: No provider for ${Zt(n)}!`);throw i.name="NullInjectorError",i}return t}}function ii(e,n){const t=e[Fm]||null;if(!t&&!0===n)throw new Error(`Type ${Zt(e)} does not have '\u0275mod' property.`);return t}function xe(e){return e[qa]||null}function fn(e){return e[vp]||null}function ri(e){return e[kp]||null}function Wm(...e){return{\u0275providers:Sp(0,e),\u0275fromNgModule:!0}}function Sp(e,...n){const t=[],i=new Set;let r;const o=a=>{t.push(a)};return Ua(n,a=>{const s=a;Yd(s,o,[],i)&&(r||=[],r.push(s))}),void 0!==r&&Zm(r,o),t}function Zm(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];Ep(r,o=>{n(o,i)})}}function Yd(e,n,t,i){if(!(e=ce(e)))return!1;let r=null,o=jd(e);const a=!o&&xe(e);if(o||a){if(a&&!a.standalone)return!1;r=e}else{const c=e.ngModule;if(o=jd(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)Yd(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;i.add(r);try{Ua(o.imports,d=>{Yd(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&Zm(l,n)}if(!s){const l=Fo(r)||(()=>new r);n({provide:r,useFactory:l,deps:Re},r),n({provide:xp,useValue:r,multi:!0},r),n({provide:_i,useValue:()=>oe(r),multi:!0},r)}const c=o.providers;if(null!=c&&!s){const l=e;Ep(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function Ep(e,n){for(let t of e)mp(t)&&(t=t.\u0275providers),Array.isArray(t)?Ep(t,n):n(t)}const H7=qe({provide:String,useValue:qe});function Tp(e){return null!==e&&"object"==typeof e&&H7 in e}function Vo(e){return"function"==typeof e}const Ip=new z(""),Kd={},Jm={};let Ap;function Jd(){return void 0===Ap&&(Ap=new Zd),Ap}class bn{}class jo extends bn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,Rp(n,a=>this.processProvider(a)),this.records.set(Gm,$a(void 0,this)),r.has("environment")&&this.records.set(bn,$a(void 0,this));const o=this.records.get(Ip);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(xp,Re,De.Self))}retrieve(n,t){return this.get(n,t.optional?vc:Oo,t)}destroy(){Cc(this),this._destroyed=!0;const n=S(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(),S(n)}}onDestroy(n){return Cc(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Cc(this);const t=nr(this),i=jn(void 0);try{return n()}finally{nr(t),jn(i)}}get(n,t=Oo,i=De.Default){if(Cc(this),n.hasOwnProperty(Pm))return n[Pm](this);i=Ud(i);const o=nr(this),a=jn(void 0);try{if(!(i&De.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function G7(e){return"function"==typeof e||"object"==typeof e&&e instanceof z}(n)&&Vd(n);c=l&&this.injectableDefInScope(l)?$a(Np(n),Kd):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&De.Self?Jd():this.parent).get(n,t=i&De.Optional&&t===Oo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[qd]=s[qd]||[]).unshift(Zt(n)),o)throw s;return function R7(e,n,t,i){const r=e[qd];throw n[Bm]&&r.unshift(n[Bm]),e.message=function O7(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=Zt(n);if(Array.isArray(n))r=n.map(Zt).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):Zt(s)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(T7,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[qd]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{jn(a),nr(o)}}resolveInjectorInitializers(){const n=S(null),t=nr(this),i=jn(void 0);try{const o=this.get(_i,Re,De.Self);for(const a of o)a()}finally{nr(t),jn(i),S(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Zt(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){let t=Vo(n=ce(n))?n:ce(n&&n.provide);const i=function q7(e){return Tp(e)?$a(void 0,e.useValue):$a(Qm(e),Kd)}(n);if(!Vo(n)&&!0===n.multi){let r=this.records.get(t);r||(r=$a(void 0,Kd,!0),r.factory=()=>wp(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=S(null);try{return t.value===Jm?Lm(Zt(n)):t.value===Kd&&(t.value=Jm,t.value=t.factory()),"object"==typeof t.value&&t.value&&function $7(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{S(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ce(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 Np(e){const n=Vd(e),t=null!==n?n.factory:Fo(e);if(null!==t)return t;if(e instanceof z)throw new P(204,!1);if(e instanceof Function)return function z7(e){if(e.length>0)throw new P(204,!1);const t=function w7(e){return e&&(e[Hd]||e[Rm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new P(204,!1)}function Qm(e,n,t){let i;if(Vo(e)){const r=ce(e);return Fo(r)||Np(r)}if(Tp(e))i=()=>ce(e.useValue);else if(function Km(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...wp(e.deps||[]));else if(function Ym(e){return!(!e||!e.useExisting)}(e))i=()=>oe(ce(e.useExisting));else{const r=ce(e&&(e.useClass||e.provide));if(!function U7(e){return!!e.deps}(e))return Fo(r)||Np(r);i=()=>new r(...wp(e.deps))}return i}function Cc(e){if(e.destroyed)throw new P(205,!1)}function $a(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Rp(e,n){for(const t of e)Array.isArray(t)?Rp(t,n):t&&mp(t)?Rp(t.\u0275providers,n):n(t)}function Ri(e,n){let t;e instanceof jo?(Cc(e),t=e):t=new Hm(e);const r=nr(t),o=jn(void 0);try{return n()}finally{nr(r),jn(o)}}function Xm(){return void 0!==Vm()||null!=Yr()}function Ho(e){if(!Xm())throw new P(-203,!1)}const Y=26;function Tt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Kt(e){return Array.isArray(e)&&!0===e[1]}function Pp(e){return!!(4&e.flags)}function Fi(e){return e.componentOffset>-1}function n1(e){return!(1&~e.flags)}function ai(e){return!!e.template}function Tr(e){return!!(512&e[2])}function Jr(e){return!(256&~e[2])}class rx{previousValue;currentValue;firstChange;constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function sv(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}const sn=(()=>{const e=()=>cv;return e.ngInherit=!0,e})();function cv(e){return e.type.prototype.ngOnChanges&&(e.setInput=ax),ox}function ox(){const e=dv(this),n=e?.current;if(n){const t=e.previous;if(t===Ni)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function ax(e,n,t,i,r){const o=this.declaredInputs[i],a=dv(e)||function sx(e,n){return e[lv]=n}(e,{previous:Ni,current:null}),s=a.current||(a.current={}),c=a.previous,l=c[o];s[o]=new rx(l&&l.currentValue,t,c===Ni),sv(e,n,r,t)}const lv="__ngSimpleChanges__";function dv(e){return e[lv]||null}function Ae(e){for(;Array.isArray(e);)e=e[0];return e}function Qa(e,n){return Ae(n[e])}function Sn(e,n){return Ae(n[e.index])}function Uo(e,n){return e.data[n]}function $o(e,n){return e[n]}function En(e,n){const t=n[e];return Tt(t)?t:t[0]}function jp(e){return!(128&~e[2])}function Mi(e,n){return null==n?null:e[n]}function pv(e){e[17]=0}function Hp(e){1024&e[2]||(e[2]|=1024,jp(e)&&Xa(e))}function Sc(e){return!!(9216&e[2]||e[24]?.dirty)}function Bp(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),Sc(e)&&Xa(e)}function Xa(e){e[10].changeDetectionScheduler?.notify(0);let n=Ir(e);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,jp(n));)n=Ir(n)}function r1(e,n){if(Jr(e))throw new P(911,!1);null===e[21]&&(e[21]=[]),e[21].push(n)}function Ir(e){const n=e[3];return Kt(n)?n[3]:n}function qp(e){return e[7]??=[]}function Up(e){return e.cleanup??=[]}const le={lFrame:wv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Gp=!1;function Wp(){return le.bindingsEnabled}function Go(){return null!==le.skipHydrationRootTNode}function N(){return le.lFrame.lView}function ie(){return le.lFrame.tView}function de(e){return le.lFrame.contextLView=e,e[8]}function ue(e){return le.lFrame.contextLView=null,e}function we(){let e=gv();for(;null!==e&&64===e.type;)e=e.parent;return e}function gv(){return le.lFrame.currentTNode}function Ec(){const e=le.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function Pi(e,n){const t=le.lFrame;t.currentTNode=e,t.isParent=n}function Zp(){return le.lFrame.isParent}function Yp(){le.lFrame.isParent=!1}function vv(){return Gp}function a1(e){const n=Gp;return Gp=e,n}function Tn(){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 bi(){return le.lFrame.bindingIndex++}function Nr(e){const n=le.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function _v(e){le.lFrame.inI18n=e}function bx(e,n){const t=le.lFrame;t.bindingIndex=t.bindingRootIndex=e,Kp(n)}function Kp(e){le.lFrame.currentDirectiveIndex=e}function Qp(){return le.lFrame.currentQueryIndex}function s1(e){le.lFrame.currentQueryIndex=e}function Cx(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[5]:null}function Mv(e,n,t){if(t&De.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&De.Host||(r=Cx(o),null===r||(o=o[14],10&r.type))););if(null===r)return!1;n=r,e=o}const i=le.lFrame=bv();return i.currentTNode=n,i.lView=e,!0}function Xp(e){const n=bv(),t=e[1];le.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function bv(){const e=le.lFrame,n=null===e?null:e.child;return null===n?wv(e):n}function wv(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 Cv(){const e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Dv=Cv;function e0(){const e=Cv();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 gn(){return le.lFrame.selectedIndex}function Wo(e){le.lFrame.selectedIndex=e}function Ze(){const e=le.lFrame;return Uo(e.tView,e.selectedIndex)}let Sv=!0;function Tc(){return Sv}function or(e){Sv=e}function t0(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 c1(e,n,t){Ev(e,n,3,t)}function l1(e,n,t,i){(3&e[2])===t&&Ev(e,n,t,i)}function n0(e,n){let t=e[2];(3&t)===n&&(t&=16383,t+=1,e[2]=t)}function Ev(e,n,t,i){const o=i??-1,a=n.length-1;let s=0;for(let c=void 0!==i?65535&e[17]:0;c<a;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[17]+=65536),(s<o||-1==o)&&(Ax(e,t,n,c),e[17]=(4294901760&e[17])+c+2),c++}function Tv(e,n){const t=S(null);try{n.call(e)}finally{S(t)}}function Ax(e,n,t,i){const r=t[i]<0,o=t[i+1],s=e[r?-t[i]:t[i]];r?e[2]>>14<e[17]>>16&&(3&e[2])===n&&(e[2]+=16384,Tv(s,o)):Tv(s,o)}class Ic{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,i){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=i}}function Iv(e){return 3===e||4===e||6===e}function Av(e){return 64===e.charCodeAt(0)}function ts(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||Nv(e,t,r,0,-1===t||2===t?n[++i]:null)}}return e}function Nv(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)return void(null!==r&&(e[o+1]=r));o++,null!==r&&o++}-1!==a&&(e.splice(a,0,n),o=a+1),e.splice(o++,0,t),null!==r&&e.splice(o++,0,r)}function a0(e){return-1!==e}function Ac(e){return 32767&e}function Nc(e,n){let t=function Px(e){return e>>16}(e),i=n;for(;t>0;)i=i[14],t--;return i}let s0=!0;function d1(e){const n=s0;return s0=e,n}let Lx=0;const ar={};function u1(e,n){const t=Fv(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,c0(i.data,e),c0(n,null),c0(i.blueprint,null));const r=h1(e,n),o=e.injectorIndex;if(a0(r)){const a=Ac(r),s=Nc(r,n),c=s[1].data;for(let l=0;l<8;l++)n[o+l]=s[a+l]|c[a+l]}return n[o+8]=r,o}function c0(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Fv(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function h1(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=zv(r),null===i)return-1;if(t++,r=r[14],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function l0(e,n,t){!function Vx(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Mc)&&(i=t[Mc]),null==i&&(i=t[Mc]=Lx++);const r=255&i;n.data[e+(r>>5)]|=1<<r}(e,n,t)}function Pv(e,n,t){if(t&De.Optional||void 0!==e)return e;_p()}function Lv(e,n,t,i){if(t&De.Optional&&void 0===i&&(i=null),!(t&(De.Self|De.Host))){const r=e[9],o=jn(void 0);try{return r?r.get(n,i,t&De.Optional):jm(n,i,t&De.Optional)}finally{jn(o)}}return Pv(i,0,t)}function Vv(e,n,t,i=De.Default,r){if(null!==e){if(2048&n[2]&&!(i&De.Self)){const a=function qx(e,n,t,i,r){let o=e,a=n;for(;null!==o&&null!==a&&2048&a[2]&&!Tr(a);){const s=jv(o,a,t,i|De.Self,ar);if(s!==ar)return s;let c=o.parent;if(!c){const l=a[20];if(l){const d=l.get(t,ar,i);if(d!==ar)return d}c=zv(a),a=a[14]}o=c}return r}(e,n,t,i,ar);if(a!==ar)return a}const o=jv(e,n,t,i,ar);if(o!==ar)return o}return Lv(n,t,i,r)}function jv(e,n,t,i,r){const o=function Bx(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Mc)?e[Mc]:void 0;return"number"==typeof n?n>=0?255&n:zx:n}(t);if("function"==typeof o){if(!Mv(n,e,i))return i&De.Host?Pv(r,0,i):Lv(n,t,i,r);try{let a;if(a=o(i),null!=a||i&De.Optional)return a;_p()}finally{Dv()}}else if("number"==typeof o){let a=null,s=Fv(e,n),c=-1,l=i&De.Host?n[15][5]:null;for((-1===s||i&De.SkipSelf)&&(c=-1===s?h1(e,n):n[s+8],-1!==c&&Bv(i,!1)?(a=n[1],s=Ac(c),n=Nc(c,n)):s=-1);-1!==s;){const d=n[1];if(Hv(o,s,d.data)){const h=Hx(s,n,t,a,i,l);if(h!==ar)return h}c=n[s+8],-1!==c&&Bv(i,n[1].data[s+8]===l)&&Hv(o,s,n)?(a=d,s=Ac(c),n=Nc(c,n)):s=-1}}return r}function Hx(e,n,t,i,r,o){const a=n[1],s=a.data[e+8],d=p1(s,a,t,null==i?Fi(s)&&s0:i!=a&&!!(3&s.type),r&De.Host&&o===s);return null!==d?Rc(n,a,d,s):ar}function p1(e,n,t,i,r){const o=e.providerIndexes,a=n.data,s=1048575&o,c=e.directiveStart,d=o>>20,g=r?s+d:e.directiveEnd;for(let f=i?s:s+d;f<g;f++){const k=a[f];if(f<c&&t===k||f>=c&&k.type===t)return f}if(r){const f=a[c];if(f&&ai(f)&&f.type===t)return c}return null}function Rc(e,n,t,i){let r=e[t];const o=n.data;if(r instanceof Ic){const a=r;a.resolving&&Lm(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pe(e)}(o[t]));const s=d1(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?jn(a.injectImpl):null;Mv(e,i,De.Default);try{r=e[t]=a.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function Ix(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=cv(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),d1(s),a.resolving=!1,Dv()}}return r}function Hv(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function Bv(e,n){return!(e&De.Self||e&De.Host&&n)}class It{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Vv(this._tNode,this._lView,n,Ud(i),t)}}function zx(){return new It(we(),N())}function rt(e){return xr(()=>{const n=e.prototype.constructor,t=n[Sr]||d0(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Sr]||d0(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function d0(e){return Ld(e)?()=>{const n=d0(ce(e));return n&&n()}:Fo(e)}function zv(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[5]:null}function Wv(e,n=null,t=null,i){const r=Zv(e,n,t,i);return r.resolveInjectorInitializers(),r}function Zv(e,n=null,t=null,i,r=new Set){const o=[t||Re,Wm(e)];return i=i||("object"==typeof e?void 0:Zt(e)),new jo(o,n||Jd(),i||null,r)}class He{static THROW_IF_NOT_FOUND=Oo;static NULL=new Zd;static create(n,t){if(Array.isArray(n))return Wv({name:""},t,n,"");{const i=n.name??"";return Wv({name:i},n.parent,n.providers,i)}}static \u0275prov=j({token:He,providedIn:"any",factory:()=>oe(Gm)});static __NG_ELEMENT_ID__=-1}new z("").__NG_ELEMENT_ID__=e=>{const n=we();if(null===n)throw new P(204,!1);if(2&n.type)return n.value;if(e&De.Optional)return null;throw new P(204,!1)};const Yv=!1;let si=(()=>class e{static __NG_ELEMENT_ID__=Qx;static __NG_ENV_ID__=t=>t})();class Kv extends si{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return r1(this._lView,n),()=>function zp(e,n){if(null===e[21])return;const t=e[21].indexOf(n);-1!==t&&e[21].splice(t,1)}(this._lView,n)}}function Qx(){return new Kv(N())}class Rr{}const Oc=new z("",{providedIn:"root",factory:()=>!1}),Jv=new z(""),h0=new z("");let eo=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ei(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(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 \u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}return e})();const J=class eS extends ze{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Xm()&&(this.destroyRef=w(si,{optional:!0})??void 0,this.pendingTasks=w(eo,{optional:!0})??void 0)}emit(n){const t=S(null);try{super.next(n)}finally{S(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 on&&n.add(s),s}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Fc(...e){}function Qv(e){let n,t;function i(){e=Fc;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 Xv(e){return queueMicrotask(()=>e()),()=>{e=Fc}}const p0="isAngularZone",g1=p0+"_ID";let tS=0;class ge{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new J(!1);onMicrotaskEmpty=new J(!1);onStable=new J(!1);onError=new J(!1);constructor(n){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Yv}=n;if(typeof Zone>"u")throw new P(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 rS(e){const n=()=>{!function iS(e){function n(){Qv(()=>{e.callbackScheduled=!1,g0(e),e.isCheckStableRunning=!0,f0(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),g0(e))}(e)},t=tS++;e._inner=e._inner.fork({name:"angular",properties:{[p0]:!0,[g1]:t,[g1+t]:!0},onInvokeTask:(i,r,o,a,s,c)=>{if(function oS(e){return nk(e,"__ignore_ng_zone__")}(c))return i.invokeTask(o,a,s,c);try{return ek(e),i.invokeTask(o,a,s,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),tk(e)}},onInvoke:(i,r,o,a,s,c,l)=>{try{return ek(e),i.invoke(o,a,s,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function aS(e){return nk(e,"__scheduler_tick__")}(c)&&n(),tk(e)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,g0(e),f0(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(p0)}static assertInAngularZone(){if(!ge.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new P(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,nS,Fc,Fc);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 nS={};function f0(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 g0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function ek(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tk(e){e._nesting--,f0(e)}class y0{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new J;onMicrotaskEmpty=new J;onStable=new J;onError=new J;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 nk(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Li{_console=console;handleError(n){this._console.error("ERROR",n)}}const cS=new z("",{providedIn:"root",factory:()=>{const e=w(ge),n=w(Li);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function rk(e,n){return Im(e,n)}const dS=(rk.required=function lS(e){return Im(Pd,e)},rk);function uS(){return ns(we(),N())}function ns(e,n){return new Oe(Sn(e,n))}let Oe=(()=>class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=uS})();function ok(e){return e instanceof Oe?e.nativeElement:e}function sr(e,n){const t=function Ad(e,n){const t=Object.create(tr);t.value=e,void 0!==n&&(t.equal=n);const i=()=>(ee(t),t.value);return i[Me]=t,i}(e,n?.equal),i=t[Me];return t.set=r=>Ao(i,r),t.update=r=>function fc(e,n){pn()||Id(e),Ao(e,n(e.value))}(i,r),t.asReadonly=y1.bind(t),t}function y1(){const e=this[Me];if(void 0===e.readonlyFn){const n=()=>this();n[Me]=e,e.readonlyFn=n}return e.readonlyFn}function sk(e){return function ak(e){return"function"==typeof e&&void 0!==e[Me]}(e)&&"function"==typeof e.set}function hS(){return this._results[Symbol.iterator]()}class pS{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ze}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const i=function Hn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function V7(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.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=hS}function Lc(e){return!(128&~e.flags)}var m1=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(m1||{});const v1=new Map;let gS=0;function v0(e){v1.delete(e[19])}const _0="__ngContext__";function zn(e,n){Tt(n)?(e[_0]=n[19],function mS(e){v1.set(e[19],e)}(n)):e[_0]=n}function yk(e){return vk(e[12])}function mk(e){return vk(e[4])}function vk(e){for(;null!==e&&!Kt(e);)e=e[4];return e}let b0;function cr(){if(void 0!==b0)return b0;if(typeof document<"u")return document;throw new P(210,!1)}const Yo=new z("",{providedIn:"root",factory:()=>PS}),PS="ng",w0=new z(""),C0=new z("",{providedIn:"platform",factory:()=>"unknown"}),Dk=new z("",{providedIn:"root",factory:()=>cr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Tk=new z("",{providedIn:"root",factory:()=>!1});var F0=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(F0||{});const rs=new z(""),Rk=new Set;function qn(e){Rk.has(e)||(Rk.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}let C1=(()=>class e{view;node;constructor(t,i){this.view=t,this.node=i}static __NG_ELEMENT_ID__=BS})();function BS(){return new C1(N(),we())}var os=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(os||{});let P0=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}return e})();const Ok=[os.EarlyRead,os.Write,os.MixedReadWrite,os.Read];let Fk=(()=>{class e{ngZone=w(ge);scheduler=w(Rr);errorHandler=w(Li,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(rs,{optional:!0})}execute(){this.executing=!0;for(const i of Ok)for(const r of this.sequences)if(!r.erroredOrDestroyed&&r.hooks[i])try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,r.hooks[i])(r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(const i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(const i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){const{view:i}=t;void 0!==i?((i[25]??=[]).push(t),Xa(i),i[2]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,i){return i?i.run(F0.AFTER_NEXT_RENDER,t):t()}static \u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}return e})();class Pk{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,i,r,o,a=null){this.impl=n,this.hooks=t,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const n=this.view?.[25];n&&(this.view[25]=n.filter(t=>t!==this))}}function no(e,n){!n?.injector&&Ho();const t=n?.injector??w(He);return qn("NgAfterNextRender"),Lk(e,t,n,!0)}function Lk(e,n,t,i){const r=n.get(P0);r.impl??=n.get(Fk);const o=n.get(rs,null,{optional:!0}),a=t?.phase??os.MixedReadWrite,s=!0!==t?.manualCleanup?n.get(si):null,c=n.get(C1,null,{optional:!0}),l=new Pk(r.impl,function zS(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,a),c?.view,i,s,o?.snapshot(null));return r.impl.register(l),l}function s_(e,n){const t=e.contentQueries;if(null!==t){const i=S(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{S(i)}}}function Y0(e,n,t){s1(0);const i=S(null);try{n(e,t)}finally{S(i)}}function K0(e,n,t){if(Pp(n)){const i=S(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{S(i)}}}var wi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wi||{});let R1,O1;function ps(e){return function c_(){if(void 0===R1&&(R1=null,St.trustedTypes))try{R1=St.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return R1}()?.createHTML(e)||e}function u_(e){return function J0(){if(void 0===O1&&(O1=null,St.trustedTypes))try{O1=St.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return O1}()?.createScriptURL(e)||e}class h_{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Em})`}}function io(e){return e instanceof h_?e.changingThisBreaksApplicationSecurity:e}function Jc(e,n){const t=function T9(e){return e instanceof h_&&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 ${Em})`)}return t===n}class I9{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(ps(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class A9{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=ps(n),t}}const R9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Q0(e){return(e=String(e)).match(R9)?e:"unsafe:"+e}function Pr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Qc(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const f_=Pr("area,br,col,hr,img,wbr"),g_=Pr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y_=Pr("rp,rt"),X0=Qc(f_,Qc(g_,Pr("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")),Qc(y_,Pr("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")),Qc(y_,g_)),e2=Pr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),m_=Qc(e2,Pr("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"),Pr("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 fs=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}(fs||{});function Qo(e){const n=Xc();return n?n.sanitize(fs.STYLE,e)||"":Jc(e,"Style")?io(e):pe(e)}function P1(e){const n=Xc();return n?n.sanitize(fs.URL,e)||"":Jc(e,"URL")?io(e):Q0(pe(e))}function M_(e){const n=Xc();if(n)return u_(n.sanitize(fs.RESOURCE_URL,e)||"");if(Jc(e,"ResourceURL"))return u_(io(e));throw new P(904,!1)}function Xc(){const e=N();return e&&e[10].sanitizer}const Z9=/^>|^->|<!--|-->|--!>|<!-$/g,Y9=/(<|>)/g;function lr(e){return e instanceof Function?e():e}function sE(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}}const A_="ng-template";function cE(e,n,t,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==sE(n[r+1].toLowerCase(),t,0))return!0}else if(r2(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 r2(e){return 4===e.type&&e.value!==A_}function lE(e,n,t){return n===(4!==e.type||t?e.value:A_)}function dE(e,n,t){let i=4;const r=e.attrs,o=null!==r?function pE(e){for(let n=0;n<e.length;n++)if(Iv(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&&!lE(e,c,t)||""===c&&1===n.length){if(Vi(i))return!1;a=!0}}else if(8&i){if(null===r||!cE(e,r,c,t)){if(Vi(i))return!1;a=!0}}else{const l=n[++s],d=uE(c,r,r2(e),t);if(-1===d){if(Vi(i))return!1;a=!0;continue}if(""!==l){let h;if(h=d>o?"":r[d+1].toLowerCase(),2&i&&l!==h){if(Vi(i))return!1;a=!0}}}}else{if(!a&&!Vi(i)&&!Vi(c))return!1;if(a&&Vi(c))continue;a=!1,i=c|1&i}}return Vi(i)||a}function Vi(e){return!(1&e)}function uE(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 fE(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 N_(e,n,t=!1){for(let i=0;i<n.length;i++)if(dE(e,n[i],t))return!0;return!1}function gE(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 R_(e,n){return e?":not("+n.trim()+")":n}function yE(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&&!Vi(a)&&(n+=R_(o,r),r=""),i=a,o=o||!Vi(i);t++}return""!==r&&(n+=R_(o,r)),n}const fe={};function o2(e,n){return e.createText(n)}function O_(e,n,t){e.setValue(n,t)}function a2(e,n){return e.createComment(function w_(e){return e.replace(Z9,n=>n.replace(Y9,"\u200b$1\u200b"))}(n))}function j1(e,n,t){return e.createElement(n,t)}function Xo(e,n,t,i,r){e.insertBefore(n,t,i,r)}function F_(e,n,t){e.appendChild(n,t)}function P_(e,n,t,i,r){null!==i?Xo(e,n,t,i,r):F_(e,n,t)}function el(e,n,t){e.removeChild(null,n,t)}function V_(e,n,t){const{mergedAttrs:i,classes:r,styles:o}=t;null!==i&&function Fx(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];Av(o)?e.setProperty(n,o,a):e.setAttribute(n,o,a),i++}}}(e,n,i),null!==r&&function _E(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}(e,n,r),null!==o&&function kE(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}function s2(e,n,t,i,r,o,a,s,c,l,d){const h=Y+i,g=h+r,f=function ME(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:fe);return t}(h,g),k="function"==typeof l?l():l;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:s,declTNode:n,data:f.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:g,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}}function H1(e,n,t,i,r,o,a,s,c,l,d){const h=n.blueprint.slice();return h[0]=r,h[2]=1228|i,(null!==l||e&&2048&e[2])&&(h[2]|=2048),pv(h),h[3]=h[14]=e,h[8]=t,h[10]=a||e&&e[10],h[11]=s||e&&e[11],h[9]=c||e&&e[9]||null,h[5]=o,h[19]=function yS(){return gS++}(),h[6]=d,h[20]=l,h[15]=2==n.type?e[15]:h,h}function c2(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function tl(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 l2(e,n){return e[12]?e[13][4]=n:e[12]=n,e[13]=n,n}function b(e=1){H_(ie(),N(),gn()+e,!1)}function H_(e,n,t,i){if(!i)if(3&~n[2]){const o=e.preOrderHooks;null!==o&&l1(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&c1(n,o,t)}Wo(t)}var B1=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(B1||{});function d2(e,n,t,i){const r=S(null);try{const[o,a,s]=e.inputs[t];let c=null;!!(a&B1.SignalBased)&&(c=n[o][Me]),null!==c&&void 0!==c.transformFn?i=c.transformFn(i):null!==s&&(i=s.call(n,i)),null!==e.setInput?e.setInput(n,c,i,t,o):sv(n,c,o,i)}finally{S(r)}}function B_(e,n,t,i,r){const o=gn(),a=2&i;try{Wo(-1),a&&n.length>Y&&H_(e,n,Y,!1),t(i,r)}finally{Wo(o)}}function z1(e,n,t){(function TE(e,n,t){const i=t.directiveStart,r=t.directiveEnd;Fi(t)&&function bE(e,n,t){const i=Sn(n,e),r=function j_(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=s2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}(t),o=e[10].rendererFactory,a=l2(e,H1(e,r,null,c2(t),i,n,null,o.createRenderer(i,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||u1(t,n);const o=t.initialInputs;for(let a=i;a<r;a++){const s=e.data[a],c=Rc(n,e,a,t);zn(c,n),null!==o&&NE(0,a-i,c,s,0,o),ai(s)&&(En(t.index,n)[8]=Rc(n,e,a,t))}})(e,n,t),!(64&~t.flags)&&function IE(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function wx(){return le.lFrame.currentDirectiveIndex}();try{Wo(o);for(let s=i;s<r;s++){const c=e.data[s],l=n[s];Kp(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&AE(c,l)}}finally{Wo(-1),Kp(a)}}(e,n,t)}function u2(e,n,t=Sn){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}}}let y2,z_=()=>null;function Un(e,n,t,i,r,o,a,s){if(s||!g2(n,e,t,i,r)){if(3&n.type){const c=Sn(n,t);i=function SE(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)}}else Fi(n)&&function EE(e,n){const t=En(n,e);16&t[2]||(t[2]|=64)}(t,n.index)}function AE(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function h2(e,n){const t=e.directiveRegistry;let i=null;if(t)for(let r=0;r<t.length;r++){const o=t[r];N_(n,o.selectors,!1)&&(i??=[],ai(o)?i.unshift(o):i.push(o))}return i}function p2(e,n,t,i,r,o,a){if(null==o)e.removeAttribute(n,r,t);else{const s=null==a?pe(o):a(o,i||"",r);e.setAttribute(n,r,s,t)}}function NE(e,n,t,i,r,o){const a=o[n];if(null!==a)for(let s=0;s<a.length;s+=2)d2(i,t,a[s],a[s+1])}function g2(e,n,t,i,r){const o=e.inputs?.[i],a=e.hostDirectiveInputs?.[i];let s=!1;if(a)for(let c=0;c<a.length;c+=2){const l=a[c];d2(n.data[l],t[l],a[c+1],r),s=!0}if(o)for(const c of o)d2(n.data[c],t[c],i,r),s=!0;return s}function RE(e,n){const t=En(n,e),i=t[1];!function OE(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[0];null!==r&&null===t[6]&&(t[6]=null),q1(i,t,t[8])}function q1(e,n,t){Xp(n);try{const i=e.viewQuery;null!==i&&Y0(1,i,t);const r=e.template;null!==r&&B_(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[18]?.finishViewCreation(e),e.staticContentQueries&&s_(e,n),e.staticViewQueries&&Y0(2,e.viewQuery,t);const o=e.components;null!==o&&function FE(e,n){for(let t=0;t<n.length;t++)RE(e,n[t])}(n,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,e0()}}function ys(e,n,t,i){const r=S(null);try{const o=n.tView,c=H1(e,o,t,4096&e[2]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);c[16]=e[n.index];const d=e[18];return null!==d&&(c[18]=d.createEmbeddedView(o)),q1(o,c,t),c}finally{S(r)}}function ea(e,n){return!n||null===n.firstChild||Lc(e)}function m2(e,n){return y2(e,n)}var ro=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ro||{});function oo(e){return!(32&~e.flags)}function ms(e,n,t,i,r){if(null!=i){let o,a=!1;Kt(i)?o=i:Tt(i)&&(a=!0,i=i[0]);const s=Ae(i);0===e&&null!==t?null==r?F_(n,t,s):Xo(n,t,s,r||null,!0):1===e&&null!==t?Xo(n,t,s,r||null,!0):2===e?el(n,s,a):3===e&&n.destroyNode(s),null!=o&&function zE(e,n,t,i,r){const o=t[7];o!==Ae(t)&&ms(n,e,i,o,r);for(let s=10;s<t.length;s++){const c=t[s];$1(c[1],c,e,n,i,o)}}(n,e,o,t,r)}}function G_(e,n){n[10].changeDetectionScheduler?.notify(9),$1(e,n,n[11],2,null,null)}function v2(e,n){const t=e[9],i=t.indexOf(n);t.splice(i,1)}function nl(e,n){if(Jr(n))return;const t=n[11];t.destroyNode&&$1(e,n,t,3,null,null),function VE(e){let n=e[12];if(!n)return k2(e[1],e);for(;n;){let t=null;if(Tt(n))t=n[12];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)Tt(n)&&k2(n[1],n),n=n[3];null===n&&(n=e),Tt(n)&&k2(n[1],n),t=n&&n[4]}n=t}}(n)}function k2(e,n){if(Jr(n))return;const t=S(null);try{n[2]&=-129,n[2]|=256,n[24]&&To(n[24]),function HE(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 Ic)){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];try{c.call(s)}finally{}}else try{o.call(r)}finally{}}}}(e,n),function jE(e,n){const t=e.cleanup,i=n[7];if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const s=t[a+3];s>=0?i[s]():i[-s].unsubscribe(),a+=2}else t[a].call(i[t[a+1]]);null!==i&&(n[7]=null);const r=n[21];if(null!==r){n[21]=null;for(let a=0;a<r.length;a++)(0,r[a])()}const o=n[23];if(null!==o){n[23]=null;for(const a of o)a.destroy()}}(e,n),1===n[1].type&&n[11].destroy();const i=n[16];if(null!==i&&Kt(n[3])){i!==n[3]&&v2(i,n);const r=n[18];null!==r&&r.detachView(e)}v0(n)}finally{S(t)}}function _2(e,n,t){return W_(e,n.parent,t)}function W_(e,n,t){let i=n;for(;null!==i&&168&i.type;)i=(n=i).parent;if(null===i)return t[0];if(Fi(i)){const{encapsulation:r}=e.data[i.directiveStart+i.componentOffset];if(r===wi.None||r===wi.Emulated)return null}return Sn(i,t)}function Z_(e,n,t){return K_(e,n,t)}function Y_(e,n,t){return 40&e.type?Sn(e,t):null}let M2,K_=Y_;function J_(e,n){K_=e,M2=n}function U1(e,n,t,i){const r=_2(e,i,n),o=n[11],s=Z_(i.parent||n[5],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)P_(o,r,t[c],s,!1);else P_(o,r,t,s,!1);void 0!==M2&&M2(o,i,n,t,r)}function ta(e,n){if(null!==n){const t=n.type;if(3&t)return Sn(n,e);if(4&t)return b2(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return ta(e,i);{const r=e[n.index];return Kt(r)?b2(-1,r):Ae(r)}}if(128&t)return ta(e,n.next);if(32&t)return m2(n,e)()||Ae(e[n.index]);{const i=Q_(e,n);return null!==i?Array.isArray(i)?i[0]:ta(Ir(e[15]),i):ta(e,n.next)}}return null}function Q_(e,n){return null!==n?e[15][5].projection[n.projection]:null}function b2(e,n){const t=10+e+1;if(t<n.length){const i=n[t],r=i[1].firstChild;if(null!==r)return ta(i,r)}return n[7]}function w2(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&&zn(Ae(s),i),t.flags|=2),!oo(t))if(8&c)w2(e,n,t.child,i,r,o,!1),ms(n,e,r,s,o);else if(32&c){const l=m2(t,i);let d;for(;d=l();)ms(n,e,r,d,o);ms(n,e,r,s,o)}else 16&c?X_(e,n,i,t,r,o):ms(n,e,r,s,o);t=a?t.projectionNext:t.next}}function $1(e,n,t,i,r,o){w2(t,i,e.firstChild,n,r,o,!1)}function X_(e,n,t,i,r,o){const a=t[15],c=a[5].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)ms(n,e,r,c[l],o);else{let l=c;const d=a[3];Lc(i)&&(l.flags|=128),w2(e,n,l,d,r,o,!0)}}function vs(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(Ae(o)),Kt(o)&&C2(o,i);const a=t.type;if(8&a)vs(e,n,t.child,i);else if(32&a){const s=m2(t,n);let c;for(;c=s();)i.push(c)}else if(16&a){const s=Q_(n,t);if(Array.isArray(s))i.push(...s);else{const c=Ir(n[15]);vs(c[1],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}function C2(e,n){for(let t=10;t<e.length;t++){const i=e[t],r=i[1].firstChild;null!==r&&vs(i[1],i,r,n)}e[7]!==e[0]&&n.push(e[7])}function e4(e){if(null!==e[25]){for(const n of e[25])n.impl.addSequence(n);e[25].length=0}}let t4=[];const WE={...$t,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Xa(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},YE={...$t,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=Ir(e.lView);for(;n&&!n4(n[1]);)n=Ir(n);n&&Hp(n)},consumerOnSignalRead(){this.lView[24]=this}};function n4(e){return 2!==e.type}function i4(e){if(null===e[23])return;let n=!0;for(;n;){let t=!1;for(const i of e[23])i.dirty&&(t=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=t&&!!(8192&e[2])}}function G1(e,n=!0,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function JE(e,n){const t=vv();try{a1(!0),D2(e,n);let i=0;for(;Sc(e);){if(100===i)throw new P(103,!1);i++,D2(e,1)}}finally{a1(t)}}(e,t)}catch(a){throw n&&function f2(e,n){const t=e[9],i=t?t.get(Li,null):null;i&&i.handleError(n)}(e,a),a}finally{r.end?.()}}function o4(e,n,t,i){if(Jr(n))return;const r=n[2];Xp(n);let s=!0,c=null,l=null;n4(e)?(l=function UE(e){return e[24]??function $E(e){const n=t4.pop()??Object.create(WE);return n.lView=e,n}(e)}(n),c=Dn(l)):null===function Mn(){return ve}()?(s=!1,l=function ZE(e){const n=e[24]??Object.create(YE);return n.lView=e,n}(n),c=Dn(l)):n[24]&&(To(n[24]),n[24]=null);try{pv(n),function kv(e){return le.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&B_(e,n,t,2,i);const d=!(3&~r);if(d){const f=e.preOrderCheckHooks;null!==f&&c1(n,f,null)}else{const f=e.preOrderHooks;null!==f&&l1(n,f,0,null),n0(n,0)}if(function QE(e){for(let n=yk(e);null!==n;n=mk(n)){if(!(2&n[2]))continue;const t=n[9];for(let i=0;i<t.length;i++)Hp(t[i])}}(n),i4(n),a4(n,0),null!==e.contentQueries&&s_(e,n),d){const f=e.contentCheckHooks;null!==f&&c1(n,f)}else{const f=e.contentHooks;null!==f&&l1(n,f,1),n0(n,1)}!function eT(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)Wo(~r);else{const o=r,a=t[++i],s=t[++i];bx(a,o);const c=n[o];s(2,c)}}}finally{Wo(-1)}}(e,n);const h=e.components;null!==h&&c4(n,h,0);const g=e.viewQuery;if(null!==g&&Y0(2,g,i),d){const f=e.viewCheckHooks;null!==f&&c1(n,f)}else{const f=e.viewHooks;null!==f&&l1(n,f,2),n0(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[22]){for(const f of n[22])f();n[22]=null}e4(n),n[2]&=-73}catch(d){throw Xa(n),d}finally{null!==l&&(Lt(l,c),s&&function GE(e){e.lView[24]!==e&&(e.lView=null,t4.push(e))}(l)),e0()}}function a4(e,n){for(let t=yk(e);null!==t;t=mk(t))for(let i=10;i<t.length;i++)s4(t[i],n)}function XE(e,n,t){const i=En(n,e);s4(i,t)}function s4(e,n){jp(e)&&D2(e,n)}function D2(e,n){const i=e[1],r=e[2],o=e[24];let a=!!(0===n&&16&r);if(a||=!!(64&r&&0===n),a||=!!(1024&r),a||=!(!o?.dirty||!ki(o)),a||=!1,o&&(o.dirty=!1),e[2]&=-9217,a)o4(i,e,i.template,e[8]);else if(8192&r){i4(e),a4(e,1);const s=i.components;null!==s&&c4(e,s,1),e4(e)}}function c4(e,n,t){for(let i=0;i<n.length;i++)XE(e,n[i],t)}function il(e,n){const t=vv()?64:1088;for(e[10].changeDetectionScheduler?.notify(n);e;){e[2]|=t;const i=Ir(e);if(Tr(e)&&!i)return e;e=i}return null}function l4(e,n,t,i){return[e,!0,0,n,null,i,null,t,null,null]}function ks(e,n,t,i=!0){const r=n[1];if(function tT(e,n,t,i){const r=10+i,o=t.length;i>0&&(t[r-1][4]=n),i<o-10?(n[4]=t[r],qm(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const a=n[16];null!==a&&t!==a&&u4(a,n);const s=n[18];null!==s&&s.insertView(e),Bp(n),n[2]|=128}(r,n,e,t),i){const a=b2(t,e),s=n[11],c=s.parentNode(e[7]);null!==c&&function LE(e,n,t,i,r,o){i[0]=r,i[5]=n,$1(e,i,t,1,r,o)}(r,e[5],s,n,c,a)}const o=n[6];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function rl(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[16];null!==r&&r!==e&&v2(r,i),n>0&&(e[t-1][4]=i[4]);const o=Gd(e,10+n);!function $_(e,n){G_(e,n),n[0]=null,n[5]=null}(i[1],i);const a=o[18];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function u4(e,n){const t=e[9],i=n[3];(Tt(i)||n[15]!==i[3][15])&&(e[2]|=2),null===t?e[9]=[n]:t.push(n)}let ol=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const n=this._lView,t=n[1];return vs(t,n,t.firstChild,[])}constructor(n,t,i=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=i}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return Jr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Kt(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(rl(n,i),Gd(t,i))}this._attachedToViewContainer=!1}nl(this._lView[1],this._lView)}onDestroy(n){r1(this._lView,n)}markForCheck(){il(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){Bp(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,G1(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Tr(this._lView),t=this._lView[16];null!==t&&!n&&v2(t,this._lView),G_(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=n;const t=Tr(this._lView),i=this._lView[16];null!==i&&!t&&u4(i,this._lView),Bp(this._lView)}},Ft=(()=>class e{static __NG_ELEMENT_ID__=rT})();const nT=Ft,iT=class extends nT{_declarationLView;_declarationTContainer;elementRef;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=ys(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new ol(r)}};function rT(){return W1(we(),N())}function W1(e,n){return 4&e.type?new iT(n,e,ns(e,n)):null}function f4(e,n,t){const i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?Y_(e,0,t):Ae(t[r])}function g4(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++)Xo(e,a,t[o[c]],s,!1)}}function _s(e,n,t,i,r){let o=e.data[n];if(null===o)o=I2(e,n,t,i,r),function Mx(){return le.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const a=Ec();o.injectorIndex=null===a?-1:a.injectorIndex}return Pi(o,!0),o}function I2(e,n,t,i,r){const o=gv(),a=Zp(),c=e.data[n]=function fT(e,n,t,i,r,o){let a=n?n.injectorIndex:-1,s=0;return Go()&&(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:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,t,n,i,r);return function pT(e,n,t,i){null===e.firstChild&&(e.firstChild=n),null!==t&&(i?null==t.child&&null!==n.parent&&(t.child=n):null===t.next&&(t.next=n,n.prev=t))}(e,c,o,a),c}function y4(e,n){if(e.push(n),e.length>1)for(let t=e.length-2;t>=0;t--){const i=e[t];m4(i)||gT(i,n)&&null===yT(i)&&mT(i,n.index)}}function m4(e){return!(64&e.type)}function gT(e,n){return m4(n)||e.index>n.index}function yT(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function mT(e,n){const t=e.insertBeforeIndex;Array.isArray(t)?t[0]=n:(J_(f4,g4),e.insertBeforeIndex=n)}function ll(e,n){const t=e.data[n];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function _T(e,n,t){const i=I2(e,t,64,null,null);return y4(n,i),i}function Y1(e,n){const t=n[e.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function v4(e){return e>>>17}function k4(e){return(131070&e)>>>1}function A2(e,n,t){e.index=0;const i=Y1(n,t);e.removes=null!==i?n.remove[i]:Re}function K1(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),A2(e,e.lView[1].data[~n],e.lView),K1(e))}return 0===e.stack.length?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),K1(e))}function bT(){const e={stack:[],index:-1};return function n(t,i){for(e.lView=i;e.stack.length;)e.stack.pop();return A2(e,t.value,i),K1.bind(null,e)}}let eI=class{},O4=class{};class tI{resolveComponentFactory(n){throw Error(`No component factory found for ${Zt(n)}.`)}}let eu=class{static NULL=new tI};class V2{}let ur=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function nI(){const e=N(),t=En(we().index,e);return(Tt(t)?t:e)[11]}()})(),iI=(()=>{class e{static \u0275prov=j({token:e,providedIn:"root",factory:()=>null})}return e})();const H2={};class ws{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=Ud(i);const r=this.injector.get(n,H2,i);return r!==H2||t===H2?r:this.parentInjector.get(n,t,i)}}function B2(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=pp(r,s):2==o&&(i=pp(i,s+": "+n[++a]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}function R(e,n=De.Default){const t=N();return null===t?oe(e,n):Vv(we(),t,ce(e),n)}function z2(e,n,t,i,r){const o=null===i?null:{"":-1},a=r(e,t);if(null!==a){let s,c=null,l=null;const d=function cI(e){let n=null,t=!1;for(let a=0;a<e.length;a++){const s=e[a];if(0===a&&ai(s)&&(n=s),null!==s.findHostDirectiveDefs){t=!0;break}}if(!t)return null;let i=null,r=null,o=null;for(const a of e)null!==a.findHostDirectiveDefs&&(i??=[],r??=new Map,o??=new Map,lI(a,i,o,r)),a===n&&(i??=[],i.push(a));return null!==i?(i.push(...null===n?e:e.slice(1)),[i,r,o]):null}(a);null===d?s=a:[s,c,l]=d,function uI(e,n,t,i,r,o,a){const s=i.length;let c=!1;for(let g=0;g<s;g++){const f=i[g];!c&&ai(f)&&(c=!0,dI(e,t,g)),l0(u1(t,n),e,f.type)}!function mI(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,s);for(let g=0;g<s;g++){const f=i[g];f.providersResolver&&f.providersResolver(f)}let l=!1,d=!1,h=tl(e,n,s,null);s>0&&(t.directiveToIndex=new Map);for(let g=0;g<s;g++){const f=i[g];if(t.mergedAttrs=ts(t.mergedAttrs,f.hostAttrs),pI(e,t,n,h,f),yI(h,f,r),null!==a&&a.has(f)){const[C,E]=a.get(f);t.directiveToIndex.set(f.type,[h,C+t.directiveStart,E+t.directiveStart])}else(null===o||!o.has(f))&&t.directiveToIndex.set(f.type,h);null!==f.contentQueries&&(t.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=64);const k=f.type.prototype;!l&&(k.ngOnChanges||k.ngOnInit||k.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),l=!0),!d&&(k.ngOnChanges||k.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),d=!0),h++}!function hI(e,n,t){for(let i=n.directiveStart;i<n.directiveEnd;i++){const r=e.data[i];if(null!==t&&t.has(r)){const o=t.get(r);V4(0,n,o,i),V4(1,n,o,i),H4(n,i,!0)}else L4(0,n,r,i),L4(1,n,r,i),H4(n,i,!1)}}(e,t,o)}(e,n,t,s,o,c,l)}null!==o&&null!==i&&function sI(e,n,t){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const o=t[n[r+1]];if(null==o)throw new P(-301,!1);i.push(n[r],o)}}(t,i,o)}function lI(e,n,t,i){const r=n.length;e.findHostDirectiveDefs(e,n,i),t.set(e,[r,n.length-1])}function dI(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function L4(e,n,t,i){const r=0===e?t.inputs:t.outputs;for(const o in r)if(r.hasOwnProperty(o)){let a;a=0===e?n.inputs??={}:n.outputs??={},a[o]??=[],a[o].push(i),j4(n,o)}}function V4(e,n,t,i){const r=0===e?t.inputs:t.outputs;for(const o in r)if(r.hasOwnProperty(o)){const a=r[o];let s;s=0===e?n.hostDirectiveInputs??={}:n.hostDirectiveOutputs??={},s[a]??=[],s[a].push(i,o),j4(n,a)}}function j4(e,n){"class"===n?e.flags|=8:"style"===n&&(e.flags|=16)}function H4(e,n,t){const{attrs:i,inputs:r,hostDirectiveInputs:o}=e;if(null===i||!t&&null===r||t&&null===o||r2(e))return e.initialInputs??=[],void e.initialInputs.push(null);let a=null,s=0;for(;s<i.length;){const c=i[s];if(0!==c)if(5!==c){if("number"==typeof c)break;if(!t&&r.hasOwnProperty(c)){const l=r[c];for(const d of l)if(d===n){a??=[],a.push(c,i[s+1]);break}}else if(t&&o.hasOwnProperty(c)){const l=o[c];for(let d=0;d<l.length;d+=2)if(l[d]===n){a??=[],a.push(l[d+1],i[s+1]);break}}s+=2}else s+=2;else s+=4}e.initialInputs??=[],e.initialInputs.push(a)}function pI(e,n,t,i,r){e.data[i]=r;const o=r.factory||(r.factory=Fo(r.type)),a=new Ic(o,ai(r),R);e.blueprint[i]=a,t[i]=a,function fI(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 gI(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,tl(e,t,r.hostVars,fe),r)}function yI(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;ai(n)&&(t[""]=e)}}function B4(e,n,t,i,r,o,a,s){const c=n.consts,d=_s(n,e,2,i,Mi(c,a));return o&&z2(n,t,d,Mi(c,s),r),d.mergedAttrs=ts(d.mergedAttrs,d.attrs),null!==d.attrs&&B2(d,d.attrs,!1),null!==d.mergedAttrs&&B2(d,d.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,d),d}function z4(e,n){t0(e,n),Pp(n)&&e.queries.elementEnd(n)}class q4 extends eu{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=xe(n);return new gl(t,this.ngModule)}}class gl extends O4{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function vI(e){return Object.keys(e).map(n=>{const[t,i,r]=e[n],o={propName:t,templateName:n,isSignal:!!(i&B1.SignalBased)};return r&&(o.transform=r),o})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function kI(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function mE(e){return e.map(yE).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,i,r){const o=S(null);try{const a=this.componentDef,s=i?["ng-version","19.2.8"]:function vE(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(!Vi(r))break;r=o}i++}return t.length&&n.push(1,...t),n}(this.componentDef.selectors[0]),c=s2(0,null,null,1,0,null,null,null,null,[s],null),l=function _I(e,n,t){let i=n instanceof bn?n:n?.injector;return i&&null!==e.getStandaloneInjector&&(i=e.getStandaloneInjector(i)||i),i?new ws(t,i):t}(a,r||this.ngModule,n),d=function MI(e){const n=e.get(V2,null);if(null===n)throw new P(407,!1);return{rendererFactory:n,sanitizer:e.get(iI,null),changeDetectionScheduler:e.get(Rr,null)}}(l),h=d.rendererFactory.createRenderer(null,a),g=i?function wE(e,n,t,i){const o=i.get(Tk,!1)||t===wi.ShadowDom,a=e.selectRootElement(n,o);return function CE(e){z_(e)}(a),a}(h,i,a.encapsulation,l):function bI(e,n){const t=(e.selectors[0][0]||"div").toLowerCase();return j1(n,t,"svg"===t?"svg":"math"===t?"math":null)}(a,h),f=H1(null,c,null,512|c2(a),null,null,d,h,l,null,null);f[Y]=g,Xp(f);let k=null;try{const C=B4(Y,c,f,"#host",()=>[this.componentDef],!0,0);g&&(V_(h,g,C),zn(g,f)),z1(c,f,C),K0(c,C,f),z4(c,C),void 0!==t&&function CI(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const o=t[r];i.push(null!=o&&o.length?Array.from(o):null)}}(C,this.ngContentSelectors,t),k=En(C.index,f),f[8]=k[8],q1(c,f,null)}catch(C){throw null!==k&&v0(k),v0(f),C}finally{e0()}return new wI(this.componentType,f)}finally{S(o)}}}class wI extends eI{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t){super(),this._rootLView=t,this._tNode=Uo(t[1],Y),this.location=ns(this._tNode,t),this.instance=En(this._tNode.index,t)[8],this.hostView=this.changeDetectorRef=new ol(t,void 0,!1),this.componentType=n}setInput(n,t){const i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const r=this._rootLView;g2(i,r[1],r,n,t),this.previousInputValues.set(n,t),il(En(i.index,r),1)}get injector(){return new It(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}let $n=(()=>class e{static __NG_ELEMENT_ID__=DI})();function DI(){return G4(we(),N())}const xI=$n,U4=class extends xI{_lContainer;_hostTNode;_hostLView;constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return ns(this._hostTNode,this._hostLView)}get injector(){return new It(this._hostTNode,this._hostLView)}get parentInjector(){const n=h1(this._hostTNode,this._hostLView);if(a0(n)){const t=Nc(n,this._hostLView),i=Ac(n);return new It(t[1].data[i+8],t)}return new It(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=$4(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(s,r,ea(this._hostTNode,null)),s}createComponent(n,t,i,r,o){const a=n&&!function Dc(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 gl(xe(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const C=(a?l:this.parentInjector).get(bn,null);C&&(o=C)}xe(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,s,ea(this._hostTNode,null)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function ux(e){return Kt(e[3])}(r)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=r[3],l=new U4(c,c[5],c[3]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(t),a=this._lContainer;return ks(a,r,o,i),n.attachToViewContainerRef(),qm(q2(a),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=$4(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=rl(this._lContainer,t);i&&(Gd(q2(this._lContainer),t),nl(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=rl(this._lContainer,t);return i&&null!=Gd(q2(this._lContainer),t)?new ol(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function $4(e){return e[8]}function q2(e){return e[8]||(e[8]=[])}function G4(e,n){let t;const i=n[e.index];return Kt(i)?t=i:(t=l4(i,n,null,e),n[e.index]=t,l2(n,t)),W4(t,n,e,i),new U4(t,e,n)}let W4=function Y4(e,n,t,i){if(e[7])return;let r;r=8&t.type?Ae(i):function SI(e,n){const t=e[11],i=t.createComment(""),r=Sn(n,e),o=t.parentNode(r);return Xo(t,o,i,t.nextSibling(r),!1),i}(n,t),e[7]=r};class $2{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new $2(this.queryList)}setDirty(){this.queryList.setDirty()}}class G2{queries;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 G2(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!==J2(n,t).matches&&this.queries[t].setDirty()}}class K4{flags;read;predicate;constructor(n,t,i=null){this.flags=t,this.read=i,this.predicate="string"==typeof n?function FI(e){return e.split(",").map(n=>n.trim())}(n):n}}class W2{queries;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 W2(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 Z2{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,t=-1){this.metadata=n,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Z2(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,AI(t,o)),this.matchTNodeWithReadOption(n,t,p1(t,n,o,!1,!1))}else i===Ft?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,p1(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Oe||r===$n||r===Ft&&4&t.type)this.addMatch(t.index,-2);else{const o=p1(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 AI(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 RI(e,n,t,i){return-1===t?function NI(e,n){return 11&e.type?ns(e,n):4&e.type?W1(e,n):null}(n,e):-2===t?function OI(e,n,t){return t===Oe?ns(n,e):t===Ft?W1(n,e):t===$n?G4(n,e):void 0}(e,n,i):Rc(e,e[1],t,n)}function J4(e,n,t,i){const r=n[18].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:RI(n,o[l],a[c+1],t.metadata.read))}r.matches=s}return r.matches}function Y2(e,n,t,i){const r=e.queries.getByIndex(t),o=r.matches;if(null!==o){const a=J4(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=10;h<d.length;h++){const g=d[h];g[16]===g[3]&&Y2(g[1],g,l,i)}if(null!==d[9]){const h=d[9];for(let g=0;g<h.length;g++){const f=h[g];Y2(f[1],f,l,i)}}}}}return i}function Q4(e,n,t){const i=new pS(!(4&~t));return function hx(e,n,t,i){const r=qp(n);r.push(t),e.firstCreatePass&&Up(e).push(i,r.length-1)}(e,n,i,i.destroy),(n[18]??=new G2).queries.push(new $2(i))-1}function tM(e,n,t){null===e.queries&&(e.queries=new W2),e.queries.track(new Z2(n,t))}function J2(e,n){return e.queries.getByIndex(n)}function nM(e,n){const t=e[1],i=J2(t,n);return i.crossesNgTemplate?Y2(t,e,n,[]):J4(t,e,i,n)}let ra=class{},pM=class{};class ef extends ra{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new q4(this);constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t;const o=ii(n);this._bootstrapComponents=lr(o.bootstrap),this._r3Injector=Zv(n,t,[{provide:ra,useValue:this},{provide:eu,useValue:this.componentFactoryResolver},...i],Zt(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 tf extends pM{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ef(this.moduleType,n,[])}}class fM extends ra{injector;componentFactoryResolver=new q4(this);instance=null;constructor(n){super();const t=new jo([...n.providers,{provide:ra,useValue:this},{provide:eu,useValue:this.componentFactoryResolver}],n.parent||Jd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function nu(e,n,t=null){return new fM({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let ZI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Sp(0,t.type),r=i.length>0?nu([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 \u0275prov=j({token:e,providedIn:"environment",factory:()=>new e(oe(bn))})}return e})();function re(e){return xr(()=>{const n=gM(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===m1.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(ZI).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wi.Emulated,styles:e.styles||Re,_:null,schemas:e.schemas||null,tView:null,id:""};n.standalone&&qn("NgStandalone"),yM(t);const i=e.dependencies;return t.directiveDefs=iu(i,!1),t.pipeDefs=iu(i,!0),t.id=function eA(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function YI(e){return xe(e)||fn(e)}function KI(e){return null!==e}function Ke(e){return xr(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function JI(e,n){if(null==e)return Ni;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,a,s,c;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,c=r[3]||null):(o=r,a=r,s=B1.None,c=null),t[o]=[i,s,c],n[o]=a}return t}function QI(e){if(null==e)return Ni;const n={};for(const t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function G(e){return xr(()=>{const n=gM(e);return yM(n),n})}function Gn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function gM(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,inputConfig:e.inputs||Ni,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:JI(e.inputs,n),outputs:QI(e.outputs),debugInfo:null}}function yM(e){e.features?.forEach(n=>n(e))}function iu(e,n){if(!e)return null;const t=n?ri:YI;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(KI)}function K(e){let n=function mM(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(ai(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new P(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const a=e;a.inputs=nf(e.inputs),a.declaredInputs=nf(e.declaredInputs),a.outputs=nf(e.outputs);const s=r.hostBindings;s&&oA(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&iA(e,c),l&&rA(e,l),tA(e,r),m7(e.outputs,r.outputs),ai(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===K&&(t=!1)}}n=Object.getPrototypeOf(n)}!function nA(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=ts(r.hostAttrs,t=ts(t,r.hostAttrs))}}(i)}function tA(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t])}}function nf(e){return e===Ni?{}:e===Re?[]:e}function iA(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function rA(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function oA(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function rf(e){const n=t=>{const i=Array.isArray(e);null===t.hostDirectives?(t.findHostDirectiveDefs=vM,t.hostDirectives=i?e.map(af):[e]):i?t.hostDirectives.unshift(...e.map(af)):t.hostDirectives.unshift(e)};return n.ngInherit=!0,n}function vM(e,n,t){if(null!==e.hostDirectives)for(const i of e.hostDirectives)if("function"==typeof i){const r=i();for(const o of r)kM(af(o),n,t)}else kM(i,n,t)}function kM(e,n,t){const i=fn(e.directive);(function lA(e,n){for(const t in n)n.hasOwnProperty(t)&&(e[n[t]]=e[t])})(i.declaredInputs,e.inputs),vM(i,n,t),t.set(i,e),n.push(i)}function af(e){return"function"==typeof e?{directive:ce(e),inputs:Ni,outputs:Ni}:{directive:ce(e.directive),inputs:_M(e.inputs),outputs:_M(e.outputs)}}function _M(e){if(void 0===e||0===e.length)return Ni;const n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function ru(e){return!!function sf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function hr(e,n,t){return e[n]=t}function At(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function oa(e,n,t,i){const r=At(e,n,t);return At(e,n+1,i)||r}function vl(e,n,t,i,r,o,a,s,c,l){const d=t+Y,h=n.firstCreatePass?function pA(e,n,t,i,r,o,a,s,c){const l=n.consts,d=_s(n,e,4,a||null,s||null);Wp()&&z2(n,t,d,Mi(l,c),h2),d.mergedAttrs=ts(d.mergedAttrs,d.attrs),t0(n,d);const h=d.tView=s2(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];Pi(h,!1);const g=bM(n,e,h,t);Tc()&&U1(n,e,g,h),zn(g,e);const f=l4(g,e,g,h);return e[d]=f,l2(e,f),n1(h)&&z1(n,e,h),null!=c&&u2(e,h,l),h}function H(e,n,t,i,r,o,a,s){const c=N(),l=ie();return vl(c,l,e,n,t,i,r,Mi(l.consts,o),a,s),H}let bM=function wM(e,n,t,i){return or(!0),n[11].createComment("")};let df=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const PM=new z(""),lu=new z("");let yf,ff=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(t,i,r){this._ngZone=t,this.registry=i,yf||(function uN(e){yf=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:()=>{ge.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 \u0275fac=function(i){return new(i||e)(oe(ge),oe(gf),oe(lu))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})(),gf=(()=>{class e{_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 yf?.findTestabilityInTree(this,t,i)??null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),mf=(()=>{class e{static \u0275prov=j({token:e,providedIn:"root",factory:()=>new hN})}return e})();class hN{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){const i=this.queues.get(n.zone);i.has(n)&&(i.delete(n),this.queuedEffectCount--)}enqueue(n){const t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}function _l(e){return!!e&&"function"==typeof e.then}function LM(e){return!!e&&"function"==typeof e.subscribe}const VM=new z("");function jM(e){return function Lo(e){return{\u0275providers:e}}([{provide:VM,multi:!0,useValue:e}])}let HM=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i});appInits=w(VM,{optional:!0})??[];injector=w(He);constructor(){}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=Ri(this.injector,r);if(_l(o))t.push(o);else if(LM(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ml=new z("");let An=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(cS);afterRenderManager=w(P0);zonelessEnabled=w(Oc);rootEffectScheduler=w(mf);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ze;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(eo).hasPendingTasks.pipe(Te(t=>!t));constructor(){w(rs,{optional:!0})}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}_injector=w(bn);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,i){return this.bootstrapImpl(t,i)}bootstrapImpl(t,i,r=He.NULL){const o=t instanceof O4;if(!this._injector.get(HM).done)throw new P(405,"");let s;s=o?t:this._injector.get(eu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function pN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ra),d=s.create(r,[],i||s.selector,c),h=d.location.nativeElement,g=d.injector.get(PM,null);return g?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),du(this.components,d),g?.unregisterApplication(h)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){null!==this.tracingSnapshot?this.tracingSnapshot.run(F0.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new P(101,!1);const t=S(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,S(t),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(V2,null,{optional:!0}));let t=0;for(;0!==this.dirtyFlags&&t++<10;)this.synchronizeOnce()}synchronizeOnce(){if(16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const t=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)gN(i,r,t,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Sc(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;du(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ml,[]).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._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>du(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new P(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function du(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function gN(e,n,t,i){(t||Sc(e))&&G1(e,n,t&&!i?0:1)}function U(e,n,t,i){const r=N();return At(r,bi(),n)&&(ie(),function dr(e,n,t,i,r,o){const a=Sn(e,n);p2(n[11],a,o,e.value,t,i,r)}(Ze(),r,e,n,t,i)),U}function Is(e,n,t,i,r,o,a,s){const l=function ou(e,n,t,i,r){const o=oa(e,n,t,i);return At(e,n+2,r)||o}(e,Ar(),t,r,a);return Nr(3),l?n+pe(t)+i+pe(r)+o+pe(a)+s:fe}function uu(e,n){return e<<17|n<<2}function sa(e){return e>>17&32767}function bf(e){return 2|e}function Ps(e){return(131068&e)>>2}function wf(e,n){return-131069&e|n<<2}function Cf(e){return 1|e}function a5(e,n,t,i){const r=e[t+1],o=null===n;let a=i?sa(r):Ps(r),s=!1;for(;0!==a&&(!1===s||o);){const l=e[a+1];tR(e[a],n)&&(s=!0,e[a+1]=i?Cf(l):bf(l)),a=i?sa(l):Ps(l)}s&&(e[t+1]=i?bf(r):Cf(r))}function tR(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&wc(e,n)>=0}const Jt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function s5(e){return e.substring(Jt.key,Jt.keyEnd)}function c5(e,n){const t=Jt.textEnd;return t===n?-1:(n=Jt.keyEnd=function oR(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Jt.key=n,t),Ls(e,n,t))}function Ls(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function x(e,n,t){const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!1),x}function Df(e,n,t,i,r){g2(n,e,t,r?"class":"style",i)}function wl(e,n,t){return ji(e,n,t,!1),wl}function Ge(e,n){return ji(e,n,null,!0),Ge}function ca(e){Hi(fR,fr,e,!0)}function fr(e,n){for(let t=function iR(e){return function d5(e){Jt.key=0,Jt.keyEnd=0,Jt.value=0,Jt.valueEnd=0,Jt.textEnd=e.length}(e),c5(e,Ls(e,0,Jt.textEnd))}(n);t>=0;t=c5(n,t))ni(e,s5(n),!0)}function ji(e,n,t,i){const r=N(),o=ie(),a=Nr(2);o.firstUpdatePass&&f5(o,e,a,i),n!==fe&&At(r,a,n)&&y5(o,o.data[gn()],r,r[11],e,r[a+1]=function yR(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Zt(io(e)))),e}(n,t),i,a)}function Hi(e,n,t,i){const r=ie(),o=Nr(2);r.firstUpdatePass&&f5(r,null,o,i);const a=N();if(t!==fe&&At(a,o,t)){const s=r.data[gn()];if(v5(s,i)&&!p5(r,o)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=pp(c,t||"")),Df(r,s,a,t,i)}else!function gR(e,n,t,i,r,o,a,s){r===fe&&(r=Re);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 g=c<r.length?r[c+1]:void 0,f=l<o.length?o[l+1]:void 0;let C,k=null;d===h?(c+=2,l+=2,g!==f&&(k=h,C=f)):null===h||null!==d&&d<h?(c+=2,k=d):(l+=2,k=h,C=f),null!==k&&y5(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[11],a[o+1],a[o+1]=function pR(e,n,t){if(null==t||""===t)return Re;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 p5(e,n){return n>=e.expandoStartIndex}function f5(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[gn()],a=p5(e,t);v5(o,i)&&null===n&&!a&&(n=!1),n=function lR(e,n,t,i){const r=function Jp(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=Cl(t=xf(null,e,n,t,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||e[a]!==r)if(t=xf(r,e,n,t,i),null===o){let c=function dR(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Ps(i))return e[sa(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=xf(null,e,n,c[1],i),c=Cl(c,n.attrs,i),function uR(e,n,t,i){e[sa(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function hR(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=Cl(i,e[o].hostAttrs,t);return Cl(i,n.attrs,t)}(e,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),t}(r,o,n,i),function XN(e,n,t,i,r,o){let a=o?n.classBindings:n.styleBindings,s=sa(a),c=Ps(a);e[i]=t;let d,l=!1;if(Array.isArray(t)?(d=t[1],(null===d||wc(t,d)>0)&&(l=!0)):d=t,r)if(0!==c){const g=sa(e[s+1]);e[i+1]=uu(g,s),0!==g&&(e[g+1]=wf(e[g+1],i)),e[s+1]=function JN(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=uu(s,0),0!==s&&(e[s+1]=wf(e[s+1],i)),s=i;else e[i+1]=uu(c,0),0===s?s=i:e[c+1]=wf(e[c+1],i),c=i;l&&(e[i+1]=bf(e[i+1])),a5(e,d,i,!0),a5(e,d,i,!1),function eR(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&wc(o,n)>=0&&(t[i+1]=Cf(t[i+1]))}(n,d,e,i,o),a=uu(s,c),o?n.classBindings=a:n.styleBindings=a}(r,o,n,t,a,i)}}function xf(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=Cl(i,o.hostAttrs,r),o!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function Cl(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]),ni(e,a,!!t||n[++o]))}return void 0===e?null:e}function fR(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&ni(e,i,t)}function y5(e,n,t,i,r,o,a,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],d=function QN(e){return!(1&~e)}(l)?m5(c,n,t,r,Ps(l),a):void 0;hu(d)||(hu(o)||function KN(e){return!(2&~e)}(l)&&(o=m5(c,null,t,r,s,a)),function qE(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,Qa(gn(),t),r,o))}function m5(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 g=t[r+1];g===fe&&(g=h?Re:void 0);let f=h?Dp(g,i):d===i?g:void 0;if(l&&!hu(f)&&(f=Dp(c,i)),hu(f)&&(s=f,a))return s;const k=e[r+1];r=a?sa(k):Ps(k)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(s=Dp(c,i))}return s}function hu(e){return void 0!==e}function v5(e,n){return!!(e.flags&(n?8:16))}function k5(e,n,t,i,r){Hi(ni,fr,function Ts(e,n,t,i,r,o){const s=oa(e,Ar(),t,r);return Nr(2),s?n+pe(t)+i+pe(r)+o:fe}(N(),e,n,t,i,r),!0)}function Ht(e,n){qn("NgControlFlow");const t=N(),i=bi(),r=t[i]!==fe?t[i]:-1,o=-1!==r?pu(t,Y+r):void 0;if(At(t,i,e)){const s=S(null);try{if(void 0!==o&&function x2(e,n){const t=rl(e,n);return void 0!==t&&nl(t[1],t),t}(o,0),-1!==e){const c=Y+e,l=pu(t,c),d=function If(e,n){return Uo(e,n)}(t[1],c),h=null;ks(l,ys(t,d,n,{dehydratedView:h}),0,ea(d,h))}}finally{S(s)}}else if(void 0!==o){const s=function d4(e,n){const t=10+n;if(t<e.length)return e[t]}(o,0);void 0!==s&&(s[8]=n)}}function pu(e,n){return e[n]}function y(e,n,t,i){const r=N(),o=ie(),a=Y+e,s=r[11],c=o.firstCreatePass?B4(a,o,r,n,h2,Wp(),t,i):o.data[a],l=w5(o,r,c,s,n,e);r[a]=l;const d=n1(c);return Pi(c,!0),V_(s,l,c),!oo(c)&&Tc()&&U1(o,r,l,c),(0===function px(){return le.lFrame.elementDepthCount}()||d)&&zn(l,r),function fx(){le.lFrame.elementDepthCount++}(),d&&(z1(o,r,c),K0(o,c,r)),null!==i&&u2(r,c),y}function m(){let e=we();Zp()?Yp():(e=e.parent,Pi(e,!1));const n=e;(function yx(e){return le.skipHydrationRootTNode===e})(n)&&function _x(){le.skipHydrationRootTNode=null}(),function gx(){le.lFrame.elementDepthCount--}();const t=ie();return t.firstCreatePass&&z4(t,n),null!=n.classesWithoutHost&&function Rx(e){return!!(8&e.flags)}(n)&&Df(t,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ox(e){return!!(16&e.flags)}(n)&&Df(t,n,N(),n.stylesWithoutHost,!1),m}function B(e,n,t,i){return y(e,n,t,i),m(),B}let w5=(e,n,t,i,r,o)=>(or(!0),j1(i,r,function xv(){return le.lFrame.currentNamespace}()));function ci(e,n,t){const i=N(),r=ie(),o=e+Y,a=r.firstCreatePass?function FR(e,n,t,i,r){const o=n.consts,a=Mi(o,i),s=_s(n,e,8,"ng-container",a);null!==a&&B2(s,a,!0);const c=Mi(o,r);return Wp()&&z2(n,t,s,c,h2),s.mergedAttrs=ts(s.mergedAttrs,s.attrs),null!==n.queries&&n.queries.elementStart(n,s),s}(o,r,i,n,t):r.data[o];Pi(a,!0);const s=C5(r,i,a,e);return i[o]=s,Tc()&&U1(r,i,s,a),zn(s,i),n1(a)&&(z1(r,i,a),K0(r,a,i)),null!=t&&u2(i,a),ci}function li(){let e=we();const n=ie();return Zp()?Yp():(e=e.parent,Pi(e,!1)),n.firstCreatePass&&(t0(n,e),Pp(e)&&n.queries.elementEnd(e)),li}function Vs(e,n,t){return ci(e,n,t),li(),Vs}let C5=(e,n,t,i)=>(or(!0),a2(n[11],""));function Be(){return N()}function di(e,n,t){const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!0),di}const la=void 0;var jR=["en",[["a","p"],["AM","PM"],la],[["AM","PM"],la,la],[["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"]],la,[["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"]],la,[["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}",la,"{1} 'at' {0}",la],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VR(e){const n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}];let js={};function Nn(e){const n=function HR(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=S5(n);if(t)return t;const i=n.split("-")[0];if(t=S5(i),t)return t;if("en"===i)return jR;throw new P(701,!1)}function S5(e){return e in js||(js[e]=St.ng&&St.ng.common&&St.ng.common.locales&&St.ng.common.locales[e]),js[e]}var ot=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}(ot||{});const BR=["zero","one","two","few","many"],fu="en-US",gu={marker:"element"},yu={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 E5=fu,Dl=0,xl=0;let Sl=(e,n,t,i)=>(or(!0),function T5(e,n,t){const i=e[11];switch(t){case Node.COMMENT_NODE:return a2(i,n);case Node.TEXT_NODE:return o2(i,n);case Node.ELEMENT_NODE:return j1(i,n,null)}}(e,t,i));function I5(e,n,t,i){const r=t[11];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]=Sl(t,0,c,Node.TEXT_NODE))}else if("number"==typeof c)switch(1&c){case 0:const l=v4(c);let d,h;if(null===o&&(o=l,a=r.parentNode(i)),l===o?(d=i,h=a):(d=null,h=Ae(t[l])),null!==h){const C=k4(c);Xo(r,h,t[C],d,!1);const I=ll(e,C);if(null!==I&&"object"==typeof I){const T=Y1(I,t);null!==T&&I5(e,I.create[T],t,t[I.anchorIdx])}}break;case 1:const f=n[++s],k=n[++s];p2(r,Qa(c>>>1,t),null,null,f,k,null)}else switch(c){case yu:const l=n[++s],d=n[++s];null===t[d]&&zn(t[d]=Sl(t,0,l,Node.COMMENT_NODE),t);break;case gu:const h=n[++s],g=n[++s];null===t[g]&&zn(t[g]=Sl(t,0,h,Node.ELEMENT_NODE),t)}}}function A5(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+=pe(n[i-d]);else{const h=d>>>2;switch(3&d){case 1:const g=t[++l],f=t[++l],k=e.data[h];"string"==typeof k?p2(n[11],n[h],null,k,g,c,f):Un(e,k,n,g,c,n[11],f,!1);break;case 0:const C=n[h];null!==C&&O_(n[11],C,c);break;case 2:JR(e,ll(e,h),n,c);break;case 3:N5(e,ll(e,h),i,n)}}}}else{const c=t[o+1];if(c>0&&!(3&~c)){const d=ll(e,c>>>2);n[d.currentCaseLViewIndex]<0&&N5(e,d,i,n)}}o+=s}}function N5(e,n,t,i){let r=i[n.currentCaseLViewIndex];if(null!==r){let o=Dl;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),A5(e,i,n.update[r],t,o)}}function JR(e,n,t,i){const r=function QR(e,n){let t=e.cases.indexOf(n);if(-1===t)switch(e.type){case 1:{const i=function zR(e,n){const t=function x5(e){return Nn(e)[ot.PluralCase]}(n)(parseInt(e,10)),i=BR[t];return void 0!==i?i:"other"}(n,function $R(){return E5}());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(Y1(n,t)!==r&&(R5(e,n,t),t[n.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const a=t[n.anchorIdx];a&&I5(e,n.create[r],t,a)}}function R5(e,n,t){let i=Y1(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=Qa(a,t);null!==s&&el(t[11],s)}else R5(e,ll(e,~a),t)}}}const mu=/\ufffd(\d+):?\d*\ufffd/gi,eO=/\ufffd(\d+)\ufffd/,F5=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,tO=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,nO=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,iO=/\uE500/g;function P5(e,n,t,i,r,o,a){const s=tl(e,i,1,null);let c=s<<Wn.SHIFT,l=Ec();n===l&&(l=null),null===l&&(c|=Wn.APPEND_EAGERLY),a&&(c|=Wn.COMMENT,function PE(e){void 0===y2&&(y2=e())}(bT)),r.push(c,null===o?"":o);const d=I2(e,s,a?32:1,null===o?"":o,null);y4(t,d);const h=d.index;return Pi(d,!1),null!==l&&n!==l&&function kT(e,n){let t=e.insertBeforeIndex;null===t?(J_(f4,g4),t=e.insertBeforeIndex=[null,n]):(Ro(Array.isArray(t),!0,"Expecting array here"),t.push(n))}(l,h),d}function aO(e,n,t,i,r,o,a,s){const c=s.match(mu),d=P5(n,t,i,a,r,c?null:s,!1).index;c&&Tl(o,s,d,null,0,null),e.push({kind:0,index:d})}function Tl(e,n,t,i,r,o){const a=e.length,s=a+1;e.push(null,null);const c=a+2,l=n.split(mu);let d=0;for(let h=0;h<l.length;h++){const g=l[h];if(1&h){const f=r+parseInt(g,10);e.push(-1-f),d|=L5(f)}else""!==g&&e.push(g)}return e.push(t<<2|(i?1:0)),i&&e.push(i,o),e[a]=d,e[s]=e.length-c,d}function L5(e){return 1<<Math.min(e,31)}function V5(e){let n,o,t="",i=0,r=!1;for(;null!==(n=tO.exec(e));)r?n[0]===`\ufffd/*${o}\ufffd`&&(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 j5(e,n,t,i,r,o,a){let s=0;const c={type:o.type,currentCaseLViewIndex:tl(n,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function pO(e,n,t){e.push(L5(n.mainBinding),2,-1-n.mainBinding,t<<2|2)})(i,o,a),function vT(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 g=l[h],f=[];for(let C=0;C<g.length;C++){const E=g[C];if("string"!=typeof E){const I=f.push(E)-1;g[C]=`\x3c!--\ufffd${I}\ufffd--\x3e`}}const k=[];d.push(k),s=uO(k,n,c,t,i,r,o.cases[h],g.join(""),f)|s}s&&function fO(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 dO(e){const n=[],t=[];let i=1,r=0;const o=Af(e=e.replace(F5,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=Af(o[a++]);n.length>t.length&&t.push(c)}return{type:i,mainBinding:r,cases:n,values:t}}function Af(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);F5.test(c)?i.push(dO(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 uO(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 f=function p_(e){const n=new A9(e);return function N9(){try{return!!(new window.DOMParser).parseFromString(ps(""),"text/html")}catch{return!1}}()?new I9(n):n}(cr()).getInertBodyElement(s),k=function t2(e){return"content"in e&&function z9(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}(f)||f;return k?H5(e,n,t,i,r,l,d,h,k,o,c,0):0}function H5(e,n,t,i,r,o,a,s,c,l,d,h){let g=0,f=c.firstChild;for(;f;){const k=tl(n,i,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:const C=f,E=C.tagName.toLowerCase();if(X0.hasOwnProperty(E)){Nf(o,gu,E,l,k),n.data[k]=E;const $=C.attributes;for(let me=0;me<$.length;me++){const Se=$.item(me),We=Se.name.toLowerCase();Se.value.match(mu)?m_.hasOwnProperty(We)&&Tl(s,Se.value,k,Se.name,0,e2[We]?Q0:null):gO(o,k,Se)}const W={kind:1,index:k,children:[]};e.push(W),g=H5(W.children,n,t,i,r,o,a,s,f,k,d,h+1)|g,B5(a,k,h)}break;case Node.TEXT_NODE:const I=f.textContent||"",T=I.match(mu);Nf(o,null,T?"":I,l,k),B5(a,k,h),T&&(g=Tl(s,I,k,null,0,null)|g),e.push({kind:0,index:k});break;case Node.COMMENT_NODE:const q=eO.exec(f.textContent||"");if(q){const W=d[parseInt(q[1],10)];Nf(o,yu,"",l,k),j5(e,n,i,r,l,W,k),hO(a,k,h)}}f=f.nextSibling}return g}function B5(e,n,t){0===t&&e.push(n)}function hO(e,n,t){0===t&&(e.push(~n),e.push(n))}function Nf(e,n,t,i,r){null!==n&&e.push(n),e.push(t,r,function MT(e,n,t){return e|n<<17|t<<1}(0,i,r))}function gO(e,n,t){e.push(n<<1|1,t.name,t.value)}function q5(e,n,t=-1){const i=ie(),r=N(),o=Y+e,a=Mi(i.consts,n),s=Ec();i.firstCreatePass&&function oO(e,n,t,i,r,o){const a=Ec(),s=[],c=[],l=[[]],d=[[]];r=function lO(e,n){if(function M4(e){return-1===e}(n))return V5(e);{const t=e.indexOf(`:${n}\ufffd`)+2+n.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${n}\ufffd`));return V5(e.substring(t,i))}}(r,o);const h=function rO(e){return e.replace(iO," ")}(r).split(nO);for(let g=0;g<h.length;g++){let f=h[g];if(1&g){const k=47===f.charCodeAt(0),C=f.charCodeAt(k?1:0),E=Y+Number.parseInt(f.substring(k?2:1));if(k)l.shift(),d.shift(),Pi(Ec(),!1);else{const I=_T(e,l[0],E);l.unshift([]),Pi(I,!0);const T={kind:2,index:E,children:[],type:35===C?0:1};d[0].push(T),d.unshift(T.children)}}else{const k=Af(f);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 q=P5(e,a,l[0],t,s,"",!0).index;j5(d[0],e,t,c,n,I,q)}else""!==E&&aO(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[15][2]|=32:r[2]|=32;const c=i.data[o],d=W_(i,s===r[5]?null:s,r);(function KR(e,n,t,i){const r=e[11];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],g=!1;null===h&&(h=e[d]=Sl(e,0,n[o],(a&Wn.COMMENT)===Wn.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),g=Tc()),l&&null!==t&&g&&Xo(r,t,h,i,!1)}})(r,c.create,d,s&&8&s.type?r[s.index]:null),_v(!0)}function Hs(e,n,t){q5(e,n,t),function U5(){_v(!1)}()}function Rf(e){return function GR(e){e&&(Dl|=1<<Math.min(xl,31)),xl++}(At(N(),bi(),e)),Rf}function G5(e,n,t){return function i(r){if(r===Function)return t;il(Fi(e)?En(e.index,n):n,5);const a=n[8];let s=W5(n,a,t,r),c=i.__ngNextListenerFn__;for(;c;)s=W5(n,a,c,r)&&s,c=c.__ngNextListenerFn__;return s}}function W5(e,n,t,i){const r=S(null);try{return!1!==t(i)}catch(o){return function xO(e,n){const t=e[9],i=t?t.get(Li,null):null;i&&i.handleError(n)}(e,o),!1}finally{S(r)}}function Z5(e,n,t,i,r,o){const s=n[1],d=n[t][s.data[t].outputs[i]],h=s.firstCreatePass?Up(s):null,g=qp(n),f=d.subscribe(o),k=g.length;g.push(o,f),h&&h.push(r,e.index,k,-(k+1))}function L(e,n,t,i){const r=N(),o=ie(),a=we();return Of(o,r,r[11],a,e,n,i),L}function Of(e,n,t,i,r,o,a){const s=n1(i),l=e.firstCreatePass?Up(e):null,d=qp(n);let h=!0;if(3&i.type||a){const g=Sn(i,n),f=a?a(g):g,k=d.length,C=a?I=>a(Ae(I[i.index])):i.index;let E=null;if(!a&&s&&(E=function SO(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[7],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,h=!1;else{o=G5(i,n,o);const I=t.listen(f,r,o);d.push(o,I),l&&l.push(r,C,k,k+1)}}else o=G5(i,n,o);if(h){const g=i.outputs?.[r],f=i.hostDirectiveOutputs?.[r];if(f&&f.length)for(let k=0;k<f.length;k+=2)Z5(i,n,f[k],f[k+1],r,o);if(g&&g.length)for(const k of g)Z5(i,n,k,r,r,o)}}function F(e=1){return function Dx(e){return(le.lFrame.contextLView=function fv(e,n){for(;e>0;)n=n[14],e--;return n}(e,le.lFrame.contextLView))[8]}(e)}function EO(e,n){let t=null;const i=function hE(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?N_(e,o,!0):gE(i,o))return r}else t=r}return t}function ho(e){const n=N()[15][5];if(!n.projection){const i=n.projection=function Wd(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?EO(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=N(),s=ie(),c=i?e+1:null;null!==c&&vl(a,s,c,i,r,o,null,t);const l=_s(s,Y+e,16,null,t||null);null===l.projection&&(l.projection=n),Yp();const h=!a[6]||Go();null===a[15][5].projection[l.projection]&&null!==c?function TO(e,n,t){const i=Y+t,r=n.data[i],o=e[i];ks(o,ys(e,r,void 0,{dehydratedView:null}),0,ea(r,null))}(a,s,c):h&&!oo(l)&&function BE(e,n,t){X_(n[11],0,n,t,_2(e,t,n),Z_(t.parent||n[5],t,n))}(s,a,l)}function Qt(e,n,t,i){!function eM(e,n,t,i){const r=ie();if(r.firstCreatePass){const o=we();tM(r,new K4(n,t,i),o.index),function PI(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 Q4(r,N(),t)}(e,n,t,i)}function fo(e,n,t){!function X4(e,n,t){const i=ie();return i.firstCreatePass&&(tM(i,new K4(e,n,t),-1),!(2&~n)&&(i.staticViewQueries=!0)),Q4(i,N(),n)}(e,n,t)}function at(e){const n=N(),t=ie(),i=Qp();s1(i+1);const r=J2(t,i);if(e.dirty&&function dx(e){return!(4&~e[2])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)e.reset([]);else{const o=nM(n,i);e.reset(o,ok),e.notifyOnChanges()}return!0}return!1}function st(){return function K2(e,n){return e[18].queries[n].queryList}(N(),Qp())}function Mt(e){return $o(function yv(){return le.lFrame.contextLView}(),Y+e)}function M(e,n=""){const t=N(),i=ie(),r=e+Y,o=i.firstCreatePass?_s(i,r,1,n,null):i.data[r],a=y3(i,t,o,n,e);t[r]=a,Tc()&&U1(i,t,a,o),Pi(o,!1)}let y3=(e,n,t,i,r)=>(or(!0),o2(n[11],i));function Bi(e){return zi("",e,""),Bi}function zi(e,n,t){const i=N(),r=function Es(e,n,t,i){return At(e,bi(),t)?n+pe(t)+i:fe}(i,e,n,t);return r!==fe&&Lr(i,gn(),r),zi}function vu(e,n,t,i,r,o,a){const s=N(),c=Is(s,e,n,t,i,r,o,a);return c!==fe&&Lr(s,gn(),c),vu}function Lr(e,n,t){const i=Qa(n,e);O_(e[11],i,t)}function ae(e,n,t){sk(n)&&(n=n());const i=N();return At(i,bi(),n)&&Un(ie(),Ze(),i,e,n,i[11],t,!1),ae}function he(e,n){const t=sk(e);return t&&e.set(n),t}function se(e,n){const t=N(),i=ie(),r=we();return Of(i,t,t[11],r,e,n),se}function Lf(e,n,t,i,r){if(e=ce(e),Array.isArray(e))for(let o=0;o<e.length;o++)Lf(e[o],n,t,i,r);else{const o=ie(),a=N(),s=we();let c=Vo(e)?e:ce(e.provide);const l=Qm(e),d=1048575&s.providerIndexes,h=s.directiveStart,g=s.providerIndexes>>20;if(Vo(e)||!e.multi){const f=new Ic(l,r,R),k=jf(c,n,r?d:d+g,h);-1===k?(l0(u1(s,a),o,c),Vf(o,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(f),a.push(f)):(t[k]=f,a[k]=f)}else{const f=jf(c,n,d+g,h),k=jf(c,n,d,d+g),E=k>=0&&t[k];if(r&&!E||!r&&!(f>=0&&t[f])){l0(u1(s,a),o,c);const I=function KO(e,n,t,i,r){const o=new Ic(e,t,R);return o.multi=[],o.index=n,o.componentProviders=0,x3(o,r,i&&!t),o}(r?YO:ZO,t.length,r,i,l);!r&&E&&(t[k].providerFactory=I),Vf(o,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(I),a.push(I)}else Vf(o,e,f>-1?f:k,x3(t[r?k:f],l,!r&&i));!r&&i&&E&&t[k].componentProviders++}}}function Vf(e,n,t,i){const r=Vo(n),o=function B7(e){return!!e.useClass}(n);if(r||o){const c=(o?ce(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 x3(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function jf(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function ZO(e,n,t,i){return Hf(this.multi,[])}function YO(e,n,t,i){const r=this.multi;let o;if(this.providerFactory){const a=this.providerFactory.componentProviders,s=Rc(t,t[1],this.providerFactory.index,i);o=s.slice(0,a),Hf(r,o);for(let c=a;c<s.length;c++)o.push(s[c])}else o=[],Hf(r,o);return o}function Hf(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Xe(e,n=[]){return t=>{t.providersResolver=(i,r)=>function WO(e,n,t){const i=ie();if(i.firstCreatePass){const r=ai(e);Lf(t,i.data,i.blueprint,r,!0),Lf(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}function go(e,n,t,i){return E3(N(),Tn(),e,n,t,i)}function Il(e,n,t,i,r){return function T3(e,n,t,i,r,o,a){const s=n+t;return oa(e,s,r,o)?hr(e,s+2,a?i.call(a,r,o):i(r,o)):Al(e,s+2)}(N(),Tn(),e,n,t,i,r)}function Al(e,n){const t=e[n];return t===fe?void 0:t}function E3(e,n,t,i,r,o){const a=n+t;return At(e,a,r)?hr(e,a+1,o?i.call(o,r):i(r)):Al(e,a+1)}function zf(e,n){const t=ie();let i;const r=e+Y;t.firstCreatePass?(i=function sF(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=Fo(i.type)),s=jn(R);try{const c=d1(!1),l=o();return d1(c),function Pf(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,N(),r,l),l}finally{jn(s)}}function qf(e,n,t){const i=e+Y,r=N(),o=$o(r,i);return function Nl(e,n){return e[1].data[n].pure}(r,i)?E3(r,Tn(),n,o.transform,t,o):o.transform(t)}function ln(e,n){return W1(e,n)}class VF{ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let jF=(()=>{class e{compileModuleSync(t){return new tf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=lr(ii(t).declarations).reduce((a,s)=>{const c=xe(s);return c&&a.push(new gl(c)),a},[]);return new VF(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zF=(()=>{class e{zone=w(ge);changeDetectionScheduler=w(Rr);applicationRef=w(An);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zf({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new ge({...Yf(),scheduleInRootZone:t}),[{provide:ge,useFactory:e},{provide:_i,multi:!0,useFactory:()=>{const i=w(zF,{optional:!0});return()=>i.initialize()}},{provide:_i,multi:!0,useFactory:()=>{const i=w(UF);return()=>{i.initialize()}}},!0===n?{provide:Jv,useValue:!0}:[],{provide:h0,useValue:t??Yv}]}function Yf(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let UF=(()=>{class e{subscription=new on;initialized=!1;zone=w(ge);pendingTasks=w(eo);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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ol=(()=>{class e{appRef=w(An);taskService=w(eo);ngZone=w(ge);zonelessEnabled=w(Oc);tracing=w(rs,{optional:!0});disableScheduling=w(Jv,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new on;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(g1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(h0,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 y0||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;let i=!1;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 6:case 13:this.appRef.dirtyFlags|=2,i=!0;break;case 12:this.appRef.dirtyFlags|=16,i=!0;break;case 11:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?Xv:Qv;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(g1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Xv(()=>{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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Vr=new z("",{providedIn:"root",factory:()=>w(Vr,De.Optional|De.SkipSelf)||function $F(){return typeof $localize<"u"&&$localize.locale||fu}()}),wu=new z(""),JF=new z("");function Fl(e){return!e.moduleRef}let yo=null;let Zn=(()=>class e{static __NG_ELEMENT_ID__=iP})();function iP(e){return function rP(e,n,t){if(Fi(e)&&!t){const i=En(e.index,n);return new ol(i,i)}return 175&e.type?new ol(n[15],n):null}(we(),N(),!(16&~e))}class lb{constructor(){}supports(n){return ru(n)}create(n){return new lP(n)}}const cP=(e,n)=>n;class lP{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||cP}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<ub(i,r,o)?t:i,s=ub(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 g=0;g<l;g++){const f=g<o.length?o[g]:o[g]=0,k=f+g;d<=k&&k<l&&(o[g]=f+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=[]),!ru(n))throw new P(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 uA(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 dP(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 db),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 db),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 dP{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}}class uP{_head=null;_tail=null;add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let 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 db{map=new Map;put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new uP,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 ub(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 pb(){return new tg([new lb])}let tg=(()=>{class e{factories;static \u0275prov=j({token:e,providedIn:"root",factory:pb});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||pb()),deps:[[e,new Cp,new $d]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new P(901,!1)}}return e})(),yP=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(oe(An))};static \u0275mod=Ke({type:e});static \u0275inj=Ue({})}return e})();function mP(e){try{const{rootComponent:n,appProviders:t,platformProviders:i}=e,r=function nP(e=[]){if(yo)return yo;const n=function ib(e=[],n){return He.create({name:n,providers:[{provide:Ip,useValue:"platform"},{provide:wu,useValue:new Set([()=>yo=null])},...e]})}(e);return yo=n,function BM(){!function Vt(e){Td=e}(()=>{throw new P(600,!1)})}(),function rb(e){const n=e.get(w0,null);Ri(e,()=>{n?.forEach(t=>t())})}(n),n}(i),o=[Zf({}),{provide:Rr,useExisting:Ol},...t||[]];return function eb(e){const n=Fl(e)?e.r3Injector:e.moduleRef.injector,t=n.get(ge);return t.run(()=>{Fl(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(Li,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),Fl(e)){const o=()=>n.destroy(),a=e.platformInjector.get(wu);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{const o=()=>e.moduleRef.destroy(),a=e.platformInjector.get(wu);a.add(o),e.moduleRef.onDestroy(()=>{du(e.allPlatformModules,e.moduleRef),r.unsubscribe(),a.delete(o)})}return function XF(e,n,t){try{const i=t();return _l(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(HM);return o.runInitializers(),o.donePromise.then(()=>{if(function UR(e){"string"==typeof e&&(E5=e.toLowerCase().replace(/_/g,"-"))}(n.get(Vr,fu)||fu),!n.get(JF,!0))return Fl(e)?n.get(An):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Fl(e)){const c=n.get(An);return void 0!==e.rootComponent&&c.bootstrap(e.rootComponent),c}return function QF(e,n){const t=e.injector.get(An);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new P(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new fM({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}function zs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Bt(e){return function ap(e){const n=S(null);try{return e()}finally{S(n)}}(e)}function jr(e,n){return function ep(e,n){const t=Object.create(tp);t.computation=e,void 0!==n&&(t.equal=n);const i=()=>{if(Fe(t),ee(t),t.value===er)throw t.error;return t.value};return i[Me]=t,i}(e,n?.equal)}function og(e,n){const t=xe(e),i=n.elementInjector||Jd();return new gl(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}const Pt=new z("");let Ob=null;function mo(){return Ob}class sL{}let ag=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(lL),providedIn:"platform"})}return e})();const cL=new z("");let lL=(()=>{class e extends ag{_location;_history;_doc=w(Pt);constructor(){super(),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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function sg(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function Fb(e){const n=e.search(/#|\?|$/);return"/"===e[n-1]?e.slice(0,n-1)+e.slice(n):e}function Hr(e){return e&&"?"!==e[0]?`?${e}`:e}let vo=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(Lb),providedIn:"root"})}return e})();const Pb=new z("");let Lb=(()=>{class e extends vo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(Pt).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 sg(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 \u0275fac=function(i){return new(i||e)(oe(ag),oe(Pb,8))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ll=(()=>{class e{_subject=new ze;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function hL(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Fb(Vb(i))),this._locationStrategy.onPopState(r=>{this._subject.next({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 uL(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Vb(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??void 0,complete:r??void 0})}static normalizeQueryParams=Hr;static joinWithSlash=sg;static stripTrailingSlash=Fb;static \u0275fac=function(i){return new(i||e)(oe(vo))};static \u0275prov=j({token:e,factory:()=>function dL(){return new Ll(oe(vo))}(),providedIn:"root"})}return e})();function Vb(e){return e.replace(/\/index.html$/,"")}function ko(e){return this instanceof ko?(this.v=e,this):new ko(e)}function zb(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 ug(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 pg=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function qb(e){return ye(e?.then)}function Ub(e){return ye(e[up])}function $b(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function Gb(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 Wb=function HL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Zb(e){return ye(e?.[Wb])}function Yb(e){return function Bb(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function a(f){return function(k){return Promise.resolve(k).then(f,h)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(f,k){i[f]&&(r[f]=function(C){return new Promise(function(E,I){o.push([f,C,E,I])>1||c(f,C)})},k&&(r[f]=k(r[f])))}function c(f,k){try{!function l(f){f.value instanceof ko?Promise.resolve(f.value.v).then(d,h):g(o[0][2],f)}(i[f](k))}catch(C){g(o[0][3],C)}}function d(f){c("next",f)}function h(f){c("throw",f)}function g(f,k){f(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 ko(t.read());if(r)return yield ko(void 0);yield yield ko(i)}}finally{t.releaseLock()}})}function Kb(e){return ye(e?.getReader)}function yn(e){if(e instanceof dt)return e;if(null!=e){if(Ub(e))return function BL(e){return new dt(n=>{const t=e[up]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(pg(e))return function zL(e){return new dt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(qb(e))return function qL(e){return new dt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,A)})}(e);if($b(e))return Jb(e);if(Zb(e))return function UL(e){return new dt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Kb(e))return function $L(e){return Jb(Yb(e))}(e)}throw Gb(e)}function Jb(e){return new dt(n=>{(function GL(e,n){var t,i,r,o;return function jb(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=zb(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 Br(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 jt((t,i)=>{t.subscribe(ut(i,r=>Br(i,e,()=>i.next(r),n),()=>Br(i,e,()=>i.complete(),n),r=>Br(i,e,()=>i.error(r),n)))})}function Xb(e,n=0){return jt((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function ew(e,n){if(!e)throw new Error("Iterable cannot be null");return new dt(t=>{Br(t,n,()=>{const i=e[Symbol.asyncIterator]();Br(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function Xt(e,n){return n?function QL(e,n){if(null!=e){if(Ub(e))return function WL(e,n){return yn(e).pipe(Xb(n),Qb(n))}(e,n);if(pg(e))return function YL(e,n){return new dt(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(qb(e))return function ZL(e,n){return yn(e).pipe(Xb(n),Qb(n))}(e,n);if($b(e))return ew(e,n);if(Zb(e))return function KL(e,n){return new dt(t=>{let i;return Br(t,n,()=>{i=e[Wb](),Br(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)}),()=>ye(i?.return)&&i.return()})}(e,n);if(Kb(e))return function JL(e,n){return ew(Yb(e),n)}(e,n)}throw Gb(e)}(e,n):yn(e)}function tw(e){return e&&ye(e.schedule)}function fg(e){return e[e.length-1]}function Au(e){return ye(fg(e))?e.pop():void 0}function Vl(e){return tw(fg(e))?e.pop():void 0}function ne(...e){return Xt(e,Vl(e))}const{isArray:eV}=Array,{getPrototypeOf:tV,prototype:nV,keys:iV}=Object;function nw(e){if(1===e.length){const n=e[0];if(eV(n))return{args:n,keys:null};if(function rV(e){return e&&"object"==typeof e&&tV(e)===nV}(n)){const t=iV(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:oV}=Array;function gg(e){return Te(n=>function aV(e,n){return oV(n)?e(...n):e(n)}(e,n))}function iw(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function yg(...e){const n=Vl(e),t=Au(e),{args:i,keys:r}=nw(e);if(0===i.length)return Xt([],n);const o=new dt(function sV(e,n,t=Cr){return i=>{rw(n,()=>{const{length:r}=e,o=new Array(r);let a=r,s=r;for(let c=0;c<r;c++)rw(n,()=>{const l=Xt(e[c],n);let d=!1;l.subscribe(ut(i,h=>{o[c]=h,d||(d=!0,s--),s||i.next(t(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>iw(r,a):Cr));return t?o.pipe(gg(t)):o}function rw(e,n,t){e?Br(t,e,n):n()}const Nu=No(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function en(e,n,t=1/0){return ye(n)?en((i,r)=>Te((o,a)=>n(i,o,r,a))(yn(e(i,r))),t):("number"==typeof n&&(t=n),jt((i,r)=>function cV(e,n,t,i,r,o,a,s){const c=[];let l=0,d=0,h=!1;const g=()=>{h&&!c.length&&!l&&n.complete()},f=C=>l<i?k(C):c.push(C),k=C=>{o&&n.next(C),l++;let E=!1;yn(t(C,d++)).subscribe(ut(n,I=>{r?.(I),o?f(I):n.next(I)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l<i;){const I=c.shift();a?Br(n,a,()=>k(I)):k(I)}g()}catch(I){n.error(I)}}))};return e.subscribe(ut(n,f,()=>{h=!0,g()})),()=>{s?.()}}(i,r,e,t)))}function qs(e=1/0){return en(Cr,e)}function jl(...e){return function lV(){return qs(1)}()(Xt(e,Vl(e)))}function ow(e){return new dt(n=>{yn(e()).subscribe(n)})}function Ru(e,n){const t=ye(e)?e:()=>e,i=r=>r.error(t());return new dt(n?r=>n.schedule(i,0,r):i)}const Yn=new dt(e=>e.complete());function mg(){return jt((e,n)=>{let t=null;e._refCount++;const i=ut(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 aw extends dt{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Sm(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 on;const t=this.getSubject();n.add(this.source.subscribe(ut(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=on.EMPTY)}return n}refCount(){return mg()(this)}}function qi(e,n){return jt((t,i)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&i.complete();t.subscribe(ut(i,c=>{r?.unsubscribe();let l=0;const d=o++;yn(e(c,d)).subscribe(r=ut(i,h=>i.next(n?n(c,h,d,l++):h),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Di(e){return e<=0?()=>Yn:jt((n,t)=>{let i=0;n.subscribe(ut(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function dn(e,n){return jt((t,i)=>{let r=0;t.subscribe(ut(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Ou(e){return jt((n,t)=>{let i=!1;n.subscribe(ut(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function cw(e=uV){return jt((n,t)=>{let i=!1;n.subscribe(ut(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function uV(){return new Nu}function ua(e,n){const t=arguments.length>=2;return i=>i.pipe(e?dn((r,o)=>e(r,o,i)):Cr,Di(1),t?Ou(n):cw(()=>new Nu))}function Hl(e,n){return ye(n)?en(e,n,1):en(e,1)}function un(e,n,t){const i=ye(e)||n||t?{next:e,error:n,complete:t}:e;return i?jt((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;r.subscribe(ut(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)}))}):Cr}function Us(e){return jt((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ut(t,void 0,void 0,a=>{o=yn(e(a,Us(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function vg(e){return e<=0?()=>Yn:jt((n,t)=>{let i=[];n.subscribe(ut(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 kg(e){return jt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function mn(e){return jt((n,t)=>{yn(e).subscribe(ut(t,()=>t.complete(),O)),!t.closed&&n.subscribe(t)})}let gV=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ke="primary",zl=Symbol("RouteTitle");class kV{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function $s(e){return new kV(e)}function _V(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 mr(e,n){const t=e?_g(e):void 0,i=n?_g(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],!uw(e[r],n[r]))return!1;return!0}function _g(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function uw(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 hw(e){return e.length>0?e[e.length-1]:null}function Mo(e){return function pL(e){return!!e&&(e instanceof dt||ye(e.lift)&&ye(e.subscribe))}(e)?e:_l(e)?Xt(Promise.resolve(e)):ne(e)}const bV={exact:function gw(e,n,t){if(!pa(e.segments,n.segments)||!Fu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!gw(e.children[i],n.children[i],t))return!1;return!0},subset:yw},pw={exact:function wV(e,n){return mr(e,n)},subset:function CV(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>uw(e[t],n[t]))},ignored:()=>!0};function fw(e,n,t){return bV[t.paths](e.root,n.root,t.matrixParams)&&pw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function yw(e,n,t){return mw(e,n,n.segments,t)}function mw(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!pa(r,t)||n.hasChildren()||!Fu(r,t,i))}if(e.segments.length===t.length){if(!pa(e.segments,t)||!Fu(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!yw(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!!(pa(e.segments,r)&&Fu(e.segments,r,i)&&e.children[ke])&&mw(e.children[ke],n,o,i)}}function Fu(e,n,t){return n.every((i,r)=>pw[t](e[r].parameters,i.parameters))}class ha{root;queryParams;fragment;_queryParamMap;constructor(n=new Je([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=$s(this.queryParams),this._queryParamMap}toString(){return SV.serialize(this)}}class Je{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lu(this)}}class ql{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=$s(this.parameters),this._parameterMap}toString(){return _w(this)}}function pa(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Ul=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>new Pu,providedIn:"root"})}return e})();class Pu{parse(n){const t=new VV(n);return new ha(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${$l(n.root,!0)}`,i=function IV(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Vu(t)}=${Vu(r)}`).join("&"):`${Vu(t)}=${Vu(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function EV(e){return encodeURI(e)}(n.fragment)}`:""}`}}const SV=new Pu;function Lu(e){return e.segments.map(n=>_w(n)).join("/")}function $l(e,n){if(!e.hasChildren())return Lu(e);if(n){const t=e.children[ke]?$l(e.children[ke],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==ke&&i.push(`${r}:${$l(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function xV(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?[$l(e.children[ke],!1)]:[`${r}:${$l(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ke]?`${Lu(e)}/${t[0]}`:`${Lu(e)}/(${t.join("//")})`}}function vw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vu(e){return vw(e).replace(/%3B/gi,";")}function Mg(e){return vw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ju(e){return decodeURIComponent(e)}function kw(e){return ju(e.replace(/\+/g,"%20"))}function _w(e){return`${Mg(e.path)}${function TV(e){return Object.entries(e).map(([n,t])=>`;${Mg(n)}=${Mg(t)}`).join("")}(e.parameters)}`}const AV=/^[^\/()?;#]+/;function bg(e){const n=e.match(AV);return n?n[0]:""}const NV=/^[^\/()?;=#]+/,OV=/^[^=?&#]+/,PV=/^[^&#]+/;class VV{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Je([],{}):new Je([],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 Je(n,t)),i}parseSegment(){const n=bg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(n),new ql(ju(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function RV(e){const n=e.match(NV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=bg(this.remaining);r&&(i=r,this.capture(i))}n[ju(t)]=ju(i)}parseQueryParam(n){const t=function FV(e){const n=e.match(OV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const a=function LV(e){const n=e.match(PV);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const r=kw(t),o=kw(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=bg(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(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 Je([],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 P(4011,!1)}}function Mw(e){return e.segments.length>0?new Je([],{[ke]:e}):e}function bw(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=bw(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 jV(e){if(1===e.numberOfChildren&&e.children[ke]){const n=e.children[ke];return new Je(e.segments.concat(n.segments),n.children)}return e}(new Je(e.segments,n))}function fa(e){return e instanceof ha}function ww(e){let n;const r=Mw(function t(o){const a={};for(const c of o.children){const l=t(c);a[c.outlet]=l}const s=new Je(o.url,a);return o===e&&(n=s),s}(e.root));return n??r}function Cw(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return wg(r,r,r,t,i);const o=function BV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new xw(!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 xw(t,n,i)}(n);if(o.toRoot())return wg(r,r,new Je([],{}),t,i);const a=function zV(e,n,t){if(e.isAbsolute)return new Bu(n,!0,0);if(!t)return new Bu(n,!1,NaN);if(null===t.parent)return new Bu(t,!0,0);const i=Hu(e.commands[0])?0:1;return function qV(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new Bu(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),s=a.processChildren?Wl(a.segmentGroup,a.index,o.commands):Sw(a.segmentGroup,a.index,o.commands);return wg(r,a.segmentGroup,s,t,i)}function Hu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Gl(e){return"object"==typeof e&&null!=e&&e.outlets}function wg(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:Dw(e,n,t);const s=Mw(bw(a));return new ha(s,o,r)}function Dw(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:Dw(o,n,t)}),new Je(e.segments,i)}class xw{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Hu(i[0]))throw new P(4003,!1);const r=i.find(Gl);if(r&&r!==hw(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bu{segmentGroup;processChildren;index;constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function Sw(e,n,t){if(e??=new Je([],{}),0===e.segments.length&&e.hasChildren())return Wl(e,n,t);const i=function $V(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(Gl(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(!Tw(c,l,a))return o;i+=2}else{if(!Tw(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 Je(e.segments.slice(0,i.pathIndex),{});return o.children[ke]=new Je(e.segments.slice(i.pathIndex),e.children),Wl(o,0,r)}return i.match&&0===r.length?new Je(e.segments,{}):i.match&&!e.hasChildren()?Cg(e,n,t):i.match?Wl(e,0,r):Cg(e,n,t)}function Wl(e,n,t){if(0===t.length)return new Je(e.segments,{});{const i=function UV(e){return Gl(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=Wl(e.children[ke],n,t);return new Je(e.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=Sw(e.children[o],n,a))}),Object.entries(e.children).forEach(([o,a])=>{void 0===i[o]&&(r[o]=a)}),new Je(e.segments,r)}}function Cg(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const o=t[r];if(Gl(o)){const c=GV(o.outlets);return new Je(i,c)}if(0===r&&Hu(t[0])){i.push(new ql(e.segments[n].path,Ew(t[0]))),r++;continue}const a=Gl(o)?o.outlets[ke]:`${o}`,s=r<t.length-1?t[r+1]:null;a&&s&&Hu(s)?(i.push(new ql(a,Ew(s))),r+=2):(i.push(new ql(a,{})),r++)}return new Je(i,{})}function GV(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=Cg(new Je([],{}),0,i))}),n}function Ew(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function Tw(e,n,t){return e==t.path&&mr(n,t.parameters)}const zu="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 vr{id;url;constructor(n,t){this.id=n,this.url=t}}class Zl extends vr{type=Ie.NavigationStart;navigationTrigger;restoredState;constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends vr{urlAfterRedirects;type=Ie.NavigationEnd;constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ui=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ui||{}),qu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(qu||{});class ga extends vr{reason;code;type=Ie.NavigationCancel;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gs extends vr{reason;code;type=Ie.NavigationSkipped;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}}class Dg extends vr{error;target;type=Ie.NavigationError;constructor(n,t,i,r){super(n,t),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Iw extends vr{urlAfterRedirects;state;type=Ie.RoutesRecognized;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WV extends vr{urlAfterRedirects;state;type=Ie.GuardsCheckStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZV extends vr{urlAfterRedirects;state;shouldActivate;type=Ie.GuardsCheckEnd;constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class YV extends vr{urlAfterRedirects;state;type=Ie.ResolveStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KV extends vr{urlAfterRedirects;state;type=Ie.ResolveEnd;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JV{route;type=Ie.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QV{route;type=Ie.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class XV{snapshot;type=Ie.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ej{snapshot;type=Ie.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tj{snapshot;type=Ie.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nj{snapshot;type=Ie.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Aw{routerEvent;position;anchor;type=Ie.Scroll;constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class xg{}class Uu{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Ui(e){return e.outlet||ke}function Yl(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 cj{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Yl(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Kl(this.rootInjector)}}let Kl=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}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 cj(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(i){return new(i||e)(oe(bn))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Nw{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Sg(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Sg(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Eg(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Eg(n,this._root).map(t=>t.value)}}function Sg(e,n){if(e===n.value)return n;for(const t of n.children){const i=Sg(e,t);if(i)return i}return null}function Eg(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Eg(e,t);if(i.length)return i.unshift(n),i}return[]}class $i{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ws(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class Rw extends Nw{snapshot;constructor(n,t){super(n),this.snapshot=t,Tg(this,n)}toString(){return this.snapshot.toString()}}function Ow(e){const n=function lj(e){const o=new Gu([],{},{},"",{},ke,e,null,{});return new Fw("",new $i(o,[]))}(e),t=new ei([new ql("",{})]),i=new ei({}),r=new ei({}),o=new ei({}),a=new ei(""),s=new ya(t,i,o,a,r,ke,e,n.root);return s.snapshot=n.root,new Rw(new $i(s,[]),n)}class ya{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;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(Te(l=>l[zl]))??ne(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(Te(n=>$s(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Te(n=>$s(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $u(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&&Lw(r)&&(i.resolve[zl]=r.title),i}class Gu{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[zl]}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??=$s(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$s(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fw extends Nw{url;constructor(n,t){super(t),this.url=n,Tg(this,t)}toString(){return Pw(this._root)}}function Tg(e,n){n.value._routerState=e,n.children.forEach(t=>Tg(e,t))}function Pw(e){const n=e.children.length>0?` { ${e.children.map(Pw).join(", ")} } `:"";return`${e.value}${n}`}function Ig(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,mr(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),mr(n.params,t.params)||e.paramsSubject.next(t.params),function MV(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!mr(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),mr(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ag(e,n){const t=mr(e.params,n.params)&&function DV(e,n){return pa(e,n)&&e.every((t,i)=>mr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Ag(e.parent,n.parent))}function Lw(e){return"string"==typeof e.title||null===e.title}const dj=new z("");let Ng=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=ke;activateEvents=new J;deactivateEvents=new J;attachEvents=new J;detachEvents=new J;routerOutletData=dS(void 0);parentContexts=w(Kl);location=w($n);changeDetector=w(Zn);inputBinder=w(Wu,{optional:!0});supportsBindingToComponentInputs=!0;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 P(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(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 P(4013,!1);this._activatedRoute=t;const r=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new uj(t,s,r.injector,this.routerOutletData);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 \u0275fac=function(i){return new(i||e)};static \u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[sn]})}return e})();class uj{route;childContexts;parent;outletData;constructor(n,t,i,r){this.route=n,this.childContexts=t,this.parent=i,this.outletData=r}get(n,t){return n===ya?this.route:n===Kl?this.childContexts:n===dj?this.outletData:this.parent.get(n,t)}}const Wu=new z("");let Vw=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=yg([i.queryParams,i.params,i.data]).pipe(qi(([o,a,s],c)=>(s={...o,...a,...s},0===c?ne(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 oL(e){const n=xe(e);if(!n)return null;const t=new gl(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();function Jl(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function pj(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Jl(e,i,r);return Jl(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=>Jl(e,s)),a}}const i=function fj(e){return new ya(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=>Jl(e,o));return new $i(i,r)}}class Rg{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const jw="ngNavigationCancelingError";function Zu(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=fa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Hw(!1,ui.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function Hw(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[jw]=!0,t.cancellationCode=n,t}function Bw(e){return!!e&&e[jw]}class mj{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;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),Ig(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Ws(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=Ws(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=Ws(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=Ws(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new nj(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ej(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Ig(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),Ig(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 zw{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Yu{component;route;constructor(n,t){this.component=n,this.route=t}}function vj(e,n,t){const i=e._root;return Ql(i,n?n._root:null,t,[i.value])}function Zs(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function b7(e){return null!==Vd(e)}(e)?n.get(e):e:i}function Ql(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ws(n);return e.children.forEach(a=>{(function _j(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 Mj(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!pa(e.url,n.url);case"pathParamsOrQueryParamsChange":return!pa(e.url,n.url)||!mr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ag(e,n)||!mr(e.queryParams,n.queryParams);default:return!Ag(e,n)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new zw(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 Yu(s.outlet.component,a))}else a&&Xl(n,s,r),r.canActivateChecks.push(new zw(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])=>Xl(s,t.getContext(a),r)),r}function Xl(e,n,t){const i=Ws(e),r=e.value;Object.entries(i).forEach(([o,a])=>{Xl(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new Yu(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ed(e){return"function"==typeof e}function qw(e){return e instanceof Nu||"EmptyError"===e?.name}const Ku=Symbol("INITIAL_VALUE");function Ys(){return qi(e=>yg(e.map(n=>n.pipe(Di(1),function sw(...e){const n=Vl(e);return jt((t,i)=>{(n?jl(e,t,n):jl(e,t)).subscribe(i)})}(Ku)))).pipe(Te(n=>{for(const t of n)if(!0!==t){if(t===Ku)return Ku;if(!1===t||Ej(t))return t}return!0}),dn(n=>n!==Ku),Di(1)))}function Ej(e){return fa(e)||e instanceof Rg}function Uw(e){return function u7(...e){return Cm(e)}(un(n=>{if("boolean"!=typeof n)throw Zu(0,n)}),Te(n=>!0===n))}class Og{segmentGroup;constructor(n){this.segmentGroup=n||null}}class Fg extends Error{urlTree;constructor(n){super(),this.urlTree=n}}function Ks(e){return Ru(new Og(e))}class Bj{urlSerializer;urlTree;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 ne(i);if(r.numberOfChildren>1||!r.children[ke])return Ru(new P(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:g,params:f,data:k,title:C}=r,E=Ri(o,()=>s({params:f,data:k,queryParams:c,fragment:l,routeConfig:d,url:h,outlet:g,title:C}));if(E instanceof ha)throw new Fg(E);t=E}const a=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new Fg(a);return a}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new ha(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 Je(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 P(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 Pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zj(e,n,t,i,r){const o=$w(e,n,t);return o.matched?(i=function ij(e,n){return e.providers&&!e._injector&&(e._injector=nu(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function Vj(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?ne(r.map(a=>{const s=Zs(a,e);return Mo(function Sj(e){return e&&ed(e.canMatch)}(s)?s.canMatch(n,t):Ri(e,()=>s(n,t)))})).pipe(Ys(),Uw()):ne(!0)}(i,n,t).pipe(Te(a=>!0===a?o:{...Pg}))):ne(o)}function $w(e,n,t){if("**"===n.path)return function qj(e){return{matched:!0,parameters:e.length>0?hw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Pg}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||_V)(t,e,n);if(!r)return{...Pg};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 Gw(e,n,t,i){return t.length>0&&function Gj(e,n,t){return t.some(i=>Ju(e,n,i)&&Ui(i)!==ke)}(e,t,i)?{segmentGroup:new Je(n,$j(i,new Je(t,e.children))),slicedSegments:[]}:0===t.length&&function Wj(e,n,t){return t.some(i=>Ju(e,n,i))}(e,t,i)?{segmentGroup:new Je(e.segments,Uj(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new Je(e.segments,e.children),slicedSegments:t}}function Uj(e,n,t,i){const r={};for(const o of t)if(Ju(e,n,o)&&!i[Ui(o)]){const a=new Je([],{});r[Ui(o)]=a}return{...i,...r}}function $j(e,n){const t={};t[ke]=n;for(const i of e)if(""===i.path&&Ui(i)!==ke){const r=new Je([],{});t[Ui(i)]=r}return t}function Ju(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class Yj{}class Qj{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;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 Bj(this.urlSerializer,this.urlTree)}noMatchError(n){return new P(4002,`'${n.segmentGroup}'`)}recognize(){const n=Gw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Te(({children:t,rootSnapshot:i})=>{const r=new $i(i,t),o=new Fw("",r),a=function HV(e,n,t=null,i=null){return Cw(ww(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 Gu([],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(Te(i=>({children:i,rootSnapshot:t})),Us(i=>{if(i instanceof Fg)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Og?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(Te(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 Xt(o).pipe(Hl(a=>{const s=i.children[a],c=function sj(e,n){const t=e.filter(i=>Ui(i)===n);return t.push(...e.filter(i=>Ui(i)!==n)),t}(t,a);return this.processSegmentGroup(n,c,s,a,r)}),function pV(e,n){return jt(function hV(e,n,t,i,r){return(o,a)=>{let s=t,c=n,l=0;o.subscribe(ut(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)),Ou(null),function fV(e,n){const t=arguments.length>=2;return i=>i.pipe(e?dn((r,o)=>e(r,o,i)):Cr,vg(1),t?Ou(n):cw(()=>new Nu))}(),en(a=>{if(null===a)return Ks(i);const s=Ww(a);return function Xj(e){e.sort((n,t)=>n.value.outlet===ke?-1:t.value.outlet===ke?1:n.value.outlet.localeCompare(t.value.outlet))}(s),ne(s)}))}processSegment(n,t,i,r,o,a,s){return Xt(t).pipe(Hl(c=>this.processSegmentAgainstRoute(c._injector??n,t,c,i,r,o,a,s).pipe(Us(l=>{if(l instanceof Og)return ne(null);throw l}))),ua(c=>!!c),Us(c=>{if(qw(c))return function Zj(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?ne(new Yj):Ks(i);throw c}))}processSegmentAgainstRoute(n,t,i,r,o,a,s,c){return Ui(i)===a||a!==ke&&Ju(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):Ks(r):Ks(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,a,s){const{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:h,remainingSegments:g}=$w(t,r,o);if(!c)return Ks(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=new Gu(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zw(r),Ui(r),r.component??r._loadedComponent??null,r,Yw(r)),k=$u(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(k.params),f.data=Object.freeze(k.data);const C=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,h,f,n);return this.applyRedirects.lineralizeSegments(r,C).pipe(en(E=>this.processSegment(n,i,t,E.concat(g),a,!1,s)))}matchSegmentAgainstRoute(n,t,i,r,o,a){const s=zj(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:g,remainingSegments:f}=c,k=new Gu(g,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zw(i),Ui(i),i.component??i._loadedComponent??null,i,Yw(i)),C=$u(k,a,this.paramsInheritanceStrategy);k.params=Object.freeze(C.params),k.data=Object.freeze(C.data);const{segmentGroup:E,slicedSegments:I}=Gw(t,g,f,l);if(0===I.length&&E.hasChildren())return this.processChildren(d,l,E,k).pipe(Te(q=>new $i(k,q)));if(0===l.length&&0===I.length)return ne(new $i(k,[]));const T=Ui(i)===o;return this.processSegment(d,l,E,I,T?ke:o,!0,k).pipe(Te(q=>new $i(k,q instanceof $i?[q]:[])))})):Ks(t)))}getChildConfig(n,t,i){return t.children?ne({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ne({routes:t._loadedRoutes,injector:t._loadedInjector}):function Lj(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?ne(!0):ne(r.map(a=>{const s=Zs(a,e);return Mo(function wj(e){return e&&ed(e.canLoad)}(s)?s.canLoad(n,t):Ri(e,()=>s(n,t)))})).pipe(Ys(),Uw())}(n,t,i).pipe(en(r=>r?this.configLoader.loadChildren(n,t).pipe(un(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function Hj(){return Ru(Hw(!1,ui.GuardRejected))}())):ne({routes:[],injector:n})}}function eH(e){const n=e.value.routeConfig;return n&&""===n.path}function Ww(e){const n=[],t=new Set;for(const i of e){if(!eH(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=Ww(i.children);n.push(new $i(i.value,r))}return n.filter(i=>!t.has(i))}function Zw(e){return e.data||{}}function Yw(e){return e.resolve||{}}function Kw(e){const n=e.children.map(t=>Kw(t)).flat();return[e,...n]}function Lg(e){return qi(n=>{const t=e(n);return t?Xt(t).pipe(Te(()=>n)):ne(n)})}let Jw=(()=>{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[zl]}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(aH),providedIn:"root"})}return e})(),aH=(()=>{class e extends Jw{title;constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||e)(oe(gV))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const td=new z("",{providedIn:"root",factory:()=>({})});let Qw=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){1&i&&B(0,"router-outlet")},dependencies:[Ng],encapsulation:2})}return e})();function Vg(e){const n=e.children&&e.children.map(Vg),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ke&&(t.component=Qw),t}const Qu=new z("");let jg=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(jF);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ne(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Mo(t.loadComponent()).pipe(Te(Xw),un(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),kg(()=>{this.componentLoaders.delete(t)})),r=new aw(i,()=>new ze).pipe(mg());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ne({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function sH(e,n,t,i){return Mo(e.loadChildren()).pipe(Te(Xw),en(r=>r instanceof pM||Array.isArray(r)?ne(r):Xt(n.compileModuleAsync(r))),Te(r=>{i&&i(e);let o,a,s=!1;return Array.isArray(r)?(a=r,!0):(o=r.create(t).injector,a=o.get(Qu,[],{optional:!0,self:!0}).flat()),{routes:a.map(Vg),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(kg(()=>{this.childrenLoaders.delete(i)})),a=new aw(o,()=>new ze).pipe(mg());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xw(e){return function cH(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Hg=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(lH),providedIn:"root"})}return e})(),lH=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const e8=new z(""),t8=new z("");function dH(e,n,t){const i=e.get(t8),r=e.get(Pt);return e.get(ge).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 uH(e){return new Promise(n=>{no({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:c}=i;return c&&Ri(e,()=>c({transition:s,from:n,to:t})),a})}const n8=new z("");let Bg=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ze;transitionAbortSubject=new ze;configLoader=w(jg);environmentInjector=w(bn);destroyRef=w(si);urlSerializer=w(Ul);rootContexts=w(Kl);location=w(Ll);inputBindingEnabled=null!==w(Wu,{optional:!0});titleStrategy=w(Jw);options=w(td,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(Hg);createViewTransition=w(e8,{optional:!0});navigationErrorHandler=w(n8,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>ne(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=r=>this.events.next(new QV(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new JV(r)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...t,extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i})}setupNavigations(t){return this.transitions=new ei(null),this.transitions.pipe(dn(i=>null!==i),qi(i=>{let r=!1,o=!1;return ne(i).pipe(qi(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",ui.SupersededByNewNavigation),Yn;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:"string"==typeof a.extras.browserUrl?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const s=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!s&&"reload"!==(a.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const l="";return this.events.next(new Gs(a.id,this.urlSerializer.serialize(a.rawUrl),l,qu.IgnoredSameUrlNavigation)),a.resolve(!1),Yn}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ne(a).pipe(qi(l=>(this.events.next(new Zl(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Yn:Promise.resolve(l))),function tH(e,n,t,i,r,o){return en(a=>function Kj(e,n,t,i,r,o,a="emptyOnly"){return new Qj(e,n,t,i,r,a,o).recognize()}(e,n,t,i,a.extractedUrl,r,o).pipe(Te(({state:s,tree:c})=>({...a,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),un(l=>{i.targetSnapshot=l.targetSnapshot,i.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:l.urlAfterRedirects};const d=new Iw(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){const{id:l,extractedUrl:d,source:h,restoredState:g,extras:f}=a,k=new Zl(l,this.urlSerializer.serialize(d),h,g);this.events.next(k);const C=Ow(this.rootComponentType).snapshot;return this.currentTransition=i={...a,targetSnapshot:C,urlAfterRedirects:d,extras:{...f,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=d,ne(i)}{const l="";return this.events.next(new Gs(a.id,this.urlSerializer.serialize(a.extractedUrl),l,qu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Yn}}),un(a=>{const s=new WV(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Te(a=>(this.currentTransition=i={...a,guards:vj(a.targetSnapshot,a.currentSnapshot,this.rootContexts)},i)),function Tj(e,n){return en(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=t;return 0===a.length&&0===o.length?ne({...t,guardsResult:!0}):function Ij(e,n,t,i){return Xt(e).pipe(en(r=>function Pj(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?ne(o.map(s=>{const c=Yl(n)??r,l=Zs(s,c);return Mo(function xj(e){return e&&ed(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,i):Ri(c,()=>l(e,n,t,i))).pipe(ua())})).pipe(Ys()):ne(!0)}(r.component,r.route,t,n,i)),ua(r=>!0!==r,!0))}(a,i,r,e).pipe(en(s=>s&&function bj(e){return"boolean"==typeof e}(s)?function Aj(e,n,t,i){return Xt(n).pipe(Hl(r=>jl(function Rj(e,n){return null!==e&&n&&n(new XV(e)),ne(!0)}(r.route.parent,i),function Nj(e,n){return null!==e&&n&&n(new tj(e)),ne(!0)}(r.route,i),function Fj(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>function kj(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=>ow(()=>ne(a.guards.map(c=>{const l=Yl(a.node)??t,d=Zs(c,l);return Mo(function Dj(e){return e&&ed(e.canActivateChild)}(d)?d.canActivateChild(i,e):Ri(l,()=>d(i,e))).pipe(ua())})).pipe(Ys())));return ne(o).pipe(Ys())}(e,r.path,t),function Oj(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ne(!0);const r=i.map(o=>ow(()=>{const a=Yl(n)??t,s=Zs(o,a);return Mo(function Cj(e){return e&&ed(e.canActivate)}(s)?s.canActivate(n,e):Ri(a,()=>s(n,e))).pipe(ua())}));return ne(r).pipe(Ys())}(e,r.route,t))),ua(r=>!0!==r,!0))}(i,o,e,n):ne(s)),Te(s=>({...t,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),un(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&"boolean"!=typeof a.guardsResult)throw Zu(0,a.guardsResult);const s=new ZV(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),dn(a=>!!a.guardsResult||(this.cancelNavigationTransition(a,"",ui.GuardRejected),!1)),Lg(a=>{if(0!==a.guards.canActivateChecks.length)return ne(a).pipe(un(s=>{const c=new YV(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),qi(s=>{let c=!1;return ne(s).pipe(function nH(e,n){return en(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return ne(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 Kw(c))a.add(l);let s=0;return Xt(a).pipe(Hl(c=>o.has(c)?function iH(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!Lw(r)&&(o[zl]=r.title),function rH(e,n,t,i){const r=_g(e);if(0===r.length)return ne({});const o={};return Xt(r).pipe(en(a=>function oH(e,n,t,i){const r=Yl(n)??i,o=Zs(e,r);return Mo(o.resolve?o.resolve(n,t):Ri(r,()=>o(n,t)))}(e[a],n,t,i).pipe(ua(),un(s=>{if(s instanceof Rg)throw Zu(new Pu,s);o[a]=s}))),vg(1),Te(()=>o),Us(a=>qw(a)?Yn:Ru(a)))}(o,e,n,i).pipe(Te(a=>(e._resolvedData=a,e.data=$u(e,e.parent,t).resolve,null)))}(c,i,e,n):(c.data=$u(c,c.parent,e).resolve,ne(void 0))),un(()=>s++),vg(1),en(c=>s===a.size?ne(t):Yn))})}(this.paramsInheritanceStrategy,this.environmentInjector),un({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(s,"",ui.NoDataFromResolver)}}))}),un(s=>{const c=new KV(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),Lg(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(un(d=>{c.component=d}),Te(()=>{})));for(const d of c.children)l.push(...s(d));return l};return yg(s(a.targetSnapshot.root)).pipe(Ou(null),Di(1))}),Lg(()=>this.afterPreactivation()),qi(()=>{const{currentSnapshot:a,targetSnapshot:s}=i,c=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return c?Xt(c).pipe(Te(()=>i)):ne(i)}),Te(a=>{const s=function hj(e,n,t){const i=Jl(e,n._root,t?t._root:void 0);return new Rw(i,n)}(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i={...a,targetRouterState:s},this.currentNavigation.targetRouterState=s,i}),un(()=>{this.events.next(new xg)}),((e,n,t,i)=>Te(r=>(new mj(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),Di(1),un({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),mn(this.transitionAbortSubject.pipe(un(a=>{throw a}))),kg(()=>{!r&&!o&&this.cancelNavigationTransition(i,"",ui.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Us(a=>{if(this.destroyed)return i.resolve(!1),Yn;if(o=!0,Bw(a))this.events.next(new ga(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),function gj(e){return Bw(e)&&fa(e.url)}(a)?this.events.next(new Uu(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{const s=new Dg(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{const c=Ri(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(!(c instanceof Rg))throw this.events.next(s),a;{const{message:l,cancellationCode:d}=Zu(0,c);this.events.next(new ga(i.id,this.urlSerializer.serialize(i.extractedUrl),l,d)),this.events.next(new Uu(c.redirectTo,c.navigationBehaviorOptions))}}catch(c){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(c)}}return Yn}))}))}cancelNavigationTransition(t,i,r){const o=new ga(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hH(e){return e!==zu}let pH=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(gH),providedIn:"root"})}return e})();class fH{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let gH=(()=>{class e extends fH{static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),i8=(()=>{class e{urlSerializer=w(Ul);options=w(td,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=w(Ll);urlHandlingStrategy=w(Hg);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ha;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:i,targetBrowserUrl:r}){const o=void 0!==t?this.urlHandlingStrategy.merge(t,i):i,a=r??o;return a instanceof ha?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:i,initialUrl:r}){i&&t?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=t):this.rawUrlTree=r}routerState=Ow(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:()=>w(yH),providedIn:"root"})}return e})(),yH=(()=>{class e extends i8{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&setTimeout(()=>{t(i.url,i.state,"popstate")})})}handleRouterEvent(t,i){t instanceof Zl?this.updateStateMemento():t instanceof Gs?this.commitTransition(i):t instanceof Iw?"eager"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):t instanceof xg?(this.commitTransition(i),"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):t instanceof ga&&(t.code===ui.GuardRejected||t.code===ui.NoDataFromResolver)?this.restoreHistory(i):t instanceof Dg?this.restoreHistory(i,!0):t instanceof zr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:i,id:r}){const{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(t)||o){const s=this.browserPageId,c={...a,...this.generateNgRouterState(r,s)};this.location.replaceState(t,"",c)}else{const s={...a,...this.generateNgRouterState(r,this.browserPageId+1)};this.location.go(t,"",s)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&0===o&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function r8(e,n){e.events.pipe(dn(t=>t instanceof zr||t instanceof ga||t instanceof Dg||t instanceof Gs),Te(t=>t instanceof zr||t instanceof Gs?0:t instanceof ga&&(t.code===ui.Redirect||t.code===ui.SupersededByNewNavigation)?2:1),dn(t=>2!==t),Di(1)).subscribe(()=>{n()})}const mH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xi=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(df);stateManager=w(i8);options=w(td,{optional:!0})||{};pendingTasks=w(eo);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Bg);urlSerializer=w(Ul);location=w(Ll);urlHandlingStrategy=w(Hg);_events=new ze;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(pH);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(Qu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Wu,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new on;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 ga&&i.code!==ui.Redirect&&i.code!==ui.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof zr)this.navigated=!0;else if(i instanceof Uu){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||hH(r.source),...a};this.scheduleNavigation(s,zu,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function _H(e){return!(e instanceof xg||e instanceof Uu)})(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),zu,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i,r)=>{this.navigateToSyncWithBrowser(t,r,i)})}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(Vg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),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=ww(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),h=this.currentUrlTree.root}return Cw(h,t,d,l??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=fa(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,zu,null,i)}navigate(t,i={skipLocationChange:!1}){return function kH(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new P(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?{...mH}:!1===i?{...vH}:i,fa(t))return fw(this.currentUrlTree,t,r);const o=this.parseUrl(t);return fw(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,g)=>{s=h,c=g});const d=this.pendingTasks.add();return r8(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 \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),MH=(()=>{class e{title="config-ui";logoSrc="assets/images/homebridge-eufy-security.png";static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-root"]],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),M(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:[Ng],encapsulation:2})}return e})(),bH=(()=>{class e{static \u0275prov=j({token:e,providedIn:"root",factory:()=>new wH(w(Pt),window)})}return e})();class wH{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function CH(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])}}let g8=(()=>{class e extends vo{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,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=sg(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){const a=this.prepareExternalUrl(r+Hr(o))||this._platformLocation.pathname;this._platformLocation.pushState(t,i,a)}replaceState(t,i,r,o){const a=this.prepareExternalUrl(r+Hr(o))||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 \u0275fac=function(i){return new(i||e)(oe(ag),oe(Pb,8))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();var nh=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(nh||{});function Si(e,n){const t=Nn(e),i=t[ot.NumberSymbols][n];if(typeof i>"u"){if(12===n)return t[ot.NumberSymbols][0];if(13===n)return t[ot.NumberSymbols][1]}return i}const wB=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Qg(e){const n=parseInt(e);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+e);return n}class PB{$implicit;ngForOf;index;count;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 ph=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r}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 PB(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),S8(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=>{S8(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(R($n),R(Ft),R(tg))};static \u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function S8(e,n){e.context.$implicit=n.item}let Fn=(()=>{class e{_viewContainer;_context=new LB;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,i){this._viewContainer=t,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){E8(t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){E8(t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(R($n),R(Ft))};static \u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})();class LB{$implicit=null;ngIf=null}function E8(e,n){if(e&&!e.createEmbeddedView)throw new P(2020,!1)}class ty{_viewContainerRef;_templateRef;_created=!1;constructor(n,t){this._viewContainerRef=n,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let ad=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const 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 \u0275fac=function(i){return new(i||e)};static \u0275dir=G({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),ny=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new ty(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(i){return new(i||e)(R($n),R(Ft),R(ad,9))};static \u0275dir=G({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),T8=(()=>{class e{constructor(t,i,r){r._addDefault(new ty(t,i))}static \u0275fac=function(i){return new(i||e)(R($n),R(Ft),R(ad,9))};static \u0275dir=G({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})(),Qs=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}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 \u0275fac=function(i){return new(i||e)(R($n))};static \u0275dir=G({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[sn]})}return e})();function Wi(e,n){return new P(2100,!1)}class HB{createSubscription(n,t){return Bt(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){Bt(()=>n.unsubscribe())}}class BB{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const zB=new BB,qB=new HB;let A8=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(_l(t))return zB;if(LM(t))return qB;throw Wi()}_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 \u0275fac=function(i){return new(i||e)(R(Zn,16))};static \u0275pipe=Gn({name:"async",type:e,pure:!1})}return e})(),R8=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,i,r){if(!function iy(e){return!(null==e||""===e||e!=e)}(t))return null;r||=this._locale;try{return function EB(e,n,t){return function Kg(e,n,t,i,r,o,a=!1){let s="",c=!1;if(isFinite(e)){let l=function AB(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 IB(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,g=n.maxFrac;if(o){const T=o.match(wB);if(null===T)throw new Error(`${o} is not a valid digit info`);const q=T[1],$=T[3],W=T[5];null!=q&&(d=Qg(q)),null!=$&&(h=Qg($)),null!=W?g=Qg(W):null!=$&&h>g&&(g=h)}!function NB(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,g,f,k){return k[f]=(g+=h)<10?g:g-10,c&&(0===k[f]&&f>=l?k.pop():c=!1),g>=10?1:0},0);d&&(i.unshift(d),e.integerLen++)}(l,h,g);let f=l.digits,k=l.integerLen;const C=l.exponent;let E=[];for(c=f.every(T=>!T);k<d;k++)f.unshift(0);for(;k<0;k++)f.unshift(0);k>0?E=f.splice(k,f.length):(E=f,f=[0]);const I=[];for(f.length>=n.lgSize&&I.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)I.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&I.unshift(f.join("")),s=I.join(Si(t,i)),E.length&&(s+=Si(t,r)+E.join("")),C&&(s+=Si(t,6)+"+"+C)}else s=Si(t,9);return s=e<0&&!c?n.negPre+s+n.negSuf:n.posPre+s+n.posSuf,s}(e,function Jg(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 $g(e,n){return Nn(e)[ot.NumberFormats][n]}(n,nh.Percent),Si(n,5)),n,1,0,t,!0).replace(new RegExp("%","g"),Si(n,3))}(function ry(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 Wi()}}static \u0275fac=function(i){return new(i||e)(R(Vr,16))};static \u0275pipe=Gn({name:"percent",type:e,pure:!0})}return e})();let az=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({})}return e})(),kr=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ze;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;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")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=fa(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 b_(e,n,t){return function W9(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?M_:P1}(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:fa(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||e)(R(xi),R(ya),function Xr(e){return function jx(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(Iv(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"),R(ur),R(Oe),R(vo))};static \u0275dir=G({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&&U("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",zs],skipLocationChange:[2,"skipLocationChange","skipLocationChange",zs],replaceUrl:[2,"replaceUrl","replaceUrl",zs],routerLink:"routerLink"},features:[sn]})}return e})();class O8{}let lz=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,i,r,o){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(dn(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=nu(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 Xt(r).pipe(qs())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ne(null);const o=r.pipe(en(a=>null===a?ne(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));return i.loadComponent&&!i._loadedComponent?Xt([o,this.loader.loadComponent(i)]).pipe(qs()):o})}static \u0275fac=function(i){return new(i||e)(oe(xi),oe(bn),oe(O8),oe(jg))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const oy=new z("");let F8=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,i,r,o,a={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,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 Zl?(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 Gs&&t.code===qu.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 Aw&&(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 Aw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){!function P4(){throw new Error("invalid")}()};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();function _r(e,n){return{\u0275kind:e,\u0275providers:n}}function L8(){const e=w(He);return n=>{const t=e.get(An);if(n!==t.components[0])return;const i=e.get(xi),r=e.get(V8);1===e.get(ay)&&i.initialNavigation(),e.get(j8,null,De.Optional)?.setUpPreloading(),e.get(oy,null,De.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const V8=new z("",{factory:()=>new ze}),ay=new z("",{providedIn:"root",factory:()=>1}),j8=new z("");function pz(e){return _r(0,[{provide:j8,useExisting:lz},{provide:O8,useExisting:e}])}function gz(e){return qn("NgRouterViewTransitions"),_r(9,[{provide:e8,useValue:dH},{provide:t8,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const yz=[Ll,{provide:Ul,useClass:Pu},xi,Kl,{provide:ya,useFactory:function P8(e){return e.routerState.root},deps:[xi]},jg,[]];let H8=(()=>{class e{constructor(){}static forRoot(t,i){return{ngModule:e,providers:[yz,[],{provide:Qu,multi:!0,useValue:t},[],i?.errorHandler?{provide:n8,useValue:i.errorHandler}:[],{provide:td,useValue:i||{}},i?.useHash?{provide:vo,useClass:g8}:{provide:vo,useClass:Lb},{provide:oy,useFactory:()=>{const e=w(bH),n=w(ge),t=w(td),i=w(Bg),r=w(Ul);return t.scrollOffset&&e.setOffset(t.scrollOffset),new F8(r,i,e,n,t)}},i?.preloadingStrategy?pz(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?_z(i):[],i?.bindToComponentInputs?_r(8,[Vw,{provide:Wu,useExisting:Vw}]).\u0275providers:[],i?.enableViewTransitions?gz().\u0275providers:[],[{provide:B8,useFactory:L8},{provide:Ml,multi:!0,useExisting:B8}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Qu,multi:!0,useValue:t}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({})}return e})();function _z(e){return["disabled"===e.initialNavigation?_r(3,[jM(()=>{w(xi).setUpLocationChangeListener()}),{provide:ay,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?_r(2,[{provide:ay,useValue:0},jM(()=>{const n=w(He);return n.get(cL,Promise.resolve()).then(()=>new Promise(i=>{const r=n.get(xi),o=n.get(V8);r8(r,()=>{i(!0)}),n.get(Bg).afterPreactivation=()=>(i(!0),o.closed?ne(void 0):o),r.initialNavigation()}))})]).\u0275providers:[]]}const B8=new z("");function Ur(e){e||(Ho(),e=w(si));const n=new dt(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(mn(n))}const Sz=["addListener","removeListener"],Ez=["addEventListener","removeEventListener"],Tz=["on","off"];function vn(e,n,t,i){if(ye(t)&&(i=t,t=void 0),i)return vn(e,n,t).pipe(gg(i));const[r,o]=function Nz(e){return ye(e.addEventListener)&&ye(e.removeEventListener)}(e)?Ez.map(a=>s=>e[a](n,s,t)):function Iz(e){return ye(e.addListener)&&ye(e.removeListener)}(e)?Sz.map(q8(e,n)):function Az(e){return ye(e.on)&&ye(e.off)}(e)?Tz.map(q8(e,n)):[];if(!r&&pg(e))return en(a=>vn(a,n,t))(yn(e));if(!r)throw new TypeError("Invalid event target");return new dt(a=>{const s=(...c)=>a.next(1<c.length?c:c[0]);return r(s),()=>o(s)})}function q8(e,n){return t=>i=>e[t](n,i)}class Rz extends on{constructor(n,t){super()}schedule(n,t=0){return this}}const fh={setInterval(e,n,...t){const{delegate:i}=fh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=fh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},U8={now:()=>(U8.delegate||Date).now(),delegate:void 0};class sd{constructor(n,t=sd.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}sd.now=U8.now;const $8=new class Fz extends sd{constructor(n,t=sd.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 Rz{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 fh.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&&fh.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,Xn(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),Pz=$8;function G8(e=0,n,t=Pz){let i=-1;return null!=n&&(tw(n)?t=n:i=n),new dt(r=>{let o=function Lz(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:Vz}=Array;function W8(e){return 1===e.length&&Vz(e[0])?e[0]:e}function Z8(...e){return 1===(e=W8(e)).length?yn(e[0]):new dt(function jz(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(yn(e[i]).subscribe(ut(n,r=>{if(t){for(let o=0;o<t.length;o++)o!==i&&t[o].unsubscribe();t=null}n.next(r)})))}}(e))}function sy(...e){const n=Au(e),t=W8(e);return t.length?new dt(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let a=0;!i.closed&&a<t.length;a++)yn(t[a]).subscribe(ut(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}}):Yn}function cy(...e){const n=Au(e);return jt((t,i)=>{const r=e.length,o=new Array(r);let a=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)yn(e[c]).subscribe(ut(i,l=>{o[c]=l,!s&&!a[c]&&(a[c]=!0,(s=a.every(Cr))&&(a=null))},O));t.subscribe(ut(i,c=>{if(s){const l=[c,...o];i.next(n?n(...l):l)}}))})}function Y8(e,n){return n?t=>jl(n.pipe(Di(1),function zz(){return jt((e,n)=>{e.subscribe(ut(n,O))})}()),t.pipe(Y8(e))):en((t,i)=>yn(e(t,i)).pipe(Di(1),function qz(e){return Te(()=>e)}(t)))}let K8=(()=>{class e{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,i){this._renderer=t,this._elementRef=i}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 \u0275fac=function(i){return new(i||e)(R(ur),R(Oe))};static \u0275dir=G({type:e})}return e})(),ma=(()=>{class e extends K8{static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({type:e,features:[K]})}return e})();const Ti=new z(""),Yz={provide:Ti,useExisting:Le(()=>kn),multi:!0};let kn=(()=>{class e extends ma{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({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()})},standalone:!1,features:[Xe([Yz]),K]})}return e})();const Kz={provide:Ti,useExisting:Le(()=>bo),multi:!0},Qz=new z("");let bo=(()=>{class e extends K8{_compositionMode;_composing=!1;constructor(t,i,r){super(t,i),this._compositionMode=r,null==this._compositionMode&&(this._compositionMode=!function Jz(){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 \u0275fac=function(i){return new(i||e)(R(ur),R(Oe),R(Qz,8))};static \u0275dir=G({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)})},standalone:!1,features:[Xe([Kz]),K]})}return e})();function ly(e){return null==e||0===function dy(e){return null==e?null:Array.isArray(e)||"string"==typeof e?e.length:e instanceof Set?e.size:null}(e)}const _n=new z(""),wo=new z(""),Xz=/^(?=.{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 t6(e){return ly(e.value)||Xz.test(e.value)?null:{email:!0}}function gh(e){return null}function o6(e){return null!=e}function a6(e){return _l(e)?Xt(e):e}function s6(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function c6(e,n){return n.map(t=>t(e))}function l6(e){return e.map(n=>function eq(e){return!e.validate}(n)?n:t=>n.validate(t))}function uy(e){return null!=e?function d6(e){if(!e)return null;const n=e.filter(o6);return 0==n.length?null:function(t){return s6(c6(t,n))}}(l6(e)):null}function hy(e){return null!=e?function u6(e){if(!e)return null;const n=e.filter(o6);return 0==n.length?null:function(t){return function Zz(...e){const n=Au(e),{args:t,keys:i}=nw(e),r=new dt(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;yn(t[d]).subscribe(ut(o,g=>{h||(h=!0,l--),s[d]=g},()=>c--,void 0,()=>{(!c||!h)&&(l||o.next(i?iw(i,s):s),o.complete())}))}});return n?r.pipe(gg(n)):r}(c6(t,n).map(a6)).pipe(Te(s6))}}(l6(e)):null}function h6(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function py(e){return e?Array.isArray(e)?e:[e]:[]}function yh(e,n){return Array.isArray(e)?e.includes(n):e===n}function g6(e,n){const t=py(n);return py(e).forEach(r=>{yh(t,r)||t.push(r)}),t}function y6(e,n){return py(n).filter(t=>!yh(e,t))}class m6{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=uy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=hy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Pn extends m6{name;get formDirective(){return null}get path(){return null}}class Co extends m6{_parent=null;name=null;valueAccessor=null}class v6{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let bt=(()=>{class e extends v6{constructor(t){super(t)}static \u0275fac=function(i){return new(i||e)(R(Co,2))};static \u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&Ge("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)},standalone:!1,features:[K]})}return e})();const cd="VALID",vh="INVALID",Xs="PENDING",ld="DISABLED";class ec{}class _6 extends ec{value;source;constructor(n,t){super(),this.value=n,this.source=t}}class yy extends ec{pristine;source;constructor(n,t){super(),this.pristine=n,this.source=t}}class my extends ec{touched;source;constructor(n,t){super(),this.touched=n,this.source=t}}class kh extends ec{status;source;constructor(n,t){super(),this.status=n,this.source=t}}function _h(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class _y{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,t){this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Bt(this.statusReactive)}set status(n){Bt(()=>this.statusReactive.set(n))}_status=jr(()=>this.statusReactive());statusReactive=sr(void 0);get valid(){return this.status===cd}get invalid(){return this.status===vh}get pending(){return this.status==Xs}get disabled(){return this.status===ld}get enabled(){return this.status!==ld}errors;get pristine(){return Bt(this.pristineReactive)}set pristine(n){Bt(()=>this.pristineReactive.set(n))}_pristine=jr(()=>this.pristineReactive());pristineReactive=sr(!0);get dirty(){return!this.pristine}get touched(){return Bt(this.touchedReactive)}set touched(n){Bt(()=>this.touchedReactive.set(n))}_touched=jr(()=>this.touchedReactive());touchedReactive=sr(!1);get untouched(){return!this.touched}_events=new ze;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(g6(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(g6(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(y6(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(y6(n,this._rawAsyncValidators))}hasValidator(n){return yh(this._rawValidators,n)}hasAsyncValidator(n){return yh(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 my(!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 my(!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 yy(!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 yy(!0,i))}markAsPending(n={}){this.status=Xs;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new kh(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=ld,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 _6(this.value,i)),this._events.next(new kh(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=cd,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===cd||this.status===Xs)&&this._runAsyncValidator(i,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new _6(this.value,t)),this._events.next(new kh(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()?ld:cd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Xs,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const i=a6(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 kh(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,i)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?ld:this.errors?vh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xs)?Xs:this._anyControlsHaveStatus(vh)?vh:cd}_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 yy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new my(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){_h(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 cq(e){return Array.isArray(e)?uy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function lq(e){return Array.isArray(e)?hy(e):e||null}(this._rawAsyncValidators)}}const tc=new z("",{providedIn:"root",factory:()=>Mh}),Mh="always";function dd(e,n,t=Mh){(function by(e,n){const t=function p6(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(h6(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function f6(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(h6(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();Ch(n._rawValidators,r),Ch(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function hq(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&D6(e,n)})}(e,n),function fq(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 pq(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&D6(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function uq(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Ch(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function D6(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function E6(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function T6(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const I6=class extends _y{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,t,i){super(function vy(e){return(_h(e)?e.validators:e)||null}(t),function ky(e,n){return(_h(n)?n.asyncValidators:e)||null}(i,t)),this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=T6(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){E6(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){E6(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){T6(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}},Cq={provide:Co,useExisting:Le(()=>mt)},A6=Promise.resolve();let mt=(()=>{class e extends Co{_changeDetectorRef;callSetDisabledState;control=new I6;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new J;constructor(t,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function Dy(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===bo?t=o:function mq(e){return Object.getPrototypeOf(e.constructor)===ma}(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 Cy(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(){dd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){A6.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&zs(i);A6.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function bh(e,n){return[...n.path,e]}(t,this._parent):[t]}static \u0275fac=function(i){return new(i||e)(R(Pn,9),R(_n,10),R(wo,10),R(Ti,10),R(Zn,8),R(tc,8))};static \u0275dir=G({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Xe([Cq]),K,sn]})}return e})();const xq={provide:Ti,useExisting:Le(()=>nc),multi:!0};let nc=(()=>{class e extends ma{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({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()})},standalone:!1,features:[Xe([xq]),K]})}return e})();const Fq={provide:Ti,useExisting:Le(()=>$r),multi:!0};function V6(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let $r=(()=>{class e extends ma{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;const r=V6(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 Pq(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({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"},standalone:!1,features:[Xe([Fq]),K]})}return e})(),va=(()=>{class e{_element;_renderer;_select;id;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(V6(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 \u0275fac=function(i){return new(i||e)(R(Oe),R(ur),R($r,9))};static \u0275dir=G({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();const Lq={provide:Ti,useExisting:Le(()=>xy),multi:!0};function j6(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let xy=(()=>{class e extends ma{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;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 Vq(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({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"},standalone:!1,features:[Xe([Lq]),K]})}return e})(),ka=(()=>{class e{_element;_renderer;_select;id;_value;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(j6(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(j6(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||e)(R(Oe),R(ur),R(xy,9))};static \u0275dir=G({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),_a=(()=>{class e{_validator=gh;_onChange;_enabled;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):gh,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static \u0275fac=function(i){return new(i||e)};static \u0275dir=G({type:e,features:[sn]})}return e})();const qq={provide:_n,useExisting:Le(()=>Ey),multi:!0};let Ey=(()=>{class e extends _a{email;inputName="email";normalizeInput=zs;createValidator=t=>t6;enabled(t){return t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=rt(e)))(r||e)}})();static \u0275dir=G({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[Xe([qq]),K]})}return e})(),Wq=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({})}return e})(),wt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:tc,useValue:t.callSetDisabledState??Mh}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({imports:[Wq]})}return e})();var Yq={left:"right",right:"left",bottom:"top",top:"bottom"};function Ah(e){return e.replace(/left|right|bottom|top/g,function(n){return Yq[n]})}function Mr(e){return e.split("-")[0]}var Kq={start:"end",end:"start"};function Z6(e){return e.replace(/start|end/g,function(n){return Kq[n]})}var pi="top",Zi="bottom",Yi="right",fi="left",Ty="auto",pd=[pi,Zi,Yi,fi],ic="start",fd="end",Y6="viewport",gd="popper",K6=pd.reduce(function(e,n){return e.concat([n+"-"+ic,n+"-"+fd])},[]),J6=[].concat(pd,[Ty]).reduce(function(e,n){return e.concat([n,n+"-"+ic,n+"-"+fd])},[]),cU=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Ma(e){return e instanceof gi(e).Element||e instanceof Element}function Ii(e){return e instanceof gi(e).HTMLElement||e instanceof HTMLElement}function Iy(e){return!(typeof ShadowRoot>"u")&&(e instanceof gi(e).ShadowRoot||e instanceof ShadowRoot)}function Do(e){return((Ma(e)?e.ownerDocument:e.document)||window.document).documentElement}var ba=Math.max,Nh=Math.min,rc=Math.round;function Ay(){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 Q6(){return!/^((?!chrome|android).)*safari/i.test(Ay())}function oc(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,o=1;n&&Ii(e)&&(r=e.offsetWidth>0&&rc(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&rc(i.height)/e.offsetHeight||1);var s=(Ma(e)?gi(e):window).visualViewport,c=!Q6()&&t,l=(i.left+(c&&s?s.offsetLeft:0))/r,d=(i.top+(c&&s?s.offsetTop:0))/o,h=i.width/r,g=i.height/o;return{width:h,height:g,top:d,right:l+h,bottom:d+g,left:l,x:l,y:d}}function Ny(e){var n=gi(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Ry(e){return oc(Do(e)).left+Ny(e).scrollLeft}function Gr(e){return gi(e).getComputedStyle(e)}function br(e){return e?(e.nodeName||"").toLowerCase():null}function Rh(e){return"html"===br(e)?e:e.assignedSlot||e.parentNode||(Iy(e)?e.host:null)||Do(e)}function Oy(e){var n=Gr(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function X6(e){return["html","body","#document"].indexOf(br(e))>=0?e.ownerDocument.body:Ii(e)&&Oy(e)?e:X6(Rh(e))}function yd(e,n){var t;void 0===n&&(n=[]);var i=X6(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),o=gi(i),a=r?[o].concat(o.visualViewport||[],Oy(i)?i:[]):i,s=n.concat(a);return r?s:s.concat(yd(Rh(a)))}function uU(e){return["table","td","th"].indexOf(br(e))>=0}function eC(e){return Ii(e)&&"fixed"!==Gr(e).position?e.offsetParent:null}function md(e){for(var n=gi(e),t=eC(e);t&&uU(t)&&"static"===Gr(t).position;)t=eC(t);return t&&("html"===br(t)||"body"===br(t)&&"static"===Gr(t).position)?n:t||function hU(e){var n=/firefox/i.test(Ay());if(/Trident/i.test(Ay())&&Ii(e)&&"fixed"===Gr(e).position)return null;var r=Rh(e);for(Iy(r)&&(r=r.host);Ii(r)&&["html","body"].indexOf(br(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 tC(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&Iy(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Fy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nC(e,n,t){return n===Y6?Fy(function lU(e,n){var t=gi(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=Q6();(l||!l&&"fixed"===n)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+Ry(e),y:c}}(e,t)):Ma(n)?function pU(e,n){var t=oc(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):Fy(function dU(e){var n,t=Do(e),i=Ny(e),r=null==(n=e.ownerDocument)?void 0:n.body,o=ba(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ba(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Ry(e),c=-i.scrollTop;return"rtl"===Gr(r||t).direction&&(s+=ba(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(Do(e)))}function ac(e){return e.split("-")[1]}function Py(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iC(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?Mr(i):null,o=i?ac(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 Zi:c={x:a,y:n.y+n.height};break;case Yi: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?Py(r):null;if(null!=l){var d="y"===l?"height":"width";switch(o){case ic:c[l]=c[l]-(n[d]/2-t[d]/2);break;case fd:c[l]=c[l]+(n[d]/2-t[d]/2)}}return c}function oC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function aC(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function Ly(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?Y6:l,h=n.elementContext,g=void 0===h?gd:h,f=n.altBoundary,k=void 0!==f&&f,C=n.padding,E=void 0===C?0:C,I=oC("number"!=typeof E?E:aC(E,pd)),q=e.rects.popper,$=e.elements[k?g===gd?"reference":gd:g],W=function gU(e,n,t,i){var r="clippingParents"===n?function fU(e){var n=yd(Rh(e)),i=["absolute","fixed"].indexOf(Gr(e).position)>=0&&Ii(e)?md(e):e;return Ma(i)?n.filter(function(r){return Ma(r)&&tC(r,i)&&"body"!==br(r)}):[]}(e):[].concat(n),o=[].concat(r,[t]),s=o.reduce(function(c,l){var d=nC(e,l,i);return c.top=ba(d.top,c.top),c.right=Nh(d.right,c.right),c.bottom=Nh(d.bottom,c.bottom),c.left=ba(d.left,c.left),c},nC(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}(Ma($)?$:$.contextElement||Do(e.elements.popper),c,d,a),me=oc(e.elements.reference),Se=iC({reference:me,element:q,strategy:"absolute",placement:r}),We=Fy(Object.assign({},q,Se)),tn=g===gd?We:me,nn={top:W.top-tn.top+I.top,bottom:tn.bottom-W.bottom+I.bottom,left:W.left-tn.left+I.left,right:tn.right-W.right+I.right},Cn=e.modifiersData.offset;if(g===gd&&Cn){var Ji=Cn[r];Object.keys(nn).forEach(function(Ln){var Ia=[Yi,Zi].indexOf(Ln)>=0?1:-1,Aa=[pi,Zi].indexOf(Ln)>=0?"y":"x";nn[Ln]+=Ji[Aa]*Ia})}return nn}const kU={name:"flip",enabled:!0,phase:"main",fn:function vU(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,g=t.altBoundary,f=t.flipVariations,k=void 0===f||f,C=t.allowedAutoPlacements,E=n.options.placement,I=Mr(E),q=c||(I!==E&&k?function mU(e){if(Mr(e)===Ty)return[];var n=Ah(e);return[Z6(e),n,Z6(n)]}(E):[Ah(E)]),$=[E].concat(q).reduce(function(hc,Eo){return hc.concat(Mr(Eo)===Ty?function yU(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?J6:c,d=ac(n.placement),h=d?s?K6:K6.filter(function(k){return ac(k)===d}):pd,g=h.filter(function(k){return l.indexOf(k)>=0});0===g.length&&(g=h);var f=g.reduce(function(k,C){return k[C]=Ly(e,{placement:C,boundary:r,rootBoundary:o,padding:a})[Mr(C)],k},{});return Object.keys(f).sort(function(k,C){return f[k]-f[C]})}(n,{placement:Eo,boundary:d,rootBoundary:h,padding:l,flipVariations:k,allowedAutoPlacements:C}):Eo)},[]),W=n.rects.reference,me=n.rects.popper,Se=new Map,We=!0,tn=$[0],nn=0;nn<$.length;nn++){var Cn=$[nn],Ji=Mr(Cn),Ln=ac(Cn)===ic,Ia=[pi,Zi].indexOf(Ji)>=0,Aa=Ia?"width":"height",vi=Ly(n,{placement:Cn,boundary:d,rootBoundary:h,altBoundary:g,padding:l}),Qi=Ia?Ln?Yi:fi:Ln?Zi:pi;W[Aa]>me[Aa]&&(Qi=Ah(Qi));var Yh=Ah(Qi),Na=[];if(o&&Na.push(vi[Ji]<=0),s&&Na.push(vi[Qi]<=0,vi[Yh]<=0),Na.every(function(hc){return hc})){tn=Cn,We=!1;break}Se.set(Cn,Na)}if(We)for(var _m=function(Eo){var xd=$.find(function(Qh){var Ra=Se.get(Qh);if(Ra)return Ra.slice(0,Eo).every(function(Mm){return Mm})});if(xd)return tn=xd,"break"},Dd=k?3:1;Dd>0&&"break"!==_m(Dd);Dd--);n.placement!==tn&&(n.modifiersData[i]._skip=!0,n.placement=tn,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vd(e,n,t){return ba(e,Nh(n,t))}function Vy(e){var n=oc(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 wU={name:"preventOverflow",enabled:!0,phase:"main",fn:function bU(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,g=t.tether,f=void 0===g||g,k=t.tetherOffset,C=void 0===k?0:k,E=Ly(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),I=Mr(n.placement),T=ac(n.placement),q=!T,$=Py(I),W=function _U(e){return"x"===e?"y":"x"}($),me=n.modifiersData.popperOffsets,Se=n.rects.reference,We=n.rects.popper,tn="function"==typeof C?C(Object.assign({},n.rects,{placement:n.placement})):C,nn="number"==typeof tn?{mainAxis:tn,altAxis:tn}:Object.assign({mainAxis:0,altAxis:0},tn),Cn=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Ji={x:0,y:0};if(me){if(o){var Ln,Ia="y"===$?pi:fi,Aa="y"===$?Zi:Yi,vi="y"===$?"height":"width",Qi=me[$],Yh=Qi+E[Ia],Na=Qi-E[Aa],Kh=f?-We[vi]/2:0,_m=T===ic?Se[vi]:We[vi],Dd=T===ic?-We[vi]:-Se[vi],Jh=n.elements.arrow,hc=f&&Jh?Vy(Jh):{width:0,height:0},Eo=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},xd=Eo[Ia],Qh=Eo[Aa],Ra=vd(0,Se[vi],hc[vi]),Mm=q?Se[vi]/2-Kh-Ra-xd-nn.mainAxis:_m-Ra-xd-nn.mainAxis,uMe=q?-Se[vi]/2+Kh+Ra+Qh+nn.mainAxis:Dd+Ra+Qh+nn.mainAxis,bm=n.elements.arrow&&md(n.elements.arrow),hMe=bm?"y"===$?bm.clientTop||0:bm.clientLeft||0:0,JD=null!=(Ln=Cn?.[$])?Ln:0,fMe=Qi+uMe-JD,QD=vd(f?Nh(Yh,Qi+Mm-JD-hMe):Yh,Qi,f?ba(Na,fMe):Na);me[$]=QD,Ji[$]=QD-Qi}if(s){var XD,Oa=me[W],Xh="y"===W?"height":"width",e7=Oa+E["x"===$?pi:fi],t7=Oa-E["x"===$?Zi:Yi],wm=-1!==[pi,fi].indexOf(I),n7=null!=(XD=Cn?.[W])?XD:0,i7=wm?e7:Oa-Se[Xh]-We[Xh]-n7+nn.altAxis,r7=wm?Oa+Se[Xh]+We[Xh]-n7-nn.altAxis:t7,o7=f&&wm?function MU(e,n,t){var i=vd(e,n,t);return i>t?t:i}(i7,Oa,r7):vd(f?i7:e7,Oa,f?r7:t7);me[W]=o7,Ji[W]=o7-Oa}n.modifiersData[i]=Ji}},requiresIfExists:["offset"]},SU={name:"arrow",enabled:!0,phase:"main",fn:function DU(e){var n,t=e.state,i=e.name,r=e.options,o=t.elements.arrow,a=t.modifiersData.popperOffsets,s=Mr(t.placement),c=Py(s),d=[fi,Yi].indexOf(s)>=0?"height":"width";if(o&&a){var h=function(n,t){return oC("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:aC(n,pd))}(r.padding,t),g=Vy(o),f="y"===c?pi:fi,k="y"===c?Zi:Yi,C=t.rects.reference[d]+t.rects.reference[c]-a[c]-t.rects.popper[d],E=a[c]-t.rects.reference[c],I=md(o),T=I?"y"===c?I.clientHeight||0:I.clientWidth||0:0,me=T/2-g[d]/2+(C/2-E/2),Se=vd(h[f],me,T-g[d]-h[k]);t.modifiersData[i]=((n={})[c]=Se,n.centerOffset=Se-me,n)}},effect:function xU(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))||tC(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function AU(e,n,t){void 0===t&&(t=!1);var i=Ii(n),r=Ii(n)&&function IU(e){var n=e.getBoundingClientRect(),t=rc(n.width)/e.offsetWidth||1,i=rc(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),o=Do(n),a=oc(e,r,t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==br(n)||Oy(o))&&(s=function TU(e){return e!==gi(e)&&Ii(e)?function EU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Ny(e)}(n)),Ii(n)?((c=oc(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):o&&(c.x=Ry(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function NU(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 OU(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var sC={placement:"bottom",modifiers:[],strategy:"absolute"};function cC(){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 PU(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,o=void 0===r?sC:r;return function(s,c,l){void 0===l&&(l=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},sC,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},h=[],g=!1,f={state:d,setOptions:function(I){var T="function"==typeof I?I(d.options):I;C(),d.options=Object.assign({},o,d.options,T),d.scrollParents={reference:Ma(s)?yd(s):s.contextElement?yd(s.contextElement):[],popper:yd(c)};var q=function RU(e){var n=NU(e);return cU.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function FU(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=q.filter(function($){return $.enabled}),function k(){d.orderedModifiers.forEach(function(E){var T=E.options,$=E.effect;if("function"==typeof $){var W=$({state:d,name:E.name,instance:f,options:void 0===T?{}:T});h.push(W||function(){})}})}(),f.update()},forceUpdate:function(){if(!g){var I=d.elements,T=I.reference,q=I.popper;if(cC(T,q)){d.rects={reference:AU(T,md(q),"fixed"===d.options.strategy),popper:Vy(q)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(nn){return d.modifiersData[nn.name]=Object.assign({},nn.data)});for(var $=0;$<d.orderedModifiers.length;$++)if(!0!==d.reset){var W=d.orderedModifiers[$],me=W.fn,Se=W.options;"function"==typeof me&&(d=me({state:d,options:void 0===Se?{}:Se,name:W.name,instance:f})||d)}else d.reset=!1,$=-1}}},update:OU(function(){return new Promise(function(E){f.forceUpdate(),E(d)})}),destroy:function(){C(),g=!0}};if(!cC(s,c))return f;function C(){h.forEach(function(E){return E()}),h=[]}return f.setOptions(l).then(function(E){!g&&l.onFirstUpdate&&l.onFirstUpdate(E)}),f}}var Oh={passive:!0},BU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lC(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,g=a.x,f=void 0===g?0:g,k=a.y,C=void 0===k?0:k,E="function"==typeof d?d({x:f,y:C}):{x:f,y:C};f=E.x,C=E.y;var I=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),q=fi,$=pi,W=window;if(l){var me=md(t),Se="clientHeight",We="clientWidth";me===gi(t)&&"static"!==Gr(me=Do(t)).position&&"absolute"===s&&(Se="scrollHeight",We="scrollWidth"),(r===pi||(r===fi||r===Yi)&&o===fd)&&($=Zi,C-=(h&&me===W&&W.visualViewport?W.visualViewport.height:me[Se])-i.height,C*=c?1:-1),r!==fi&&(r!==pi&&r!==Zi||o!==fd)||(q=Yi,f-=(h&&me===W&&W.visualViewport?W.visualViewport.width:me[We])-i.width,f*=c?1:-1)}var Ln,Cn=Object.assign({position:s},l&&BU),Ji=!0===d?function zU(e,n){var i=e.y,r=n.devicePixelRatio||1;return{x:rc(e.x*r)/r||0,y:rc(i*r)/r||0}}({x:f,y:C},gi(t)):{x:f,y:C};return f=Ji.x,C=Ji.y,Object.assign({},Cn,c?((Ln={})[$]=T?"0":"",Ln[q]=I?"0":"",Ln.transform=(W.devicePixelRatio||1)<=1?"translate("+f+"px, "+C+"px)":"translate3d("+f+"px, "+C+"px, 0)",Ln):((n={})[$]=T?C+"px":"",n[q]=I?f+"px":"",n.transform="",n))}var ZU=PU({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function LU(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=gi(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&l.forEach(function(d){d.addEventListener("scroll",t.update,Oh)}),s&&c.addEventListener("resize",t.update,Oh),function(){o&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Oh)}),s&&c.removeEventListener("resize",t.update,Oh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function jU(e){var n=e.state;n.modifiersData[e.name]=iC({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function qU(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:Mr(n.placement),variation:ac(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,lC(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,lC(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 $U(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];!Ii(o)||!br(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 GU(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},{});!Ii(r)||!br(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const JU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function KU(e){var n=e.state,i=e.name,r=e.options.offset,o=void 0===r?[0,0]:r,a=J6.reduce(function(d,h){return d[h]=function YU(e,n,t){var i=Mr(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,Yi].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}},QU=["container"],XU=["ngbAccordionBody",""],sc=["*"];function e$(e,n){if(1&e){const t=Be();y(0,"button",1),L("click",function(){return de(t),ue(F().close())}),m()}}const I$=["dialog"];function cG(e,n){if(1&e&&(y(0,"span"),Hs(1,0),zf(2,"percent"),m()),2&e){const t=F();b(2),Rf(qf(2,1,t.getValue()/t.max)),function $5(e){!function WR(e,n,t){if(xl>0){const i=e.data[t];A5(e,n,Array.isArray(i)?i:i.update,Ar()-xl-1,Dl)}Dl=0,xl=0}(ie(),N(),e+Y)}(1)}}const uC={animation:!0,transitionTimerDelayMs:5};let cc=(()=>{class e{constructor(){this.animation=uC.animation}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kG=(()=>{class e{constructor(){this._ngbConfig=w(cc),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 wa(e){return"string"==typeof e}function hn(e){return!isNaN(function Kn(e){return parseInt(`${e}`,10)}(e))}function Ca(e){return null!=e}function lc(e){return(e||document.body).getBoundingClientRect()}const wG=()=>{},{transitionTimerDelayMs:CG}=uC,kd=new Map,yi=(e,n,t,i)=>{let r=i.context||{};const o=kd.get(n);if(o)switch(i.runningTransition){case"continue":return Yn;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),kd.delete(n)}const a=t(n,i.animation,r)||wG;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>a()),ne(void 0).pipe(function bG(e){return n=>new dt(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 ze,c=new ze,l=s.pipe(function Bz(...e){return n=>jl(n,ne(...e))}(!0));kd.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const d=function _G(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),dn(({target:f})=>f===n));Z8(G8(d+CG).pipe(mn(l)),h,c).pipe(mn(l)).subscribe(()=>{kd.delete(n),e.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()},xG=(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 DG(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"),lc(e),a.add("collapsing")),e.style[o]="show"===i?r:"0px",()=>{s(),a.remove("collapsing"),e.style[o]=""};s()};let SG=(()=>{class e{constructor(){this._ngbConfig=w(cc),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})(),Hy=(()=>{class e{constructor(){this._config=w(SG),this._element=w(Oe),this._zone=w(ge),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new J,this.horizontal=this._config.horizontal,this.shown=new J,this.hidden=new J}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 yi(this._zone,this._element.nativeElement,xG,{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=G({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,r){2&i&&Ge("collapse-horizontal",r.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return e})(),EG=0,yC=(()=>{class e{constructor(){this._item=w(xo),this._viewRef=null,this.elementRef=w(Oe)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,r,o){if(1&i&&Qt(o,Ft,7),2&i){let a;at(a=st())&&(r._bodyTpl=a.first)}},viewQuery:function(i,r){if(1&i&&fo(QU,7,$n),2&i){let o;at(o=st())&&(r._vcr=o.first)}},hostAttrs:[1,"accordion-body"],attrs:XU,ngContentSelectors:sc,decls:3,vars:0,consts:[["container",""]],template:function(i,r){1&i&&(ho(),Vs(0,null,0),po(2))},encapsulation:2})}}return e})(),By=(()=>{class e{constructor(){this.item=w(xo),this.ngbCollapse=w(Hy)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,r){2&i&&(di("id",r.item.collapseId),U("aria-labelledby",r.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[rf([Hy])]})}}return e})(),mC=(()=>{class e{constructor(){this.item=w(xo),this.accordion=w(Fh)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({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&&(di("id",r.item.toggleId),U("aria-controls",r.item.collapseId)("aria-expanded",!r.item.collapsed),Ge("collapsed",r.item.collapsed))}})}}return e})(),vC=(()=>{class e{constructor(){this.item=w(xo)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(i,r){2&i&&di("disabled",r.item.disabled)},features:[rf([mC])]})}}return e})(),kC=(()=>{class e{constructor(){this.item=w(xo)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,r){2&i&&Ge("collapsed",r.item.collapsed)}})}}return e})(),xo=(()=>{class e{constructor(){this._accordion=w(Fh),this._cd=w(Zn),this._destroyRef=w(si),this._collapsed=!0,this._id="ngb-accordion-item-"+EG++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new J,this.shown=new J,this.hide=new J,this.hidden=new J}set id(t){wa(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),this._cd.markForCheck()}),t.shown.pipe(Ur(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,r,o){if(1&i&&Qt(o,By,7),2&i){let a;at(a=st())&&(r._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,r){2&i&&di("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"]})}}return e})(),Fh=(()=>{class e{constructor(){this._config=w(kG),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new J,this.shown=new J,this.hide=new J,this.hidden=new J}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=G({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,r,o){if(1&i&&Qt(o,xo,4),2&i){let a;at(a=st())&&(r._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]})}}return e})(),zy=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),TG=(()=>{class e{constructor(){this._ngbConfig=w(cc),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 IG=({classList:e})=>{e.remove("show")};let qy=(()=>{class e{constructor(){this._config=w(TG),this._elementRef=w(Oe),this._zone=w(ge),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new J}close(){const t=yi(this._zone,this._elementRef.nativeElement,IG,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,r){2&i&&(ca("alert show"+(r.type?" alert-"+r.type:"")),Ge("fade",r.animation)("alert-dismissible",r.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:sc,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,e$,1,0,"button",0)),2&i&&(b(),Ht(r.dismissible?1:-1))},styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}}return e})(),Uy=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),bC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),wC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})();const Bh=(e,n)=>!!n&&n.some(t=>t.contains(e)),EC=(e,n)=>!n||null!=function MG(e,n){return!n||typeof e.closest>"u"?null:e.closest(n)}(e,n),KG=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 Jy(e,n,t,i,r,o,a,s){t&&e.runOutsideAngular((e=>KG?()=>setTimeout(()=>e(),100):e)(()=>{const l=vn(n,"keydown").pipe(mn(r),dn(g=>"Escape"===g.key),un(g=>g.preventDefault())),d=vn(n,"mousedown").pipe(Te(g=>{const f=g.target;return 2!==g.button&&!Bh(f,a)&&("inside"===t?Bh(f,o)&&EC(f,s):"outside"===t?!Bh(f,o):EC(f,s)||!Bh(f,o))}),mn(r)),h=vn(n,"mouseup").pipe(cy(d),dn(([g,f])=>f),function Uz(e,n=$8){const t=G8(e,n);return Y8(()=>t)}(0),mn(r));Z8([l.pipe(Te(g=>0)),h.pipe(Te(g=>1))]).subscribe(g=>e.run(()=>i(g)))}))}const TC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function IC(e){const n=Array.from(e.querySelectorAll(TC)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}let QG=(()=>{class e{constructor(){this._element=w(Pt).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 XG=/\s+/,eW=/ +/gi,tW={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"]},iW=/^left/,rW=/^right/,oW=/^start/,aW=/^end/;function NC({placement:e,baseClass:n},t){let i=Array.isArray(e)?e:e.split(XG),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 nW(e,n){const[t,i]=tW[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,g=l.placement;let f=h.className;f=f.replace(d,""),f+=` ${function sW(e,n){let[t,i]=n.split("-");const r=t.replace(iW,"start").replace(rW,"end");let o=[r];if(i){let a=i;("left"===t||"right"===t)&&(a=a.replace(oW,"top").replace(aW,"bottom")),o.push(`${r}-${a}`)}return e&&(o=o.map(a=>`${e}-${a}`)),o.join(" ")}(n,g)}`,f=f.trim().replace(eW," "),h.className=f}},kU,wU,SU,{enabled:!0,name:"flip",options:{fallbackPlacements:a}}]}}function RC(e){return e}new Date(1882,10,12),new Date(2174,10,25);let UC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),GC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),xW=(()=>{class e{constructor(){this._ngbConfig=w(cc),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class Ea{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class SW{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=w(Pt),this._applicationRef=w(An),this._injector=w(He),this._viewContainerRef=w($n),this._ngZone=w(ge)}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 ze;no({mixedReadWrite:()=>{o.next(),o.complete()}},{injector:this._injector});const a=o.pipe(en(()=>yi(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?yi(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(un(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):ne(void 0)}_getContentRef(n,t){if(n){if(n instanceof Ft){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new Ea([i.rootNodes],i)}return new Ea([[this._document.createTextNode(`${n}`)]])}return new Ea([])}}let EW=(()=>{class e{constructor(){this._document=w(Pt)}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})(),TW=(()=>{class e{constructor(){this._nativeElement=w(Oe).nativeElement,this._zone=w(ge),this._injector=w(He)}ngOnInit(){no({mixedReadWrite:()=>yi(this._zone,this._nativeElement,(t,i)=>{i&&lc(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return yi(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=re({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(ca("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Ge("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return e})();class WC{update(n){}close(n){}dismiss(n){}}const IW=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],AW=["animation","backdropClass"];class NW{_applyWindowOptions(n,t){IW.forEach(i=>{Ca(t[i])&&(n[i]=t[i])})}_applyBackdropOptions(n,t){AW.forEach(i=>{Ca(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 ze,this._dismissed=new ze,this._hidden=new ze,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 pC(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():ne(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}}),sy(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var bd=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(bd||{});let RW=(()=>{class e{constructor(){this._document=w(Pt),this._elRef=w(Oe),this._zone=w(ge),this._injector=w(He),this._closed$=new ze,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new J,this.shown=new ze,this.hidden=new ze}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":wa(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,no({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},a=sy(yi(this._zone,t,()=>t.classList.remove("show"),i),yi(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"};sy(yi(this._zone,this._elRef.nativeElement,(o,a)=>{a&&lc(o),o.classList.add("show")},t),yi(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$),dn(r=>"Escape"===r.key)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(bd.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;vn(this._dialogEl.nativeElement,"mousedown").pipe(mn(this._closed$),un(()=>i=!1),qi(()=>vn(t,"mouseup").pipe(mn(this._closed$),Di(1))),dn(({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(bd.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=IC(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&&yi(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=re({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&fo(I$,7),2&i){let o;at(o=st())&&(r._dialogEl=o.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,r){2&i&&(U("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy)("role",r.role),ca("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Ge("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:sc,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&&ca("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})(),OW=(()=>{class e{constructor(){this._applicationRef=w(An),this._injector=w(He),this._environmentInjector=w(bn),this._document=w(Pt),this._scrollBar=w(EW),this._activeWindowCmptHasChanged=new ze,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new J;const t=w(ge);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),Te(o=>o.target));vn(n,"keydown").pipe(mn(t),dn(o=>"Tab"===o.key),cy(r)).subscribe(([o,a])=>{const[s,c]=IC(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),cy(r),Te(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:Ca(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 WC,s=(t=r.injector||t).get(bn,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 NW(d,c,l,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(d),h.hidden.pipe(Di(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{h.close(g)},a.dismiss=g=>{h.dismiss(g)},a.update=g=>{h.update(g)},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=og(TW,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=og(RW,{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 Ft?this._createFromTemplateRef(r,o):wa(r)?this._createFromString(r):this._createFromComponent(t,i,r,o,a):new Ea([])}_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 Ea([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new Ea([[i]])}_createFromComponent(t,i,r,o,a){const c=og(r,{environmentInjector:i,elementInjector:He.create({providers:[{provide:WC,useValue:o}],parent:t})}),l=c.location.nativeElement;return a.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Ea([[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})(),ZC=(()=>{class e{constructor(){this._injector=w(He),this._modalStack=w(OW),this._config=w(xW)}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})(),YC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({providers:[ZC]})}}return e})(),QC=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),aD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})();const qW={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let sD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),GW=(()=>{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})(),WW=(()=>{class e{set max(t){this._max=!hn(t)||t<=0?100:t}get max(){return this._max}constructor(){this._config=w(GW),this.stacked=w(ZW,{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 hC(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=re({type:e,selectors:[["ngb-progressbar"]],hostAttrs:["role","progressbar","aria-valuemin","0",1,"progress"],hostVars:7,hostBindings:function(i,r){2&i&&(U("aria-valuenow",r.getValue())("aria-valuemax",r.max)("aria-label",r.ariaLabel),wl("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"},ngContentSelectors:sc,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,cG,3,3,"span"),po(2),m()),2&i&&(k5("progress-bar",r.type?r.textType?" bg-"+r.type:" text-bg-"+r.type:"","",r.textType?" text-"+r.textType:"",""),wl("width",r.stacked?null:r.getPercentValue(),"%"),Ge("progress-bar-animated",r.animated)("progress-bar-striped",r.striped),b(),Ht(r.showValue?1:-1))},dependencies:[R8],encapsulation:2,changeDetection:0})}}return e})(),ZW=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-progressbar-stacked"]],hostAttrs:[1,"progress-stacked"],ngContentSelectors:sc,decls:1,vars:0,template:function(i,r){1&i&&(ho(),po(0))},encapsulation:2,changeDetection:0})}}return e})(),cD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),lD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),dD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),uD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),hD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),QW=(()=>{class e{constructor(){this._ngbConfig=w(cc),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})(),XW=0,eZ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=re({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,r){2&i&&(di("id",r.id),ca("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),Ge("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:sc,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})(),pD=(()=>{class e{constructor(){this._config=w(QW),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 J,this.hidden=new J,this._nativeElement=w(Oe).nativeElement,this._ngZone=w(ge),this._document=w(Pt),this._changeDetector=w(Zn),this._injector=w(He),this._ngbTooltipWindowId="ngb-tooltip-"+XW++,this._popupService=new SW(eZ),this._windowRef=null,this._positioning=function Qy(){const e=w(QG);let n=null;return{createPopper(t){if(!n){let r=(t.updatePopperOptions||RC)(NC(t,e));n=ZU(t.hostElement,t.targetElement,r)}},update(){n&&n.update()},setOptions(t){if(n){let r=(t.updatePopperOptions||RC)(NC(t,e));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}()}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(function Xy(e){return n=>(n.modifiers.push(JU,{name:"offset",options:{offset:()=>e}}),n)}([0,6])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=function zc(e,n){!n?.injector&&Ho();const t=n?.injector??w(He);return qn("NgAfterRender"),Lk(e,t,n,!1)}({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),Jy(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=function $W(e,n,t,i,r,o=0,a=0){const s=function UW(e){const n=(e||"").trim();if(0===n.length)return[];const t=n.split(/\s+/).map(r=>r.split(":")).map(r=>qW[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(f,k){e.addEventListener(f,k),l.push(()=>e.removeEventListener(f,k))}function g(f,k){clearTimeout(d),k>0?d=setTimeout(f,k):f()}for(const[f,k]of s)k?(h(f,()=>{c.add(f),g(()=>c.size>0&&i(),o)}),h(k,()=>{c.delete(f),g(()=>0===c.size&&r(),a)})):h(f,()=>t()?g(r,a):g(i,o));return()=>l.forEach(f=>f())}(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(wa(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=G({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[sn]})}}return e})(),cm=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})();new z("live announcer delay",{providedIn:"root",factory:()=>100});let fD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})(),gD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({})}}return e})();const nZ=[zy,Uy,bC,wC,UC,GC,YC,QC,gD,aD,sD,cD,lD,dD,uD,hD,cm,fD];let iZ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ke({type:e})}static{this.\u0275inj=Ue({imports:[nZ,zy,Uy,bC,wC,UC,GC,YC,QC,gD,aD,sD,cD,lD,dD,uD,hD,cm,fD]})}}return e})();function oZ(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 aZ=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:oZ(e)}])),sZ=["*"],yD=[["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"}]],mD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vD=[["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"}]],kD=[["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"}]],_D=[["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"}]],MD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],bD=[["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"}]],wD=[["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"}]],CD=[["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"}]],DD=[["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"}]],xD=[["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"}]],SD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],ED=[["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"}]],TD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ID=[["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"}]],AD=[["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"}]],ND=[["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 wd={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 lm=new z("LucideIcons",{factory:()=>new dm({})});class dm{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 gke=(()=>{class e{constructor(){this.color=wd.stroke,this.size=wd.width,this.strokeWidth=wd["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 yke(e,n=3){return parseFloat(e.toFixed(n)).toString(10)}let Ta=(()=>{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=wd.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={...wd,width:this.size,height:this.size,stroke:this.color??this.iconConfig.color,"stroke-width":this.absoluteStrokeWidth?yke(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)(R(Oe),R(ur),R(Zn),R(lm),R(gke))},e.\u0275cmp=re({type:e,selectors:[["lucide-angular"],["lucide-icon"],["i-lucide"],["span-lucide"]],inputs:{class:"class",name:"name",img:"img",color:"color",absoluteStrokeWidth:"absoluteStrokeWidth",size:"size",strokeWidth:"strokeWidth"},standalone:!1,features:[sn],ngContentSelectors:sZ,decls:1,vars:0,template:function(t,i){1&t&&(ho(),po(0))},encapsulation:2}),e})();class mke{constructor(n){this.icons=n}}const vke=e=>new dm(e??{});let So=(()=>{class e{static pick(t){return{ngModule:e,providers:[{provide:lm,multi:!0,useValue:new dm(t)},{provide:lm,multi:!0,useFactory:vke,deps:[[new $d,mke]]}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ke({type:e}),e.\u0275inj=Ue({imports:[[]]}),e})(),lt=(()=>{class e extends EventTarget{stations=[];accessories$=new dt(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 Z(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 Z(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 Z(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 Z(function*(){try{yield window.homebridge.savePluginConfig()}catch(t){console.log("There was an error when saving config: ",t)}})()}resetConfig(){return Z(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 kke=e=>({$implicit:e,type:"both"}),_ke=e=>({$implicit:e,type:"station"}),Mke=e=>({$implicit:e,type:"device"}),bke=(e,n)=>["/config",e,n];function wke(e,n){if(1&e){const t=Be();y(0,"div",7)(1,"h4",8),M(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"),M(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),M(9," We strongly recommend that you "),y(10,"strong"),M(11,"stop"),m(),M(12," the plugin before proceeding further. "),m(),y(13,"p"),M(14,"Otherwise, you may experience glitches such as push notifications from the plugin no longer functioning correctly. (See "),y(15,"a",13),M(16,"here"),m(),M(17," for more information)."),m()()(),y(18,"div",14)(19,"a",15),L("click",function(){return ue(de(t).$implicit.close("Login"))}),M(20,"Login with eufy"),m()()}2&e&&(b(8),x("dismissible",!1))}function Cke(e,n){if(1&e){const t=Be();ci(0),B(1,"p"),y(2,"ngb-alert",23)(3,"a",24),L("click",function(){de(t);const r=F(4),o=Mt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=F(4),o=Mt(1);return ue(r.openReloadModal(o))}),M(4," Plugin has been updated, please refresh and reboot the plugin. "),m()(),B(5,"p"),li()}2&e&&(b(2),x("dismissible",!1))}function Dke(e,n){1&e&&Vs(0)}function xke(e,n){if(1&e&&(ci(0),y(1,"div",28),H(2,Dke,1,0,"ng-container",29),m(),li()),2&e){const t=F(2).$implicit;F(5);const i=Mt(8);b(2),x("ngTemplateOutlet",i)("ngTemplateOutletContext",go(2,kke,t))}}function Ske(e,n){1&e&&Vs(0)}function Eke(e,n){1&e&&Vs(0)}function Tke(e,n){if(1&e&&(ci(0),y(1,"div",28),H(2,Eke,1,0,"ng-container",29),m(),li()),2&e){const t=n.$implicit;F(8);const i=Mt(8);b(2),x("ngTemplateOutlet",i)("ngTemplateOutletContext",go(2,Mke,t))}}function Ike(e,n){if(1&e&&(y(0,"div",28),H(1,Ske,1,0,"ng-container",29),m(),H(2,Tke,3,4,"ng-container",26)),2&e){const t=F(2).$implicit,i=F(5),r=Mt(8);b(),x("ngTemplateOutlet",r)("ngTemplateOutletContext",go(4,_ke,t)),b(),x("ngForOf",t.devices)("ngForTrackBy",i.trackByDeviceId)}}function Ake(e,n){if(1&e&&(ci(0),H(1,xke,3,4,"ng-container",6)(2,Ike,3,6,"ng-template",null,5,ln),li()),2&e){const t=Mt(3),i=F().$implicit;b(),x("ngIf",i.devices[0].uniqueId===i.uniqueId)("ngIfElse",t)}}function Nke(e,n){if(1&e&&(ci(0),H(1,Ake,4,2,"ng-container",27),li()),2&e){const t=n.$implicit;b(),x("ngIf",t&&0!==(null==t.devices?null:t.devices.length))}}function Rke(e,n){if(1&e&&(B(0,"p"),y(1,"span"),M(2,"Click the name to access accessory configuration."),m(),B(3,"p"),y(4,"div",25),H(5,Nke,2,1,"ng-container",26),m()),2&e){const t=F(2).ngIf,i=F(2);b(5),x("ngForOf",t)("ngForTrackBy",i.trackByStationId)}}function Oke(e,n){if(1&e&&(ci(0),H(1,Cke,6,1,"ng-container",6)(2,Rke,6,2,"ng-template",null,4,ln),li()),2&e){const t=Mt(3),i=F(3);b(),x("ngIf",i.versionUnmatched)("ngIfElse",t)}}function Fke(e,n){if(1&e&&(ci(0),H(1,Oke,4,2,"ng-container",6),li()),2&e){const t=n.ngIf;F(2);const i=Mt(6);b(),x("ngIf",0!==t.length)("ngIfElse",i)}}function Pke(e,n){if(1&e){const t=Be();ci(0),y(1,"div",16)(2,"button",17),L("click",function(){de(t);const r=F(),o=Mt(1);return ue(r.openReloadModal(o))})("keydown.enter",function(){de(t);const r=F(),o=Mt(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,Fke,2,2,"ng-container",6),zf(9,"async"),li()}if(2&e){const t=F(),i=Mt(6);b(8),x("ngIf",qf(9,2,t.stations$))("ngIfElse",i)}}function Lke(e,n){1&e&&(y(0,"div")(1,"div",30),M(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-plugins/homebridge-eufy-security/wiki/Create-a-dedicated-admin-account-for-Homebridge-Eufy-Security-Plugin "),m(),y(3,"button",31),M(4,"Cancel"),m()())}function Vke(e,n){1&e&&(y(0,"div",32),M(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 jke(e,n){if(1&e&&B(0,"lucide-angular",43),2&e){const t=F().$implicit;x("ngbTooltip",t.ignored?"Security Control OFF":"Security Control ON")("name",t.ignored?"shield-off":"shield")}}function Hke(e,n){1&e&&B(0,"lucide-angular",44)}function Bke(e,n){if(1&e&&(y(0,"a",33)(1,"div",34)(2,"div",35)(3,"span",36),ci(4,37),H(5,jke,1,2,"lucide-angular",38)(6,Hke,1,0,"lucide-angular",39),li(),m()(),B(7,"img",40),y(8,"div",41)(9,"h5",42),M(10),m()()()()),2&e){let t;const i=n.$implicit,r=n.type,o=F();x("routerLink",Il(9,bke,r,i.uniqueId)),b(4),x("ngSwitch",!0),b(),x("ngSwitchCase","both"===r),b(),x("ngSwitchCase","device"===r&&i.isKeypad),b(),wl("opacity",("both"===r?i.devices[0].ignored:i.ignored)?.3:1),x("src","assets/devices/"+((null==(t=o.DeviceImage.get(i.type))?null:t.image)||"unknown.png"),P1)("alt",i.displayName),b(3),Bi(i.displayName)}}let zke=(()=>{class e{modalService;pluginService;route;router;zone;cdr;stationsSubject=new ei([]);stations$=this.stationsSubject.asObservable();versionUnmatched=!1;adminAccountUsed=!1;waitForAccessories;DeviceImage=aZ;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 Z(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAddAccessory(){var t=this;return Z(function*(){yield t.zone.run(()=>t.updateStations())})()}handleAdminAccountUsed(){var t=this;return Z(function*(){console.log("Admin account used"),t.adminAccountUsed=!0,t.stationsSubject.next([]),yield t.pluginService.resetConfig(),t.cdr.markForCheck()})()}updateStations(){var t=this;return Z(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===bd.ESC?"by pressing ESC":t===bd.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)(R(ZC),R(lt),R(ya),R(xi),R(ge),R(Zn))};static \u0275cmp=re({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},decls:9,vars:2,consts:[["reloadModal",""],["adminAccountUsedTemplate",""],["noStations",""],["cardTemplate",""],["stationsContent",""],["separateDevices",""],[4,"ngIf","ngIfElse"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"mb-3"],[3,"dismissible"],["href","https://github.com/homebridge-plugins/homebridge-eufy-security/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,wke,21,1,"ng-template",null,0,ln)(2,Pke,10,4,"ng-container",6)(3,Lke,5,0,"ng-template",null,1,ln)(5,Vke,2,0,"ng-template",null,2,ln)(7,Bke,11,12,"ng-template",null,3,ln),2&i){const o=Mt(4);b(2),x("ngIf",!r.adminAccountUsed)("ngIfElse",o)}},dependencies:[kr,Fn,ph,ad,ny,Qs,So,Ta,Uy,qy,cm,pD,A8],encapsulation:2,changeDetection:0})}return e})();const mi={platform:"EufySecurity",name:"EufySecurity",username:"",password:"",deviceName:"MyPhone",enableDetailedLogging:!1,omitLogFiles:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",stations:[],cameras:[],cleanCache:!0,ignoreMultipleDevicesWarning:!1,autoSyncStation:!1,enableEmbeddedPKCS1Support:!1};class Ct{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 Z(function*(){t.config={...mi,...t.config,...n},console.log("config:",t.config),yield t.pluginService.updateConfig(t.config)})()}updateAccessoryConfig(n,t,i){var r=this;return Z(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 Z(function*(){yield i.updateAccessoryConfig(n,t,"station")})()}updateDeviceConfig(n,t){var i=this;return Z(function*(){yield i.updateAccessoryConfig(n,t,"camera")})()}}function qke(e,n){1&e&&(y(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function Uke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function $ke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function Gke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}function Wke(e,n){1&e&&(y(0,"option",6),M(1,"Use global setting"),m()),2&e&&x("ngValue",void 0)}let RD=(()=>{class e extends Ct{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 Z(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=mi.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.station||(t.hkAway=mi.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.station||(t.hkNight=mi.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.station||(t.hkOff=mi.hkOff)})()}update(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{station:"station"},features:[K],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"),M(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,qke,2,0,"span",1),B(5,"p"),y(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),m(),y(9,"select",4),se("ngModelChange",function(a){return he(r.hkHome,a)||(r.hkHome=a),a}),L("change",function(){return r.update()}),H(10,Uke,2,1,"option",5),y(11,"option",6),M(12,"Eufy Home"),m(),y(13,"option",6),M(14,"Eufy Away"),m(),y(15,"option",6),M(16,"Eufy Schedule"),m(),y(17,"option",6),M(18,"Eufy Custom 1 (Night)"),m(),y(19,"option",6),M(20,"Eufy Custom 2"),m(),y(21,"option",6),M(22,"Eufy Custom 3"),m(),y(23,"option",6),M(24,"Eufy Geofencing"),m(),y(25,"option",6),M(26,"Eufy Disarmed"),m()()(),y(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),m(),y(30,"select",8),se("ngModelChange",function(a){return he(r.hkAway,a)||(r.hkAway=a),a}),L("change",function(){return r.update()}),H(31,$ke,2,1,"option",5),y(32,"option",6),M(33,"Eufy Home"),m(),y(34,"option",6),M(35,"Eufy Away"),m(),y(36,"option",6),M(37,"Eufy Schedule"),m(),y(38,"option",6),M(39,"Eufy Custom 1 (Night)"),m(),y(40,"option",6),M(41,"Eufy Custom 2"),m(),y(42,"option",6),M(43,"Eufy Custom 3"),m(),y(44,"option",6),M(45,"Eufy Geofencing"),m(),y(46,"option",6),M(47,"Eufy Disarmed"),m()()(),y(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),m(),y(51,"select",10),se("ngModelChange",function(a){return he(r.hkNight,a)||(r.hkNight=a),a}),L("change",function(){return r.update()}),H(52,Gke,2,1,"option",5),y(53,"option",6),M(54,"Eufy Home"),m(),y(55,"option",6),M(56,"Eufy Away"),m(),y(57,"option",6),M(58,"Eufy Schedule"),m(),y(59,"option",6),M(60,"Eufy Custom 1 (Night)"),m(),y(61,"option",6),M(62,"Eufy Custom 2"),m(),y(63,"option",6),M(64,"Eufy Custom 3"),m(),y(65,"option",6),M(66,"Eufy Geofencing"),m(),y(67,"option",6),M(68,"Eufy Disarmed"),m()()(),y(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),m(),y(72,"select",12),se("ngModelChange",function(a){return he(r.hkOff,a)||(r.hkOff=a),a}),L("change",function(){return r.update()}),H(73,Wke,2,1,"option",5),y(74,"option",6),M(75,"Eufy Home"),m(),y(76,"option",6),M(77,"Eufy Away"),m(),y(78,"option",6),M(79,"Eufy Schedule"),m(),y(80,"option",6),M(81,"Eufy Custom 1 (Night)"),m(),y(82,"option",6),M(83,"Eufy Custom 2"),m(),y(84,"option",6),M(85,"Eufy Custom 3"),m(),y(86,"option",6),M(87,"Eufy Geofencing"),m(),y(88,"option",6),M(89,"Eufy Disarmed"),m()()()()),2&i&&(b(4),x("ngIf",r.station),b(5),ae("ngModel",r.hkHome),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkAway),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkNight),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63),b(5),ae("ngModel",r.hkOff),b(),x("ngIf",r.station),b(),x("ngValue",1),b(2),x("ngValue",0),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngValue",4),b(2),x("ngValue",5),b(2),x("ngValue",47),b(2),x("ngValue",63))},dependencies:[Fn,wt,va,ka,$r,bt,mt],encapsulation:2})}return e})(),Zke=(()=>{class e extends Ct{cleanCache=mi.cleanCache;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-clean-cache"]],features:[K],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),M(3,"Clean cache automatically"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.cleanCache,a)||(r.cleanCache=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&i&&(b(5),ae("ngModel",r.cleanCache))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Yke=(()=>{class e extends Ct{omitLogFiles=mi.omitLogFiles;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-omit-log-files"]],features:[K],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),M(3,"Don't store log files"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.omitLogFiles,a)||(r.omitLogFiles=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.omitLogFiles))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Kke=(()=>{class e extends Ct{ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-ignore-multiple-devices-warning"]],features:[K],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),M(3,"Enable snapshot and HKSV settings for multiple devices on one station"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.ignoreMultipleDevicesWarning,a)||(r.ignoreMultipleDevicesWarning=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.ignoreMultipleDevicesWarning))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),Jke=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-livestream-duration-seconds"]],features:[K],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),M(3,"Maximum Livestream Duration"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return he(r.CameraMaxLivestreamDuration,a)||(r.CameraMaxLivestreamDuration=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),M(9,"seconds"),m()()()()(),y(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&i&&(b(6),ae("ngModel",r.CameraMaxLivestreamDuration),U("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wt,bo,nc,bt,mt],encapsulation:2})}return e})(),Qke=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-polling-interval-minutes"]],features:[K],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),M(3,"Polling Interval"),m(),y(4,"div",3)(5,"div",4)(6,"input",5),se("ngModelChange",function(a){return he(r.pollingIntervalMinutes,a)||(r.pollingIntervalMinutes=a),a}),L("change",function(){return r.update()}),m(),y(7,"div",6)(8,"span",7),M(9,"minutes"),m()()()()(),y(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&i&&(b(6),ae("ngModel",r.pollingIntervalMinutes),U("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[wt,bo,nc,bt,mt],encapsulation:2})}return e})(),Xke=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-edit-credentials"]],decls:6,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],[1,"mb-3","mb-sm-0"],["routerLink","/login",1,"btn","btn-primary","col-12","col-sm-4"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),m(),y(4,"a",3),M(5,"New Login"),m()()())},dependencies:[kr],encapsulation:2})}return e})(),e_e=(()=>{class e extends Ct{autoSyncStation=mi.autoSyncStation;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-auto-sync-station"]],features:[K],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),M(3,"Auto Sync Station status"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.autoSyncStation,a)||(r.autoSyncStation=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.autoSyncStation))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),t_e=(()=>{class e extends Ct{enableEmbeddedPKCS1Support=mi.enableEmbeddedPKCS1Support;constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){t.readValue()})()}readValue(){this.enableEmbeddedPKCS1Support=this.config.enableEmbeddedPKCS1Support??this.enableEmbeddedPKCS1Support}update(){this.updateConfig({enableEmbeddedPKCS1Support:this.enableEmbeddedPKCS1Support})}static \u0275fac=function(i){return new(i||e)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-embedded-pkcs1-support"]],features:[K],decls:12,vars:1,consts:[[1,"settingsItem"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["for","enableEmbeddedPKCS1Support"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","enableEmbeddedPKCS1Support",1,"form-check-input",3,"ngModelChange","change","ngModel"],["href","https://github.com/homebridge-plugins/homebridge-eufy-security/wiki/Node.js-Compatibility-with-Eufy-Security-Plugin","target","_blank"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"label",2),M(3,"Enable Embedded PKCS1 Support"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.enableEmbeddedPKCS1Support,a)||(r.enableEmbeddedPKCS1Support=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Starting from Node.js versions 18.19.1, 20.11.1, and 21.6.2, the removal of RSA_PKCS1_PADDING support breaks Eufy Security's livestream/P2P functionality. We've developed a countermeasure based on software calculation, it will be 10x times less effective than hardware but it can make some cameras work on Node.js 22+. "),y(9,"a",5),M(10,"More technical details here"),m(),M(11,". "),m()()()),2&i&&(b(5),ae("ngModel",r.enableEmbeddedPKCS1Support))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),n_e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-advanced-config-options"]],decls:22,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"]],template:function(i,r){1&i&&(y(0,"a",0),B(1,"lucide-angular",1),M(2," Back\n"),m(),y(3,"h6"),M(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-embedded-pkcs1-support")(20,"hr")(21,"app-guard-modes-mapping"))},dependencies:[kr,Xke,Qke,Jke,Kke,Yke,Zke,t_e,RD,e_e,So,Ta],encapsulation:2})}return e})();function i_e(e,n){if(1&e&&(y(0,"div"),M(1),m()),2&e){const t=F();b(),zi(" ",t.presetDescription," ")}}let r_e=(()=>{class e extends Ct{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 Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{device:"device"},features:[K],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),M(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"),M(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),se("ngModelChange",function(a){return he(r.preset,a)||(r.preset=a),a}),L("change",function(){return r.loadPreset()}),y(8,"option",4),M(9,"No Preset (default)"),m(),y(10,"option",4),M(11,"Copy"),m(),y(12,"option",4),M(13,"Performance"),m(),y(14,"option",4),M(15,"Custom"),m()()()(),H(16,i_e,2,1,"div",5),B(17,"p"),y(18,"div",6)(19,"div",7)(20,"input",8),se("ngModelChange",function(a){return he(r.debug,a)||(r.debug=a),a}),L("change",function(){return r.update()}),m()(),y(21,"span",9),M(22,"ffmpeg debug"),m()(),y(23,"div",6)(24,"div",7)(25,"input",8),se("ngModelChange",function(a){return he(r.useSeparateProcesses,a)||(r.useSeparateProcesses=a),a}),L("change",function(){return r.update()}),m()(),y(26,"span",9),M(27,"use separate processes for video and audio"),m()(),y(28,"div",6)(29,"div",7)(30,"input",8),se("ngModelChange",function(a){return he(r.readRate,a)||(r.readRate=a),a}),L("change",function(){return r.update()}),m()(),y(31,"span",9),M(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),M(37,"vcodec"),m(),y(38,"input",11),se("ngModelChange",function(a){return he(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),M(43,"acodec"),m(),y(44,"input",12),se("ngModelChange",function(a){return he(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),M(49,"videoFilter"),m(),y(50,"input",13),se("ngModelChange",function(a){return he(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),M(55,"encoderOptions"),m(),y(56,"input",14),se("ngModelChange",function(a){return he(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),M(61,"probeSize"),m(),y(62,"input",15),se("ngModelChange",function(a){return he(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),M(67,"analyzeDuration"),m(),y(68,"input",15),se("ngModelChange",function(a){return he(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),M(73,"maxStreams"),m(),y(74,"input",15),se("ngModelChange",function(a){return he(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),M(79,"maxWidth"),m(),y(80,"input",15),se("ngModelChange",function(a){return he(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),M(85,"maxHeight"),m(),y(86,"input",15),se("ngModelChange",function(a){return he(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),M(91,"fps"),m(),y(92,"input",15),se("ngModelChange",function(a){return he(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),M(97,"bitrate"),m(),y(98,"input",15),se("ngModelChange",function(a){return he(r.maxBitrate,a)||(r.maxBitrate=a),a}),L("change",function(){return r.update()}),m()()()),2&i&&(b(7),ae("ngModel",r.preset),b(),x("ngValue",0),b(2),x("ngValue",1),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngIf",r.presetDescription),b(4),ae("ngModel",r.debug),b(5),ae("ngModel",r.useSeparateProcesses),b(5),ae("ngModel",r.readRate),b(5),x("checked",void 0!==r.vcodec||null),b(3),ae("ngModel",r.vcodec),U("disabled",void 0===r.vcodec||null),b(3),x("checked",void 0!==r.acodec||null),b(3),ae("ngModel",r.acodec),U("disabled",void 0===r.acodec||null),b(3),x("checked",void 0!==r.videoFilter||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.videoFilter),U("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.encoderOptions||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.encoderOptions),U("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.probeSize||null),b(3),ae("ngModel",r.probeSize),U("disabled",void 0===r.probeSize||null),b(3),x("checked",void 0!==r.analyzeDuration||null),b(3),ae("ngModel",r.analyzeDuration),U("disabled",void 0===r.analyzeDuration||null),b(3),x("checked",void 0!==r.maxStreams||null),b(3),ae("ngModel",r.maxStreams),U("disabled",void 0===r.maxStreams||null),b(3),x("checked",void 0!==r.maxWidth||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.maxWidth),U("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxHeight||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.maxHeight),U("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxFPS||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.maxFPS),U("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),b(3),x("checked",void 0!==r.maxBitrate||null),U("disabled","copy"===r.vcodec||null),b(),U("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,Qo),b(2),ae("ngModel",r.maxBitrate),U("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null))},dependencies:[wt,va,ka,bo,nc,kn,$r,bt,mt,Fn],encapsulation:2})}return e})();function o_e(e,n){if(1&e){const t=Be();y(0,"div",5)(1,"span"),M(2,"Refresh Interval"),m(),y(3,"div",6)(4,"div",7)(5,"input",8),se("ngModelChange",function(r){de(t);const o=F();return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),m(),y(6,"div",9)(7,"span",10),M(8,"minutes"),m()()()()()}if(2&e){const t=F();b(5),ae("ngModel",t.value),U("class",t.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end")}}let a_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=0;inputIsInvalid=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{device:"device"},features:[K],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"),M(3,"Periodic Snapshot Refresh"),m(),y(4,"div",2)(5,"input",3),L("change",function(){return r.switchSetting()}),m()()(),H(6,o_e,9,2,"div",4),y(7,"small")(8,"i"),M(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"),M(11," Best used with 'Cloud Snapshots' handling method."),B(12,"br"),M(13," Every setting below 5 minutes will be discarded due to performance reasons."),B(14,"br"),m()()()),2&i&&(b(5),U("checked",r.value>0||null),b(),x("ngIf",r.value))},dependencies:[wt,bo,nc,bt,mt,Fn],encapsulation:2})}return e})(),s_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{device:"device"},features:[K],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"),M(3,"Night-Vision Improvement for camera snapshots"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),B(9,"br"),y(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&i&&(b(5),ae("ngModel",r.value))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),c_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{device:"device"},features:[K],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"),M(3,"Immediate Notification on ring events"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&i&&(b(5),ae("ngModel",r.value))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})();var um=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(um||{}),hm=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}(hm||{});function l_e(e,n){1&e&&(y(0,"div",13),M(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 d_e(e,n){1&e&&(y(0,"div",14),M(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 u_e(e,n){1&e&&(y(0,"div",18),M(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 h_e(e,n){if(1&e&&(y(0,"div",14)(1,"b"),M(2,"Caution!"),m(),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),M(5,"here"),m(),M(6," for more informtaion. "),m(),H(7,d_e,2,0,"div",16)(8,u_e,2,0,"div",17)),2&e){const t=F(2);b(7),x("ngIf",2===t.chargingStatus),b(),x("ngIf",4===t.chargingStatus)}}function p_e(e,n){if(1&e){const t=Be();y(0,"div",1),H(1,l_e,2,0,"div",2),y(2,"div",3)(3,"span"),M(4,"Snapshot Handling Method"),m(),y(5,"div",4)(6,"select",5),se("ngModelChange",function(r){de(t);const o=F();return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),y(7,"option",6),M(8,"Force Refresh Snapshots"),m(),y(9,"option",6),M(10,"Balanced"),m(),y(11,"option",6),M(12,"Default (Cloud)"),m()()()(),H(13,h_e,9,2,"ng-template",7),y(14,"table",8)(15,"thead")(16,"tr")(17,"th",9),M(18,"Mode"),m(),y(19,"th",9),M(20,"Force Refresh Snapshots"),m(),y(21,"th",9),M(22,"Balanced"),m(),y(23,"th",9),M(24,"Default (Cloud)"),m()()(),y(25,"tbody")(26,"tr")(27,"td"),M(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"),M(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"),M(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"),M(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=F();b(),x("ngIf",!t.standalone),b(5),ae("ngModel",t.value),b(),x("ngValue",1),b(2),x("ngValue",2),b(2),x("ngValue",3),b(2),x("ngIf",1===t.value)}}let f_e=(()=>{class e extends Ct{device;value=3;ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;chargingStatus=hm.PLUGGED;standalone=!1;constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){yield t.readValue()})()}readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{device:"device"},features:[K],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-plugins/homebridge-eufy-security/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,p_e,62,6,"div",0),2&i&&x("ngIf",r.standalone||!r.standalone&&r.ignoreMultipleDevicesWarning)},dependencies:[wt,va,ka,$r,bt,mt,Fn,So,Ta],encapsulation:2})}return e})();function g_e(e,n){1&e&&(y(0,"div"),M(1," You can enable this setting nevertheless in "),y(2,"a",9),M(3,"Plugin Settings"),m(),B(4,"p"),m())}function y_e(e,n){if(1&e&&(y(0,"div",7),M(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,g_e,5,0,"div",8),m()),2&e){const t=F();b(3),x("ngIf",!t.ignoreMultipleDevicesWarning)}}function m_e(e,n){1&e&&(y(0,"div",7),M(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 v_e(e,n){1&e&&(y(0,"div",10),M(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 k_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){var t=this;return Z(function*(){yield t.readValue()})()}device;hsv=false;chargingStatus=hm.PLUGGED;camerasOnSameStation=[];standalone=!0;ignoreMultipleDevicesWarning=mi.ignoreMultipleDevicesWarning;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-hsv"]],inputs:{device:"device"},features:[K],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),M(3,"Use HomeKit Secure Video"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.hsv,a)||(r.hsv=a),a}),L("change",function(){return r.update()}),m()()(),H(6,y_e,4,1,"div",5)(7,m_e,2,0,"div",5)(8,v_e,2,0,"div",6),y(9,"small")(10,"i"),M(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"),M(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"),M(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"),M(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),ae("ngModel",r.hsv),U("disabled",!r.standalone&&!r.ignoreMultipleDevicesWarning||null),b(),x("ngIf",!r.standalone),b(),x("ngIf",2===r.chargingStatus&&r.hsv),b(),x("ngIf",4===r.chargingStatus&&r.hsv))},dependencies:[wt,kn,bt,mt,Fn,kr],encapsulation:2})}return e})();function __e(e,n){if(1&e){const t=Be();y(0,"div",3)(1,"label",4),M(2),m(),y(3,"div",5)(4,"input",6),se("ngModelChange",function(r){const o=de(t).$implicit;return he(o.value,r)||(o.value=r),ue(r)}),L("change",function(){return de(t),ue(F().update())}),m()()()}if(2&e){const t=n.$implicit;b(),x("for","flexSwitchCheck"+t.name),b(),zi(" Display HomeKit switch to turn ",t.description," on/off "),b(2),ae("ngModel",t.value),x("id","flexSwitchCheck"+t.name)}}let M_e=(()=>{class e extends Ct{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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-camera-buttons"]],inputs:{device:"device"},features:[K],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-plugins/homebridge-eufy-security/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,__e,5,4,"div",1),y(2,"small")(3,"i"),M(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),y(5,"a",2),M(6,"here"),m(),M(7," for more details. "),m()()()),2&i&&(b(),x("ngForOf",r.buttonConfigs))},dependencies:[ph,wt,kn,bt,mt],encapsulation:2})}return e})();function b_e(e,n){1&e&&(y(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let w_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;rtspIsEnabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-talkback"]],inputs:{device:"device"},features:[K],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"),M(3,"Enable Talkback (Two way communication)"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),H(6,b_e,2,0,"div",4),y(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),B(10,"p"),M(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),ae("ngModel",r.value),b(),x("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[wt,kn,bt,mt,Fn],encapsulation:2})}return e})();let D_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=true;samplerate=0;readValue(){var t=this;return Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-audio"]],inputs:{device:"device"},features:[K],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"),M(3,"Enable Audio"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),B(9,"br"),M(10," If you encounter problems try to disable this setting. "),m()(),B(11,"p"),y(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),m(),y(15,"div",5)(16,"select",6),se("ngModelChange",function(a){return he(r.samplerate,a)||(r.samplerate=a),a}),L("change",function(){return r.update()}),y(17,"option",7),M(18,"Default Sample Rate"),m(),y(19,"option",7),M(20,"8 kHz"),m(),y(21,"option",7),M(22,"16 kHz"),m(),y(23,"option",7),M(24,"24 kHz"),m()()()()()),2&i&&(b(5),ae("ngModel",r.value),b(11),ae("ngModel",r.samplerate),U("disabled",!r.value||null),b(),x("ngValue",0),b(2),x("ngValue",8),b(2),x("ngValue",16),b(2),x("ngValue",24))},dependencies:[wt,va,ka,kn,$r,bt,mt],encapsulation:2})}return e})();function x_e(e,n){1&e&&(y(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let S_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;talkbackIsEnabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-rtsp-streaming"]],inputs:{device:"device"},features:[K],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"),M(3,"Use RTSP streaming"),m(),y(4,"div",2)(5,"input",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()(),H(6,x_e,2,0,"div",4),y(7,"small")(8,"i"),M(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),ae("ngModel",r.value),b(),x("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[wt,kn,bt,mt,Fn],encapsulation:2})}return e})();function E_e(e,n){1&e&&(y(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function T_e(e,n){1&e&&(y(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let I_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}device;checkDeviceConfig=new J;value="true";disabled=!1;readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-camera"]],inputs:{device:"device"},outputs:{checkDeviceConfig:"checkDeviceConfig"},features:[K],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"),M(3,"Operation Mode"),m(),y(4,"div",2)(5,"select",3),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),y(6,"option",4),M(7,"Motion Sensor"),m(),y(8,"option",5),M(9,"Camera"),m()()()(),H(10,E_e,3,0,"small",6)(11,T_e,3,0,"small",6),m()),2&i&&(b(5),ae("ngModel",r.value),U("disabled",!!r.disabled||null),b(5),x("ngIf",r.disabled),b(),x("ngIf",!r.disabled))},dependencies:[wt,va,ka,$r,bt,mt,Fn],encapsulation:2})}return e})(),A_e=(()=>{class e extends Ct{identifier="";constructor(t){super(t)}ngOnInit(){this.readValue()}accessory;isStation=!1;isDisabled=!1;ignored=new J;value=!0;readValue(){var t=this;return Z(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 Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory",isStation:"isStation",isDisabled:"isDisabled"},outputs:{ignored:"ignored"},features:[K],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),se("ngModelChange",function(a){return he(r.value,a)||(r.value=a),a}),L("change",function(){return r.update()}),m()()),2&i&&(b(),ae("ngModel",r.value),x("id",r.isStation?"ignoreStation":"ignoreDevice")("disabled",r.isDisabled))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})(),N_e=(()=>{class e extends Ct{constructor(t){super(t)}ngOnInit(){this.readValue()}station;value=[];readValue(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{station:"station"},features:[K],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"),M(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"),M(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"),M(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"),M(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"),M(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"),M(25," In order to do so, you must specify in which station mode the alarm can be triggered. "),B(26,"p"),M(27," Please be aware that this setting can only be set on a per station basis and not per automation."),B(28,"br"),M(29," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),B(30,"p"),M(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"),M(33," The native alarm delay setting is currently not supported. "),m()()()),2&i&&(b(5),U("checked",-1!==r.value.indexOf(0)||null),b(5),U("checked",-1!==r.value.indexOf(1)||null),b(5),U("checked",-1!==r.value.indexOf(2)||null),b(5),U("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})}return e})();function R_e(e,n){if(1&e&&(y(0,"p"),M(1),y(2,"span",6),M(3),m()()),2&e){const t=F(2);b(),zi("",t.device.displayName," - "),b(2),vu("(",t.device.type," - ",t.device.typename," - ",t.device.uniqueId,")")}}function O_e(e,n){1&e&&H(0,R_e,4,4,"ng-template",5),2&e&&x("ngIf",F().device)}function F_e(e,n){if(1&e&&(y(0,"p"),M(1),y(2,"span",6),M(3),m()()),2&e){const t=F(2);b(),zi("",t.station.displayName," - "),b(2),vu("(",t.station.type," - ",t.station.typename," - ",t.station.uniqueId,")")}}function P_e(e,n){1&e&&H(0,F_e,4,4,"ng-template",5),2&e&&x("ngIf",F().station)}function L_e(e,n){if(1&e){const t=Be();y(0,"div",9)(1,"label",10),M(2,"Enable Device on Apple Homekit"),m(),y(3,"app-ignore-accessory",11),L("ignored",function(r){return de(t),ue(F(2).ignoredDeviceChanged(r))}),m()()}if(2&e){const t=F(2);b(3),x("accessory",t.device)("isDisabled",t.device.isKeypad)}}function V_e(e,n){1&e&&(y(0,"p"),M(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 j_e(e,n){1&e&&(y(0,"p"),M(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 H_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-rtsp-streaming",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function B_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-audio",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function z_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-talkback",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function q_e(e,n){if(1&e){const t=Be();y(0,"app-enable-camera",19),L("checkDeviceConfig",function(){return de(t),ue(F(3).checkDeviceConfig())}),m(),H(1,H_e,3,1,"div",8)(2,B_e,3,1,"div",8)(3,z_e,3,1,"div",8)}if(2&e){const t=F(3);x("device",t.device),b(),x("ngIf",t.enableCamera&&t.supportsRTSP),b(),x("ngIf",t.enableCamera),b(),x("ngIf",t.enableCamera&&t.supportsTalkback)}}function U_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-enable-hsv",20),m()),2&e){const t=F(4);b(2),x("device",t.device)}}function $_e(e,n){if(1&e&&(B(0,"app-camera-buttons",20),H(1,U_e,3,1,"div",8)),2&e){const t=F(3);x("device",t.device),b(),x("ngIf",t.enableCamera)}}function G_e(e,n){if(1&e&&(y(0,"div"),B(1,"hr")(2,"app-immediate-notification-on-ring",20),m()),2&e){const t=F(5);b(2),x("device",t.device)}}function W_e(e,n){if(1&e&&(B(0,"app-snapshot-handling-method",20),H(1,G_e,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=F(4);x("device",t.device),b(),x("ngIf",t.isDoorbell),b(2),x("device",t.device),b(2),x("device",t.device)}}function Z_e(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),M(3,"Snapshot Behaviour"),m()(),y(4,"div",16)(5,"div",17),H(6,W_e,6,4,"ng-template"),m()()())}function Y_e(e,n){1&e&&B(0,"app-advanced-videoconfig",20),2&e&&x("device",F(4).device)}function K_e(e,n){1&e&&(y(0,"div",13)(1,"h2",14)(2,"button",15),M(3,"Advanced Video Config"),m()(),y(4,"div",16)(5,"div",17),H(6,Y_e,1,1,"ng-template"),m()()())}function J_e(e,n){if(1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),M(4,"Device Settings"),m()(),y(5,"div",16)(6,"div",17),H(7,q_e,4,4,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),M(11,"HomeKit Behaviour"),m()(),y(12,"div",16)(13,"div",17),H(14,$_e,2,2,"ng-template"),m()()(),H(15,Z_e,7,0,"div",18)(16,K_e,7,0,"div",18),m()),2&e){const t=F(2);x("closeOthers",!0),b(15),x("ngIf",t.enableCamera),b(),x("ngIf",t.enableCamera)}}function Q_e(e,n){if(1&e&&H(0,L_e,4,2,"div",7)(1,V_e,2,0,"p",8)(2,j_e,2,0,"p",8)(3,J_e,17,3,"ng-template",5),2&e){const t=F();x("ngIf",!t.device.isKeypad),b(),x("ngIf",t.device.isKeypad),b(),x("ngIf",t.device.isKeypad),b(),x("ngIf",!t.device.ignored&&t.isCamera)}}function X_e(e,n){1&e&&B(0,"app-guard-modes-mapping",24),2&e&&x("station",F(3).station)}function e4e(e,n){1&e&&B(0,"app-manual-alarm-modes",24),2&e&&x("station",F(3).station)}function t4e(e,n){1&e&&(y(0,"div",12)(1,"div",13)(2,"h2",14)(3,"button",15),M(4,"Customize HomeKit-Eufy App Mode Mapping"),m()(),y(5,"div",16)(6,"div",17),H(7,X_e,1,1,"ng-template"),m()()(),y(8,"div",13)(9,"h2",14)(10,"button",15),M(11,"Manual Alarm Trigger Modes"),m()(),y(12,"div",16)(13,"div",17),H(14,e4e,1,1,"ng-template"),m()()()()),2&e&&x("closeOthers",!0)}function n4e(e,n){if(1&e){const t=Be();y(0,"div",9)(1,"label",21),M(2,"Enable Device Security Control on Apple Homekit"),m(),y(3,"app-ignore-accessory",22),L("ignored",function(r){return de(t),ue(F().ignoredStationChanged(r))}),m()(),H(4,t4e,15,1,"div",23)}if(2&e){const t=F();b(3),x("accessory",t.station)("isStation",!0),b(),x("ngIf",!t.station.ignored)}}let i4e=(()=>{class e extends Ct{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)(R(lt),R(ya))};static \u0275cmp=re({type:e,selectors:[["app-accessory-config-options"]],features:[K],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),M(2," Back\n"),m(),ci(3,2),H(4,O_e,1,1,"ng-template",3)(5,P_e,1,1,"ng-template",4),li(),H(6,Q_e,4,4,"ng-template",5)(7,n4e,5,3,"ng-template",5)),2&i&&(b(3),x("ngSwitch",r.type),b(),x("ngSwitchCase","device"),b(2),x("ngIf",r.device),b(),x("ngIf",r.station&&!r.station.disabled))},dependencies:[kr,Fn,ad,ny,T8,So,Ta,A_e,I_e,S_e,D_e,w_e,M_e,k_e,f_e,c_e,s_e,a_e,r_e,RD,N_e,zy,vC,Fh,xo,kC,yC,By],encapsulation:2})}return e})();const r4e={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 o4e=(()=>{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 Z(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 Z(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)(oe(lt))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function a4e(e,n){1&e&&(M(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"),M(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 s4e(e,n){if(1&e){const t=Be();y(0,"p",5)(1,"ngb-alert",6),L("closed",function(){return de(t),ue(F().resetLoginFailed())}),B(2,"lucide-angular",7),y(3,"strong"),M(4,"Login was not successful!"),m()()()}2&e&&(b(),x("dismissible",!0))}function c4e(e,n){if(1&e){const t=Be();y(0,"div",8)(1,"div",9),B(2,"lucide-angular",10),y(3,"div"),M(4," Please make sure to restart plugin after you're done. "),m()(),y(5,"button",11),L("click",function(){return de(t),ue(F().loginStep=1)}),M(6,"Continue"),m()()}}function l4e(e,n){1&e&&(M(0,"You can leave this field blank."),B(1,"p"),M(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",30),M(4,"this disussion"),m(),M(5," to learn more."))}function d4e(e,n){if(1&e&&(y(0,"option"),M(1),m()),2&e){const t=n.$implicit,i=F(2);U("value",t.short)("selected",i.credentials.country===t.short||null),b(),zi("",t.long," ")}}function u4e(e,n){1&e&&B(0,"span",31)}function h4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function p4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",12),B(2,"lucide-angular",10),y(3,"div"),M(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",13),M(6,"here"),m(),M(7,". "),m()(),y(8,"div",14)(9,"input",15),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.username,r)||(o.credentials.username=r),ue(r)}),m(),y(10,"label",16),M(11,"Email address"),m()(),B(12,"p"),y(13,"div",14)(14,"input",17),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.password,r)||(o.credentials.password=r),ue(r)}),m(),y(15,"label",18),M(16,"Password"),m()(),B(17,"p"),y(18,"div",14),H(19,l4e,6,0,"ng-template",null,1,ln),y(21,"input",19),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.deviceName,r)||(o.credentials.deviceName=r),ue(r)}),m(),y(22,"label",20),M(23,"Device Name"),m()(),y(24,"div",21)(25,"div",22)(26,"select",23),se("ngModelChange",function(r){de(t);const o=F();return he(o.credentials.country,r)||(o.credentials.country=r),ue(r)}),H(27,d4e,2,3,"option",24),m(),y(28,"small")(29,"i"),M(30," Make sure to use the same country that you use to login with the eufy app. "),m()()(),B(31,"span",25),y(32,"div",26)(33,"button",27),L("click",function(){return de(t),ue(F().login())}),H(34,u4e,1,0,"span",28),M(35," Login "),H(36,h4e,2,0,"span",4),m(),y(37,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(38," Cancel "),m()()()()}if(2&e){const t=Mt(20),i=F();b(9),ae("ngModel",i.credentials.username),U("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),ae("ngModel",i.credentials.password),U("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(7),ae("ngModel",i.credentials.deviceName),x("ngbTooltip",t)("closeDelay",2500),U("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),b(5),ae("ngModel",i.credentials.country),U("disabled",!!i.loginInProgress||null),b(),x("ngForOf",i.countries),b(6),U("disabled",!!i.loginInProgress||null),b(),x("ngIf",i.loginInProgress),b(2),x("ngIf",i.loginInProgress),b(),U("disabled",!!i.loginInProgress||null)}}function f4e(e,n){1&e&&B(0,"span",31)}function g4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function y4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",32),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),y(3,"div",33)(4,"div",34)(5,"input",35),se("ngModelChange",function(r){de(t);const o=F();return he(o.otp,r)||(o.otp=r),ue(r)}),m(),y(6,"label",36),M(7,"2FA Code"),m()()(),y(8,"div",37)(9,"div",38)(10,"button",39),L("click",function(){return de(t),ue(F().login())}),H(11,f4e,1,0,"span",28),M(12," Verify "),H(13,g4e,2,0,"span",4),m()()(),y(14,"div",33)(15,"div",38)(16,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(17," Cancel "),m()()()()}if(2&e){const t=F();b(5),ae("ngModel",t.otp),U("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),U("disabled",!!t.loginInProgress||null),b(),x("ngIf",t.loginInProgress),b(2),x("ngIf",t.loginInProgress),b(3),U("disabled",!!t.loginInProgress||null)}}function m4e(e,n){1&e&&B(0,"span",31)}function v4e(e,n){1&e&&(y(0,"span"),M(1,"..."),m())}function k4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"div",32),M(2,"Please enter the captcha below."),m(),y(3,"div",37),B(4,"img",40),m(),y(5,"div",33)(6,"div",34)(7,"input",35),se("ngModelChange",function(r){de(t);const o=F();return he(o.captcha,r)||(o.captcha=r),ue(r)}),m(),y(8,"label",36),M(9,"Captcha"),m()()(),y(10,"div",37)(11,"div",38)(12,"button",39),L("click",function(){return de(t),ue(F().login())}),H(13,m4e,1,0,"span",28),M(14," Verify "),H(15,v4e,2,0,"span",4),m()()(),y(16,"div",33)(17,"div",38)(18,"button",29),L("click",function(){return de(t),ue(F().cancelLogin())}),M(19," Cancel "),m()()()()}if(2&e){const t=F();b(4),x("src",t.captchaImageData,P1),b(3),ae("ngModel",t.captcha),U("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),b(5),U("disabled",!!t.loginInProgress||null),b(),x("ngIf",t.loginInProgress),b(2),x("ngIf",t.loginInProgress),b(3),U("disabled",!!t.loginInProgress||null)}}var Ai=function(e){return e[e.START=0]="START",e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Ai||{});let _4e=(()=>{class e{loginService;routerService;countries=[];credentials={username:"",password:"",country:"US",deviceName:""};otp="";captcha="";captchaImageData="";captchaId="";loginInProgress=!1;loginFailed=!1;loginStep=Ai.START;firstLoginAssumed=!1;emailIsValid=!0;passwordIsValid=!0;otpIsValid=!0;captchaIsValid=!0;constructor(t,i){this.loginService=t,this.routerService=i}ngOnInit(){var t=this;return Z(function*(){t.getCredentials(),t.fillCountryArray()})()}getCredentials(){var t=this;return Z(function*(){try{t.credentials=t.loginService.getCredentials()}catch(i){t.firstLoginAssumed=!0,console.log(i)}})()}fillCountryArray(){Object.entries(r4e).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Ai.LOGIN&&this.loginWithCredentials(),this.loginStep===Ai.TFA&&this.loginWithTFA(),this.loginStep===Ai.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return Z(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 Z(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 Z(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===um.TFA)return void(this.loginStep=Ai.TFA);if(t&&t.failReason&&t.failReason===um.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=Ai.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=Ai.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===Ai.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===Ai.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===Ai.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===Ai.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)(R(o4e),R(xi))};static \u0275cmp=re({type:e,selectors:[["app-login"]],decls:7,vars:5,consts:[["popInfo",""],["deviceNameExplanation",""],["class","col-11 col-sm-7",4,"ngIf"],["class","text-right",4,"ngIf"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","triangle-alert"],[1,"text-right"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center","text-left"],["name","info",1,"m-2"],["type","button",1,"btn","btn-primary",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["href","https://github.com/homebridge-plugins/homebridge-eufy-security/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-plugins/homebridge-eufy-security/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,a4e,4,0,"ng-template",null,0,ln)(2,s4e,5,1,"p",2)(3,c4e,7,0,"div",3)(4,p4e,39,18,"div",4)(5,y4e,18,7,"div",4)(6,k4e,20,8,"div",4),2&i&&(b(2),x("ngIf",r.loginFailed),b(),x("ngIf",0===r.loginStep),b(),x("ngIf",1===r.loginStep),b(),x("ngIf",2===r.loginStep),b(),x("ngIf",3===r.loginStep))},dependencies:[Fn,qy,wt,va,ka,bo,$r,bt,Ey,mt,pD,ph,So,Ta],encapsulation:2})}return e})();function M4e(e,n){if(1&e){const t=Be();y(0,"p",7)(1,"ngb-alert",8),L("closed",function(){return de(t),ue(F().failed=!1)}),B(2,"lucide-angular",9),y(3,"strong"),M(4,"Reset was not successful!"),m()()()}2&e&&(b(),x("dismissible",!0))}let b4e=(()=>{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 Z(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)(R(xi),R(lt))};static \u0275cmp=re({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","col-11","col-sm-3","mb-sm-0","mb-3",3,"click"],["type","button",1,"btn","btn-danger","col-11","col-sm-3",3,"click"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["name","alert-triangle"]],template:function(i,r){1&i&&(y(0,"div",0),H(1,M4e,5,1,"p",1),y(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),m(),y(5,"div",4)(6,"button",5),L("click",function(){return r.cancel()}),M(7,"No"),m(),y(8,"button",6),L("click",function(){return r.resetEverything()}),M(9,"Do it!"),m()()()()),2&i&&(b(),x("ngIf",r.failed),b(5),U("disabled",!!r.disabled||null),b(2),U("disabled",!!r.disabled||null))},dependencies:[Fn,qy,So,Ta],encapsulation:2})}return e})();var w4e=ht(838);function C4e(e,n){if(1&e&&(y(0,"div",8),M(1),m()),2&e){const t=F();b(),zi(" ",t.failureMessage," ")}}function D4e(e,n){1&e&&(y(0,"span"),M(1,"Download Logs"),m())}function x4e(e,n){1&e&&B(0,"span",11)}function S4e(e,n){1&e&&(y(0,"span"),M(1," Generating Log File..."),m())}function E4e(e,n){if(1&e){const t=Be();y(0,"button",9),L("click",function(){return de(t),ue(F().downloadLogs())}),H(1,D4e,2,0,"span",7)(2,x4e,1,0,"span",10)(3,S4e,2,0,"span",7),m()}if(2&e){const t=F();U("disabled",!!t.isDownloading||null),b(),x("ngIf",!t.isDownloading),b(),x("ngIf",t.isDownloading),b(),x("ngIf",t.isDownloading)}}function T4e(e,n){if(1&e){const t=Be();y(0,"button",12),L("click",function(){return de(t),ue(F().openLink())}),y(1,"span"),M(2,"Download Logs"),m()()}}function I4e(e,n){if(1&e&&(y(0,"ngb-progressbar",13),M(1),m()),2&e){const t=F();x("value",t.progress)("animated",!0)("striped",!0),b(),Bi(t.status)}}function A4e(e,n){1&e&&(y(0,"small")(1,"i")(2,"b"),M(3,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),y(4,"a",14),M(5,"site"),m(),M(6," can help."),m()()())}let OD=(()=>{class e{router;zone;progress=0;status="";constructor(t,i){this.router=t,this.zone=i}ngOnInit(){this.router.events.subscribe(t=>{t instanceof Zl&&""!==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 Z(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=w4e.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)(R(xi),R(ge))};static \u0275cmp=re({type:e,selectors:[["app-download-logs"]],decls:10,vars:5,consts:[[1,"settingsItem"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["type","button","class","btn btn-primary col-12 col-sm-4",3,"click",4,"ngIf"],["type","button","class","btn btn-success col-12 col-sm-4",3,"click",4,"ngIf"],["class","mb-3","type","success",3,"value","animated","striped",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-primary","col-12","col-sm-4",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],["type","button",1,"btn","btn-success","col-12","col-sm-4",3,"click"],["type","success",1,"mb-3",3,"value","animated","striped"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(i,r){1&i&&(y(0,"div",0),H(1,C4e,2,1,"div",1),y(2,"div",2)(3,"span",3),M(4,"Download Logs"),m(),H(5,E4e,4,4,"button",4)(6,T4e,3,0,"button",5),m(),H(7,I4e,2,4,"ngb-progressbar",6),y(8,"p"),H(9,A4e,7,0,"small",7),m()()),2&i&&(b(),x("ngIf",r.failed),b(4),x("ngIf",!r.hasDownloaded),b(),x("ngIf",r.hasDownloaded),b(),x("ngIf",!r.hasDownloaded&&r.isDownloading),b(2),x("ngIf",r.hasDownloaded))},dependencies:[Fn,WW],encapsulation:2})}return e})(),N4e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-reset-plugin"]],decls:12,vars:0,consts:[[1,"settingsItem"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","mb-2"],[1,"mb-3","mb-sm-0"],["routerLink","/reset",1,"btn","btn-danger","col-12","col-sm-4"],["href","https://github.com/homebridge/homebridge/wiki/Basic-Troubleshooting"]],template:function(i,r){1&i&&(y(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),m(),y(4,"a",3),M(5,"Remove everything"),m()(),y(6,"small")(7,"i"),M(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),M(10,"Basic Troubleshooting"),m(),M(11,") "),m()()())},dependencies:[kr],encapsulation:2})}return e})(),R4e=(()=>{class e extends Ct{enableDetailedLogging=mi.enableDetailedLogging;constructor(t){super(t)}ngOnInit(){var t=this;return Z(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)(R(lt))};static \u0275cmp=re({type:e,selectors:[["app-enable-detailed-logging"]],features:[K],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),M(3,"Debug Mode"),m(),y(4,"div",3)(5,"input",4),se("ngModelChange",function(a){return he(r.enableDetailedLogging,a)||(r.enableDetailedLogging=a),a}),L("change",function(){return r.update()}),m()()(),y(6,"small")(7,"i"),M(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),ae("ngModel",r.enableDetailedLogging))},dependencies:[wt,kn,bt,mt],encapsulation:2})}return e})();function O4e(e,n){if(1&e){const t=Be();y(0,"div")(1,"p"),M(2,"To troubleshoot effectively before rising your issue to us:"),m(),y(3,"ol")(4,"li"),M(5,"Search Existing Issues: Check "),y(6,"a",5),M(7,"Common Issues"),m(),M(8," and "),y(9,"a",6),M(10,"User-Raised Issues"),m(),M(11,"."),m(),y(12,"li"),M(13,"Join Discord Server: Engage with developers and community on "),y(14,"a",7),M(15,"Discord"),m(),M(16,"."),m(),y(17,"li"),M(18,"Enable debug logging"),m(),y(19,"li"),M(20,"Reboot your system"),m(),y(21,"li"),M(22,"Reproduce the issue"),m(),y(23,"li"),M(24,"Download logs"),m()(),y(25,"p"),M(26,"Resetting the system may also help."),m(),y(27,"p"),M(28,"Remember to disable debug logging after troubleshooting."),m(),y(29,"div",8)(30,"button",9),L("click",function(){return de(t),F(),ue(Mt(5).toggle())}),M(31," OK! let me go! "),m()()()}if(2&e){const t=F();b(30),U("aria-expanded",!t.isCollapsed)}}const F4e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:zke},{path:"advancedConfig",component:n_e},{path:"downloadLogs",component:OD},{path:"githubissue",component:(()=>{class e{isCollapsed=!0;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=re({type:e,selectors:[["app-github-issue"]],decls:11,vars:2,consts:[["collapse","ngbCollapse"],["routerLink","/accessories",1,"btn","btn-primary","mb-3"],["name","chevron-left"],[4,"ngIf"],[3,"ngbCollapseChange","ngbCollapse"],["href","https://github.com/homebridge-plugins/homebridge-eufy-security/wiki/Common-Issues","target","_blank","rel","noopener noreferrer"],["href","https://github.com/homebridge-plugins/homebridge-eufy-security/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=Be();y(0,"a",1),B(1,"lucide-angular",2),M(2," Back\n"),m(),H(3,O4e,32,1,"div",3),y(4,"div",4,0),se("ngbCollapseChange",function(s){return de(o),he(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),x("ngIf",r.isCollapsed),b(),ae("ngbCollapse",r.isCollapsed))},dependencies:[kr,Fn,Hy,So,Ta,OD,N4e,R4e],encapsulation:2})}return e})()},{path:"config/:type/:id",component:i4e},{path:"login",component:_4e},{path:"reset",component:b4e},{path:"**",redirectTo:"/accessories"}];let P4e=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({imports:[H8.forRoot(F4e,{scrollPositionRestoration:"enabled"}),H8]})}return e})();function PD(e){return"server"===e}const pm=new z("");let LD=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,i){this._zone=i,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r,o){return this._findPluginFor(i).addEventListener(t,i,r,o)}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 P(5101,!1);return this._eventNameToPlugin.set(t,i),i}static \u0275fac=function(i){return new(i||e)(oe(pm),oe(ge))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();class VD{_doc;constructor(n){this._doc=n}manager}const Zh="ng-app-id";function jD(e){for(const n of e)n.remove()}function HD(e,n){const t=n.createElement("style");return t.textContent=e,t}function fm(e,n){const t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}let BD=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.isServer=PD(o),function B4e(e,n,t,i){const r=e.head?.querySelectorAll(`style[${Zh}="${n}"],link[${Zh}="${n}"]`);if(r)for(const o of r)o.removeAttribute(Zh),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&t.set(o.textContent,{usage:0,elements:[o]})}(t,i,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,i){for(const r of t)this.addUsage(r,this.inline,HD);i?.forEach(r=>this.addUsage(r,this.external,fm))}removeStyles(t,i){for(const r of t)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(t,i,r){const o=i.get(t);o?o.usage++:i.set(t,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(t,this.doc)))})}removeUsage(t,i){const r=i.get(t);r&&(r.usage--,r.usage<=0&&(jD(r.elements),i.delete(t)))}ngOnDestroy(){for(const[,{elements:t}]of[...this.inline,...this.external])jD(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(const[i,{elements:r}]of this.inline)r.push(this.addElement(t,HD(i,this.doc)));for(const[i,{elements:r}]of this.external)r.push(this.addElement(t,fm(i,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(Zh,this.appId),t.appendChild(i)}static \u0275fac=function(i){return new(i||e)(oe(Pt),oe(Yo),oe(Dk,8),oe(C0))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const gm={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"},ym=/%COMP%/g,W4e=new z("",{providedIn:"root",factory:()=>!0});function qD(e,n){return n.map(t=>t.replace(ym,e))}let UD=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,i,r,o,a,s,c,l=null,d=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.tracingService=d,this.platformIsServer=PD(s),this.defaultRenderer=new mm(t,a,c,this.platformIsServer,this.tracingService)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===wi.ShadowDom&&(i={...i,encapsulation:wi.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof GD?r.applyToHost(t):r instanceof vm&&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,g=this.tracingService;switch(i.encapsulation){case wi.Emulated:o=new GD(c,l,i,this.appId,d,a,s,h,g);break;case wi.ShadowDom:return new J4e(c,l,t,i,a,s,this.nonce,h,g);default:o=new vm(c,l,i,d,a,s,h,g)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(i){return new(i||e)(oe(LD),oe(BD),oe(Yo),oe(W4e),oe(Pt),oe(C0),oe(ge),oe(Dk),oe(rs,8))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();class mm{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,i,r,o){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(gm[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){($D(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&($D(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 P(-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=gm[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=gm[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,r){if("string"==typeof n&&!(n=mo().getGlobalEventTarget(this.doc,n)))throw new P(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,t,o)),this.eventManager.addEventListener(n,t,o,r)}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function $D(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class J4e extends mm{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,i,r,o,a,s,c,l){super(n,o,a,c,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=r.styles;d=qD(r.id,d);for(const g of d){const f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=g,this.shadowRoot.appendChild(f)}const h=r.getExternalStyles?.();if(h)for(const g of h){const f=fm(g,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}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 vm extends mm{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,i,r,o,a,s,c,l){super(n,o,a,s,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let d=i.styles;this.styles=l?qD(l,d):d,this.styleUrls=i.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class GD extends vm{contentAttr;hostAttr;constructor(n,t,i,r,o,a,s,c,l){const d=r+"-"+i.id;super(n,t,i,o,a,s,c,l,d),this.contentAttr=function Z4e(e){return"_ngcontent-%COMP%".replace(ym,e)}(d),this.hostAttr=function Y4e(e){return"_nghost-%COMP%".replace(ym,e)}(d)}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}}class km extends sL{supportsDOMEvents=!0;static makeCurrent(){!function aL(e){Ob??=e}(new km)}onAndCancel(n,t,i,r){return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}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 Q4e(){return Cd=Cd||document.querySelector("base"),Cd?Cd.getAttribute("href"):null}();return null==t?null:function X4e(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Cd=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function V4e(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 Cd=null,tMe=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||e)};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})(),nMe=(()=>{class e extends VD{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r,o){return t.addEventListener(i,r,o),()=>this.removeEventListener(t,i,r,o)}removeEventListener(t,i,r,o){return t.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const WD=["alt","control","meta","shift"],iMe={"\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"},rMe={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oMe=(()=>{class e extends VD{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r,o){const a=e.parseEventName(i),s=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mo().onAndCancel(t,a.domEventName,s,o))}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."),WD.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=iMe[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"),WD.forEach(a=>{a!==r&&(0,rMe[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 \u0275fac=function(i){return new(i||e)(oe(Pt))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();function ZD(e){return{appProviders:[...KD,...e?.providers??[]],platformProviders:dMe}}const dMe=[{provide:C0,useValue:"browser"},{provide:w0,useValue:function sMe(){km.makeCurrent()},multi:!0},{provide:Pt,useFactory:function lMe(){return function FS(e){b0=e}(document),document}}],YD=[{provide:lu,useClass:class eMe{addToWindow(n){St.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new P(5103,!1);return o},St.getAllAngularTestabilities=()=>n.getAllTestabilities(),St.getAllAngularRootElements=()=>n.getAllRootElements(),St.frameworkStabilizers||(St.frameworkStabilizers=[]),St.frameworkStabilizers.push(i=>{const r=St.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)}}},{provide:PM,useClass:ff,deps:[ge,gf,lu]},{provide:ff,useClass:ff,deps:[ge,gf,lu]}],KD=[{provide:Ip,useValue:"root"},{provide:Li,useFactory:function cMe(){return new Li}},{provide:pm,useClass:nMe,multi:!0,deps:[Pt]},{provide:pm,useClass:oMe,multi:!0,deps:[Pt]},UD,BD,LD,{provide:V2,useExisting:UD},{provide:class H4e{},useClass:tMe},[]];(function aMe(e,n){return mP({rootComponent:e,...ZD(n)})})(MH,{providers:[Wm((()=>{class e{constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ke({type:e});static \u0275inj=Ue({providers:[...KD,...YD],imports:[az,yP]})}return e})(),wt,iZ,P4e,function L4e(){return So.pick({SlidersHorizontal:xD,RefreshCw:bD,Download:vD,Bug:yD,Video:ND,VideoOff:AD,Shield:DD,ShieldOff:CD,Eye:_D,EyeOff:kD,ChevronLeft:mD,Square:TD,SquarePlus:ED,SquareMinus:SD,TriangleAlert:ID,Info:MD,ShieldAlert:wD})}()),{provide:vo,useClass:g8}]}).catch(e=>console.error(e))},20:(Fa,Qn)=>{Qn.read=function(ht,_e,Z,Dt,ve){var Qe,Ne,Me=8*ve-Dt-1,S=(1<<Me)-1,Mn=S>>1,Rt=-7,rn=Z?ve-1:0,$t=Z?-1:1,ee=ht[_e+rn];for(rn+=$t,Qe=ee&(1<<-Rt)-1,ee>>=-Rt,Rt+=Me;Rt>0;Qe=256*Qe+ht[_e+rn],rn+=$t,Rt-=8);for(Ne=Qe&(1<<-Rt)-1,Qe>>=-Rt,Rt+=Dt;Rt>0;Ne=256*Ne+ht[_e+rn],rn+=$t,Rt-=8);if(0===Qe)Qe=1-Mn;else{if(Qe===S)return Ne?NaN:1/0*(ee?-1:1);Ne+=Math.pow(2,Dt),Qe-=Mn}return(ee?-1:1)*Ne*Math.pow(2,Qe-Dt)},Qn.write=function(ht,_e,Z,Dt,ve,Qe){var Ne,Me,S,Mn=8*Qe-ve-1,Rt=(1<<Mn)-1,rn=Rt>>1,$t=23===ve?Math.pow(2,-24)-Math.pow(2,-77):0,ee=Dt?0:Qe-1,Ce=Dt?1:-1,Fe=_e<0||0===_e&&1/_e<0?1:0;for(_e=Math.abs(_e),isNaN(_e)||_e===1/0?(Me=isNaN(_e)?1:0,Ne=Rt):(Ne=Math.floor(Math.log(_e)/Math.LN2),_e*(S=Math.pow(2,-Ne))<1&&(Ne--,S*=2),(_e+=Ne+rn>=1?$t/S:$t*Math.pow(2,1-rn))*S>=2&&(Ne++,S/=2),Ne+rn>=Rt?(Me=0,Ne=Rt):Ne+rn>=1?(Me=(_e*S-1)*Math.pow(2,ve),Ne+=rn):(Me=_e*Math.pow(2,rn-1)*Math.pow(2,ve),Ne=0));ve>=8;ht[Z+ee]=255&Me,ee+=Ce,Me/=256,ve-=8);for(Ne=Ne<<ve|Me,Mn+=ve;Mn>0;ht[Z+ee]=255&Ne,ee+=Ce,Ne/=256,Mn-=8);ht[Z+ee-Ce]|=128*Fe}},838:(Fa,Qn,ht)=>{"use strict";const Z=ht(981),Dt=ht(20),ve="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Qn.hp=S,Qn.IS=50;const Qe=2147483647;function Me(v){if(v>Qe)throw new RangeError('The value "'+v+'" is invalid for option "size"');const u=new Uint8Array(v);return Object.setPrototypeOf(u,S.prototype),u}function S(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 $t(v)}return Mn(v,u,p)}function Mn(v,u,p){if("string"==typeof v)return function ee(v,u){if(("string"!=typeof u||""===u)&&(u="utf8"),!S.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const p=0|Dn(v,u);let _=Me(p);const D=_.write(v,u);return D!==p&&(_=_.slice(0,D)),_}(v,u);if(ArrayBuffer.isView(v))return function Fe(v){if(ye(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(ye(v,ArrayBuffer)||v&&ye(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(v,SharedArrayBuffer)||v&&ye(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 _=v.valueOf&&v.valueOf();if(null!=_&&_!==v)return S.from(_,u,p);const D=function pn(v){if(S.isBuffer(v)){const u=0|kt(v.length),p=Me(u);return 0===p.length||v.copy(p,0,0,u),p}return void 0!==v.length?"number"!=typeof v.length||No(v.length)?Me(0):Ce(v):"Buffer"===v.type&&Array.isArray(v.data)?Ce(v.data):void 0}(v);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return S.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 Rt(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 $t(v){return Rt(v),Me(v<0?0:0|kt(v))}function Ce(v){const u=v.length<0?0:0|kt(v.length),p=Me(u);for(let _=0;_<u;_+=1)p[_]=255&v[_];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 _;return _=void 0===u&&void 0===p?new Uint8Array(v):void 0===p?new Uint8Array(v,u):new Uint8Array(v,u,p),Object.setPrototypeOf(_,S.prototype),_}function kt(v){if(v>=Qe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Qe.toString(16)+" bytes");return 0|v}function Dn(v,u){if(S.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||ye(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,_=arguments.length>2&&!0===arguments[2];if(!_&&0===p)return 0;let D=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Yr(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*p;case"hex":return p>>>1;case"base64":return Rd(v).length;default:if(D)return _?-1:Yr(v).length;u=(""+u).toLowerCase(),D=!0}}function Lt(v,u,p){let _=!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 Td(this,u,p);case"utf8":case"utf-8":return Xi(this,u,p);case"ascii":return tp(this,u,p);case"latin1":case"binary":return np(this,u,p);case"base64":return ep(this,u,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Id(this,u,p);default:if(_)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),_=!0}}function ki(v,u,p){const _=v[u];v[u]=v[p],v[p]=_}function To(v,u,p,_,D){if(0===v.length)return-1;if("string"==typeof p?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),No(p=+p)&&(p=D?0:v.length-1),p<0&&(p=v.length+p),p>=v.length){if(D)return-1;p=v.length-1}else if(p<0){if(!D)return-1;p=0}if("string"==typeof u&&(u=S.from(u,_)),S.isBuffer(u))return 0===u.length?-1:pc(v,u,p,_,D);if("number"==typeof u)return u&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,u,p):Uint8Array.prototype.lastIndexOf.call(v,u,p):pc(v,[u],p,_,D);throw new TypeError("val must be string, number or Buffer")}function pc(v,u,p,_,D){let nt,A=1,O=v.length,be=u.length;if(void 0!==_&&("ucs2"===(_=String(_).toLowerCase())||"ucs-2"===_||"utf16le"===_||"utf-16le"===_)){if(v.length<2||u.length<2)return-1;A=2,O/=2,be/=2,p/=2}function pt(it,Ee){return 1===A?it[Ee]:it.readUInt16BE(Ee*A)}if(D){let it=-1;for(nt=p;nt<O;nt++)if(pt(v,nt)===pt(u,-1===it?0:nt-it)){if(-1===it&&(it=nt),nt-it+1===be)return it*A}else-1!==it&&(nt-=nt-it),it=-1}else for(p+be>O&&(p=O-be),nt=p;nt>=0;nt--){let it=!0;for(let Ee=0;Ee<be;Ee++)if(pt(v,nt+Ee)!==pt(u,Ee)){it=!1;break}if(it)return nt}return-1}function Pa(v,u,p,_){p=Number(p)||0;const D=v.length-p;_?(_=Number(_))>D&&(_=D):_=D;const A=u.length;let O;for(_>A/2&&(_=A/2),O=0;O<_;++O){const be=parseInt(u.substr(2*O,2),16);if(No(be))return O;v[p+O]=be}return O}function Io(v,u,p,_){return kc(Yr(u,v.length-p),v,p,_)}function La(v,u,p,_){return kc(function nr(v){const u=[];for(let p=0;p<v.length;++p)u.push(255&v.charCodeAt(p));return u}(u),v,p,_)}function Sd(v,u,p,_){return kc(Rd(u),v,p,_)}function Ed(v,u,p,_){return kc(function vc(v,u){let p,_,D;const A=[];for(let O=0;O<v.length&&!((u-=2)<0);++O)p=v.charCodeAt(O),_=p>>8,D=p%256,A.push(D),A.push(_);return A}(u,v.length-p),v,p,_)}function ep(v,u,p){return Z.fromByteArray(0===u&&p===v.length?v:v.slice(u,p))}function Xi(v,u,p){p=Math.min(v.length,p);const _=[];let D=u;for(;D<p;){const A=v[D];let O=null,be=A>239?4:A>223?3:A>191?2:1;if(D+be<=p){let pt,nt,it,Ee;switch(be){case 1:A<128&&(O=A);break;case 2:pt=v[D+1],128==(192&pt)&&(Ee=(31&A)<<6|63&pt,Ee>127&&(O=Ee));break;case 3:pt=v[D+1],nt=v[D+2],128==(192&pt)&&128==(192&nt)&&(Ee=(15&A)<<12|(63&pt)<<6|63&nt,Ee>2047&&(Ee<55296||Ee>57343)&&(O=Ee));break;case 4:pt=v[D+1],nt=v[D+2],it=v[D+3],128==(192&pt)&&128==(192&nt)&&128==(192&it)&&(Ee=(15&A)<<18|(63&pt)<<12|(63&nt)<<6|63&it,Ee>65535&&Ee<1114112&&(O=Ee))}}null===O?(O=65533,be=1):O>65535&&(O-=65536,_.push(O>>>10&1023|55296),O=56320|1023&O),_.push(O),D+=be}return function er(v){const u=v.length;if(u<=wr)return String.fromCharCode.apply(String,v);let p="",_=0;for(;_<u;)p+=String.fromCharCode.apply(String,v.slice(_,_+=wr));return p}(_)}!(S.TYPED_ARRAY_SUPPORT=function Ne(){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(S.prototype,"parent",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.byteOffset}}),S.poolSize=8192,S.from=function(v,u,p){return Mn(v,u,p)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array),S.alloc=function(v,u,p){return function rn(v,u,p){return Rt(v),v<=0?Me(v):void 0!==u?"string"==typeof p?Me(v).fill(u,p):Me(v).fill(u):Me(v)}(v,u,p)},S.allocUnsafe=function(v){return $t(v)},S.allocUnsafeSlow=function(v){return $t(v)},S.isBuffer=function(u){return null!=u&&!0===u._isBuffer&&u!==S.prototype},S.compare=function(u,p){if(ye(u,Uint8Array)&&(u=S.from(u,u.offset,u.byteLength)),ye(p,Uint8Array)&&(p=S.from(p,p.offset,p.byteLength)),!S.isBuffer(u)||!S.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===p)return 0;let _=u.length,D=p.length;for(let A=0,O=Math.min(_,D);A<O;++A)if(u[A]!==p[A]){_=u[A],D=p[A];break}return _<D?-1:D<_?1:0},S.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}},S.concat=function(u,p){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(0===u.length)return S.alloc(0);let _;if(void 0===p)for(p=0,_=0;_<u.length;++_)p+=u[_].length;const D=S.allocUnsafe(p);let A=0;for(_=0;_<u.length;++_){let O=u[_];if(ye(O,Uint8Array))A+O.length>D.length?(S.isBuffer(O)||(O=S.from(O)),O.copy(D,A)):Uint8Array.prototype.set.call(D,O,A);else{if(!S.isBuffer(O))throw new TypeError('"list" argument must be an Array of Buffers');O.copy(D,A)}A+=O.length}return D},S.byteLength=Dn,S.prototype._isBuffer=!0,S.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},S.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},S.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},S.prototype.toLocaleString=S.prototype.toString=function(){const u=this.length;return 0===u?"":0===arguments.length?Xi(this,0,u):Lt.apply(this,arguments)},S.prototype.equals=function(u){if(!S.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u||0===S.compare(this,u)},S.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+">"},ve&&(S.prototype[ve]=S.prototype.inspect),S.prototype.compare=function(u,p,_,D,A){if(ye(u,Uint8Array)&&(u=S.from(u,u.offset,u.byteLength)),!S.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===_&&(_=u?u.length:0),void 0===D&&(D=0),void 0===A&&(A=this.length),p<0||_>u.length||D<0||A>this.length)throw new RangeError("out of range index");if(D>=A&&p>=_)return 0;if(D>=A)return-1;if(p>=_)return 1;if(this===u)return 0;let O=(A>>>=0)-(D>>>=0),be=(_>>>=0)-(p>>>=0);const pt=Math.min(O,be),nt=this.slice(D,A),it=u.slice(p,_);for(let Ee=0;Ee<pt;++Ee)if(nt[Ee]!==it[Ee]){O=nt[Ee],be=it[Ee];break}return O<be?-1:be<O?1:0},S.prototype.includes=function(u,p,_){return-1!==this.indexOf(u,p,_)},S.prototype.indexOf=function(u,p,_){return To(this,u,p,_,!0)},S.prototype.lastIndexOf=function(u,p,_){return To(this,u,p,_,!1)},S.prototype.write=function(u,p,_,D){if(void 0===p)D="utf8",_=this.length,p=0;else if(void 0===_&&"string"==typeof p)D=p,_=this.length,p=0;else{if(!isFinite(p))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");p>>>=0,isFinite(_)?(_>>>=0,void 0===D&&(D="utf8")):(D=_,_=void 0)}const A=this.length-p;if((void 0===_||_>A)&&(_=A),u.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let O=!1;for(;;)switch(D){case"hex":return Pa(this,u,p,_);case"utf8":case"utf-8":return Io(this,u,p,_);case"ascii":case"latin1":case"binary":return La(this,u,p,_);case"base64":return Sd(this,u,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ed(this,u,p,_);default:if(O)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),O=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wr=4096;function tp(v,u,p){let _="";p=Math.min(v.length,p);for(let D=u;D<p;++D)_+=String.fromCharCode(127&v[D]);return _}function np(v,u,p){let _="";p=Math.min(v.length,p);for(let D=u;D<p;++D)_+=String.fromCharCode(v[D]);return _}function Td(v,u,p){const _=v.length;(!u||u<0)&&(u=0),(!p||p<0||p>_)&&(p=_);let D="";for(let A=u;A<p;++A)D+=_c[v[A]];return D}function Id(v,u,p){const _=v.slice(u,p);let D="";for(let A=0;A<_.length-1;A+=2)D+=String.fromCharCode(_[A]+256*_[A+1]);return D}function Vt(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 Wt(v,u,p,_,D,A){if(!S.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>D||u<A)throw new RangeError('"value" argument is out of bounds');if(p+_>v.length)throw new RangeError("Index out of range")}function Ad(v,u,p,_,D){Nd(u,_,D,v,p,7);let A=Number(u&BigInt(4294967295));v[p++]=A,A>>=8,v[p++]=A,A>>=8,v[p++]=A,A>>=8,v[p++]=A;let O=Number(u>>BigInt(32)&BigInt(4294967295));return v[p++]=O,O>>=8,v[p++]=O,O>>=8,v[p++]=O,O>>=8,v[p++]=O,p}function ip(v,u,p,_,D){Nd(u,_,D,v,p,7);let A=Number(u&BigInt(4294967295));v[p+7]=A,A>>=8,v[p+6]=A,A>>=8,v[p+5]=A,A>>=8,v[p+4]=A;let O=Number(u>>BigInt(32)&BigInt(4294967295));return v[p+3]=O,O>>=8,v[p+2]=O,O>>=8,v[p+1]=O,O>>=8,v[p]=O,p+8}function Ao(v,u,p,_,D,A){if(p+_>v.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function fc(v,u,p,_,D){return u=+u,p>>>=0,D||Ao(v,0,p,4),Dt.write(v,u,p,_,23,4),p+4}function rp(v,u,p,_,D){return u=+u,p>>>=0,D||Ao(v,0,p,8),Dt.write(v,u,p,_,52,8),p+8}S.prototype.slice=function(u,p){const _=this.length;(u=~~u)<0?(u+=_)<0&&(u=0):u>_&&(u=_),(p=void 0===p?_:~~p)<0?(p+=_)<0&&(p=0):p>_&&(p=_),p<u&&(p=u);const D=this.subarray(u,p);return Object.setPrototypeOf(D,S.prototype),D},S.prototype.readUintLE=S.prototype.readUIntLE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u],A=1,O=0;for(;++O<p&&(A*=256);)D+=this[u+O]*A;return D},S.prototype.readUintBE=S.prototype.readUIntBE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u+--p],A=1;for(;p>0&&(A*=256);)D+=this[u+--p]*A;return D},S.prototype.readUint8=S.prototype.readUInt8=function(u,p){return u>>>=0,p||Vt(u,1,this.length),this[u]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(u,p){return u>>>=0,p||Vt(u,2,this.length),this[u]|this[u+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(u,p){return u>>>=0,p||Vt(u,2,this.length),this[u]<<8|this[u+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+16777216*this[u+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),16777216*this[u]+(this[u+1]<<16|this[u+2]<<8|this[u+3])},S.prototype.readBigUInt64LE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=p+256*this[++u]+65536*this[++u]+this[++u]*2**24,A=this[++u]+256*this[++u]+65536*this[++u]+_*2**24;return BigInt(D)+(BigInt(A)<<BigInt(32))}),S.prototype.readBigUInt64BE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=p*2**24+65536*this[++u]+256*this[++u]+this[++u],A=this[++u]*2**24+65536*this[++u]+256*this[++u]+_;return(BigInt(D)<<BigInt(32))+BigInt(A)}),S.prototype.readIntLE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=this[u],A=1,O=0;for(;++O<p&&(A*=256);)D+=this[u+O]*A;return A*=128,D>=A&&(D-=Math.pow(2,8*p)),D},S.prototype.readIntBE=function(u,p,_){u>>>=0,p>>>=0,_||Vt(u,p,this.length);let D=p,A=1,O=this[u+--D];for(;D>0&&(A*=256);)O+=this[u+--D]*A;return A*=128,O>=A&&(O-=Math.pow(2,8*p)),O},S.prototype.readInt8=function(u,p){return u>>>=0,p||Vt(u,1,this.length),128&this[u]?-1*(255-this[u]+1):this[u]},S.prototype.readInt16LE=function(u,p){u>>>=0,p||Vt(u,2,this.length);const _=this[u]|this[u+1]<<8;return 32768&_?4294901760|_:_},S.prototype.readInt16BE=function(u,p){u>>>=0,p||Vt(u,2,this.length);const _=this[u+1]|this[u]<<8;return 32768&_?4294901760|_:_},S.prototype.readInt32LE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},S.prototype.readInt32BE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},S.prototype.readBigInt64LE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];return(void 0===p||void 0===_)&&Va(u,this.length-8),(BigInt(this[u+4]+256*this[u+5]+65536*this[u+6]+(_<<24))<<BigInt(32))+BigInt(p+256*this[++u]+65536*this[++u]+this[++u]*2**24)}),S.prototype.readBigInt64BE=Xn(function(u){Zr(u>>>=0,"offset");const p=this[u],_=this[u+7];(void 0===p||void 0===_)&&Va(u,this.length-8);const D=(p<<24)+65536*this[++u]+256*this[++u]+this[++u];return(BigInt(D)<<BigInt(32))+BigInt(this[++u]*2**24+65536*this[++u]+256*this[++u]+_)}),S.prototype.readFloatLE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),Dt.read(this,u,!0,23,4)},S.prototype.readFloatBE=function(u,p){return u>>>=0,p||Vt(u,4,this.length),Dt.read(this,u,!1,23,4)},S.prototype.readDoubleLE=function(u,p){return u>>>=0,p||Vt(u,8,this.length),Dt.read(this,u,!0,52,8)},S.prototype.readDoubleBE=function(u,p){return u>>>=0,p||Vt(u,8,this.length),Dt.read(this,u,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(u,p,_,D){u=+u,p>>>=0,_>>>=0,D||Wt(this,u,p,_,Math.pow(2,8*_)-1,0);let A=1,O=0;for(this[p]=255&u;++O<_&&(A*=256);)this[p+O]=u/A&255;return p+_},S.prototype.writeUintBE=S.prototype.writeUIntBE=function(u,p,_,D){u=+u,p>>>=0,_>>>=0,D||Wt(this,u,p,_,Math.pow(2,8*_)-1,0);let A=_-1,O=1;for(this[p+A]=255&u;--A>=0&&(O*=256);)this[p+A]=u/O&255;return p+_},S.prototype.writeUint8=S.prototype.writeUInt8=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,1,255,0),this[p]=255&u,p+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,65535,0),this[p]=255&u,this[p+1]=u>>>8,p+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,65535,0),this[p]=u>>>8,this[p+1]=255&u,p+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeBigUInt64LE=Xn(function(u,p=0){return Ad(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=Xn(function(u,p=0){return ip(this,u,p,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(u,p,_,D){if(u=+u,p>>>=0,!D){const pt=Math.pow(2,8*_-1);Wt(this,u,p,_,pt-1,-pt)}let A=0,O=1,be=0;for(this[p]=255&u;++A<_&&(O*=256);)u<0&&0===be&&0!==this[p+A-1]&&(be=1),this[p+A]=(u/O|0)-be&255;return p+_},S.prototype.writeIntBE=function(u,p,_,D){if(u=+u,p>>>=0,!D){const pt=Math.pow(2,8*_-1);Wt(this,u,p,_,pt-1,-pt)}let A=_-1,O=1,be=0;for(this[p+A]=255&u;--A>=0&&(O*=256);)u<0&&0===be&&0!==this[p+A+1]&&(be=1),this[p+A]=(u/O|0)-be&255;return p+_},S.prototype.writeInt8=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,1,127,-128),u<0&&(u=255+u+1),this[p]=255&u,p+1},S.prototype.writeInt16LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,32767,-32768),this[p]=255&u,this[p+1]=u>>>8,p+2},S.prototype.writeInt16BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(this,u,p,2,32767,-32768),this[p]=u>>>8,this[p+1]=255&u,p+2},S.prototype.writeInt32LE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeInt32BE=function(u,p,_){return u=+u,p>>>=0,_||Wt(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},S.prototype.writeBigInt64LE=Xn(function(u,p=0){return Ad(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=Xn(function(u,p=0){return ip(this,u,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(u,p,_){return fc(this,u,p,!0,_)},S.prototype.writeFloatBE=function(u,p,_){return fc(this,u,p,!1,_)},S.prototype.writeDoubleLE=function(u,p,_){return rp(this,u,p,!0,_)},S.prototype.writeDoubleBE=function(u,p,_){return rp(this,u,p,!1,_)},S.prototype.copy=function(u,p,_,D){if(!S.isBuffer(u))throw new TypeError("argument should be a Buffer");if(_||(_=0),!D&&0!==D&&(D=this.length),p>=u.length&&(p=u.length),p||(p=0),D>0&&D<_&&(D=_),D===_||0===u.length||0===this.length)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),u.length-p<D-_&&(D=u.length-p+_);const A=D-_;return this===u&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(p,_,D):Uint8Array.prototype.set.call(u,this.subarray(_,D),p),A},S.prototype.fill=function(u,p,_,D){if("string"==typeof u){if("string"==typeof p?(D=p,p=0,_=this.length):"string"==typeof _&&(D=_,_=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!S.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===u.length){const O=u.charCodeAt(0);("utf8"===D&&O<128||"latin1"===D)&&(u=O)}}else"number"==typeof u?u&=255:"boolean"==typeof u&&(u=Number(u));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;let A;if(p>>>=0,_=void 0===_?this.length:_>>>0,u||(u=0),"number"==typeof u)for(A=p;A<_;++A)this[A]=u;else{const O=S.isBuffer(u)?u:S.from(u,D),be=O.length;if(0===be)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(A=0;A<_-p;++A)this[A+p]=O[A%be]}return this};const tr={};function gc(v,u,p){tr[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(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function yc(v){let u="",p=v.length;const _="-"===v[0]?1:0;for(;p>=_+4;p-=3)u=`_${v.slice(p-3,p)}${u}`;return`${v.slice(0,p)}${u}`}function Nd(v,u,p,_,D,A){if(v>p||v<u){const O="bigint"==typeof u?"n":"";let be;throw be=A>3?0===u||u===BigInt(0)?`>= 0${O} and < 2${O} ** ${8*(A+1)}${O}`:`>= -(2${O} ** ${8*(A+1)-1}${O}) and < 2 ** ${8*(A+1)-1}${O}`:`>= ${u}${O} and <= ${p}${O}`,new tr.ERR_OUT_OF_RANGE("value",be,v)}!function op(v,u,p){Zr(u,"offset"),(void 0===v[u]||void 0===v[u+p])&&Va(u,v.length-(p+1))}(_,D,A)}function Zr(v,u){if("number"!=typeof v)throw new tr.ERR_INVALID_ARG_TYPE(u,"number",v)}function Va(v,u,p){throw Math.floor(v)!==v?(Zr(v,p),new tr.ERR_OUT_OF_RANGE(p||"offset","an integer",v)):u<0?new tr.ERR_BUFFER_OUT_OF_BOUNDS:new tr.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${u}`,v)}gc("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),gc("ERR_INVALID_ARG_TYPE",function(v,u){return`The "${v}" argument must be of type number. Received type ${typeof u}`},TypeError),gc("ERR_OUT_OF_RANGE",function(v,u,p){let _=`The value of "${v}" is out of range.`,D=p;return Number.isInteger(p)&&Math.abs(p)>2**32?D=yc(String(p)):"bigint"==typeof p&&(D=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(D=yc(D)),D+="n"),_+=` It must be ${u}. Received ${D}`,_},RangeError);const ap=/[^+/0-9A-Za-z-_]/g;function Yr(v,u){let p;u=u||1/0;const _=v.length;let D=null;const A=[];for(let O=0;O<_;++O){if(p=v.charCodeAt(O),p>55295&&p<57344){if(!D){if(p>56319){(u-=3)>-1&&A.push(239,191,189);continue}if(O+1===_){(u-=3)>-1&&A.push(239,191,189);continue}D=p;continue}if(p<56320){(u-=3)>-1&&A.push(239,191,189),D=p;continue}p=65536+(D-55296<<10|p-56320)}else D&&(u-=3)>-1&&A.push(239,191,189);if(D=null,p<128){if((u-=1)<0)break;A.push(p)}else if(p<2048){if((u-=2)<0)break;A.push(p>>6|192,63&p|128)}else if(p<65536){if((u-=3)<0)break;A.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;A.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}}return A}function Rd(v){return Z.toByteArray(function mc(v){if((v=(v=v.split("=")[0]).trim().replace(ap,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function kc(v,u,p,_){let D;for(D=0;D<_&&!(D+p>=u.length||D>=v.length);++D)u[D+p]=v[D];return D}function ye(v,u){return v instanceof u||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===u.name}function No(v){return v!=v}const _c=function(){const v="0123456789abcdef",u=new Array(256);for(let p=0;p<16;++p){const _=16*p;for(let D=0;D<16;++D)u[_+D]=v[p]+v[D]}return u}();function Xn(v){return typeof BigInt>"u"?on:v}function on(){throw new Error("BigInt not supported")}},981:(Fa,Qn)=>{"use strict";Qn.byteLength=function Me(ee){var Ce=Ne(ee),xt=Ce[1];return 3*(Ce[0]+xt)/4-xt},Qn.toByteArray=function Mn(ee){var Ce,Lt,Fe=Ne(ee),xt=Fe[0],pn=Fe[1],kt=new Z(function S(ee,Ce,Fe){return 3*(Ce+Fe)/4-Fe}(0,xt,pn)),Gt=0,Dn=pn>0?xt-4:xt;for(Lt=0;Lt<Dn;Lt+=4)Ce=_e[ee.charCodeAt(Lt)]<<18|_e[ee.charCodeAt(Lt+1)]<<12|_e[ee.charCodeAt(Lt+2)]<<6|_e[ee.charCodeAt(Lt+3)],kt[Gt++]=Ce>>16&255,kt[Gt++]=Ce>>8&255,kt[Gt++]=255&Ce;return 2===pn&&(Ce=_e[ee.charCodeAt(Lt)]<<2|_e[ee.charCodeAt(Lt+1)]>>4,kt[Gt++]=255&Ce),1===pn&&(Ce=_e[ee.charCodeAt(Lt)]<<10|_e[ee.charCodeAt(Lt+1)]<<4|_e[ee.charCodeAt(Lt+2)]>>2,kt[Gt++]=Ce>>8&255,kt[Gt++]=255&Ce),kt},Qn.fromByteArray=function $t(ee){for(var Ce,Fe=ee.length,xt=Fe%3,pn=[],Gt=0,Dn=Fe-xt;Gt<Dn;Gt+=16383)pn.push(rn(ee,Gt,Gt+16383>Dn?Dn:Gt+16383));return 1===xt?pn.push(ht[(Ce=ee[Fe-1])>>2]+ht[Ce<<4&63]+"=="):2===xt&&pn.push(ht[(Ce=(ee[Fe-2]<<8)+ee[Fe-1])>>10]+ht[Ce>>4&63]+ht[Ce<<2&63]+"="),pn.join("")};for(var ht=[],_e=[],Z=typeof Uint8Array<"u"?Uint8Array:Array,Dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=0;ve<64;++ve)ht[ve]=Dt[ve],_e[Dt.charCodeAt(ve)]=ve;function Ne(ee){var Ce=ee.length;if(Ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Fe=ee.indexOf("=");return-1===Fe&&(Fe=Ce),[Fe,Fe===Ce?0:4-Fe%4]}function Rt(ee){return ht[ee>>18&63]+ht[ee>>12&63]+ht[ee>>6&63]+ht[63&ee]}function rn(ee,Ce,Fe){for(var pn=[],kt=Ce;kt<Fe;kt+=3)pn.push(Rt((ee[kt]<<16&16711680)+(ee[kt+1]<<8&65280)+(255&ee[kt+2])));return pn.join("")}_e[45]=62,_e[95]=63}},Fa=>{Fa(Fa.s=12)}]);
|