homebridge-eufy-security 2.3.21 → 2.3.22

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.
Files changed (40) hide show
  1. package/dist/accessories/CameraAccessory.d.ts.map +1 -1
  2. package/dist/accessories/CameraAccessory.js +10 -20
  3. package/dist/accessories/CameraAccessory.js.map +1 -1
  4. package/dist/accessories/Device.d.ts +1 -1
  5. package/dist/accessories/Device.d.ts.map +1 -1
  6. package/dist/accessories/Device.js +5 -3
  7. package/dist/accessories/Device.js.map +1 -1
  8. package/dist/accessories/EntrySensorAccessory.js +1 -1
  9. package/dist/accessories/EntrySensorAccessory.js.map +1 -1
  10. package/dist/accessories/LockAccessory.js +1 -1
  11. package/dist/accessories/LockAccessory.js.map +1 -1
  12. package/dist/accessories/MotionSensorAccessory.js +1 -1
  13. package/dist/accessories/MotionSensorAccessory.js.map +1 -1
  14. package/dist/config.d.ts +0 -2
  15. package/dist/config.d.ts.map +1 -1
  16. package/dist/config.js +0 -1
  17. package/dist/config.js.map +1 -1
  18. package/dist/controller/LocalLivestreamManager.d.ts +6 -7
  19. package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
  20. package/dist/controller/LocalLivestreamManager.js +32 -50
  21. package/dist/controller/LocalLivestreamManager.js.map +1 -1
  22. package/dist/controller/SnapshotManager.d.ts +5 -5
  23. package/dist/controller/SnapshotManager.d.ts.map +1 -1
  24. package/dist/controller/SnapshotManager.js +53 -41
  25. package/dist/controller/SnapshotManager.js.map +1 -1
  26. package/dist/controller/streamingDelegate.d.ts +8 -11
  27. package/dist/controller/streamingDelegate.d.ts.map +1 -1
  28. package/dist/controller/streamingDelegate.js +52 -58
  29. package/dist/controller/streamingDelegate.js.map +1 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/platform.d.ts +3 -0
  34. package/dist/platform.d.ts.map +1 -1
  35. package/dist/platform.js +57 -58
  36. package/dist/platform.js.map +1 -1
  37. package/homebridge-ui/public/index.html +1 -1
  38. package/homebridge-ui/public/main.f8e10d8a2f38383a.js +1 -0
  39. package/package.json +17 -17
  40. package/homebridge-ui/public/main.46904d06e6769ebf.js +0 -1
@@ -1 +0,0 @@
1
- (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[792],{730:(z3,et,_1)=>{"use strict";function ye(e,n,t,i,r,a,o){try{var s=e[a](o),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function ee(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var a=e.apply(n,t);function o(c){ye(a,i,r,o,s,"next",c)}function s(c){ye(a,i,r,o,s,"throw",c)}o(void 0)})}}let _e=null,Ee=1;const Be=Symbol("SIGNAL");function D(e){const n=_e;return _e=e,n}function Qe(e){if((!A4(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Ee)){if(!e.producerMustRecompute(e)&&!s2(e))return e.dirty=!1,void(e.lastCleanEpoch=Ee);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Ee}}function s2(e){i4(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(Qe(t),i!==t.version))return!0}return!1}function I4(e,n){if(function Io(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),i4(e),1===e.liveConsumerNode.length)for(let i=0;i<e.producerNode.length;i++)I4(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];i4(r),r.producerIndexOfThis[i]=n}}function A4(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function i4(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Oo=null;function Le(e){return"function"==typeof e}function Zt(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Ln=Zt(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 S3(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class m2{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 a of t)a.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Le(i))try{i()}catch(a){n=a instanceof Ln?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{Go(a)}catch(o){n=n??[],o instanceof Ln?n=[...n,...o.errors]:n.push(o)}}if(n)throw new Ln(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Go(n);else{if(n instanceof m2){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)&&S3(t,n)}remove(n){const{_finalizers:t}=this;t&&S3(t,n),n instanceof m2&&n._removeParent(this)}}m2.EMPTY=(()=>{const e=new m2;return e.closed=!0,e})();const N3=m2.EMPTY;function jo(e){return e instanceof m2||e&&"closed"in e&&Le(e.remove)&&Le(e.add)&&Le(e.unsubscribe)}function Go(e){Le(e)?e():e.unsubscribe()}const Jt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xn={setTimeout(e,n,...t){const{delegate:i}=xn;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=xn;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function tt(e){xn.setTimeout(()=>{const{onUnhandledError:n}=Jt;if(!n)throw e;n(e)})}function En(){}const O0=_("C",void 0,void 0);function _(e,n,t){return{kind:e,value:n,error:t}}let d=null;function h(e){if(Jt.useDeprecatedSynchronousErrorHandling){const n=!d;if(n&&(d={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=d;if(d=null,t)throw i}}else e()}class z extends m2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,jo(n)&&n.add(this)):this.destination=SI}static create(n,t,i){return new r1(n,t,i)}next(n){this.isStopped?Oe(function R0(e){return _("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Oe(function Xt(e){return _("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Oe(O0,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 x=Function.prototype.bind;function I(e,n){return x.call(e,n)}class Me{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){We(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){We(i)}else We(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){We(t)}}}class r1 extends z{constructor(n,t,i){let r;if(super(),Le(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let a;this&&Jt.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&I(n.next,a),error:n.error&&I(n.error,a),complete:n.complete&&I(n.complete,a)}):r=n}this.destination=new Me(r)}}function We(e){Jt.useDeprecatedSynchronousErrorHandling?function M(e){Jt.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=e)}(e):tt(e)}function Oe(e,n){const{onStoppedNotification:t}=Jt;t&&xn.setTimeout(()=>t(e,n))}const SI={closed:!0,next:En,error:function y1(e){throw e},complete:En},P0="function"==typeof Symbol&&Symbol.observable||"@@observable";function Tn(e){return e}function Z9(e){return 0===e.length?Tn:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let M1=(()=>{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 a=function xI(e){return e&&e instanceof z||function LI(e){return e&&Le(e.next)&&Le(e.error)&&Le(e.complete)}(e)&&jo(e)}(t)?t:new r1(t,i,r);return h(()=>{const{operator:o,source:s}=this;a.add(o?o.call(a,s):s?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=J9(i))((r,a)=>{const o=new r1({next:s=>{try{t(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:r});this.subscribe(o)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[P0](){return this}pipe(...t){return Z9(t)(this)}toPromise(t){return new(t=J9(t))((i,r)=>{let a;this.subscribe(o=>a=o,o=>r(o),()=>i(a))})}}return e.create=n=>new e(n),e})();function J9(e){var n;return null!==(n=e??Jt.Promise)&&void 0!==n?n:Promise}const EI=Zt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let a1=(()=>{class e extends M1{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new X9(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new EI}next(t){h(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){h(()=>{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(){h(()=>{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:a}=this;return i||r?N3:(this.currentObservers=null,a.push(t),new m2(()=>{this.currentObservers=null,S3(a,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:a}=this;i?t.error(r):a&&t.complete()}asObservable(){const t=new M1;return t.source=this,t}}return e.create=(n,t)=>new X9(n,t),e})();class X9 extends a1{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:N3}}class yt extends a1{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 ed(e){return Le(e?.lift)}function B1(e){return n=>{if(ed(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 d1(e,n,t,i,r){return new TI(e,n,t,i,r)}class TI extends z{constructor(n,t,i,r,a,o){super(n),this.onFinalize=a,this.shouldUnsubscribe=o,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 B1((t,i)=>{let r=0;t.subscribe(d1(i,a=>{i.next(e.call(n,a,r++))}))})}const td="https://g.co/ng/security#xss";class A extends Error{constructor(n,t){super(function L3(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function In(e){return{toString:e}.toString()}const E3="__parameters__";function I3(e,n,t){return In(()=>{const i=function F0(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...a){if(this instanceof r)return i.apply(this,a),this;const o=new r(...a);return s.annotation=o,s;function s(c,l,u){const f=c.hasOwnProperty(E3)?c[E3]:Object.defineProperty(c,E3,{value:[]})[E3];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(o),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Ue=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 II(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function K1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(K1).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function B0(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const AI=qe({__forward_ref__:qe});function je(e){return e.__forward_ref__=je,e.toString=function(){return K1(this())},e}function ae(e){return Wo(e)?e():e}function Wo(e){return"function"==typeof e&&e.hasOwnProperty(AI)&&e.__forward_ref__===je}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ye(e){return{providers:e.providers||[],imports:e.imports||[]}}function qo(e){return ad(e,Ko)||ad(e,od)}function ad(e,n){return e.hasOwnProperty(n)?e[n]:null}function Yo(e){return e&&(e.hasOwnProperty(U0)||e.hasOwnProperty(BI))?e[U0]:null}const Ko=qe({\u0275prov:qe}),U0=qe({\u0275inj:qe}),od=qe({ngInjectableDef:qe}),BI=qe({ngInjectorDef:qe});class q{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function q0(e){return e&&!!e.\u0275providers}const fr=qe({\u0275cmp:qe}),Y0=qe({\u0275dir:qe}),K0=qe({\u0275pipe:qe}),cd=qe({\u0275mod:qe}),An=qe({\u0275fac:qe}),dr=qe({__NG_ELEMENT_ID__:qe}),ld=qe({__NG_ENV_ID__:qe});function pe(e){return"string"==typeof e?e:null==e?"":String(e)}function Q0(e,n){throw new A(-201,!1)}var ze=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}(ze||{});let Z0;function ud(){return Z0}function j2(e){const n=Z0;return Z0=e,n}function fd(e,n,t){const i=qo(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ze.Optional?null:void 0!==n?n:void Q0()}const hr={},J0="__NG_DI_FLAG__",Qo="ngTempTokenPath",qI=/\n/gm,dd="__source";let A3;function a4(e){const n=A3;return A3=e,n}function QI(e,n=ze.Default){if(void 0===A3)throw new A(-203,!1);return null===A3?fd(e,void 0,n):A3.get(e,n&ze.Optional?null:void 0,n)}function te(e,n=ze.Default){return(ud()||QI)(ae(e),n)}function H(e,n=ze.Default){return te(e,Zo(n))}function Zo(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function X0(e){const n=[];for(let t=0;t<e.length;t++){const i=ae(e[t]);if(Array.isArray(i)){if(0===i.length)throw new A(900,!1);let r,a=ze.Default;for(let o=0;o<i.length;o++){const s=i[o],c=ZI(s);"number"==typeof c?-1===c?r=s.token:a|=c:r=s}n.push(te(r,a))}else n.push(te(i))}return n}function pr(e,n){return e[J0]=n,e.prototype[J0]=n,e}function ZI(e){return e[J0]}const Jo=pr(I3("Optional"),8),Xo=pr(I3("SkipSelf"),4);function O4(e,n){return e.hasOwnProperty(An)?e[An]:null}function k3(e,n){e.forEach(t=>Array.isArray(t)?k3(t,n):n(t))}function pd(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function es(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function rt(e,n,t){let i=O3(e,n);return i>=0?e[1|i]=t:(i=~i,function md(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 t8(e,n){const t=O3(e,n);if(t>=0)return e[1|t]}function O3(e,n){return function gd(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const a=i+(r-i>>1),o=e[a<<t];if(n===o)return a<<t;o>n?r=a:i=a+1}return~(r<<t)}(e,n,1)}const en={},Ie=[],R4=new q(""),vd=new q("",-1),n8=new q("");class ns{get(n,t=hr){if(t===hr){const i=new Error(`NullInjectorError: No provider for ${K1(n)}!`);throw i.name="NullInjectorError",i}return t}}var is=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(is||{}),Lt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Lt||{}),Ge=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ge||{});function rA(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 a=n.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}t=r+1}}function i8(e,n,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const a=t[i++],o=t[i++],s=t[i++];e.setAttribute(n,o,s,a)}else{const a=r,o=t[++i];Cd(a)?e.setProperty(n,a,o):e.setAttribute(n,a,o),i++}}return i}function _d(e){return 3===e||4===e||6===e}function Cd(e){return 64===e.charCodeAt(0)}function mr(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||yd(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function yd(e,n,t,i,r){let a=0,o=e.length;if(-1===n)o=-1;else for(;a<e.length;){const s=e[a++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=a-1;break}}}for(;a<e.length;){const s=e[a];if("number"==typeof s)break;if(s===t){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,n),a=o+1),e.splice(a++,0,t),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}const Md="ng-template";function aA(e,n,t,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==rA(n[r+1].toLowerCase(),t,0))return!0}else if(r8(e))return!1;if(r=n.indexOf(1,r),r>-1){let a;for(;++r<n.length&&"string"==typeof(a=n[r]);)if(a.toLowerCase()===t)return!0}return!1}function r8(e){return 4===e.type&&e.value!==Md}function oA(e,n,t){return n===(4!==e.type||t?e.value:Md)}function sA(e,n,t){let i=4;const r=e.attrs,a=null!==r?function uA(e){for(let n=0;n<e.length;n++)if(_d(e[n]))return n;return e.length}(r):0;let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!oA(e,c,t)||""===c&&1===n.length){if(xt(i))return!1;o=!0}}else if(8&i){if(null===r||!aA(e,r,c,t)){if(xt(i))return!1;o=!0}}else{const l=n[++s],u=cA(c,r,r8(e),t);if(-1===u){if(xt(i))return!1;o=!0;continue}if(""!==l){let f;if(f=u>a?"":r[u+1].toLowerCase(),2&i&&l!==f){if(xt(i))return!1;o=!0}}}}else{if(!o&&!xt(i)&&!xt(c))return!1;if(o&&xt(c))continue;o=!1,i=c|1&i}}return xt(i)||o}function xt(e){return!(1&e)}function cA(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let a=!1;for(;r<n.length;){const o=n[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function fA(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 bd(e,n,t=!1){for(let i=0;i<n.length;i++)if(sA(e,n[i],t))return!0;return!1}function dA(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 wd(e,n){return e?":not("+n.trim()+")":n}function hA(e){let n=e[0],t=1,i=2,r="",a=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&i){const s=e[++t];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!xt(o)&&(n+=wd(a,r),r=""),i=o,a=a||!xt(i);t++}return""!==r&&(n+=wd(a,r)),n}function oe(e){return In(()=>{const n=Vd(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===is.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Lt.Emulated,styles:e.styles||Ie,_:null,schemas:e.schemas||null,tView:null,id:""};zd(t);const i=e.dependencies;return t.directiveDefs=rs(i,!1),t.pipeDefs=rs(i,!0),t.id=function CA(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function gA(e){return He(e)||Q1(e)}function vA(e){return null!==e}function Ze(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||Ie,declarations:e.declarations||Ie,imports:e.imports||Ie,exports:e.exports||Ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Hd(e,n){if(null==e)return en;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let a,o,s=Ge.None;Array.isArray(r)?(s=r[0],a=r[1],o=r[2]??a):(a=r,o=r),n?(t[a]=s!==Ge.None?[i,s]:i,n[a]=o):t[a]=i}return t}function $(e){return In(()=>{const n=Vd(e);return zd(n),n})}function He(e){return e[fr]||null}function Q1(e){return e[Y0]||null}function g2(e){return e[K0]||null}function H2(e,n){const t=e[cd]||null;if(!t&&!0===n)throw new Error(`Type ${K1(e)} does not have '\u0275mod' property.`);return t}function Vd(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||en,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Ie,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Hd(e.inputs,n),outputs:Hd(e.outputs),debugInfo:null}}function zd(e){e.features?.forEach(n=>n(e))}function rs(e,n){if(!e)return null;const t=n?g2:gA;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(vA)}function Dd(...e){return{\u0275providers:a8(0,e),\u0275fromNgModule:!0}}function a8(e,...n){const t=[],i=new Set;let r;const a=o=>{t.push(o)};return k3(n,o=>{const s=o;os(s,a,[],i)&&(r||=[],r.push(s))}),void 0!==r&&Sd(r,a),t}function Sd(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];o8(r,a=>{n(a,i)})}}function os(e,n,t,i){if(!(e=ae(e)))return!1;let r=null,a=Yo(e);const o=!a&&He(e);if(a||o){if(o&&!o.standalone)return!1;r=e}else{const c=e.ngModule;if(a=Yo(c),!a)return!1;r=c}const s=i.has(r);if(o){if(s)return!1;if(i.add(r),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const l of c)os(l,n,t,i)}}else{if(!a)return!1;{if(null!=a.imports&&!s){let l;i.add(r);try{k3(a.imports,u=>{os(u,n,t,i)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Sd(l,n)}if(!s){const l=O4(r)||(()=>new r);n({provide:r,useFactory:l,deps:Ie},r),n({provide:n8,useValue:r,multi:!0},r),n({provide:R4,useValue:()=>te(r),multi:!0},r)}const c=a.providers;if(null!=c&&!s){const l=e;o8(c,u=>{n(u,l)})}}}return r!==e&&void 0!==e.providers}function o8(e,n){for(let t of e)q0(t)&&(t=t.\u0275providers),Array.isArray(t)?o8(t,n):n(t)}const yA=qe({provide:String,useValue:qe});function s8(e){return null!==e&&"object"==typeof e&&yA in e}function P4(e){return"function"==typeof e}const c8=new q(""),ss={},bA={};let l8;function cs(){return void 0===l8&&(l8=new ns),l8}class E2{}class R3 extends E2{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,f8(n,o=>this.processProvider(o)),this.records.set(vd,P3(void 0,this)),r.has("environment")&&this.records.set(E2,P3(void 0,this));const a=this.records.get(c8);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(n8,Ie,ze.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=D(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(),D(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=a4(this),i=j2(void 0);try{return n()}finally{a4(t),j2(i)}}get(n,t=hr,i=ze.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(ld))return n[ld](this);i=Zo(i);const a=a4(this),o=j2(void 0);try{if(!(i&ze.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function DA(e){return"function"==typeof e||"object"==typeof e&&e instanceof q}(n)&&qo(n);c=l&&this.injectableDefInScope(l)?P3(u8(n),ss):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&ze.Self?cs():this.parent).get(n,t=i&ze.Optional&&t===hr?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Qo]=s[Qo]||[]).unshift(K1(n)),a)throw s;return function JI(e,n,t,i){const r=e[Qo];throw n[dd]&&r.unshift(n[dd]),e.message=function XI(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=K1(n);if(Array.isArray(n))r=n.map(K1).join(" -> ");else if("object"==typeof n){let a=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):K1(s)))}r=`{${a.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(qI,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Qo]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{j2(o),a4(a)}}resolveInjectorInitializers(){const n=D(null),t=a4(this),i=j2(void 0);try{const a=this.get(R4,Ie,ze.Self);for(const o of a)o()}finally{a4(t),j2(i),D(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(K1(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processProvider(n){let t=P4(n=ae(n))?n:ae(n&&n.provide);const i=function HA(e){return s8(e)?P3(void 0,e.useValue):P3(xd(e),ss)}(n);if(!P4(n)&&!0===n.multi){let r=this.records.get(t);r||(r=P3(void 0,ss,!0),r.factory=()=>X0(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=D(null);try{return t.value===ss&&(t.value=bA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function zA(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{D(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ae(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 u8(e){const n=qo(e),t=null!==n?n.factory:O4(e);if(null!==t)return t;if(e instanceof q)throw new A(204,!1);if(e instanceof Function)return function wA(e){if(e.length>0)throw new A(204,!1);const t=function FI(e){return e&&(e[Ko]||e[od])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new A(204,!1)}function xd(e,n,t){let i;if(P4(e)){const r=ae(e);return O4(r)||u8(r)}if(s8(e))i=()=>ae(e.useValue);else if(function Ld(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...X0(e.deps||[]));else if(function Nd(e){return!(!e||!e.useExisting)}(e))i=()=>te(ae(e.useExisting));else{const r=ae(e&&(e.useClass||e.provide));if(!function VA(e){return!!e.deps}(e))return O4(r)||u8(r);i=()=>new r(...X0(e.deps))}return i}function P3(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function f8(e,n){for(const t of e)Array.isArray(t)?f8(t,n):t&&q0(t)?f8(t.\u0275providers,n):n(t)}function kn(e,n){e instanceof R3&&e.assertNotDestroyed();const i=a4(e),r=j2(void 0);try{return n()}finally{a4(i),j2(r)}}function Ed(){return void 0!==ud()||null!=function KI(){return A3}()}function gr(e){if(!Ed())throw new A(-203,!1)}const b1=0,U=1,J=2,k1=3,Et=4,V2=5,at=6,B3=7,o1=8,v2=9,Tt=10,ce=11,_r=12,Id=13,U3=14,S1=15,Cr=16,j3=17,On=18,yr=19,Ad=20,s4=21,us=22,F4=23,me=25,h8=1,tn=7,G3=9,O1=10;var p8=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(p8||{});function z2(e){return Array.isArray(e)&&"object"==typeof e[h8]}function D2(e){return Array.isArray(e)&&!0===e[h8]}function m8(e){return!!(4&e.flags)}function B4(e){return e.componentOffset>-1}function ds(e){return!(1&~e.flags)}function It(e){return!!e.template}function g8(e){return!!(512&e[J])}class FA{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Pd(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}function T1(){return Fd}function Fd(e){return e.type.prototype.ngOnChanges&&(e.setInput=UA),BA}function BA(){const e=Ud(this),n=e?.current;if(n){const t=e.previous;if(t===en)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function UA(e,n,t,i,r){const a=this.declaredInputs[i],o=Ud(e)||function jA(e,n){return e[Bd]=n}(e,{previous:en,current:null}),s=o.current||(o.current={}),c=o.previous,l=c[a];s[a]=new FA(l&&l.currentValue,t,c===en),Pd(e,n,r,t)}T1.ngInherit=!0;const Bd="__ngSimpleChanges__";function Ud(e){return e[Bd]||null}const nn=function(e,n,t){},jd="svg";let $d=!1;function Je(e){for(;Array.isArray(e);)e=e[b1];return e}function br(e,n){return Je(n[e])}function T2(e,n){return Je(n[e.index])}function wr(e,n){return e.data[n]}function ot(e,n){const t=n[e];return z2(t)?t:t[b1]}function M8(e){return!(128&~e[J])}function rn(e,n){return null==n?null:e[n]}function Wd(e){e[j3]=0}function KA(e){1024&e[J]||(e[J]|=1024,M8(e)&&Hr(e))}function b8(e){return!!(9216&e[J]||e[F4]?.dirty)}function w8(e){e[Tt].changeDetectionScheduler?.notify(1),b8(e)?Hr(e):64&e[J]&&(function $A(){return $d}()?(e[J]|=1024,Hr(e)):e[Tt].changeDetectionScheduler?.notify())}function Hr(e){e[Tt].changeDetectionScheduler?.notify();let n=U4(e);for(;null!==n&&!(8192&n[J])&&(n[J]|=8192,M8(n));)n=U4(n)}function hs(e,n){if(!(256&~e[J]))throw new A(911,!1);null===e[s4]&&(e[s4]=[]),e[s4].push(n)}function U4(e){const n=e[k1];return D2(n)?n[k1]:n}const le={lFrame:nh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Kd(){return le.bindingsEnabled}function W3(){return null!==le.skipHydrationRootTNode}function T(){return le.lFrame.lView}function De(){return le.lFrame.tView}function be(e){return le.lFrame.contextLView=e,e[o1]}function we(e){return le.lFrame.contextLView=null,e}function Ke(){let e=Qd();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qd(){return le.lFrame.currentTNode}function an(e,n){const t=le.lFrame;t.currentTNode=e,t.isParent=n}function V8(){return le.lFrame.isParent}function z8(){le.lFrame.isParent=!1}function Rn(){return le.lFrame.bindingIndex}function At(){return le.lFrame.bindingIndex++}function Pn(e){const n=le.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function ok(e,n){const t=le.lFrame;t.bindingIndex=t.bindingRootIndex=e,D8(n)}function D8(e){le.lFrame.currentDirectiveIndex=e}function N8(){return le.lFrame.currentQueryIndex}function ps(e){le.lFrame.currentQueryIndex=e}function ck(e){const n=e[U];return 2===n.type?n.declTNode:1===n.type?e[V2]:null}function eh(e,n,t){if(t&ze.SkipSelf){let r=n,a=e;for(;!(r=r.parent,null!==r||t&ze.Host||(r=ck(a),null===r||(a=a[U3],10&r.type))););if(null===r)return!1;n=r,e=a}const i=le.lFrame=th();return i.currentTNode=n,i.lView=e,!0}function L8(e){const n=th(),t=e[U];le.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function th(){const e=le.lFrame,n=null===e?null:e.child;return null===n?nh(e):n}function nh(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 ih(){const e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const rh=ih;function x8(){const e=ih();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 S2(){return le.lFrame.selectedIndex}function j4(e){le.lFrame.selectedIndex=e}function s1(){const e=le.lFrame;return wr(e.tView,e.selectedIndex)}function zr(){le.lFrame.currentNamespace=jd}function Dr(){!function fk(){le.lFrame.currentNamespace=null}()}let oh=!0;function Sr(){return oh}function on(e){oh=e}function ms(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const a=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;o&&(e.contentHooks??=[]).push(-t,o),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!=u&&(e.destroyHooks??=[]).push(t,u)}}function gs(e,n,t){sh(e,n,3,t)}function vs(e,n,t,i){(3&e[J])===t&&sh(e,n,t,i)}function E8(e,n){let t=e[J];(3&t)===n&&(t&=16383,t+=1,e[J]=t)}function sh(e,n,t,i){const a=i??-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&e[j3]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[j3]+=65536),(s<a||-1==a)&&(hk(e,t,n,c),e[j3]=(4294901760&e[j3])+c+2),c++}function ch(e,n){nn(4,e,n);const t=D(null);try{n.call(e)}finally{D(t),nn(5,e,n)}}function hk(e,n,t,i){const r=t[i]<0,a=t[i+1],s=e[r?-t[i]:t[i]];r?e[J]>>14<e[j3]>>16&&(3&e[J])===n&&(e[J]+=16384,ch(s,a)):ch(s,a)}const q3=-1;class Nr{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function I8(e){return e!==q3}function Lr(e){return 32767&e}function xr(e,n){let t=function _k(e){return e>>16}(e),i=n;for(;t>0;)i=i[U3],t--;return i}let A8=!0;function _s(e){const n=A8;return A8=e,n}const lh=255,uh=5;let Ck=0;const sn={};function Cs(e,n){const t=fh(e,n);if(-1!==t)return t;const i=n[U];i.firstCreatePass&&(e.injectorIndex=n.length,k8(i.data,e),k8(n,null),k8(i.blueprint,null));const r=ys(e,n),a=e.injectorIndex;if(I8(r)){const o=Lr(r),s=xr(r,n),c=s[U].data;for(let l=0;l<8;l++)n[a+l]=s[o+l]|c[o+l]}return n[a+8]=r,a}function k8(e,n){e.push(0,0,0,0,0,0,0,0,n)}function fh(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function ys(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=_h(r),null===i)return q3;if(t++,r=r[U3],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return q3}function O8(e,n,t){!function yk(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(dr)&&(i=t[dr]),null==i&&(i=t[dr]=Ck++);const r=i&lh;n.data[e+(r>>uh)]|=1<<r}(e,n,t)}function dh(e,n,t){if(t&ze.Optional||void 0!==e)return e;Q0()}function hh(e,n,t,i){if(t&ze.Optional&&void 0===i&&(i=null),!(t&(ze.Self|ze.Host))){const r=e[v2],a=j2(void 0);try{return r?r.get(n,i,t&ze.Optional):fd(n,i,t&ze.Optional)}finally{j2(a)}}return dh(i,0,t)}function ph(e,n,t,i=ze.Default,r){if(null!==e){if(2048&n[J]&&!(i&ze.Self)){const o=function Vk(e,n,t,i,r){let a=e,o=n;for(;null!==a&&null!==o&&2048&o[J]&&!(512&o[J]);){const s=mh(a,o,t,i|ze.Self,sn);if(s!==sn)return s;let c=a.parent;if(!c){const l=o[Ad];if(l){const u=l.get(t,sn,i);if(u!==sn)return u}c=_h(o),o=o[U3]}a=c}return r}(e,n,t,i,sn);if(o!==sn)return o}const a=mh(e,n,t,i,sn);if(a!==sn)return a}return hh(n,t,i,r)}function mh(e,n,t,i,r){const a=function wk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(dr)?e[dr]:void 0;return"number"==typeof n?n>=0?n&lh:Hk:n}(t);if("function"==typeof a){if(!eh(n,e,i))return i&ze.Host?dh(r,0,i):hh(n,t,i,r);try{let o;if(o=a(i),null!=o||i&ze.Optional)return o;Q0()}finally{rh()}}else if("number"==typeof a){let o=null,s=fh(e,n),c=q3,l=i&ze.Host?n[S1][V2]:null;for((-1===s||i&ze.SkipSelf)&&(c=-1===s?ys(e,n):n[s+8],c!==q3&&vh(i,!1)?(o=n[U],s=Lr(c),n=xr(c,n)):s=-1);-1!==s;){const u=n[U];if(gh(a,s,u.data)){const f=bk(s,n,t,o,i,l);if(f!==sn)return f}c=n[s+8],c!==q3&&vh(i,n[U].data[s+8]===l)&&gh(a,s,n)?(o=u,s=Lr(c),n=xr(c,n)):s=-1}}return r}function bk(e,n,t,i,r,a){const o=n[U],s=o.data[e+8],u=Ms(s,o,t,null==i?B4(s)&&A8:i!=o&&!!(3&s.type),r&ze.Host&&a===s);return null!==u?G4(n,o,u,s):sn}function Ms(e,n,t,i,r){const a=e.providerIndexes,o=n.data,s=1048575&a,c=e.directiveStart,u=a>>20,p=r?s+u:e.directiveEnd;for(let g=i?s:s+u;g<p;g++){const b=o[g];if(g<c&&t===b||g>=c&&b.type===t)return g}if(r){const g=o[c];if(g&&It(g)&&g.type===t)return c}return null}function G4(e,n,t,i){let r=e[t];const a=n.data;if(function pk(e){return e instanceof Nr}(r)){const o=r;o.resolving&&function GI(e,n){throw n&&n.join(" > "),new A(-200,e)}(function Re(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)}(a[t]));const s=_s(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?j2(o.injectImpl):null;eh(e,i,ze.Default);try{r=e[t]=o.factory(void 0,a,e,i),n.firstCreatePass&&t>=i.directiveStart&&function dk(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=n.type.prototype;if(i){const o=Fd(n);(t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o)}r&&(t.preOrderHooks??=[]).push(0-e,r),a&&((t.preOrderHooks??=[]).push(e,a),(t.preOrderCheckHooks??=[]).push(e,a))}(t,a[t],n)}finally{null!==l&&j2(l),_s(s),o.resolving=!1,rh()}}return r}function gh(e,n,t){return!!(t[n+(e>>uh)]&1<<e)}function vh(e,n){return!(e&ze.Self||e&ze.Host&&n)}class J1{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return ph(this._tNode,this._lView,n,Zo(i),t)}}function Hk(){return new J1(Ke(),T())}function c1(e){return In(()=>{const n=e.prototype.constructor,t=n[An]||R8(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const a=r[An]||R8(r);if(a&&a!==t)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function R8(e){return Wo(e)?()=>{const n=R8(ae(e));return n&&n()}:O4(e)}function _h(e){const n=e[U],t=n.type;return 2===t?n.declTNode:1===t?e[V2]:null}function wh(e,n=null,t=null,i){const r=Hh(e,n,t,i);return r.resolveInjectorInitializers(),r}function Hh(e,n=null,t=null,i,r=new Set){const a=[t||Ie,Dd(e)];return i=i||("object"==typeof e?void 0:K1(e)),new R3(a,n||cs(),i||null,r)}let U1=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=hr;static#t=this.NULL=new ns;static create(t,i){if(Array.isArray(t))return wh({name:""},i,t,"");{const r=t.name??"";return wh({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=B({token:e,providedIn:"any",factory:()=>te(vd)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function F8(e){return e.ngOriginalError}class cn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&F8(n);for(;t&&F8(t);)t=F8(t);return t||null}}const zh=new q("",{providedIn:"root",factory:()=>H(cn).handleError.bind(void 0)});let ln=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ik;static#t=this.__NG_ENV_ID__=t=>t}return e})();class Tk extends ln{constructor(n){super(),this._lView=n}onDestroy(n){return hs(this._lView,n),()=>function H8(e,n){if(null===e[s4])return;const t=e[s4].indexOf(n);-1!==t&&e[s4].splice(t,1)}(this._lView,n)}}function Ik(){return new Tk(T())}function Ak(){return Q3(Ke(),T())}function Q3(e,n){return new Ae(T2(e,n))}let Ae=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=Ak}return e})();function Sh(e){return e instanceof Ae?e.nativeElement:e}function B8(e){return n=>{setTimeout(e,void 0,n)}}const Z=class kk extends a1{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,Ed()&&(this.destroyRef=H(ln,{optional:!0})??void 0)}emit(n){const t=D(null);try{super.next(n)}finally{D(t)}}subscribe(n,t,i){let r=n,a=t||(()=>null),o=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),a=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(a=B8(a),r&&(r=B8(r)),o&&(o=B8(o)));const s=super.subscribe({next:r,error:a,complete:o});return n instanceof m2&&n.add(s),s}};function Ok(){return this._results[Symbol.iterator]()}class U8{static#e=Symbol.iterator;get changes(){return this._changes??=new Z}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=U8.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=Ok)}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 G2(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function iA(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],a=n[i];if(t&&(r=t(r),a=t(a)),a!==r)return!1}return!0}(this._results,i,t))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function ws(e){return!(128&~e.flags)}const j8=new Map;let Pk=0;const $8="__ngContext__";function N2(e,n){z2(n)?(e[$8]=n[yr],function Bk(e){j8.set(e[yr],e)}(n)):e[$8]=n}function Rh(e){return Fh(e[_r])}function Ph(e){return Fh(e[Et])}function Fh(e){for(;null!==e&&!D2(e);)e=e[Et];return e}let W8;function l4(){if(void 0!==W8)return W8;if(typeof document<"u")return document;throw new A(210,!1)}const zs=new q("",{providedIn:"root",factory:()=>aO}),aO="ng",Yh=new q(""),$4=new q("",{providedIn:"platform",factory:()=>"unknown"}),Kh=new q("",{providedIn:"root",factory:()=>l4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Qh=()=>null;function el(e,n,t=!1){return Qh(e,n,t)}const tp=new q("",{providedIn:"root",factory:()=>!1});let Ts,Is;function X3(e){return function rl(){if(void 0===Ts&&(Ts=null,Ue.trustedTypes))try{Ts=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ts}()?.createHTML(e)||e}function al(){if(void 0===Is&&(Is=null,Ue.trustedTypes))try{Is=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Is}function ip(e){return al()?.createHTML(e)||e}function ap(e){return al()?.createScriptURL(e)||e}class W4{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${td})`}}class CO extends W4{getTypeName(){return"HTML"}}class yO extends W4{getTypeName(){return"Style"}}class MO extends W4{getTypeName(){return"Script"}}class bO extends W4{getTypeName(){return"URL"}}class wO extends W4{getTypeName(){return"ResourceURL"}}function st(e){return e instanceof W4?e.changingThisBreaksApplicationSecurity:e}function un(e,n){const t=function HO(e){return e instanceof W4&&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 ${td})`)}return t===n}class LO{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(X3(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class xO{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=X3(n),t}}const TO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function As(e){return(e=String(e)).match(TO)?e:"unsafe:"+e}function Fn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Rr(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const sp=Fn("area,br,col,hr,img,wbr"),cp=Fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lp=Fn("rp,rt"),ol=Rr(sp,Rr(cp,Fn("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")),Rr(lp,Fn("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")),Rr(lp,cp)),sl=Fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),up=Rr(sl,Fn("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"),Fn("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")),IO=Fn("script,style,template");class AO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)r.push(t),t=RO(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let a=OO(t);if(a){t=a;break}t=r.pop()}return this.buf.join("")}startElement(n){const t=fp(n).toLowerCase();if(!ol.hasOwnProperty(t))return this.sanitizedSomething=!0,!IO.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),o=a.name,s=o.toLowerCase();if(!up.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=a.value;sl[s]&&(c=As(c)),this.buf.push(" ",o,'="',hp(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=fp(n).toLowerCase();ol.hasOwnProperty(t)&&!sp.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(hp(n))}}function OO(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw dp(n);return n}function RO(e){const n=e.firstChild;if(n&&function kO(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw dp(n);return n}function fp(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function dp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const PO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FO=/([^\#-~ |!])/g;function hp(e){return e.replace(/&/g,"&amp;").replace(PO,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(FO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ks;function pp(e,n){let t=null;try{ks=ks||function op(e){const n=new xO(e);return function EO(){try{return!!(new window.DOMParser).parseFromString(X3(""),"text/html")}catch{return!1}}()?new LO(n):n}(e);let i=n?String(n):"";t=ks.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=t.innerHTML,t=ks.getInertBodyElement(i)}while(i!==a);return X3((new AO).sanitizeChildren(cl(t)||t))}finally{if(t){const i=cl(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function cl(e){return"content"in e&&function BO(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Mt=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}(Mt||{});function mp(e){const n=Fr();return n?ip(n.sanitize(Mt.HTML,e)||""):un(e,"HTML")?ip(st(e)):pp(l4(),pe(e))}function q4(e){const n=Fr();return n?n.sanitize(Mt.STYLE,e)||"":un(e,"Style")?st(e):pe(e)}function Pr(e){const n=Fr();return n?n.sanitize(Mt.URL,e)||"":un(e,"URL")?st(e):As(pe(e))}function gp(e){const n=Fr();if(n)return ap(n.sanitize(Mt.RESOURCE_URL,e)||"");if(un(e,"ResourceURL"))return ap(st(e));throw new A(904,!1)}function Fr(){const e=T();return e&&e[Tt].sanitizer}function ct(e){return e instanceof Function?e():e}var f4=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(f4||{});let dl;function hl(e,n){return dl(e,n)}function ti(e,n,t,i,r){if(null!=i){let a,o=!1;D2(i)?a=i:z2(i)&&(o=!0,i=i[b1]);const s=Je(i);0===e&&null!==t?null==r?Np(n,t,s):Y4(n,t,s,r||null,!0):1===e&&null!==t?Y4(n,t,s,r||null,!0):2===e?function jr(e,n,t){const i=Bs(e,n);i&&function hR(e,n,t,i){e.removeChild(n,t,i)}(e,i,n,t)}(n,s,o):3===e&&n.destroyNode(s),null!=a&&function gR(e,n,t,i,r){const a=t[tn];a!==Je(t)&&ti(n,e,i,a,r);for(let s=O1;s<t.length;s++){const c=t[s];js(c[U],c,e,n,i,a)}}(n,e,a,t,r)}}function Ps(e,n,t){return e.createElement(n,t)}function zp(e,n){n[Tt].changeDetectionScheduler?.notify(1),js(e,n,n[ce],2,null,null)}function Dp(e,n){const t=e[G3],i=t.indexOf(n);t.splice(i,1)}function Br(e,n){if(e.length<=O1)return;const t=O1+n,i=e[t];if(i){const r=i[Cr];null!==r&&r!==e&&Dp(r,i),n>0&&(e[t-1][Et]=i[Et]);const a=es(e,O1+n);!function oR(e,n){zp(e,n),n[b1]=null,n[V2]=null}(i[U],i);const o=a[On];null!==o&&o.detachView(a[U]),i[k1]=null,i[Et]=null,i[J]&=-129}return i}function Fs(e,n){if(!(256&n[J])){const t=n[ce];t.destroyNode&&js(e,n,t,3,null,null),function cR(e){let n=e[_r];if(!n)return gl(e[U],e);for(;n;){let t=null;if(z2(n))t=n[_r];else{const i=n[O1];i&&(t=i)}if(!t){for(;n&&!n[Et]&&n!==e;)z2(n)&&gl(n[U],n),n=n[k1];null===n&&(n=e),z2(n)&&gl(n[U],n),t=n&&n[Et]}n=t}}(n)}}function gl(e,n){if(256&n[J])return;const t=D(null);try{n[J]&=-129,n[J]|=256,n[F4]&&function Qt(e){if(i4(e),A4(e))for(let n=0;n<e.producerNode.length;n++)I4(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)}(n[F4]),function dR(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 Nr)){const a=t[i+1];if(Array.isArray(a))for(let o=0;o<a.length;o+=2){const s=r[a[o]],c=a[o+1];nn(4,s,c);try{c.call(s)}finally{nn(5,s,c)}}else{nn(4,r,a);try{a.call(r)}finally{nn(5,r,a)}}}}}(e,n),function fR(e,n){const t=e.cleanup,i=n[B3];if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const o=t[a+3];o>=0?i[o]():i[-o].unsubscribe(),a+=2}else t[a].call(i[t[a+1]]);null!==i&&(n[B3]=null);const r=n[s4];if(null!==r){n[s4]=null;for(let a=0;a<r.length;a++)(0,r[a])()}}(e,n),1===n[U].type&&n[ce].destroy();const i=n[Cr];if(null!==i&&D2(n[k1])){i!==n[k1]&&Dp(i,n);const r=n[On];null!==r&&r.detachView(e)}!function Uk(e){j8.delete(e[yr])}(n)}finally{D(t)}}function vl(e,n,t){return function Sp(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[b1];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:a}=e.data[i.directiveStart+r];if(a===Lt.None||a===Lt.Emulated)return null}return T2(i,t)}}(e,n.parent,t)}function Y4(e,n,t,i,r){e.insertBefore(n,t,i,r)}function Np(e,n,t){e.appendChild(n,t)}function Lp(e,n,t,i,r){null!==i?Y4(e,n,t,i,r):Np(e,n,t)}function Bs(e,n){return e.parentNode(n)}function xp(e,n,t){return Tp(e,n,t)}let _l,Tp=function Ep(e,n,t){return 40&e.type?T2(e,t):null};function Us(e,n,t,i){const r=vl(e,i,n),a=n[ce],s=xp(i.parent||n[V2],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)Lp(a,r,t[c],s,!1);else Lp(a,r,t,s,!1);void 0!==_l&&_l(a,i,n,t,r)}function Ur(e,n){if(null!==n){const t=n.type;if(3&t)return T2(n,e);if(4&t)return Cl(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return Ur(e,i);{const r=e[n.index];return D2(r)?Cl(-1,r):Je(r)}}if(32&t)return hl(n,e)()||Je(e[n.index]);{const i=Ap(e,n);return null!==i?Array.isArray(i)?i[0]:Ur(U4(e[S1]),i):Ur(e,n.next)}}return null}function Ap(e,n){return null!==n?e[S1][V2].projection[n.projection]:null}function Cl(e,n){const t=O1+e+1;if(t<n.length){const i=n[t],r=i[U].firstChild;if(null!==r)return Ur(i,r)}return n[tn]}function yl(e,n,t,i,r,a,o){for(;null!=t;){const s=i[t.index],c=t.type;if(o&&0===n&&(s&&N2(Je(s),i),t.flags|=2),32&~t.flags)if(8&c)yl(e,n,t.child,i,r,a,!1),ti(n,e,r,s,a);else if(32&c){const l=hl(t,i);let u;for(;u=l();)ti(n,e,r,u,a);ti(n,e,r,s,a)}else 16&c?Op(e,n,i,t,r,a):ti(n,e,r,s,a);t=o?t.projectionNext:t.next}}function js(e,n,t,i,r,a){yl(t,i,e.firstChild,n,r,a,!1)}function Op(e,n,t,i,r,a){const o=t[S1],c=o[V2].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)ti(n,e,r,c[l],a);else{let l=c;const u=o[k1];ws(i)&&(l.flags|=128),yl(e,n,l,u,r,a,!0)}}function Rp(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Pp(e,n,t){const{mergedAttrs:i,classes:r,styles:a}=t;null!==i&&i8(e,n,i),null!==r&&Rp(e,n,r),null!==a&&function _R(e,n,t){e.setAttribute(n,"style",t)}(e,n,a)}const ge={};function C(e=1){Fp(De(),T(),S2()+e,!1)}function Fp(e,n,t,i){if(!i)if(3&~n[J]){const a=e.preOrderHooks;null!==a&&vs(n,a,0,t)}else{const a=e.preOrderCheckHooks;null!==a&&gs(n,a,t)}j4(t)}function E(e,n=ze.Default){const t=T();return null===t?te(e,n):ph(Ke(),t,ae(e),n)}function Up(e,n,t,i,r,a){const o=D(null);try{let s=null;r&Ge.SignalBased&&(s=n[i][Be]),null!==s&&void 0!==s.transformFn&&(a=s.transformFn(a)),r&Ge.HasDecoratorInputTransform&&(a=e.inputTransforms[i].call(n,a)),null!==e.setInput?e.setInput(n,s,a,t,i):Pd(n,s,i,a)}finally{D(o)}}function Gs(e,n,t,i,r,a,o,s,c,l,u){const f=n.blueprint.slice();return f[b1]=r,f[J]=204|i,(null!==l||e&&2048&e[J])&&(f[J]|=2048),Wd(f),f[k1]=f[U3]=e,f[o1]=t,f[Tt]=o||e&&e[Tt],f[ce]=s||e&&e[ce],f[v2]=c||e&&e[v2]||null,f[V2]=a,f[yr]=function Fk(){return Pk++}(),f[at]=u,f[Ad]=l,f[S1]=2==n.type?e[S1]:f,f}function ni(e,n,t,i,r){let a=e.data[n];if(null===a)a=function Ml(e,n,t,i,r){const a=Qd(),o=V8(),c=e.data[n]=function zR(e,n,t,i,r,a){let o=n?n.injectorIndex:-1,s=0;return W3()&&(s|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(o?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c,c.prev=a)),c}(e,n,t,i,r),function ak(){return le.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=t,a.value=i,a.attrs=r;const o=function Vr(){const e=le.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return an(a,!0),a}function Gr(e,n,t,i){if(0===t)return-1;const r=n.length;for(let a=0;a<t;a++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function jp(e,n,t,i,r){const a=S2(),o=2&i;try{j4(-1),o&&n.length>me&&Fp(e,n,me,!1),nn(o?2:0,r),t(i,r)}finally{j4(a),nn(o?3:1,r)}}function bl(e,n,t){if(m8(n)){const i=D(null);try{const a=n.directiveEnd;for(let o=n.directiveStart;o<a;o++){const s=e.data[o];s.contentQueries&&s.contentQueries(1,t[o],o)}}finally{D(i)}}}function wl(e,n,t){Kd()&&(function TR(e,n,t,i){const r=t.directiveStart,a=t.directiveEnd;B4(t)&&function FR(e,n,t){const i=T2(n,e),r=Gp(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const s=$s(e,Gs(e,r,null,o,i,n,null,e[Tt].rendererFactory.createRenderer(i,t),null,null,null));e[n.index]=s}(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||Cs(t,n),N2(i,n);const o=t.initialInputs;for(let s=r;s<a;s++){const c=e.data[s],l=G4(n,e,s,t);N2(l,n),null!==o&&BR(0,s-r,l,c,0,o),It(c)&&(ot(t.index,n)[o1]=G4(n,e,s,t))}}(e,n,t,T2(t,n)),!(64&~t.flags)&&Kp(e,n,t))}function Hl(e,n,t=T2){const i=n.localNames;if(null!==i){let r=n.index+1;for(let a=0;a<i.length;a+=2){const o=i[a+1],s=-1===o?t(n,e):e[o];e[r++]=s}}}function Gp(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Vl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Vl(e,n,t,i,r,a,o,s,c,l,u){const f=me+i,p=f+r,g=function yR(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:ge);return t}(f,p),b="function"==typeof l?l():l;return g[U]={type:e,blueprint:g,template:t,queries:null,viewQuery:s,declTNode:n,data:g.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,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 a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:b,incompleteFirstPass:!1,ssrId:u}}let $p=()=>null;function Wp(e,n,t,i,r){for(let a in n){if(!n.hasOwnProperty(a))continue;const o=n[a];if(void 0===o)continue;i??={};let s,c=Ge.None;Array.isArray(o)?(s=o[0],c=o[1]):s=o;let l=a;if(null!==r){if(!r.hasOwnProperty(a))continue;l=r[a]}0===e?qp(i,t,l,s,c):qp(i,t,l,s)}return i}function qp(e,n,t,i,r){let a;e.hasOwnProperty(t)?(a=e[t]).push(n,i):a=e[t]=[n,i],void 0!==r&&a.push(r)}function q2(e,n,t,i,r,a,o,s){const c=T2(n,t);let u,l=n.inputs;!s&&null!=l&&(u=l[i])?(Ll(e,t,u,i,r),B4(n)&&function NR(e,n){const t=ot(n,e);16&t[J]||(t[J]|=64)}(t,n.index)):3&n.type&&(i=function SR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=o?o(r,n.value||"",i):r,a.setProperty(c,i,r))}function zl(e,n,t,i){if(Kd()){const r=null===i?null:{"":-1},a=function AR(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let a=0;a<t.length;a++){const o=t[a];if(bd(n,o.selectors,!1))if(i||(i=[]),It(o))if(null!==o.findHostDirectiveDefs){const s=[];r=r||new Map,o.findHostDirectiveDefs(o,s,r),i.unshift(...s,o),Dl(e,n,s.length)}else i.unshift(o),Dl(e,n,0);else r=r||new Map,o.findHostDirectiveDefs?.(o,i,r),i.push(o)}return null===i?null:[i,r]}(e,t);let o,s;null===a?o=s=null:[o,s]=a,null!==o&&Yp(e,n,t,o,r,s),r&&function kR(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const a=t[n[r+1]];if(null==a)throw new A(-301,!1);i.push(n[r],a)}}}(t,i,r)}t.mergedAttrs=mr(t.mergedAttrs,t.attrs)}function Yp(e,n,t,i,r,a){for(let l=0;l<i.length;l++)O8(Cs(t,n),e,i[l].type);!function RR(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,i.length);for(let l=0;l<i.length;l++){const u=i[l];u.providersResolver&&u.providersResolver(u)}let o=!1,s=!1,c=Gr(e,n,i.length,null);for(let l=0;l<i.length;l++){const u=i[l];t.mergedAttrs=mr(t.mergedAttrs,u.hostAttrs),PR(e,t,n,c,u),OR(c,u,r),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const f=u.type.prototype;!o&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),o=!0),!s&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),s=!0),c++}!function DR(e,n,t){const r=n.directiveEnd,a=e.data,o=n.attrs,s=[];let c=null,l=null;for(let u=n.directiveStart;u<r;u++){const f=a[u],p=t?t.get(f):null,b=p?p.outputs:null;c=Wp(0,f.inputs,u,c,p?p.inputs:null),l=Wp(1,f.outputs,u,l,b);const w=null===c||null===o||r8(n)?null:UR(c,u,o);s.push(w)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=s,n.inputs=c,n.outputs=l}(e,t,a)}function Kp(e,n,t){const i=t.directiveStart,r=t.directiveEnd,a=t.index,o=function sk(){return le.lFrame.currentDirectiveIndex}();try{j4(a);for(let s=i;s<r;s++){const c=e.data[s],l=n[s];D8(s),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&IR(c,l)}}finally{j4(-1),D8(o)}}function IR(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Dl(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function OR(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;It(n)&&(t[""]=e)}}function PR(e,n,t,i,r){e.data[i]=r;const a=r.factory||(r.factory=O4(r.type)),o=new Nr(a,It(r),E);e.blueprint[i]=o,t[i]=o,function xR(e,n,t,i,r){const a=r.hostBindings;if(a){let o=e.hostBindingOpCodes;null===o&&(o=e.hostBindingOpCodes=[]);const s=~n.index;(function ER(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(o)!=s&&o.push(s),o.push(t,i,a)}}(e,n,i,Gr(e,t,r.hostVars,ge),r)}function fn(e,n,t,i,r,a){const o=T2(e,n);!function Sl(e,n,t,i,r,a,o){if(null==a)e.removeAttribute(n,r,t);else{const s=null==o?pe(a):o(a,i||"",r);e.setAttribute(n,r,s,t)}}(n[ce],o,a,e.value,t,i,r)}function BR(e,n,t,i,r,a){const o=a[n];if(null!==o)for(let s=0;s<o.length;)Up(i,t,o[s++],o[s++],o[s++],o[s++])}function UR(e,n,t){let i=null,r=0;for(;r<t.length;){const a=t[r];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===i&&(i=[]);const o=e[a];for(let s=0;s<o.length;s+=3)if(o[s]===n){i.push(a,o[s+1],o[s+2],t[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function Qp(e,n,t,i){return[e,!0,0,n,null,i,null,t,null,null]}function Zp(e,n){const t=e.contentQueries;if(null!==t){const i=D(null);try{for(let r=0;r<t.length;r+=2){const o=t[r+1];if(-1!==o){const s=e.data[o];ps(t[r]),s.contentQueries(2,n[o],o)}}}finally{D(i)}}}function $s(e,n){return e[_r]?e[Id][Et]=n:e[_r]=n,e[Id]=n,n}function Nl(e,n,t){ps(0);const i=D(null);try{n(e,t)}finally{D(i)}}function Jp(e){return e[B3]||(e[B3]=[])}function Xp(e){return e.cleanup||(e.cleanup=[])}function Ws(e,n){const t=e[v2],i=t?t.get(cn,null):null;i&&i.handleError(n)}function Ll(e,n,t,i,r){for(let a=0;a<t.length;){const o=t[a++],s=t[a++],c=t[a++];Up(e.data[o],n[o],i,s,c,r)}}function Bn(e,n,t){const i=br(n,e);!function Vp(e,n,t){e.setValue(n,t)}(e[ce],i,t)}function jR(e,n){const t=ot(n,e),i=t[U];!function GR(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[b1];null!==r&&null===t[at]&&(t[at]=el(r,t[v2])),xl(i,t,t[o1])}function xl(e,n,t){L8(n);try{const i=e.viewQuery;null!==i&&Nl(1,i,t);const r=e.template;null!==r&&jp(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[On]?.finishViewCreation(e),e.staticContentQueries&&Zp(e,n),e.staticViewQueries&&Nl(2,e.viewQuery,t);const a=e.components;null!==a&&function $R(e,n){for(let t=0;t<n.length;t++)jR(e,n[t])}(n,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[J]&=-5,x8()}}function $r(e,n,t,i){const r=D(null);try{const a=n.tView,c=Gs(e,a,t,4096&e[J]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);c[Cr]=e[n.index];const u=e[On];return null!==u&&(c[On]=u.createEmbeddedView(a)),xl(a,c,t),c}finally{D(r)}}function ii(e,n){return!n||null===n.firstChild||ws(e)}function Wr(e,n,t,i=!0){const r=n[U];if(function lR(e,n,t,i){const r=O1+i,a=t.length;i>0&&(t[r-1][Et]=n),i<a-O1?(n[Et]=t[r],pd(t,O1+i,n)):(t.push(n),n[Et]=null),n[k1]=t;const o=n[Cr];null!==o&&t!==o&&function uR(e,n){const t=e[G3];n[S1]!==n[k1][k1][S1]&&(e[J]|=p8.HasTransplantedViews),null===t?e[G3]=[n]:t.push(n)}(o,n);const s=n[On];null!==s&&s.insertView(e),w8(n),n[J]|=128}(r,n,e,t),i){const o=Cl(t,e),s=n[ce],c=Bs(s,e[tn]);null!==c&&function sR(e,n,t,i,r,a){i[b1]=r,i[V2]=n,js(e,i,t,1,r,a)}(r,e[V2],s,n,c,o)}const a=n[at];null!==a&&null!==a.firstChild&&(a.firstChild=null)}function qr(e,n,t,i,r=!1){for(;null!==t;){const a=n[t.index];null!==a&&i.push(Je(a)),D2(a)&&nm(a,i);const o=t.type;if(8&o)qr(e,n,t.child,i);else if(32&o){const s=hl(t,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Ap(n,t);if(Array.isArray(s))i.push(...s);else{const c=U4(n[S1]);qr(c[U],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}function nm(e,n){for(let t=O1;t<e.length;t++){const i=e[t],r=i[U].firstChild;null!==r&&qr(i[U],i,r,n)}e[tn]!==e[b1]&&n.push(e[tn])}let im=[];const KR={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Hr(e.lView)},consumerOnSignalRead(){this.lView[F4]=this}},rm=100;function qs(e,n=!0,t=0){const i=e[Tt],r=i.rendererFactory;r.begin?.();try{!function QR(e,n){Tl(e,n);let t=0;for(;b8(e);){if(t===rm)throw new A(103,!1);t++,Tl(e,1)}}(e,t)}catch(o){throw n&&Ws(e,o),o}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function ZR(e,n,t,i){const r=n[J];if(!(256&~r))return;n[Tt].inlineEffectRunner?.flush(),L8(n);let o=null,s=null;(function JR(e){return 2!==e.type})(e)&&(s=function WR(e){return e[F4]??function qR(e){const n=im.pop()??Object.create(KR);return n.lView=e,n}(e)}(n),o=function p2(e){return e&&(e.nextProducerIndex=0),D(e)}(s));try{Wd(n),function Jd(e){return le.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&jp(e,n,t,2,i);const c=!(3&~r);if(c){const f=e.preOrderCheckHooks;null!==f&&gs(n,f,null)}else{const f=e.preOrderHooks;null!==f&&vs(n,f,0,null),E8(n,0)}if(function XR(e){for(let n=Rh(e);null!==n;n=Ph(n)){if(!(n[J]&p8.HasTransplantedViews))continue;const t=n[G3];for(let i=0;i<t.length;i++){KA(t[i])}}}(n),am(n,0),null!==e.contentQueries&&Zp(e,n),c){const f=e.contentCheckHooks;null!==f&&gs(n,f)}else{const f=e.contentHooks;null!==f&&vs(n,f,1),E8(n,1)}!function CR(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)j4(~r);else{const a=r,o=t[++i],s=t[++i];ok(o,a),s(2,n[a])}}}finally{j4(-1)}}(e,n);const l=e.components;null!==l&&sm(n,l,0);const u=e.viewQuery;if(null!==u&&Nl(2,u,i),c){const f=e.viewCheckHooks;null!==f&&gs(n,f)}else{const f=e.viewHooks;null!==f&&vs(n,f,2),E8(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[us]){for(const f of n[us])f();n[us]=null}n[J]&=-73}catch(c){throw Hr(n),c}finally{null!==s&&(function Nt(e,n){if(D(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(A4(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)I4(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(s,o),function YR(e){e.lView[F4]!==e&&(e.lView=null,im.push(e))}(s)),x8()}}function am(e,n){for(let t=Rh(e);null!==t;t=Ph(t))for(let i=O1;i<t.length;i++)om(t[i],n)}function eP(e,n,t){om(ot(n,e),t)}function om(e,n){M8(e)&&Tl(e,n)}function Tl(e,n){const i=e[U],r=e[J],a=e[F4];let o=!!(0===n&&16&r);if(o||=!!(64&r&&0===n),o||=!!(1024&r),o||=!(!a?.dirty||!s2(a)),a&&(a.dirty=!1),e[J]&=-9217,o)ZR(i,e,i.template,e[o1]);else if(8192&r){am(e,1);const s=i.components;null!==s&&sm(e,s,1)}}function sm(e,n,t){for(let i=0;i<n.length;i++)eP(e,n[i],t)}function Yr(e){for(e[Tt].changeDetectionScheduler?.notify();e;){e[J]|=64;const n=U4(e);if(g8(e)&&!n)return e;e=n}return null}class Kr{get rootNodes(){const n=this._lView,t=n[U];return qr(t,n,t.firstChild,[])}constructor(n,t,i=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[o1]}set context(n){this._lView[o1]=n}get destroyed(){return!(256&~this._lView[J])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[k1];if(D2(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(Br(n,i),es(t,i))}this._attachedToViewContainer=!1}Fs(this._lView[U],this._lView)}onDestroy(n){hs(this._lView,n)}markForCheck(){Yr(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){w8(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,qs(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,zp(this._lView[U],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new A(902,!1);this._appRef=n,w8(this._lView)}}let I1=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=iP}return e})();const tP=I1,nP=class extends tP{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=$r(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new Kr(r)}};function iP(){return Ys(Ke(),T())}function Ys(e,n){return 4&e.type?new nP(n,e,Q3(e,n)):null}let hm=()=>null;function ri(e,n){return hm(e,n)}class Pl{}class DP{}class pm{}class NP{resolveComponentFactory(n){throw function SP(e){const n=Error(`No component factory found for ${K1(e)}.`);return n.ngComponent=e,n}(n)}}let Xs=(()=>{class e{static#e=this.NULL=new NP}return e})();class gm{}let dn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function LP(){const e=T(),t=ot(Ke().index,e);return(z2(t)?t:e)[ce]}()}return e})(),xP=(()=>{class e{static#e=this.\u0275prov=B({token:e,providedIn:"root",factory:()=>null})}return e})();const Fl={},vm=new Set;function hn(e){vm.has(e)||(vm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function _m(...e){}class ve{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Z(!1),this.onMicrotaskEmpty=new Z(!1),this.onStable=new Z(!1),this.onError=new Z(!1),typeof Zone>"u")throw new A(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function EP(){const e="function"==typeof Ue.requestAnimationFrame;let n=Ue[e?"requestAnimationFrame":"setTimeout"],t=Ue[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function AP(e){const n=()=>{!function IP(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ul(e),e.isCheckStableRunning=!0,Bl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ul(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,a,o,s)=>{if(function kP(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(s))return t.invokeTask(r,a,o,s);try{return Cm(e),t.invokeTask(r,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),ym(e)}},onInvoke:(t,i,r,a,o,s,c)=>{try{return Cm(e),t.invoke(r,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),ym(e)}},onHasTask:(t,i,r,a)=>{t.hasTask(r,a),i===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Ul(e),Bl(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,i,r,a)=>(t.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new A(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new A(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,n,TP,_m,_m);try{return a.runTask(o,t,i)}finally{a.cancelTask(o)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const TP={};function Bl(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 Ul(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ym(e){e._nesting--,Bl(e)}var K4=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(K4||{});const bm={destroy(){}};function wm(e,n){!n&&gr();const t=n?.injector??H(U1);if(!function u4(e){return"browser"===(e??H(U1)).get($4)}(t))return bm;hn("NgAfterNextRender");const i=t.get(ea),r=i.handler??=new Vm,a=n?.phase??K4.MixedReadWrite,o=()=>{r.unregister(c),s()},s=t.get(ln).onDestroy(o),c=kn(t,()=>new Hm(a,()=>{o(),e()}));return r.register(c),{destroy:o}}class Hm{constructor(n,t){this.phase=n,this.callbackFn=t,this.zone=H(ve),this.errorHandler=H(cn,{optional:!0}),H(Pl,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class Vm{constructor(){this.executingCallbacks=!1,this.buckets={[K4.EarlyRead]:new Set,[K4.Write]:new Set,[K4.MixedReadWrite]:new Set,[K4.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const t of n)t.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let ea=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of t)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}return e})();function tc(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,a=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?a=s:1==a?r=B0(r,s):2==a&&(i=B0(i,s+": "+n[++o]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}class Sm extends Xs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=He(n);return new ia(t,this.ngModule)}}function Nm(e){const n=[];for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t];void 0!==i&&n.push({propName:Array.isArray(i)?i[0]:i,templateName:t})}return n}class Lm{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=Zo(i);const r=this.injector.get(n,Fl,i);return r!==Fl||t===Fl?r:this.parentInjector.get(n,t,i)}}class ia extends pm{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=Nm(n.inputs);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return Nm(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function pA(e){return e.map(hA).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){const a=D(null);try{let o=(r=r||this.ngModule)instanceof E2?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new Lm(n,o):n,c=s.get(gm,null);if(null===c)throw new A(407,!1);const l=s.get(xP,null),p={rendererFactory:c,sanitizer:l,inlineEffectRunner:null,afterRenderEventManager:s.get(ea,null),changeDetectionScheduler:s.get(Pl,null)},g=c.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",w=i?function MR(e,n,t,i){const a=i.get(tp,!1)||t===Lt.ShadowDom,o=e.selectRootElement(n,a);return function bR(e){$p(e)}(o),o}(g,i,this.componentDef.encapsulation,s):Ps(g,b,function BP(e){const n=e.toLowerCase();return"svg"===n?jd:"math"===n?"math":null}(b));let S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let L=null;null!==w&&(L=el(w,s,!0));const N=Vl(0,null,null,1,0,null,null,null,null,null,null),P=Gs(null,N,null,S,null,null,p,g,s,null,L);let F,G;L8(P);try{const K=this.componentDef;let de,Se=null;K.findHostDirectiveDefs?(de=[],Se=new Map,K.findHostDirectiveDefs(K,de,Se),de.push(K)):de=[K];const $e=function jP(e,n){const t=e[U],i=me;return e[i]=n,ni(t,i,2,"#host",null)}(P,w),L1=function GP(e,n,t,i,r,a,o){const s=r[U];!function $P(e,n,t,i){for(const r of e)n.mergedAttrs=mr(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(tc(n,n.mergedAttrs,!0),null!==t&&Pp(i,t,n))}(i,e,n,o);let c=null;null!==n&&(c=el(n,r[v2]));const l=a.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const f=Gs(r,Gp(t),null,u,r[e.index],e,a,l,null,null,c);return s.firstCreatePass&&Dl(s,e,i.length-1),$s(r,f),r[e.index]=f}($e,w,K,de,P,p,g);G=wr(N,me),w&&function qP(e,n,t,i){if(i)i8(e,t,["ng-version","17.3.2"]);else{const{attrs:r,classes:a}=function mA(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===r?""!==a&&n.push(a,e[++i]):8===r&&t.push(a);else{if(!xt(r))break;r=a}i++}return{attrs:n,classes:t}}(n.selectors[0]);r&&i8(e,t,r),a&&a.length>0&&Rp(e,t,a.join(" "))}}(g,K,w,i),void 0!==t&&function YP(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const a=t[r];i.push(null!=a?Array.from(a):null)}}(G,this.ngContentSelectors,t),F=function WP(e,n,t,i,r,a){const o=Ke(),s=r[U],c=T2(o,r);Yp(s,r,o,t,null,i);for(let u=0;u<t.length;u++)N2(G4(r,s,o.directiveStart+u,o),r);Kp(s,r,o),c&&N2(c,r);const l=G4(r,s,o.directiveStart+o.componentOffset,o);if(e[o1]=r[o1]=l,null!==a)for(const u of a)u(l,n);return bl(s,o,r),l}(L1,K,de,Se,P,[KP]),xl(N,P,null)}finally{x8()}return new UP(this.componentType,F,Q3(G,P),P,G)}finally{D(a)}}}class UP extends DP{constructor(n,t,i,r,a){super(),this.location=i,this._rootLView=r,this._tNode=a,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new Kr(r,void 0,!1),this.componentType=n}setInput(n,t){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const a=this._rootLView;Ll(a[U],a,r,n,t),this.previousInputValues.set(n,t),Yr(ot(this._tNode.index,a))}}get injector(){return new J1(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function KP(){const e=Ke();ms(T()[U],e)}let Y2=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=QP}return e})();function QP(){return Tm(Ke(),T())}const ZP=Y2,xm=class extends ZP{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return Q3(this._hostTNode,this._hostLView)}get injector(){return new J1(this._hostTNode,this._hostLView)}get parentInjector(){const n=ys(this._hostTNode,this._hostLView);if(I8(n)){const t=xr(n,this._hostLView),i=Lr(n);return new J1(t[U].data[i+8],t)}return new J1(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Em(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-O1}createEmbeddedView(n,t,i){let r,a;"number"==typeof i?r=i:null!=i&&(r=i.index,a=i.injector);const o=ri(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(t||{},a,o);return this.insertImpl(s,r,ii(this._hostTNode,o)),s}createComponent(n,t,i,r,a){const o=n&&!function vr(e){return"function"==typeof e}(n);let s;if(o)s=t;else{const b=t||{};s=b.index,i=b.injector,r=b.projectableNodes,a=b.environmentInjector||b.ngModuleRef}const c=o?n:new ia(He(n)),l=i||this.parentInjector;if(!a&&null==c.ngModule){const w=(o?l:this.parentInjector).get(E2,null);w&&(a=w)}const u=He(c.componentType??{}),f=ri(this._lContainer,u?.id??null),g=c.create(l,r,f?.firstChild??null,a);return this.insertImpl(g.hostView,s,ii(this._hostTNode,f)),g}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function YA(e){return D2(e[k1])}(r)){const s=this.indexOf(n);if(-1!==s)this.detach(s);else{const c=r[k1],l=new xm(c,c[V2],c[k1]);l.detach(l.indexOf(n))}}const a=this._adjustIndex(t),o=this._lContainer;return Wr(o,r,a,i),n.attachToViewContainerRef(),pd(Wl(o),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=Em(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Br(this._lContainer,t);i&&(es(Wl(this._lContainer),t),Fs(i[U],i))}detach(n){const t=this._adjustIndex(n,-1),i=Br(this._lContainer,t);return i&&null!=es(Wl(this._lContainer),t)?new Kr(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function Em(e){return e[8]}function Wl(e){return e[8]||(e[8]=[])}function Tm(e,n){let t;const i=n[e.index];return D2(i)?t=i:(t=Qp(i,n,null,e),n[e.index]=t,$s(n,t)),Im(t,n,e,i),new xm(t,e,n)}let Im=function km(e,n,t,i){if(e[tn])return;let r;r=8&t.type?Je(i):function JP(e,n){const t=e[ce],i=t.createComment(""),r=T2(n,e);return Y4(t,Bs(t,r),i,function pR(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[tn]=r},ql=()=>!1;class Yl{constructor(n){this.queryList=n,this.matches=null}clone(){return new Yl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Kl{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 a=0;a<i;a++){const o=t.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new Kl(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!==e5(n,t).matches&&this.queries[t].setDirty()}}class Om{constructor(n,t,i=null){this.flags=t,this.read=i,this.predicate="string"==typeof n?function oF(e){return e.split(",").map(n=>n.trim())}(n):n}}class Ql{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,a=this.getByIndex(i).embeddedTView(n,r);a&&(a.indexInDeclarationView=i,null!==t?t.push(a):t=[a])}return null!==t?new Ql(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 Zl{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Zl(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 a=i[r];this.matchTNodeWithReadOption(n,t,nF(t,a)),this.matchTNodeWithReadOption(n,t,Ms(t,n,a,!1,!1))}else i===I1?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,Ms(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ae||r===Y2||r===I1&&4&t.type)this.addMatch(t.index,-2);else{const a=Ms(t,n,r,!1,!1);null!==a&&this.addMatch(t.index,a)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function nF(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 rF(e,n,t,i){return-1===t?function iF(e,n){return 11&e.type?Q3(e,n):4&e.type?Ys(e,n):null}(n,e):-2===t?function aF(e,n,t){return t===Ae?Q3(n,e):t===I1?Ys(n,e):t===Y2?Tm(n,e):void 0}(e,n,i):G4(e,e[U],t,n)}function Rm(e,n,t,i){const r=n[On].queries[i];if(null===r.matches){const a=e.data,o=t.matches,s=[];for(let c=0;null!==o&&c<o.length;c+=2){const l=o[c];s.push(l<0?null:rF(n,a[l],o[c+1],t.metadata.read))}r.matches=s}return r.matches}function Jl(e,n,t,i){const r=e.queries.getByIndex(t),a=r.matches;if(null!==a){const o=Rm(e,n,r,t);for(let s=0;s<a.length;s+=2){const c=a[s];if(c>0)i.push(o[s/2]);else{const l=a[s+1],u=n[-c];for(let f=O1;f<u.length;f++){const p=u[f];p[Cr]===p[k1]&&Jl(p[U],p,l,i)}if(null!==u[G3]){const f=u[G3];for(let p=0;p<f.length;p++){const g=f[p];Jl(g[U],g,l,i)}}}}}return i}function Pm(e,n,t){const i=new U8(!(4&~t));return function VR(e,n,t,i){const r=Jp(n);r.push(t),e.firstCreatePass&&Xp(e).push(i,r.length-1)}(e,n,i,i.destroy),(n[On]??=new Kl).queries.push(new Yl(i))-1}function Um(e,n,t){null===e.queries&&(e.queries=new Ql),e.queries.track(new Zl(n,t))}function e5(e,n){return e.queries.getByIndex(n)}function jm(e,n){const t=e[U],i=e5(t,n);return i.crossesNgTemplate?Jl(t,e,n,[]):Rm(t,e,i,n)}function Wm(e){return function Gm(e){return"function"==typeof e&&void 0!==e[Be]}(e)&&"function"==typeof e.set}function X(e){let n=function ig(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(It(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new A(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const o=e;o.inputs=ic(e.inputs),o.inputTransforms=ic(e.inputTransforms),o.declaredInputs=ic(e.declaredInputs),o.outputs=ic(e.outputs);const s=r.hostBindings;s&&bF(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&yF(e,c),l&&MF(e,l),_F(e,r),II(e.outputs,r.outputs),It(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let o=0;o<a.length;o++){const s=a[o];s&&s.ngInherit&&s(e),s===X&&(t=!1)}}n=Object.getPrototypeOf(n)}!function CF(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=mr(r.hostAttrs,t=mr(t,r.hostAttrs))}}(i)}function _F(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function ic(e){return e===en?{}:e===Ie?[]:e}function yF(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function MF(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,a)=>{n(i,r,a),t(i,r,a)}:n}function bF(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function n5(e){const n=t=>{const i=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:ae(r),inputs:en,outputs:en}:{directive:ae(r.directive),inputs:ag(r.inputs),outputs:ag(r.outputs)});null===t.hostDirectives?(t.findHostDirectiveDefs=rg,t.hostDirectives=i):t.hostDirectives.unshift(...i)};return n.ngInherit=!0,n}function rg(e,n,t){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const r=Q1(i.directive);zF(r.declaredInputs,i.inputs),rg(r,n,t),t.set(r,i),n.push(r)}}function ag(e){if(void 0===e||0===e.length)return en;const n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function zF(e,n){for(const t in n)n.hasOwnProperty(t)&&(e[n[t]]=e[t])}function sg(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}class Q4{}class cg{}class i5 extends Q4{constructor(n,t,i){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Sm(this);const r=H2(n);this._bootstrapComponents=ct(r.bootstrap),this._r3Injector=Hh(n,t,[{provide:Q4,useValue:this},{provide:Xs,useValue:this.componentFactoryResolver},...i],K1(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}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 r5 extends cg{constructor(n){super(),this.moduleType=n}create(n){return new i5(this.moduleType,n,[])}}class lg extends Q4{constructor(n){super(),this.componentFactoryResolver=new Sm(this),this.instance=null;const t=new R3([...n.providers,{provide:Q4,useValue:this},{provide:Xs,useValue:this.componentFactoryResolver}],n.parent||cs(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function rc(e,n,t=null){return new lg({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let oi=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new yt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oc(e){return!!function a5(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function R1(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Z4(e,n,t,i){const r=R1(e,n,t);return R1(e,n+1,i)||r}function j(e,n,t,i,r,a,o,s){const c=T(),l=De(),u=e+me,f=l.firstCreatePass?function IF(e,n,t,i,r,a,o,s,c){const l=n.consts,u=ni(n,e,4,o||null,rn(l,s));zl(n,t,u,rn(l,c)),ms(n,u);const f=u.tView=Vl(2,u,i,r,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),f.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,t,i,r,a,o):l.data[u];an(f,!1);const p=ug(l,c,f,e);Sr()&&Us(l,c,p,f),N2(p,c);const g=Qp(p,c,p,f);return c[u]=g,$s(c,g),function Am(e,n,t){return ql(e,n,t)}(g,f,c),ds(f)&&wl(l,c,f),null!=o&&Hl(c,f,s),j}let ug=function fg(e,n,t,i){return on(!0),n[ce].createComment("")};function W(e,n,t,i){const r=T();return R1(r,At(),n)&&(De(),fn(s1(),r,e,n,t,i)),W}function pi(e,n,t,i){return R1(e,At(),t)?n+pe(t)+i:ge}function gi(e,n,t,i,r,a,o,s){const l=function sc(e,n,t,i,r){const a=Z4(e,n,t,i);return R1(e,n+2,r)||a}(e,Rn(),t,r,o);return Pn(3),l?n+pe(t)+i+pe(r)+a+pe(o)+s:ge}function hc(e,n){return e<<17|n<<2}function m4(e){return e>>17&32767}function m5(e){return 2|e}function X4(e){return(131068&e)>>2}function g5(e,n){return-131069&e|n<<2}function v5(e){return 1|e}function Ug(e,n,t,i){const r=e[t+1],a=null===n;let o=i?m4(r):X4(r),s=!1;for(;0!==o&&(!1===s||a);){const l=e[o+1];CB(e[o],n)&&(s=!0,e[o+1]=i?v5(l):m5(l)),o=i?m4(l):X4(l)}s&&(e[t+1]=i?m5(r):v5(r))}function CB(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&O3(e,n)>=0}const X1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jg(e){return e.substring(X1.key,X1.keyEnd)}function Gg(e,n){const t=X1.textEnd;return t===n?-1:(n=X1.keyEnd=function wB(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,X1.key=n,t),bi(e,n,t))}function bi(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function V(e,n,t){const i=T();return R1(i,At(),n)&&q2(De(),s1(),i,e,n,i[ce],t,!1),V}function _5(e,n,t,i,r){const o=r?"class":"style";Ll(e,t,n.inputs[o],o,i)}function ua(e,n,t){return kt(e,n,t,!1),ua}function Ne(e,n){return kt(e,n,null,!0),Ne}function g4(e){!function Ot(e,n,t,i){const r=De(),a=Pn(2);r.firstUpdatePass&&Qg(r,null,a,i);const o=T();if(t!==ge&&R1(o,a,t)){const s=r.data[S2()];if(ev(s,i)&&!Kg(r,a)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=B0(c,t||"")),_5(r,s,o,t,i)}else!function TB(e,n,t,i,r,a,o,s){r===ge&&(r=Ie);let c=0,l=0,u=0<r.length?r[0]:null,f=0<a.length?a[0]:null;for(;null!==u||null!==f;){const p=c<r.length?r[c+1]:void 0,g=l<a.length?a[l+1]:void 0;let w,b=null;u===f?(c+=2,l+=2,p!==g&&(b=f,w=g)):null===f||null!==u&&u<f?(c+=2,b=u):(l+=2,b=f,w=g),null!==b&&Jg(e,n,t,i,b,w,o,s),u=c<r.length?r[c]:null,f=l<a.length?a[l]:null}}(r,s,o,o[ce],o[a+1],o[a+1]=function xB(e,n,t){if(null==t||""===t)return Ie;const i=[],r=st(t);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,a)}}(EB,gn,e,!0)}function gn(e,n){for(let t=function MB(e){return function Wg(e){X1.key=0,X1.keyEnd=0,X1.value=0,X1.valueEnd=0,X1.textEnd=e.length}(e),Gg(e,bi(e,0,X1.textEnd))}(n);t>=0;t=Gg(n,t))rt(e,jg(n),!0)}function kt(e,n,t,i){const r=T(),a=De(),o=Pn(2);a.firstUpdatePass&&Qg(a,e,o,i),n!==ge&&R1(r,o,n)&&Jg(a,a.data[S2()],r,r[ce],e,r[o+1]=function IB(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=K1(st(e)))),e}(n,t),i,o)}function Kg(e,n){return n>=e.expandoStartIndex}function Qg(e,n,t,i){const r=e.data;if(null===r[t+1]){const a=r[S2()],o=Kg(e,t);ev(a,i)&&null===n&&!o&&(n=!1),n=function DB(e,n,t,i){const r=function S8(e){const n=le.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let a=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=fa(t=C5(null,e,n,t,i),n.attrs,i),a=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==r)if(t=C5(r,e,n,t,i),null===a){let c=function SB(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==X4(i))return e[m4(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=C5(null,e,n,c[1],i),c=fa(c,n.attrs,i),function NB(e,n,t,i){e[m4(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else a=function LB(e,n,t){let i;const r=n.directiveEnd;for(let a=1+n.directiveStylingLast;a<r;a++)i=fa(i,e[a].hostAttrs,t);return fa(i,n.attrs,t)}(e,n,i)}return void 0!==a&&(i?n.residualClasses=a:n.residualStyles=a),t}(r,a,n,i),function vB(e,n,t,i,r,a){let o=a?n.classBindings:n.styleBindings,s=m4(o),c=X4(o);e[i]=t;let u,l=!1;if(Array.isArray(t)?(u=t[1],(null===u||O3(t,u)>0)&&(l=!0)):u=t,r)if(0!==c){const p=m4(e[s+1]);e[i+1]=hc(p,s),0!==p&&(e[p+1]=g5(e[p+1],i)),e[s+1]=function mB(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=hc(s,0),0!==s&&(e[s+1]=g5(e[s+1],i)),s=i;else e[i+1]=hc(c,0),0===s?s=i:e[c+1]=g5(e[c+1],i),c=i;l&&(e[i+1]=m5(e[i+1])),Ug(e,u,i,!0),Ug(e,u,i,!1),function _B(e,n,t,i,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof n&&O3(a,n)>=0&&(t[i+1]=v5(t[i+1]))}(n,u,e,i,a),o=hc(s,c),a?n.classBindings=o:n.styleBindings=o}(r,a,n,t,o,i)}}function C5(e,n,t,i,r){let a=null;const o=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(a=n[s],i=fa(i,a.hostAttrs,r),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function fa(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let a=0;a<n.length;a++){const o=n[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),rt(e,o,!!t||n[++a]))}return void 0===e?null:e}function EB(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&rt(e,i,t)}function Jg(e,n,t,i,r,a,o,s){if(!(3&n.type))return;const c=e.data,l=c[s+1],u=function gB(e){return!(1&~e)}(l)?Xg(c,n,t,r,X4(l),o):void 0;pc(u)||(pc(a)||function pB(e){return!(2&~e)}(l)&&(a=Xg(c,null,t,r,s,o)),function vR(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let a=-1===i.indexOf("-")?void 0:f4.DashCase;null==r?e.removeStyle(t,i,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=f4.Important),e.setStyle(t,i,r,a))}}(i,o,br(S2(),t),r,a))}function Xg(e,n,t,i,r,a){const o=null===n;let s;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,f=null===u;let p=t[r+1];p===ge&&(p=f?Ie:void 0);let g=f?t8(p,i):u===i?p:void 0;if(l&&!pc(g)&&(g=t8(c,i)),pc(g)&&(s=g,o))return s;const b=e[r+1];r=o?m4(b):X4(b)}if(null!==n){let c=a?n.residualClasses:n.residualStyles;null!=c&&(s=t8(c,i))}return s}function pc(e){return void 0!==e}function ev(e,n){return!!(e.flags&(n?8:16))}function j1(e,n,t){hn("NgControlFlow");const i=T(),r=At(),a=function b5(e,n){return e[n]}(i,me+e);if(R1(i,r,n)){const s=D(null);try{if(function El(e,n){const t=Br(e,n);return void 0!==t&&Fs(t[U],t),t}(a,0),-1!==n){const c=function w5(e,n){return wr(e,n)}(i[U],me+n),l=ri(a,c.tView.ssrId);Wr(a,$r(i,c,t,{dehydratedView:l}),0,ii(c,l))}}finally{D(s)}}else{const s=function tm(e,n){const t=O1+n;if(t<e.length)return e[t]}(a,0);void 0!==s&&(s[o1]=t)}}function m(e,n,t,i){const r=T(),a=De(),o=me+e,s=r[ce],c=a.firstCreatePass?function XB(e,n,t,i,r,a){const o=n.consts,c=ni(n,e,2,i,rn(o,r));return zl(n,t,c,rn(o,a)),null!==c.attrs&&tc(c,c.attrs,!1),null!==c.mergedAttrs&&tc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,a,r,n,t,i):a.data[o],l=rv(a,r,c,s,n,e);r[o]=l;const u=ds(c);return an(c,!0),Pp(s,l,c),!function oa(e){return!(32&~e.flags)}(c)&&Sr()&&Us(a,r,l,c),0===function QA(){return le.lFrame.elementDepthCount}()&&N2(l,r),function ZA(){le.lFrame.elementDepthCount++}(),u&&(wl(a,r,c),bl(a,c,r)),null!==i&&Hl(r,c),m}function v(){let e=Ke();V8()?z8():(e=e.parent,an(e,!1));const n=e;(function XA(e){return le.skipHydrationRootTNode===e})(n)&&function ik(){le.skipHydrationRootTNode=null}(),function JA(){le.lFrame.elementDepthCount--}();const t=De();return t.firstCreatePass&&(ms(t,e),m8(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function gk(e){return!!(8&e.flags)}(n)&&_5(t,n,T(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function vk(e){return!!(16&e.flags)}(n)&&_5(t,n,T(),n.stylesWithoutHost,!1),v}function k(e,n,t,i){return m(e,n,t,i),v(),k}let rv=(e,n,t,i,r,a)=>(on(!0),Ps(i,r,function ah(){return le.lFrame.currentNamespace}()));function w1(){return T()}function A2(e,n,t){const i=T();return R1(i,At(),n)&&q2(De(),s1(),i,e,n,i[ce],t,!0),A2}const Hi="en-US";let uv=Hi;function O(e,n,t,i){const r=T(),a=De(),o=Ke();return S5(a,r,r[ce],o,e,n,i),O}function S5(e,n,t,i,r,a,o){const s=ds(i),l=e.firstCreatePass&&Xp(e),u=n[o1],f=Jp(n);let p=!0;if(3&i.type||o){const w=T2(i,n),S=o?o(w):w,L=f.length,N=o?F=>o(Je(F[i.index])):i.index;let P=null;if(!o&&s&&(P=function nj(e,n,t,i){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const o=r[a];if(o===t&&r[a+1]===i){const s=n[B3],c=r[a+2];return s.length>c?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,n,r,i.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=a,P.__ngLastListenerFn__=a,p=!1;else{a=Rv(i,n,u,a,!1);const F=t.listen(S,r,a);f.push(a,F),l&&l.push(r,N,L,L+1)}}else a=Rv(i,n,u,a,!1);const g=i.outputs;let b;if(p&&null!==g&&(b=g[r])){const w=b.length;if(w)for(let S=0;S<w;S+=2){const G=n[b[S]][b[S+1]].subscribe(a),K=f.length;f.push(a,G),l&&l.push(r,i.index,K,-(K+1))}}}function Ov(e,n,t,i){const r=D(null);try{return nn(6,n,t),!1!==t(i)}catch(a){return Ws(e,a),!1}finally{nn(7,n,t),D(r)}}function Rv(e,n,t,i,r){return function a(o){if(o===Function)return i;Yr(e.componentOffset>-1?ot(e.index,n):n);let c=Ov(n,t,i,o),l=a.__ngNextListenerFn__;for(;l;)c=Ov(n,t,l,o)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&o.preventDefault(),c}}function R(e=1){return function lk(e){return(le.lFrame.contextLView=function qd(e,n){for(;e>0;)n=n[U3],e--;return n}(e,le.lFrame.contextLView))[o1]}(e)}function ij(e,n){let t=null;const i=function lA(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 a=n[r];if("*"!==a){if(null===i?bd(e,a,!0):dA(i,a))return r}else t=r}return t}function Vi(e){const n=T()[S1][V2];if(!n.projection){const i=n.projection=function ts(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 a=n.child;for(;null!==a;){const o=e?ij(a,e):0;null!==o&&(r[o]?r[o].projectionNext=a:i[o]=a,r[o]=a),a=a.next}}}function zi(e,n=0,t){const i=T(),r=De(),a=ni(r,me+e,16,null,t||null);null===a.projection&&(a.projection=n),z8(),(!i[at]||W3())&&32&~a.flags&&function mR(e,n,t){Op(n[ce],0,n,t,vl(e,t,n),xp(t.parent||n[V2],t,n))}(r,i,a)}function N5(e,n,t){return v4(e,"",n,"",t),N5}function v4(e,n,t,i,r){const a=T(),o=pi(a,n,t,i);return o!==ge&&q2(De(),s1(),a,e,o,a[ce],r,!1),v4}function e2(e,n,t,i){!function Bm(e,n,t,i){const r=De();if(r.firstCreatePass){const a=Ke();Um(r,new Om(n,t,i),a.index),function sF(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 Pm(r,T(),t)}(e,n,t,i)}function t3(e,n,t){!function Fm(e,n,t){const i=De();return i.firstCreatePass&&(Um(i,new Om(e,n,t),-1),!(2&~n)&&(i.staticViewQueries=!0)),Pm(i,T(),n)}(e,n,t)}function h1(e){const n=T(),t=De(),i=N8();ps(i+1);const r=e5(t,i);if(e.dirty&&function qA(e){return!(4&~e[J])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)e.reset([]);else{const a=jm(n,i);e.reset(a,Sh),e.notifyOnChanges()}return!0}return!1}function p1(){return function Xl(e,n){return e[On].queries[n].queryList}(T(),N8())}function _2(e){return function $3(e,n){return e[n]}(function rk(){return le.lFrame.contextLView}(),me+e)}function y(e,n=""){const t=T(),i=De(),r=e+me,a=i.firstCreatePass?ni(i,r,1,n,null):i.data[r],o=n_(i,t,a,n,e);t[r]=o,Sr()&&Us(i,t,o,a),an(a,!1)}let n_=(e,n,t,i,r)=>(on(!0),function pl(e,n){return e.createText(n)}(n[ce],i));function wt(e){return Rt("",e,""),wt}function Rt(e,n,t){const i=T(),r=pi(i,e,n,t);return r!==ge&&Bn(i,S2(),r),Rt}function Cc(e,n,t,i,r){const a=T(),o=function mi(e,n,t,i,r,a){const s=Z4(e,Rn(),t,r);return Pn(2),s?n+pe(t)+i+pe(r)+a:ge}(a,e,n,t,i,r);return o!==ge&&Bn(a,S2(),o),Cc}function L5(e,n,t,i,r,a,o){const s=T(),c=gi(s,e,n,t,i,r,a,o);return c!==ge&&Bn(s,S2(),c),L5}function ue(e,n,t){Wm(n)&&(n=n());const i=T();return R1(i,At(),n)&&q2(De(),s1(),i,e,n,i[ce],t,!1),ue}function he(e,n){const t=Wm(e);return t&&e.set(n),t}function fe(e,n){const t=T(),i=De(),r=Ke();return S5(i,t,t[ce],r,e,n),fe}function x5(e,n,t,i,r){if(e=ae(e),Array.isArray(e))for(let a=0;a<e.length;a++)x5(e[a],n,t,i,r);else{const a=De(),o=T(),s=Ke();let c=P4(e)?e:ae(e.provide);const l=xd(e),u=1048575&s.providerIndexes,f=s.directiveStart,p=s.providerIndexes>>20;if(P4(e)||!e.multi){const g=new Nr(l,r,E),b=T5(c,n,r?u:u+p,f);-1===b?(O8(Cs(s,o),a,c),E5(a,e,n.length),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(g),o.push(g)):(t[b]=g,o[b]=g)}else{const g=T5(c,n,u+p,f),b=T5(c,n,u,u+p),S=b>=0&&t[b];if(r&&!S||!r&&!(g>=0&&t[g])){O8(Cs(s,o),a,c);const L=function bj(e,n,t,i,r){const a=new Nr(e,t,E);return a.multi=[],a.index=n,a.componentProviders=0,l_(a,r,i&&!t),a}(r?Mj:yj,t.length,r,i,l);!r&&S&&(t[b].providerFactory=L),E5(a,e,n.length,0),n.push(c),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),t.push(L),o.push(L)}else E5(a,e,g>-1?g:b,l_(t[r?b:g],l,!r&&i));!r&&i&&S&&t[b].componentProviders++}}}function E5(e,n,t,i){const r=P4(n),a=function MA(e){return!!e.useClass}(n);if(r||a){const c=(a?ae(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[i,c]):l[u+1].push(i,c)}else l.push(t,c)}}}function l_(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function T5(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function yj(e,n,t,i){return I5(this.multi,[])}function Mj(e,n,t,i){const r=this.multi;let a;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=G4(t,t[U],this.providerFactory.index,i);a=s.slice(0,o),I5(r,a);for(let c=o;c<s.length;c++)a.push(s[c])}else a=[],I5(r,a);return a}function I5(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function n1(e,n=[]){return t=>{t.providersResolver=(i,r)=>function Cj(e,n,t){const i=De();if(i.firstCreatePass){const r=It(e);x5(t,i.data,i.blueprint,r,!0),x5(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}let wj=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=a8(0,t.type),r=i.length>0?rc([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#e=this.\u0275prov=B({token:e,providedIn:"environment",factory:()=>new e(te(E2))})}return e})();function se(e){hn("NgStandalone"),e.getStandaloneInjector=n=>n.get(wj).getOrCreateStandaloneInjector(e)}function f_(e,n,t){const i=function I2(){const e=le.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}()+e,r=T();return r[i]===ge?function pn(e,n,t){return e[n]=t}(r,i,t?n.call(t):n()):function aa(e,n){return e[n]}(r,i)}function Q2(e,n){return Ys(e,n)}let E_=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const O_=new q(""),Hc=new q("");let j5,B5=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,j5||(function xG(e){j5=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ve.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())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 a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),t()},i)),this._callbacks.push({doneCb:t,timeoutId:a,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()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(te(ve),te(U5),te(Hc))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),U5=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return j5?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Va(e){return!!e&&"function"==typeof e.then}function R_(e){return!!e&&"function"==typeof e.subscribe}const G5=new q("");let $5=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=H(G5,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const a=r();if(Va(a))t.push(a);else if(R_(a)){const o=new Promise((s,c)=>{a.subscribe({complete:s,error:c})});t.push(o)}}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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const W5=new q("");let yn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=H(zh),this.afterRenderEffectManager=H(ea),this.externalTestViews=new Set,this.beforeRender=new a1,this.afterTick=new a1,this.componentTypes=[],this.components=[],this.isStable=H(oi).hasPendingTasks.pipe(Te(t=>!t)),this._injector=H(E2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof pm;if(!this._injector.get($5).done)throw!r&&function o4(e){const n=He(e)||Q1(e)||g2(e);return null!==n&&n.standalone}(t),new A(405,!1);let o;o=r?t:this._injector.get(Xs).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const s=function EG(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Q4),l=o.create(U1.NULL,[],i||o.selector,s),u=l.location.nativeElement,f=l.injector.get(O_,null);return f?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Vc(this.components,l),f?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new A(101,!1);const i=D(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,D(i)}}detectChangesInAttachedViews(t){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===rm)throw new A(103,!1);if(t){const a=0===i;this.beforeRender.next(a);for(let{_lView:o,notifyErrorHandler:s}of this._views)IG(o,a,s)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>q5(a))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>q5(a))))break}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Vc(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(W5,[]);[...this._bootstrapListeners,...i].forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Vc(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new A(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function IG(e,n,t){!n&&!q5(e)||function AG(e,n,t){let i;t?(i=0,e[J]|=1024):i=64&e[J]?0:1,qs(e,n,i)}(e,t,n)}function q5(e){return b8(e)}class kG{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let U_=(()=>{class e{compileModuleSync(t){return new r5(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),a=ct(H2(t).declarations).reduce((o,s)=>{const c=He(s);return c&&o.push(new ia(c)),o},[]);return new kG(i,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),PG=(()=>{class e{constructor(){this.zone=H(ve),this.applicationRef=H(yn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function G_(e){return[{provide:ve,useFactory:e},{provide:R4,multi:!0,useFactory:()=>{const n=H(PG,{optional:!0});return()=>n.initialize()}},{provide:R4,multi:!0,useFactory:()=>{const n=H(UG);return()=>{n.initialize()}}},{provide:zh,useFactory:FG}]}function FG(){const e=H(ve),n=H(cn);return t=>e.runOutsideAngular(()=>n.handleError(t))}function BG(e){return function as(e){return{\u0275providers:e}}([[],G_(()=>new ve(function $_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let UG=(()=>{class e{constructor(){this.subscription=new m2,this.initialized=!1,this.zone=H(ve),this.pendingTasks=H(oi)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ve.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Mn=new q("",{providedIn:"root",factory:()=>H(Mn,ze.Optional|ze.SkipSelf)||function jG(){return typeof $localize<"u"&&$localize.locale||Hi}()}),Y5=new q("");let _4=null;let ut=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=KG}return e})();function KG(e){return function QG(e,n,t){if(B4(e)&&!t){const i=ot(e.index,n);return new Kr(i,i)}return 47&e.type?new Kr(n[S1],n):null}(Ke(),T(),!(16&~e))}class eC{constructor(){}supports(n){return oc(n)}create(n){return new t$(n)}}const e$=(e,n)=>n;class t${constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||e$}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,a=null;for(;t||i;){const o=!i||t&&t.currentIndex<nC(i,r,a)?t:i,s=nC(o,r,a),c=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{a||(a=[]);const l=s-r,u=c-r;if(l!=u){for(let p=0;p<l;p++){const g=p<a.length?a[p]:a[p]=0,b=g+p;u<=b&&b<l&&(a[p]=g+1)}a[o.previousIndex]=u-l}}s!==c&&n(o,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=[]),!oc(n))throw new A(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,a,o,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)a=n[s],o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),i=!0),t=t._next}else r=0,function EF(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=>{o=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,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 a;return null===n?a=this._itTail:(a=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,a,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,a,r)):n=this._addAfter(new n$(t,i),a,r),n}_verifyReinsertion(n,t,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?n=this._reinsertAfter(a,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,a=n._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._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 tC),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 tC),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 n${constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class i${constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class tC{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new i$,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 nC(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 rC(){return new e7([new eC])}let e7=(()=>{class e{static#e=this.\u0275prov=B({token:e,providedIn:"root",factory:rC});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||rC()),deps:[[e,new Xo,new Jo]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new A(901,!1)}}return e})(),c$=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(te(yn))};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();function w$(e){try{const{rootComponent:n,appProviders:t,platformProviders:i}=e,r=function YG(e=[]){if(_4)return _4;const n=function Y_(e=[],n){return U1.create({name:n,providers:[{provide:c8,useValue:"platform"},{provide:Y5,useValue:new Set([()=>_4=null])},...e]})}(e);return _4=n,function P_(){!function I0(e){Oo=e}(()=>{throw new A(600,!1)})}(),function K_(e){e.get(Yh,null)?.forEach(t=>t())}(n),n}(i),a=[BG(),...t||[]],s=new lg({providers:a,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,c=s.get(ve);return c.run(()=>{s.resolveInjectorInitializers();const l=s.get(cn,null);let u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:g=>{l.handleError(g)}})});const f=()=>s.destroy(),p=r.get(Y5);return p.add(f),s.onDestroy(()=>{u.unsubscribe(),p.delete(f)}),function F_(e,n,t){try{const i=t();return Va(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(l,c,()=>{const g=s.get($5);return g.runInitializers(),g.donePromise.then(()=>{!function fv(e){"string"==typeof e&&(uv=e.toLowerCase().replace(/_/g,"-"))}(s.get(Mn,Hi)||Hi);const w=s.get(yn);return void 0!==n&&w.bootstrap(n),w})})})}catch(n){return Promise.reject(n)}}function Li(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function i7(e,n){const t=He(e),i=n.elementInjector||cs();return new ia(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function C4(e){return this instanceof C4?(this.v=e,this):new C4(e)}function xC(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 s7(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(a){t[a]=e[a]&&function(o){return new Promise(function(s,c){!function r(a,o,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},o)}(s,c,(o=e[a](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const c7=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function EC(e){return Le(e?.then)}function TC(e){return Le(e[P0])}function IC(e){return Symbol.asyncIterator&&Le(e?.[Symbol.asyncIterator])}function AC(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 kC=function hW(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function OC(e){return Le(e?.[kC])}function RC(e){return function LC(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(p){i[p]&&(r[p]=function(g){return new Promise(function(b,w){a.push([p,g,b,w])>1||s(p,g)})})}function s(p,g){try{!function c(p){p.value instanceof C4?Promise.resolve(p.value.v).then(l,u):f(a[0][2],p)}(i[p](g))}catch(b){f(a[0][3],b)}}function l(p){s("next",p)}function u(p){s("throw",p)}function f(p,g){p(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield C4(t.read());if(r)return yield C4(void 0);yield yield C4(i)}}finally{t.releaseLock()}})}function PC(e){return Le(e?.getReader)}function C2(e){if(e instanceof M1)return e;if(null!=e){if(TC(e))return function pW(e){return new M1(n=>{const t=e[P0]();if(Le(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(c7(e))return function mW(e){return new M1(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(EC(e))return function gW(e){return new M1(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,tt)})}(e);if(IC(e))return FC(e);if(OC(e))return function vW(e){return new M1(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(PC(e))return function _W(e){return FC(RC(e))}(e)}throw AC(e)}function FC(e){return new M1(n=>{(function CW(e,n){var t,i,r,a;return function SC(e,n,t,i){return new(t||(t=Promise))(function(a,o){function s(u){try{l(i.next(u))}catch(f){o(f)}}function c(u){try{l(i.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):function r(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=xC(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(a=t.return)&&(yield a.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Un(e,n,t,i=0,r=!1){const a=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!r)return a}function BC(e,n=0){return B1((t,i)=>{t.subscribe(d1(i,r=>Un(i,e,()=>i.next(r),n),()=>Un(i,e,()=>i.complete(),n),r=>Un(i,e,()=>i.error(r),n)))})}function UC(e,n=0){return B1((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function jC(e,n){if(!e)throw new Error("Iterable cannot be null");return new M1(t=>{Un(t,n,()=>{const i=e[Symbol.asyncIterator]();Un(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function n2(e,n){return n?function VW(e,n){if(null!=e){if(TC(e))return function yW(e,n){return C2(e).pipe(UC(n),BC(n))}(e,n);if(c7(e))return function bW(e,n){return new M1(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(EC(e))return function MW(e,n){return C2(e).pipe(UC(n),BC(n))}(e,n);if(IC(e))return jC(e,n);if(OC(e))return function wW(e,n){return new M1(t=>{let i;return Un(t,n,()=>{i=e[kC](),Un(t,n,()=>{let r,a;try{({value:r,done:a}=i.next())}catch(o){return void t.error(o)}a?t.complete():t.next(r)},0,!0)}),()=>Le(i?.return)&&i.return()})}(e,n);if(PC(e))return function HW(e,n){return jC(RC(e),n)}(e,n)}throw AC(e)}(e,n):C2(e)}function GC(e){return e&&Le(e.schedule)}function l7(e){return e[e.length-1]}function Ac(e){return Le(l7(e))?e.pop():void 0}function Sa(e){return GC(l7(e))?e.pop():void 0}function ie(...e){return n2(e,Sa(e))}const{isArray:DW}=Array,{getPrototypeOf:SW,prototype:NW,keys:LW}=Object;function $C(e){if(1===e.length){const n=e[0];if(DW(n))return{args:n,keys:null};if(function xW(e){return e&&"object"==typeof e&&SW(e)===NW}(n)){const t=LW(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:EW}=Array;function u7(e){return Te(n=>function TW(e,n){return EW(n)?e(...n):e(n)}(e,n))}function WC(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function f7(...e){const n=Sa(e),t=Ac(e),{args:i,keys:r}=$C(e);if(0===i.length)return n2([],n);const a=new M1(function IW(e,n,t=Tn){return i=>{qC(n,()=>{const{length:r}=e,a=new Array(r);let o=r,s=r;for(let c=0;c<r;c++)qC(n,()=>{const l=n2(e[c],n);let u=!1;l.subscribe(d1(i,f=>{a[c]=f,u||(u=!0,s--),s||i.next(t(a.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,r?o=>WC(r,o):Tn));return t?a.pipe(u7(t)):a}function qC(e,n,t){e?Un(t,e,n):n()}const kc=Zt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function r2(e,n,t=1/0){return Le(n)?r2((i,r)=>Te((a,o)=>n(i,a,r,o))(C2(e(i,r))),t):("number"==typeof n&&(t=n),B1((i,r)=>function AW(e,n,t,i,r,a,o,s){const c=[];let l=0,u=0,f=!1;const p=()=>{f&&!c.length&&!l&&n.complete()},g=w=>l<i?b(w):c.push(w),b=w=>{a&&n.next(w),l++;let S=!1;C2(t(w,u++)).subscribe(d1(n,L=>{r?.(L),a?g(L):n.next(L)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const L=c.shift();o?Un(n,o,()=>b(L)):b(L)}p()}catch(L){n.error(L)}}))};return e.subscribe(d1(n,g,()=>{f=!0,p()})),()=>{s?.()}}(i,r,e,t)))}function xi(e=1/0){return r2(Tn,e)}function Na(...e){return function kW(){return xi(1)}()(n2(e,Sa(e)))}function YC(e){return new M1(n=>{C2(e()).subscribe(n)})}function Oc(e,n){const t=Le(e)?e:()=>e,i=r=>r.error(t());return new M1(n?r=>n.schedule(i,0,r):i)}const ft=new M1(e=>e.complete());function d7(){return B1((e,n)=>{let t=null;e._refCount++;const i=d1(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,a=t;t=null,r&&(!a||r===a)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class KC extends M1{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,ed(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 m2;const t=this.getSubject();n.add(this.source.subscribe(d1(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=m2.EMPTY)}return n}refCount(){return d7()(this)}}let QC=null;function y4(){return QC}class PW{}const N1=new q("");let h7=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(BW),providedIn:"platform"})}return e})();const FW=new q("");let BW=(()=>{class e extends h7{constructor(){super(),this._doc=H(N1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y4().getBaseHref(this._doc)}onPopState(t){const i=y4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=y4().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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function p7(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function ZC(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function jn(e){return e&&"?"!==e[0]?"?"+e:e}let M4=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(XC),providedIn:"root"})}return e})();const JC=new q("");let XC=(()=>{class e extends M4{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??H(N1).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 p7(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+jn(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,a){const o=this.prepareExternalUrl(r+jn(a));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){const o=this.prepareExternalUrl(r+jn(a));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(te(h7),te(JC,8))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ey=(()=>{class e extends M4{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=p7(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,a){let o=this.prepareExternalUrl(r+jn(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){let o=this.prepareExternalUrl(r+jn(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(te(h7),te(JC,8))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})(),La=(()=>{class e{constructor(t){this._subject=new Z,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function GW(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(ZC(ty(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+jn(i))}normalize(t){return e.stripTrailingSlash(function jW(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,ty(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+jn(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+jn(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=jn;static#t=this.joinWithSlash=p7;static#n=this.stripTrailingSlash=ZC;static#i=this.\u0275fac=function(i){return new(i||e)(te(M4))};static#r=this.\u0275prov=B({token:e,factory:()=>function UW(){return new La(te(M4))}(),providedIn:"root"})}return e})();function ty(e){return e.replace(/\/index.html$/,"")}class Sq{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 Kc=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,a,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Sq(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===a?void 0:a);else if(null!==a){const s=i.get(a);i.move(s,o),py(s,r)}});for(let r=0,a=i.length;r<a;r++){const s=i.get(r).context;s.index=r,s.count=a,s.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{py(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(E(Y2),E(I1),E(e7))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function py(e,n){e.context.$implicit=n.item}let Z2=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new Nq,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){my("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){my("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(E(Y2),E(I1))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class Nq{constructor(){this.$implicit=null,this.ngIf=null}}function my(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${K1(n)}'.`)}let Ti=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,i,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,r),get:(t,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static#e=this.\u0275fac=function(i){return new(i||e)(E(Y2))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[T1]})}return e})(),iY=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();const _y="browser";function Cy(e){return"server"===e}let cY=(()=>{class e{static#e=this.\u0275prov=B({token:e,providedIn:"root",factory:()=>function sY(e){return e===_y}(H($4))?new lY(H(N1),window):new fY})}return e})();class lY{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function uY(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 a=r.shadowRoot;if(a){const o=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(o)return o}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,a=this.offset();this.window.scrollTo(i-a[0],r-a[1])}}class fY{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}function Bt(e,n){return B1((t,i)=>{let r=null,a=0,o=!1;const s=()=>o&&!r&&i.complete();t.subscribe(d1(i,c=>{r?.unsubscribe();let l=0;const u=a++;C2(e(c,u)).subscribe(r=d1(i,f=>i.next(n?n(c,f,u,l++):f),()=>{r=null,s()}))},()=>{o=!0,s()}))})}function y2(e){return e<=0?()=>ft:B1((n,t)=>{let i=0;n.subscribe(d1(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function l2(e,n){return B1((t,i)=>{let r=0;t.subscribe(d1(i,a=>e.call(n,a,r++)&&i.next(a)))})}function Xc(e){return B1((n,t)=>{let i=!1;n.subscribe(d1(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function Ny(e=FY){return B1((n,t)=>{let i=!1;n.subscribe(d1(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function FY(){return new kc}function i3(e,n){const t=arguments.length>=2;return i=>i.pipe(e?l2((r,a)=>e(r,a,i)):Tn,y2(1),t?Xc(n):Ny(()=>new kc))}function Ia(e,n){return Le(n)?r2(e,n,1):r2(e,1)}function u2(e,n,t){const i=Le(e)||n||t?{next:e,error:n,complete:t}:e;return i?B1((r,a)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;r.subscribe(d1(a,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),a.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),a.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),a.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)}))}):Tn}function Ii(e){return B1((n,t)=>{let a,i=null,r=!1;i=n.subscribe(d1(t,void 0,void 0,o=>{a=C2(e(o,Ii(e)(n))),i?(i.unsubscribe(),i=null,a.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(t))})}function x7(e){return e<=0?()=>ft:B1((n,t)=>{let i=[];n.subscribe(d1(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 Ly(e){return Te(()=>e)}function E7(e){return B1((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function M2(e){return B1((n,t)=>{C2(e).subscribe(d1(t,()=>t.complete(),En)),!t.closed&&n.subscribe(t)})}class GY extends PW{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T7 extends GY{static makeCurrent(){!function RW(e){QC??=e}(new T7)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}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 $Y(){return Aa=Aa||document.querySelector("base"),Aa?Aa.getAttribute("href"):null}();return null==t?null:function WY(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function Vq(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,a]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(a)}return null}(document.cookie,n)}}let Aa=null,YY=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const I7=new q("");let xy=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(a=>a.supports(t)),!i)throw new A(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(te(I7),te(ve))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();class Ey{constructor(n){this._doc=n}}const A7="ng-app-id";let Ty=(()=>{class e{constructor(t,i,r,a={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Cy(a),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${A7}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const a=r.get(t);return a.usage+=i,a.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===t)return r.delete(i),a.removeAttribute(A7),a;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=i,this.platformIsServer&&o.setAttribute(A7,this.appId),t.appendChild(o),o}}addStyleToHost(t,i){const r=this.getStyleElement(t,i),a=this.styleRef,o=a.get(i)?.elements;o?o.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(te(N1),te(zs),te(Kh,8),te($4))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const k7={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O7=/%COMP%/g,JY=new q("",{providedIn:"root",factory:()=>!0});function Ay(e,n){return n.map(t=>t.replace(O7,e))}let ky=(()=>{class e{constructor(t,i,r,a,o,s,c,l=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=s,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Cy(s),this.defaultRenderer=new R7(t,o,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Lt.ShadowDom&&(i={...i,encapsulation:Lt.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof Ry?r.applyToHost(t):r instanceof P7&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let a=r.get(i.id);if(!a){const o=this.doc,s=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Lt.Emulated:a=new Ry(c,l,i,this.appId,u,o,s,f);break;case Lt.ShadowDom:return new nK(c,l,t,i,o,s,this.nonce,f);default:a=new P7(c,l,i,u,o,s,f)}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(te(xy),te(Ty),te(zs),te(JY),te(N1),te($4),te(ve),te(Kh))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();class R7{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(k7[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(Oy(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(Oy(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new A(-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 a=k7[r];a?n.setAttributeNS(a,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=k7[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&(f4.DashCase|f4.Important)?n.style.setProperty(t,i,r&f4.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&f4.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=y4().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function Oy(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class nK extends R7{constructor(n,t,i,r,a,o,s,c){super(n,a,o,c),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Ay(r.id,r.styles);for(const u of l){const f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=u,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(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class P7 extends R7{constructor(n,t,i,r,a,o,s,c){super(n,a,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?Ay(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ry extends P7{constructor(n,t,i,r,a,o,s,c){const l=r+"-"+i.id;super(n,t,i,a,o,s,c,l),this.contentAttr=function XY(e){return"_ngcontent-%COMP%".replace(O7,e)}(l),this.hostAttr=function eK(e){return"_nghost-%COMP%".replace(O7,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let iK=(()=>{class e extends Ey{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(te(N1))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();const Py=["alt","control","meta","shift"],rK={"\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"},aK={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oK=(()=>{class e extends Ey{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const a=e.parseEventName(i),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>y4().onAndCancel(t,a.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const a=e._normalizeKey(i.pop());let o="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),o="code."),Py.forEach(l=>{const u=i.indexOf(l);u>-1&&(i.splice(u,1),o+=l+".")}),o+=a,0!=i.length||0===a.length)return null;const c={};return c.domEventName=r,c.fullKey=o,c}static matchEventFullKeyCode(t,i){let r=rK[t.key]||t.key,a="";return i.indexOf("code.")>-1&&(r=t.code,a="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Py.forEach(o=>{o!==r&&(0,aK[o])(t)&&(a+=o+".")}),a+=r,a===i)}static eventCallback(t,i,r){return a=>{e.matchEventFullKeyCode(a,t)&&r.runGuarded(()=>i(a))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(te(N1))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function Fy(e){return{appProviders:[...Uy,...e?.providers??[]],platformProviders:fK}}const fK=[{provide:$4,useValue:_y},{provide:Yh,useValue:function cK(){T7.makeCurrent()},multi:!0},{provide:N1,useFactory:function uK(){return function rO(e){W8=e}(document),document},deps:[]}],dK=new q(""),By=[{provide:Hc,useClass:class qY{addToWindow(n){Ue.getAngularTestability=(i,r=!0)=>{const a=n.findTestabilityInTree(i,r);if(null==a)throw new A(5103,!1);return a},Ue.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ue.getAllAngularRootElements=()=>n.getAllRootElements(),Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(i=>{const r=Ue.getAllAngularTestabilities();let a=r.length;const o=function(){a--,0==a&&i()};r.forEach(s=>{s.whenStable(o)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?y4().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:O_,useClass:B5,deps:[ve,U5,Hc]},{provide:B5,useClass:B5,deps:[ve,U5,Hc]}],Uy=[{provide:c8,useValue:"root"},{provide:cn,useFactory:function lK(){return new cn},deps:[]},{provide:I7,useClass:iK,multi:!0,deps:[N1,ve,$4]},{provide:I7,useClass:oK,multi:!0,deps:[N1]},ky,Ty,xy,{provide:gm,useExisting:ky},{provide:class dY{},useClass:YY,deps:[]},[]];let hK=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:zs,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(te(dK,12))};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({providers:[...Uy,...By],imports:[iY,c$]})}return e})(),pK=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(i){return new(i||e)(te(N1))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$y=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:function(i){let r=null;return r=i?new(i||e):te(_K),r},providedIn:"root"})}return e})(),_K=(()=>{class e extends $y{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Mt.NONE:return i;case Mt.HTML:return un(i,"HTML")?st(i):pp(this._doc,String(i)).toString();case Mt.STYLE:return un(i,"Style")?st(i):i;case Mt.SCRIPT:if(un(i,"Script"))return st(i);throw new A(5200,!1);case Mt.URL:return un(i,"URL")?st(i):As(String(i));case Mt.RESOURCE_URL:if(un(i,"ResourceURL"))return st(i);throw new A(5201,!1);default:throw new A(5202,!1)}}bypassSecurityTrustHtml(t){return function VO(e){return new CO(e)}(t)}bypassSecurityTrustStyle(t){return function zO(e){return new yO(e)}(t)}bypassSecurityTrustScript(t){return function DO(e){return new MO(e)}(t)}bypassSecurityTrustUrl(t){return function SO(e){return new bO(e)}(t)}bypassSecurityTrustResourceUrl(t){return function NO(e){return new wO(e)}(t)}static#e=this.\u0275fac=function(i){return new(i||e)(te(N1))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ce="primary",Oa=Symbol("RouteTitle");class CK{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 Ai(e){return new CK(e)}function yK(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 a=0;a<i.length;a++){const o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function bn(e,n){const t=e?F7(e):void 0,i=n?F7(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let a=0;a<t.length;a++)if(r=t[a],!qy(e[r],n[r]))return!1;return!0}function F7(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function qy(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,a)=>i[a]===r)}return e===n}function Yy(e){return e.length>0?e[e.length-1]:null}function b4(e){return function $$(e){return!!e&&(e instanceof M1||Le(e.lift)&&Le(e.subscribe))}(e)?e:Va(e)?n2(Promise.resolve(e)):ie(e)}const bK={exact:function Zy(e,n,t){if(!r3(e.segments,n.segments)||!e6(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!Zy(e.children[i],n.children[i],t))return!1;return!0},subset:Jy},Ky={exact:function wK(e,n){return bn(e,n)},subset:function HK(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>qy(e[t],n[t]))},ignored:()=>!0};function Qy(e,n,t){return bK[t.paths](e.root,n.root,t.matrixParams)&&Ky[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Jy(e,n,t){return Xy(e,n,n.segments,t)}function Xy(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!r3(r,t)||n.hasChildren()||!e6(r,t,i))}if(e.segments.length===t.length){if(!r3(e.segments,t)||!e6(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!Jy(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),a=t.slice(e.segments.length);return!!(r3(e.segments,r)&&e6(e.segments,r,i)&&e.children[Ce])&&Xy(e.children[Ce],n,a,i)}}function e6(e,n,t){return n.every((i,r)=>Ky[t](e[r].parameters,i.parameters))}class ki{constructor(n=new Xe([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Ai(this.queryParams),this._queryParamMap}toString(){return DK.serialize(this)}}class Xe{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return t6(this)}}class Ra{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Ai(this.parameters),this._parameterMap}toString(){return nM(this)}}function r3(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Oi=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>new B7,providedIn:"root"})}return e})();class B7{parse(n){const t=new RK(n);return new ki(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Pa(n.root,!0)}`,i=function LK(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${n6(t)}=${n6(r)}`).join("&"):`${n6(t)}=${n6(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function SK(e){return encodeURI(e)}(n.fragment)}`:""}`}}const DK=new B7;function t6(e){return e.segments.map(n=>nM(n)).join("/")}function Pa(e,n){if(!e.hasChildren())return t6(e);if(n){const t=e.children[Ce]?Pa(e.children[Ce],!1):"",i=[];return Object.entries(e.children).forEach(([r,a])=>{r!==Ce&&i.push(`${r}:${Pa(a,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function zK(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===Ce&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==Ce&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===Ce?[Pa(e.children[Ce],!1)]:[`${r}:${Pa(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ce]?`${t6(e)}/${t[0]}`:`${t6(e)}/(${t.join("//")})`}}function eM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function n6(e){return eM(e).replace(/%3B/gi,";")}function U7(e){return eM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function i6(e){return decodeURIComponent(e)}function tM(e){return i6(e.replace(/\+/g,"%20"))}function nM(e){return`${U7(e.path)}${function NK(e){return Object.entries(e).map(([n,t])=>`;${U7(n)}=${U7(t)}`).join("")}(e.parameters)}`}const xK=/^[^\/()?;#]+/;function j7(e){const n=e.match(xK);return n?n[0]:""}const EK=/^[^\/()?;=#]+/,IK=/^[^=?&#]+/,kK=/^[^&#]+/;class RK{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xe([],{}):new Xe([],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[Ce]=new Xe(n,t)),i}parseSegment(){const n=j7(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(n),new Ra(i6(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function TK(e){const n=e.match(EK);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=j7(this.remaining);r&&(i=r,this.capture(i))}n[i6(t)]=i6(i)}parseQueryParam(n){const t=function AK(e){const n=e.match(IK);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=function OK(e){const n=e.match(kK);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=tM(t),a=tM(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(a)}else n[r]=a}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=j7(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new A(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=Ce);const o=this.parseChildren();t[a]=1===Object.keys(o).length?o[Ce]:new Xe([],o),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 A(4011,!1)}}function iM(e){return e.segments.length>0?new Xe([],{[Ce]:e}):e}function rM(e){const n={};for(const[i,r]of Object.entries(e.children)){const a=rM(r);if(i===Ce&&0===a.segments.length&&a.hasChildren())for(const[o,s]of Object.entries(a.children))n[o]=s;else(a.segments.length>0||a.hasChildren())&&(n[i]=a)}return function PK(e){if(1===e.numberOfChildren&&e.children[Ce]){const n=e.children[Ce];return new Xe(e.segments.concat(n.segments),n.children)}return e}(new Xe(e.segments,n))}function Ri(e){return e instanceof ki}function aM(e){let n;const r=iM(function t(a){const o={};for(const c of a.children){const l=t(c);o[c.outlet]=l}const s=new Xe(a.url,o);return a===e&&(n=s),s}(e.root));return n??r}function oM(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return G7(r,r,r,t,i);const a=function BK(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new cM(!0,0,e);let n=0,t=!1;const i=e.reduce((r,a,o)=>{if("object"==typeof a&&null!=a){if(a.outlets){const s={};return Object.entries(a.outlets).forEach(([c,l])=>{s[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:s}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===o?(a.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,a]},[]);return new cM(t,n,i)}(n);if(a.toRoot())return G7(r,r,new Xe([],{}),t,i);const o=function UK(e,n,t){if(e.isAbsolute)return new a6(n,!0,0);if(!t)return new a6(n,!1,NaN);if(null===t.parent)return new a6(t,!0,0);const i=r6(e.commands[0])?0:1;return function jK(e,n,t){let i=e,r=n,a=t;for(;a>r;){if(a-=r,i=i.parent,!i)throw new A(4005,!1);r=i.segments.length}return new a6(i,!1,r-a)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(a,r,e),s=o.processChildren?Ba(o.segmentGroup,o.index,a.commands):lM(o.segmentGroup,o.index,a.commands);return G7(r,o.segmentGroup,s,t,i)}function r6(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Fa(e){return"object"==typeof e&&null!=e&&e.outlets}function G7(e,n,t,i,r){let o,a={};i&&Object.entries(i).forEach(([c,l])=>{a[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),o=e===n?t:sM(e,n,t);const s=iM(rM(o));return new ki(s,a,r)}function sM(e,n,t){const i={};return Object.entries(e.children).forEach(([r,a])=>{i[r]=a===n?t:sM(a,n,t)}),new Xe(e.segments,i)}class cM{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&r6(i[0]))throw new A(4003,!1);const r=i.find(Fa);if(r&&r!==Yy(i))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class a6{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function lM(e,n,t){if(e??=new Xe([],{}),0===e.segments.length&&e.hasChildren())return Ba(e,n,t);const i=function $K(e,n,t){let i=0,r=n;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return a;const o=e.segments[r],s=t[i];if(Fa(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(!fM(c,l,o))return a;i+=2}else{if(!fM(c,{},o))return a;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 a=new Xe(e.segments.slice(0,i.pathIndex),{});return a.children[Ce]=new Xe(e.segments.slice(i.pathIndex),e.children),Ba(a,0,r)}return i.match&&0===r.length?new Xe(e.segments,{}):i.match&&!e.hasChildren()?$7(e,n,t):i.match?Ba(e,0,r):$7(e,n,t)}function Ba(e,n,t){if(0===t.length)return new Xe(e.segments,{});{const i=function GK(e){return Fa(e[0])?e[0].outlets:{[Ce]:e}}(t),r={};if(Object.keys(i).some(a=>a!==Ce)&&e.children[Ce]&&1===e.numberOfChildren&&0===e.children[Ce].segments.length){const a=Ba(e.children[Ce],n,t);return new Xe(e.segments,a.children)}return Object.entries(i).forEach(([a,o])=>{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=lM(e.children[a],n,o))}),Object.entries(e.children).forEach(([a,o])=>{void 0===i[a]&&(r[a]=o)}),new Xe(e.segments,r)}}function $7(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const a=t[r];if(Fa(a)){const c=WK(a.outlets);return new Xe(i,c)}if(0===r&&r6(t[0])){i.push(new Ra(e.segments[n].path,uM(t[0]))),r++;continue}const o=Fa(a)?a.outlets[Ce]:`${a}`,s=r<t.length-1?t[r+1]:null;o&&s&&r6(s)?(i.push(new Ra(o,uM(s))),r+=2):(i.push(new Ra(o,{})),r++)}return new Xe(i,{})}function WK(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=$7(new Xe([],{}),0,i))}),n}function uM(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function fM(e,n,t){return e==t.path&&bn(n,t.parameters)}const Ua="imperative";var xe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(xe||{});class wn{constructor(n,t){this.id=n,this.url=t}}class ja extends wn{constructor(n,t,i="imperative",r=null){super(n,t),this.type=xe.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wn extends wn{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=xe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ht=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ht||{}),o6=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(o6||{});class Pi extends wn{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=xe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fi extends wn{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=xe.NavigationSkipped}}class s6 extends wn{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=xe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dM extends wn{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=xe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qK extends wn{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=xe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YK extends wn{constructor(n,t,i,r,a){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=a,this.type=xe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class KK extends wn{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=xe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QK extends wn{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=xe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZK{constructor(n){this.route=n,this.type=xe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class JK{constructor(n){this.route=n,this.type=xe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class XK{constructor(n){this.snapshot=n,this.type=xe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eQ{constructor(n){this.snapshot=n,this.type=xe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tQ{constructor(n){this.snapshot=n,this.type=xe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nQ{constructor(n){this.snapshot=n,this.type=xe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hM{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=xe.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class W7{}class q7{constructor(n){this.url=n}}class iQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ga,this.attachRef=null}}let Ga=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new iQ,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class pM{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=Y7(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Y7(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=K7(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return K7(n,this._root).map(t=>t.value)}}function Y7(e,n){if(e===n.value)return n;for(const t of n.children){const i=Y7(e,t);if(i)return i}return null}function K7(e,n){if(e===n.value)return[n];for(const t of n.children){const i=K7(e,t);if(i.length)return i.unshift(n),i}return[]}class Ut{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Bi(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class mM extends pM{constructor(n,t){super(n),this.snapshot=t,J7(this,n)}toString(){return this.snapshot.toString()}}function gM(e){const n=function rQ(e){const a=new Z7([],{},{},"",{},Ce,e,null,{});return new vM("",new Ut(a,[]))}(e),t=new yt([new Ra("",{})]),i=new yt({}),r=new yt({}),a=new yt({}),o=new yt(""),s=new qn(t,i,a,o,r,Ce,e,n.root);return s.snapshot=n.root,new mM(new Ut(s,[]),n)}class qn{constructor(n,t,i,r,a,o,s,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=a,this.outlet=o,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Te(l=>l[Oa]))??ie(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a}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=>Ai(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Te(n=>Ai(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Q7(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&&CM(r)&&(i.resolve[Oa]=r.title),i}class Z7{get title(){return this.data?.[Oa]}constructor(n,t,i,r,a,o,s,c,l){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,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??=Ai(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ai(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vM extends pM{constructor(n,t){super(t),this.url=n,J7(this,t)}toString(){return _M(this._root)}}function J7(e,n){n.value._routerState=e,n.children.forEach(t=>J7(e,t))}function _M(e){const n=e.children.length>0?` { ${e.children.map(_M).join(", ")} } `:"";return`${e.value}${n}`}function X7(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,bn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),bn(n.params,t.params)||e.paramsSubject.next(t.params),function MK(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!bn(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),bn(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function eu(e,n){const t=bn(e.params,n.params)&&function VK(e,n){return r3(e,n)&&e.every((t,i)=>bn(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||eu(e.parent,n.parent))}function CM(e){return"string"==typeof e.title||null===e.title}let tu=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new Z,this.deactivateEvents=new Z,this.attachEvents=new Z,this.detachEvents=new Z,this.parentContexts=H(Ga),this.location=H(Y2),this.changeDetector=H(ut),this.environmentInjector=H(E2),this.inputBinder=H(c6,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(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 A(4013,!1);this._activatedRoute=t;const r=this.location,o=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new aQ(t,s,r.injector);this.activated=r.createComponent(o,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[T1]})}return e})();class aQ{constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i,this.__ngOutletInjector=!0}get(n,t){return n===qn?this.route:n===Ga?this.childContexts:this.parent.get(n,t)}}const c6=new q("");let yM=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=f7([i.queryParams,i.params,i.data]).pipe(Bt(([a,o,s],c)=>(s={...a,...o,...s},0===c?ie(s):Promise.resolve(s)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const o=function G$(e){const n=He(e);if(!n)return null;const t=new ia(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(o)for(const{templateName:s}of o.inputs)t.activatedComponentRef.setInput(s,a[s]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function $a(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function sQ(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return $a(e,i,r);return $a(e,i)})}(e,n,t);return new Ut(i,r)}{if(e.shouldAttach(n.value)){const a=e.retrieve(n.value);if(null!==a){const o=a.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>$a(e,s)),o}}const i=function cQ(e){return new qn(new yt(e.url),new yt(e.params),new yt(e.queryParams),new yt(e.fragment),new yt(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(a=>$a(e,a));return new Ut(i,r)}}const MM="ngNavigationCancelingError";function bM(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=Ri(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=wM(!1,ht.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function wM(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[MM]=!0,t.cancellationCode=n,t}function HM(e){return!!e&&e[MM]}let VM=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ng-component"]],standalone:!0,features:[se],decls:1,vars:0,template:function(i,r){1&i&&k(0,"router-outlet")},dependencies:[tu],encapsulation:2})}return e})();function nu(e){const n=e.children&&e.children.map(nu),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Ce&&(t.component=VM),t}function Hn(e){return e.outlet||Ce}function Wa(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 gQ{constructor(n,t,i,r,a){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=a}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),X7(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Bi(t);n.children.forEach(a=>{const o=a.value.outlet;this.deactivateRoutes(a,r[o],i),delete r[o]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(r===a)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,t,o.children)}else this.deactivateChildRoutes(n,t,i);else a&&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,a=Bi(n);for(const o of Object.values(a))this.deactivateRouteAndItsChildren(o,r);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=Bi(n);for(const o of Object.values(a))this.deactivateRouteAndItsChildren(o,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=Bi(t);n.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],i),this.forwardEvent(new nQ(a.value.snapshot))}),n.children.length&&this.forwardEvent(new eQ(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(X7(r),r===a)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,o.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),X7(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=Wa(r.snapshot);o.attachRef=null,o.route=r,o.injector=s,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class zM{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class l6{constructor(n,t){this.component=n,this.route=t}}function vQ(e,n,t){const i=e._root;return qa(i,n?n._root:null,t,[i.value])}function Ui(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function PI(e){return null!==qo(e)}(e)?n.get(e):e:i}function qa(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=Bi(n);return e.children.forEach(o=>{(function CQ(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,o=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const c=function yQ(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!r3(e.url,n.url);case"pathParamsOrQueryParamsChange":return!r3(e.url,n.url)||!bn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!eu(e,n)||!bn(e.queryParams,n.queryParams);default:return!eu(e,n)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new zM(i)):(a.data=o.data,a._resolvedData=o._resolvedData),qa(e,n,a.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new l6(s.outlet.component,o))}else o&&Ya(n,s,r),r.canActivateChecks.push(new zM(i)),qa(e,null,a.component?s?s.children:null:t,i,r)})(o,a[o.value.outlet],t,i.concat([o.value]),r),delete a[o.value.outlet]}),Object.entries(a).forEach(([o,s])=>Ya(s,t.getContext(o),r)),r}function Ya(e,n,t){const i=Bi(e),r=e.value;Object.entries(i).forEach(([a,o])=>{Ya(o,r.component?n?n.children.getContext(a):null:n,t)}),t.canDeactivateChecks.push(new l6(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Ka(e){return"function"==typeof e}function DM(e){return e instanceof kc||"EmptyError"===e?.name}const u6=Symbol("INITIAL_VALUE");function ji(){return Bt(e=>f7(e.map(n=>n.pipe(y2(1),function Sy(...e){const n=Sa(e);return B1((t,i)=>{(n?Na(e,t,n):Na(e,t)).subscribe(i)})}(u6)))).pipe(Te(n=>{for(const t of n)if(!0!==t){if(t===u6)return u6;if(!1===t||t instanceof ki)return t}return!0}),l2(n=>n!==u6),y2(1)))}function SM(e){return function NI(...e){return Z9(e)}(u2(n=>{if(Ri(n))throw bM(0,n)}),Te(n=>!0===n))}class iu{constructor(n){this.segmentGroup=n||null}}class ru extends Error{constructor(n){super(),this.urlTree=n}}function Gi(e){return Oc(new iu(e))}class PQ{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ie(i);if(r.numberOfChildren>1||!r.children[Ce])return Oc(new A(4e3,!1));r=r.children[Ce]}}applyRedirectCommands(n,t,i){const r=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if(t.startsWith("/"))throw new ru(r);return r}applyRedirectCreateUrlTree(n,t,i,r){const a=this.createSegmentGroup(n,t.root,i,r);return new ki(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,a])=>{if("string"==typeof a&&a.startsWith(":")){const s=a.substring(1);i[r]=t[s]}else i[r]=a}),i}createSegmentGroup(n,t,i,r){const a=this.createSegments(n,t.segments,i,r);let o={};return Object.entries(t.children).forEach(([s,c])=>{o[s]=this.createSegmentGroup(n,c,i,r)}),new Xe(a,o)}createSegments(n,t,i,r){return t.map(a=>a.path.startsWith(":")?this.findPosParam(n,a,r):this.findOrReturn(a,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new A(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 au={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function FQ(e,n,t,i,r){const a=ou(e,n,t);return a.matched?(i=function uQ(e,n){return e.providers&&!e._injector&&(e._injector=rc(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function kQ(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?ie(r.map(o=>{const s=Ui(o,e);return b4(function zQ(e){return e&&Ka(e.canMatch)}(s)?s.canMatch(n,t):kn(e,()=>s(n,t)))})).pipe(ji(),SM()):ie(!0)}(i,n,t).pipe(Te(o=>!0===o?a:{...au}))):ie(a)}function ou(e,n,t){if("**"===n.path)return function BQ(e){return{matched:!0,parameters:e.length>0?Yy(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...au}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||yK)(t,e,n);if(!r)return{...au};const a={};Object.entries(r.posParams??{}).forEach(([s,c])=>{a[s]=c.path});const o=r.consumed.length>0?{...a,...r.consumed[r.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function NM(e,n,t,i){return t.length>0&&function GQ(e,n,t){return t.some(i=>f6(e,n,i)&&Hn(i)!==Ce)}(e,t,i)?{segmentGroup:new Xe(n,jQ(i,new Xe(t,e.children))),slicedSegments:[]}:0===t.length&&function $Q(e,n,t){return t.some(i=>f6(e,n,i))}(e,t,i)?{segmentGroup:new Xe(e.segments,UQ(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new Xe(e.segments,e.children),slicedSegments:t}}function UQ(e,n,t,i){const r={};for(const a of t)if(f6(e,n,a)&&!i[Hn(a)]){const o=new Xe([],{});r[Hn(a)]=o}return{...i,...r}}function jQ(e,n){const t={};t[Ce]=n;for(const i of e)if(""===i.path&&Hn(i)!==Ce){const r=new Xe([],{});t[Hn(i)]=r}return t}function f6(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class YQ{}class ZQ{constructor(n,t,i,r,a,o,s){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=o,this.urlSerializer=s,this.applyRedirects=new PQ(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new A(4002,`'${n.segmentGroup}'`)}recognize(){const n=NM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Te(t=>{const i=new Z7([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),r=new Ut(i,t),a=new vM("",r),o=function FK(e,n,t=null,i=null){return oM(aM(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(a._root,null),{state:a,tree:o}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Ce).pipe(Ii(i=>{if(i instanceof ru)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof iu?this.noMatchError(i):i}))}inheritParamsAndData(n,t){const i=n.value,r=Q7(i,t,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(a=>this.inheritParamsAndData(a,i))}processSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,r,!0).pipe(Te(a=>a instanceof Ut?[a]:[]))}processChildren(n,t,i){const r=[];for(const a of Object.keys(i.children))"primary"===a?r.unshift(a):r.push(a);return n2(r).pipe(Ia(a=>{const o=i.children[a],s=function pQ(e,n){const t=e.filter(i=>Hn(i)===n);return t.push(...e.filter(i=>Hn(i)!==n)),t}(t,a);return this.processSegmentGroup(n,s,o,a)}),function UY(e,n){return B1(function BY(e,n,t,i,r){return(a,o)=>{let s=t,c=n,l=0;a.subscribe(d1(o,u=>{const f=l++;c=s?e(c,u,f):(s=!0,u),i&&o.next(c)},r&&(()=>{s&&o.next(c),o.complete()})))}}(e,n,arguments.length>=2,!0))}((a,o)=>(a.push(...o),a)),Xc(null),function jY(e,n){const t=arguments.length>=2;return i=>i.pipe(e?l2((r,a)=>e(r,a,i)):Tn,x7(1),t?Xc(n):Ny(()=>new kc))}(),r2(a=>{if(null===a)return Gi(i);const o=LM(a);return function JQ(e){e.sort((n,t)=>n.value.outlet===Ce?-1:t.value.outlet===Ce?1:n.value.outlet.localeCompare(t.value.outlet))}(o),ie(o)}))}processSegment(n,t,i,r,a,o){return n2(t).pipe(Ia(s=>this.processSegmentAgainstRoute(s._injector??n,t,s,i,r,a,o).pipe(Ii(c=>{if(c instanceof iu)return ie(null);throw c}))),i3(s=>!!s),Ii(s=>{if(DM(s))return function qQ(e,n,t){return 0===n.length&&!e.children[t]}(i,r,a)?ie(new YQ):Gi(i);throw s}))}processSegmentAgainstRoute(n,t,i,r,a,o,s){return function WQ(e,n,t,i){return!!(Hn(e)===i||i!==Ce&&f6(n,t,e))&&ou(n,e,t).matched}(i,r,a,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,a,o):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,a,o):Gi(r):Gi(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){const{matched:s,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=ou(t,r,a);if(!s)return Gi(t);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,f).pipe(r2(p=>this.processSegment(n,i,t,p.concat(u),o,!1)))}matchSegmentAgainstRoute(n,t,i,r,a){const o=FQ(t,i,r,n);return"**"===i.path&&(t.children={}),o.pipe(Bt(s=>s.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Bt(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:u,remainingSegments:f,parameters:p}=s,g=new Z7(u,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function eZ(e){return e.data||{}}(i),Hn(i),i.component??i._loadedComponent??null,i,function tZ(e){return e.resolve||{}}(i)),{segmentGroup:b,slicedSegments:w}=NM(t,u,f,c);if(0===w.length&&b.hasChildren())return this.processChildren(l,c,b).pipe(Te(L=>null===L?null:new Ut(g,L)));if(0===c.length&&0===w.length)return ie(new Ut(g,[]));const S=Hn(i)===a;return this.processSegment(l,c,b,w,S?Ce:a,!0).pipe(Te(L=>new Ut(g,L instanceof Ut?[L]:[])))})):Gi(t)))}getChildConfig(n,t,i){return t.children?ie({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ie({routes:t._loadedRoutes,injector:t._loadedInjector}):function AQ(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?ie(!0):ie(r.map(o=>{const s=Ui(o,e);return b4(function bQ(e){return e&&Ka(e.canLoad)}(s)?s.canLoad(n,t):kn(e,()=>s(n,t)))})).pipe(ji(),SM())}(n,t,i).pipe(r2(r=>r?this.configLoader.loadChildren(n,t).pipe(u2(a=>{t._loadedRoutes=a.routes,t._loadedInjector=a.injector})):function RQ(e){return Oc(wM(!1,ht.GuardRejected))}())):ie({routes:[],injector:n})}}function XQ(e){const n=e.value.routeConfig;return n&&""===n.path}function LM(e){const n=[],t=new Set;for(const i of e){if(!XQ(i)){n.push(i);continue}const r=n.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=LM(i.children);n.push(new Ut(i.value,r))}return n.filter(i=>!t.has(i))}function xM(e){const n=e.children.map(t=>xM(t)).flat();return[e,...n]}function su(e){return Bt(n=>{const t=e(n);return t?n2(t).pipe(Te(()=>n)):ie(n)})}let EM=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===Ce);return i}getResolvedTitleForRoute(t){return t.data[Oa]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(sZ),providedIn:"root"})}return e})(),sZ=(()=>{class e extends EM{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||e)(te(pK))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const $i=new q("",{providedIn:"root",factory:()=>({})}),Wi=new q("");let cu=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=H(U_)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ie(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=b4(t.loadComponent()).pipe(Te(TM),u2(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),E7(()=>{this.componentLoaders.delete(t)})),r=new KC(i,()=>new a1).pipe(d7());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ie({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const a=function cZ(e,n,t,i){return b4(e.loadChildren()).pipe(Te(TM),r2(r=>r instanceof cg||Array.isArray(r)?ie(r):n2(n.compileModuleAsync(r))),Te(r=>{i&&i(e);let a,o,s=!1;return Array.isArray(r)?(o=r,!0):(a=r.create(t).injector,o=a.get(Wi,[],{optional:!0,self:!0}).flat()),{routes:o.map(nu),injector:a}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(E7(()=>{this.childrenLoaders.delete(i)})),o=new KC(a,()=>new a1).pipe(d7());return this.childrenLoaders.set(i,o),o}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TM(e){return function lZ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let lu=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(uZ),providedIn:"root"})}return e})(),uZ=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const IM=new q(""),AM=new q("");function fZ(e,n,t){const i=e.get(AM),r=e.get(N1);return e.get(ve).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let a;const o=new Promise(l=>{a=l}),s=r.startViewTransition(()=>(a(),function dZ(e){return new Promise(n=>{wm(n,{injector:e})})}(e))),{onViewTransitionCreated:c}=i;return c&&kn(e,()=>c({transition:s,from:n,to:t})),o})}let d6=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new a1,this.transitionAbortSubject=new a1,this.configLoader=H(cu),this.environmentInjector=H(E2),this.urlSerializer=H(Oi),this.rootContexts=H(Ga),this.location=H(La),this.inputBindingEnabled=null!==H(c6,{optional:!0}),this.titleStrategy=H(EM),this.options=H($i,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=H(lu),this.createViewTransition=H(IM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ie(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new JK(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new ZK(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new yt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ua,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(l2(a=>0!==a.id),Te(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Bt(a=>{let o=!1,s=!1;return ie(a).pipe(Bt(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",ht.SupersededByNewNavigation),ft;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new Fi(c.id,this.urlSerializer.serialize(c.rawUrl),f,o6.IgnoredSameUrlNavigation)),c.resolve(null),ft}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return ie(c).pipe(Bt(f=>{const p=this.transitions?.getValue();return this.events.next(new ja(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ft:Promise.resolve(f)}),function nZ(e,n,t,i,r,a){return r2(o=>function KQ(e,n,t,i,r,a,o="emptyOnly"){return new ZQ(e,n,t,i,r,o,a).recognize()}(e,n,t,i,o.extractedUrl,r,a).pipe(Te(({state:s,tree:c})=>({...o,targetSnapshot:s,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),u2(f=>{a.targetSnapshot=f.targetSnapshot,a.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const p=new dM(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:f,extractedUrl:p,source:g,restoredState:b,extras:w}=c,S=new ja(f,this.urlSerializer.serialize(p),g,b);this.events.next(S);const L=gM(this.rootComponentType).snapshot;return this.currentTransition=a={...c,targetSnapshot:L,urlAfterRedirects:p,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=p,ie(a)}{const f="";return this.events.next(new Fi(c.id,this.urlSerializer.serialize(c.extractedUrl),f,o6.IgnoredByUrlHandlingStrategy)),c.resolve(null),ft}}),u2(c=>{const l=new qK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),Te(c=>(this.currentTransition=a={...c,guards:vQ(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},a)),function DQ(e,n){return r2(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:o}}=t;return 0===o.length&&0===a.length?ie({...t,guardsResult:!0}):function SQ(e,n,t,i){return n2(e).pipe(r2(r=>function IQ(e,n,t,i,r){const a=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return a&&0!==a.length?ie(a.map(s=>{const c=Wa(n)??r,l=Ui(s,c);return b4(function VQ(e){return e&&Ka(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,i):kn(c,()=>l(e,n,t,i))).pipe(i3())})).pipe(ji()):ie(!0)}(r.component,r.route,t,n,i)),i3(r=>!0!==r,!0))}(o,i,r,e).pipe(r2(s=>s&&function MQ(e){return"boolean"==typeof e}(s)?function NQ(e,n,t,i){return n2(n).pipe(Ia(r=>Na(function xQ(e,n){return null!==e&&n&&n(new XK(e)),ie(!0)}(r.route.parent,i),function LQ(e,n){return null!==e&&n&&n(new tQ(e)),ie(!0)}(r.route,i),function TQ(e,n,t){const i=n[n.length-1],a=n.slice(0,n.length-1).reverse().map(o=>function _Q(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(o)).filter(o=>null!==o).map(o=>YC(()=>ie(o.guards.map(c=>{const l=Wa(o.node)??t,u=Ui(c,l);return b4(function HQ(e){return e&&Ka(e.canActivateChild)}(u)?u.canActivateChild(i,e):kn(l,()=>u(i,e))).pipe(i3())})).pipe(ji())));return ie(a).pipe(ji())}(e,r.path,t),function EQ(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ie(!0);const r=i.map(a=>YC(()=>{const o=Wa(n)??t,s=Ui(a,o);return b4(function wQ(e){return e&&Ka(e.canActivate)}(s)?s.canActivate(n,e):kn(o,()=>s(n,e))).pipe(i3())}));return ie(r).pipe(ji())}(e,r.route,t))),i3(r=>!0!==r,!0))}(i,a,e,n):ie(s)),Te(s=>({...t,guardsResult:s})))})}(this.environmentInjector,c=>this.events.next(c)),u2(c=>{if(a.guardsResult=c.guardsResult,Ri(c.guardsResult))throw bM(0,c.guardsResult);const l=new YK(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),l2(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",ht.GuardRejected),!1)),su(c=>{if(c.guards.canActivateChecks.length)return ie(c).pipe(u2(l=>{const u=new KK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Bt(l=>{let u=!1;return ie(l).pipe(function iZ(e,n){return r2(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return ie(t);const a=new Set(r.map(c=>c.route)),o=new Set;for(const c of a)if(!o.has(c))for(const l of xM(c))o.add(l);let s=0;return n2(o).pipe(Ia(c=>a.has(c)?function rZ(e,n,t,i){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!CM(r)&&(a[Oa]=r.title),function aZ(e,n,t,i){const r=F7(e);if(0===r.length)return ie({});const a={};return n2(r).pipe(r2(o=>function oZ(e,n,t,i){const r=Wa(n)??i,a=Ui(e,r);return b4(a.resolve?a.resolve(n,t):kn(r,()=>a(n,t)))}(e[o],n,t,i).pipe(i3(),u2(s=>{a[o]=s}))),x7(1),Ly(a),Ii(o=>DM(o)?ft:Oc(o)))}(a,e,n,i).pipe(Te(o=>(e._resolvedData=o,e.data=Q7(e,e.parent,t).resolve,null)))}(c,i,e,n):(c.data=Q7(c,c.parent,e).resolve,ie(void 0))),u2(()=>s++),x7(1),r2(c=>s===o.size?ie(t):ft))})}(this.paramsInheritanceStrategy,this.environmentInjector),u2({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",ht.NoDataFromResolver)}}))}),u2(l=>{const u=new QK(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),su(c=>{const l=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(u2(p=>{u.component=p}),Te(()=>{})));for(const p of u.children)f.push(...l(p));return f};return f7(l(c.targetSnapshot.root)).pipe(Xc(null),y2(1))}),su(()=>this.afterPreactivation()),Bt(()=>{const{currentSnapshot:c,targetSnapshot:l}=a,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?n2(u).pipe(Te(()=>a)):ie(a)}),Te(c=>{const l=function oQ(e,n,t){const i=$a(e,n._root,t?t._root:void 0);return new mM(i,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,a}),u2(()=>{this.events.next(new W7)}),((e,n,t,i)=>Te(r=>(new gQ(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),y2(1),u2({next:c=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{o=!0}}),M2(this.transitionAbortSubject.pipe(u2(c=>{throw c}))),E7(()=>{!o&&!s&&this.cancelNavigationTransition(a,"",ht.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ii(c=>{if(s=!0,HM(c))this.events.next(new Pi(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),function lQ(e){return HM(e)&&Ri(e.url)}(c)?this.events.next(new q7(c.url)):a.resolve(!1);else{this.events.next(new s6(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return ft}))}))}cancelNavigationTransition(t,i,r){const a=new Pi(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hZ(e){return e!==Ua}let pZ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(gZ),providedIn:"root"})}return e})();class mZ{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let gZ=(()=>{class e extends mZ{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),kM=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:()=>H(vZ),providedIn:"root"})}return e})(),vZ=(()=>{class e extends kM{constructor(){super(...arguments),this.location=H(La),this.urlSerializer=H(Oi),this.options=H($i,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=H(lu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ki,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=gM(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof ja)this.stateMemento=this.createStateMemento();else if(t instanceof Fi)this.rawUrlTree=i.initialUrl;else if(t instanceof dM){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else t instanceof W7?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):t instanceof Pi&&(t.code===ht.GuardRejected||t.code===ht.NoDataFromResolver)?this.restoreHistory(i):t instanceof s6?this.restoreHistory(i,!0):t instanceof Wn&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",o)}else{const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",a)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-this.browserPageId;0!==a?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&0===a&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Qa||{});function OM(e,n){e.events.pipe(l2(t=>t instanceof Wn||t instanceof Pi||t instanceof s6||t instanceof Fi),Te(t=>t instanceof Wn||t instanceof Fi?Qa.COMPLETE:t instanceof Pi&&(t.code===ht.Redirect||t.code===ht.SupersededByNewNavigation)?Qa.REDIRECTING:Qa.FAILED),l2(t=>t!==Qa.REDIRECTING),y2(1)).subscribe(()=>{n()})}function _Z(e){throw e}const CZ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let R2=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=H(E_),this.stateManager=H(kM),this.options=H($i,{optional:!0})||{},this.pendingTasks=H(oi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=H(d6),this.urlSerializer=H(Oi),this.location=H(La),this.urlHandlingStrategy=H(lu),this._events=new a1,this.errorHandler=this.options.errorHandler||_Z,this.navigated=!1,this.routeReuseStrategy=H(pZ),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=H(Wi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!H(c6,{optional:!0}),this.eventsSubscription=new m2,this.isNgZoneEnabled=H(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(null!==r&&null!==a)if(this.stateManager.handleRouterEvent(i,a),i instanceof Pi&&i.code!==ht.Redirect&&i.code!==ht.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wn)this.navigated=!0;else if(i instanceof q7){const o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||hZ(r.source)};this.scheduleNavigation(o,Ua,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function bZ(e){return!(e instanceof W7||e instanceof q7)})(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),Ua,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const a={replaceUrl:!0},o=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}const s=this.parseUrl(t);this.scheduleNavigation(s,i,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(nu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:a,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:o;let f,u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...a};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=a||null}null!==u&&(u=this.removeEmptyProps(u));try{f=aM(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),f=this.currentUrlTree.root}return oM(f,t,u,l??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=Ri(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Ua,null,i)}navigate(t,i={skipLocationChange:!1}){return function MZ(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new A(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?{...CZ}:!1===i?{...yZ}:i,Ri(t))return Qy(this.currentUrlTree,t,r);const a=this.parseUrl(t);return Qy(this.currentUrlTree,a,r)}removeEmptyProps(t){return Object.entries(t).reduce((i,[r,a])=>(null!=a&&(i[r]=a),i),{})}scheduleNavigation(t,i,r,a,o){if(this.disposed)return Promise.resolve(!1);let s,c,l;o?(s=o.resolve,c=o.reject,l=o.promise):l=new Promise((f,p)=>{s=f,c=p});const u=this.pendingTasks.add();return OM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jt=(()=>{class e{constructor(t,i,r,a,o,s){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=o,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new a1,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof Wn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,i,r,a,o){const s=this.urlTree;return!!(null===s||this.isAnchorElement&&(0!==t||i||r||a||o||"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 vp(e,n,t){return function $O(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?gp:Pr}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,a=this.el.nativeElement;null!==i?r.setAttribute(a,t,i):r.removeAttribute(a,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||e)(E(R2),E(qn),function c4(e){return function Mk(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 a=t[r];if(_d(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(a===n)return t[r+1];r+=2}}}return null}(Ke(),e)}("tabindex"),E(dn),E(Ae),E(M4))};static#t=this.\u0275dir=$({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&O("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&i&&W("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ge.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Li],skipLocationChange:[Ge.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Li],replaceUrl:[Ge.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Li],routerLink:"routerLink"},standalone:!0,features:[sg,T1]})}return e})();class RM{}let VZ=(()=>{class e{constructor(t,i,r,a,o){this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(l2(t=>t instanceof Wn),Ia(()=>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 a of i){a.providers&&!a._injector&&(a._injector=rc(a.providers,t,`Route: ${a.path}`));const o=a._injector??t,s=a._loadedInjector??o;(a.loadChildren&&!a._loadedRoutes&&void 0===a.canLoad||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(o,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(s,a.children??a._loadedRoutes))}return n2(r).pipe(xi())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ie(null);const a=r.pipe(r2(o=>null===o?ie(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(o.injector??t,o.routes))));return i.loadComponent&&!i._loadedComponent?n2([a,this.loader.loadComponent(i)]).pipe(xi()):a})}static#e=this.\u0275fac=function(i){return new(i||e)(te(R2),te(U_),te(E2),te(RM),te(cu))};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const uu=new q("");let PM=(()=>{class e{constructor(t,i,r,a,o={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration||="disabled",o.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 ja?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Wn?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Fi&&t.code===o6.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 hM&&(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 hM(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){!function Bp(){throw new Error("invalid")}()};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac})}return e})();function Vn(e,n){return{\u0275kind:e,\u0275providers:n}}function BM(){const e=H(U1);return n=>{const t=e.get(yn);if(n!==t.components[0])return;const i=e.get(R2),r=e.get(UM);1===e.get(fu)&&i.initialNavigation(),e.get(jM,null,ze.Optional)?.setUpPreloading(),e.get(uu,null,ze.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const UM=new q("",{factory:()=>new a1}),fu=new q("",{providedIn:"root",factory:()=>1}),jM=new q("");function NZ(e){return Vn(0,[{provide:jM,useExisting:VZ},{provide:RM,useExisting:e}])}function xZ(e){return Vn(9,[{provide:IM,useValue:fZ},{provide:AM,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const GM=new q("ROUTER_FORROOT_GUARD"),EZ=[La,{provide:Oi,useClass:B7},R2,Ga,{provide:qn,useFactory:function FM(e){return e.routerState.root},deps:[R2]},cu,[]];let $M=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[EZ,[],{provide:Wi,multi:!0,useValue:t},{provide:GM,useFactory:kZ,deps:[[R2,new Jo,new Xo]]},{provide:$i,useValue:i||{}},i?.useHash?{provide:M4,useClass:ey}:{provide:M4,useClass:XC},{provide:uu,useFactory:()=>{const e=H(cY),n=H(ve),t=H($i),i=H(d6),r=H(Oi);return t.scrollOffset&&e.setOffset(t.scrollOffset),new PM(r,i,e,n,t)}},i?.preloadingStrategy?NZ(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?OZ(i):[],i?.bindToComponentInputs?Vn(8,[yM,{provide:c6,useExisting:yM}]).\u0275providers:[],i?.enableViewTransitions?xZ().\u0275providers:[],[{provide:WM,useFactory:BM},{provide:W5,multi:!0,useExisting:WM}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Wi,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(i){return new(i||e)(te(GM,8))};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();function kZ(e){return"guarded"}function OZ(e){return["disabled"===e.initialNavigation?Vn(3,[{provide:G5,multi:!0,useFactory:()=>{const n=H(R2);return()=>{n.setUpLocationChangeListener()}}},{provide:fu,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Vn(2,[{provide:fu,useValue:0},{provide:G5,multi:!0,deps:[U1],useFactory:n=>{const t=n.get(FW,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(R2),a=n.get(UM);OM(r,()=>{i(!0)}),n.get(d6).afterPreactivation=()=>(i(!0),a.closed?ie(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const WM=new q("");let PZ=(()=>{class e{title="config-ui";logoSrc="assets/images/homebridge-eufy-security.png";static \u0275fac=function(i){return new(i||e)};static \u0275cmp=oe({type:e,selectors:[["app-root"]],standalone:!0,features:[se],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],["alt","Homebridge Eufy Security Logo",1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1),k(2,"img",2),v(),m(3,"h3",3),y(4," Welcome to"),k(5,"br"),m(6,"b",4),y(7,"Eufy Security Plugin"),v()(),m(8,"h6",3),y(9,"Homebridge plugin for Eufy Security Devices"),v(),k(10,"hr"),m(11,"div",5),k(12,"router-outlet"),v(),k(13,"hr"),m(14,"div",6),y(15,"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. "),v()()),2&i&&(C(2),V("src",r.logoSrc,Pr))},dependencies:[tu],styles:["div.logo[_ngcontent-%COMP%]{text-align:center;margin:0 0 5px}img.logo[_ngcontent-%COMP%]{text-align:center;margin:0 auto;max-width:75%;height:auto;object-fit:cover}.footer[_ngcontent-%COMP%]{font-size:small;color:#888}"]})}return e})();function qM(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qM(Object(t),!0).forEach(function(i){a2(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qM(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function h6(e){return(h6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function YM(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a2(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function du(e,n){return function GZ(e){if(Array.isArray(e))return e}(e)||function WZ(e,n){var t=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,i=[],r=!0,a=!1;try{for(t=t.call(e);!(r=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);r=!0);}catch(c){a=!0,s=c}finally{try{!r&&null!=t.return&&t.return()}finally{if(a)throw s}}return i}}(e,n)||KM(e,n)||function YZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e){return function jZ(e){if(Array.isArray(e))return hu(e)}(e)||function $Z(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||KM(e)||function qZ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KM(e,n){if(e){if("string"==typeof e)return hu(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hu(e,n)}}function hu(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var QM=function(){},pu={},ZM={},JM=null,XM={mark:QM,measure:QM};try{typeof window<"u"&&(pu=window),typeof document<"u"&&(ZM=document),typeof MutationObserver<"u"&&(JM=MutationObserver),typeof performance<"u"&&(XM=performance)}catch{}var g6,v6,_6,C6,y6,eb=(pu.navigator||{}).userAgent,tb=void 0===eb?"":eb,w4=pu,m1=ZM,nb=JM,m6=XM,Yn=!!m1.documentElement&&!!m1.head&&"function"==typeof m1.addEventListener&&"function"==typeof m1.createElement,ib=~tb.indexOf("MSIE")||~tb.indexOf("Trident/"),Kn="___FONT_AWESOME___",rb="fa",ab="svg-inline--fa",a3="data-fa-i2svg",gu="data-fa-pseudo-element",QZ="data-fa-pseudo-element-pending",vu="data-prefix",_u="data-icon",ob="fontawesome-i2svg",ZZ="async",JZ=["HTML","HEAD","STYLE","SCRIPT"],sb=function(){try{return!0}catch{return!1}}(),g1="classic",A1="sharp",Cu=[g1,A1];function Xa(e){return new Proxy(e,{get:function(t,i){return i in t?t[i]:t[g1]}})}var eo=Xa((a2(g6={},g1,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),a2(g6,A1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),g6)),to=Xa((a2(v6={},g1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),a2(v6,A1,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),v6)),no=Xa((a2(_6={},g1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),a2(_6,A1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),_6)),XZ=Xa((a2(C6={},g1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),a2(C6,A1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),C6)),eJ=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,cb="fa-layers-text",tJ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,nJ=Xa((a2(y6={},g1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),a2(y6,A1,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),y6)),lb=[1,2,3,4,5,6,7,8,9,10],iJ=lb.concat([11,12,13,14,15,16,17,18,19,20]),rJ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],o3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},io=new Set;Object.keys(to[g1]).map(io.add.bind(io)),Object.keys(to[A1]).map(io.add.bind(io));var aJ=[].concat(Cu,Ja(io),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",o3.GROUP,o3.SWAP_OPACITY,o3.PRIMARY,o3.SECONDARY]).concat(lb.map(function(e){return"".concat(e,"x")})).concat(iJ.map(function(e){return"w-".concat(e)})),ro=w4.FontAwesomeConfig||{};m1&&"function"==typeof m1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var n=du(e,2),i=n[1],r=function sJ(e){return""===e||"false"!==e&&("true"===e||e)}(function oJ(e){var n=m1.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}(n[0]));null!=r&&(ro[i]=r)});var ub={styleDefault:"solid",familyDefault:"classic",cssPrefix:rb,replacementClass:ab,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ro.familyPrefix&&(ro.cssPrefix=ro.familyPrefix);var qi=Y(Y({},ub),ro);qi.autoReplaceSvg||(qi.observeMutations=!1);var Q={};Object.keys(ub).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(t){qi[e]=t,ao.forEach(function(i){return i(Q)})},get:function(){return qi[e]}})}),Object.defineProperty(Q,"familyPrefix",{enumerable:!0,set:function(n){qi.cssPrefix=n,ao.forEach(function(t){return t(Q)})},get:function(){return qi.cssPrefix}}),w4.FontAwesomeConfig=Q;var ao=[],zn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},fJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function oo(){for(var e=12,n="";e-- >0;)n+=fJ[62*Math.random()|0];return n}function Yi(e){for(var n=[],t=(e||[]).length>>>0;t--;)n[t]=e[t];return n}function yu(e){return e.classList?Yi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(n){return n})}function fb(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function M6(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,": ").concat(e[t].trim(),";")},"")}function Mu(e){return e.size!==zn.size||e.x!==zn.x||e.y!==zn.y||e.rotate!==zn.rotate||e.flipX||e.flipY}var mJ=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function db(){var e=rb,n=ab,t=Q.cssPrefix,i=Q.replacementClass,r=mJ;if(t!==e||i!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");r=r.replace(a,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(s,".".concat(i))}return r}var hb=!1;function bu(){Q.autoAddCss&&!hb&&(function uJ(e){if(e&&Yn){var n=m1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;for(var t=m1.head.childNodes,i=null,r=t.length-1;r>-1;r--){var a=t[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}m1.head.insertBefore(n,i)}}(db()),hb=!0)}var gJ={mixout:function(){return{dom:{css:db,insertCss:bu}}},hooks:function(){return{beforeDOMElementCreation:function(){bu()},beforeI2svg:function(){bu()}}}},Qn=w4||{};Qn[Kn]||(Qn[Kn]={}),Qn[Kn].styles||(Qn[Kn].styles={}),Qn[Kn].hooks||(Qn[Kn].hooks={}),Qn[Kn].shims||(Qn[Kn].shims=[]);var Gt=Qn[Kn],pb=[],b6=!1;function so(e){var n=e.tag,t=e.attributes,i=void 0===t?{}:t,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?fb(e):"<".concat(n," ").concat(function dJ(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,'="').concat(fb(e[t]),'" ')},"").trim()}(i),">").concat(a.map(so).join(""),"</").concat(n,">")}function mb(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}Yn&&((b6=(m1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m1.readyState))||m1.addEventListener("DOMContentLoaded",function e(){m1.removeEventListener("DOMContentLoaded",e),b6=1,pb.map(function(n){return n()})}));var wu=function(n,t,i,r){var c,l,u,a=Object.keys(n),o=a.length,s=void 0!==r?function(n,t){return function(i,r,a,o){return n.call(t,i,r,a,o)}}(t,r):t;for(void 0===i?(c=1,u=n[a[0]]):(c=0,u=i);c<o;c++)u=s(u,n[l=a[c]],l,n);return u};function Hu(e){var n=function yJ(e){for(var n=[],t=0,i=e.length;t<i;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){var a=e.charCodeAt(t++);56320==(64512&a)?n.push(((1023&r)<<10)+(1023&a)+65536):(n.push(r),t--)}else n.push(r)}return n}(e);return 1===n.length?n[0].toString(16):null}function gb(e){return Object.keys(e).reduce(function(n,t){var i=e[t];return i.icon?n[i.iconName]=i.icon:n[t]=i,n},{})}function Vu(e,n){var i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==i&&i,a=gb(n);"function"!=typeof Gt.hooks.addPack||r?Gt.styles[e]=Y(Y({},Gt.styles[e]||{}),a):Gt.hooks.addPack(e,gb(n)),"fas"===e&&Vu("fa",n)}var w6,H6,V6,Ki=Gt.styles,bJ=Gt.shims,wJ=(a2(w6={},g1,Object.values(no[g1])),a2(w6,A1,Object.values(no[A1])),w6),zu=null,vb={},_b={},Cb={},yb={},Mb={},HJ=(a2(H6={},g1,Object.keys(eo[g1])),a2(H6,A1,Object.keys(eo[A1])),H6);var bb=function(){var n=function(a){return wu(Ki,function(o,s,c){return o[c]=wu(s,a,{}),o},{})};vb=n(function(r,a,o){return a[3]&&(r[a[3]]=o),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=o}),r}),_b=n(function(r,a,o){return r[o]=o,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=o}),r}),Mb=n(function(r,a,o){var s=a[2];return r[o]=o,s.forEach(function(c){r[c]=o}),r});var t="far"in Ki||Q.autoFetchSvg,i=wu(bJ,function(r,a){var o=a[0],s=a[1],c=a[2];return"far"===s&&!t&&(s="fas"),"string"==typeof o&&(r.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(r.unicodes[o.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});Cb=i.names,yb=i.unicodes,zu=z6(Q.styleDefault,{family:Q.familyDefault})};function Du(e,n){return(vb[e]||{})[n]}function s3(e,n){return(Mb[e]||{})[n]}function wb(e){return Cb[e]||{prefix:null,iconName:null}}function V4(){return zu}(function lJ(e){ao.push(e)})(function(e){zu=z6(e.styleDefault,{family:Q.familyDefault})}),bb();var Su=function(){return{prefix:null,iconName:null,rest:[]}};function z6(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,i=void 0===t?g1:t;return to[i][e]||to[i][eo[i][e]]||(e in Gt.styles?e:null)||null}var Hb=(a2(V6={},g1,Object.keys(no[g1])),a2(V6,A1,Object.keys(no[A1])),V6);function D6(e){var n,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==i&&i,a=(a2(n={},g1,"".concat(Q.cssPrefix,"-").concat(g1)),a2(n,A1,"".concat(Q.cssPrefix,"-").concat(A1)),n),o=null,s=g1;(e.includes(a[g1])||e.some(function(l){return Hb[g1].includes(l)}))&&(s=g1),(e.includes(a[A1])||e.some(function(l){return Hb[A1].includes(l)}))&&(s=A1);var c=e.reduce(function(l,u){var f=function zJ(e,n){var t=n.split("-"),i=t[0],r=t.slice(1).join("-");return i!==e||""===r||function VJ(e){return~aJ.indexOf(e)}(r)?null:r}(Q.cssPrefix,u);if(Ki[u]?(u=wJ[s].includes(u)?XZ[s][u]:u,o=u,l.prefix=u):HJ[s].indexOf(u)>-1?(o=u,l.prefix=z6(u,{family:s})):f?l.iconName=f:u!==Q.replacementClass&&u!==a[g1]&&u!==a[A1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===o?wb(l.iconName):{},g=s3(l.prefix,l.iconName);p.prefix&&(o=null),l.iconName=p.iconName||g||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!Ki.far&&Ki.fas&&!Q.autoFetchSvg&&(l.prefix="fas")}return l},Su());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&s===A1&&(Ki.fass||Q.autoFetchSvg)&&(c.prefix="fass",c.iconName=s3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===o)&&(c.prefix=V4()||"fas"),c}var NJ=function(){function e(){(function FZ(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function BZ(e,n,t){n&&YM(e.prototype,n),t&&YM(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var t=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){t.definitions[s]=Y(Y({},t.definitions[s]||{}),o[s]),Vu(s,o[s]);var c=no[g1][s];c&&Vu(c,o[s]),bb()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(a){var o=r[a],s=o.prefix,c=o.iconName,l=o.icon,u=l[2];t[s]||(t[s]={}),u.length>0&&u.forEach(function(f){"string"==typeof f&&(t[s][f]=l)}),t[s][c]=l}),t}}]),e}(),Vb=[],Qi={},Zi={},LJ=Object.keys(Zi);function Nu(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r<t;r++)i[r-2]=arguments[r];return(Qi[e]||[]).forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function c3(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];(Qi[e]||[]).forEach(function(a){a.apply(null,t)})}function Zn(){var e=arguments[0],n=Array.prototype.slice.call(arguments,1);return Zi[e]?Zi[e].apply(null,n):void 0}function Lu(e){"fa"===e.prefix&&(e.prefix="fas");var n=e.iconName,t=e.prefix||V4();if(n)return n=s3(t,n)||n,mb(zb.definitions,t,n)||mb(Gt.styles,t,n)}var zb=new NJ,TJ={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Yn?(c3("beforeI2svg",n),Zn("pseudoElements2svg",n),Zn("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot;!1===Q.autoReplaceSvg&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,function _J(e){Yn&&(b6?setTimeout(e,0):pb.push(e))}(function(){AJ({autoReplaceSvgRoot:t}),c3("watch",n)})}},pt={noAuto:function(){Q.autoReplaceSvg=!1,Q.observeMutations=!1,c3("noAuto")},config:Q,dom:TJ,parse:{icon:function(n){if(null===n)return null;if("object"===h6(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:s3(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var t=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=z6(n[0]);return{prefix:i,iconName:s3(i,t)||t}}if("string"==typeof n&&(n.indexOf("".concat(Q.cssPrefix,"-"))>-1||n.match(eJ))){var r=D6(n.split(" "),{skipLookups:!0});return{prefix:r.prefix||V4(),iconName:s3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof n){var a=V4();return{prefix:a,iconName:s3(a,n)||n}}}},library:zb,findIconDefinition:Lu,toHtml:so},AJ=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,i=void 0===t?m1:t;(Object.keys(Gt.styles).length>0||Q.autoFetchSvg)&&Yn&&Q.autoReplaceSvg&&pt.dom.i2svg({node:i})};function S6(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return so(i)})}}),Object.defineProperty(e,"node",{get:function(){if(Yn){var i=m1.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function xu(e){var n=e.icons,t=n.main,i=n.mask,r=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.title,l=e.maskId,u=e.titleId,f=e.extra,p=e.watchable,g=void 0!==p&&p,b=i.found?i:t,w=b.width,S=b.height,L="fak"===r,N=[Q.replacementClass,a?"".concat(Q.cssPrefix,"-").concat(a):""].filter(function($e){return-1===f.classes.indexOf($e)}).filter(function($e){return""!==$e||!!$e}).concat(f.classes).join(" "),P={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":r,"data-icon":a,class:N,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(w," ").concat(S)})},F=L&&!~f.classes.indexOf("fa-fw")?{width:"".concat(w/S*16*.0625,"em")}:{};g&&(P.attributes[a3]=""),c&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(u||oo())},children:[c]}),delete P.attributes.title);var G=Y(Y({},P),{},{prefix:r,iconName:a,main:t,mask:i,maskId:l,transform:o,symbol:s,styles:Y(Y({},F),f.styles)}),K=i.found&&t.found?Zn("generateAbstractMask",G)||{children:[],attributes:{}}:Zn("generateAbstractIcon",G)||{children:[],attributes:{}},Se=K.attributes;return G.children=K.children,G.attributes=Se,s?function OJ(e){var t=e.iconName,i=e.children,r=e.attributes,a=e.symbol,o=!0===a?"".concat(e.prefix,"-").concat(Q.cssPrefix,"-").concat(t):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},r),{},{id:o}),children:i}]}]}(G):function kJ(e){var n=e.children,t=e.main,i=e.mask,r=e.attributes,a=e.styles,o=e.transform;if(Mu(o)&&t.found&&!i.found){var l={x:t.width/t.height/2,y:.5};r.style=M6(Y(Y({},a),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}(G)}function Db(e){var n=e.content,t=e.width,i=e.height,r=e.transform,a=e.title,o=e.extra,s=e.watchable,c=void 0!==s&&s,l=Y(Y(Y({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});c&&(l[a3]="");var u=Y({},o.styles);Mu(r)&&(u.transform=function pJ(e){var n=e.transform,t=e.width,r=e.height,a=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,c="";return c+=s&&ib?"translate(".concat(n.x/16-(void 0===t?16:t)/2,"em, ").concat(n.y/16-a/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:r,startCentered:!0,width:t,height:i}),u["-webkit-transform"]=u.transform);var f=M6(u);f.length>0&&(l.style=f);var p=[];return p.push({tag:"span",attributes:l,children:[n]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var Eu=Gt.styles;function Tu(e){var n=e[0],t=e[1],a=du(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(Q.cssPrefix,"-").concat(o3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat(o3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat(o3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var PJ={found:!1,width:512,height:512};function Iu(e,n){var t=n;return"fa"===n&&null!==Q.styleDefault&&(n=V4()),new Promise(function(i,r){if(Zn("missingIconAbstract"),"fa"===t){var o=wb(e)||{};e=o.iconName||e,n=o.prefix||n}if(e&&n&&Eu[n]&&Eu[n][e])return i(Tu(Eu[n][e]));(function FJ(e,n){!sb&&!Q.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))})(e,n),i(Y(Y({},PJ),{},{icon:Q.showMissingIcons&&e&&Zn("missingIconAbstract")||{}}))})}var Sb=function(){},Au=Q.measurePerformance&&m6&&m6.mark&&m6.measure?m6:{mark:Sb,measure:Sb},co='FA "6.5.2"',Nb=function(n){Au.mark("".concat(co," ").concat(n," ends")),Au.measure("".concat(co," ").concat(n),"".concat(co," ").concat(n," begins"),"".concat(co," ").concat(n," ends"))},ku={begin:function(n){return Au.mark("".concat(co," ").concat(n," begins")),function(){return Nb(n)}},end:Nb},N6=function(){};function Lb(e){return"string"==typeof(e.getAttribute?e.getAttribute(a3):null)}function $J(e){return m1.createElementNS("http://www.w3.org/2000/svg",e)}function WJ(e){return m1.createElement(e)}function xb(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,i=void 0===t?"svg"===e.tag?$J:WJ:t;if("string"==typeof e)return m1.createTextNode(e);var r=i(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(xb(o,{ceFn:i}))}),r}var L6={replace:function(n){var t=n[0];if(t.parentNode)if(n[1].forEach(function(r){t.parentNode.insertBefore(xb(r),t)}),null===t.getAttribute(a3)&&Q.keepOriginalSource){var i=m1.createComment(function qJ(e){var n=" ".concat(e.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(n){var t=n[0],i=n[1];if(~yu(t).indexOf(Q.replacementClass))return L6.replace(n);var r=new RegExp("".concat(Q.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var a=i[0].attributes.class.split(" ").reduce(function(s,c){return c===Q.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var o=i.map(function(s){return so(s)}).join("\n");t.setAttribute(a3,""),t.innerHTML=o}};function Eb(e){e()}function Tb(e,n){var t="function"==typeof n?n:N6;if(0===e.length)t();else{var i=Eb;Q.mutateApproach===ZZ&&(i=w4.requestAnimationFrame||Eb),i(function(){var r=function GJ(){return!0===Q.autoReplaceSvg?L6.replace:L6[Q.autoReplaceSvg]||L6.replace}(),a=ku.begin("mutate");e.map(r),a(),t()})}}var Ou=!1;function Ib(){Ou=!0}function Ru(){Ou=!1}var x6=null;function Ab(e){if(nb&&Q.observeMutations){var n=e.treeCallback,t=void 0===n?N6:n,i=e.nodeCallback,r=void 0===i?N6:i,a=e.pseudoElementsCallback,o=void 0===a?N6:a,s=e.observeMutationsRoot,c=void 0===s?m1:s;x6=new nb(function(l){if(!Ou){var u=V4();Yi(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!Lb(f.addedNodes[0])&&(Q.searchPseudoElements&&o(f.target),t(f.target)),"attributes"===f.type&&f.target.parentNode&&Q.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&Lb(f.target)&&~rJ.indexOf(f.attributeName))if("class"===f.attributeName&&function UJ(e){var n=e.getAttribute?e.getAttribute(vu):null,t=e.getAttribute?e.getAttribute(_u):null;return n&&t}(f.target)){var p=D6(yu(f.target)),b=p.iconName;f.target.setAttribute(vu,p.prefix||u),b&&f.target.setAttribute(_u,b)}else(function jJ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)})(f.target)&&r(f.target)})}}),Yn&&x6.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function kb(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},t=function QJ(e){var n=e.getAttribute("data-prefix"),t=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",r=D6(yu(e));return r.prefix||(r.prefix=V4()),n&&t&&(r.prefix=n,r.iconName=t),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=function DJ(e,n){return(_b[e]||{})[n]}(r.prefix,e.innerText)||Du(r.prefix,Hu(e.innerText))),!r.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),i=t.iconName,r=t.prefix,a=t.rest,o=function ZJ(e){var n=Yi(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),t=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return Q.autoA11y&&(t?n["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(i||oo()):(n["aria-hidden"]="true",n.focusable="false")),n}(e),s=Nu("parseNodeAttributes",{},e),c=n.styleParser?function KJ(e){var n=e.getAttribute("style"),t=[];return n&&(t=n.split(";").reduce(function(i,r){var a=r.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),t}(e):[];return Y({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:zn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var XJ=Gt.styles;function Ob(e){var n="nest"===Q.autoReplaceSvg?kb(e,{styleParser:!1}):kb(e);return~n.extra.classes.indexOf(cb)?Zn("generateLayersText",e,n):Zn("generateSvgReplacementMutation",e,n)}var z4=new Set;function Rb(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Yn)return Promise.resolve();var t=m1.documentElement.classList,i=function(f){return t.add("".concat(ob,"-").concat(f))},r=function(f){return t.remove("".concat(ob,"-").concat(f))},a=Q.autoFetchSvg?z4:Cu.map(function(u){return"fa-".concat(u)}).concat(Object.keys(XJ));a.includes("fa")||a.push("fa");var o=[".".concat(cb,":not([").concat(a3,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(a3,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=Yi(e.querySelectorAll(o))}catch{}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=ku.begin("onTree"),l=s.reduce(function(u,f){try{var p=Ob(f);p&&u.push(p)}catch(g){sb||"MissingIcon"===g.name&&console.error(g)}return u},[]);return new Promise(function(u,f){Promise.all(l).then(function(p){Tb(p,function(){i("active"),i("complete"),r("pending"),"function"==typeof n&&n(),c(),u()})}).catch(function(p){c(),f(p)})})}function eX(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ob(e).then(function(t){t&&Tb([t],n)})}Cu.map(function(e){z4.add("fa-".concat(e))}),Object.keys(eo[g1]).map(z4.add.bind(z4)),Object.keys(eo[A1]).map(z4.add.bind(z4)),z4=Ja(z4);var nX=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transform,r=void 0===i?zn:i,a=t.symbol,o=void 0!==a&&a,s=t.mask,c=void 0===s?null:s,l=t.maskId,u=void 0===l?null:l,f=t.title,p=void 0===f?null:f,g=t.titleId,b=void 0===g?null:g,w=t.classes,S=void 0===w?[]:w,L=t.attributes,N=void 0===L?{}:L,P=t.styles,F=void 0===P?{}:P;if(n){var G=n.prefix,K=n.iconName,de=n.icon;return S6(Y({type:"icon"},n),function(){return c3("beforeDOMElementCreation",{iconDefinition:n,params:t}),Q.autoA11y&&(p?N["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(b||oo()):(N["aria-hidden"]="true",N.focusable="false")),xu({icons:{main:Tu(de),mask:c?Tu(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:G,iconName:K,transform:Y(Y({},zn),r),symbol:o,title:p,maskId:u,titleId:b,extra:{attributes:N,styles:F,classes:S}})})}},iX={mixout:function(){return{icon:(e=nX,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:Lu(n||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Lu(r||{})),e(i,Y(Y({},t),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Rb,t.nodeCallback=eX,t}}},provides:function(n){n.i2svg=function(t){var i=t.node,a=t.callback;return Rb(void 0===i?m1:i,void 0===a?function(){}:a)},n.generateSvgReplacementMutation=function(t,i){var r=i.iconName,a=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,u=i.mask,f=i.maskId,p=i.extra;return new Promise(function(g,b){Promise.all([Iu(r,s),u.iconName?Iu(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(w){var S=du(w,2);g([t,xu({icons:{main:S[0],mask:S[1]},prefix:s,iconName:r,transform:c,symbol:l,maskId:f,title:a,titleId:o,extra:p,watchable:!0})])}).catch(b)})},n.generateAbstractIcon=function(t){var l,i=t.children,r=t.attributes,a=t.main,o=t.transform,c=M6(t.styles);return c.length>0&&(r.style=c),Mu(o)&&(l=Zn("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),i.push(l||a.icon),{children:i,attributes:r}}}},rX={mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,a=void 0===r?[]:r;return S6({type:"layer"},function(){c3("beforeDOMElementCreation",{assembler:t,params:i});var o=[];return t(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Q.cssPrefix,"-layers")].concat(Ja(a)).join(" ")},children:o}]})}}}},aX={mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,a=void 0===r?null:r,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,u=i.styles,f=void 0===u?{}:u;return S6({type:"counter",content:t},function(){return c3("beforeDOMElementCreation",{content:t,params:i}),function RJ(e){var n=e.content,t=e.title,i=e.extra,r=Y(Y(Y({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),a=M6(i.styles);a.length>0&&(r.style=a);var o=[];return o.push({tag:"span",attributes:r,children:[n]}),t&&o.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),o}({content:t.toString(),title:a,extra:{attributes:l,styles:f,classes:["".concat(Q.cssPrefix,"-layers-counter")].concat(Ja(s))}})})}}}},oX={mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?zn:r,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,u=i.attributes,f=void 0===u?{}:u,p=i.styles,g=void 0===p?{}:p;return S6({type:"text",content:t},function(){return c3("beforeDOMElementCreation",{content:t,params:i}),Db({content:t,transform:Y(Y({},zn),a),title:s,extra:{attributes:f,styles:g,classes:["".concat(Q.cssPrefix,"-layers-text")].concat(Ja(l))}})})}}},provides:function(n){n.generateLayersText=function(t,i){var r=i.title,a=i.transform,o=i.extra,s=null,c=null;if(ib){var l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,c=u.height/l}return Q.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Db({content:t.innerHTML,width:s,height:c,transform:a,title:r,extra:o,watchable:!0})])}}},sX=new RegExp('"',"ug"),Pb=[1105920,1112319];function Fb(e,n){var t="".concat(QZ).concat(n.replace(":","-"));return new Promise(function(i,r){if(null!==e.getAttribute(t))return i();var o=Yi(e.children).filter(function(de){return de.getAttribute(gu)===n})[0],s=w4.getComputedStyle(e,n),c=s.getPropertyValue("font-family").match(tJ),l=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!c)return e.removeChild(o),i();if(c&&"none"!==u&&""!==u){var f=s.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?A1:g1,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?to[p][c[2].toLowerCase()]:nJ[p][l],b=function cX(e){var n=e.replace(sX,""),t=function MJ(e,n){var r,t=e.length,i=e.charCodeAt(n);return i>=55296&&i<=56319&&t>n+1&&(r=e.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(n,0),i=t>=Pb[0]&&t<=Pb[1],r=2===n.length&&n[0]===n[1];return{value:Hu(r?n[0]:n),isSecondary:i||r}}(f),w=b.value,S=b.isSecondary,L=c[0].startsWith("FontAwesome"),N=Du(g,w),P=N;if(L){var F=function SJ(e){var n=yb[e],t=Du("fas",e);return n||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}(w);F.iconName&&F.prefix&&(N=F.iconName,g=F.prefix)}if(!N||S||o&&o.getAttribute(vu)===g&&o.getAttribute(_u)===P)i();else{e.setAttribute(t,P),o&&e.removeChild(o);var G=function JJ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:zn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),K=G.extra;K.attributes[gu]=n,Iu(N,g).then(function(de){var Se=xu(Y(Y({},G),{},{icons:{main:de,mask:Su()},prefix:g,iconName:P,extra:K,watchable:!0})),$e=m1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===n?e.insertBefore($e,e.firstChild):e.appendChild($e),$e.outerHTML=Se.map(function(L1){return so(L1)}).join("\n"),e.removeAttribute(t),i()}).catch(r)}}else i()})}function lX(e){return Promise.all([Fb(e,"::before"),Fb(e,"::after")])}function uX(e){return!(e.parentNode===document.head||~JZ.indexOf(e.tagName.toUpperCase())||e.getAttribute(gu)||e.parentNode&&"svg"===e.parentNode.tagName)}function Bb(e){if(Yn)return new Promise(function(n,t){var i=Yi(e.querySelectorAll("*")).filter(uX).map(lX),r=ku.begin("searchPseudoElements");Ib(),Promise.all(i).then(function(){r(),Ru(),n()}).catch(function(){r(),Ru(),t()})})}var Ub=!1,jb=function(n){return n.toLowerCase().split(" ").reduce(function(i,r){var a=r.toLowerCase().split("-"),o=a[0],s=a.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Pu={x:0,y:0,width:"100%",height:"100%"};function Gb(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function xJ(e,n){var t=n.mixoutsTo;Vb=e,Qi={},Object.keys(Zi).forEach(function(i){-1===LJ.indexOf(i)&&delete Zi[i]}),Vb.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(o){"function"==typeof r[o]&&(t[o]=r[o]),"object"===h6(r[o])&&Object.keys(r[o]).forEach(function(s){t[o]||(t[o]={}),t[o][s]=r[o][s]})}),i.hooks){var a=i.hooks();Object.keys(a).forEach(function(o){Qi[o]||(Qi[o]=[]),Qi[o].push(a[o])})}i.provides&&i.provides(Zi)})}([gJ,iX,rX,aX,oX,{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Bb,t}}},provides:function(n){n.pseudoElements2svg=function(t){var i=t.node;Q.searchPseudoElements&&Bb(void 0===i?m1:i)}}},{mixout:function(){return{dom:{unwatch:function(){Ib(),Ub=!0}}}},hooks:function(){return{bootstrap:function(){Ab(Nu("mutationObserverCallbacks",{}))},noAuto:function(){!function YJ(){x6&&x6.disconnect()}()},watch:function(t){var i=t.observeMutationsRoot;Ub?Ru():Ab(Nu("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return jb(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-transform");return r&&(t.transform=jb(r)),t}}},provides:function(n){n.generateAbstractTransformGrouping=function(t){var i=t.main,r=t.transform,o=t.iconWidth,s={transform:"translate(".concat(t.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),g={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},g.outer),children:[{tag:"g",attributes:Y({},g.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),g.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-mask"),a=r?D6(r.split(" ").map(function(o){return o.trim()})):Su();return a.prefix||(a.prefix=V4()),t.mask=a,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(n){n.generateAbstractMask=function(t){var e,i=t.children,r=t.attributes,a=t.main,o=t.mask,s=t.maskId,u=a.icon,p=o.icon,g=function hJ(e){var n=e.transform,i=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:t.transform,containerWidth:o.width,iconWidth:a.width}),b={tag:"rect",attributes:Y(Y({},Pu),{},{fill:"white"})},w=u.children?{children:u.children.map(Gb)}:{},S={tag:"g",attributes:Y({},g.inner),children:[Gb(Y({tag:u.tag,attributes:Y(Y({},u.attributes),g.path)},w))]},L={tag:"g",attributes:Y({},g.outer),children:[S]},N="mask-".concat(s||oo()),P="clip-".concat(s||oo()),F={tag:"mask",attributes:Y(Y({},Pu),{},{id:N,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,L]},G={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:(e=p,"g"===e.tag?e.children:[e])},F]};return i.push(G,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(N,")")},Pu)}),{children:i,attributes:r}}}},{provides:function(n){var t=!1;w4.matchMedia&&(t=w4.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Y(Y({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Y(Y({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:Y(Y({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],{mixoutsTo:pt});var CX=pt.parse,yX=pt.icon;const MX=["*"],HX=e=>{const n={[`fa-${e.animation}`]:null!=e.animation&&!e.animation.startsWith("spin"),"fa-spin":"spin"===e.animation||"spin-reverse"===e.animation,"fa-spin-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-spin-reverse":"spin-reverse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-pulse":"spin-pulse"===e.animation||"spin-pulse-reverse"===e.animation,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(n).map(t=>n[t]?t:null).filter(t=>t)};let DX=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),SX=(()=>{class e{constructor(){this.definitions={}}addIcons(...t){for(const i of t){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const r of i.icon[2])"string"==typeof r&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...t){for(const i of t){const r=Object.keys(i).map(a=>i[a]);this.addIcons(...r)}}getIconDefinition(t,i){return t in this.definitions&&i in this.definitions[t]?this.definitions[t][i]:null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),NX=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[T1]})}return e})(),LX=(()=>{class e{constructor(t,i){this.renderer=t,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}static#e=this.\u0275fac=function(i){return new(i||e)(E(dn),E(Ae))};static#t=this.\u0275cmp=oe({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[T1,se],ngContentSelectors:MX,decls:1,vars:0,template:function(i,r){1&i&&(Vi(),zi(0))},encapsulation:2})}return e})(),$b=(()=>{class e{set spin(t){this.animation=t?"spin":void 0}set pulse(t){this.animation=t?"spin-pulse":void 0}constructor(t,i,r,a,o){this.sanitizer=t,this.config=i,this.iconLibrary=r,this.stackItem=a,this.classes=[],null!=o&&null==a&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null!=this.icon||null!=this.config.fallbackIcon){if(t){const r=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=r){const a=this.buildParams();this.renderIcon(r,a)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(t){const i=((e,n)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:"string"==typeof e?{prefix:n,iconName:e}:{prefix:e[0],iconName:e[1]})(t,this.config.defaultPrefix);return"icon"in i?i:this.iconLibrary.getIconDefinition(i.prefix,i.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const t={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?CX.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...HX(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,i){const r=yX(t,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(r.html.join("\n"))}static#e=this.\u0275fac=function(i){return new(i||e)(E($y),E(DX),E(SX),E(NX,8),E(LX,8))};static#t=this.\u0275cmp=oe({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(i,r){2&i&&(A2("innerHTML",r.renderedIconHTML,mp),W("title",r.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},standalone:!0,features:[T1,se],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})(),xX=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();function Jn(e){e||(gr(),e=H(ln));const n=new M1(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(M2(n))}const AX=["addListener","removeListener"],kX=["addEventListener","removeEventListener"],OX=["on","off"];function f2(e,n,t,i){if(Le(t)&&(i=t,t=void 0),i)return f2(e,n,t).pipe(u7(i));const[r,a]=function FX(e){return Le(e.addEventListener)&&Le(e.removeEventListener)}(e)?kX.map(o=>s=>e[o](n,s,t)):function RX(e){return Le(e.addListener)&&Le(e.removeListener)}(e)?AX.map(Wb(e,n)):function PX(e){return Le(e.on)&&Le(e.off)}(e)?OX.map(Wb(e,n)):[];if(!r&&c7(e))return r2(o=>f2(o,n,t))(C2(e));if(!r)throw new TypeError("Invalid event target");return new M1(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return r(s),()=>a(s)})}function Wb(e,n){return t=>i=>e[t](n,i)}class BX extends m2{constructor(n,t){super()}schedule(n,t=0){return this}}const E6={setInterval(e,n,...t){const{delegate:i}=E6;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=E6;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},qb={now:()=>(qb.delegate||Date).now(),delegate:void 0};class lo{constructor(n,t=lo.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}lo.now=qb.now;const Yb=new class jX extends lo{constructor(n,t=lo.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 UX extends BX{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,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(a,this.id,t),this}requestAsyncId(n,t,i=0){return E6.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&&E6.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(a){i=!0,r=a||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,S3(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),GX=Yb;function Kb(e=0,n,t=GX){let i=-1;return null!=n&&(GC(n)?t=n:i=n),new M1(r=>{let a=function $X(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;a<0&&(a=0);let o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},a)})}const{isArray:WX}=Array;function Qb(e){return 1===e.length&&WX(e[0])?e[0]:e}function Zb(...e){return 1===(e=Qb(e)).length?C2(e[0]):new M1(function qX(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(C2(e[i]).subscribe(d1(n,r=>{if(t){for(let a=0;a<t.length;a++)a!==i&&t[a].unsubscribe();t=null}n.next(r)})))}}(e))}function Fu(...e){const n=Ac(e),t=Qb(e);return t.length?new M1(i=>{let r=t.map(()=>[]),a=t.map(()=>!1);i.add(()=>{r=a=null});for(let o=0;!i.closed&&o<t.length;o++)C2(t[o]).subscribe(d1(i,s=>{if(r[o].push(s),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,u)=>!l.length&&a[u])&&i.complete()}},()=>{a[o]=!0,!r[o].length&&i.complete()}));return()=>{r=a=null}}):ft}function Bu(...e){const n=Ac(e);return B1((t,i)=>{const r=e.length,a=new Array(r);let o=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)C2(e[c]).subscribe(d1(i,l=>{a[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(Tn))&&(o=null))},En));t.subscribe(d1(i,c=>{if(s){const l=[c,...a];i.next(n?n(...l):l)}}))})}function Jb(e,n){return n?t=>Na(n.pipe(y2(1),function QX(){return B1((e,n)=>{e.subscribe(d1(n,En))})}()),t.pipe(Jb(e))):r2((t,i)=>C2(e(t,i)).pipe(y2(1),Ly(t)))}let Xb=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(i){return new(i||e)(E(dn),E(Ae))};static#t=this.\u0275dir=$({type:e})}return e})(),l3=(()=>{class e extends Xb{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,features:[X]})}return e})();const zt=new q(""),nee={provide:zt,useExisting:je(()=>d2),multi:!0};let d2=(()=>{class e extends l3{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){1&i&&O("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[n1([nee]),X]})}return e})();const iee={provide:zt,useExisting:je(()=>D4),multi:!0},aee=new q("");let D4=(()=>{class e extends Xb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ree(){const e=y4()?y4().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#e=this.\u0275fac=function(i){return new(i||e)(E(dn),E(Ae),E(aee,8))};static#t=this.\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&&O("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[n1([iee]),X]})}return e})();const b2=new q(""),N4=new q(""),oee=/^(?=.{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 aw(e){return function S4(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||oee.test(e.value)?null:{email:!0}}function T6(e){return null}function lw(e){return null!=e}function uw(e){return Va(e)?n2(e):e}function fw(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function dw(e,n){return n.map(t=>t(e))}function hw(e){return e.map(n=>function see(e){return!e.validate}(n)?n:t=>n.validate(t))}function Uu(e){return null!=e?function pw(e){if(!e)return null;const n=e.filter(lw);return 0==n.length?null:function(t){return fw(dw(t,n))}}(hw(e)):null}function ju(e){return null!=e?function mw(e){if(!e)return null;const n=e.filter(lw);return 0==n.length?null:function(t){return function tee(...e){const n=Ac(e),{args:t,keys:i}=$C(e),r=new M1(a=>{const{length:o}=t;if(!o)return void a.complete();const s=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let f=!1;C2(t[u]).subscribe(d1(a,p=>{f||(f=!0,l--),s[u]=p},()=>c--,void 0,()=>{(!c||!f)&&(l||a.next(i?WC(i,s):s),a.complete())}))}});return n?r.pipe(u7(n)):r}(dw(t,n).map(uw)).pipe(Te(fw))}}(hw(e)):null}function gw(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Gu(e){return e?Array.isArray(e)?e:[e]:[]}function I6(e,n){return Array.isArray(e)?e.includes(n):e===n}function Cw(e,n){const t=Gu(n);return Gu(e).forEach(r=>{I6(t,r)||t.push(r)}),t}function yw(e,n){return Gu(n).filter(t=>!I6(e,t))}class Mw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Uu(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ju(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class P2 extends Mw{get formDirective(){return null}get path(){return null}}class L4 extends Mw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bw{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let H1=(()=>{class e extends bw{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(E(L4,2))};static#t=this.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&Ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[X]})}return e})();const uo="VALID",k6="INVALID",Ji="PENDING",fo="DISABLED";function O6(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Ku{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===uo}get invalid(){return this.status===k6}get pending(){return this.status==Ji}get disabled(){return this.status===fo}get enabled(){return this.status!==fo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Cw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Cw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yw(n,this._rawAsyncValidators))}hasValidator(n){return I6(this._rawValidators,n)}hasAsyncValidator(n){return I6(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ji,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=fo,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=uo,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===uo||this.status===Ji)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fo:uo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ji,this._hasOwnPendingAsyncValidator=!0;const t=uw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}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){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Z,this.statusChanges=new Z}_calculateStatus(){return this._allControlsDisabled()?fo:this.errors?k6:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ji)?Ji:this._anyControlsHaveStatus(k6)?k6:uo}_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={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){O6(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 dee(e){return Array.isArray(e)?Uu(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function hee(e){return Array.isArray(e)?ju(e):e||null}(this._rawAsyncValidators)}}const Xi=new q("CallSetDisabledState",{providedIn:"root",factory:()=>R6}),R6="always";function ho(e,n,t=R6){(function Zu(e,n){const t=function vw(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(gw(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function _w(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(gw(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();B6(n._rawValidators,r),B6(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function gee(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&zw(e,n)})}(e,n),function _ee(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 vee(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&zw(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function mee(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function B6(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function zw(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Nw(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Lw(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const xw=class extends Ku{constructor(n=null,t,i){super(function qu(e){return(O6(e)?e.validators:e)||null}(t),function Yu(e,n){return(O6(n)?n.asyncValidators:e)||null}(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),O6(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=Lw(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){Nw(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Nw(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){Lw(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}},zee={provide:L4,useExisting:je(()=>v1)},Iw=Promise.resolve();let v1=(()=>{class e extends L4{constructor(t,i,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this.control=new xw,this._registered=!1,this.name="",this.update=new Z,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function ef(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(a=>{a.constructor===D4?t=a:function Mee(e){return Object.getPrototypeOf(e.constructor)===l3}(a)?i=a:r=a}),r||i||t||null}(0,a)}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 Xu(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(){ho(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Iw.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&Li(i);Iw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function P6(e,n){return[...n.path,e]}(t,this._parent):[t]}static#e=this.\u0275fac=function(i){return new(i||e)(E(P2,9),E(b2,10),E(N4,10),E(zt,10),E(ut,8),E(Xi,8))};static#t=this.\u0275dir=$({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ge.None,"disabled","isDisabled"],model:[Ge.None,"ngModel","model"],options:[Ge.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n1([zee]),X,T1]})}return e})();const See={provide:zt,useExisting:je(()=>er),multi:!0};let er=(()=>{class e extends l3{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&O("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[n1([See]),X]})}return e})();const Oee={provide:zt,useExisting:je(()=>Xn),multi:!0};function Bw(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Xn=(()=>{class e extends l3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=Bw(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 Ree(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&O("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[n1([Oee]),X]})}return e})(),u3=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Bw(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#e=this.\u0275fac=function(i){return new(i||e)(E(Ae),E(dn),E(Xn,9))};static#t=this.\u0275dir=$({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const Pee={provide:zt,useExisting:je(()=>sf),multi:!0};function Uw(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let sf=(()=>{class e extends l3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(a=>this._getOptionId(a));i=(a,o)=>{a._setSelected(r.indexOf(o.toString())>-1)}}else i=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],a=i.selectedOptions;if(void 0!==a){const o=a;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);r.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[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 Fee(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){1&i&&O("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[n1([Pee]),X]})}return e})(),f3=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Uw(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Uw(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#e=this.\u0275fac=function(i){return new(i||e)(E(Ae),E(dn),E(sf,9))};static#t=this.\u0275dir=$({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})(),d3=(()=>{class e{constructor(){this._validator=T6}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):T6,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,features:[T1]})}return e})();const $ee={provide:b2,useExisting:je(()=>lf),multi:!0};let lf=(()=>{class e extends d3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Li,this.createValidator=t=>aw}enabled(t){return t}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=c1(e)))(r||e)}})();static#t=this.\u0275dir=$({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n1([$ee]),X]})}return e})(),Kee=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),V1=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Xi,useValue:t.callSetDisabledState??R6}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({imports:[Kee]})}return e})();var Zee={left:"right",right:"left",bottom:"top",top:"bottom"};function j6(e){return e.replace(/left|right|bottom|top/g,function(n){return Zee[n]})}function Dn(e){return e.split("-")[0]}var Jee={start:"end",end:"start"};function Zw(e){return e.replace(/start|end/g,function(n){return Jee[n]})}var mt="top",$t="bottom",Wt="right",gt="left",uf="auto",mo=[mt,$t,Wt,gt],tr="start",go="end",Jw="viewport",vo="popper",Xw=mo.reduce(function(e,n){return e.concat([n+"-"+tr,n+"-"+go])},[]),eH=[].concat(mo,[uf]).reduce(function(e,n){return e.concat([n,n+"-"+tr,n+"-"+go])},[]),u1e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function h3(e){return e instanceof vt(e).Element||e instanceof Element}function Dt(e){return e instanceof vt(e).HTMLElement||e instanceof HTMLElement}function ff(e){return!(typeof ShadowRoot>"u")&&(e instanceof vt(e).ShadowRoot||e instanceof ShadowRoot)}function x4(e){return((h3(e)?e.ownerDocument:e.document)||window.document).documentElement}var p3=Math.max,G6=Math.min,nr=Math.round;function df(){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 tH(){return!/^((?!chrome|android).)*safari/i.test(df())}function ir(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,a=1;n&&Dt(e)&&(r=e.offsetWidth>0&&nr(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&nr(i.height)/e.offsetHeight||1);var s=(h3(e)?vt(e):window).visualViewport,c=!tH()&&t,l=(i.left+(c&&s?s.offsetLeft:0))/r,u=(i.top+(c&&s?s.offsetTop:0))/a,f=i.width/r,p=i.height/a;return{width:f,height:p,top:u,right:l+f,bottom:u+p,left:l,x:l,y:u}}function hf(e){var n=vt(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function pf(e){return ir(x4(e)).left+hf(e).scrollLeft}function e4(e){return vt(e).getComputedStyle(e)}function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function $6(e){return"html"===Sn(e)?e:e.assignedSlot||e.parentNode||(ff(e)?e.host:null)||x4(e)}function mf(e){var n=e4(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function nH(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Dt(e)&&mf(e)?e:nH($6(e))}function _o(e,n){var t;void 0===n&&(n=[]);var i=nH(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),a=vt(i),o=r?[a].concat(a.visualViewport||[],mf(i)?i:[]):i,s=n.concat(o);return r?s:s.concat(_o($6(o)))}function h1e(e){return["table","td","th"].indexOf(Sn(e))>=0}function iH(e){return Dt(e)&&"fixed"!==e4(e).position?e.offsetParent:null}function Co(e){for(var n=vt(e),t=iH(e);t&&h1e(t)&&"static"===e4(t).position;)t=iH(t);return t&&("html"===Sn(t)||"body"===Sn(t)&&"static"===e4(t).position)?n:t||function p1e(e){var n=/firefox/i.test(df());if(/Trident/i.test(df())&&Dt(e)&&"fixed"===e4(e).position)return null;var r=$6(e);for(ff(r)&&(r=r.host);Dt(r)&&["html","body"].indexOf(Sn(r))<0;){var a=e4(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||n&&"filter"===a.willChange||n&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||n}function rH(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&ff(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function gf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aH(e,n,t){return n===Jw?gf(function f1e(e,n){var t=vt(e),i=x4(e),r=t.visualViewport,a=i.clientWidth,o=i.clientHeight,s=0,c=0;if(r){a=r.width,o=r.height;var l=tH();(l||!l&&"fixed"===n)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:a,height:o,x:s+pf(e),y:c}}(e,t)):h3(n)?function m1e(e,n){var t=ir(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):gf(function d1e(e){var n,t=x4(e),i=hf(e),r=null==(n=e.ownerDocument)?void 0:n.body,a=p3(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=p3(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+pf(e),c=-i.scrollTop;return"rtl"===e4(r||t).direction&&(s+=p3(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(x4(e)))}function rr(e){return e.split("-")[1]}function vf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oH(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?Dn(i):null,a=i?rr(i):null,o=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(r){case mt:c={x:o,y:n.y-t.height};break;case $t:c={x:o,y:n.y+n.height};break;case Wt:c={x:n.x+n.width,y:s};break;case gt:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=r?vf(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case tr:c[l]=c[l]-(n[u]/2-t[u]/2);break;case go:c[l]=c[l]+(n[u]/2-t[u]/2)}}return c}function cH(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lH(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function _f(e,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?e.placement:i,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,u=void 0===l?Jw:l,f=n.elementContext,p=void 0===f?vo:f,g=n.altBoundary,b=void 0!==g&&g,w=n.padding,S=void 0===w?0:w,L=cH("number"!=typeof S?S:lH(S,mo)),P=e.rects.popper,F=e.elements[b?p===vo?"reference":vo:p],G=function v1e(e,n,t,i){var r="clippingParents"===n?function g1e(e){var n=_o($6(e)),i=["absolute","fixed"].indexOf(e4(e).position)>=0&&Dt(e)?Co(e):e;return h3(i)?n.filter(function(r){return h3(r)&&rH(r,i)&&"body"!==Sn(r)}):[]}(e):[].concat(n),a=[].concat(r,[t]),s=a.reduce(function(c,l){var u=aH(e,l,i);return c.top=p3(u.top,c.top),c.right=G6(u.right,c.right),c.bottom=G6(u.bottom,c.bottom),c.left=p3(u.left,c.left),c},aH(e,a[0],i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(h3(F)?F:F.contextElement||x4(e.elements.popper),c,u,o),K=ir(e.elements.reference),de=oH({reference:K,element:P,strategy:"absolute",placement:r}),Se=gf(Object.assign({},P,de)),$e=p===vo?Se:K,L1={top:G.top-$e.top+L.top,bottom:$e.bottom-G.bottom+L.bottom,left:G.left-$e.left+L.left,right:$e.right-G.right+L.right},L2=e.modifiersData.offset;if(p===vo&&L2){var Yt=L2[r];Object.keys(L1).forEach(function(F2){var M3=[Wt,$t].indexOf(F2)>=0?1:-1,b3=[mt,$t].indexOf(F2)>=0?"y":"x";L1[F2]+=Yt[b3]*M3})}return L1}const M1e={name:"flip",enabled:!0,phase:"main",fn:function y1e(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0===o||o,c=t.fallbackPlacements,l=t.padding,u=t.boundary,f=t.rootBoundary,p=t.altBoundary,g=t.flipVariations,b=void 0===g||g,w=t.allowedAutoPlacements,S=n.options.placement,L=Dn(S),P=c||(L!==S&&b?function C1e(e){if(Dn(e)===uf)return[];var n=j6(e);return[Zw(e),n,Zw(n)]}(S):[j6(S)]),F=[S].concat(P).reduce(function(cr,T4){return cr.concat(Dn(T4)===uf?function _1e(e,n){void 0===n&&(n={});var r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?eH:c,u=rr(n.placement),f=u?s?Xw:Xw.filter(function(b){return rr(b)===u}):mo,p=f.filter(function(b){return l.indexOf(b)>=0});0===p.length&&(p=f);var g=p.reduce(function(b,w){return b[w]=_f(e,{placement:w,boundary:r,rootBoundary:a,padding:o})[Dn(w)],b},{});return Object.keys(g).sort(function(b,w){return g[b]-g[w]})}(n,{placement:T4,boundary:u,rootBoundary:f,padding:l,flipVariations:b,allowedAutoPlacements:w}):T4)},[]),G=n.rects.reference,K=n.rects.popper,de=new Map,Se=!0,$e=F[0],L1=0;L1<F.length;L1++){var L2=F[L1],Yt=Dn(L2),F2=rr(L2)===tr,M3=[mt,$t].indexOf(Yt)>=0,b3=M3?"width":"height",Ct=_f(n,{placement:L2,boundary:u,rootBoundary:f,altBoundary:p,padding:l}),Kt=M3?F2?Wt:gt:F2?$t:mt;G[b3]>K[b3]&&(Kt=j6(Kt));var N0=j6(Kt),w3=[];if(a&&w3.push(Ct[Yt]<=0),s&&w3.push(Ct[Kt]<=0,Ct[N0]<=0),w3.every(function(cr){return cr})){$e=L2,Se=!1;break}de.set(L2,w3)}if(Se)for(var U9=function(T4){var To=F.find(function(E0){var H3=de.get(E0);if(H3)return H3.slice(0,T4).every(function(j9){return j9})});if(To)return $e=To,"break"},Eo=b?3:1;Eo>0&&"break"!==U9(Eo);Eo--);n.placement!==$e&&(n.modifiersData[i]._skip=!0,n.placement=$e,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yo(e,n,t){return p3(e,G6(n,t))}function Cf(e){var n=ir(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 V1e={name:"preventOverflow",enabled:!0,phase:"main",fn:function H1e(e){var n=e.state,t=e.options,i=e.name,r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0!==o&&o,p=t.tether,g=void 0===p||p,b=t.tetherOffset,w=void 0===b?0:b,S=_f(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),L=Dn(n.placement),N=rr(n.placement),P=!N,F=vf(L),G=function b1e(e){return"x"===e?"y":"x"}(F),K=n.modifiersData.popperOffsets,de=n.rects.reference,Se=n.rects.popper,$e="function"==typeof w?w(Object.assign({},n.rects,{placement:n.placement})):w,L1="number"==typeof $e?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),L2=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Yt={x:0,y:0};if(K){if(a){var F2,M3="y"===F?mt:gt,b3="y"===F?$t:Wt,Ct="y"===F?"height":"width",Kt=K[F],N0=Kt+S[M3],w3=Kt-S[b3],L0=g?-Se[Ct]/2:0,U9=N===tr?de[Ct]:Se[Ct],Eo=N===tr?-Se[Ct]:-de[Ct],x0=n.elements.arrow,cr=g&&x0?Cf(x0):{width:0,height:0},T4=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},To=T4[M3],E0=T4[b3],H3=yo(0,de[Ct],cr[Ct]),j9=P?de[Ct]/2-L0-H3-To-L1.mainAxis:U9-H3-To-L1.mainAxis,PDe=P?-de[Ct]/2+L0+H3+E0+L1.mainAxis:Eo+H3+E0+L1.mainAxis,G9=n.elements.arrow&&Co(n.elements.arrow),FDe=G9?"y"===F?G9.clientTop||0:G9.clientLeft||0:0,CI=null!=(F2=L2?.[F])?F2:0,UDe=Kt+PDe-CI,yI=yo(g?G6(N0,Kt+j9-CI-FDe):N0,Kt,g?p3(w3,UDe):w3);K[F]=yI,Yt[F]=yI-Kt}if(s){var MI,V3=K[G],T0="y"===G?"height":"width",bI=V3+S["x"===F?mt:gt],wI=V3-S["x"===F?$t:Wt],$9=-1!==[mt,gt].indexOf(L),HI=null!=(MI=L2?.[G])?MI:0,VI=$9?bI:V3-de[T0]-Se[T0]-HI+L1.altAxis,zI=$9?V3+de[T0]+Se[T0]-HI-L1.altAxis:wI,DI=g&&$9?function w1e(e,n,t){var i=yo(e,n,t);return i>t?t:i}(VI,V3,zI):yo(g?VI:bI,V3,g?zI:wI);K[G]=DI,Yt[G]=DI-V3}n.modifiersData[i]=Yt}},requiresIfExists:["offset"]},N1e={name:"arrow",enabled:!0,phase:"main",fn:function D1e(e){var n,t=e.state,i=e.name,r=e.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=Dn(t.placement),c=vf(s),u=[gt,Wt].indexOf(s)>=0?"height":"width";if(a&&o){var f=function(n,t){return cH("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:lH(n,mo))}(r.padding,t),p=Cf(a),g="y"===c?mt:gt,b="y"===c?$t:Wt,w=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],S=o[c]-t.rects.reference[c],L=Co(a),N=L?"y"===c?L.clientHeight||0:L.clientWidth||0:0,K=N/2-p[u]/2+(w/2-S/2),de=yo(f[g],K,N-p[u]-f[b]);t.modifiersData[i]=((n={})[c]=de,n.centerOffset=de-K,n)}},effect:function S1e(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))||rH(n.elements.popper,r)&&(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function T1e(e,n,t){void 0===t&&(t=!1);var i=Dt(n),r=Dt(n)&&function E1e(e){var n=e.getBoundingClientRect(),t=nr(n.width)/e.offsetWidth||1,i=nr(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),a=x4(n),o=ir(e,r,t),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==Sn(n)||mf(a))&&(s=function x1e(e){return e!==vt(e)&&Dt(e)?function L1e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):hf(e)}(n)),Dt(n)?((c=ir(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):a&&(c.x=pf(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function I1e(e){var n=new Map,t=new Set,i=[];function r(a){t.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&r(c)}}),i.push(a)}return e.forEach(function(a){n.set(a.name,a)}),e.forEach(function(a){t.has(a.name)||r(a)}),i}function k1e(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var uH={placement:"bottom",modifiers:[],strategy:"absolute"};function fH(){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 R1e(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?uH:r;return function(s,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},uH,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],p=!1,g={state:u,setOptions:function(L){var N="function"==typeof L?L(u.options):L;w(),u.options=Object.assign({},a,u.options,N),u.scrollParents={reference:h3(s)?_o(s):s.contextElement?_o(s.contextElement):[],popper:_o(c)};var P=function A1e(e){var n=I1e(e);return u1e.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function O1e(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,u.options.modifiers)));return u.orderedModifiers=P.filter(function(F){return F.enabled}),function b(){u.orderedModifiers.forEach(function(S){var N=S.options,F=S.effect;if("function"==typeof F){var G=F({state:u,name:S.name,instance:g,options:void 0===N?{}:N});f.push(G||function(){})}})}(),g.update()},forceUpdate:function(){if(!p){var L=u.elements,N=L.reference,P=L.popper;if(fH(N,P)){u.rects={reference:T1e(N,Co(P),"fixed"===u.options.strategy),popper:Cf(P)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L1){return u.modifiersData[L1.name]=Object.assign({},L1.data)});for(var F=0;F<u.orderedModifiers.length;F++)if(!0!==u.reset){var G=u.orderedModifiers[F],K=G.fn,de=G.options;"function"==typeof K&&(u=K({state:u,options:void 0===de?{}:de,name:G.name,instance:g})||u)}else u.reset=!1,F=-1}}},update:k1e(function(){return new Promise(function(S){g.forceUpdate(),S(u)})}),destroy:function(){w(),p=!0}};if(!fH(s,c))return g;function w(){f.forEach(function(S){return S()}),f=[]}return g.setOptions(l).then(function(S){!p&&l.onFirstUpdate&&l.onFirstUpdate(S)}),g}}var W6={passive:!0},j1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dH(e){var n,t=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=o.x,g=void 0===p?0:p,b=o.y,w=void 0===b?0:b,S="function"==typeof u?u({x:g,y:w}):{x:g,y:w};g=S.x,w=S.y;var L=o.hasOwnProperty("x"),N=o.hasOwnProperty("y"),P=gt,F=mt,G=window;if(l){var K=Co(t),de="clientHeight",Se="clientWidth";K===vt(t)&&"static"!==e4(K=x4(t)).position&&"absolute"===s&&(de="scrollHeight",Se="scrollWidth"),(r===mt||(r===gt||r===Wt)&&a===go)&&(F=$t,w-=(f&&K===G&&G.visualViewport?G.visualViewport.height:K[de])-i.height,w*=c?1:-1),r!==gt&&(r!==mt&&r!==$t||a!==go)||(P=Wt,g-=(f&&K===G&&G.visualViewport?G.visualViewport.width:K[Se])-i.width,g*=c?1:-1)}var F2,L2=Object.assign({position:s},l&&j1e),Yt=!0===u?function G1e(e,n){var i=e.y,r=n.devicePixelRatio||1;return{x:nr(e.x*r)/r||0,y:nr(i*r)/r||0}}({x:g,y:w},vt(t)):{x:g,y:w};return g=Yt.x,w=Yt.y,Object.assign({},L2,c?((F2={})[F]=N?"0":"",F2[P]=L?"0":"",F2.transform=(G.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",F2):((n={})[F]=N?w+"px":"",n[P]=L?g+"px":"",n.transform="",n))}var Q1e=R1e({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function P1e(e){var n=e.state,t=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,o=i.resize,s=void 0===o||o,c=vt(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",t.update,W6)}),s&&c.addEventListener("resize",t.update,W6),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",t.update,W6)}),s&&c.removeEventListener("resize",t.update,W6)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function B1e(e){var n=e.state;n.modifiersData[e.name]=oH({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function $1e(e){var n=e.state,t=e.options,i=t.gpuAcceleration,r=void 0===i||i,a=t.adaptive,o=void 0===a||a,s=t.roundOffsets,c=void 0===s||s,l={placement:Dn(n.placement),variation:rr(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,dH(Object.assign({},l,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,dH(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 q1e(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},r=n.attributes[t]||{},a=n.elements[t];!Dt(a)||!Sn(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];!1===s?a.removeAttribute(o):a.setAttribute(o,!0===s?"":s)}))})},effect:function Y1e(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],a=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(c,l){return c[l]="",c},{});!Dt(r)||!Sn(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const X1e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function J1e(e){var n=e.state,i=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=eH.reduce(function(u,f){return u[f]=function Z1e(e,n,t){var i=Dn(e),r=[gt,mt].indexOf(i)>=0?-1:1,a="function"==typeof t?t(Object.assign({},n,{placement:e})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[gt,Wt].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,a),u},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}},q6=["*"];function e2e(e,n){if(1&e){const t=w1();m(0,"button",1),O("click",function(){return be(t),we(R().close())}),v()}}const L2e=["dialog"];function ote(e,n){1&e&&y(0),2&e&&wt(R(2).title)}function ste(e,n){}function cte(e,n){if(1&e&&(m(0,"h3",2),j(1,ote,1,1,"ng-template",null,0,Q2)(3,ste,0,0,"ng-template",4),v()),2&e){const t=_2(2),i=R();C(3),V("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}const pH={animation:!0,transitionTimerDelayMs:5};let m3=(()=>{class e{constructor(){this.animation=pH.animation}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cte=(()=>{class e{constructor(){this._ngbConfig=H(m3),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function E4(e){return"string"==typeof e}function g3(e){return null!=e}function ar(e){return(e||document.body).getBoundingClientRect()}const Hte=()=>{},{transitionTimerDelayMs:Vte}=pH,Mo=new Map,_t=(e,n,t,i)=>{let r=i.context||{};const a=Mo.get(n);if(a)switch(i.runningTransition){case"continue":return ft;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),Mo.delete(n)}const o=t(n,i.animation,r)||Hte;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>o()),ie(void 0).pipe(function wte(e){return n=>new M1(t=>n.subscribe({next:o=>e.run(()=>t.next(o)),error:o=>e.run(()=>t.error(o)),complete:()=>e.run(()=>t.complete())}))}(e));const s=new a1,c=new a1,l=s.pipe(function KX(...e){return n=>Na(n,ie(...e))}(!0));Mo.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const u=function yte(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const f=f2(n,"transitionend").pipe(M2(l),l2(({target:g})=>g===n));Zb(Kb(u+Vte).pipe(M2(l)),f,c).pipe(M2(l)).subscribe(()=>{Mo.delete(n),e.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},Dte=(e,n,t)=>{let{direction:i,maxSize:r,dimension:a}=t;const{classList:o}=e;function s(){o.add("collapse"),"show"===i?o.add("show"):o.remove("show")}if(n)return r||(r=function zte(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,a),t.maxSize=r,e.style[a]="show"!==i?r:"0px",o.remove("collapse"),o.remove("collapsing"),o.remove("show"),ar(e),o.add("collapsing")),e.style[a]="show"===i?r:"0px",()=>{s(),o.remove("collapsing"),e.style[a]=""};s()};let Ste=(()=>{class e{constructor(){this._ngbConfig=H(m3),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_H=(()=>{class e{constructor(){this._config=H(Ste),this._element=H(Ae),this._zone=H(ve),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new Z,this.horizontal=this._config.horizontal,this.shown=new Z,this.hidden=new Z}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 _t(this._zone,this._element.nativeElement,Dte,{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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,r){2&i&&Ne("collapse-horizontal",r.horizontal)},inputs:{animation:"animation",collapsed:[Ge.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}return e})(),Nte=0,Mf=(()=>{class e{constructor(){this._vcr=H(Y2),this._element=H(Ae).nativeElement,this._item=H(t4),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(const t of this._viewRef.rootNodes)this._element.appendChild(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,r,a){if(1&i&&e2(a,I1,7),2&i){let o;h1(o=p1())&&(r._bodyTpl=o.first)}},hostVars:2,hostBindings:function(i,r){2&i&&Ne("accordion-body",!0)},standalone:!0})}return e})(),Y6=(()=>{class e{constructor(){this.item=H(t4),this.ngbCollapse=H(_H)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(i,r){2&i&&(A2("id",r.item.collapseId),W("aria-labelledby",r.item.toggleId),Ne("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[n5([_H])]})}return e})(),CH=(()=>{class e{constructor(){this.item=H(t4),this.accordion=H(bo)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(i,r){1&i&&O("click",function(){return!r.item.disabled&&r.accordion.toggle(r.item.id)}),2&i&&(A2("id",r.item.toggleId),W("aria-controls",r.item.collapseId)("aria-expanded",!r.item.collapsed),Ne("collapsed",r.item.collapsed))},standalone:!0})}return e})(),bf=(()=>{class e{constructor(){this.item=H(t4)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(i,r){2&i&&(A2("disabled",r.item.disabled),Ne("accordion-button",!0))},standalone:!0,features:[n5([CH])]})}return e})(),wf=(()=>{class e{constructor(){this.item=H(t4)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(i,r){2&i&&Ne("accordion-header",!0)("collapsed",r.item.collapsed)},standalone:!0})}return e})(),t4=(()=>{class e{constructor(){this._accordion=H(bo),this._cd=H(ut),this._destroyRef=H(ln),this._collapsed=!0,this._id="ngb-accordion-item-"+Nte++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new Z,this.shown=new Z,this.hide=new Z,this.hidden=new Z}set id(t){E4(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(Jn(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),t.shown.pipe(Jn(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,r,a){if(1&i&&e2(a,Y6,7),2&i){let o;h1(o=p1())&&(r._collapse=o.first)}},hostVars:3,hostBindings:function(i,r){2&i&&(A2("id",r.id),Ne("accordion-item",!0))},inputs:{id:[Ge.None,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}return e})(),bo=(()=>{class e{constructor(){this._config=H(Cte),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new Z,this.shown=new Z,this.hide=new Z,this.hidden=new Z}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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(i,r,a){if(1&i&&e2(a,t4,4),2&i){let o;h1(o=p1())&&(r._items=o)}},hostVars:2,hostBindings:function(i,r){2&i&&Ne("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}return e})(),K6=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),Lte=(()=>{class e{constructor(){this._ngbConfig=H(m3),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const xte=({classList:e})=>{e.remove("show")};let Hf=(()=>{class e{constructor(){this._config=H(Lte),this._elementRef=H(Ae),this._zone=H(ve),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new Z}close(){const t=_t(this._zone,this._elementRef.nativeElement,xte,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,r){2&i&&(g4("alert show"+(r.type?" alert-"+r.type:"")),Ne("fade",r.animation)("alert-dismissible",r.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[se],ngContentSelectors:q6,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&&(Vi(),zi(0),j(1,e2e,1,0,"button",0)),2&i&&(C(),j1(1,r.dismissible?1:-1))},styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}return e})(),Vf=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),bH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),wH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();var i1=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}(i1||{});const t0=(e,n)=>!!n&&n.some(t=>t.contains(e)),SH=(e,n)=>!n||null!=function bte(e,n){return!n||typeof e.closest>"u"?null:e.closest(n)}(e,n),Zte=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 n0(e,n,t,i,r,a,o,s){t&&e.runOutsideAngular((e=>Zte?()=>setTimeout(()=>e(),100):e)(()=>{const l=f2(n,"keydown").pipe(M2(r),l2(p=>p.which===i1.Escape),u2(p=>p.preventDefault())),u=f2(n,"mousedown").pipe(Te(p=>{const g=p.target;return 2!==p.button&&!t0(g,o)&&("inside"===t?t0(g,a)&&SH(g,s):"outside"===t?!t0(g,a):SH(g,s)||!t0(g,a))}),M2(r)),f=f2(n,"mouseup").pipe(Bu(u),l2(([p,g])=>g),function ZX(e,n=Yb){const t=Kb(e,n);return Jb(()=>t)}(0),M2(r));Zb([l.pipe(Te(p=>0)),f.pipe(Te(p=>1))]).subscribe(p=>e.run(()=>i(p)))}))}const NH=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function LH(e){const n=Array.from(e.querySelectorAll(NH)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}let Xte=(()=>{class e{constructor(){this._element=H(N1).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ene=/\s+/,tne=/ +/gi,nne={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"]},rne=/^left/,ane=/^right/,one=/^start/,sne=/^end/;function EH({placement:e,baseClass:n},t){let i=Array.isArray(e)?e:e.split(ene),a=i.findIndex(l=>"auto"===l);a>=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(u=>-1!==u.search("^"+l))&&i.splice(a++,1,l)});const o=i.map(l=>function ine(e,n){const[t,i]=nne[e];return n&&i||t}(l,t.isRTL()));return{placement:o.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:l}){const u=new RegExp(n+"(-[a-z]+)*","gi"),f=l.elements.popper,p=l.placement;let g=f.className;g=g.replace(u,""),g+=` ${function cne(e,n){let[t,i]=n.split("-");const r=t.replace(rne,"start").replace(ane,"end");let a=[r];if(i){let o=i;("left"===t||"right"===t)&&(o=o.replace(one,"top").replace(sne,"bottom")),a.push(`${r}-${o}`)}return e&&(a=a.map(o=>`${e}-${o}`)),a.join(" ")}(n,p)}`,g=g.trim().replace(tne," "),f.className=g}},M1e,V1e,N1e,{enabled:!0,name:"flip",options:{fallbackPlacements:o}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function TH(e){return e}function r0(){const e=H(Xte);let n=null;return{createPopper(t){if(!n){let r=(t.updatePopperOptions||TH)(EH(t,e));n=Q1e(t.hostElement,t.targetElement,r)}},update(){n&&n.update()},setOptions(t){if(n){let r=(t.updatePopperOptions||TH)(EH(t,e));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}function a0(e){return n=>(n.modifiers.push(X1e,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let GH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),WH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),Dne=(()=>{class e{constructor(){this._ngbConfig=H(m3),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class y3{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class qH{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=H(N1),this._applicationRef=H(yn),this._injector=H(U1),this._viewContainerRef=H(Y2),this._ngZone=H(ve)}open(n,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(y2(1),r2(()=>_t(this._ngZone,r,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?_t(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(u2(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ie(void 0)}_getContentRef(n,t){if(n){if(n instanceof I1){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new y3([i.rootNodes],i)}return new y3([[this._document.createTextNode(`${n}`)]])}return new y3([])}}let Sne=(()=>{class e{constructor(){this._document=H(N1)}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:a,paddingRight:o}=r;if(t>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=o),r.overflow=a}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Nne=(()=>{class e{constructor(){this._nativeElement=H(Ae).nativeElement,this._zone=H(ve)}ngOnInit(){this._zone.onStable.asObservable().pipe(y2(1)).subscribe(()=>{_t(this._zone,this._nativeElement,(t,i)=>{i&&ar(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return _t(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(g4("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Ne("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[se],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})();class YH{update(n){}close(n){}dismiss(n){}}const Lne=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],xne=["animation","backdropClass"];class Ene{_applyWindowOptions(n,t){Lne.forEach(i=>{g3(t[i])&&(n[i]=t[i])})}_applyBackdropOptions(n,t){xne.forEach(i=>{g3(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(M2(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(M2(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 a1,this._dismissed=new a1,this._hidden=new a1,n.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,o)=>{this._resolve=a,this._reject=o}),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 mH(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ie(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&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}}),Fu(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var zo=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(zo||{});let Tne=(()=>{class e{constructor(){this._document=H(N1),this._elRef=H(Ae),this._zone=H(ve),this._closed$=new a1,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Z,this.shown=new a1,this.hidden=new a1}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":E4(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(y2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=Fu(_t(this._zone,t,()=>t.classList.remove("show"),i),_t(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const t={animation:this.animation,runningTransition:"continue"};Fu(_t(this._zone,this._elRef.nativeElement,(a,o)=>{o&&ar(a),a.classList.add("show")},t),_t(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(()=>{f2(t,"keydown").pipe(M2(this._closed$),l2(r=>r.which===i1.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(zo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;f2(this._dialogEl.nativeElement,"mousedown").pipe(M2(this._closed$),u2(()=>i=!1),Bt(()=>f2(t,"mouseup").pipe(M2(this._closed$),y2(1))),l2(({target:r})=>t===r)).subscribe(()=>{i=!0}),f2(t,"click").pipe(M2(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(zo.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=LH(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&&_t(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&t3(L2e,7),2&i){let a;h1(a=p1())&&(r._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,r){2&i&&(W("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),g4("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Ne("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[se],ngContentSelectors:q6,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,r){1&i&&(Vi(),m(0,"div",1,0)(2,"div",2),zi(3),v()()),2&i&&g4("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})(),Ine=(()=>{class e{constructor(){this._applicationRef=H(yn),this._injector=H(U1),this._environmentInjector=H(E2),this._document=H(N1),this._scrollBar=H(Sne),this._activeWindowCmptHasChanged=new a1,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new Z;const t=H(ve);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const i=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{e.runOutsideAngular(()=>{const r=f2(n,"focusin").pipe(M2(t),Te(a=>a.target));f2(n,"keydown").pipe(M2(t),l2(a=>a.which===i1.Tab),Bu(r)).subscribe(([a,o])=>{const[s,c]=LH(n);(o===s||o===n)&&a.shiftKey&&(c.focus(),a.preventDefault()),o===c&&!a.shiftKey&&(s.focus(),a.preventDefault())}),i&&f2(n,"click").pipe(M2(t),Bu(r),Te(a=>a[1])).subscribe(a=>a.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 a=r.container instanceof HTMLElement?r.container:g3(r.container)?this._document.querySelector(r.container):this._document.body;if(!a)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const o=new YH,s=(t=r.injector||t).get(E2,null)||this._environmentInjector,c=this._getContentRef(t,s,i,o,r);let l=!1!==r.backdrop?this._attachBackdrop(a):void 0,u=this._attachWindowComponent(a,c.nodes),f=new Ene(u,c,l,r.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(u),f.hidden.pipe(y2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),o.close=p=>{f.close(p)},o.dismiss=p=>{f.dismiss(p)},o.update=p=>{f.update(p)},f.update(r),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),l&&l.instance&&l.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=i7(Nne,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,i){let r=i7(Tne,{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,a,o){return r?r instanceof I1?this._createFromTemplateRef(r,a):E4(r)?this._createFromString(r):this._createFromComponent(t,i,r,a,o):new y3([])}_createFromTemplateRef(t,i){const a=t.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(a),new y3([a.rootNodes],a)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new y3([[i]])}_createFromComponent(t,i,r,a,o){const c=i7(r,{environmentInjector:i,elementInjector:U1.create({providers:[{provide:YH,useValue:a}],parent:t})}),l=c.location.nativeElement;return o.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new y3([[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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KH=(()=>{class e{constructor(){this._injector=H(U1),this._modalStack=H(Ine),this._config=H(Dne)}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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),QH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({providers:[KH]})}return e})(),XH=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),sV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();const jne={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function cV(e,n,t,i,r,a=0,o=0){const s=function Gne(e){const n=(e||"").trim();if(0===n.length)return[];const t=n.split(/\s+/).map(r=>r.split(":")).map(r=>jne[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 u;function f(g,b){e.addEventListener(g,b),l.push(()=>e.removeEventListener(g,b))}function p(g,b){clearTimeout(u),b>0?u=setTimeout(g,b):g()}for(const[g,b]of s)b?(f(g,()=>{c.add(g),p(()=>c.size>0&&i(),a)}),f(b,()=>{c.delete(g),p(()=>0===c.size&&r(),o)})):f(g,()=>t()?p(r,o):p(i,a));return()=>l.forEach(g=>g())}let $ne=(()=>{class e{constructor(){this._ngbConfig=H(m3),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wne=0,qne=(()=>{class e{isTitleTemplate(){return this.title instanceof I1}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(i,r){2&i&&(A2("id",r.id),g4("popover"+(r.popoverClass?" "+r.popoverClass:"")),Ne("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[se],ngContentSelectors:q6,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(Vi(),k(0,"div",1),j(1,cte,4,2,"h3",2),m(2,"div",3),zi(3),v()),2&i&&(C(),j1(1,r.title?1:-1))},dependencies:[Ti],encapsulation:2,changeDetection:0})}return e})(),Yne=(()=>{class e{constructor(){this._config=H($ne),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new Z,this.hidden=new Z,this._nativeElement=H(Ae).nativeElement,this._ngZone=H(ve),this._document=H(N1),this._changeDetector=H(ut),this._ngbPopoverWindowId="ngb-popover-"+Wne++,this._popupService=new qH(qne),this._windowRef=null,this._positioning=r0()}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:r}=this._popupService.open(this.ngbPopover,t??this.popoverContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",t??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:a=>this.popperOptions(a0([0,8])(a))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),n0(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(t).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=cV(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:i,disablePopover:r,popoverClass:a}){a&&this.isOpen()&&this._windowRef.setInput("popoverClass",a.currentValue),(t||i||r)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(E4(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=$({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[T1]})}return e})(),lV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),uV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),fV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),dV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),hV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),pV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),Jne=(()=>{class e{constructor(){this._ngbConfig=H(m3),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#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Xne=0,e4e=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=oe({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,r){2&i&&(A2("id",r.id),g4("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),Ne("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[se],ngContentSelectors:q6,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,r){1&i&&(Vi(),k(0,"div",0),m(1,"div",1),zi(2),v())},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})(),t4e=(()=>{class e{constructor(){this._config=H(Jne),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 Z,this.hidden=new Z,this._nativeElement=H(Ae).nativeElement,this._ngZone=H(ve),this._document=H(N1),this._changeDetector=H(ut),this._ngbTooltipWindowId="ngb-tooltip-"+Xne++,this._popupService=new qH(e4e),this._windowRef=null,this._positioning=r0()}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,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:a=>this.popperOptions(a0([0,6])(a))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),n0(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._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=cV(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(E4(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=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"],standalone:!0,features:[T1]})}return e})(),mV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();new q("live announcer delay",{providedIn:"root",factory:()=>100});let gV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})(),vV=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({})}return e})();const i4e=[K6,Vf,bH,wH,GH,WH,QH,XH,vV,sV,lV,uV,fV,dV,hV,pV,mV,gV];let r4e=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ze({type:e});static#n=this.\u0275inj=Ye({imports:[i4e,K6,Vf,bH,wH,GH,WH,QH,XH,vV,sV,lV,uV,fV,dV,hV,pV,mV,gV]})}return e})();var DV={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Oz={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},Xf={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8V444.8C394 378 431.1 230.1 432 141.4L256 66.8l0 0z"]},i9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},KS={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},H9={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},nE={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},T9={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2V384c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1V320 192 174.9l14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};function Sbe(e){switch(e){case 0:return"homebase2_large.jpg";case 1:case 4:return"eufycam_large.jpg";case 2:return"sensor_large.jpg";case 3:case 37:case 39:return"floodlight_large.jpg";case 5:case 7:case 16:case 91:return"batterydoorbell2k_large.jpg";case 8:return"eufycam2c_large.jpg";case 9:case 14:case 15:return"eufycam2_large.jpg";case 10:return"motionsensor_large.jpg";case 11:return"keypad_large.jpg";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.jpg";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.jpg";case 45:case 60:case 61:case 62:return"solooutdoorcamc24_large.jpg";case 47:return"floodlightcame340_large.jpg";case 48:return"solocams340_large.jpg";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 Nbe=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:Sbe(e)}]));let e1=(()=>{class e extends EventTarget{stations=[];accessories$=f2(window.homebridge,"addAccessory");config;constructor(){super(),this.init()}init(){this.accessories$.subscribe(()=>{this.loadStoredAccessories()}),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(a=>a.uniqueId===t);if(r)return r}}loadStoredAccessories(){var t=this;return ee(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)}version_unmatched(){}getConfig(){var t=this;return ee(function*(){return t.config?Promise.resolve(t.config):t.getPlatformConfig()})()}updateConfig(t,i){var r=this;return ee(function*(){try{yield window.homebridge.updatePluginConfig([t]),r.config=t,i&&(yield window.homebridge.savePluginConfig()),r.dispatchEvent(new Event("configChanged"))}catch(a){console.log("There was an error updating the credentials in your config: "+a)}})()}getPlatformConfig(){var t=this;return ee(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(t.config=i[0],t.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Lbe=()=>[];function xbe(e,n){if(1&e){const t=w1();m(0,"div",2)(1,"h4",3),y(2,"Refresh stations and devices"),v(),m(3,"button",4),O("click",function(){return we(be(t).$implicit.dismiss("Cross click"))}),v()(),m(4,"div",5)(5,"div",6),y(6," To refresh all stations and devices you will be logged into your eufy account. This can interfere with the plugins connection to the eufy cloud. "),k(7,"p"),m(8,"b",7),y(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),v(),k(10,"p"),y(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),m(12,"a",8),y(13,"here"),v(),y(14," for more information). "),v()(),m(15,"div",9)(16,"a",10),O("click",function(){return we(be(t).$implicit.close("Login"))}),y(17,"Login with eufy"),v()()}}function Ebe(e,n){if(1&e){const t=w1();m(0,"div",11)(1,"div",12)(2,"div",13)(3,"button",14),O("click",function(){be(t);const r=R(),a=_2(1);return we(r.openReloadModal(a))}),k(4,"fa-icon",15),v()(),m(5,"div",16)(6,"a",17),y(7,"Plugin Settings"),v()()(),m(8,"div",18),k(9,"div",19),m(10,"div",20)(11,"div",21)(12,"div",22),y(13," Loading Accessories... "),m(14,"div",23),k(15,"div",24),v()()()(),k(16,"div",19),v()()}if(2&e){const t=R();C(4),V("icon",t.reloadIcon)}}function Tbe(e,n){if(1&e){const t=w1();m(0,"div"),k(1,"p"),m(2,"ngb-alert",27)(3,"a",28),O("click",function(){be(t);const r=R(2),a=_2(1);return we(r.openReloadModal(a))})("keydown.enter",function(){be(t);const r=R(2),a=_2(1);return we(r.openReloadModal(a))}),y(4,"Plugin has been updated, please refresh and reboot the plugin."),v()(),k(5,"p"),v()}2&e&&(C(2),V("dismissible",!1))}function Ibe(e,n){if(1&e&&(m(0,"button",38)(1,"div",39),y(2),v(),m(3,"div",40)(4,"span",41)(5,"button",42),k(6,"fa-icon",15),v()()()()),2&e){const t=R().$implicit,i=R(3);C(),ua("text-decoration",t.ignored?"line-through":"none"),C(),wt(t.displayName),C(3),v4("routerLink","/stationConfig/",t.uniqueId,""),C(),V("icon",i.shieldIcon)}}function Abe(e,n){if(1&e&&(m(0,"div",43)(1,"div",39),y(2),v(),m(3,"div",40)(4,"span",41)(5,"button",42),k(6,"fa-icon",15),v()()()()),2&e){const t=R().$implicit,i=R(3);v4("routerLink","/cameraConfig/",t.uniqueId,""),C(),ua("text-decoration",t.devices&&t.devices[0].ignored?"line-through":"none"),C(),Rt(" ",t.displayName,""),C(3),v4("routerLink","/stationConfig/",t.uniqueId,""),C(),V("icon",i.shieldIcon)}}function kbe(e,n){if(1&e&&(m(0,"span",57),k(1,"fa-icon",58),v()),2&e){const t=R(7);C(),V("icon",t.ignoreIcon)}}function Obe(e,n){if(1&e&&(m(0,"div",46)(1,"div",47)(2,"div",48)(3,"a",49)(4,"div",50),k(5,"img",51),m(6,"span",52),k(7,"fa-icon",53),v(),j(8,kbe,2,1,"span",54),v()()()(),m(9,"span",55),y(10),v(),m(11,"span",56),y(12),v()()),2&e){let t;const i=n.$implicit,r=R(6);C(3),v4("routerLink","/cameraConfig/",i.uniqueId,""),C(2),ua("opacity",!0===i.ignored?.5:1),N5("alt",i.displayName),V("src","assets/devices/"+(r.DeviceImage.get(i.type)?null==(t=r.DeviceImage.get(i.type))?null:t.image:"unknown.png"),Pr),C(2),V("icon",r.settingsIcon),C(),V("ngIf",i.ignored),C(2),wt(i.displayName),C(2),Cc("(",i.type," - ",i.uniqueId,")")}}function Rbe(e,n){if(1&e&&(m(0,"div",12),j(1,Obe,13,11,"div",45),v()),2&e){const t=R(2).$implicit;C(),V("ngForOf",t.devices)}}function Pbe(e,n){1&e&&(m(0,"div",44),j(1,Rbe,2,1,"ng-template"),v())}function Fbe(e,n){if(1&e&&(m(0,"div",32)(1,"div",33),j(2,Ibe,7,6,"button",34)(3,Abe,7,8,"div",35),v(),m(4,"div",36),j(5,Pbe,2,0,"div",37),v()()),2&e){let t;const i=n.$implicit;v4("ngbAccordionItem","S_",i.uniqueId,""),C(2),V("ngIf",1!==(null==i.devices?null:i.devices.length)),C(),V("ngIf",1===(null==i.devices?null:i.devices.length)),C(2),V("ngIf",i&&(null!==(t=i.devices)&&void 0!==t?t:f_(5,Lbe)).length>=2)}}function Bbe(e,n){if(1&e&&(m(0,"div"),k(1,"p"),m(2,"span"),y(3,"Click the name to reveal the attached device(s) or access camera configuration. The shield icon allows you to configure alarm settings."),v(),k(4,"p"),m(5,"div",29),j(6,Fbe,6,6,"div",30),v(),k(7,"p"),m(8,"span")(9,"i"),y(10,"The images used above are 'best effort' for now, since we do not own every eufy device. If you experience that your device is depicted with a wrong image please feel free to let us know in an issue on our "),m(11,"a",31),y(12,"Github page."),v()()()()),2&e){const t=R(2);C(5),V("closeOthers",!0),C(),V("ngForOf",t.stations)}}function Ube(e,n){if(1&e){const t=w1();m(0,"div",11)(1,"div",12)(2,"div",13)(3,"button",25),O("click",function(){be(t);const r=R(),a=_2(1);return we(r.openReloadModal(a))})("keydown.enter",function(){be(t);const r=R(),a=_2(1);return we(r.openReloadModal(a))}),k(4,"fa-icon",15),y(5," Reload "),v()(),m(6,"div",16)(7,"a",17),y(8,"Global Settings"),v()()(),j(9,Tbe,6,1,"div",26)(10,Bbe,13,2,"div",26),v()}if(2&e){const t=R();C(4),V("icon",t.reloadIcon),C(5),V("ngIf",t.versionUnmatched),C(),V("ngIf",!t.versionUnmatched)}}let jbe=(()=>{class e{modalService;pluginService;route;routerService;stations=[];versionUnmatched=!1;waitForAccessories;settingsIcon=i9;ignoreIcon=Oz;reloadIcon=H9;videoIcon=T9;shieldIcon=Xf;DeviceImage=Nbe;closeResult="";constructor(t,i,r,a){this.modalService=t,this.pluginService=i,this.route=r,this.routerService=a}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),window.homebridge.addEventListener("versionUnmatched",t=>{console.log(`Stored version (${t.data.storedVersion}) does not match current version (${t.data.currentVersion})`),this.versionUnmatched=!0}),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateStations()}),this.updateStations(),!this.waitForAccessories&&0===this.stations.length&&this.pluginService.loadStoredAccessories().then(t=>{t||this.routerService.navigateByUrl("/login")}).catch(()=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateProperties(){var t=this;return ee(function*(){const{ignoreStations:i=[],ignoreDevices:r=[]}=yield t.pluginService.getConfig();t.stations.forEach(a=>{a.ignored=i.includes(a.uniqueId),a.devices?.forEach(o=>{o.ignored=r.includes(o.uniqueId)})})})()}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===zo.ESC?"by pressing ESC":t===zo.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}static \u0275fac=function(i){return new(i||e)(E(KH),E(e1),E(qn),E(R2))};static \u0275cmp=oe({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},standalone:!0,features:[se],decls:4,vars:2,consts:[["reloadModal",""],["class","container",4,"ngIf"],[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"],[2,"color","#dc3545"],["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,"container"],[1,"row"],[1,"col-6"],["type","button",1,"btn","btn-success",3,"click"],["size","lg",3,"icon"],[1,"col-6","text-end"],["routerLink","/advancedConfig",1,"btn","btn-secondary"],[1,"row","pl-5","pr-5"],[1,"col",2,"max-width","20%"],[1,"col","d-flex","justify-content-center"],[1,"card","shadow-sm","text-center","pt-3","pb-3",2,"width","100%"],[1,"mx-auto"],[1,"progress",2,"height","8px"],["role","progressbar","aria-valuenow","75","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-info","progress-bar-animated",2,"width","75%"],["type","button",1,"btn","btn-success",3,"click","keydown.enter"],[4,"ngIf"],["type","warning",3,"dismissible"],["tabindex","0",3,"click","keydown.enter"],["ngbAccordion","",3,"closeOthers"],[3,"ngbAccordionItem",4,"ngFor","ngForOf"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[3,"ngbAccordionItem"],["ngbAccordionHeader",""],["ngbAccordionButton","","class","row m-0",4,"ngIf"],["ngbAccordionButton","","class","row m-0 accordion-button2",3,"routerLink",4,"ngIf"],["ngbAccordionCollapse",""],["ngbAccordionBody","",4,"ngIf"],["ngbAccordionButton","",1,"row","m-0"],[1,"col-8"],[1,"col"],[1,"float-right"],["type","button",1,"btn","text-muted","my-0","mx-1",3,"routerLink"],["ngbAccordionButton","",1,"row","m-0","accordion-button2",3,"routerLink"],["ngbAccordionBody",""],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"col-6","col-sm-4","mt-3","mb-3","d-flex","flex-column","align-items-center"],[1,"col-12","col-sm-7"],[1,"text-center"],[2,"color","black",3,"routerLink"],[1,"device","ratio","ratio-1x1","border","rounded","shadow-sm"],[1,"deviceimage",2,"padding","20px",3,"src","alt"],[1,"devicesettingsicon","d-flex","border","align-items-center","justify-content-center",2,"z-index","15"],["size","2x",3,"icon"],["class","d-flex border align-items-top justify-content-end","style","z-index: 20;",4,"ngIf"],[1,"col-12","text-center"],[1,"col-12","serial","fw-light","text-center"],[1,"d-flex","border","align-items-top","justify-content-end",2,"z-index","20"],["size","xs",1,"mt-sm-1","m-sm-2","m-1","mt-0",3,"icon"]],template:function(i,r){1&i&&j(0,xbe,18,0,"ng-template",null,0,Q2)(2,Ebe,17,1,"div",1)(3,Ube,11,3,"div",1),2&i&&(C(2),V("ngIf",0===r.stations.length),C(),V("ngIf",0!==r.stations.length))},dependencies:[jt,Z2,$b,Kc,K6,bf,bo,t4,wf,Mf,Y6,Vf,Hf],styles:[".device[_ngcontent-%COMP%]:hover{transform:scale(1.05);border-color:#ffc107!important;color:#ffc107}.device[_ngcontent-%COMP%]{background-color:#fff!important;color:#000!important}.device[_ngcontent-%COMP%]:hover .deviceimage[_ngcontent-%COMP%]{opacity:.5}.device[_ngcontent-%COMP%] .devicesettingsicon[_ngcontent-%COMP%]{display:none!important}.device[_ngcontent-%COMP%]:hover .devicesettingsicon[_ngcontent-%COMP%]{display:flex!important;color:#ffa000!important}.serial[_ngcontent-%COMP%]{font-size:12px}",".accordion-button[_ngcontent-%COMP%]:before{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-right:var(--bs-accordion-btn-icon-width);content:\"\";background-image:var(--bs-accordion-btn-active-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):before{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button[_ngcontent-%COMP%]:after{display:none!important}.serial[_ngcontent-%COMP%]{filter:blur(5px)}.serial[_ngcontent-%COMP%]:hover{filter:none}.my-custom-header[_ngcontent-%COMP%]:after{content:none}.accordion-button2[_ngcontent-%COMP%]{position:relative;cursor:pointer;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}.accordion-button2[_ngcontent-%COMP%]:before{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-right:var(--bs-accordion-btn-icon-width);content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-box-arrow-up-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}"]})}return e})(),Gbe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=oe({type:e,selectors:[["app-reset-plugin"]],standalone:!0,features:[se],decls:9,vars:0,consts:[[1,"settingsItem","row","p-3"],[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"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Reset Plugin"),v(),m(4,"a",3),y(5,"Remove everything"),v()(),m(6,"small")(7,"i"),y(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. "),v()()())},dependencies:[jt],encapsulation:2})}return e})();var $be=_1(838);function Wbe(e,n){if(1&e&&(m(0,"div",7),y(1),v()),2&e){const t=R();C(),Rt(" ",t.failureMessage," ")}}function qbe(e,n){1&e&&k(0,"span",10)}function Ybe(e,n){1&e&&(m(0,"span"),y(1,"Download Logs"),v())}function Kbe(e,n){1&e&&(m(0,"span"),y(1," Generating Log File..."),v())}function Qbe(e,n){if(1&e){const t=w1();m(0,"button",8),O("click",function(){return be(t),we(R().downloadLogs())}),j(1,qbe,1,0,"span",9)(2,Ybe,2,0,"span",6)(3,Kbe,2,0,"span",6),v()}if(2&e){const t=R();W("disabled",!!t.isDownloading||null),C(),V("ngIf",t.isDownloading),C(),V("ngIf",!t.isDownloading),C(),V("ngIf",t.isDownloading)}}function Zbe(e,n){if(1&e){const t=w1();m(0,"a",11),O("click",function(){return be(t),we(R().openLink())})("keydown.enter",function(){return be(t),we(R().openLink())}),m(1,"span"),y(2,"Download Logs"),v()()}}function Jbe(e,n){if(1&e&&(m(0,"small")(1,"i"),y(2),v()()),2&e){const t=R();C(2),Rt(" ",t.downloadMessage," ")}}function Xbe(e,n){1&e&&(m(0,"small")(1,"i"),y(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),k(3,"br"),m(4,"b"),y(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),m(6,"a",12),y(7,"site"),v(),y(8," can help."),v()()())}let ewe=(()=>{class e{router;zone;routeSub;constructor(t,i){this.router=t,this.zone=i}ngOnInit(){this.routeSub=this.router.events.subscribe(t=>{t instanceof ja&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",t=>{this.updateDownloadMessage(`Compressing ${t.data.numberOfFiles} log files...`)})}failed=!1;isDownloading=!1;hasDownloaded=!1;downloadMessage;failureMessage="";logFileLocation="";downloadLogs(){var t=this;return ee(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=$be.hp.from(i.data),a=new File([r],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(a);t.logFileLocation=o,window.open(t.logFileLocation),t.updateDownloadMessage(void 0),t.hasDownloaded=!0}catch(i){console.log(i);const r=i;t.failed=!0,t.updateDownloadMessage(void 0),t.failureMessage=`Generating of compressed logs.zip file did not complete: ${r.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(t){this.zone.run(()=>{this.downloadMessage=t})}static \u0275fac=function(i){return new(i||e)(E(R2),E(ve))};static \u0275cmp=oe({type:e,selectors:[["app-download-logs"]],standalone:!0,features:[se],decls:9,vars:5,consts:[[1,"settingsItem","row","p-3"],["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-secondary col-12 col-sm-4",3,"click",4,"ngIf"],["tabindex","0","class","btn btn-success col-12 col-sm-4",3,"click","keydown.enter",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-danger"],["type","button",1,"btn","btn-secondary","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"],["tabindex","0",1,"btn","btn-success","col-12","col-sm-4",3,"click","keydown.enter"],["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&&(m(0,"div",0),j(1,Wbe,2,1,"div",1),m(2,"div",2)(3,"span",3),y(4,"Download Logs"),v(),j(5,Qbe,4,4,"button",4)(6,Zbe,3,0,"a",5),v(),j(7,Jbe,3,1,"small",6)(8,Xbe,9,0,"small",6),v()),2&i&&(C(),V("ngIf",r.failed),C(4),V("ngIf",!r.hasDownloaded),C(),V("ngIf",r.hasDownloaded),C(),V("ngIf",r.downloadMessage),C(),V("ngIf",r.hasDownloaded))},dependencies:[Z2],encapsulation:2})}return e})();const Nn={enableDetailedLogging:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",cameras:[],cleanCache:!0,unbridge:!0,ignoreMultipleDevicesWarning:!1,syncStationModes:!1,autoSyncStation:!1};class D1{pluginService;config;constructor(n){this.pluginService=n,this.config=Nn,this.pluginService.getConfig().then(t=>{this.config={...this.config,...t}}).catch(t=>console.log("Could not get config in config interpreter: "+t))}getCameraConfig(n){var t=this;return ee(function*(){const i=yield t.pluginService.getConfig();if(Array.isArray(i.cameras))return i.cameras.find(r=>r.serialNumber===n)||void 0})()}getStationConfig(n){var t=this;return ee(function*(){const i=yield t.pluginService.getConfig();if(Array.isArray(i.stations))return i.stations.find(r=>r.serialNumber===n)||void 0})()}updateConfig(n){var t=this;return ee(function*(){let i=yield t.pluginService.getConfig();i={...Nn,...i,...n},t.pluginService.updateConfig(i)})()}updateStationConfig(n,t){var i=this;return ee(function*(){const r=yield i.pluginService.getConfig();Array.isArray(r.stations)||(r.stations=[]);const a=r.stations.findIndex(o=>o.serialNumber===t.uniqueId);a>=0?r.stations[a]={...r.stations[a],...n}:r.stations.push({serialNumber:t.uniqueId,...n}),i.pluginService.updateConfig(r)})()}updateDeviceConfig(n,t){var i=this;return ee(function*(){const r=yield i.pluginService.getConfig();Array.isArray(r.cameras)||(r.cameras=[]);const a=r.cameras.findIndex(o=>o.serialNumber===t.uniqueId);a>=0?r.cameras[a]={...r.cameras[a],...n}:r.cameras.push({serialNumber:t.uniqueId,...n}),i.pluginService.updateConfig(r)})()}}function twe(e,n){1&e&&(m(0,"span"),y(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),v())}function nwe(e,n){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&V("ngValue",void 0)}function iwe(e,n){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&V("ngValue",void 0)}function rwe(e,n){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&V("ngValue",void 0)}function awe(e,n){1&e&&(m(0,"option",6),y(1,"Use global setting"),v()),2&e&&V("ngValue",void 0)}let $E=(()=>{class e extends D1{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 ee(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=Nn.hkHome),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.station||(t.hkAway=Nn.hkAway),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.station||(t.hkNight=Nn.hkNight),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.station||(t.hkOff=Nn.hkOff)})()}update(){var t=this;return ee(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 a=-1;r.stations.forEach((o,s)=>{o.serialNumber===t.station?.uniqueId&&(a=s)}),a>=0?r.stations[a]=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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{station:"station"},standalone:!0,features:[X,se],decls:90,vars:41,consts:[[1,"settingsItem","row","p-3"],[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&&(m(0,"div",0)(1,"span"),y(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),v(),k(3,"p"),j(4,twe,2,0,"span",1),k(5,"p"),m(6,"div",2)(7,"label",3),y(8,"HomeKit Home"),v(),m(9,"select",4),fe("ngModelChange",function(o){return he(r.hkHome,o)||(r.hkHome=o),o}),O("change",function(){return r.update()}),j(10,nwe,2,1,"option",5),m(11,"option",6),y(12,"Eufy Home"),v(),m(13,"option",6),y(14,"Eufy Away"),v(),m(15,"option",6),y(16,"Eufy Schedule"),v(),m(17,"option",6),y(18,"Eufy Custom 1 (Night)"),v(),m(19,"option",6),y(20,"Eufy Custom 2"),v(),m(21,"option",6),y(22,"Eufy Custom 3"),v(),m(23,"option",6),y(24,"Eufy Geofencing"),v(),m(25,"option",6),y(26,"Eufy Disarmed"),v()()(),m(27,"div",2)(28,"label",7),y(29,"HomeKit Away"),v(),m(30,"select",8),fe("ngModelChange",function(o){return he(r.hkAway,o)||(r.hkAway=o),o}),O("change",function(){return r.update()}),j(31,iwe,2,1,"option",5),m(32,"option",6),y(33,"Eufy Home"),v(),m(34,"option",6),y(35,"Eufy Away"),v(),m(36,"option",6),y(37,"Eufy Schedule"),v(),m(38,"option",6),y(39,"Eufy Custom 1 (Night)"),v(),m(40,"option",6),y(41,"Eufy Custom 2"),v(),m(42,"option",6),y(43,"Eufy Custom 3"),v(),m(44,"option",6),y(45,"Eufy Geofencing"),v(),m(46,"option",6),y(47,"Eufy Disarmed"),v()()(),m(48,"div",2)(49,"label",9),y(50,"HomeKit Night"),v(),m(51,"select",10),fe("ngModelChange",function(o){return he(r.hkNight,o)||(r.hkNight=o),o}),O("change",function(){return r.update()}),j(52,rwe,2,1,"option",5),m(53,"option",6),y(54,"Eufy Home"),v(),m(55,"option",6),y(56,"Eufy Away"),v(),m(57,"option",6),y(58,"Eufy Schedule"),v(),m(59,"option",6),y(60,"Eufy Custom 1 (Night)"),v(),m(61,"option",6),y(62,"Eufy Custom 2"),v(),m(63,"option",6),y(64,"Eufy Custom 3"),v(),m(65,"option",6),y(66,"Eufy Geofencing"),v(),m(67,"option",6),y(68,"Eufy Disarmed"),v()()(),m(69,"div",2)(70,"label",11),y(71,"HomeKit Off"),v(),m(72,"select",12),fe("ngModelChange",function(o){return he(r.hkOff,o)||(r.hkOff=o),o}),O("change",function(){return r.update()}),j(73,awe,2,1,"option",5),m(74,"option",6),y(75,"Eufy Home"),v(),m(76,"option",6),y(77,"Eufy Away"),v(),m(78,"option",6),y(79,"Eufy Schedule"),v(),m(80,"option",6),y(81,"Eufy Custom 1 (Night)"),v(),m(82,"option",6),y(83,"Eufy Custom 2"),v(),m(84,"option",6),y(85,"Eufy Custom 3"),v(),m(86,"option",6),y(87,"Eufy Geofencing"),v(),m(88,"option",6),y(89,"Eufy Disarmed"),v()()()()),2&i&&(C(4),V("ngIf",r.station),C(5),ue("ngModel",r.hkHome),C(),V("ngIf",r.station),C(),V("ngValue",1),C(2),V("ngValue",0),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngValue",4),C(2),V("ngValue",5),C(2),V("ngValue",47),C(2),V("ngValue",63),C(5),ue("ngModel",r.hkAway),C(),V("ngIf",r.station),C(),V("ngValue",1),C(2),V("ngValue",0),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngValue",4),C(2),V("ngValue",5),C(2),V("ngValue",47),C(2),V("ngValue",63),C(5),ue("ngModel",r.hkNight),C(),V("ngIf",r.station),C(),V("ngValue",1),C(2),V("ngValue",0),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngValue",4),C(2),V("ngValue",5),C(2),V("ngValue",47),C(2),V("ngValue",63),C(5),ue("ngModel",r.hkOff),C(),V("ngIf",r.station),C(),V("ngValue",1),C(2),V("ngValue",0),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngValue",4),C(2),V("ngValue",5),C(2),V("ngValue",47),C(2),V("ngValue",63))},dependencies:[Z2,V1,u3,f3,Xn,H1,v1],encapsulation:2})}return e})(),owe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}model=!1;readValue(){const t=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:Nn.unbridge;this.model=t}update(){this.updateConfig({unbridge:this.model})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-unbridge-accessory"]],standalone:!0,features:[X,se],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Unbridge Camera"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.model,o)||(r.model=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),m(9,"a",4),y(10,"here"),v(),y(11," for mor details. "),v()()()),2&i&&(C(5),ue("ngModel",r.model))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),swe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}model=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-clean-cache"]],standalone:!0,features:[X,se],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Clean cache automatically"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.model,o)||(r.model=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),v()()()),2&i&&(C(5),ue("ngModel",r.model))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),cwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}value=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-omit-log-files"]],standalone:!0,features:[X,se],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Don't store log files"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(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. "),v()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),lwe=(()=>{class e extends D1{value=Nn.ignoreMultipleDevicesWarning;constructor(t){super(t)}ngOnInit(){this.readValue()}readValue(){this.config&&void 0!==this.config.ignoreMultipleDevicesWarning&&(this.value=this.config.ignoreMultipleDevicesWarning)}update(){this.updateConfig({ignoreMultipleDevicesWarning:this.value})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-ignore-multiple-devices-warning"]],standalone:!0,features:[X,se],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable snapshot and HKSV settings for multiple devices on one station."),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(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. "),v()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),uwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}model=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-enable-detailed-logging"]],standalone:!0,features:[X,se],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Debug Mode"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.model,o)||(r.model=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),v()()()),2&i&&(C(5),ue("ngModel",r.model))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),fwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}value=30;inputIsInvalid=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"CameraMaxLivestreamDuration")&&(this.value=this.config.CameraMaxLivestreamDuration)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({CameraMaxLivestreamDuration:this.value})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-livestream-duration-seconds"]],standalone:!0,features:[X,se],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Maximum Livestream Duration"),v(),m(4,"div",2)(5,"div",3)(6,"input",4),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v(),m(7,"div",5)(8,"span",6),y(9,"seconds"),v()()()()(),m(10,"small")(11,"i"),y(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),v()()()),2&i&&(C(6),ue("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[V1,D4,er,H1,v1],encapsulation:2})}return e})(),dwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}value=10;inputIsInvalid=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"pollingIntervalMinutes")&&(this.value=this.config.pollingIntervalMinutes)}update(){this.inputIsInvalid=!1,(!this.value||this.value<0)&&(this.inputIsInvalid=!0),this.inputIsInvalid||this.updateConfig({pollingIntervalMinutes:this.value})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-polling-interval-minutes"]],standalone:!0,features:[X,se],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3","pb-0"],[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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Polling Interval"),v(),m(4,"div",2)(5,"div",3)(6,"input",4),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v(),m(7,"div",5)(8,"span",6),y(9,"minutes"),v()()()()(),m(10,"small")(11,"i"),y(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),v()()()),2&i&&(C(6),ue("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[V1,D4,er,H1,v1],encapsulation:2})}return e})(),hwe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=oe({type:e,selectors:[["app-edit-credentials"]],standalone:!0,features:[se],decls:6,vars:0,consts:[[1,"settingsItem","row","p-3"],[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-secondary","col-12","col-sm-4"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span",2),y(3,"Change username, password and country"),v(),m(4,"a",3),y(5,"New Login"),v()()())},dependencies:[jt],encapsulation:2})}return e})(),pwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}model=!1;readValue(){Object.prototype.hasOwnProperty.call(this.config,"autoSyncStation")&&(this.model=this.config.autoSyncStation)}update(){this.updateConfig({autoSyncStation:this.model})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-auto-sync-station"]],standalone:!0,features:[X,se],decls:9,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Auto Sync Station status"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.model,o)||(r.model=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(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. "),v()()()),2&i&&(C(5),ue("ngModel",r.model))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),mwe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=oe({type:e,selectors:[["app-advanced-config-options"]],standalone:!0,features:[se],decls:29,vars:0,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"]],template:function(i,r){1&i&&(m(0,"a",0),y(1,"Back to Devices List"),v(),m(2,"div",1)(3,"div",2),y(4," Advanced Settings "),v(),m(5,"div",3),k(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-ignore-multiple-devices-warning")(15,"hr")(16,"app-auto-sync-station")(17,"hr")(18,"app-omit-log-files")(19,"hr")(20,"app-clean-cache")(21,"hr")(22,"app-unbridge-accessory")(23,"hr")(24,"app-guard-modes-mapping")(25,"hr")(26,"app-download-logs")(27,"hr")(28,"app-reset-plugin"),v()())},dependencies:[jt,hwe,dwe,fwe,uwe,lwe,cwe,swe,owe,$E,ewe,Gbe,pwe],encapsulation:2})}return e})();function gwe(e,n){if(1&e&&(m(0,"div"),y(1),v()),2&e){const t=R();C(),Rt(" ",t.presetDescription," ")}}let vwe=(()=>{class e extends D1{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 ee(function*(){const i=yield t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")&&Object.entries(i.videoConfig).forEach(([r,a])=>{t[r]=a}),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 ee(function*(){const i=yield t.getCameraConfig(t.device?.uniqueId||""),r=i&&Object.prototype.hasOwnProperty.call(i,"videoConfig")?i.videoConfig:{},a={};Object.prototype.hasOwnProperty.call(r,"audio")&&(a.audio=r.audio),t.debug&&(a.debug=t.debug),t.readRate&&(a.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(a.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(a.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(a.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(a.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(a.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(a.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(a.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(a.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(a.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(a.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(a.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(a.useSeparateProcesses=t.useSeparateProcesses),t.updateDeviceConfig({videoConfig:a},t.device),t.updatePreset()})()}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:99,vars:54,consts:[[1,"settingsItem","row","p-3"],[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&&(m(0,"div",0),y(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. "),k(2,"p"),y(3," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),k(4,"p"),m(5,"div",1)(6,"div",2)(7,"select",3),fe("ngModelChange",function(o){return he(r.preset,o)||(r.preset=o),o}),O("change",function(){return r.loadPreset()}),m(8,"option",4),y(9,"No Preset (default)"),v(),m(10,"option",4),y(11,"Copy"),v(),m(12,"option",4),y(13,"Performance"),v(),m(14,"option",4),y(15,"Custom"),v()()()(),j(16,gwe,2,1,"div",5),k(17,"p"),m(18,"div",6)(19,"div",7)(20,"input",8),fe("ngModelChange",function(o){return he(r.debug,o)||(r.debug=o),o}),O("change",function(){return r.update()}),v()(),m(21,"span",9),y(22,"ffmpeg debug"),v()(),m(23,"div",6)(24,"div",7)(25,"input",8),fe("ngModelChange",function(o){return he(r.useSeparateProcesses,o)||(r.useSeparateProcesses=o),o}),O("change",function(){return r.update()}),v()(),m(26,"span",9),y(27,"use separate processes for video and audio"),v()(),m(28,"div",6)(29,"div",7)(30,"input",8),fe("ngModelChange",function(o){return he(r.readRate,o)||(r.readRate=o),o}),O("change",function(){return r.update()}),v()(),m(31,"span",9),y(32,"readRate"),v()(),m(33,"div",6)(34,"div",7)(35,"input",10),O("change",function(){return r.vcodec=void 0===r.vcodec?"":void 0,r.update()}),v()(),m(36,"span",9),y(37,"vcodec"),v(),m(38,"input",11),fe("ngModelChange",function(o){return he(r.vcodec,o)||(r.vcodec=o),o}),O("change",function(){return r.update()}),v()(),m(39,"div",6)(40,"div",7)(41,"input",10),O("change",function(){return r.acodec=void 0===r.acodec?"":void 0,r.update()}),v()(),m(42,"span",9),y(43,"acodec"),v(),m(44,"input",12),fe("ngModelChange",function(o){return he(r.acodec,o)||(r.acodec=o),o}),O("change",function(){return r.update()}),v()(),m(45,"div",6)(46,"div",7)(47,"input",10),O("change",function(){return r.videoFilter=void 0===r.videoFilter?"":void 0,r.update()}),v()(),m(48,"span",9),y(49,"videoFilter"),v(),m(50,"input",13),fe("ngModelChange",function(o){return he(r.videoFilter,o)||(r.videoFilter=o),o}),O("change",function(){return r.update()}),v()(),m(51,"div",6)(52,"div",7)(53,"input",10),O("change",function(){return r.encoderOptions=void 0===r.encoderOptions?"":void 0,r.update()}),v()(),m(54,"span",9),y(55,"encoderOptions"),v(),m(56,"input",14),fe("ngModelChange",function(o){return he(r.encoderOptions,o)||(r.encoderOptions=o),o}),O("change",function(){return r.update()}),v()(),m(57,"div",6)(58,"div",7)(59,"input",10),O("change",function(){return r.probeSize=void 0===r.probeSize?0:void 0,r.update()}),v()(),m(60,"span",9),y(61,"probeSize"),v(),m(62,"input",15),fe("ngModelChange",function(o){return he(r.probeSize,o)||(r.probeSize=o),o}),O("change",function(){return r.update()}),v()(),m(63,"div",6)(64,"div",7)(65,"input",10),O("change",function(){return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,r.update()}),v()(),m(66,"span",9),y(67,"analyzeDuration"),v(),m(68,"input",15),fe("ngModelChange",function(o){return he(r.analyzeDuration,o)||(r.analyzeDuration=o),o}),O("change",function(){return r.update()}),v()(),m(69,"div",6)(70,"div",7)(71,"input",10),O("change",function(){return r.maxStreams=void 0===r.maxStreams?0:void 0,r.update()}),v()(),m(72,"span",9),y(73,"maxStreams"),v(),m(74,"input",15),fe("ngModelChange",function(o){return he(r.maxStreams,o)||(r.maxStreams=o),o}),O("change",function(){return r.update()}),v()(),m(75,"div",6)(76,"div",7)(77,"input",10),O("change",function(){return r.maxWidth=void 0===r.maxWidth?0:void 0,r.update()}),v()(),m(78,"span",9),y(79,"maxWidth"),v(),m(80,"input",15),fe("ngModelChange",function(o){return he(r.maxWidth,o)||(r.maxWidth=o),o}),O("change",function(){return r.update()}),v()(),m(81,"div",6)(82,"div",7)(83,"input",10),O("change",function(){return r.maxHeight=void 0===r.maxHeight?0:void 0,r.update()}),v()(),m(84,"span",9),y(85,"maxHeight"),v(),m(86,"input",15),fe("ngModelChange",function(o){return he(r.maxHeight,o)||(r.maxHeight=o),o}),O("change",function(){return r.update()}),v()(),m(87,"div",6)(88,"div",7)(89,"input",10),O("change",function(){return r.maxFPS=void 0===r.maxFPS?0:void 0,r.update()}),v()(),m(90,"span",9),y(91,"fps"),v(),m(92,"input",15),fe("ngModelChange",function(o){return he(r.maxFPS,o)||(r.maxFPS=o),o}),O("change",function(){return r.update()}),v()(),m(93,"div",6)(94,"div",7)(95,"input",10),O("change",function(){return r.maxBitrate=void 0===r.maxBitrate?0:void 0,r.update()}),v()(),m(96,"span",9),y(97,"bitrate"),v(),m(98,"input",15),fe("ngModelChange",function(o){return he(r.maxBitrate,o)||(r.maxBitrate=o),o}),O("change",function(){return r.update()}),v()()()),2&i&&(C(7),ue("ngModel",r.preset),C(),V("ngValue",0),C(2),V("ngValue",1),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngIf",r.presetDescription),C(4),ue("ngModel",r.debug),C(5),ue("ngModel",r.useSeparateProcesses),C(5),ue("ngModel",r.readRate),C(5),V("checked",void 0!==r.vcodec||null),C(3),ue("ngModel",r.vcodec),W("disabled",void 0===r.vcodec||null),C(3),V("checked",void 0!==r.acodec||null),C(3),ue("ngModel",r.acodec),W("disabled",void 0===r.acodec||null),C(3),V("checked",void 0!==r.videoFilter||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.videoFilter),W("disabled",void 0===r.videoFilter||"copy"===r.vcodec||null),C(3),V("checked",void 0!==r.encoderOptions||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.encoderOptions),W("disabled",void 0===r.encoderOptions||"copy"===r.vcodec||null),C(3),V("checked",void 0!==r.probeSize||null),C(3),ue("ngModel",r.probeSize),W("disabled",void 0===r.probeSize||null),C(3),V("checked",void 0!==r.analyzeDuration||null),C(3),ue("ngModel",r.analyzeDuration),W("disabled",void 0===r.analyzeDuration||null),C(3),V("checked",void 0!==r.maxStreams||null),C(3),ue("ngModel",r.maxStreams),W("disabled",void 0===r.maxStreams||null),C(3),V("checked",void 0!==r.maxWidth||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.maxWidth),W("disabled",void 0===r.maxWidth||"copy"===r.vcodec||null),C(3),V("checked",void 0!==r.maxHeight||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.maxHeight),W("disabled",void 0===r.maxHeight||"copy"===r.vcodec||null),C(3),V("checked",void 0!==r.maxFPS||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.maxFPS),W("disabled",void 0===r.maxFPS||"copy"===r.vcodec||null),C(3),V("checked",void 0!==r.maxBitrate||null),W("disabled","copy"===r.vcodec||null),C(),W("style","copy"===r.vcodec?"text-decoration: line-through; color: lightgray;":null,q4),C(2),ue("ngModel",r.maxBitrate),W("disabled",void 0===r.maxBitrate||"copy"===r.vcodec||null))},dependencies:[V1,u3,f3,D4,er,d2,Xn,H1,v1,Z2],encapsulation:2})}return e})(),_we=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=!1;readValue(){var t=this;return ee(function*(){const i=yield t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"forcerefreshsnap")&&(t.value=i.forcerefreshsnap)})()}update(){this.updateDeviceConfig({forcerefreshsnap:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-force-refreshsnap"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:11,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Force Refresh Snapshot (Deprecated)"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," When enabled, we will start stream for one frame and use as a snapshot (this can affect the battery life). If it's disabled, we will use the Eufy Cloud API one (which could be really old)."),k(9,"br"),y(10," This option is only used if you have disabled enhanced snapshot handling. "),v()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),Cwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=0;inputIsInvalid=!1;readValue(){var t=this;return ee(function*(){const i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:25,vars:3,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"change"],[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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Periodic Snapshot Refresh"),v(),m(4,"div",2)(5,"input",3),O("change",function(){return r.switchSetting()}),v()()(),m(6,"div",4)(7,"span"),y(8,"Refresh Interval"),v(),m(9,"div",5)(10,"div",6)(11,"input",7),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v(),m(12,"div",8)(13,"span",9),y(14,"minutes"),v()()()()(),m(15,"small")(16,"i"),y(17," 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."),k(18,"br"),y(19," Best used with 'Cloud Snapshots' handling method."),k(20,"br"),y(21," Every setting below 5 minutes will be discarded due to performance reasons."),k(22,"br"),m(23,"b"),y(24,"Don't use this with the 'Force Refresh Snapshots' method, since it will have negligible effects other than slowing down homebridge and decreasing possible battery life."),v()()()()),2&i&&(C(5),W("checked",r.value>0||null),C(6),ue("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[V1,D4,er,H1,v1],encapsulation:2})}return e})(),ywe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return ee(function*(){const i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Night-Vision Improvement for camera snapshots"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," Force night vision on dark snapshots to improve the image."),k(9,"br"),m(10,"b"),y(11,"The snapshot request will be delayed by half a second if you enable this setting."),v()()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})(),Mwe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;readValue(){var t=this;return ee(function*(){const i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:12,vars:1,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Immediate Notification on ring events"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(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."),k(9,"br"),m(10,"b"),y(11,"This option however delivers most likely an empty (black) snapshot on those events!"),v()()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})();var I9=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(I9||{}),A9=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}(A9||{});function bwe(e,n){1&e&&(m(0,"div"),y(1," You can enable this setting nevertheless in "),m(2,"a",9),y(3,"Plugin Settings"),v(),k(4,"p"),v())}function wwe(e,n){if(1&e&&(m(0,"div",8),y(1," There are other cameras connected through the same station as this device. One station can only ever stream from one camera at the same time. Therefore it is not recommened to use another snapshot method other than cloud snapshots."),k(2,"p"),j(3,bwe,5,0,"div",7),v()),2&e){const t=R();C(3),V("ngIf",!t.ignoreMultipleDevicesWarning)}}function Hwe(e,n){1&e&&(m(0,"div",8)(1,"b"),y(2,"Caution!"),v(),y(3," While Force Refresh Snapshots will deliver most up-to-date snapshots, this can have negative effects on HomeKit behaviour. For example starting a livestream might be delayed as a side effect by this option. See "),m(4,"a",10),y(5,"here"),v(),y(6," for more informtaion. "),v())}function Vwe(e,n){1&e&&(m(0,"div",8),y(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. "),v())}function zwe(e,n){1&e&&(m(0,"div",11),y(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. "),v())}function Dwe(e,n){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," The plugin will try to get the latest possible snapshot. If none is present the plugin will start a livestream to render one frame."),k(5,"br"),y(6," This process might take a few seconds and can slow down your homebridge instance for this duration. If you encounter problems with this method please try another. "),k(7,"p")(8,"fa-icon",12),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",12),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",13),y(15," Performance"),k(16,"br")(17,"fa-icon",13),y(18," Battery life"),k(19,"br"),v()()),2&e){const t=R();C(8),V("icon",t.plusIcon),C(3),V("icon",t.plusIcon),C(3),V("icon",t.minusIcon),C(3),V("icon",t.minusIcon)}}function Swe(e,n){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),k(5,"br"),y(6," After one second the snapshot will be delivered - if necessary by using an older snapshot. For events the plugin will wait on a new snapshot. "),k(7,"p")(8,"fa-icon",12),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",14),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",12),y(15," Performance"),k(16,"br")(17,"fa-icon",13),y(18," Battery life"),k(19,"br"),v()()),2&e){const t=R();C(8),V("icon",t.plusIcon),C(3),V("icon",t.mediumIcon),C(3),V("icon",t.plusIcon),C(3),V("icon",t.minusIcon)}}function Nwe(e,n){if(1&e&&(m(0,"small")(1,"i")(2,"b"),y(3,"Description:"),v(),y(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),k(5,"br"),y(6," If an event, like motion or doorbell ring oocurs, the plugin will try to wait for a cloud snapshot to be provided. But the periodic snapshots in homekit will most likely be outdated (e.g. up to a few hours old). "),k(7,"p")(8,"fa-icon",12),y(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",13),y(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",12),y(15," Performance"),k(16,"br")(17,"fa-icon",12),y(18," Battery life"),k(19,"br"),v()()),2&e){const t=R();C(8),V("icon",t.plusIcon),C(3),V("icon",t.minusIcon),C(3),V("icon",t.plusIcon),C(3),V("icon",t.plusIcon)}}let Lwe=(()=>{class e extends D1{device;constructor(t){super(t)}ngOnInit(){this.readValue()}plusIcon=nE;minusIcon=DV;mediumIcon=KS;value=3;chargingStatus=A9.PLUGGED;standalone=!1;ignoreMultipleDevicesWarning=Nn.ignoreMultipleDevicesWarning;readValue(){var t=this;return ee(function*(){const i=t.device?.uniqueId||"",r=yield t.getCameraConfig(i);r&&Object.prototype.hasOwnProperty.call(r,"ignoreMultipleDevicesWarning")&&(t.ignoreMultipleDevicesWarning=r.ignoreMultipleDevicesWarning),t.device&&(t.chargingStatus=t.device.chargingStatus,t.standalone=t.device.standalone,r&&(Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?t.value=r.snapshotHandlingMethod:Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap?1:3)),t.ignoreMultipleDevicesWarning||(t.value=3,t.update()))})()}update(){this.updateDeviceConfig({snapshotHandlingMethod:this.value},this.device)}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:19,vars:12,consts:[[1,"settingsItem","row","p-3"],[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"],["class","alert alert-warning","role","alert",4,"ngIf"],["class","alert alert-secondary","role","alert",4,"ngIf"],[4,"ngIf"],["role","alert",1,"alert","alert-warning"],["routerLink","/advancedConfig"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings#streams-take-a-long-time-to-start","target","_blank","rel","noopener noreferrer"],["role","alert",1,"alert","alert-secondary"],["size","xs",1,"m-1",2,"color","#7FFF00",3,"icon"],["size","xs",1,"m-1",2,"color","#B22222",3,"icon"],["size","xs",1,"m-1",2,"color","#FF8C00",3,"icon"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Snapshot Handling Method"),v(),m(4,"div",2)(5,"select",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),m(6,"option",4),y(7,"Force Refresh Snapshots"),v(),m(8,"option",4),y(9,"Balanced"),v(),m(10,"option",4),y(11,"Cloud Snapshots"),v()()()(),j(12,wwe,4,1,"div",5)(13,Hwe,7,0,"div",5)(14,Vwe,2,0,"div",5)(15,zwe,2,0,"div",6)(16,Dwe,20,4,"small",7)(17,Swe,20,4,"small",7)(18,Nwe,20,4,"small",7),v()),2&i&&(C(5),ue("ngModel",r.value),W("disabled",!r.standalone&&!r.ignoreMultipleDevicesWarning||null),C(),V("ngValue",1),C(2),V("ngValue",2),C(2),V("ngValue",3),C(2),V("ngIf",!r.standalone),C(),V("ngIf",1===r.value),C(),V("ngIf",2===r.chargingStatus&&1===r.value),C(),V("ngIf",4===r.chargingStatus&&1===r.value),C(),V("ngIf",1===r.value),C(),V("ngIf",2===r.value),C(),V("ngIf",3===r.value))},dependencies:[V1,u3,f3,Xn,H1,v1,Z2,jt,$b],encapsulation:2})}return e})();var FT={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]};function Pze(e,n){1&e&&(m(0,"div"),y(1," You can enable this setting nevertheless in "),m(2,"a",8),y(3,"Plugin Settings"),v(),k(4,"p"),v())}function Fze(e,n){if(1&e&&(m(0,"div",6),y(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."),k(2,"p"),j(3,Pze,5,0,"div",7),v()),2&e){const t=R();C(3),V("ngIf",!t.ignoreMultipleDevicesWarning)}}function Bze(e,n){1&e&&(m(0,"div",6),y(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. "),v())}function Uze(e,n){1&e&&(m(0,"div",9),y(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. "),v())}let jze=(()=>{class e extends D1{faQuestionCircle=FT;constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=false;chargingStatus=A9.PLUGGED;camerasOnSameStation=[];standalone=!0;ignoreMultipleDevicesWarning=Nn.ignoreMultipleDevicesWarning;readValue(){var t=this;return ee(function*(){const i=yield t.getCameraConfig(t.device?.uniqueId||"");i&&Object.prototype.hasOwnProperty.call(i,"hsv")&&(t.value=i.hsv),i&&Object.prototype.hasOwnProperty.call(i,"hsvConfig")&&Object.entries(i.hsvConfig).forEach(([r,a])=>{t[r]=a});try{t.device&&(t.chargingStatus=t.device.chargingStatus,t.standalone=t.device.standalone,Object.prototype.hasOwnProperty.call(t.config,"ignoreMultipleDevicesWarning")&&(t.ignoreMultipleDevicesWarning=t.config.ignoreMultipleDevicesWarning),t.camerasOnSameStation.length>1&&!t.ignoreMultipleDevicesWarning&&(t.value=!1,t.update()))}catch(r){console.log(r)}})()}update(){this.updateConfig({hsv:this.value})}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-enable-hsv"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:20,vars:5,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use HomeKit Secure Video"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),j(6,Fze,4,1,"div",4)(7,Bze,2,0,"div",4)(8,Uze,2,0,"div",5),m(9,"small")(10,"i"),y(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. "),k(12,"p"),m(13,"ul")(14,"li"),y(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. "),v(),m(16,"li"),y(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."),v(),m(18,"li"),y(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."),v()()()()()),2&i&&(C(5),ue("ngModel",r.value),W("disabled",!r.standalone&&!r.ignoreMultipleDevicesWarning||null),C(),V("ngIf",!r.standalone),C(),V("ngIf",2===r.chargingStatus&&r.value),C(),V("ngIf",4===r.chargingStatus&&r.value))},dependencies:[V1,d2,H1,v1,Z2,jt],encapsulation:2})}return e})();function Gze(e,n){if(1&e){const t=w1();m(0,"div",3)(1,"span"),y(2),v(),m(3,"div",4)(4,"input",5),fe("ngModelChange",function(r){const a=be(t).$implicit;return he(a.value,r)||(a.value=r),we(r)}),O("change",function(){return be(t),we(R().update())}),v()()()}if(2&e){const t=n.$implicit;C(2),Rt("Display HomeKit switch to turn ",t.description," on/off"),C(2),ue("ngModel",t.value),V("id","flexSwitchCheck"+t.name)}}let $ze=(()=>{class e extends D1{device;buttonConfigs=[{name:"Enable",description:"camera",value:true,propertyName:"DeviceEnabled"},{name:"Motion",description:"detection",value:true,propertyName:"DeviceMotionDetection"},{name:"Light",description:"light",value:true,propertyName:"DeviceLight"},{name:"IndoorChime",description:"indoor chime",value:false,propertyName:"DeviceChimeIndoor"}];constructor(t){super(t)}ngOnInit(){this.readValue()}readValue(){var t=this;return ee(function*(){const i=t.device?.uniqueId??"",r=yield t.getCameraConfig(i);t.buttonConfigs=t.buttonConfigs.filter(a=>!(!t.device||!t.device[a.propertyName]||(a.name in r&&(a.value=r[a.name]??a.value),0)))})()}update(){const t={};this.buttonConfigs.forEach(i=>{t[i.name.toLowerCase()]=i.value}),this.updateDeviceConfig(t,this.device)}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-camera-buttons"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:8,vars:1,consts:[[1,"settingsItem","row","p-3"],["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"],[1,"form-check","form-switch"],["type","checkbox","role","switch",1,"form-check-input",3,"ngModelChange","change","ngModel","id"]],template:function(i,r){1&i&&(m(0,"div",0),j(1,Gze,5,3,"div",1),m(2,"small")(3,"i"),y(4," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),m(5,"a",2),y(6,"here"),v(),y(7," for more details. "),v()()()),2&i&&(C(),V("ngForOf",r.buttonConfigs))},dependencies:[Kc,V1,d2,H1,v1],encapsulation:2})}return e})();function Wze(e,n){1&e&&(m(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let qze=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;rtspIsEnabled=!1;readValue(){var t=this;return ee(function*(){const i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-talkback"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:13,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Talkback (Two way communication)"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),j(6,Wze,2,0,"div",4),m(7,"small")(8,"i"),y(9," Enables you to talk with someone infront of the camera while streaming. "),k(10,"p"),y(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."),k(12,"br"),v()()()),2&i&&(C(5),ue("ngModel",r.value),C(),V("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[V1,d2,H1,v1,Z2],encapsulation:2})}return e})(),Yze=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value=!1;samplerate=0;readValue(){var t=this;return ee(function*(){const i=yield 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 ee(function*(){if(!t.device)return;let i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-enable-audio"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:25,vars:7,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Enable Audio"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),m(6,"small")(7,"i"),y(8," Try to enable audio streaming for this device."),k(9,"br"),y(10," If you encounter problems try to disable this setting. "),v()(),k(11,"p"),m(12,"div",4)(13,"span"),y(14,"Force Audio Sample Rate"),v(),m(15,"div",5)(16,"select",6),fe("ngModelChange",function(o){return he(r.samplerate,o)||(r.samplerate=o),o}),O("change",function(){return r.update()}),m(17,"option",7),y(18,"Default Sample Rate"),v(),m(19,"option",7),y(20,"8 kHz"),v(),m(21,"option",7),y(22,"16 kHz"),v(),m(23,"option",7),y(24,"24 kHz"),v()()()()()),2&i&&(C(5),ue("ngModel",r.value),C(11),ue("ngModel",r.samplerate),W("disabled",!r.value||null),C(),V("ngValue",0),C(2),V("ngValue",8),C(2),V("ngValue",16),C(2),V("ngValue",24))},dependencies:[V1,u3,f3,d2,Xn,H1,v1],encapsulation:2})}return e})();function Kze(e,n){1&e&&(m(0,"div",5),y(1," Talkback will not work while 'RTSP Streaming' is enabled! "),v())}let Qze=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}device;value=!1;talkbackIsEnabled=!1;readValue(){var t=this;return ee(function*(){const i=yield 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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-rtsp-streaming"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:11,vars:2,consts:[[1,"settingsItem","row","p-3"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Use RTSP streaming"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()(),j(6,Kze,2,0,"div",4),m(7,"small")(8,"i"),y(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!"),k(10,"br"),v()()()),2&i&&(C(5),ue("ngModel",r.value),C(),V("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[V1,d2,H1,v1,Z2],encapsulation:2})}return e})();function Zze(e,n){1&e&&(m(0,"small")(1,"i"),y(2," This option is disabled since doorbells are handled always as cameras. "),v()())}function Jze(e,n){1&e&&(m(0,"small")(1,"i"),y(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),v()())}let Xze=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}device;value="true";disabled=!1;readValue(){var t=this;return ee(function*(){t.device&&t.device.isDoorbell&&(t.value="true",t.disabled=!0,t.update());const i=yield 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)}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-enable-camera"]],inputs:{device:"device"},standalone:!0,features:[X,se],decls:12,vars:4,consts:[[1,"settingsItem","row","p-3"],[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&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Operation Mode"),v(),m(4,"div",2)(5,"select",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),m(6,"option",4),y(7,"Motion Sensor"),v(),m(8,"option",5),y(9,"Camera"),v()()()(),j(10,Zze,3,0,"small",6)(11,Jze,3,0,"small",6),v()),2&i&&(C(5),ue("ngModel",r.value),W("disabled",!!r.disabled||null),C(5),V("ngIf",r.disabled),C(),V("ngIf",!r.disabled))},dependencies:[V1,u3,f3,Xn,H1,v1,Z2],encapsulation:2})}return e})(),_I=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}accessory;station;ignored=new Z;value=!1;readValue(){var t=this;return ee(function*(){if(t.config=yield t.pluginService.getConfig(),t.accessory){const i=t.station?"ignoreStations":"ignoreDevices";Array.isArray(t.config[i])&&(t.value=void 0!==t.config[i].find(r=>r===t.accessory.uniqueId))}})()}update(){var t=this;return ee(function*(){if(!t.accessory)return;t.ignored.emit(t.value);const i=t.station?"ignoreStations":"ignoreDevices";t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[i])&&!t.config[i].find(r=>r===t.accessory.uniqueId)?t.config[i].push(t.accessory.uniqueId):Array.isArray(t.config[i])||(t.config[i]=[t.accessory.uniqueId]):Array.isArray(t.config[i])&&void 0!==t.config[i].find(r=>r===t.accessory.uniqueId)&&(t.config[i]=t.config[i].filter(r=>r!==t.accessory.uniqueId)),t.pluginService.updateConfig(t.config)})()}static \u0275fac=function(i){return new(i||e)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory",station:"station"},outputs:{ignored:"ignored"},standalone:!0,features:[X,se],decls:6,vars:1,consts:[[1,"settingsItem","row","p-3","pb-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","flexSwitchCheckDefault",1,"form-check-input",3,"ngModelChange","change","ngModel"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"span"),y(3,"Ignore"),v(),m(4,"div",2)(5,"input",3),fe("ngModelChange",function(o){return he(r.value,o)||(r.value=o),o}),O("change",function(){return r.update()}),v()()()()),2&i&&(C(5),ue("ngModel",r.value))},dependencies:[V1,d2,H1,v1],encapsulation:2})}return e})();function eDe(e,n){1&e&&k(0,"hr")}function tDe(e,n){1&e&&k(0,"app-rtsp-streaming",11),2&e&&V("device",R(4).device)}function nDe(e,n){1&e&&k(0,"hr")}function iDe(e,n){1&e&&k(0,"app-talkback",11),2&e&&V("device",R(4).device)}function rDe(e,n){if(1&e&&(m(0,"div"),k(1,"app-enable-camera",11),j(2,eDe,1,0,"hr",1)(3,tDe,1,1,"app-rtsp-streaming",12),k(4,"hr")(5,"app-enable-audio",11),j(6,nDe,1,0,"hr",1)(7,iDe,1,1,"app-talkback",12),v()),2&e){const t=R(3);C(),V("device",t.device),C(),V("ngIf",t.supportsRTSP),C(),V("ngIf",t.supportsRTSP),C(2),V("device",t.device),C(),V("ngIf",t.supportsTalkback),C(),V("ngIf",t.supportsTalkback)}}function aDe(e,n){if(1&e&&k(0,"app-camera-buttons",11)(1,"hr")(2,"app-enable-hsv",11),2&e){const t=R(4);V("device",t.device),C(2),V("device",t.device)}}function oDe(e,n){1&e&&(m(0,"div",13)(1,"h2",6)(2,"button",7),y(3,"HomeKit Behaviour"),v()(),m(4,"div",8)(5,"div",9),j(6,aDe,3,2,"ng-template"),v()()())}function sDe(e,n){1&e&&k(0,"hr")}function cDe(e,n){1&e&&k(0,"app-immediate-notification-on-ring",11),2&e&&V("device",R(5).device)}function lDe(e,n){if(1&e&&(m(0,"div"),k(1,"app-force-refreshsnap",11),v()),2&e){const t=R(5);C(),V("device",t.device)}}function uDe(e,n){if(1&e&&(k(0,"app-snapshot-handling-method",11),j(1,sDe,1,0,"hr",1)(2,cDe,1,1,"app-immediate-notification-on-ring",12),k(3,"hr")(4,"app-delay-camera-snapshots",11)(5,"hr")(6,"app-periodic-snapshot-refresh",11),j(7,lDe,2,1,"div",1)),2&e){const t=R(4);V("device",t.device),C(),V("ngIf",t.isDoorbell),C(),V("ngIf",t.isDoorbell),C(2),V("device",t.device),C(2),V("device",t.device),C(),V("ngIf",!t.showEnhancedSnapshotBehaviour)}}function fDe(e,n){1&e&&(m(0,"div",13)(1,"h2",6)(2,"button",7),y(3,"Snapshot Behaviour"),v()(),m(4,"div",8)(5,"div",9),j(6,uDe,8,6,"ng-template"),v()()())}function dDe(e,n){1&e&&k(0,"app-advanced-videoconfig",11),2&e&&V("device",R(4).device)}function hDe(e,n){1&e&&(m(0,"div",13)(1,"h2",6)(2,"button",7),y(3,"Advanced Video Config"),v()(),m(4,"div",8)(5,"div",9),j(6,dDe,1,1,"ng-template"),v()()())}function pDe(e,n){if(1&e&&(m(0,"div",4)(1,"div",5)(2,"h2",6)(3,"button",7),y(4,"Device Settings"),v()(),m(5,"div",8)(6,"div",9),j(7,rDe,8,6,"ng-template"),v()()(),j(8,oDe,7,0,"div",10)(9,fDe,7,0,"div",10)(10,hDe,7,0,"div",10),v()),2&e){const t=R(2);V("closeOthers",!0),C(),V("collapsed",!1),C(7),V("ngIf",t.isCamera),C(),V("ngIf",t.isCamera),C(),V("ngIf",t.isCamera)}}function mDe(e,n){if(1&e){const t=w1();m(0,"div")(1,"p")(2,"i"),y(3),v()(),m(4,"app-ignore-accessory",2),O("ignored",function(r){return be(t),we(R().ignoredChanged(r))}),v(),k(5,"p"),j(6,pDe,11,5,"div",3),v()}if(2&e){const t=R();C(3),L5("",t.device.displayName," (",t.device.uniqueId,") (",t.device.typename,")"),C(),V("accessory",t.device)("station",!1),C(2),V("ngIf",!t.device.ignored&&t.isCamera)}}let gDe=(()=>{class e extends D1{route;device;showEnhancedSnapshotBehaviour=!0;isDoorbell=!1;isCamera=!1;supportsRTSP=!1;supportsTalkback=!1;constructor(t,i){super(t),this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.device=this.pluginService.getDevice(t),this.device&&(this.isCamera=this.device.isCamera,this.isDoorbell=this.device.isDoorbell,this.supportsRTSP=this.device.supportsRTSP,this.supportsTalkback=this.device.supportsTalkback,this.supportsRTSP||this.updateDeviceConfig({rtsp:!1},this.device),this.supportsTalkback||this.updateDeviceConfig({talkback:!1},this.device))}ignoredChanged(t){this.device.ignored=t}updateSnapshotView(t){this.showEnhancedSnapshotBehaviour=t}static \u0275fac=function(i){return new(i||e)(E(e1),E(qn))};static \u0275cmp=oe({type:e,selectors:[["app-camera-config-options"]],standalone:!0,features:[X,se],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[4,"ngIf"],[3,"ignored","accessory","station"],["ngbAccordion","",3,"closeOthers",4,"ngIf"],["ngbAccordion","",3,"closeOthers"],["ngbAccordionItem","",3,"collapsed"],["ngbAccordionHeader",""],["ngbAccordionButton",""],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","",4,"ngIf"],[3,"device"],[3,"device",4,"ngIf"],["ngbAccordionItem",""]],template:function(i,r){1&i&&(m(0,"a",0),y(1,"Back to Devices List"),v(),j(2,mDe,7,6,"div",1)),2&i&&(C(2),V("ngIf",r.device))},dependencies:[jt,Z2,_I,Xze,Qze,Yze,qze,$ze,jze,Lwe,Mwe,ywe,Cwe,_we,vwe,K6,bf,bo,t4,wf,Mf,Y6],encapsulation:2})}return e})();const vDe={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 _De=(()=>{class e{pluginService;constructor(t){this.pluginService=t}getCredentials(){var t=this;return ee(function*(){try{const i=yield t.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US",deviceName:i.deviceName}):Promise.reject("no full credentials in config")}catch{return Promise.reject("no config")}})()}login(t){return ee(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 ee(function*(){let r={};try{r=yield i.pluginService.getConfig()}catch(a){console.log("Could not get credentials from config: "+a)}r.username=t.username,r.password=t.password,r.country=t.country,r.deviceName=t.deviceName,yield i.pluginService.updateConfig(r,!0)})()}static \u0275fac=function(i){return new(i||e)(te(e1))};static \u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function CDe(e,n){1&e&&(y(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),k(1,"p"),m(2,"i"),y(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."),v())}function yDe(e,n){if(1&e){const t=w1();m(0,"p",11)(1,"ngb-alert",12),O("closed",function(){return be(t),we(R().resetLoginFailed())}),zr(),m(2,"svg",13),k(3,"use",14),v(),Dr(),m(4,"strong"),y(5,"Login was not successful!"),v()()()}2&e&&(C(),V("dismissible",!0))}function MDe(e,n){if(1&e&&(m(0,"div",32),zr(),m(1,"svg",33),k(2,"use",34),v(),Dr(),m(3,"div"),y(4," Please make sure to restart plugin after you're done. "),m(5,"u",35),y(6," Tell me why... "),v()()()),2&e){R(2);const t=_2(6);C(5),V("autoClose","outside")("ngbPopover",t)}}function bDe(e,n){1&e&&(y(0,"You can leave this field blank."),k(1,"p"),y(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),m(3,"a",36),y(4,"this disussion"),v(),y(5," to learn more."))}function wDe(e,n){if(1&e&&(m(0,"option"),y(1),v()),2&e){const t=n.$implicit,i=R(2);W("value",t.short)("selected",i.credentials.country===t.short||null),C(),Rt("",t.long," ")}}function HDe(e,n){1&e&&k(0,"span",37)}function VDe(e,n){1&e&&(m(0,"span"),y(1,"..."),v())}function zDe(e,n){if(1&e){const t=w1();m(0,"div"),j(1,MDe,7,2,"div",15),m(2,"div",16)(3,"input",17),fe("ngModelChange",function(r){be(t);const a=R();return he(a.credentials.username,r)||(a.credentials.username=r),we(r)}),v(),m(4,"label",18),y(5,"Email address"),v()(),k(6,"p"),m(7,"div",16)(8,"input",19),fe("ngModelChange",function(r){be(t);const a=R();return he(a.credentials.password,r)||(a.credentials.password=r),we(r)}),v(),m(9,"label",20),y(10,"Password"),v()(),k(11,"p"),m(12,"div",16),j(13,bDe,6,0,"ng-template",null,1,Q2),m(15,"input",21),fe("ngModelChange",function(r){be(t);const a=R();return he(a.credentials.deviceName,r)||(a.credentials.deviceName=r),we(r)}),v(),m(16,"label",22),y(17,"Device Name"),v()(),m(18,"div",23)(19,"div",24)(20,"select",25),fe("ngModelChange",function(r){be(t);const a=R();return he(a.credentials.country,r)||(a.credentials.country=r),we(r)}),j(21,wDe,2,3,"option",26),v(),m(22,"small")(23,"i"),y(24," Make sure to use the same country that you use to login with the eufy app. "),v()()(),k(25,"span",27),m(26,"div",28)(27,"button",29),O("click",function(){return be(t),we(R().login())}),j(28,HDe,1,0,"span",30),y(29," Login "),j(30,VDe,2,0,"span",10),v(),m(31,"button",31),O("click",function(){return be(t),we(R().cancelLogin())}),y(32," Cancel "),v()()()()}if(2&e){const t=_2(14),i=R();C(),V("ngIf",!i.firstLoginAssumed),C(2),ue("ngModel",i.credentials.username),W("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),ue("ngModel",i.credentials.password),W("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(7),ue("ngModel",i.credentials.deviceName),V("ngbTooltip",t)("closeDelay",2500),W("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),ue("ngModel",i.credentials.country),W("disabled",!!i.loginInProgress||null),C(),V("ngForOf",i.countries),C(6),W("disabled",!!i.loginInProgress||null),C(),V("ngIf",i.loginInProgress),C(2),V("ngIf",i.loginInProgress),C(),W("disabled",!!i.loginInProgress||null)}}function DDe(e,n){1&e&&k(0,"span",37)}function SDe(e,n){1&e&&(m(0,"span"),y(1,"..."),v())}function NDe(e,n){if(1&e){const t=w1();m(0,"div")(1,"div",38),y(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),v(),m(3,"div",7)(4,"div",39)(5,"input",40),fe("ngModelChange",function(r){be(t);const a=R();return he(a.otp,r)||(a.otp=r),we(r)}),v(),m(6,"label",41),y(7,"2FA Code"),v()()(),m(8,"div",42)(9,"div",43)(10,"button",44),O("click",function(){return be(t),we(R().login())}),j(11,DDe,1,0,"span",30),y(12," Verify "),j(13,SDe,2,0,"span",10),v()()(),m(14,"div",7)(15,"div",43)(16,"button",31),O("click",function(){return be(t),we(R().cancelLogin())}),y(17," Cancel "),v()()()()}if(2&e){const t=R();C(5),ue("ngModel",t.otp),W("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),C(5),W("disabled",!!t.loginInProgress||null),C(),V("ngIf",t.loginInProgress),C(2),V("ngIf",t.loginInProgress),C(3),W("disabled",!!t.loginInProgress||null)}}function LDe(e,n){1&e&&k(0,"span",37)}function xDe(e,n){1&e&&(m(0,"span"),y(1,"..."),v())}function EDe(e,n){if(1&e){const t=w1();m(0,"div")(1,"div",38),y(2,"Please enter the captcha below."),v(),m(3,"div",42),k(4,"img",45),v(),m(5,"div",7)(6,"div",39)(7,"input",40),fe("ngModelChange",function(r){be(t);const a=R();return he(a.captcha,r)||(a.captcha=r),we(r)}),v(),m(8,"label",41),y(9,"Captcha"),v()()(),m(10,"div",42)(11,"div",43)(12,"button",44),O("click",function(){return be(t),we(R().login())}),j(13,LDe,1,0,"span",30),y(14," Verify "),j(15,xDe,2,0,"span",10),v()()(),m(16,"div",7)(17,"div",43)(18,"button",31),O("click",function(){return be(t),we(R().cancelLogin())}),y(19," Cancel "),v()()()()}if(2&e){const t=R();C(4),V("src",t.captchaImageData,Pr),C(3),ue("ngModel",t.captcha),W("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),C(5),W("disabled",!!t.loginInProgress||null),C(),V("ngIf",t.loginInProgress),C(2),V("ngIf",t.loginInProgress),C(3),W("disabled",!!t.loginInProgress||null)}}var St=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(St||{});let TDe=(()=>{class e{loginService;routerService;countries=[];credentials={username:"",password:"",country:"US",deviceName:""};otp="";captcha="";captchaImageData="";captchaId="";loginInProgress=!1;loginFailed=!1;loginStep=St.LOGIN;firstLoginAssumed=!1;emailIsValid=!0;passwordIsValid=!0;otpIsValid=!0;captchaIsValid=!0;constructor(t,i){this.loginService=t,this.routerService=i}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(t=>this.credentials=t).catch(t=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+t)})}fillCountryArray(){Object.entries(vDe).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===St.LOGIN&&this.loginWithCredentials(),this.loginStep===St.TFA&&this.loginWithTFA(),this.loginStep===St.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return ee(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 ee(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 ee(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===I9.TFA)return void(this.loginStep=St.TFA);if(t&&t.failReason&&t.failReason===I9.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=St.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=St.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===St.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===St.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===St.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===St.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)(E(_De),E(R2))};static \u0275cmp=oe({type:e,selectors:[["app-login"]],standalone:!0,features:[se],decls:13,vars:4,consts:[["popInfo",""],["deviceNameExplanation",""],["xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","info-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"],["id","exclamation-triangle-fill","fill","currentColor","viewBox","0 0 16 16"],["d","M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"],[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[4,"ngIf"],[1,"col-11","col-sm-7"],["type","danger",3,"closed","dismissible"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"],["class","alert alert-warning d-flex align-items-center","role","alert",4,"ngIf"],[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-secondary","col-12",3,"click"],["role","alert",1,"alert","alert-warning","d-flex","align-items-center"],["width","24","height","24","role","img","aria-label","Warning:",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#info-fill"],["role","button","popoverTitle","Please restart after login",3,"autoClose","ngbPopover"],["href","https://github.com/homebridge-eufy-security/plugin/issues/201","target","_blank","rel","noopener noreferrer",2,"color","white"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"row","mb-3"],[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&&(zr(),m(0,"svg",2)(1,"symbol",3),k(2,"path",4),v(),m(3,"symbol",5),k(4,"path",6),v()(),j(5,CDe,4,0,"ng-template",null,0,Q2),Dr(),m(7,"div",7),j(8,yDe,6,1,"p",8),m(9,"div",9),j(10,zDe,33,19,"div",10)(11,NDe,18,7,"div",10)(12,EDe,20,8,"div",10),v()()),2&i&&(C(8),V("ngIf",r.loginFailed),C(2),V("ngIf",1===r.loginStep),C(),V("ngIf",2===r.loginStep),C(),V("ngIf",3===r.loginStep))},dependencies:[Z2,Hf,Yne,V1,u3,f3,D4,Xn,H1,lf,v1,t4e,Kc],encapsulation:2})}return e})(),IDe=(()=>{class e extends D1{constructor(t){super(t)}ngOnInit(){this.readValue()}station;value=[];readValue(){var t=this;return ee(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)(E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{station:"station"},standalone:!0,features:[X,se],decls:36,vars:4,consts:[[1,"settingsItem","row","p-3"],[1,"mb-4"],[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","flexSwitchCheckDefault",1,"form-check-input",3,"change"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"span",1),y(2,"Manual Alarm Trigger Modes"),v(),m(3,"div",2)(4,"span"),y(5,"HomeKit Home"),v(),m(6,"div",3)(7,"input",4),O("change",function(){return r.toggle(0),r.update()}),v()()(),m(8,"div",2)(9,"span"),y(10,"HomeKit Away"),v(),m(11,"div",3)(12,"input",4),O("change",function(){return r.toggle(1),r.update()}),v()()(),m(13,"div",2)(14,"span"),y(15,"HomeKit Night"),v(),m(16,"div",3)(17,"input",4),O("change",function(){return r.toggle(2),r.update()}),v()()(),m(18,"div",2)(19,"span"),y(20,"HomeKit Off/Disarmed"),v(),m(21,"div",3)(22,"input",4),O("change",function(){return r.toggle(3),r.update()}),v()()(),m(23,"small")(24,"i"),y(25," 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."),k(26,"p"),y(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),k(28,"p"),y(29," Please be aware that this setting can only be set on a per station basis and not per automation."),k(30,"br"),y(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),k(32,"p"),y(33," The manual alarm respects the delay alarm on leave settings from the eufy app. Triggered automations while the delay is effective will be ignored."),k(34,"br"),y(35," The native alarm delay setting is currently not supported. "),v()()()),2&i&&(C(7),W("checked",-1!==r.value.indexOf(0)||null),C(5),W("checked",-1!==r.value.indexOf(1)||null),C(5),W("checked",-1!==r.value.indexOf(2)||null),C(5),W("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2})}return e})();function ADe(e,n){if(1&e&&(m(0,"div",3)(1,"div",4)(2,"b"),y(3,"Station Settings"),v(),y(4," for "),m(5,"i"),y(6),v()(),m(7,"div",5),k(8,"app-guard-modes-mapping",6)(9,"hr")(10,"app-manual-alarm-modes",6),v()()),2&e){const t=R();C(6),Cc("",t.station.displayName," (",t.station.uniqueId,")"),C(2),V("station",t.station),C(2),V("station",t.station)}}function ODe(e,n){if(1&e){const t=w1();m(0,"p",7)(1,"ngb-alert",8),O("closed",function(){return be(t),we(R().failed=!1)}),zr(),m(2,"svg",9),k(3,"use",10),v(),Dr(),m(4,"strong"),y(5,"Reset was not successful!"),v()()()}2&e&&(C(),V("dismissible",!0))}const RDe=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:jbe},{path:"advancedConfig",component:mwe},{path:"cameraConfig/:uniqueId",component:gDe},{path:"stationConfig/:uniqueId",component:(()=>{class e{pluginService;route;station;constructor(t,i){this.pluginService=t,this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.station=this.pluginService.getStation(t)}ignoredChanged(t){this.station.ignored=t}static \u0275fac=function(i){return new(i||e)(E(e1),E(qn))};static \u0275cmp=oe({type:e,selectors:[["app-station-config-options"]],standalone:!0,features:[se],decls:5,vars:3,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],[3,"ignored","accessory","station"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"station"]],template:function(i,r){1&i&&(m(0,"a",0),y(1,"Back to Devices List"),v(),m(2,"app-ignore-accessory",1),O("ignored",function(o){return r.ignoredChanged(o)}),v(),k(3,"p"),j(4,ADe,11,4,"div",2)),2&i&&(C(2),V("accessory",r.station)("station",!0),C(2),V("ngIf",r.station&&!r.station.ignored))},dependencies:[jt,Z2,_I,$E,IDe],encapsulation:2})}return e})()},{path:"login",component:TDe},{path:"reset",component:(()=>{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 ee(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch{t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}static \u0275fac=function(i){return new(i||e)(E(R2),E(e1))};static \u0275cmp=oe({type:e,selectors:[["app-reset-confirmation"]],standalone:!0,features:[se],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-secondary","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"],["width","24","height","24","role","img","aria-label","Login Error",1,"bi","flex-shrink-0","me-2"],[0,"xlink","href","#exclamation-triangle-fill"]],template:function(i,r){1&i&&(m(0,"div",0),j(1,ODe,6,1,"p",1),m(2,"div",2)(3,"h3",3),y(4,"Are you sure that you want to erase everything?"),v(),m(5,"div",4)(6,"button",5),O("click",function(){return r.cancel()}),y(7,"No"),v(),m(8,"button",6),O("click",function(){return r.resetEverything()}),y(9,"Do it!"),v()()()()),2&i&&(C(),V("ngIf",r.failed),C(5),W("disabled",!!r.disabled||null),C(2),W("disabled",!!r.disabled||null))},dependencies:[Z2,Hf],encapsulation:2})}return e})()},{path:"**",redirectTo:"/accessories"}];(function sK(e,n){return w$({rootComponent:e,...Fy(n)})})(PZ,{providers:[Dd(hK,V1,r4e,(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Ze({type:e});static \u0275inj=Ye({imports:[$M.forRoot(RDe,{scrollPositionRestoration:"enabled"}),$M]})}return e})(),xX),{provide:M4,useClass:ey}]}).catch(e=>console.error(e))},981:(z3,et)=>{"use strict";et.byteLength=function Be(re){var Ve=Ee(re),E1=Ve[1];return 3*(Ve[0]+E1)/4-E1},et.toByteArray=function B2(re){var Ve,s2,Qe=Ee(re),E1=Qe[0],h2=Qe[1],C1=new ee(function D(re,Ve,Qe){return 3*(Ve+Qe)/4-Qe}(0,E1,h2)),p2=0,Nt=h2>0?E1-4:E1;for(s2=0;s2<Nt;s2+=4)Ve=ye[re.charCodeAt(s2)]<<18|ye[re.charCodeAt(s2+1)]<<12|ye[re.charCodeAt(s2+2)]<<6|ye[re.charCodeAt(s2+3)],C1[p2++]=Ve>>16&255,C1[p2++]=Ve>>8&255,C1[p2++]=255&Ve;return 2===h2&&(Ve=ye[re.charCodeAt(s2)]<<2|ye[re.charCodeAt(s2+1)]>>4,C1[p2++]=255&Ve),1===h2&&(Ve=ye[re.charCodeAt(s2)]<<10|ye[re.charCodeAt(s2+1)]<<4|ye[re.charCodeAt(s2+2)]>>2,C1[p2++]=Ve>>8&255,C1[p2++]=255&Ve),C1},et.fromByteArray=function U2(re){for(var Ve,Qe=re.length,E1=Qe%3,h2=[],p2=0,Nt=Qe-E1;p2<Nt;p2+=16383)h2.push(o2(re,p2,p2+16383>Nt?Nt:p2+16383));return 1===E1?h2.push(_1[(Ve=re[Qe-1])>>2]+_1[Ve<<4&63]+"=="):2===E1&&h2.push(_1[(Ve=(re[Qe-2]<<8)+re[Qe-1])>>10]+_1[Ve>>4&63]+_1[Ve<<2&63]+"="),h2.join("")};for(var _1=[],ye=[],ee=typeof Uint8Array<"u"?Uint8Array:Array,q1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=0;_e<64;++_e)_1[_e]=q1[_e],ye[q1.charCodeAt(_e)]=_e;function Ee(re){var Ve=re.length;if(Ve%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Qe=re.indexOf("=");return-1===Qe&&(Qe=Ve),[Qe,Qe===Ve?0:4-Qe%4]}function x1(re){return _1[re>>18&63]+_1[re>>12&63]+_1[re>>6&63]+_1[63&re]}function o2(re,Ve,Qe){for(var h2=[],C1=Ve;C1<Qe;C1+=3)h2.push(x1((re[C1]<<16&16711680)+(re[C1+1]<<8&65280)+(255&re[C1+2])));return h2.join("")}ye[45]=62,ye[95]=63},838:(z3,et,_1)=>{"use strict";const ee=_1(981),q1=_1(20),_e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;et.hp=D,et.IS=50;const t1=2147483647;function Be(_){if(_>t1)throw new RangeError('The value "'+_+'" is invalid for option "size"');const d=new Uint8Array(_);return Object.setPrototypeOf(d,D.prototype),d}function D(_,d,h){if("number"==typeof _){if("string"==typeof d)throw new TypeError('The "string" argument must be of type string. Received type number');return U2(_)}return B2(_,d,h)}function B2(_,d,h){if("string"==typeof _)return function re(_,d){if(("string"!=typeof d||""===d)&&(d="utf8"),!D.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const h=0|Nt(_,d);let M=Be(h);const z=M.write(_,d);return z!==h&&(M=M.slice(0,z)),M}(_,d);if(ArrayBuffer.isView(_))return function Qe(_){if(tt(_,Uint8Array)){const d=new Uint8Array(_);return E1(d.buffer,d.byteOffset,d.byteLength)}return Ve(_)}(_);if(null==_)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(tt(_,ArrayBuffer)||_&&tt(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(tt(_,SharedArrayBuffer)||_&&tt(_.buffer,SharedArrayBuffer)))return E1(_,d,h);if("number"==typeof _)throw new TypeError('The "value" argument must not be of type number. Received type number');const M=_.valueOf&&_.valueOf();if(null!=M&&M!==_)return D.from(M,d,h);const z=function h2(_){if(D.isBuffer(_)){const d=0|C1(_.length),h=Be(d);return 0===h.length||_.copy(h,0,0,d),h}return void 0!==_.length?"number"!=typeof _.length||En(_.length)?Be(0):Ve(_):"Buffer"===_.type&&Array.isArray(_.data)?Ve(_.data):void 0}(_);if(z)return z;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof _[Symbol.toPrimitive])return D.from(_[Symbol.toPrimitive]("string"),d,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}function x1(_){if("number"!=typeof _)throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function U2(_){return x1(_),Be(_<0?0:0|C1(_))}function Ve(_){const d=_.length<0?0:0|C1(_.length),h=Be(d);for(let M=0;M<d;M+=1)h[M]=255&_[M];return h}function E1(_,d,h){if(d<0||_.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<d+(h||0))throw new RangeError('"length" is outside of buffer bounds');let M;return M=void 0===d&&void 0===h?new Uint8Array(_):void 0===h?new Uint8Array(_,d):new Uint8Array(_,d,h),Object.setPrototypeOf(M,D.prototype),M}function C1(_){if(_>=t1)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t1.toString(16)+" bytes");return 0|_}function Nt(_,d){if(D.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||tt(_,ArrayBuffer))return _.byteLength;if("string"!=typeof _)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const h=_.length,M=arguments.length>2&&!0===arguments[2];if(!M&&0===h)return 0;let z=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return N3(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return Jt(_).length;default:if(z)return M?-1:N3(_).length;d=(""+d).toLowerCase(),z=!0}}function s2(_,d,h){let M=!1;if((void 0===d||d<0)&&(d=0),d>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(d>>>=0))return"";for(_||(_="utf8");;)switch(_){case"hex":return I0(this,d,h);case"utf8":case"utf-8":return Ao(this,d,h);case"ascii":return Oo(this,d,h);case"latin1":case"binary":return Ro(this,d,h);case"base64":return Y9(this,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ur(this,d,h);default:if(M)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),M=!0}}function Qt(_,d,h){const M=_[d];_[d]=_[h],_[h]=M}function lr(_,d,h,M,z){if(0===_.length)return-1;if("string"==typeof h?(M=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),En(h=+h)&&(h=z?0:_.length-1),h<0&&(h=_.length+h),h>=_.length){if(z)return-1;h=_.length-1}else if(h<0){if(!z)return-1;h=0}if("string"==typeof d&&(d=D.from(d,M)),D.isBuffer(d))return 0===d.length?-1:I4(_,d,h,M,z);if("number"==typeof d)return d&=255,"function"==typeof Uint8Array.prototype.indexOf?z?Uint8Array.prototype.indexOf.call(_,d,h):Uint8Array.prototype.lastIndexOf.call(_,d,h):I4(_,[d],h,M,z);throw new TypeError("val must be string, number or Buffer")}function I4(_,d,h,M,z){let We,x=1,I=_.length,Me=d.length;if(void 0!==M&&("ucs2"===(M=String(M).toLowerCase())||"ucs-2"===M||"utf16le"===M||"utf-16le"===M)){if(_.length<2||d.length<2)return-1;x=2,I/=2,Me/=2,h/=2}function r1(y1,Oe){return 1===x?y1[Oe]:y1.readUInt16BE(Oe*x)}if(z){let y1=-1;for(We=h;We<I;We++)if(r1(_,We)===r1(d,-1===y1?0:We-y1)){if(-1===y1&&(y1=We),We-y1+1===Me)return y1*x}else-1!==y1&&(We-=We-y1),y1=-1}else for(h+Me>I&&(h=I-Me),We=h;We>=0;We--){let y1=!0;for(let Oe=0;Oe<Me;Oe++)if(r1(_,We+Oe)!==r1(d,Oe)){y1=!1;break}if(y1)return We}return-1}function A4(_,d,h,M){h=Number(h)||0;const z=_.length-h;M?(M=Number(M))>z&&(M=z):M=z;const x=d.length;let I;for(M>x/2&&(M=x/2),I=0;I<M;++I){const Me=parseInt(d.substr(2*I,2),16);if(En(Me))return I;_[h+I]=Me}return I}function i4(_,d,h,M){return xn(N3(d,_.length-h),_,h,M)}function Io(_,d,h,M){return xn(function jo(_){const d=[];for(let h=0;h<_.length;++h)d.push(255&_.charCodeAt(h));return d}(d),_,h,M)}function W9(_,d,h,M){return xn(Jt(d),_,h,M)}function q9(_,d,h,M){return xn(function Go(_,d){let h,M,z;const x=[];for(let I=0;I<_.length&&!((d-=2)<0);++I)h=_.charCodeAt(I),M=h>>8,z=h%256,x.push(z),x.push(M);return x}(d,_.length-h),_,h,M)}function Y9(_,d,h){return ee.fromByteArray(0===d&&h===_.length?_:_.slice(d,h))}function Ao(_,d,h){h=Math.min(_.length,h);const M=[];let z=d;for(;z<h;){const x=_[z];let I=null,Me=x>239?4:x>223?3:x>191?2:1;if(z+Me<=h){let r1,We,y1,Oe;switch(Me){case 1:x<128&&(I=x);break;case 2:r1=_[z+1],128==(192&r1)&&(Oe=(31&x)<<6|63&r1,Oe>127&&(I=Oe));break;case 3:r1=_[z+1],We=_[z+2],128==(192&r1)&&128==(192&We)&&(Oe=(15&x)<<12|(63&r1)<<6|63&We,Oe>2047&&(Oe<55296||Oe>57343)&&(I=Oe));break;case 4:r1=_[z+1],We=_[z+2],y1=_[z+3],128==(192&r1)&&128==(192&We)&&128==(192&y1)&&(Oe=(15&x)<<18|(63&r1)<<12|(63&We)<<6|63&y1,Oe>65535&&Oe<1114112&&(I=Oe))}}null===I?(I=65533,Me=1):I>65535&&(I-=65536,M.push(I>>>10&1023|55296),I=56320|1023&I),M.push(I),z+=Me}return function K9(_){const d=_.length;if(d<=ko)return String.fromCharCode.apply(String,_);let h="",M=0;for(;M<d;)h+=String.fromCharCode.apply(String,_.slice(M,M+=ko));return h}(M)}!(D.TYPED_ARRAY_SUPPORT=function Ee(){try{const _=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(_,d),42===_.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(D.prototype,"parent",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.buffer}}),Object.defineProperty(D.prototype,"offset",{enumerable:!0,get:function(){if(D.isBuffer(this))return this.byteOffset}}),D.poolSize=8192,D.from=function(_,d,h){return B2(_,d,h)},Object.setPrototypeOf(D.prototype,Uint8Array.prototype),Object.setPrototypeOf(D,Uint8Array),D.alloc=function(_,d,h){return function o2(_,d,h){return x1(_),_<=0?Be(_):void 0!==d?"string"==typeof h?Be(_).fill(d,h):Be(_).fill(d):Be(_)}(_,d,h)},D.allocUnsafe=function(_){return U2(_)},D.allocUnsafeSlow=function(_){return U2(_)},D.isBuffer=function(d){return null!=d&&!0===d._isBuffer&&d!==D.prototype},D.compare=function(d,h){if(tt(d,Uint8Array)&&(d=D.from(d,d.offset,d.byteLength)),tt(h,Uint8Array)&&(h=D.from(h,h.offset,h.byteLength)),!D.isBuffer(d)||!D.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===h)return 0;let M=d.length,z=h.length;for(let x=0,I=Math.min(M,z);x<I;++x)if(d[x]!==h[x]){M=d[x],z=h[x];break}return M<z?-1:z<M?1:0},D.isEncoding=function(d){switch(String(d).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}},D.concat=function(d,h){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(0===d.length)return D.alloc(0);let M;if(void 0===h)for(h=0,M=0;M<d.length;++M)h+=d[M].length;const z=D.allocUnsafe(h);let x=0;for(M=0;M<d.length;++M){let I=d[M];if(tt(I,Uint8Array))x+I.length>z.length?(D.isBuffer(I)||(I=D.from(I)),I.copy(z,x)):Uint8Array.prototype.set.call(z,I,x);else{if(!D.isBuffer(I))throw new TypeError('"list" argument must be an Array of Buffers');I.copy(z,x)}x+=I.length}return z},D.byteLength=Nt,D.prototype._isBuffer=!0,D.prototype.swap16=function(){const d=this.length;if(d%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<d;h+=2)Qt(this,h,h+1);return this},D.prototype.swap32=function(){const d=this.length;if(d%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<d;h+=4)Qt(this,h,h+3),Qt(this,h+1,h+2);return this},D.prototype.swap64=function(){const d=this.length;if(d%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<d;h+=8)Qt(this,h,h+7),Qt(this,h+1,h+6),Qt(this,h+2,h+5),Qt(this,h+3,h+4);return this},D.prototype.toLocaleString=D.prototype.toString=function(){const d=this.length;return 0===d?"":0===arguments.length?Ao(this,0,d):s2.apply(this,arguments)},D.prototype.equals=function(d){if(!D.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d||0===D.compare(this,d)},D.prototype.inspect=function(){let d="";const h=et.IS;return d=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(d+=" ... "),"<Buffer "+d+">"},_e&&(D.prototype[_e]=D.prototype.inspect),D.prototype.compare=function(d,h,M,z,x){if(tt(d,Uint8Array)&&(d=D.from(d,d.offset,d.byteLength)),!D.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(void 0===h&&(h=0),void 0===M&&(M=d?d.length:0),void 0===z&&(z=0),void 0===x&&(x=this.length),h<0||M>d.length||z<0||x>this.length)throw new RangeError("out of range index");if(z>=x&&h>=M)return 0;if(z>=x)return-1;if(h>=M)return 1;if(this===d)return 0;let I=(x>>>=0)-(z>>>=0),Me=(M>>>=0)-(h>>>=0);const r1=Math.min(I,Me),We=this.slice(z,x),y1=d.slice(h,M);for(let Oe=0;Oe<r1;++Oe)if(We[Oe]!==y1[Oe]){I=We[Oe],Me=y1[Oe];break}return I<Me?-1:Me<I?1:0},D.prototype.includes=function(d,h,M){return-1!==this.indexOf(d,h,M)},D.prototype.indexOf=function(d,h,M){return lr(this,d,h,M,!0)},D.prototype.lastIndexOf=function(d,h,M){return lr(this,d,h,M,!1)},D.prototype.write=function(d,h,M,z){if(void 0===h)z="utf8",M=this.length,h=0;else if(void 0===M&&"string"==typeof h)z=h,M=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(M)?(M>>>=0,void 0===z&&(z="utf8")):(z=M,M=void 0)}const x=this.length-h;if((void 0===M||M>x)&&(M=x),d.length>0&&(M<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let I=!1;for(;;)switch(z){case"hex":return A4(this,d,h,M);case"utf8":case"utf-8":return i4(this,d,h,M);case"ascii":case"latin1":case"binary":return Io(this,d,h,M);case"base64":return W9(this,d,h,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q9(this,d,h,M);default:if(I)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),I=!0}},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ko=4096;function Oo(_,d,h){let M="";h=Math.min(_.length,h);for(let z=d;z<h;++z)M+=String.fromCharCode(127&_[z]);return M}function Ro(_,d,h){let M="";h=Math.min(_.length,h);for(let z=d;z<h;++z)M+=String.fromCharCode(_[z]);return M}function I0(_,d,h){const M=_.length;(!d||d<0)&&(d=0),(!h||h<0||h>M)&&(h=M);let z="";for(let x=d;x<h;++x)z+=O0[_[x]];return z}function ur(_,d,h){const M=_.slice(d,h);let z="";for(let x=0;x<M.length-1;x+=2)z+=String.fromCharCode(M[x]+256*M[x+1]);return z}function Y1(_,d,h){if(_%1!=0||_<0)throw new RangeError("offset is not uint");if(_+d>h)throw new RangeError("Trying to access beyond buffer length")}function x2(_,d,h,M,z,x){if(!D.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>z||d<x)throw new RangeError('"value" argument is out of bounds');if(h+M>_.length)throw new RangeError("Index out of range")}function A0(_,d,h,M,z){Le(d,M,z,_,h,7);let x=Number(d&BigInt(4294967295));_[h++]=x,x>>=8,_[h++]=x,x>>=8,_[h++]=x,x>>=8,_[h++]=x;let I=Number(d>>BigInt(32)&BigInt(4294967295));return _[h++]=I,I>>=8,_[h++]=I,I>>=8,_[h++]=I,I>>=8,_[h++]=I,h}function Po(_,d,h,M,z){Le(d,M,z,_,h,7);let x=Number(d&BigInt(4294967295));_[h+7]=x,x>>=8,_[h+6]=x,x>>=8,_[h+5]=x,x>>=8,_[h+4]=x;let I=Number(d>>BigInt(32)&BigInt(4294967295));return _[h+3]=I,I>>=8,_[h+2]=I,I>>=8,_[h+1]=I,I>>=8,_[h]=I,h+8}function k0(_,d,h,M,z,x){if(h+M>_.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Fo(_,d,h,M,z){return d=+d,h>>>=0,z||k0(_,0,h,4),q1.write(_,d,h,M,23,4),h+4}function Bo(_,d,h,M,z){return d=+d,h>>>=0,z||k0(_,0,h,8),q1.write(_,d,h,M,52,8),h+8}D.prototype.slice=function(d,h){const M=this.length;(d=~~d)<0?(d+=M)<0&&(d=0):d>M&&(d=M),(h=void 0===h?M:~~h)<0?(h+=M)<0&&(h=0):h>M&&(h=M),h<d&&(h=d);const z=this.subarray(d,h);return Object.setPrototypeOf(z,D.prototype),z},D.prototype.readUintLE=D.prototype.readUIntLE=function(d,h,M){d>>>=0,h>>>=0,M||Y1(d,h,this.length);let z=this[d],x=1,I=0;for(;++I<h&&(x*=256);)z+=this[d+I]*x;return z},D.prototype.readUintBE=D.prototype.readUIntBE=function(d,h,M){d>>>=0,h>>>=0,M||Y1(d,h,this.length);let z=this[d+--h],x=1;for(;h>0&&(x*=256);)z+=this[d+--h]*x;return z},D.prototype.readUint8=D.prototype.readUInt8=function(d,h){return d>>>=0,h||Y1(d,1,this.length),this[d]},D.prototype.readUint16LE=D.prototype.readUInt16LE=function(d,h){return d>>>=0,h||Y1(d,2,this.length),this[d]|this[d+1]<<8},D.prototype.readUint16BE=D.prototype.readUInt16BE=function(d,h){return d>>>=0,h||Y1(d,2,this.length),this[d]<<8|this[d+1]},D.prototype.readUint32LE=D.prototype.readUInt32LE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+16777216*this[d+3]},D.prototype.readUint32BE=D.prototype.readUInt32BE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),16777216*this[d]+(this[d+1]<<16|this[d+2]<<8|this[d+3])},D.prototype.readBigUInt64LE=Xt(function(d){Zt(d>>>=0,"offset");const h=this[d],M=this[d+7];(void 0===h||void 0===M)&&Ln(d,this.length-8);const z=h+256*this[++d]+65536*this[++d]+this[++d]*2**24,x=this[++d]+256*this[++d]+65536*this[++d]+M*2**24;return BigInt(z)+(BigInt(x)<<BigInt(32))}),D.prototype.readBigUInt64BE=Xt(function(d){Zt(d>>>=0,"offset");const h=this[d],M=this[d+7];(void 0===h||void 0===M)&&Ln(d,this.length-8);const z=h*2**24+65536*this[++d]+256*this[++d]+this[++d],x=this[++d]*2**24+65536*this[++d]+256*this[++d]+M;return(BigInt(z)<<BigInt(32))+BigInt(x)}),D.prototype.readIntLE=function(d,h,M){d>>>=0,h>>>=0,M||Y1(d,h,this.length);let z=this[d],x=1,I=0;for(;++I<h&&(x*=256);)z+=this[d+I]*x;return x*=128,z>=x&&(z-=Math.pow(2,8*h)),z},D.prototype.readIntBE=function(d,h,M){d>>>=0,h>>>=0,M||Y1(d,h,this.length);let z=h,x=1,I=this[d+--z];for(;z>0&&(x*=256);)I+=this[d+--z]*x;return x*=128,I>=x&&(I-=Math.pow(2,8*h)),I},D.prototype.readInt8=function(d,h){return d>>>=0,h||Y1(d,1,this.length),128&this[d]?-1*(255-this[d]+1):this[d]},D.prototype.readInt16LE=function(d,h){d>>>=0,h||Y1(d,2,this.length);const M=this[d]|this[d+1]<<8;return 32768&M?4294901760|M:M},D.prototype.readInt16BE=function(d,h){d>>>=0,h||Y1(d,2,this.length);const M=this[d+1]|this[d]<<8;return 32768&M?4294901760|M:M},D.prototype.readInt32LE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},D.prototype.readInt32BE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},D.prototype.readBigInt64LE=Xt(function(d){Zt(d>>>=0,"offset");const h=this[d],M=this[d+7];return(void 0===h||void 0===M)&&Ln(d,this.length-8),(BigInt(this[d+4]+256*this[d+5]+65536*this[d+6]+(M<<24))<<BigInt(32))+BigInt(h+256*this[++d]+65536*this[++d]+this[++d]*2**24)}),D.prototype.readBigInt64BE=Xt(function(d){Zt(d>>>=0,"offset");const h=this[d],M=this[d+7];(void 0===h||void 0===M)&&Ln(d,this.length-8);const z=(h<<24)+65536*this[++d]+256*this[++d]+this[++d];return(BigInt(z)<<BigInt(32))+BigInt(this[++d]*2**24+65536*this[++d]+256*this[++d]+M)}),D.prototype.readFloatLE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),q1.read(this,d,!0,23,4)},D.prototype.readFloatBE=function(d,h){return d>>>=0,h||Y1(d,4,this.length),q1.read(this,d,!1,23,4)},D.prototype.readDoubleLE=function(d,h){return d>>>=0,h||Y1(d,8,this.length),q1.read(this,d,!0,52,8)},D.prototype.readDoubleBE=function(d,h){return d>>>=0,h||Y1(d,8,this.length),q1.read(this,d,!1,52,8)},D.prototype.writeUintLE=D.prototype.writeUIntLE=function(d,h,M,z){d=+d,h>>>=0,M>>>=0,z||x2(this,d,h,M,Math.pow(2,8*M)-1,0);let x=1,I=0;for(this[h]=255&d;++I<M&&(x*=256);)this[h+I]=d/x&255;return h+M},D.prototype.writeUintBE=D.prototype.writeUIntBE=function(d,h,M,z){d=+d,h>>>=0,M>>>=0,z||x2(this,d,h,M,Math.pow(2,8*M)-1,0);let x=M-1,I=1;for(this[h+x]=255&d;--x>=0&&(I*=256);)this[h+x]=d/I&255;return h+M},D.prototype.writeUint8=D.prototype.writeUInt8=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,1,255,0),this[h]=255&d,h+1},D.prototype.writeUint16LE=D.prototype.writeUInt16LE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,2,65535,0),this[h]=255&d,this[h+1]=d>>>8,h+2},D.prototype.writeUint16BE=D.prototype.writeUInt16BE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,2,65535,0),this[h]=d>>>8,this[h+1]=255&d,h+2},D.prototype.writeUint32LE=D.prototype.writeUInt32LE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,4,4294967295,0),this[h+3]=d>>>24,this[h+2]=d>>>16,this[h+1]=d>>>8,this[h]=255&d,h+4},D.prototype.writeUint32BE=D.prototype.writeUInt32BE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,4,4294967295,0),this[h]=d>>>24,this[h+1]=d>>>16,this[h+2]=d>>>8,this[h+3]=255&d,h+4},D.prototype.writeBigUInt64LE=Xt(function(d,h=0){return A0(this,d,h,BigInt(0),BigInt("0xffffffffffffffff"))}),D.prototype.writeBigUInt64BE=Xt(function(d,h=0){return Po(this,d,h,BigInt(0),BigInt("0xffffffffffffffff"))}),D.prototype.writeIntLE=function(d,h,M,z){if(d=+d,h>>>=0,!z){const r1=Math.pow(2,8*M-1);x2(this,d,h,M,r1-1,-r1)}let x=0,I=1,Me=0;for(this[h]=255&d;++x<M&&(I*=256);)d<0&&0===Me&&0!==this[h+x-1]&&(Me=1),this[h+x]=(d/I|0)-Me&255;return h+M},D.prototype.writeIntBE=function(d,h,M,z){if(d=+d,h>>>=0,!z){const r1=Math.pow(2,8*M-1);x2(this,d,h,M,r1-1,-r1)}let x=M-1,I=1,Me=0;for(this[h+x]=255&d;--x>=0&&(I*=256);)d<0&&0===Me&&0!==this[h+x+1]&&(Me=1),this[h+x]=(d/I|0)-Me&255;return h+M},D.prototype.writeInt8=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,1,127,-128),d<0&&(d=255+d+1),this[h]=255&d,h+1},D.prototype.writeInt16LE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,2,32767,-32768),this[h]=255&d,this[h+1]=d>>>8,h+2},D.prototype.writeInt16BE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,2,32767,-32768),this[h]=d>>>8,this[h+1]=255&d,h+2},D.prototype.writeInt32LE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,4,2147483647,-2147483648),this[h]=255&d,this[h+1]=d>>>8,this[h+2]=d>>>16,this[h+3]=d>>>24,h+4},D.prototype.writeInt32BE=function(d,h,M){return d=+d,h>>>=0,M||x2(this,d,h,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[h]=d>>>24,this[h+1]=d>>>16,this[h+2]=d>>>8,this[h+3]=255&d,h+4},D.prototype.writeBigInt64LE=Xt(function(d,h=0){return A0(this,d,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),D.prototype.writeBigInt64BE=Xt(function(d,h=0){return Po(this,d,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),D.prototype.writeFloatLE=function(d,h,M){return Fo(this,d,h,!0,M)},D.prototype.writeFloatBE=function(d,h,M){return Fo(this,d,h,!1,M)},D.prototype.writeDoubleLE=function(d,h,M){return Bo(this,d,h,!0,M)},D.prototype.writeDoubleBE=function(d,h,M){return Bo(this,d,h,!1,M)},D.prototype.copy=function(d,h,M,z){if(!D.isBuffer(d))throw new TypeError("argument should be a Buffer");if(M||(M=0),!z&&0!==z&&(z=this.length),h>=d.length&&(h=d.length),h||(h=0),z>0&&z<M&&(z=M),z===M||0===d.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),d.length-h<z-M&&(z=d.length-h+M);const x=z-M;return this===d&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,M,z):Uint8Array.prototype.set.call(d,this.subarray(M,z),h),x},D.prototype.fill=function(d,h,M,z){if("string"==typeof d){if("string"==typeof h?(z=h,h=0,M=this.length):"string"==typeof M&&(z=M,M=this.length),void 0!==z&&"string"!=typeof z)throw new TypeError("encoding must be a string");if("string"==typeof z&&!D.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(1===d.length){const I=d.charCodeAt(0);("utf8"===z&&I<128||"latin1"===z)&&(d=I)}}else"number"==typeof d?d&=255:"boolean"==typeof d&&(d=Number(d));if(h<0||this.length<h||this.length<M)throw new RangeError("Out of range index");if(M<=h)return this;let x;if(h>>>=0,M=void 0===M?this.length:M>>>0,d||(d=0),"number"==typeof d)for(x=h;x<M;++x)this[x]=d;else{const I=D.isBuffer(d)?d:D.from(d,z),Me=I.length;if(0===Me)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(x=0;x<M-h;++x)this[x+h]=I[x%Me]}return this};const k4={};function D3(_,d,h){k4[_]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,delete this.name}get code(){return _}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}function Uo(_){let d="",h=_.length;const M="-"===_[0]?1:0;for(;h>=M+4;h-=3)d=`_${_.slice(h-3,h)}${d}`;return`${_.slice(0,h)}${d}`}function Le(_,d,h,M,z,x){if(_>h||_<d){const I="bigint"==typeof d?"n":"";let Me;throw Me=x>3?0===d||d===BigInt(0)?`>= 0${I} and < 2${I} ** ${8*(x+1)}${I}`:`>= -(2${I} ** ${8*(x+1)-1}${I}) and < 2 ** ${8*(x+1)-1}${I}`:`>= ${d}${I} and <= ${h}${I}`,new k4.ERR_OUT_OF_RANGE("value",Me,_)}!function Q9(_,d,h){Zt(d,"offset"),(void 0===_[d]||void 0===_[d+h])&&Ln(d,_.length-(h+1))}(M,z,x)}function Zt(_,d){if("number"!=typeof _)throw new k4.ERR_INVALID_ARG_TYPE(d,"number",_)}function Ln(_,d,h){throw Math.floor(_)!==_?(Zt(_,h),new k4.ERR_OUT_OF_RANGE(h||"offset","an integer",_)):d<0?new k4.ERR_BUFFER_OUT_OF_BOUNDS:new k4.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${d}`,_)}D3("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),D3("ERR_INVALID_ARG_TYPE",function(_,d){return`The "${_}" argument must be of type number. Received type ${typeof d}`},TypeError),D3("ERR_OUT_OF_RANGE",function(_,d,h){let M=`The value of "${_}" is out of range.`,z=h;return Number.isInteger(h)&&Math.abs(h)>2**32?z=Uo(String(h)):"bigint"==typeof h&&(z=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(z=Uo(z)),z+="n"),M+=` It must be ${d}. Received ${z}`,M},RangeError);const S3=/[^+/0-9A-Za-z-_]/g;function N3(_,d){let h;d=d||1/0;const M=_.length;let z=null;const x=[];for(let I=0;I<M;++I){if(h=_.charCodeAt(I),h>55295&&h<57344){if(!z){if(h>56319){(d-=3)>-1&&x.push(239,191,189);continue}if(I+1===M){(d-=3)>-1&&x.push(239,191,189);continue}z=h;continue}if(h<56320){(d-=3)>-1&&x.push(239,191,189),z=h;continue}h=65536+(z-55296<<10|h-56320)}else z&&(d-=3)>-1&&x.push(239,191,189);if(z=null,h<128){if((d-=1)<0)break;x.push(h)}else if(h<2048){if((d-=2)<0)break;x.push(h>>6|192,63&h|128)}else if(h<65536){if((d-=3)<0)break;x.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((d-=4)<0)break;x.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return x}function Jt(_){return ee.toByteArray(function m2(_){if((_=(_=_.split("=")[0]).trim().replace(S3,"")).length<2)return"";for(;_.length%4!=0;)_+="=";return _}(_))}function xn(_,d,h,M){let z;for(z=0;z<M&&!(z+h>=d.length||z>=_.length);++z)d[z+h]=_[z];return z}function tt(_,d){return _ instanceof d||null!=_&&null!=_.constructor&&null!=_.constructor.name&&_.constructor.name===d.name}function En(_){return _!=_}const O0=function(){const _="0123456789abcdef",d=new Array(256);for(let h=0;h<16;++h){const M=16*h;for(let z=0;z<16;++z)d[M+z]=_[h]+_[z]}return d}();function Xt(_){return typeof BigInt>"u"?R0:_}function R0(){throw new Error("BigInt not supported")}},20:(z3,et)=>{et.read=function(_1,ye,ee,q1,_e){var t1,Ee,Be=8*_e-q1-1,D=(1<<Be)-1,B2=D>>1,x1=-7,o2=ee?_e-1:0,U2=ee?-1:1,re=_1[ye+o2];for(o2+=U2,t1=re&(1<<-x1)-1,re>>=-x1,x1+=Be;x1>0;t1=256*t1+_1[ye+o2],o2+=U2,x1-=8);for(Ee=t1&(1<<-x1)-1,t1>>=-x1,x1+=q1;x1>0;Ee=256*Ee+_1[ye+o2],o2+=U2,x1-=8);if(0===t1)t1=1-B2;else{if(t1===D)return Ee?NaN:1/0*(re?-1:1);Ee+=Math.pow(2,q1),t1-=B2}return(re?-1:1)*Ee*Math.pow(2,t1-q1)},et.write=function(_1,ye,ee,q1,_e,t1){var Ee,Be,D,B2=8*t1-_e-1,x1=(1<<B2)-1,o2=x1>>1,U2=23===_e?Math.pow(2,-24)-Math.pow(2,-77):0,re=q1?0:t1-1,Ve=q1?1:-1,Qe=ye<0||0===ye&&1/ye<0?1:0;for(ye=Math.abs(ye),isNaN(ye)||ye===1/0?(Be=isNaN(ye)?1:0,Ee=x1):(Ee=Math.floor(Math.log(ye)/Math.LN2),ye*(D=Math.pow(2,-Ee))<1&&(Ee--,D*=2),(ye+=Ee+o2>=1?U2/D:U2*Math.pow(2,1-o2))*D>=2&&(Ee++,D/=2),Ee+o2>=x1?(Be=0,Ee=x1):Ee+o2>=1?(Be=(ye*D-1)*Math.pow(2,_e),Ee+=o2):(Be=ye*Math.pow(2,o2-1)*Math.pow(2,_e),Ee=0));_e>=8;_1[ee+re]=255&Be,re+=Ve,Be/=256,_e-=8);for(Ee=Ee<<_e|Be,B2+=_e;B2>0;_1[ee+re]=255&Ee,re+=Ve,Ee/=256,B2-=8);_1[ee+re-Ve]|=128*Qe}}},z3=>{z3(z3.s=730)}]);