homebridge-eufy-security 2.2.13 → 2.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +2 -2
- package/dist/accessories/BaseAccessory.d.ts.map +1 -1
- package/dist/accessories/BaseAccessory.js +1 -0
- package/dist/accessories/BaseAccessory.js.map +1 -1
- package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
- package/dist/accessories/EntrySensorAccessory.js +1 -2
- package/dist/accessories/EntrySensorAccessory.js.map +1 -1
- package/dist/accessories/LockAccessory.d.ts.map +1 -1
- package/dist/accessories/LockAccessory.js +7 -6
- package/dist/accessories/LockAccessory.js.map +1 -1
- package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
- package/dist/accessories/MotionSensorAccessory.js +1 -2
- package/dist/accessories/MotionSensorAccessory.js.map +1 -1
- package/homebridge-ui/public/index.html +1 -1
- package/homebridge-ui/public/main.ee38c2e8164184eb.js +1 -0
- package/package.json +14 -14
- package/homebridge-ui/public/main.4f9d91dd40ce06de.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{841:(Y3,G2,u1)=>{"use strict";function Q(e){return"function"==typeof e}function f2(e){const i=e(n=>{Error.call(n),n.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const w1=f2(e=>function(i){e(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i});function Qe(e,t){if(e){const i=e.indexOf(t);0<=i&&e.splice(i,1)}}class De{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const a of i)a.remove(this);else i.remove(this);const{initialTeardown:n}=this;if(Q(n))try{n()}catch(a){t=a instanceof w1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{A(a)}catch(s){t=t??[],s instanceof w1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new w1(t)}}add(t){var i;if(t&&t!==this)if(this.closed)A(t);else{if(t instanceof De){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&Qe(i,t)}remove(t){const{_finalizers:i}=this;i&&Qe(i,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Ee=De.EMPTY;function a1(e){return e instanceof De||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function A(e){Q(e)?e():e.unsubscribe()}const k1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s1={setTimeout(e,t,...i){const{delegate:n}=s1;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=s1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function P1(e){s1.setTimeout(()=>{const{onUnhandledError:t}=k1;if(!t)throw e;t(e)})}function Z1(){}const le=g1("C",void 0,void 0);function g1(e,t,i){return{kind:e,value:t,error:i}}let H1=null;function Je(e){if(k1.useDeprecatedSynchronousErrorHandling){const t=!H1;if(t&&(H1={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=H1;if(H1=null,i)throw n}}else e()}class at extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,a1(t)&&t.add(this)):this.destination=V6}static create(t,i,n){return new Nn(t,i,n)}next(t){this.isStopped?Di(function Ke(e){return g1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Di(function be(e){return g1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Di(le,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const h2=Function.prototype.bind;function yt(e,t){return h2.call(e,t)}class Ba{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Z3(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Z3(n)}else Z3(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Z3(i)}}}class Nn extends at{constructor(t,i,n){let r;if(super(),Q(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let a;this&&k1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&yt(t.next,a),error:t.error&&yt(t.error,a),complete:t.complete&&yt(t.complete,a)}):r=t}this.destination=new Ba(r)}}function Z3(e){k1.useDeprecatedSynchronousErrorHandling?function d2(e){k1.useDeprecatedSynchronousErrorHandling&&H1&&(H1.errorThrown=!0,H1.error=e)}(e):P1(e)}function Di(e,t){const{onStoppedNotification:i}=k1;i&&s1.setTimeout(()=>i(e,t))}const V6={closed:!0,next:Z1,error:function H6(e){throw e},complete:Z1},Si="function"==typeof Symbol&&Symbol.observable||"@@observable";function Mt(e){return e}function zi(e){return 0===e.length?Mt:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let We=(()=>{class e{constructor(i){i&&(this._subscribe=i)}lift(i){const n=new e;return n.source=this,n.operator=i,n}subscribe(i,n,r){const a=function S6(e){return e&&e instanceof at||function D6(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(e)&&a1(e)}(i)?i:new Nn(i,n,r);return Je(()=>{const{operator:s,source:o}=this;a.add(s?s.call(a,o):o?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return new(n=ja(n))((r,a)=>{const s=new Nn({next:o=>{try{i(o)}catch(c){a(c),s.unsubscribe()}},error:a,complete:r});this.subscribe(s)})}_subscribe(i){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(i)}[Si](){return this}pipe(...i){return zi(i)(this)}toPromise(i){return new(i=ja(i))((n,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function ja(e){var t;return null!==(t=e??k1.Promise)&&void 0!==t?t:Promise}const z6=f2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new n2(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new z6}next(i){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;const{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return(null===(i=this.observers)||void 0===i?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){const{hasError:n,isStopped:r,observers:a}=this;return n||r?Ee:(this.currentObservers=null,a.push(i),new De(()=>{this.currentObservers=null,Qe(a,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:a}=this;n?i.error(r):a&&i.complete()}asObservable(){const i=new We;return i.source=this,i}}return e.create=(t,i)=>new n2(t,i),e})();class n2 extends fe{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===n||n.call(i,t)}error(t){var i,n;null===(n=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===n||n.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,n;return null!==(n=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==n?n:Ee}}function xi(e){return Q(e?.lift)}function f1(e){return t=>{if(xi(t))return t.lift(function(i){try{return e(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(e,t,i,n,r){return new Ga(e,t,i,n,r)}class Ga extends at{constructor(t,i,n,r,a,s){super(t),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=i?function(o){try{i(o)}catch(c){t.error(c)}}:super._next,this._error=r?function(o){try{r(o)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){t.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function He(e,t){return f1((i,n)=>{let r=0;i.subscribe(qe(n,a=>{n.next(e.call(t,a,r++))}))})}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function r3(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(a){i[a]=e[a]&&function(s){return new Promise(function(o,c){!function r(a,s,o,c){Promise.resolve(c).then(function(l){a({value:l,done:o})},s)}(o,c,(s=e[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const A6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ef(e){return Q(e?.then)}function tf(e){return Q(e[Si])}function nf(e){return Symbol.asyncIterator&&Q(e?.[Symbol.asyncIterator])}function rf(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 af=function VL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sf(e){return Q(e?.[af])}function cf(e){return function h(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=i.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(p){n[p]&&(r[p]=function(m){return new Promise(function(H,D){a.push([p,m,H,D])>1||o(p,m)})})}function o(p,m){try{!function c(p){p.value instanceof f?Promise.resolve(p.value.v).then(l,u):d(a[0][2],p)}(n[p](m))}catch(H){d(a[0][3],H)}}function l(p){o("next",p)}function u(p){o("throw",p)}function d(p,m){p(m),a.shift(),a.length&&o(a[0][0],a[0][1])}}(this,arguments,function*(){const i=e.getReader();try{for(;;){const{value:n,done:r}=yield f(i.read());if(r)return yield f(void 0);yield yield f(n)}}finally{i.releaseLock()}})}function lf(e){return Q(e?.getReader)}function j1(e){if(e instanceof We)return e;if(null!=e){if(tf(e))return function DL(e){return new We(t=>{const i=e[Si]();if(Q(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(A6(e))return function SL(e){return new We(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}(e);if(ef(e))return function zL(e){return new We(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,P1)})}(e);if(nf(e))return uf(e);if(sf(e))return function xL(e){return new We(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(lf(e))return function LL(e){return uf(cf(e))}(e)}throw rf(e)}function uf(e){return new We(t=>{(function NL(e,t){var i,n,r,a;return function qa(e,t,i,n){return new(i||(i=Promise))(function(a,s){function o(u){try{l(n.next(u))}catch(d){s(d)}}function c(u){try{l(n.throw(u))}catch(d){s(d)}}function l(u){u.done?a(u.value):function r(a){return a instanceof i?a:new i(function(s){s(a)})}(u.value).then(o,c)}l((n=n.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(i=S(e);!(n=yield i.next()).done;)if(t.next(n.value),t.closed)return}catch(s){r={error:s}}finally{try{n&&!n.done&&(a=i.return)&&(yield a.call(i))}finally{if(r)throw r.error}}t.complete()})})(e,t).catch(i=>t.error(i))})}function sn(e,t,i,n=0,r=!1){const a=t.schedule(function(){i(),r?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!r)return a}function F1(e,t,i=1/0){return Q(t)?F1((n,r)=>He((a,s)=>t(n,a,r,s))(j1(e(n,r))),i):("number"==typeof t&&(i=t),f1((n,r)=>function AL(e,t,i,n,r,a,s,o){const c=[];let l=0,u=0,d=!1;const p=()=>{d&&!c.length&&!l&&t.complete()},m=D=>l<n?H(D):c.push(D),H=D=>{a&&t.next(D),l++;let x=!1;j1(i(D,u++)).subscribe(qe(t,E=>{r?.(E),a?m(E):t.next(E)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&l<n;){const E=c.shift();s?sn(t,s,()=>H(E)):H(E)}p()}catch(E){t.error(E)}}))};return e.subscribe(qe(t,m,()=>{d=!0,p()})),()=>{o?.()}}(n,r,e,i)))}function X3(e=1/0){return F1(Mt,e)}const ot=new We(e=>e.complete());function ff(e){return e&&Q(e.schedule)}function E6(e){return e[e.length-1]}function Za(e){return Q(E6(e))?e.pop():void 0}function Ni(e){return ff(E6(e))?e.pop():void 0}function df(e,t=0){return f1((i,n)=>{i.subscribe(qe(n,r=>sn(n,e,()=>n.next(r),t),()=>sn(n,e,()=>n.complete(),t),r=>sn(n,e,()=>n.error(r),t)))})}function hf(e,t=0){return f1((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function pf(e,t){if(!e)throw new Error("Iterable cannot be null");return new We(i=>{sn(i,t,()=>{const n=e[Symbol.asyncIterator]();sn(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Q1(e,t){return t?function FL(e,t){if(null!=e){if(tf(e))return function TL(e,t){return j1(e).pipe(hf(t),df(t))}(e,t);if(A6(e))return function RL(e,t){return new We(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(ef(e))return function OL(e,t){return j1(e).pipe(hf(t),df(t))}(e,t);if(nf(e))return pf(e,t);if(sf(e))return function kL(e,t){return new We(i=>{let n;return sn(i,t,()=>{n=e[af](),sn(i,t,()=>{let r,a;try{({value:r,done:a}=n.next())}catch(s){return void i.error(s)}a?i.complete():i.next(r)},0,!0)}),()=>Q(n?.return)&&n.return()})}(e,t);if(lf(e))return function PL(e,t){return pf(cf(e),t)}(e,t)}throw rf(e)}(e,t):j1(e)}function I6(...e){const t=Ni(e),i=function IL(e,t){return"number"==typeof E6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?j1(n[0]):X3(i)(Q1(n,t)):ot}class ct extends fe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const i=super._subscribe(t);return!i.closed&&t.next(this._value),i}getValue(){const{hasError:t,thrownError:i,_value:n}=this;if(t)throw i;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function ae(...e){return Q1(e,Ni(e))}function T6(e={}){const{connector:t=(()=>new fe),resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=e;return a=>{let s,o,c,l=0,u=!1,d=!1;const p=()=>{o?.unsubscribe(),o=void 0},m=()=>{p(),s=c=void 0,u=d=!1},H=()=>{const D=s;m(),D?.unsubscribe()};return f1((D,x)=>{l++,!d&&!u&&p();const E=c=c??t();x.add(()=>{l--,0===l&&!d&&!u&&(o=O6(H,r))}),E.subscribe(x),!s&&l>0&&(s=new Nn({next:z=>E.next(z),error:z=>{d=!0,p(),o=O6(m,i,z),E.error(z)},complete:()=>{u=!0,p(),o=O6(m,n),E.complete()}}),j1(D).subscribe(s))})(a)}}function O6(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Nn({next:()=>{n.unsubscribe(),e()}});return j1(t(...i)).subscribe(n)}function bt(e,t){return f1((i,n)=>{let r=null,a=0,s=!1;const o=()=>s&&!r&&n.complete();i.subscribe(qe(n,c=>{r?.unsubscribe();let l=0;const u=a++;j1(e(c,u)).subscribe(r=qe(n,d=>n.next(t?t(c,d,u,l++):d),()=>{r=null,o()}))},()=>{s=!0,o()}))})}function BL(e,t){return e===t}function Ue(e){for(let t in e)if(e[t]===Ue)return t;throw Error("Could not find renamed property on target object.")}function Qa(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function G1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(G1).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function R6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const UL=Ue({__forward_ref__:Ue});function me(e){return e.__forward_ref__=me,e.toString=function(){return G1(this())},e}function ue(e){return k6(e)?e():e}function k6(e){return"function"==typeof e&&e.hasOwnProperty(UL)&&e.__forward_ref__===me}function P6(e){return e&&!!e.\u0275providers}const gf="https://g.co/ng/security#xss";class F extends Error{constructor(t,i){super(function Ja(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function F6(e,t){throw new F(-201,!1)}function lt(e,t){null==e&&function se(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Te(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xa(e){return vf(e,ts)||vf(e,_f)}function vf(e,t){return e.hasOwnProperty(t)?e[t]:null}function es(e){return e&&(e.hasOwnProperty(B6)||e.hasOwnProperty(ZL))?e[B6]:null}const ts=Ue({\u0275prov:Ue}),B6=Ue({\u0275inj:Ue}),_f=Ue({ngInjectableDef:Ue}),ZL=Ue({ngInjectorDef:Ue});var ye=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}(ye||{});let U6;function A2(e){const t=U6;return U6=e,t}function yf(e,t,i){const n=Xa(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&ye.Optional?null:void 0!==t?t:void F6(G1(e))}const e1=globalThis,Ai={},q6="__NG_DI_FLAG__",ns="ngTempTokenPath",XL=/\n/gm,bf="__source";let e4;function In(e){const t=e4;return e4=e,t}function nN(e,t=ye.Default){if(void 0===e4)throw new F(-203,!1);return null===e4?yf(e,void 0,t):e4.get(e,t&ye.Optional?null:void 0,t)}function q(e,t=ye.Default){return(function Cf(){return U6}()||nN)(ue(e),t)}function J(e,t=ye.Default){return q(e,is(t))}function is(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function K6(e){const t=[];for(let i=0;i<e.length;i++){const n=ue(e[i]);if(Array.isArray(n)){if(0===n.length)throw new F(900,!1);let r,a=ye.Default;for(let s=0;s<n.length;s++){const o=n[s],c=iN(o);"number"==typeof c?-1===c?r=o.token:a|=c:r=o}t.push(q(r,a))}else t.push(q(n))}return t}function Ei(e,t){return e[q6]=t,e.prototype[q6]=t,e}function iN(e){return e[q6]}function on(e){return{toString:e}.toString()}var rs=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(rs||{}),wt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wt||{});const Bt={},Ie=[],as=Ue({\u0275cmp:Ue}),Y6=Ue({\u0275dir:Ue}),Z6=Ue({\u0275pipe:Ue}),Hf=Ue({\u0275mod:Ue}),cn=Ue({\u0275fac:Ue}),Ii=Ue({__NG_ELEMENT_ID__:Ue}),Vf=Ue({__NG_ENV_ID__:Ue});function Df(e,t,i){let n=e.length;for(;;){const r=e.indexOf(t,i);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=t.length;if(r+a===n||e.charCodeAt(r+a)<=32)return r}i=r+1}}function Q6(e,t,i){let n=0;for(;n<i.length;){const r=i[n];if("number"==typeof r){if(0!==r)break;n++;const a=i[n++],s=i[n++],o=i[n++];e.setAttribute(t,s,o,a)}else{const a=r,s=i[++n];zf(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function Sf(e){return 3===e||4===e||6===e}function zf(e){return 64===e.charCodeAt(0)}function Ti(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let n=0;n<t.length;n++){const r=t[n];"number"==typeof r?i=r:0===i||xf(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function xf(e,t,i,n,r){let a=0,s=e.length;if(-1===t)s=-1;else for(;a<e.length;){const o=e[a++];if("number"==typeof o){if(o===t){s=-1;break}if(o>t){s=a-1;break}}}for(;a<e.length;){const o=e[a];if("number"==typeof o)break;if(o===i){if(null===n)return void(null!==r&&(e[a+1]=r));if(n===e[a+1])return void(e[a+2]=r)}a++,null!==n&&a++,null!==r&&a++}-1!==s&&(e.splice(s,0,t),a=s+1),e.splice(a++,0,i),null!==n&&e.splice(a++,0,n),null!==r&&e.splice(a++,0,r)}const Lf="ng-template";function sN(e,t,i){let n=0,r=!0;for(;n<e.length;){let a=e[n++];if("string"==typeof a&&r){const s=e[n++];if(i&&"class"===a&&-1!==Df(s.toLowerCase(),t,0))return!0}else{if(1===a){for(;n<e.length&&"string"==typeof(a=e[n++]);)if(a.toLowerCase()===t)return!0;return!1}"number"==typeof a&&(r=!1)}}return!1}function Nf(e){return 4===e.type&&e.value!==Lf}function oN(e,t,i){return t===(4!==e.type||i?e.value:Lf)}function cN(e,t,i){let n=4;const r=e.attrs||[],a=function fN(e){for(let t=0;t<e.length;t++)if(Sf(e[t]))return t;return e.length}(r);let s=!1;for(let o=0;o<t.length;o++){const c=t[o];if("number"!=typeof c){if(!s)if(4&n){if(n=2|1&n,""!==c&&!oN(e,c,i)||""===c&&1===t.length){if(Ht(n))return!1;s=!0}}else{const l=8&n?c:t[++o];if(8&n&&null!==e.attrs){if(!sN(e.attrs,l,i)){if(Ht(n))return!1;s=!0}continue}const d=lN(8&n?"class":c,r,Nf(e),i);if(-1===d){if(Ht(n))return!1;s=!0;continue}if(""!==l){let p;p=d>a?"":r[d+1].toLowerCase();const m=8&n?p:null;if(m&&-1!==Df(m,l,0)||2&n&&l!==p){if(Ht(n))return!1;s=!0}}}}else{if(!s&&!Ht(n)&&!Ht(c))return!1;if(s&&Ht(c))continue;s=!1,n=c|1&n}}return Ht(n)||s}function Ht(e){return 0==(1&e)}function lN(e,t,i,n){if(null===t)return-1;let r=0;if(n||!i){let a=!1;for(;r<t.length;){const s=t[r];if(s===e)return r;if(3===s||6===s)a=!0;else{if(1===s||2===s){let o=t[++r];for(;"string"==typeof o;)o=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=a?1:2}return-1}return function dN(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const n=e[i];if("number"==typeof n)return-1;if(n===t)return i;i++}return-1}(t,e)}function Af(e,t,i=!1){for(let n=0;n<t.length;n++)if(cN(e,t[n],i))return!0;return!1}function hN(e,t){e:for(let i=0;i<t.length;i++){const n=t[i];if(e.length===n.length){for(let r=0;r<e.length;r++)if(e[r]!==n[r])continue e;return!0}}return!1}function Ef(e,t){return e?":not("+t.trim()+")":t}function pN(e){let t=e[0],i=1,n=2,r="",a=!1;for(;i<e.length;){let s=e[i];if("string"==typeof s)if(2&n){const o=e[++i];r+="["+s+(o.length>0?'="'+o+'"':"")+"]"}else 8&n?r+="."+s:4&n&&(r+=" "+s);else""!==r&&!Ht(s)&&(t+=Ef(a,r),r=""),n=s,a=a||!Ht(n);i++}return""!==r&&(t+=Ef(a,r)),t}function oe(e){return on(()=>{const t=Tf(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wt.Emulated,styles:e.styles||Ie,_:null,schemas:e.schemas||null,tView:null,id:""};Of(i);const n=e.dependencies;return i.directiveDefs=ss(n,!1),i.pipeDefs=ss(n,!0),i.id=function bN(e){let t=0;const i=[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 i)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(i),i})}function _N(e){return xe(e)||r2(e)}function CN(e){return null!==e}function Fe(e){return on(()=>({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 If(e,t){if(null==e)return Bt;const i={};for(const n in e)if(e.hasOwnProperty(n)){let r=e[n],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),i[r]=n,t&&(t[r]=a)}return i}function j(e){return on(()=>{const t=Tf(e);return Of(t),t})}function xe(e){return e[as]||null}function r2(e){return e[Y6]||null}function C2(e){return e[Z6]||null}function W2(e,t){const i=e[Hf]||null;if(!i&&!0===t)throw new Error(`Type ${G1(e)} does not have '\u0275mod' property.`);return i}function Tf(e){const t={};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:t,inputTransforms:null,inputConfig:e.inputs||Bt,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:If(e.inputs,t),outputs:If(e.outputs)}}function Of(e){e.features?.forEach(t=>t(e))}function ss(e,t){if(!e)return null;const i=t?C2:_N;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(CN)}const V1=0,K=1,ge=2,p1=3,Vt=4,Oi=5,p2=6,n4=7,N1=8,Tn=9,i4=10,he=11,Ri=12,Rf=13,r4=14,A1=15,ki=16,a4=17,Ut=18,Pi=19,kf=20,On=21,ln=22,Fi=23,Bi=24,Ve=25,J6=1,Pf=2,jt=7,s4=9,a2=11;function I2(e){return Array.isArray(e)&&"object"==typeof e[J6]}function y2(e){return Array.isArray(e)&&!0===e[J6]}function X6(e){return 0!=(4&e.flags)}function s3(e){return e.componentOffset>-1}function cs(e){return 1==(1&e.flags)}function Dt(e){return!!e.template}function e0(e){return 0!=(512&e[ge])}function o3(e,t){return e.hasOwnProperty(cn)?e[cn]:null}let s2=null,ls=!1;function ut(e){const t=s2;return s2=e,t}const us={version: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:()=>{}};function Gf(e){if(!ji(e)||e.dirty){if(!e.producerMustRecompute(e)&&!qf(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Wf(e){e.dirty=!0,function $f(e){if(void 0===e.liveConsumerNode)return;const t=ls;ls=!0;try{for(const i of e.liveConsumerNode)i.dirty||Wf(i)}finally{ls=t}}(e),e.consumerMarkedDirty?.(e)}function fs(e){return e&&(e.nextProducerIndex=0),ut(e)}function ds(e,t){if(ut(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(ji(e))for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)hs(e.producerNode[i],e.producerIndexOfThis[i]);for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function qf(e){o4(e);for(let t=0;t<e.producerNode.length;t++){const i=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==i.version||(Gf(i),n!==i.version))return!0}return!1}function Kf(e){if(o4(e),ji(e))for(let t=0;t<e.producerNode.length;t++)hs(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function hs(e,t){if(function Zf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),o4(e),1===e.liveConsumerNode.length)for(let n=0;n<e.producerNode.length;n++)hs(e.producerNode[n],e.producerIndexOfThis[n]);const i=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[i],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[i],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];o4(r),r.producerIndexOfThis[n]=t}}function ji(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function o4(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Qf=null;const t9=()=>{},IN={...us,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:t9};class TN{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function v1(){return n9}function n9(e){return e.type.prototype.ngOnChanges&&(e.setInput=RN),ON}function ON(){const e=r9(this),t=e?.current;if(t){const i=e.previous;if(i===Bt)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function RN(e,t,i,n){const r=this.declaredInputs[i],a=r9(e)||function kN(e,t){return e[i9]=t}(e,{previous:Bt,current:null}),s=a.current||(a.current={}),o=a.previous,c=o[r];s[r]=new TN(c&&c.currentValue,t,o===Bt),e[n]=t}v1.ngInherit=!0;const i9="__ngSimpleChanges__";function r9(e){return e[i9]||null}const Gt=function(e,t,i){},a9="svg";function t1(e){for(;Array.isArray(e);)e=e[V1];return e}function ms(e,t){return t1(t[e])}function T2(e,t){return t1(t[e.index])}function o9(e,t){return e.data[t]}function q2(e,t){const i=t[e];return I2(i)?i:i[V1]}function kn(e,t){return null==t?null:e[t]}function c9(e){e[a4]=0}function GN(e){1024&e[ge]||(e[ge]|=1024,u9(e,1))}function l9(e){1024&e[ge]&&(e[ge]&=-1025,u9(e,-1))}function u9(e,t){let i=e[p1];if(null===i)return;i[Oi]+=t;let n=i;for(i=i[p1];null!==i&&(1===t&&1===n[Oi]||-1===t&&0===n[Oi]);)i[Oi]+=t,n=i,i=i[p1]}const ce={lFrame:M9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function h9(){return ce.bindingsEnabled}function l4(){return null!==ce.skipHydrationRootTNode}function k(){return ce.lFrame.lView}function Le(){return ce.lFrame.tView}function Y(e){return ce.lFrame.contextLView=e,e[N1]}function Z(e){return ce.lFrame.contextLView=null,e}function o2(){let e=p9();for(;null!==e&&64===e.type;)e=e.parent;return e}function p9(){return ce.lFrame.currentTNode}function $t(e,t){const i=ce.lFrame;i.currentTNode=e,i.isParent=t}function l0(){return ce.lFrame.isParent}function u0(){ce.lFrame.isParent=!1}function u4(){return ce.lFrame.bindingIndex++}function fn(e){const t=ce.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function nA(e,t){const i=ce.lFrame;i.bindingIndex=i.bindingRootIndex=e,f0(t)}function f0(e){ce.lFrame.currentDirectiveIndex=e}function _9(){return ce.lFrame.currentQueryIndex}function h0(e){ce.lFrame.currentQueryIndex=e}function rA(e){const t=e[K];return 2===t.type?t.declTNode:1===t.type?e[p2]:null}function C9(e,t,i){if(i&ye.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||i&ye.Host||(r=rA(a),null===r||(a=a[r4],10&r.type))););if(null===r)return!1;t=r,e=a}const n=ce.lFrame=y9();return n.currentTNode=t,n.lView=e,!0}function p0(e){const t=y9(),i=e[K];ce.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function y9(){const e=ce.lFrame,t=null===e?null:e.child;return null===t?M9(e):t}function M9(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function b9(){const e=ce.lFrame;return ce.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const w9=b9;function m0(){const e=b9();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 b2(){return ce.lFrame.selectedIndex}function c3(e){ce.lFrame.selectedIndex=e}function _1(){const e=ce.lFrame;return o9(e.tView,e.selectedIndex)}function f4(){ce.lFrame.currentNamespace=a9}function d4(){!function cA(){ce.lFrame.currentNamespace=null}()}let V9=!0;function gs(){return V9}function Pn(e){V9=e}function vs(e,t){for(let i=t.directiveStart,n=t.directiveEnd;i<n;i++){const a=e.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;s&&(e.contentHooks??=[]).push(-i,s),o&&((e.contentHooks??=[]).push(i,o),(e.contentCheckHooks??=[]).push(i,o)),c&&(e.viewHooks??=[]).push(-i,c),l&&((e.viewHooks??=[]).push(i,l),(e.viewCheckHooks??=[]).push(i,l)),null!=u&&(e.destroyHooks??=[]).push(i,u)}}function _s(e,t,i){D9(e,t,3,i)}function Cs(e,t,i,n){(3&e[ge])===i&&D9(e,t,i,n)}function g0(e,t){let i=e[ge];(3&i)===t&&(i&=8191,i+=1,e[ge]=i)}function D9(e,t,i,n){const a=n??-1,s=t.length-1;let o=0;for(let c=void 0!==n?65535&e[a4]:0;c<s;c++)if("number"==typeof t[c+1]){if(o=t[c],null!=n&&o>=n)break}else t[c]<0&&(e[a4]+=65536),(o<a||-1==a)&&(uA(e,i,t,c),e[a4]=(4294901760&e[a4])+c+2),c++}function S9(e,t){Gt(4,e,t);const i=ut(null);try{t.call(e)}finally{ut(i),Gt(5,e,t)}}function uA(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[ge]>>13<e[a4]>>16&&(3&e[ge])===t&&(e[ge]+=8192,S9(o,a)):S9(o,a)}const h4=-1;class $i{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function _0(e){return e!==h4}function Wi(e){return 32767&e}function qi(e,t){let i=function pA(e){return e>>16}(e),n=t;for(;i>0;)n=n[r4],i--;return n}let C0=!0;function ys(e){const t=C0;return C0=e,t}const z9=255,x9=5;let mA=0;const Wt={};function Ms(e,t){const i=L9(e,t);if(-1!==i)return i;const n=t[K];n.firstCreatePass&&(e.injectorIndex=t.length,y0(n.data,e),y0(t,null),y0(n.blueprint,null));const r=bs(e,t),a=e.injectorIndex;if(_0(r)){const s=Wi(r),o=qi(r,t),c=o[K].data;for(let l=0;l<8;l++)t[a+l]=o[s+l]|c[s+l]}return t[a+8]=r,a}function y0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function L9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function bs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,n=null,r=t;for(;null!==r;){if(n=R9(r),null===n)return h4;if(i++,r=r[r4],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return h4}function M0(e,t,i){!function gA(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ii)&&(n=i[Ii]),null==n&&(n=i[Ii]=mA++);const r=n&z9;t.data[e+(r>>x9)]|=1<<r}(e,t,i)}function N9(e,t,i){if(i&ye.Optional||void 0!==e)return e;F6()}function A9(e,t,i,n){if(i&ye.Optional&&void 0===n&&(n=null),!(i&(ye.Self|ye.Host))){const r=e[Tn],a=A2(void 0);try{return r?r.get(t,n,i&ye.Optional):yf(t,n,i&ye.Optional)}finally{A2(a)}}return N9(n,0,i)}function E9(e,t,i,n=ye.Default,r){if(null!==e){if(2048&t[ge]&&!(n&ye.Self)){const s=function bA(e,t,i,n,r){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[ge]&&!(512&s[ge]);){const o=I9(a,s,i,n|ye.Self,Wt);if(o!==Wt)return o;let c=a.parent;if(!c){const l=s[kf];if(l){const u=l.get(i,Wt,n);if(u!==Wt)return u}c=R9(s),s=s[r4]}a=c}return r}(e,t,i,n,Wt);if(s!==Wt)return s}const a=I9(e,t,i,n,Wt);if(a!==Wt)return a}return A9(t,i,n,r)}function I9(e,t,i,n,r){const a=function CA(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ii)?e[Ii]:void 0;return"number"==typeof t?t>=0?t&z9:MA:t}(i);if("function"==typeof a){if(!C9(t,e,n))return n&ye.Host?N9(r,0,n):A9(t,i,n,r);try{let s;if(s=a(n),null!=s||n&ye.Optional)return s;F6()}finally{w9()}}else if("number"==typeof a){let s=null,o=L9(e,t),c=h4,l=n&ye.Host?t[A1][p2]:null;for((-1===o||n&ye.SkipSelf)&&(c=-1===o?bs(e,t):t[o+8],c!==h4&&O9(n,!1)?(s=t[K],o=Wi(c),t=qi(c,t)):o=-1);-1!==o;){const u=t[K];if(T9(a,o,u.data)){const d=_A(o,t,i,s,n,l);if(d!==Wt)return d}c=t[o+8],c!==h4&&O9(n,t[K].data[o+8]===l)&&T9(a,o,t)?(s=u,o=Wi(c),t=qi(c,t)):o=-1}}return r}function _A(e,t,i,n,r,a){const s=t[K],o=s.data[e+8],u=ws(o,s,i,null==n?s3(o)&&C0:n!=s&&0!=(3&o.type),r&ye.Host&&a===o);return null!==u?l3(t,s,u,o):Wt}function ws(e,t,i,n,r){const a=e.providerIndexes,s=t.data,o=1048575&a,c=e.directiveStart,u=a>>20,p=r?o+u:e.directiveEnd;for(let m=n?o:o+u;m<p;m++){const H=s[m];if(m<c&&i===H||m>=c&&H.type===i)return m}if(r){const m=s[c];if(m&&Dt(m)&&m.type===i)return c}return null}function l3(e,t,i,n){let r=e[i];const a=t.data;if(function fA(e){return e instanceof $i}(r)){const s=r;s.resolving&&function jL(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new F(-200,`Circular dependency in DI detected for ${e}${i}`)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(a[i]));const o=ys(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?A2(s.injectImpl):null;C9(e,n,ye.Default);try{r=e[i]=s.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function lA(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const s=n9(t);(i.preOrderHooks??=[]).push(e,s),(i.preOrderCheckHooks??=[]).push(e,s)}r&&(i.preOrderHooks??=[]).push(0-e,r),a&&((i.preOrderHooks??=[]).push(e,a),(i.preOrderCheckHooks??=[]).push(e,a))}(i,a[i],t)}finally{null!==l&&A2(l),ys(o),s.resolving=!1,w9()}}return r}function T9(e,t,i){return!!(i[t+(e>>x9)]&1<<e)}function O9(e,t){return!(e&ye.Self||e&ye.Host&&t)}class w2{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return E9(this._tNode,this._lView,t,is(n),i)}}function MA(){return new w2(o2(),k())}function E1(e){return on(()=>{const t=e.prototype.constructor,i=t[cn]||b0(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const a=r[cn]||b0(r);if(a&&a!==i)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function b0(e){return k6(e)?()=>{const t=b0(ue(e));return t&&t()}:o3(e)}function R9(e){const t=e[K],i=t.type;return 2===i?t.declTNode:1===i?e[p2]:null}const m4="__parameters__";function v4(e,t,i){return on(()=>{const n=function w0(e){return function(...i){if(e){const n=e(...i);for(const r in n)this[r]=n[r]}}}(t);function r(...a){if(this instanceof r)return n.apply(this,a),this;const s=new r(...a);return o.annotation=s,o;function o(c,l,u){const d=c.hasOwnProperty(m4)?c[m4]:Object.defineProperty(c,m4,{value:[]})[m4];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function C4(e,t){e.forEach(i=>Array.isArray(i)?C4(i,t):t(i))}function P9(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Hs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zi(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function K2(e,t,i){let n=y4(e,t);return n>=0?e[1|n]=i:(n=~n,function xA(e,t,i,n){let r=e.length;if(r==t)e.push(i,n);else if(1===r)e.push(n,e[0]),e[0]=i;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=i,e[t+1]=n}}(e,n,t,i)),n}function H0(e,t){const i=y4(e,t);if(i>=0)return e[1|i]}function y4(e,t){return function F9(e,t,i){let n=0,r=e.length>>i;for(;r!==n;){const a=n+(r-n>>1),s=e[a<<i];if(t===s)return a<<i;s>t?r=a:n=a+1}return~(r<<i)}(e,t,1)}const Ds=Ei(v4("Optional"),8),Ss=Ei(v4("SkipSelf"),4);function As(e){return 128==(128&e.flags)}var Fn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Fn||{});const x0=new Map;let XA=0;const N0="__ngContext__";function m2(e,t){I2(t)?(e[N0]=t[Pi],function tE(e){x0.set(e[Pi],e)}(t)):e[N0]=t}let A0;function E0(e,t){return A0(e,t)}function Xi(e){const t=e[p1];return y2(t)?t[p1]:t}function sd(e){return cd(e[Ri])}function od(e){return cd(e[Vt])}function cd(e){for(;null!==e&&!y2(e);)e=e[Vt];return e}function w4(e,t,i,n,r){if(null!=n){let a,s=!1;y2(n)?a=n:I2(n)&&(s=!0,n=n[V1]);const o=t1(n);0===e&&null!==i?null==r?dd(t,i,o):f3(t,i,o,r||null,!0):1===e&&null!==i?f3(t,i,o,r||null,!0):2===e?function Ps(e,t,i){const n=Rs(e,t);n&&function yE(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,o,s):3===e&&t.destroyNode(o),null!=a&&function wE(e,t,i,n,r){const a=i[jt];a!==t1(i)&&w4(t,e,n,a,r);for(let o=a2;o<i.length;o++){const c=i[o];tr(c[K],c,e,t,n,a)}}(t,e,a,i,r)}}function Ts(e,t,i){return e.createElement(t,i)}function ud(e,t){const i=e[s4],n=i.indexOf(t);l9(t),i.splice(n,1)}function Os(e,t){if(e.length<=a2)return;const i=a2+t,n=e[i];if(n){const r=n[ki];null!==r&&r!==e&&ud(r,n),t>0&&(e[i-1][Vt]=n[Vt]);const a=Hs(e,a2+t);!function dE(e,t){tr(e,t,t[he],2,null,null),t[V1]=null,t[p2]=null}(n[K],n);const s=a[Ut];null!==s&&s.detachView(a[K]),n[p1]=null,n[Vt]=null,n[ge]&=-129}return n}function T0(e,t){if(!(256&t[ge])){const i=t[he];t[Fi]&&Kf(t[Fi]),t[Bi]&&Kf(t[Bi]),i.destroyNode&&tr(e,t,i,3,null,null),function mE(e){let t=e[Ri];if(!t)return O0(e[K],e);for(;t;){let i=null;if(I2(t))i=t[Ri];else{const n=t[a2];n&&(i=n)}if(!i){for(;t&&!t[Vt]&&t!==e;)I2(t)&&O0(t[K],t),t=t[p1];null===t&&(t=e),I2(t)&&O0(t[K],t),i=t&&t[Vt]}t=i}}(t)}}function O0(e,t){if(!(256&t[ge])){t[ge]&=-129,t[ge]|=256,function CE(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let n=0;n<i.length;n+=2){const r=t[i[n]];if(!(r instanceof $i)){const a=i[n+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const o=r[a[s]],c=a[s+1];Gt(4,o,c);try{c.call(o)}finally{Gt(5,o,c)}}else{Gt(4,r,a);try{a.call(r)}finally{Gt(5,r,a)}}}}}(e,t),function _E(e,t){const i=e.cleanup,n=t[n4];if(null!==i)for(let a=0;a<i.length-1;a+=2)if("string"==typeof i[a]){const s=i[a+3];s>=0?n[s]():n[-s].unsubscribe(),a+=2}else i[a].call(n[i[a+1]]);null!==n&&(t[n4]=null);const r=t[On];if(null!==r){t[On]=null;for(let a=0;a<r.length;a++)(0,r[a])()}}(e,t),1===t[K].type&&t[he].destroy();const i=t[ki];if(null!==i&&y2(t[p1])){i!==t[p1]&&ud(i,t);const n=t[Ut];null!==n&&n.detachView(e)}!function nE(e){x0.delete(e[Pi])}(t)}}function R0(e,t,i){return function fd(e,t,i){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return i[V1];{const{componentOffset:r}=n;if(r>-1){const{encapsulation:a}=e.data[n.directiveStart+r];if(a===wt.None||a===wt.Emulated)return null}return T2(n,i)}}(e,t.parent,i)}function f3(e,t,i,n,r){e.insertBefore(t,i,n,r)}function dd(e,t,i){e.appendChild(t,i)}function hd(e,t,i,n,r){null!==n?f3(e,t,i,n,r):dd(e,t,i)}function Rs(e,t){return e.parentNode(t)}function pd(e,t,i){return gd(e,t,i)}let k0,Fs,U0,Bs,gd=function md(e,t,i){return 40&e.type?T2(e,i):null};function ks(e,t,i,n){const r=R0(e,n,t),a=t[he],o=pd(n.parent||t[p2],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;c<i.length;c++)hd(a,r,i[c],o,!1);else hd(a,r,i,o,!1);void 0!==k0&&k0(a,n,t,i,r)}function er(e,t){if(null!==t){const i=t.type;if(3&i)return T2(t,e);if(4&i)return P0(-1,e[t.index]);if(8&i){const n=t.child;if(null!==n)return er(e,n);{const r=e[t.index];return y2(r)?P0(-1,r):t1(r)}}if(32&i)return E0(t,e)()||t1(e[t.index]);{const n=_d(e,t);return null!==n?Array.isArray(n)?n[0]:er(Xi(e[A1]),n):er(e,t.next)}}return null}function _d(e,t){return null!==t?e[A1][p2].projection[t.projection]:null}function P0(e,t){const i=a2+e+1;if(i<t.length){const n=t[i],r=n[K].firstChild;if(null!==r)return er(n,r)}return t[jt]}function F0(e,t,i,n,r,a,s){for(;null!=i;){const o=n[i.index],c=i.type;if(s&&0===t&&(o&&m2(t1(o),n),i.flags|=2),32!=(32&i.flags))if(8&c)F0(e,t,i.child,n,r,a,!1),w4(t,e,r,o,a);else if(32&c){const l=E0(i,n);let u;for(;u=l();)w4(t,e,r,u,a);w4(t,e,r,o,a)}else 16&c?yd(e,t,n,i,r,a):w4(t,e,r,o,a);i=s?i.projectionNext:i.next}}function tr(e,t,i,n,r,a){F0(i,n,e.firstChild,t,r,a,!1)}function yd(e,t,i,n,r,a){const s=i[A1],c=s[p2].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)w4(t,e,r,c[l],a);else{let l=c;const u=s[p1];As(n)&&(l.flags|=128),F0(e,t,l,u,r,a,!0)}}function Md(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function bd(e,t,i){const{mergedAttrs:n,classes:r,styles:a}=i;null!==n&&Q6(e,t,n),null!==r&&Md(e,t,r),null!==a&&function VE(e,t,i){e.setAttribute(t,"style",i)}(e,t,a)}function H4(e){return function B0(){if(void 0===Fs&&(Fs=null,e1.trustedTypes))try{Fs=e1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Fs}()?.createHTML(e)||e}function V4(){if(void 0!==U0)return U0;if(typeof document<"u")return document;throw new F(210,!1)}function j0(){if(void 0===Bs&&(Bs=null,e1.trustedTypes))try{Bs=e1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Bs}function wd(e){return j0()?.createHTML(e)||e}function Vd(e){return j0()?.createScriptURL(e)||e}class d3{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${gf})`}}class LE extends d3{getTypeName(){return"HTML"}}class NE extends d3{getTypeName(){return"Style"}}class AE extends d3{getTypeName(){return"Script"}}class EE extends d3{getTypeName(){return"URL"}}class IE extends d3{getTypeName(){return"ResourceURL"}}function Y2(e){return e instanceof d3?e.changingThisBreaksApplicationSecurity:e}function qt(e,t){const i=function TE(e){return e instanceof d3&&e.getTypeName()||null}(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see ${gf})`)}return i===t}class BE{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(H4(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class UE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=H4(t),i}}const GE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Us(e){return(e=String(e)).match(GE)?e:"unsafe:"+e}function dn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function nr(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const Sd=dn("area,br,col,hr,img,wbr"),zd=dn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xd=dn("rp,rt"),G0=nr(Sd,nr(zd,dn("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")),nr(xd,dn("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")),nr(xd,zd)),$0=dn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ld=nr($0,dn("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"),dn("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")),$E=dn("script,style,template");class WE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,n=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!G0.hasOwnProperty(i))return this.sanitizedSomething=!0,!$E.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const n=t.attributes;for(let r=0;r<n.length;r++){const a=n.item(r),s=a.name,o=s.toLowerCase();if(!Ld.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let c=a.value;$0[o]&&(c=Us(c)),this.buf.push(" ",s,'="',Nd(c),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();G0.hasOwnProperty(i)&&!Sd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(Nd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return i}}const qE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KE=/([^\#-~ |!])/g;function Nd(e){return e.replace(/&/g,"&").replace(qE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(KE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let js;function Ad(e,t){let i=null;try{js=js||function Dd(e){const t=new UE(e);return function jE(){try{return!!(new window.DOMParser).parseFromString(H4(""),"text/html")}catch{return!1}}()?new BE(t):t}(e);let n=t?String(t):"";i=js.getInertBodyElement(n);let r=5,a=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=i.innerHTML,i=js.getInertBodyElement(n)}while(n!==a);return H4((new WE).sanitizeChildren(W0(i)||i))}finally{if(i){const n=W0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function W0(e){return"content"in e&&function YE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var dt=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}(dt||{});function Ed(e){const t=ir();return t?wd(t.sanitize(dt.HTML,e)||""):qt(e,"HTML")?wd(Y2(e)):Ad(V4(),de(e))}function hn(e){const t=ir();return t?t.sanitize(dt.STYLE,e)||"":qt(e,"Style")?Y2(e):de(e)}function D4(e){const t=ir();return t?t.sanitize(dt.URL,e)||"":qt(e,"URL")?Y2(e):Us(de(e))}function Id(e){const t=ir();if(t)return Vd(t.sanitize(dt.RESOURCE_URL,e)||"");if(qt(e,"ResourceURL"))return Vd(Y2(e));throw new F(904,!1)}function ir(){const e=k();return e&&e[i4].sanitizer}class te{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=$({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const rr=new te("ENVIRONMENT_INITIALIZER"),Od=new te("INJECTOR",-1),Rd=new te("INJECTOR_DEF_TYPES");class q0{get(t,i=Ai){if(i===Ai){const n=new Error(`NullInjectorError: No provider for ${G1(t)}!`);throw n.name="NullInjectorError",n}return i}}function eI(...e){return{\u0275providers:Pd(0,e),\u0275fromNgModule:!0}}function Pd(e,...t){const i=[],n=new Set;let r;const a=s=>{i.push(s)};return C4(t,s=>{const o=s;Gs(o,a,[],n)&&(r||=[],r.push(o))}),void 0!==r&&Fd(r,a),i}function Fd(e,t){for(let i=0;i<e.length;i++){const{ngModule:n,providers:r}=e[i];K0(r,a=>{t(a,n)})}}function Gs(e,t,i,n){if(!(e=ue(e)))return!1;let r=null,a=es(e);const s=!a&&xe(e);if(a||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(a=es(c),!a)return!1;r=c}const o=n.has(r);if(s){if(o)return!1;if(n.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Gs(l,t,i,n)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let l;n.add(r);try{C4(a.imports,u=>{Gs(u,t,i,n)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Fd(l,t)}if(!o){const l=o3(r)||(()=>new r);t({provide:r,useFactory:l,deps:Ie},r),t({provide:Rd,useValue:r,multi:!0},r),t({provide:rr,useValue:()=>q(r),multi:!0},r)}const c=a.providers;if(null!=c&&!o){const l=e;K0(c,u=>{t(u,l)})}}}return r!==e&&void 0!==e.providers}function K0(e,t){for(let i of e)P6(i)&&(i=i.\u0275providers),Array.isArray(i)?K0(i,t):t(i)}const tI=Ue({provide:String,useValue:Ue});function Y0(e){return null!==e&&"object"==typeof e&&tI in e}function h3(e){return"function"==typeof e}const Z0=new te("Set Injector scope."),$s={},iI={};let Q0;function Ws(){return void 0===Q0&&(Q0=new q0),Q0}class R2{}class qs extends R2{get destroyed(){return this._destroyed}constructor(t,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,X0(t,s=>this.processProvider(s)),this.records.set(Od,S4(void 0,this)),r.has("environment")&&this.records.set(R2,S4(void 0,this));const a=this.records.get(Z0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Rd.multi,Ie,ye.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;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()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const i=In(this),n=A2(void 0);try{return t()}finally{In(i),A2(n)}}get(t,i=Ai,n=ye.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Vf))return t[Vf](this);n=is(n);const a=In(this),s=A2(void 0);try{if(!(n&ye.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function cI(e){return"function"==typeof e||"object"==typeof e&&e instanceof te}(t)&&Xa(t);c=l&&this.injectableDefInScope(l)?S4(J0(t),$s):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&ye.Self?Ws():this.parent).get(t,i=n&ye.Optional&&i===Ai?null:i)}catch(o){if("NullInjectorError"===o.name){if((o[ns]=o[ns]||[]).unshift(G1(t)),a)throw o;return function rN(e,t,i,n){const r=e[ns];throw t[bf]&&r.unshift(t[bf]),e.message=function aN(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=G1(t);if(Array.isArray(t))r=t.map(G1).join(" -> ");else if("object"==typeof t){let a=[];for(let s in t)if(t.hasOwnProperty(s)){let o=t[s];a.push(s+":"+("string"==typeof o?JSON.stringify(o):G1(o)))}r=`{${a.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(XL,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[ns]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{A2(s),In(a)}}resolveInjectorInitializers(){const t=In(this),i=A2(void 0);try{const r=this.get(rr.multi,Ie,ye.Self);for(const a of r)a()}finally{In(t),A2(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(G1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new F(205,!1)}processProvider(t){let i=h3(t=ue(t))?t:ue(t&&t.provide);const n=function aI(e){return Y0(e)?S4(void 0,e.useValue):S4(jd(e),$s)}(t);if(h3(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=S4(void 0,$s,!0),r.factory=()=>K6(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===$s&&(i.value=iI,i.value=i.factory()),"object"==typeof i.value&&i.value&&function oI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=ue(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(t){const i=this._onDestroyHooks.indexOf(t);-1!==i&&this._onDestroyHooks.splice(i,1)}}function J0(e){const t=Xa(e),i=null!==t?t.factory:o3(e);if(null!==i)return i;if(e instanceof te)throw new F(204,!1);if(e instanceof Function)return function rI(e){const t=e.length;if(t>0)throw Zi(t,"?"),new F(204,!1);const i=function YL(e){return e&&(e[ts]||e[_f])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new F(204,!1)}function jd(e,t,i){let n;if(h3(e)){const r=ue(e);return o3(r)||J0(r)}if(Y0(e))n=()=>ue(e.useValue);else if(function Ud(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...K6(e.deps||[]));else if(function Bd(e){return!(!e||!e.useExisting)}(e))n=()=>q(ue(e.useExisting));else{const r=ue(e&&(e.useClass||e.provide));if(!function sI(e){return!!e.deps}(e))return o3(r)||J0(r);n=()=>new r(...K6(e.deps))}return n}function S4(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function X0(e,t){for(const i of e)Array.isArray(i)?X0(i,t):i&&P6(i)?X0(i.\u0275providers,t):t(i)}const Ks=new te("AppId",{providedIn:"root",factory:()=>lI}),lI="ng",Gd=new te("Platform Initializer"),z4=new te("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$d=new te("CSP nonce",{providedIn:"root",factory:()=>V4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Wd=(e,t,i)=>null;function ol(e,t,i=!1){return Wd(e,t,i)}class CI{}class Yd{}class MI{resolveComponentFactory(t){throw function yI(e){const t=Error(`No component factory found for ${G1(e)}.`);return t.ngComponent=e,t}(t)}}let eo=(()=>{class t{}return t.NULL=new MI,t})();function bI(){return N4(o2(),k())}function N4(e,t){return new Ne(T2(e,t))}let Ne=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=bI,t})();function wI(e){return e instanceof Ne?e.nativeElement:e}class ul{}let c2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function HI(){const e=k(),i=q2(o2().index,e);return(I2(i)?i:e)[he]}(),t})(),VI=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),t})();class or{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const DI=new or("16.2.4"),fl={};function eh(e,t=null,i=null,n){const r=th(e,t,i,n);return r.resolveInjectorInitializers(),r}function th(e,t=null,i=null,n,r=new Set){const a=[i||Ie,eI(e)];return n=n||("object"==typeof e?void 0:G1(e)),new qs(a,t||Ws(),n||null,r)}let B1=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return eh({name:""},r,n,"");{const a=n.name??"";return eh({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Ai,e.NULL=new q0,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>q(Od)}),e.__NG_ELEMENT_ID__=-1,t})();function pl(e){return t=>{setTimeout(e,void 0,t)}}const ee=class EI extends fe{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,n){let r=t,a=i||(()=>null),s=n;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),a=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(a=pl(a),r&&(r=pl(r)),s&&(s=pl(s)));const o=super.subscribe({next:r,error:a,complete:s});return t instanceof De&&t.add(o),o}};function nh(...e){}class Me{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new F(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)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function II(){const e="function"==typeof e1.requestAnimationFrame;let t=e1[e?"requestAnimationFrame":"setTimeout"],i=e1[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&i){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function RI(e){const t=()=>{!function OI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(e1,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,gl(e),e.isCheckStableRunning=!0,ml(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),gl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,a,s,o)=>{if(function PI(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(o))return i.invokeTask(r,a,s,o);try{return ih(e),i.invokeTask(r,a,s,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),rh(e)}},onInvoke:(i,n,r,a,s,o,c)=>{try{return ih(e),i.invoke(r,a,s,o,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),rh(e)}},onHasTask:(i,n,r,a)=>{i.hasTask(r,a),n===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,gl(e),ml(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,n,r,a)=>(i.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(!Me.isInAngularZone())throw new F(909,!1)}static assertNotInAngularZone(){if(Me.isInAngularZone())throw new F(909,!1)}run(t,i,n){return this._inner.run(t,i,n)}runTask(t,i,n,r){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+r,t,TI,nh,nh);try{return a.runTask(s,i,n)}finally{a.cancelTask(s)}}runGuarded(t,i,n){return this._inner.runGuarded(t,i,n)}runOutsideAngular(t){return this._outer.run(t)}}const TI={};function ml(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 gl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ih(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function rh(e){e._nesting--,ml(e)}class kI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(t,i,n){return t.apply(i,n)}runGuarded(t,i,n){return t.apply(i,n)}runOutsideAngular(t){return t()}runTask(t,i,n,r){return t.apply(i,n)}}const ah=new te("",{providedIn:"root",factory:sh});function sh(){const e=J(Me);let t=!0;return I6(new We(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new We(r=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{Me.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Me.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(T6()))}function pn(e){return e instanceof Function?e():e}let vl=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new F(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function cr(e){for(;e;){e[ge]|=64;const t=Xi(e);if(e0(e)&&!t)return e;e=t}return null}function _l(e){return e.ngOriginalError}class p3{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&_l(t);for(;i&&_l(i);)i=_l(i);return i||null}}const fh=new te("",{providedIn:"root",factory:()=>!1});let no=null;function mh(e,t){return e[t]??_h()}function gh(e,t){const i=_h();i.producerNode?.length&&(e[t]=no,i.lView=e,no=vh())}const YI={...us,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{cr(e.lView)},lView:null};function vh(){return Object.create(YI)}function _h(){return no??=vh(),no}const pe={};function C(e){Ch(Le(),k(),b2()+e,!1)}function Ch(e,t,i,n){if(!n)if(3==(3&t[ge])){const a=e.preOrderCheckHooks;null!==a&&_s(t,a,i)}else{const a=e.preOrderHooks;null!==a&&Cs(t,a,0,i)}c3(i)}function w(e,t=ye.Default){const i=k();return null===i?q(e,t):E9(o2(),i,ue(e),t)}function io(e,t,i,n,r,a,s,o,c,l,u){const d=t.blueprint.slice();return d[V1]=r,d[ge]=140|n,(null!==l||e&&2048&e[ge])&&(d[ge]|=2048),c9(d),d[p1]=d[r4]=e,d[N1]=i,d[i4]=s||e&&e[i4],d[he]=o||e&&e[he],d[Tn]=c||e&&e[Tn]||null,d[p2]=a,d[Pi]=function eE(){return XA++}(),d[ln]=u,d[kf]=l,d[A1]=2==t.type?e[A1]:d,d}function I4(e,t,i,n,r){let a=e.data[t];if(null===a)a=function Cl(e,t,i,n,r){const a=p9(),s=l0(),c=e.data[t]=function iT(e,t,i,n,r,a){let s=t?t.injectorIndex:-1,o=0;return l4()&&(o|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:o,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?a:a&&a.parent,i,t,n,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(s?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c,c.prev=a)),c}(e,t,i,n,r),function tA(){return ce.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=i,a.value=n,a.attrs=r;const s=function Gi(){const e=ce.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return $t(a,!0),a}function lr(e,t,i,n){if(0===i)return-1;const r=t.length;for(let a=0;a<i;a++)t.push(n),e.blueprint.push(n),e.data.push(null);return r}function Mh(e,t,i,n,r){const a=mh(t,Fi),s=b2(),o=2&n;try{c3(-1),o&&t.length>Ve&&Ch(e,t,Ve,!1),Gt(o?2:0,r);const l=o?a:null,u=fs(l);try{null!==l&&(l.dirty=!1),i(n,r)}finally{ds(l,u)}}finally{o&&null===t[Fi]&&gh(t,Fi),c3(s),Gt(o?3:1,r)}}function yl(e,t,i){if(X6(t)){const n=ut(null);try{const a=t.directiveEnd;for(let s=t.directiveStart;s<a;s++){const o=e.data[s];o.contentQueries&&o.contentQueries(1,i[s],s)}}finally{ut(n)}}}function Ml(e,t,i){h9()&&(function uT(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;s3(i)&&function vT(e,t,i){const n=T2(t,e),r=bh(i);let s=16;i.signals?s=4096:i.onPush&&(s=64);const o=ro(e,io(e,r,null,s,n,t,null,e[i4].rendererFactory.createRenderer(n,i),null,null,null));e[t.index]=o}(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||Ms(i,t),m2(n,t);const s=i.initialInputs;for(let o=r;o<a;o++){const c=e.data[o],l=l3(t,e,o,i);m2(l,t),null!==s&&_T(0,o-r,l,c,0,s),Dt(c)&&(q2(i.index,t)[N1]=l3(t,e,o,i))}}(e,t,i,T2(i,t)),64==(64&i.flags)&&Sh(e,t,i))}function bl(e,t,i=T2){const n=t.localNames;if(null!==n){let r=t.index+1;for(let a=0;a<n.length;a+=2){const s=n[a+1],o=-1===s?i(t,e):e[s];e[r++]=o}}}function bh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=wl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function wl(e,t,i,n,r,a,s,o,c,l,u){const d=Ve+n,p=d+r,m=function QI(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:pe);return i}(d,p),H="function"==typeof l?l():l;return m[K]={type:e,blueprint:m,template:i,queries:null,viewQuery:o,declTNode:t,data:m.slice().fill(null,d),bindingStartIndex:d,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 s?s():s,firstChild:null,schemas:c,consts:H,incompleteFirstPass:!1,ssrId:u}}let wh=e=>null;function Hh(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const a=e[r];null===n?Vh(i,t,r,a):n.hasOwnProperty(r)&&Vh(i,t,n[r],a)}return i}function Vh(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function Z2(e,t,i,n,r,a,s,o){const c=T2(t,i);let u,l=t.inputs;!o&&null!=l&&(u=l[n])?(zl(e,i,u,n,r),s3(t)&&function sT(e,t){const i=q2(t,e);16&i[ge]||(i[ge]|=64)}(i,t.index)):3&t.type&&(n=function aT(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(n),r=null!=s?s(r,t.value||"",n):r,a.setProperty(c,n,r))}function Hl(e,t,i,n){if(h9()){const r=null===n?null:{"":-1},a=function dT(e,t){const i=e.directiveRegistry;let n=null,r=null;if(i)for(let a=0;a<i.length;a++){const s=i[a];if(Af(t,s.selectors,!1))if(n||(n=[]),Dt(s))if(null!==s.findHostDirectiveDefs){const o=[];r=r||new Map,s.findHostDirectiveDefs(s,o,r),n.unshift(...o,s),Vl(e,t,o.length)}else n.unshift(s),Vl(e,t,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return null===n?null:[n,r]}(e,i);let s,o;null===a?s=o=null:[s,o]=a,null!==s&&Dh(e,t,i,s,r,o),r&&function hT(e,t,i){if(t){const n=e.localNames=[];for(let r=0;r<t.length;r+=2){const a=i[t[r+1]];if(null==a)throw new F(-301,!1);n.push(t[r],a)}}}(i,n,r)}i.mergedAttrs=Ti(i.mergedAttrs,i.attrs)}function Dh(e,t,i,n,r,a){for(let l=0;l<n.length;l++)M0(Ms(i,t),e,n[l].type);!function mT(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}(i,e.data.length,n.length);for(let l=0;l<n.length;l++){const u=n[l];u.providersResolver&&u.providersResolver(u)}let s=!1,o=!1,c=lr(e,t,n.length,null);for(let l=0;l<n.length;l++){const u=n[l];i.mergedAttrs=Ti(i.mergedAttrs,u.hostAttrs),gT(e,i,t,c,u),pT(c,u,r),null!==u.contentQueries&&(i.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(i.flags|=64);const d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(i.index),s=!0),!o&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(i.index),o=!0),c++}!function rT(e,t,i){const r=t.directiveEnd,a=e.data,s=t.attrs,o=[];let c=null,l=null;for(let u=t.directiveStart;u<r;u++){const d=a[u],p=i?i.get(d):null,H=p?p.outputs:null;c=Hh(d.inputs,u,c,p?p.inputs:null),l=Hh(d.outputs,u,l,H);const D=null===c||null===s||Nf(t)?null:CT(c,u,s);o.push(D)}null!==c&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=o,t.inputs=c,t.outputs=l}(e,i,a)}function Sh(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=i.index,s=function iA(){return ce.lFrame.currentDirectiveIndex}();try{c3(a);for(let o=n;o<r;o++){const c=e.data[o],l=t[o];f0(o),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&fT(c,l)}}finally{c3(-1),f0(s)}}function fT(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Vl(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function pT(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Dt(t)&&(i[""]=e)}}function gT(e,t,i,n,r){e.data[n]=r;const a=r.factory||(r.factory=o3(r.type)),s=new $i(a,Dt(r),w);e.blueprint[n]=s,i[n]=s,function cT(e,t,i,n,r){const a=r.hostBindings;if(a){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const o=~t.index;(function lT(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(s)!=o&&s.push(o),s.push(i,n,a)}}(e,t,n,lr(e,i,r.hostVars,pe),r)}function Kt(e,t,i,n,r,a){const s=T2(e,t);!function Dl(e,t,i,n,r,a,s){if(null==a)e.removeAttribute(t,r,i);else{const o=null==s?de(a):s(a,n||"",r);e.setAttribute(t,r,o,i)}}(t[he],s,a,e.value,i,n,r)}function _T(e,t,i,n,r,a){const s=a[t];if(null!==s)for(let o=0;o<s.length;)zh(n,i,s[o++],s[o++],s[o++])}function zh(e,t,i,n,r){const a=ut(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(n)&&(r=s[n].call(t,r)),null!==e.setInput?e.setInput(t,r,i,n):t[n]=r}finally{ut(a)}}function CT(e,t,i){let n=null,r=0;for(;r<i.length;){const a=i[r];if(0!==a)if(5!==a){if("number"==typeof a)break;if(e.hasOwnProperty(a)){null===n&&(n=[]);const s=e[a];for(let o=0;o<s.length;o+=2)if(s[o]===t){n.push(a,s[o+1],i[r+1]);break}}r+=2}else r+=2;else r+=4}return n}function xh(e,t,i,n){return[e,!0,!1,t,null,0,n,i,null,null,null]}function Lh(e,t){const i=e.contentQueries;if(null!==i)for(let n=0;n<i.length;n+=2){const a=i[n+1];if(-1!==a){const s=e.data[a];h0(i[n]),s.contentQueries(2,t[a],a)}}}function ro(e,t){return e[Ri]?e[Rf][Vt]=t:e[Ri]=t,e[Rf]=t,t}function Sl(e,t,i){h0(0);const n=ut(null);try{t(e,i)}finally{ut(n)}}function Nh(e){return e[n4]||(e[n4]=[])}function Ah(e){return e.cleanup||(e.cleanup=[])}function Ih(e,t){const i=e[Tn],n=i?i.get(p3,null):null;n&&n.handleError(t)}function zl(e,t,i,n,r){for(let a=0;a<i.length;){const s=i[a++],o=i[a++];zh(e.data[s],t[s],n,o,r)}}function mn(e,t,i){const n=ms(t,e);!function ld(e,t,i){e.setValue(t,i)}(e[he],n,i)}function yT(e,t){const i=q2(t,e),n=i[K];!function MT(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(n,i);const r=i[V1];null!==r&&null===i[ln]&&(i[ln]=ol(r,i[Tn])),xl(n,i,i[N1])}function xl(e,t,i){p0(t);try{const n=e.viewQuery;null!==n&&Sl(1,n,i);const r=e.template;null!==r&&Mh(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Lh(e,t),e.staticViewQueries&&Sl(2,e.viewQuery,i);const a=e.components;null!==a&&function bT(e,t){for(let i=0;i<t.length;i++)yT(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[ge]&=-5,m0()}}let Th=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(n,r,a){const s=typeof Zone>"u"?null:Zone.current,o=function EN(e,t,i){const n=Object.create(IN);i&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>Wf(n),run:()=>{if(n.dirty=!1,n.hasRun&&!qf(n))return;n.hasRun=!0;const s=fs(n);try{n.cleanupFn(),n.cleanupFn=t9,n.fn(r)}finally{ds(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(n,u=>{this.all.has(u)&&this.queue.set(u,s)},a);let c;this.all.add(o),o.notify();const l=()=>{o.cleanup(),c?.(),this.all.delete(o),this.queue.delete(o)};return c=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new e}),t})();function ao(e,t,i){let n=i?e.styles:null,r=i?e.classes:null,a=0;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?a=o:1==a?r=R6(r,o):2==a&&(n=R6(n,o+": "+t[++s]+";"))}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}function ur(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];null!==a&&n.push(t1(a)),y2(a)&&Oh(a,n);const s=i.type;if(8&s)ur(e,t,i.child,n);else if(32&s){const o=E0(i,t);let c;for(;c=o();)n.push(c)}else if(16&s){const o=_d(t,i);if(Array.isArray(o))n.push(...o);else{const c=Xi(t[A1]);ur(c[K],c,o,n,!0)}}i=r?i.projectionNext:i.next}return n}function Oh(e,t){for(let i=a2;i<e.length;i++){const n=e[i],r=n[K].firstChild;null!==r&&ur(n[K],n,r,t)}e[jt]!==e[V1]&&t.push(e[jt])}function so(e,t,i,n=!0){const r=t[i4],a=r.rendererFactory,s=r.afterRenderEventManager;a.begin?.(),s?.begin();try{Rh(e,t,e.template,i)}catch(c){throw n&&Ih(t,c),c}finally{a.end?.(),r.effectManager?.flush(),s?.end()}}function Rh(e,t,i,n){const r=t[ge];if(256!=(256&r)){t[i4].effectManager?.flush(),p0(t);try{c9(t),function g9(e){return ce.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&Mh(e,t,i,2,n);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&_s(t,l,null)}else{const l=e.preOrderHooks;null!==l&&Cs(t,l,0,null),g0(t,0)}if(function VT(e){for(let t=sd(e);null!==t;t=od(t)){if(!t[Pf])continue;const i=t[s4];for(let n=0;n<i.length;n++){GN(i[n])}}}(t),kh(t,2),null!==e.contentQueries&&Lh(e,t),s){const l=e.contentCheckHooks;null!==l&&_s(t,l)}else{const l=e.contentHooks;null!==l&&Cs(t,l,1),g0(t,1)}!function ZI(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const n=mh(t,Bi);try{for(let r=0;r<i.length;r++){const a=i[r];if(a<0)c3(~a);else{const s=a,o=i[++r],c=i[++r];nA(o,s),n.dirty=!1;const l=fs(n);try{c(2,t[s])}finally{ds(n,l)}}}}finally{null===t[Bi]&&gh(t,Bi),c3(-1)}}(e,t);const o=e.components;null!==o&&Fh(t,o,0);const c=e.viewQuery;if(null!==c&&Sl(2,c,n),s){const l=e.viewCheckHooks;null!==l&&_s(t,l)}else{const l=e.viewHooks;null!==l&&Cs(t,l,2),g0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ge]&=-73,l9(t)}finally{m0()}}}function kh(e,t){for(let i=sd(e);null!==i;i=od(i))for(let n=a2;n<i.length;n++)Ph(i[n],t)}function DT(e,t,i){Ph(q2(t,e),i)}function Ph(e,t){if(!function UN(e){return 128==(128&e[ge])}(e))return;const i=e[K],n=e[ge];if(80&n&&0===t||1024&n||2===t)Rh(i,e,i.template,e[N1]);else if(e[Oi]>0){kh(e,1);const r=i.components;null!==r&&Fh(e,r,1)}}function Fh(e,t,i){for(let n=0;n<t.length;n++)DT(e,t[n],i)}class fr{get rootNodes(){const t=this._lView,i=t[K];return ur(i,t,i.firstChild,[])}constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[N1]}set context(t){this._lView[N1]=t}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[p1];if(y2(t)){const i=t[8],n=i?i.indexOf(this):-1;n>-1&&(Os(t,n),Hs(i,n))}this._attachedToViewContainer=!1}T0(this._lView[K],this._lView)}onDestroy(t){!function f9(e,t){if(256==(256&e[ge]))throw new F(911,!1);null===e[On]&&(e[On]=[]),e[On].push(t)}(this._lView,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){so(this._lView[K],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new F(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function pE(e,t){tr(e,t,t[he],2,null,null)}(this._lView[K],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new F(902,!1);this._appRef=t}}class ST extends fr{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;so(t[K],t,t[N1],!1)}checkNoChanges(){}get context(){return null}}class Bh extends eo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=xe(t);return new dr(i,this.ngModule)}}function Uh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class xT{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=is(n);const r=this.injector.get(t,fl,n);return r!==fl||i===fl?r:this.parentInjector.get(t,i,n)}}class dr extends Yd{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=Uh(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Uh(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function mN(e){return e.map(pN).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let a=(r=r||this.ngModule)instanceof R2?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new xT(t,a):t,o=s.get(ul,null);if(null===o)throw new F(407,!1);const d={rendererFactory:o,sanitizer:s.get(VI,null),effectManager:s.get(Th,null),afterRenderEventManager:s.get(vl,null)},p=o.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",H=n?function JI(e,t,i,n){const a=n.get(fh,!1)||i===wt.ShadowDom,s=e.selectRootElement(t,a);return function XI(e){wh(e)}(s),s}(p,n,this.componentDef.encapsulation,s):Ts(p,m,function zT(e){const t=e.toLowerCase();return"svg"===t?a9:"math"===t?"math":null}(m)),E=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let z=null;null!==H&&(z=ol(H,s,!0));const B=wl(0,null,null,1,0,null,null,null,null,null,null),U=io(null,B,null,E,null,null,d,p,s,null,z);let G,ie;p0(U);try{const ve=this.componentDef;let we,ke=null;ve.findHostDirectiveDefs?(we=[],ke=new Map,ve.findHostDirectiveDefs(ve,we,ke),we.push(ve)):we=[ve];const b1=function NT(e,t){const i=e[K],n=Ve;return e[n]=t,I4(i,n,2,"#host",null)}(U,H),t2=function AT(e,t,i,n,r,a,s){const o=r[K];!function ET(e,t,i,n){for(const r of e)t.mergedAttrs=Ti(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(ao(t,t.mergedAttrs,!0),null!==i&&bd(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=ol(t,r[Tn]));const l=a.rendererFactory.createRenderer(t,i);let u=16;i.signals?u=4096:i.onPush&&(u=64);const d=io(r,bh(i),null,u,r[e.index],e,a,l,null,null,c);return o.firstCreatePass&&Vl(o,e,n.length-1),ro(r,d),r[e.index]=d}(b1,H,ve,we,U,d,p);ie=o9(B,Ve),H&&function TT(e,t,i,n){if(n)Q6(e,i,["ng-version",DI.full]);else{const{attrs:r,classes:a}=function gN(e){const t=[],i=[];let n=1,r=2;for(;n<e.length;){let a=e[n];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++n]):8===r&&i.push(a);else{if(!Ht(r))break;r=a}n++}return{attrs:t,classes:i}}(t.selectors[0]);r&&Q6(e,i,r),a&&a.length>0&&Md(e,i,a.join(" "))}}(p,ve,H,n),void 0!==i&&function OT(e,t,i){const n=e.projection=[];for(let r=0;r<t.length;r++){const a=i[r];n.push(null!=a?Array.from(a):null)}}(ie,this.ngContentSelectors,i),G=function IT(e,t,i,n,r,a){const s=o2(),o=r[K],c=T2(s,r);Dh(o,r,s,i,null,n);for(let u=0;u<i.length;u++)m2(l3(r,o,s.directiveStart+u,s),r);Sh(o,r,s),c&&m2(c,r);const l=l3(r,o,s.directiveStart+s.componentOffset,s);if(e[N1]=r[N1]=l,null!==a)for(const u of a)u(l,t);return yl(o,s,e),l}(t2,ve,we,ke,U,[RT]),xl(B,U,null)}finally{m0()}return new LT(this.componentType,G,N4(ie,U),U,ie)}}class LT extends CI{constructor(t,i,n,r,a){super(),this.location=n,this._rootLView=r,this._tNode=a,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ST(r),this.componentType=t}setInput(t,i){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),i))return;const a=this._rootLView;zl(a[K],a,r,t,i),this.previousInputValues.set(t,i),cr(q2(this._tNode.index,a))}}get injector(){return new w2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function RT(){const e=o2();vs(k()[K],e)}function re(e){let t=function jh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const n=[e];for(;t;){let r;if(Dt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new F(903,!1);r=t.\u0275dir}if(r){if(i){n.push(r);const s=e;s.inputs=oo(e.inputs),s.inputTransforms=oo(e.inputTransforms),s.declaredInputs=oo(e.declaredInputs),s.outputs=oo(e.outputs);const o=r.hostBindings;o&&BT(e,o);const c=r.viewQuery,l=r.contentQueries;if(c&&PT(e,c),l&&FT(e,l),Qa(e.inputs,r.inputs),Qa(e.declaredInputs,r.declaredInputs),Qa(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Qa(s.inputTransforms,r.inputTransforms)),Dt(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let s=0;s<a.length;s++){const o=a[s];o&&o.ngInherit&&o(e),o===re&&(i=!1)}}t=Object.getPrototypeOf(t)}!function kT(e){let t=0,i=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.hostVars=t+=r.hostVars,r.hostAttrs=Ti(r.hostAttrs,i=Ti(i,r.hostAttrs))}}(n)}function oo(e){return e===Bt?{}:e===Ie?[]:e}function PT(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function FT(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,a)=>{t(n,r,a),i(n,r,a)}:t}function BT(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function qh(e){const t=e.inputConfig,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}e.inputTransforms=i}function co(e){return!!function Ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function g2(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function m3(e,t,i,n){const r=g2(e,t,i);return g2(e,t+1,n)||r}function W(e,t,i,n){const r=k();return g2(r,u4(),t)&&(Le(),Kt(_1(),r,e,t,i,n)),W}function O4(e,t,i,n){return g2(e,u4(),i)?t+de(i)+n:pe}function R4(e,t,i,n,r,a){const o=m3(e,function un(){return ce.lFrame.bindingIndex}(),i,r);return fn(2),o?t+de(i)+n+de(r)+a:pe}function O(e,t,i,n,r,a,s,o){const c=k(),l=Le(),u=e+Ve,d=l.firstCreatePass?function fO(e,t,i,n,r,a,s,o,c){const l=t.consts,u=I4(t,e,4,s||null,kn(l,o));Hl(t,i,u,kn(l,c)),vs(t,u);const d=u.tView=wl(2,u,n,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,l,c,t,i,n,r,a,s):l.data[u];$t(d,!1);const p=sp(l,c,d,e);gs()&&ks(l,c,p,d),m2(p,c),ro(c,c[u]=xh(p,c,p,d)),cs(d)&&Ml(l,c,d),null!=s&&bl(c,d,o)}let sp=function op(e,t,i,n){return Pn(!0),t[he].createComment("")};function k2(e){return function c4(e,t){return e[t]}(function eA(){return ce.lFrame.contextLView}(),Ve+e)}function b(e,t,i){const n=k();return g2(n,u4(),t)&&Z2(Le(),_1(),n,e,t,n[he],i,!1),b}function Ol(e,t,i,n,r){const s=r?"class":"style";zl(e,i,t.inputs[s],s,n)}function g(e,t,i,n){const r=k(),a=Le(),s=Ve+e,o=r[he],c=a.firstCreatePass?function mO(e,t,i,n,r,a){const s=t.consts,c=I4(t,e,2,n,kn(s,r));return Hl(t,i,c,kn(s,a)),null!==c.attrs&&ao(c,c.attrs,!1),null!==c.mergedAttrs&&ao(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,a,r,t,i,n):a.data[s],l=cp(a,r,c,o,t,e);r[s]=l;const u=cs(c);return $t(c,!0),bd(o,l,c),32!=(32&c.flags)&&gs()&&ks(a,r,l,c),0===function WN(){return ce.lFrame.elementDepthCount}()&&m2(l,r),function qN(){ce.lFrame.elementDepthCount++}(),u&&(Ml(a,r,c),yl(a,c,r)),null!==n&&bl(r,c),g}function _(){let e=o2();l0()?u0():(e=e.parent,$t(e,!1));const t=e;(function YN(e){return ce.skipHydrationRootTNode===e})(t)&&function XN(){ce.skipHydrationRootTNode=null}(),function KN(){ce.lFrame.elementDepthCount--}();const i=Le();return i.firstCreatePass&&(vs(i,e),X6(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function dA(e){return 0!=(8&e.flags)}(t)&&Ol(i,t,k(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function hA(e){return 0!=(16&e.flags)}(t)&&Ol(i,t,k(),t.stylesWithoutHost,!1),_}function P(e,t,i,n){return g(e,t,i,n),_(),P}let cp=(e,t,i,n,r,a)=>(Pn(!0),Ts(n,r,function H9(){return ce.lFrame.currentNamespace}()));function I1(){return k()}function _r(e){return!!e&&"function"==typeof e.then}function fp(e){return!!e&&"function"==typeof e.subscribe}function R(e,t,i,n){const r=k(),a=Le(),s=o2();return function hp(e,t,i,n,r,a,s){const o=cs(n),l=e.firstCreatePass&&Ah(e),u=t[N1],d=Nh(t);let p=!0;if(3&n.type||s){const D=T2(n,t),x=s?s(D):D,E=d.length,z=s?U=>s(t1(U[n.index])):n.index;let B=null;if(!s&&o&&(B=function MO(e,t,i,n){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const s=r[a];if(s===i&&r[a+1]===n){const o=t[n4],c=r[a+2];return o.length>c?o[c]:null}"string"==typeof s&&(a+=2)}return null}(e,t,r,n.index)),null!==B)(B.__ngLastListenerFn__||B).__ngNextListenerFn__=a,B.__ngLastListenerFn__=a,p=!1;else{a=mp(n,t,u,a,!1);const U=i.listen(x,r,a);d.push(a,U),l&&l.push(r,z,E,E+1)}}else a=mp(n,t,u,a,!1);const m=n.outputs;let H;if(p&&null!==m&&(H=m[r])){const D=H.length;if(D)for(let x=0;x<D;x+=2){const G=t[H[x]][H[x+1]].subscribe(a),ie=d.length;d.push(a,G),l&&l.push(r,n.index,ie,-(ie+1))}}}(a,r,r[he],s,e,t,n),R}function pp(e,t,i,n){try{return Gt(6,t,i),!1!==i(n)}catch(r){return Ih(e,r),!1}finally{Gt(7,t,i)}}function mp(e,t,i,n,r){return function a(s){if(s===Function)return n;cr(e.componentOffset>-1?q2(e.index,t):t);let c=pp(t,i,n,s),l=a.__ngNextListenerFn__;for(;l;)c=pp(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function I(e=1){return function aA(e){return(ce.lFrame.contextLView=function sA(e,t){for(;e>0;)t=t[r4],e--;return t}(e,ce.lFrame.contextLView))[N1]}(e)}function bO(e,t){let i=null;const n=function uN(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(!(1&i))return t[i+1]}return null}(e);for(let r=0;r<t.length;r++){const a=t[r];if("*"!==a){if(null===n?Af(e,a,!0):hN(n,a))return r}else i=r}return i}function G4(e){const t=k()[A1][p2];if(!t.projection){const n=t.projection=Zi(e?e.length:1,null),r=n.slice();let a=t.child;for(;null!==a;){const s=e?bO(a,e):0;null!==s&&(r[s]?r[s].projectionNext=a:n[s]=a,r[s]=a),a=a.next}}}function $4(e,t=0,i){const n=k(),r=Le(),a=I4(r,Ve+e,16,null,i||null);null===a.projection&&(a.projection=t),u0(),(!n[ln]||l4())&&32!=(32&a.flags)&&function bE(e,t,i){yd(t[he],0,t,i,R0(e,i,t),pd(i.parent||t[p2],i,t))}(r,n,a)}function Pl(e,t,i){return W4(e,"",t,"",i),Pl}function W4(e,t,i,n,r){const a=k(),s=O4(a,t,i,n);return s!==pe&&Z2(Le(),_1(),a,e,s,a[he],r,!1),W4}function po(e,t){return e<<17|t<<2}function Bn(e){return e>>17&32767}function Fl(e){return 2|e}function g3(e){return(131068&e)>>2}function Bl(e,t){return-131069&e|t<<2}function Ul(e){return 1|e}function Hp(e,t,i,n,r){const a=e[i+1],s=null===t;let o=n?Bn(a):g3(a),c=!1;for(;0!==o&&(!1===c||s);){const u=e[o+1];zO(e[o],t)&&(c=!0,e[o+1]=n?Ul(u):Fl(u)),o=n?Bn(u):g3(u)}c&&(e[i+1]=n?Fl(a):Ul(a))}function zO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&y4(e,t)>=0}const W1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vp(e){return e.substring(W1.key,W1.keyEnd)}function Dp(e,t){const i=W1.textEnd;return i===t?-1:(t=W1.keyEnd=function AO(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,W1.key=t,i),q4(e,t,i))}function q4(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function ze(e,t){return function St(e,t,i,n){const r=k(),a=Le(),s=fn(2);a.firstUpdatePass&&Ep(a,e,s,n),t!==pe&&g2(r,s,t)&&Tp(a,a.data[b2()],r,r[he],e,r[s+1]=function jO(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G1(Y2(e)))),e}(t,i),n,s)}(e,t,null,!0),ze}function gn(e){!function zt(e,t,i,n){const r=Le(),a=fn(2);r.firstUpdatePass&&Ep(r,null,a,n);const s=k();if(i!==pe&&g2(s,a,i)){const o=r.data[b2()];if(Rp(o,n)&&!Ap(r,a)){let c=n?o.classesWithoutHost:o.stylesWithoutHost;null!==c&&(i=R6(c,i||"")),Ol(r,o,s,i,n)}else!function UO(e,t,i,n,r,a,s,o){r===pe&&(r=Ie);let c=0,l=0,u=0<r.length?r[0]:null,d=0<a.length?a[0]:null;for(;null!==u||null!==d;){const p=c<r.length?r[c+1]:void 0,m=l<a.length?a[l+1]:void 0;let D,H=null;u===d?(c+=2,l+=2,p!==m&&(H=d,D=m)):null===d||null!==u&&u<d?(c+=2,H=u):(l+=2,H=d,D=m),null!==H&&Tp(e,t,i,n,H,D,s,o),u=c<r.length?r[c]:null,d=l<a.length?a[l]:null}}(r,o,s,s[he],s[a+1],s[a+1]=function FO(e,t,i){if(null==i||""===i)return Ie;const n=[],r=Y2(i);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(n,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(n,a,r[a]);else"string"==typeof r&&t(n,r);return n}(e,t,i),n,a)}}(BO,Qt,e,!0)}function Qt(e,t){for(let i=function LO(e){return function zp(e){W1.key=0,W1.keyEnd=0,W1.value=0,W1.valueEnd=0,W1.textEnd=e.length}(e),Dp(e,q4(e,0,W1.textEnd))}(t);i>=0;i=Dp(t,i))K2(e,Vp(t),!0)}function Ap(e,t){return t>=e.expandoStartIndex}function Ep(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[b2()],s=Ap(e,i);Rp(a,n)&&null===t&&!s&&(t=!1),t=function OO(e,t,i,n){const r=function d0(e){const t=ce.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(i=Cr(i=jl(null,e,t,i,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=jl(r,e,t,i,n),null===a){let c=function RO(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==g3(n))return e[Bn(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=jl(null,e,t,c[1],n),c=Cr(c,t.attrs,n),function kO(e,t,i,n){e[Bn(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else a=function PO(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=Cr(n,e[a].hostAttrs,i);return Cr(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function DO(e,t,i,n,r,a){let s=a?t.classBindings:t.styleBindings,o=Bn(s),c=g3(s);e[n]=i;let u,l=!1;if(Array.isArray(i)?(u=i[1],(null===u||y4(i,u)>0)&&(l=!0)):u=i,r)if(0!==c){const p=Bn(e[o+1]);e[n+1]=po(p,o),0!==p&&(e[p+1]=Bl(e[p+1],n)),e[o+1]=function HO(e,t){return 131071&e|t<<17}(e[o+1],n)}else e[n+1]=po(o,0),0!==o&&(e[o+1]=Bl(e[o+1],n)),o=n;else e[n+1]=po(c,0),0===o?o=n:e[c+1]=Bl(e[c+1],n),c=n;l&&(e[n+1]=Fl(e[n+1])),Hp(e,u,n,!0),Hp(e,u,n,!1),function SO(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&y4(a,t)>=0&&(i[n+1]=Ul(i[n+1]))}(t,u,e,n,a),s=po(o,c),a?t.classBindings=s:t.styleBindings=s}(r,a,t,i,s,n)}}function jl(e,t,i,n,r){let a=null;const s=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o<s&&(a=t[o],n=Cr(n,a.hostAttrs,r),a!==e);)o++;return null!==e&&(i.directiveStylingLast=o),n}function Cr(e,t,i){const n=i?1:2;let r=-1;if(null!==t)for(let a=0;a<t.length;a++){const s=t[a];"number"==typeof s?r=s:r===n&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),K2(e,s,!!i||t[++a]))}return void 0===e?null:e}function BO(e,t,i){const n=String(t);""!==n&&!n.includes(" ")&&K2(e,n,i)}function Tp(e,t,i,n,r,a,s,o){if(!(3&t.type))return;const c=e.data,l=c[o+1],u=function VO(e){return 1==(1&e)}(l)?Op(c,t,i,r,g3(l),s):void 0;mo(u)||(mo(a)||function wO(e){return 2==(2&e)}(l)&&(a=Op(c,null,i,r,o,s)),function HE(e,t,i,n,r){if(t)r?e.addClass(i,n):e.removeClass(i,n);else{let a=-1===n.indexOf("-")?void 0:Fn.DashCase;null==r?e.removeStyle(i,n,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=Fn.Important),e.setStyle(i,n,r,a))}}(n,s,ms(b2(),i),r,a))}function Op(e,t,i,n,r,a){const s=null===t;let o;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let p=i[r+1];p===pe&&(p=d?Ie:void 0);let m=d?H0(p,n):u===n?p:void 0;if(l&&!mo(m)&&(m=H0(c,n)),mo(m)&&(o=m,s))return o;const H=e[r+1];r=s?Bn(H):g3(H)}if(null!==t){let c=a?t.residualClasses:t.residualStyles;null!=c&&(o=H0(c,n))}return o}function mo(e){return void 0!==e}function Rp(e,t){return 0!=(e.flags&(t?8:16))}function M(e,t=""){const i=k(),n=Le(),r=e+Ve,a=n.firstCreatePass?I4(n,r,1,t,null):n.data[r],s=kp(n,i,a,t,e);i[r]=s,gs()&&ks(n,i,s,a),$t(a,!1)}let kp=(e,t,i,n,r)=>(Pn(!0),function Is(e,t){return e.createText(t)}(t[he],n));function pt(e){return Q2("",e,""),pt}function Q2(e,t,i){const n=k(),r=O4(n,e,t,i);return r!==pe&&mn(n,b2(),r),Q2}function K4(e,t,i,n,r){const a=k(),s=R4(a,e,t,i,n,r);return s!==pe&&mn(a,b2(),s),K4}function H2(e,t,i){const n=k();return g2(n,u4(),t)&&Z2(Le(),_1(),n,e,t,n[he],i,!0),H2}const Z4="en-US";let rm=Z4;function Wl(e,t,i,n,r){if(e=ue(e),Array.isArray(e))for(let a=0;a<e.length;a++)Wl(e[a],t,i,n,r);else{const a=Le(),s=k(),o=o2();let c=h3(e)?e:ue(e.provide);const l=jd(e),u=1048575&o.providerIndexes,d=o.directiveStart,p=o.providerIndexes>>20;if(h3(e)||!e.multi){const m=new $i(l,r,w),H=Kl(c,t,r?u:u+p,d);-1===H?(M0(Ms(o,s),a,c),ql(a,e,t.length),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(m),s.push(m)):(i[H]=m,s[H]=m)}else{const m=Kl(c,t,u+p,d),H=Kl(c,t,u,u+p),x=H>=0&&i[H];if(r&&!x||!r&&!(m>=0&&i[m])){M0(Ms(o,s),a,c);const E=function lk(e,t,i,n,r){const a=new $i(e,i,w);return a.multi=[],a.index=t,a.componentProviders=0,xm(a,r,n&&!i),a}(r?ck:ok,i.length,r,n,l);!r&&x&&(i[H].providerFactory=E),ql(a,e,t.length,0),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(E),s.push(E)}else ql(a,e,m>-1?m:H,xm(i[r?H:m],l,!r&&n));!r&&n&&x&&i[H].componentProviders++}}}function ql(e,t,i,n){const r=h3(t),a=function nI(e){return!!e.useClass}(t);if(r||a){const c=(a?ue(t.useClass):t).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const u=l.indexOf(i);-1===u?l.push(i,[n,c]):l[u+1].push(n,c)}else l.push(i,c)}}}function xm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Kl(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function ok(e,t,i,n){return Yl(this.multi,[])}function ck(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,o=l3(i,i[K],this.providerFactory.index,n);a=o.slice(0,s),Yl(r,a);for(let c=s;c<o.length;c++)a.push(o[c])}else a=[],Yl(r,a);return a}function Yl(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function Ye(e,t=[]){return i=>{i.providersResolver=(n,r)=>function sk(e,t,i){const n=Le();if(n.firstCreatePass){const r=Dt(e);Wl(i,n.data,n.blueprint,r,!0),Wl(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class _3{}class Lm{}class Zl extends _3{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bh(this);const r=W2(t);this._bootstrapComponents=pn(r.bootstrap),this._r3Injector=th(t,i,[{provide:_3,useValue:this},{provide:eo,useValue:this.componentFactoryResolver},...n],G1(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ql extends Lm{constructor(t){super(),this.moduleType=t}create(t){return new Zl(this.moduleType,t,[])}}class Nm extends _3{constructor(t){super(),this.componentFactoryResolver=new Bh(this),this.instance=null;const i=new qs([...t.providers,{provide:_3,useValue:this},{provide:eo,useValue:this.componentFactoryResolver}],t.parent||Ws(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Jl(e,t,i=null){return new Nm({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let dk=(()=>{var e;class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Pd(0,n.type),a=r.length>0?Jl([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=$({token:e,providedIn:"environment",factory:()=>new e(q(R2))}),t})();function D2(e){e.getStandaloneInjector=t=>t.get(dk).getOrCreateStandaloneInjector(e)}function Sr(e,t,i,n,r){return function Pm(e,t,i,n,r,a,s){const o=t+i;return m3(e,o,r,a)?function Yt(e,t,i){return e[t]=i}(e,o+2,s?n.call(s,r,a):n(r,a)):function zr(e,t){const i=e[t];return i===pe?void 0:i}(e,o+2)}(k(),function M2(){const e=ce.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,i,n,r)}function Tk(){return this._results[Symbol.iterator]()}class t8{get changes(){return this._changes||(this._changes=new ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=t8.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Tk)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,i){return this._results.reduce(t,i)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,i){const n=this;n.dirty=!1;const r=function ft(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function SA(e,t,i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],a=t[n];if(i&&(r=i(r),a=i(a)),a!==r)return!1}return!0}(n._results,r,i))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function Rk(e,t,i,n=!0){const r=t[K];if(function gE(e,t,i,n){const r=a2+n,a=i.length;n>0&&(i[r-1][Vt]=t),n<a-a2?(t[Vt]=i[r],P9(i,a2+n,t)):(i.push(t),t[Vt]=null),t[p1]=i;const s=t[ki];null!==s&&i!==s&&function vE(e,t){const i=e[s4];t[A1]!==t[p1][p1][A1]&&(e[Pf]=!0),null===i?e[s4]=[t]:i.push(t)}(s,t);const o=t[Ut];null!==o&&o.insertView(e),t[ge]|=128}(r,t,e,i),n){const a=P0(i,e),s=t[he],o=Rs(s,e[jt]);null!==o&&function hE(e,t,i,n,r,a){n[V1]=r,n[p2]=t,tr(e,n,i,1,r,a)}(r,e[p2],s,t,o,a)}}let o1=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fk,t})();const kk=o1,Pk=class extends kk{constructor(t,i,n){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,i){return this.createEmbeddedViewImpl(t,i)}createEmbeddedViewImpl(t,i,n){const r=function Ok(e,t,i,n){const r=t.tView,o=io(e,r,i,4096&e[ge]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);o[ki]=e[t.index];const l=e[Ut];return null!==l&&(o[Ut]=l.createEmbeddedView(r)),xl(r,o,i),o}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new fr(r)}};function Fk(){return yo(o2(),k())}function yo(e,t){return 4&e.type?new Pk(t,e,N4(e,t)):null}let F2=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wk,t})();function Wk(){return Ym(o2(),k())}const qk=F2,qm=class extends qk{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return N4(this._hostTNode,this._hostLView)}get injector(){return new w2(this._hostTNode,this._hostLView)}get parentInjector(){const t=bs(this._hostTNode,this._hostLView);if(_0(t)){const i=qi(t,this._hostLView),n=Wi(t);return new w2(i[K].data[n+8],i)}return new w2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Km(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-a2}createEmbeddedView(t,i,n){let r,a;"number"==typeof n?r=n:null!=n&&(r=n.index,a=n.injector);const o=t.createEmbeddedViewImpl(i||{},a,null);return this.insertImpl(o,r,false),o}createComponent(t,i,n,r,a){const s=t&&!function Yi(e){return"function"==typeof e}(t);let o;if(s)o=i;else{const D=i||{};o=D.index,n=D.injector,r=D.projectableNodes,a=D.environmentInjector||D.ngModuleRef}const c=s?t:new dr(xe(t)),l=n||this.parentInjector;if(!a&&null==c.ngModule){const x=(s?l:this.parentInjector).get(R2,null);x&&(a=x)}xe(c.componentType??{});const m=c.create(l,r,null,a);return this.insertImpl(m.hostView,o,false),m}insert(t,i){return this.insertImpl(t,i,!1)}insertImpl(t,i,n){const r=t._lView;if(function jN(e){return y2(e[p1])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[p1],u=new qm(l,l[p2],l[p1]);u.detach(u.indexOf(t))}}const s=this._adjustIndex(i),o=this._lContainer;return Rk(o,r,s,!n),t.attachToViewContainerRef(),P9(n8(o),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=Km(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=Os(this._lContainer,i);n&&(Hs(n8(this._lContainer),i),T0(n[K],n))}detach(t){const i=this._adjustIndex(t,-1),n=Os(this._lContainer,i);return n&&null!=Hs(n8(this._lContainer),i)?new fr(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function Km(e){return e[8]}function n8(e){return e[8]||(e[8]=[])}function Ym(e,t){let i;const n=t[e.index];return y2(n)?i=n:(i=xh(n,t,null,e),t[e.index]=i,ro(t,i)),Zm(i,t,e,n),new qm(i,e,t)}let Zm=function Qm(e,t,i,n){if(e[jt])return;let r;r=8&i.type?t1(n):function Kk(e,t){const i=e[he],n=i.createComment(""),r=T2(t,e);return f3(i,Rs(i,r),n,function ME(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[jt]=r};class i8{constructor(t){this.queryList=t,this.matches=null}clone(){return new i8(this.queryList)}setDirty(){this.queryList.setDirty()}}class r8{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const n=null!==t.contentQueries?t.contentQueries[0]:i.length,r=[];for(let a=0;a<n;a++){const s=i.getByIndex(a);r.push(this.queries[s.indexInDeclarationView].clone())}return new r8(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==ng(t,i).matches&&this.queries[i].setDirty()}}class Jm{constructor(t,i,n=null){this.predicate=t,this.flags=i,this.read=n}}class a8{constructor(t=[]){this.queries=t}elementStart(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let n=0;n<this.length;n++){const r=null!==i?i.length:0,a=this.getByIndex(n).embeddedTView(t,r);a&&(a.indexInDeclarationView=n,null!==i?i.push(a):i=[a])}return null!==i?new a8(i):null}template(t,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class s8{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new s8(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==i;)n=n.parent;return i===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const a=n[r];this.matchTNodeWithReadOption(t,i,Qk(i,a)),this.matchTNodeWithReadOption(t,i,ws(i,t,a,!1,!1))}else n===o1?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,ws(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ne||r===F2||r===o1&&4&i.type)this.addMatch(i.index,-2);else{const a=ws(i,t,r,!1,!1);null!==a&&this.addMatch(i.index,a)}else this.addMatch(i.index,n)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function Qk(e,t){const i=e.localNames;if(null!==i)for(let n=0;n<i.length;n+=2)if(i[n]===t)return i[n+1];return null}function Xk(e,t,i,n){return-1===i?function Jk(e,t){return 11&e.type?N4(e,t):4&e.type?yo(e,t):null}(t,e):-2===i?function eP(e,t,i){return i===Ne?N4(t,e):i===o1?yo(t,e):i===F2?Ym(t,e):void 0}(e,t,n):l3(e,e[K],i,t)}function Xm(e,t,i,n){const r=t[Ut].queries[n];if(null===r.matches){const a=e.data,s=i.matches,o=[];for(let c=0;c<s.length;c+=2){const l=s[c];o.push(l<0?null:Xk(t,a[l],s[c+1],i.metadata.read))}r.matches=o}return r.matches}function o8(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const s=Xm(e,t,r,i);for(let o=0;o<a.length;o+=2){const c=a[o];if(c>0)n.push(s[o/2]);else{const l=a[o+1],u=t[-c];for(let d=a2;d<u.length;d++){const p=u[d];p[ki]===p[p1]&&o8(p[K],p,l,n)}if(null!==u[s4]){const d=u[s4];for(let p=0;p<d.length;p++){const m=d[p];o8(m[K],m,l,n)}}}}}return n}function je(e){const t=k(),i=Le(),n=_9();h0(n+1);const r=ng(i,n);if(e.dirty&&function BN(e){return 4==(4&e[ge])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?o8(i,t,n,[]):Xm(i,t,r,n);e.reset(a,wI),e.notifyOnChanges()}return!0}return!1}function C1(e,t,i,n){const r=Le();if(r.firstCreatePass){const a=o2();tg(r,new Jm(t,i,n),a.index),function nP(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(r,e),2==(2&i)&&(r.staticContentQueries=!0)}eg(r,k(),i)}function Ge(){return function tP(e,t){return e[Ut].queries[t].queryList}(k(),_9())}function eg(e,t,i){const n=new t8(4==(4&i));(function nT(e,t,i,n){const r=Nh(t);r.push(i),e.firstCreatePass&&Ah(e).push(n,r.length-1)})(e,t,n,n.destroy),null===t[Ut]&&(t[Ut]=new r8),t[Ut].queries.push(new i8(n))}function tg(e,t,i){null===e.queries&&(e.queries=new a8),e.queries.track(new s8(t,i))}function ng(e,t){return e.queries.getByIndex(t)}function S2(e,t){return yo(e,t)}const h8=new te("Application Initializer");let p8=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=J(h8,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(_r(s))n.push(s);else if(fp(s)){const o=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(a=>{this.reject(a)}),0===n.length&&r(),this.initialized=!0}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Cg=(()=>{var e;class t{log(n){console.log(n)}warn(n){console.warn(n)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const xt=new te("LocaleId",{providedIn:"root",factory:()=>J(xt,ye.Optional|ye.SkipSelf)||function wP(){return typeof $localize<"u"&&$localize.locale||Z4}()});let yg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ct(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class DP{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let Mg=(()=>{var e;class t{compileModuleSync(n){return new Ql(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=pn(W2(n).declarations).reduce((o,c)=>{const l=xe(c);return l&&o.push(new dr(l)),o},[]);return new DP(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Vg=new te(""),Ho=new te("");let C8,v8=(()=>{var e;class t{constructor(n,r,a){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,C8||(function WP(e){C8=e}(a),a.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Me.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,a){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:a})}whenStable(n,r,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,a){return[]}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Me),q(_8),q(Ho))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),_8=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return C8?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Un=null;const Dg=new te("AllowMultipleToken"),y8=new te("PlatformDestroyListeners"),M8=new te("appBootstrapListener");class zg{constructor(t,i){this.name=t,this.token=i}}function Lg(e,t,i=[]){const n=`Platform: ${t}`,r=new te(n);return(a=[])=>{let s=b8();if(!s||s.injector.get(Dg,!1)){const o=[...i,...a,{provide:r,useValue:!0}];e?e(o):function YP(e){if(Un&&!Un.get(Dg,!1))throw new F(400,!1);(function Sg(){!function zN(e){Qf=e}(()=>{throw new F(600,!1)})})(),Un=e;const t=e.get(Ag);(function xg(e){e.get(Gd,null)?.forEach(i=>i())})(e)}(function Ng(e=[],t){return B1.create({name:t,providers:[{provide:Z0,useValue:"platform"},{provide:y8,useValue:new Set([()=>Un=null])},...e]})}(o,n))}return function QP(e){const t=b8();if(!t)throw new F(401,!1);return t}()}}function b8(){return Un?.get(Ag)??null}let Ag=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function JP(e="zone.js",t){return"noop"===e?new kI:"zone.js"===e?new Me(t):e}(r?.ngZone,function Eg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return a.run(()=>{const s=function fk(e,t,i){return new Zl(e,t,i)}(n.moduleType,this.injector,function kg(e){return[{provide:Me,useFactory:e},{provide:rr,multi:!0,useFactory:()=>{const t=J(eF,{optional:!0});return()=>t.initialize()}},{provide:Rg,useFactory:XP},{provide:ah,useFactory:sh}]}(()=>a)),o=s.injector.get(p3,null);return a.runOutsideAngular(()=>{const c=a.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{Vo(this._modules,s),c.unsubscribe()})}),function Ig(e,t,i){try{const n=i();return _r(n)?n.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}(o,a,()=>{const c=s.injector.get(p8);return c.runInitializers(),c.donePromise.then(()=>(function am(e){lt(e,"Expected localeId to be defined"),"string"==typeof e&&(rm=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(xt,Z4)||Z4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const a=Tg({},r);return function qP(e,t,i){const n=new Ql(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const r=n.injector.get(Jt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>r.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new F(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new F(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(y8,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(n){return new(n||e)(q(B1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function Tg(e,t){return Array.isArray(t)?t.reduce(Tg,e):{...e,...t}}let Jt=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(Rg),this.zoneIsStable=J(ah),this.componentTypes=[],this.components=[],this.isStable=J(yg).hasPendingTasks.pipe(bt(n=>n?ae(!1):this.zoneIsStable),function mf(e,t=Mt){return e=e??BL,f1((i,n)=>{let r,a=!0;i.subscribe(qe(n,s=>{const o=t(s);(a||!e(r,o))&&(a=!1,r=o,n.next(s))}))})}(),T6()),this._injector=J(R2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof Yd;if(!this._injector.get(p8).done)throw!a&&function t4(e){const t=xe(e)||r2(e)||C2(e);return null!==t&&t.standalone}(n),new F(405,!1);let o;o=a?n:this._injector.get(eo).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const c=function KP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(_3),u=o.create(B1.NULL,[],r||o.selector,c),d=u.location.nativeElement,p=u.injector.get(Vg,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Vo(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new F(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Vo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(M8,[]);r.push(...this._bootstrapListeners),r.forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Vo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new F(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Vo(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Rg=new te("",{providedIn:"root",factory:()=>J(p3).handleError.bind(void 0)});function XP(){const e=J(Me),t=J(p3);return i=>e.runOutsideAngular(()=>t.handleError(i))}let eF=(()=>{var e;class t{constructor(){this.zone=J(Me),this.applicationRef=J(Jt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let J2=(()=>{class t{}return t.__NG_ELEMENT_ID__=nF,t})();function nF(e){return function iF(e,t,i){if(s3(e)&&!i){const n=q2(e.index,t);return new fr(n,n)}return 47&e.type?new fr(t[A1],t):null}(o2(),k(),16==(16&e))}class Ug{constructor(){}supports(t){return co(t)}create(t){return new lF(t)}}const cF=(e,t)=>t;class lF{constructor(t){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=t||cF}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,n=this._removalsHead,r=0,a=null;for(;i||n;){const s=!n||i&&i.currentIndex<Gg(n,r,a)?i:n,o=Gg(s,r,a),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,null==s.previousIndex)r++;else{a||(a=[]);const l=o-r,u=c-r;if(l!=u){for(let p=0;p<l;p++){const m=p<a.length?a[p]:a[p]=0,H=m+p;u<=H&&H<l&&(a[p]=m+1)}a[s.previousIndex]=u-l}}o!==c&&t(s,o,c)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!co(t))throw new F(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,a,s,i=this._itHead,n=!1;if(Array.isArray(t)){this.length=t.length;for(let o=0;o<this.length;o++)a=t[o],s=this._trackByFn(o,a),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,a,s,o)),Object.is(i.item,a)||this._addIdentityChange(i,a)):(i=this._mismatch(i,a,s,o),n=!0),i=i._next}else r=0,function qT(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[Symbol.iterator]();let n;for(;!(n=i.next()).done;)t(n.value)}}(t,o=>{s=this._trackByFn(r,o),null!==i&&Object.is(i.trackById,s)?(n&&(i=this._verifyReinsertion(i,o,s,r)),Object.is(i.item,o)||this._addIdentityChange(i,o)):(i=this._mismatch(i,o,s,r),n=!0),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,i,n,r){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,a,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,a,r)):t=this._addAfter(new uF(i,n),a,r),t}_verifyReinsertion(t,i,n,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==a?t=this._reinsertAfter(a,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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(t,i,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,a=t._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(t,i,n),this._addToMoves(t,n),t}_moveAfter(t,i,n){return this._unlink(t),this._insertAfter(t,i,n),this._addToMoves(t,n),t}_addAfter(t,i,n){return this._insertAfter(t,i,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,n){const r=null===i?this._itHead:i._next;return t._next=r,t._prev=i,null===r?this._itTail=t:r._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new jg),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,n=t._next;return null===i?this._itHead=n:i._next=n,null===n?this._itTail=i:n._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new jg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class uF{constructor(t,i){this.item=t,this.trackById=i,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 fF{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,i){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===i||i<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const i=t._prevDup,n=t._nextDup;return null===i?this._head=n:i._nextDup=n,null===n?this._tail=i:n._prevDup=i,null===this._head}}class jg{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new fF,this.map.set(i,n)),n.add(t)}get(t,i){const r=this.map.get(t);return r?r.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Gg(e,t,i){const n=e.previousIndex;if(null===n)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+t+r}function Wg(){return new zo([new Ug])}let zo=(()=>{var e;class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const a=r.factories.slice();n=n.concat(a)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Wg()),deps:[[t,new Ss,new Ds]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(null!=r)return r;throw new F(901,!1)}}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:Wg}),t})();const gF=Lg(null,"core",[]);let vF=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Jt))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function X4(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function z8(e,t){const i=xe(e),n=t.elementInjector||Ws();return new dr(i).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let x8=null;function jn(){return x8}class NF{}const y1=new te("DocumentToken");let L8=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(EF)},providedIn:"platform"}),t})();const AF=new te("Location Initialized");let EF=(()=>{var e;class t extends L8{constructor(){super(),this._doc=J(y1),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jn().getBaseHref(this._doc)}onPopState(n){const r=jn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=jn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,a){this._history.pushState(n,r,a)}replaceState(n,r,a){this._history.replaceState(n,r,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function N8(e,t){if(0==e.length)return t;if(0==t.length)return e;let i=0;return e.endsWith("/")&&i++,t.startsWith("/")&&i++,2==i?e+t.substring(1):1==i?e+t:e+"/"+t}function nv(e){const t=e.match(/#|\?|$/),i=t&&t.index||e.length;return e.slice(0,i-("/"===e[i-1]?1:0))+e.slice(i)}function vn(e){return e&&"?"!==e[0]?"?"+e:e}let Gn=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(rv)},providedIn:"root"}),t})();const iv=new te("appBaseHref");let rv=(()=>{var e;class t extends Gn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??J(y1).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return N8(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+vn(this._platformLocation.search),a=this._platformLocation.hash;return a&&n?`${r}${a}`:r}pushState(n,r,a,s){const o=this.prepareExternalUrl(a+vn(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){const o=this.prepareExternalUrl(a+vn(s));this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(L8),q(iv,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),av=(()=>{var e;class t extends Gn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=N8(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,a,s){let o=this.prepareExternalUrl(a+vn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,a,s){let o=this.prepareExternalUrl(a+vn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(L8),q(iv,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})(),A8=(()=>{var e;class t{constructor(n){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function OF(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(nv(sv(r))),this._locationStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+vn(r))}normalize(n){return t.stripTrailingSlash(function TF(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,sv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",a=null){this._locationStrategy.pushState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vn(r)),a)}replaceState(n,r="",a=null){this._locationStrategy.replaceState(a,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vn(r)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(a=>a(n,r))}subscribe(n,r,a){return this._subject.subscribe({next:n,error:r,complete:a})}}return(e=t).normalizeQueryParams=vn,e.joinWithSlash=N8,e.stripTrailingSlash=nv,e.\u0275fac=function(n){return new(n||e)(q(Gn))},e.\u0275prov=$({token:e,factory:function(){return function IF(){return new A8(q(Gn))}()},providedIn:"root"}),t})();function sv(e){return e.replace(/\/index.html$/,"")}class yB{constructor(t,i,n,r){this.$implicit=t,this.ngForOf=i,this.index=n,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 Xt=(()=>{var e;class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,a){this._viewContainer=n,this._template=r,this._differs=a,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((a,s,o)=>{if(null==a.previousIndex)r.createEmbeddedView(this._template,new yB(a.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)r.remove(null===s?void 0:s);else if(null!==s){const c=r.get(s);r.move(c,o),Cv(c,a)}});for(let a=0,s=r.length;a<s;a++){const c=r.get(a).context;c.index=a,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(a=>{Cv(r.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2),w(o1),w(zo))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Cv(e,t){e.context.$implicit=t.item}let O1=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new MB,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){yv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){yv("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2),w(o1))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class MB{constructor(){this.$implicit=null,this.ngIf=null}}function yv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${G1(t)}'.`)}let M3=(()=>{var e;class t{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(n.ngTemplateOutlet||n.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:a,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=r.createEmbeddedView(a,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&n.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(F2))},e.\u0275dir=j({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[v1]}),t})(),KB=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function Hv(e){return"server"===e}let JB=(()=>{var e;class t{}return(e=t).\u0275prov=$({token:e,providedIn:"root",factory:()=>new XB(q(y1),window)}),t})();class XB{constructor(t,i){this.document=t,this.window=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const i=function eU(e,t){const i=e.getElementById(t)||e.getElementsByName(t)[0];if(i)return i;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const a=r.shadowRoot;if(a){const s=a.getElementById(t)||a.querySelector(`[name="${t}"]`);if(s)return s}r=n.nextNode()}}return null}(this.document,t);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(t){this.supportsScrolling()&&(this.window.history.scrollRestoration=t)}scrollToElement(t){const i=t.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class HU extends NF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Z8 extends HU{static makeCurrent(){!function LF(e){x8||(x8=e)}(new Z8)}onAndCancel(t,i,n){return t.addEventListener(i,n),()=>{t.removeEventListener(i,n)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return(i=i||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return"window"===i?window:"document"===i?t:"body"===i?t.body:null}getBaseHref(t){const i=function VU(){return Or=Or||document.querySelector("base"),Or?Or.getAttribute("href"):null}();return null==i?null:function DU(e){Uo=Uo||document.createElement("a"),Uo.setAttribute("href",e);const t=Uo.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Or=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function vB(e,t){t=encodeURIComponent(t);for(const i of e.split(";")){const n=i.indexOf("="),[r,a]=-1==n?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===t)return decodeURIComponent(a)}return null}(document.cookie,t)}}let Uo,Or=null,zU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const Q8=new te("EventManagerPlugins");let xv=(()=>{var e;class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(a=>{a.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,a){return this._findPluginFor(r).addEventListener(n,r,a)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new F(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Q8),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class Lv{constructor(t){this._doc=t}}const J8="ng-app-id";let Nv=(()=>{var e;class t{constructor(n,r,a,s={}){this.doc=n,this.appId=r,this.nonce=a,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Hv(s),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(a=>a.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${J8}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(a=>{null!=a.textContent&&r.set(a.textContent,a)}),r}return null}changeUsageCount(n,r){const a=this.styleRef;if(a.has(n)){const s=a.get(n);return s.usage+=r,s.usage}return a.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const a=this.styleNodesInDOM,s=a?.get(r);if(s?.parentNode===n)return a.delete(r),s.removeAttribute(J8),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(J8,this.appId),o}}addStyleToHost(n,r){const a=this.getStyleElement(n,r);n.appendChild(a);const s=this.styleRef,o=s.get(r)?.elements;o?o.push(a):s.set(r,{elements:[a],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1),q(Ks),q($d,8),q(z4))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const X8={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/"},e5=/%COMP%/g,AU=new te("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Ev(e,t){return t.map(i=>i.replace(e5,e))}let Iv=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=a,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Hv(c),this.defaultRenderer=new t5(n,o,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===wt.ShadowDom&&(r={...r,encapsulation:wt.Emulated});const a=this.getOrCreateRenderer(n,r);return a instanceof Ov?a.applyToHost(n):a instanceof n5&&a.applyStyles(),a}getOrCreateRenderer(n,r){const a=this.rendererByCompId;let s=a.get(r.id);if(!s){const o=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case wt.Emulated:s=new Ov(l,u,r,this.appId,d,o,c,p);break;case wt.ShadowDom:return new OU(l,u,n,r,o,c,this.nonce,p);default:s=new n5(l,u,r,d,o,c,p)}a.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(xv),q(Nv),q(Ks),q(AU),q(y1),q(z4),q(Me),q($d))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();class t5{constructor(t,i,n,r){this.eventManager=t,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(X8[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(Tv(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(Tv(t)?t.content:t).insertBefore(i,n)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new F(-5104,!1);return i||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,n,r){if(r){i=r+":"+i;const a=X8[r];a?t.setAttributeNS(a,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=X8[n];r?t.removeAttributeNS(r,i):t.removeAttribute(`${n}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,n,r){r&(Fn.DashCase|Fn.Important)?t.style.setProperty(i,n,r&Fn.Important?"important":""):t.style[i]=n}removeStyle(t,i,n){n&Fn.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,n){t[i]=n}setValue(t,i){t.nodeValue=i}listen(t,i,n){if("string"==typeof t&&!(t=jn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(n))}decoratePreventDefault(t){return i=>{if("__ngUnwrap__"===i)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))&&i.preventDefault()}}}function Tv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class OU extends t5{constructor(t,i,n,r,a,s,o,c){super(t,a,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Ev(r.id,r.styles);for(const u of l){const d=document.createElement("style");o&&d.setAttribute("nonce",o),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,n){return super.insertBefore(this.nodeOrShadowRoot(t),i,n)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class n5 extends t5{constructor(t,i,n,r,a,s,o,c){super(t,a,s,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Ev(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ov extends n5{constructor(t,i,n,r,a,s,o,c){const l=r+"-"+n.id;super(t,i,n,a,s,o,c,l),this.contentAttr=function EU(e){return"_ngcontent-%COMP%".replace(e5,e)}(l),this.hostAttr=function IU(e){return"_nghost-%COMP%".replace(e5,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){const n=super.createElement(t,i);return super.setAttribute(n,this.contentAttr,""),n}}let RU=(()=>{var e;class t extends Lv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,a){return n.addEventListener(r,a,!1),()=>this.removeEventListener(n,r,a)}removeEventListener(n,r,a){return n.removeEventListener(r,a)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const Rv=["alt","control","meta","shift"],kU={"\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"},PU={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let FU=(()=>{var e;class t extends Lv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,a){const s=t.parseEventName(r),o=t.eventCallback(s.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>jn().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const r=n.toLowerCase().split("."),a=r.shift();if(0===r.length||"keydown"!==a&&"keyup"!==a)return null;const s=t._normalizeKey(r.pop());let o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),Rv.forEach(u=>{const d=r.indexOf(u);d>-1&&(r.splice(d,1),o+=u+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=a,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let a=kU[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(a=n.code,s="code."),!(null==a||!a)&&(a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Rv.forEach(o=>{o!==a&&(0,PU[o])(n)&&(s+=o+".")}),s+=a,s===r)}static eventCallback(n,r,a){return s=>{t.matchEventFullKeyCode(s,n)&&a.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();const GU=Lg(gF,"browser",[{provide:z4,useValue:"browser"},{provide:Gd,useValue:function BU(){Z8.makeCurrent()},multi:!0},{provide:y1,useFactory:function jU(){return function xE(e){U0=e}(document),document},deps:[]}]),$U=new te(""),Fv=[{provide:Ho,useClass:class SU{addToWindow(t){e1.getAngularTestability=(n,r=!0)=>{const a=t.findTestabilityInTree(n,r);if(null==a)throw new F(5103,!1);return a},e1.getAllAngularTestabilities=()=>t.getAllTestabilities(),e1.getAllAngularRootElements=()=>t.getAllRootElements(),e1.frameworkStabilizers||(e1.frameworkStabilizers=[]),e1.frameworkStabilizers.push(n=>{const r=e1.getAllAngularTestabilities();let a=r.length,s=!1;const o=function(c){s=s||c,a--,0==a&&n(s)};r.forEach(c=>{c.whenStable(o)})})}findTestabilityInTree(t,i,n){return null==i?null:t.getTestability(i)??(n?jn().isShadowRoot(i)?this.findTestabilityInTree(t,i.host,!0):this.findTestabilityInTree(t,i.parentElement,!0):null)}},deps:[]},{provide:Vg,useClass:v8,deps:[Me,_8,Ho]},{provide:v8,useClass:v8,deps:[Me,_8,Ho]}],Bv=[{provide:Z0,useValue:"root"},{provide:p3,useFactory:function UU(){return new p3},deps:[]},{provide:Q8,useClass:RU,multi:!0,deps:[y1,Me,z4]},{provide:Q8,useClass:FU,multi:!0,deps:[y1]},Iv,Nv,xv,{provide:ul,useExisting:Iv},{provide:class tU{},useClass:zU,deps:[]},[]];let WU=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Ks,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q($U,12))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({providers:[...Bv,...Fv],imports:[KB,vF]}),t})(),Uv=(()=>{var e;class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function KU(){return new Uv(q(y1))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let $v=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new(n||e):q(Wv),r},providedIn:"root"}),t})(),Wv=(()=>{var e;class t extends $v{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case dt.NONE:return r;case dt.HTML:return qt(r,"HTML")?Y2(r):Ad(this._doc,String(r)).toString();case dt.STYLE:return qt(r,"Style")?Y2(r):r;case dt.SCRIPT:if(qt(r,"Script"))return Y2(r);throw new F(5200,!1);case dt.URL:return qt(r,"URL")?Y2(r):Us(String(r));case dt.RESOURCE_URL:if(qt(r,"ResourceURL"))return Y2(r);throw new F(5201,!1);default:throw new F(5202,!1)}}bypassSecurityTrustHtml(n){return function OE(e){return new LE(e)}(n)}bypassSecurityTrustStyle(n){return function RE(e){return new NE(e)}(n)}bypassSecurityTrustScript(n){return function kE(e){return new AE(e)}(n)}bypassSecurityTrustUrl(n){return function PE(e){return new EE(e)}(n)}bypassSecurityTrustResourceUrl(n){return function FE(e){return new IE(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:function(n){let r=null;return r=n?new n:function JU(e){return new Wv(e.get(y1))}(q(B1)),r},providedIn:"root"}),t})();function Rr(e){return(Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function V(e,t,i){return(t=function ej(e){var t=function XU(e,t){if("object"!==Rr(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const{isArray:tj}=Array,{getPrototypeOf:nj,prototype:ij,keys:rj}=Object;function Kv(e){if(1===e.length){const t=e[0];if(tj(t))return{args:t,keys:null};if(function aj(e){return e&&"object"==typeof e&&nj(e)===ij}(t)){const i=rj(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:sj}=Array;function r5(e){return He(t=>function oj(e,t){return sj(t)?e(...t):e(t)}(e,t))}function Yv(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}let Zv=(()=>{var e;class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ne))},e.\u0275dir=j({type:e}),t})(),b3=(()=>{var e;class t extends Zv{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[re]}),t})();const vt=new te("NgValueAccessor"),lj={provide:vt,useExisting:me(()=>v2),multi:!0};let v2=(()=>{var e;class t extends b3{writeValue(n){this.setProperty("checked",n)}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&R("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[Ye([lj]),re]}),t})();const uj={provide:vt,useExisting:me(()=>Wn),multi:!0},dj=new te("CompositionEventMode");let Wn=(()=>{var e;class t extends Zv{constructor(n,r,a){super(n,r),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function fj(){const e=jn()?jn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ne),w(dj,8))},e.\u0275dir=j({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(n,r){1&n&&R("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Ye([uj]),re]}),t})();const l2=new te("NgValidators"),Kn=new te("NgAsyncValidators"),hj=/^(?=.{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 n_(e){return function qn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||hj.test(e.value)?null:{email:!0}}function jo(e){return null}function s_(e){return null!=e}function o_(e){return _r(e)?Q1(e):e}function c_(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function l_(e,t){return t.map(i=>i(e))}function u_(e){return e.map(t=>function pj(e){return!e.validate}(t)?t:i=>t.validate(i))}function a5(e){return null!=e?function f_(e){if(!e)return null;const t=e.filter(s_);return 0==t.length?null:function(i){return c_(l_(i,t))}}(u_(e)):null}function s5(e){return null!=e?function d_(e){if(!e)return null;const t=e.filter(s_);return 0==t.length?null:function(i){return function cj(...e){const t=Za(e),{args:i,keys:n}=Kv(e),r=new We(a=>{const{length:s}=i;if(!s)return void a.complete();const o=new Array(s);let c=s,l=s;for(let u=0;u<s;u++){let d=!1;j1(i[u]).subscribe(qe(a,p=>{d||(d=!0,l--),o[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||a.next(n?Yv(n,o):o),a.complete())}))}});return t?r.pipe(r5(t)):r}(l_(i,t).map(o_)).pipe(He(c_))}}(u_(e)):null}function h_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function o5(e){return e?Array.isArray(e)?e:[e]:[]}function Go(e,t){return Array.isArray(e)?e.includes(t):e===t}function g_(e,t){const i=o5(t);return o5(e).forEach(r=>{Go(i,r)||i.push(r)}),i}function v_(e,t){return o5(t).filter(i=>!Go(e,i))}class __{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(t){this._rawValidators=t||[],this._composedValidatorFn=a5(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=s5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return!!this.control&&this.control.hasError(t,i)}getError(t,i){return this.control?this.control.getError(t,i):null}}class x2 extends __{get formDirective(){return null}get path(){return null}}class Yn extends __{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class C_{constructor(t){this._cd=t}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 S1=(()=>{var e;class t extends C_{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Yn,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ze("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[re]}),t})();const kr="VALID",Wo="INVALID",ti="PENDING",Pr="DISABLED";function qo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class w_{constructor(t,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===kr}get invalid(){return this.status===Wo}get pending(){return this.status==ti}get disabled(){return this.status===Pr}get enabled(){return this.status!==Pr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(g_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(g_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(v_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(v_(t,this._rawAsyncValidators))}hasValidator(t){return Go(this._rawValidators,t)}hasAsyncValidator(t){return Go(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ti,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=Pr,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const i=this._parentMarkedDirty(t.onlySelf);this.status=kr,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:i}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kr||this.status===ti)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pr:kr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ti,this._hasOwnPendingAsyncValidator=!0;const i=o_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(!1!==i.emitEvent)}get(t){let i=t;return null==i||(Array.isArray(i)||(i=i.split(".")),0===i.length)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(t,i){const n=i?this.get(i):this;return n&&n.errors?n.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Pr:this.errors?Wo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ti)?ti:this._anyControlsHaveStatus(Wo)?Wo:kr}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){qo(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function Cj(e){return Array.isArray(e)?a5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function yj(e){return Array.isArray(e)?s5(e):e||null}(this._rawAsyncValidators)}}const ni=new te("CallSetDisabledState",{providedIn:"root",factory:()=>Ko}),Ko="always";function Fr(e,t,i=Ko){(function h5(e,t){const i=function p_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(h_(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=function m_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(h_(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();Qo(t._rawValidators,r),Qo(t._rawAsyncValidators,r)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function wj(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&H_(e,t)})}(e,t),function Vj(e,t){const i=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};e.registerOnChange(i),t._registerOnDestroy(()=>{e._unregisterOnChange(i)})}(e,t),function Hj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&H_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function bj(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function Qo(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function H_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function S_(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function z_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const x_=class extends w_{constructor(t=null,i,n){super(function u5(e){return(qo(e)?e.validators:e)||null}(i),function f5(e,t){return(qo(t)?t.asyncValidators:e)||null}(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qo(i)&&(i.nonNullable||i.initialValueIsDefault)&&(this.defaultValue=z_(t)?t.value:t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==i.emitViewToModelChange)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){S_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){S_(this._onDisabledChange,t)}_forEachChild(t){}_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(t){z_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Ej={provide:Yn,useExisting:me(()=>M1)},A_=(()=>Promise.resolve())();let M1=(()=>{var e;class t extends Yn{constructor(n,r,a,s,o,c){super(),this._changeDetectorRef=o,this.callSetDisabledState=c,this.control=new x_,this._registered=!1,this.name="",this.update=new ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(a),this.valueAccessor=function g5(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(a=>{a.constructor===Wn?i=a:function zj(e){return Object.getPrototypeOf(e.constructor)===b3}(a)?n=a:r=a}),r||n||i||null}(0,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function m5(e,t){if(!e.hasOwnProperty("model"))return!1;const i=e.model;return!!i.isFirstChange()||!Object.is(t,i.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Fr(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(n){A_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,a=0!==r&&X4(r);A_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Yo(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(w(x2,9),w(l2,10),w(Kn,10),w(vt,10),w(J2,8),w(ni,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ye([Ej]),re,v1]}),t})();const Tj={provide:vt,useExisting:me(()=>ii),multi:!0};let ii=(()=>{var e;class t extends b3{writeValue(n){this.setProperty("value",n??"")}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&R("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Ye([Tj]),re]}),t})(),E_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const Gj={provide:vt,useExisting:me(()=>yn),multi:!0};function F_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let yn=(()=>{var e;class t extends b3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const a=F_(this._getOptionId(n),n);this.setProperty("value",a)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function $j(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&R("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([Gj]),re]}),t})(),w3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(F_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(yn,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Wj={provide:vt,useExisting:me(()=>M5),multi:!0};function B_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let M5=(()=>{var e;class t extends b3{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const a=n.map(s=>this._getOptionId(s));r=(s,o)=>{s._setSelected(a.indexOf(o.toString())>-1)}}else r=(a,s)=>{a._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const a=[],s=r.selectedOptions;if(void 0!==s){const o=s;for(let c=0;c<o.length;c++){const u=this._getOptionValue(o[c].value);a.push(u)}}else{const o=r.options;for(let c=0;c<o.length;c++){const l=o[c];if(l.selected){const u=this._getOptionValue(l.value);a.push(u)}}}this.value=a,n(a)}}_registerOption(n){const r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){const r=function qj(e){return e.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){1&n&&R("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([Wj]),re]}),t})(),H3=(()=>{var e;class t{constructor(n,r,a){this._element=n,this._renderer=r,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(B_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(B_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(M5,9))},e.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),V3=(()=>{var e;class t{constructor(){this._validator=jo}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):jo,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,features:[v1]}),t})();const Jj={provide:l2,useExisting:me(()=>w5),multi:!0};let w5=(()=>{var e;class t extends V3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=X4,this.createValidator=n=>n_}enabled(n){return n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ye([Jj]),re]}),t})(),nG=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[E_]}),t})(),rG=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ni,useValue:n.callSetDisabledState??Ko}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[nG]}),t})();const aG=["addListener","removeListener"],sG=["addEventListener","removeEventListener"],oG=["on","off"];function X1(e,t,i,n){if(Q(i)&&(n=i,i=void 0),n)return X1(e,t,i).pipe(r5(n));const[r,a]=function uG(e){return Q(e.addEventListener)&&Q(e.removeEventListener)}(e)?sG.map(s=>o=>e[s](t,o,i)):function cG(e){return Q(e.addListener)&&Q(e.removeListener)}(e)?aG.map(Z_(e,t)):function lG(e){return Q(e.on)&&Q(e.off)}(e)?oG.map(Z_(e,t)):[];if(!r&&A6(e))return F1(s=>X1(s,t,i))(j1(e));if(!r)throw new TypeError("Invalid event target");return new We(s=>{const o=(...c)=>s.next(1<c.length?c:c[0]);return r(o),()=>a(o)})}function Z_(e,t){return i=>n=>e[i](t,n)}class fG extends De{constructor(t,i){super()}schedule(t,i=0){return this}}const Xo={setInterval(e,t,...i){const{delegate:n}=Xo;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Xo;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Q_={now:()=>(Q_.delegate||Date).now(),delegate:void 0};class Ur{constructor(t,i=Ur.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Ur.now=Q_.now;const J_=new class hG extends Ur{constructor(t,i=Ur.now){super(t,i),this.actions=[],this._active=!1}flush(t){const{actions:i}=this;if(this._active)return void i.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}}}(class dG extends fG{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){var n;if(this.closed)return this;this.state=t;const r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,i)),this.pending=!0,this.delay=i,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,i),this}requestAsyncId(t,i,n=0){return Xo.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,i,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return i;null!=i&&Xo.clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,i);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let r,n=!1;try{this.work(t)}catch(a){n=!0,r=a||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Qe(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}),pG=J_;function X_(e=0,t,i=pG){let n=-1;return null!=t&&(ff(t)?i=t:n=t),new We(r=>{let a=function mG(e){return e instanceof Date&&!isNaN(e)}(e)?+e-i.now():e;a<0&&(a=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},a)})}const{isArray:gG}=Array;function eC(e){return 1===e.length&&gG(e[0])?e[0]:e}function tC(...e){return 1===(e=eC(e)).length?j1(e[0]):new We(function vG(e){return t=>{let i=[];for(let n=0;i&&!t.closed&&n<e.length;n++)i.push(j1(e[n]).subscribe(qe(t,r=>{if(i){for(let a=0;a<i.length;a++)a!==n&&i[a].unsubscribe();i=null}t.next(r)})))}}(e))}function H5(...e){const t=Za(e),i=eC(e);return i.length?new We(n=>{let r=i.map(()=>[]),a=i.map(()=>!1);n.add(()=>{r=a=null});for(let s=0;!n.closed&&s<i.length;s++)j1(i[s]).subscribe(qe(n,o=>{if(r[s].push(o),r.every(c=>c.length)){const c=r.map(l=>l.shift());n.next(t?t(...c):c),r.some((l,u)=>!l.length&&a[u])&&n.complete()}},()=>{a[s]=!0,!r[s].length&&n.complete()}));return()=>{r=a=null}}):ot}function jr(...e){return function _G(){return X3(1)}()(Q1(e,Ni(e)))}function R1(e){return f1((t,i)=>{j1(e).subscribe(qe(i,()=>i.complete(),Z1)),!i.closed&&t.subscribe(i)})}function z1(e,t){return f1((i,n)=>{let r=0;i.subscribe(qe(n,a=>e.call(t,a,r++)&&n.next(a)))})}function e2(e){return e<=0?()=>ot:f1((t,i)=>{let n=0;t.subscribe(qe(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function q1(e,t,i){const n=Q(e)||t||i?{next:e,error:t,complete:i}:e;return n?f1((r,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let o=!0;r.subscribe(qe(a,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),a.next(c)},()=>{var c;o=!1,null===(c=n.complete)||void 0===c||c.call(n),a.complete()},c=>{var l;o=!1,null===(l=n.error)||void 0===l||l.call(n,c),a.error(c)},()=>{var c,l;o&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):Mt}function V5(...e){const t=Za(e);return f1((i,n)=>{const r=e.length,a=new Array(r);let s=e.map(()=>!1),o=!1;for(let c=0;c<r;c++)j1(e[c]).subscribe(qe(n,l=>{a[c]=l,!o&&!s[c]&&(s[c]=!0,(o=s.every(Mt))&&(s=null))},Z1));i.subscribe(qe(n,c=>{if(o){const l=[c,...a];n.next(t?t(...l):l)}}))})}function nC(e){return He(()=>e)}function iC(e,t){return t?i=>jr(t.pipe(e2(1),function yG(){return f1((e,t)=>{e.subscribe(qe(t,Z1))})}()),i.pipe(iC(e))):F1((i,n)=>j1(e(i,n)).pipe(e2(1),nC(i)))}function rC(e,t=J_){const i=X_(e,t);return iC(()=>i)}var bG={left:"right",right:"left",bottom:"top",top:"bottom"};function ec(e){return e.replace(/left|right|bottom|top/g,function(t){return bG[t]})}function en(e){return e.split("-")[0]}var wG={start:"end",end:"start"};function sC(e){return e.replace(/start|end/g,function(t){return wG[t]})}var et="top",At="bottom",Et="right",tt="left",D5="auto",Gr=[et,At,Et,tt],ri="start",$r="end",oC="viewport",Wr="popper",cC=Gr.reduce(function(e,t){return e.concat([t+"-"+ri,t+"-"+$r])},[]),lC=[].concat(Gr,[D5]).reduce(function(e,t){return e.concat([t,t+"-"+ri,t+"-"+$r])},[]),TG=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function nt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D3(e){return e instanceof nt(e).Element||e instanceof Element}function _t(e){return e instanceof nt(e).HTMLElement||e instanceof HTMLElement}function S5(e){return!(typeof ShadowRoot>"u")&&(e instanceof nt(e).ShadowRoot||e instanceof ShadowRoot)}function Zn(e){return((D3(e)?e.ownerDocument:e.document)||window.document).documentElement}var S3=Math.max,tc=Math.min,ai=Math.round;function z5(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function uC(){return!/^((?!chrome|android).)*safari/i.test(z5())}function si(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&_t(e)&&(r=e.offsetWidth>0&&ai(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ai(n.height)/e.offsetHeight||1);var o=(D3(e)?nt(e):window).visualViewport,c=!uC()&&i,l=(n.left+(c&&o?o.offsetLeft:0))/r,u=(n.top+(c&&o?o.offsetTop:0))/a,d=n.width/r,p=n.height/a;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function x5(e){var t=nt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function L5(e){return si(Zn(e)).left+x5(e).scrollLeft}function Mn(e){return nt(e).getComputedStyle(e)}function tn(e){return e?(e.nodeName||"").toLowerCase():null}function nc(e){return"html"===tn(e)?e:e.assignedSlot||e.parentNode||(S5(e)?e.host:null)||Zn(e)}function N5(e){var t=Mn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function fC(e){return["html","body","#document"].indexOf(tn(e))>=0?e.ownerDocument.body:_t(e)&&N5(e)?e:fC(nc(e))}function qr(e,t){var i;void 0===t&&(t=[]);var n=fC(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),a=nt(n),s=r?[a].concat(a.visualViewport||[],N5(n)?n:[]):n,o=t.concat(s);return r?o:o.concat(qr(nc(s)))}function kG(e){return["table","td","th"].indexOf(tn(e))>=0}function dC(e){return _t(e)&&"fixed"!==Mn(e).position?e.offsetParent:null}function Kr(e){for(var t=nt(e),i=dC(e);i&&kG(i)&&"static"===Mn(i).position;)i=dC(i);return i&&("html"===tn(i)||"body"===tn(i)&&"static"===Mn(i).position)?t:i||function PG(e){var t=/firefox/i.test(z5());if(/Trident/i.test(z5())&&_t(e)&&"fixed"===Mn(e).position)return null;var r=nc(e);for(S5(r)&&(r=r.host);_t(r)&&["html","body"].indexOf(tn(r))<0;){var a=Mn(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||t}function hC(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&S5(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function A5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pC(e,t,i){return t===oC?A5(function OG(e,t){var i=nt(e),n=Zn(e),r=i.visualViewport,a=n.clientWidth,s=n.clientHeight,o=0,c=0;if(r){a=r.width,s=r.height;var l=uC();(l||!l&&"fixed"===t)&&(o=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:o+L5(e),y:c}}(e,i)):D3(t)?function FG(e,t){var i=si(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):A5(function RG(e){var t,i=Zn(e),n=x5(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=S3(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=S3(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+L5(e),c=-n.scrollTop;return"rtl"===Mn(r||i).direction&&(o+=S3(i.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Zn(e)))}function oi(e){return e.split("-")[1]}function E5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mC(e){var c,t=e.reference,i=e.element,n=e.placement,r=n?en(n):null,a=n?oi(n):null,s=t.x+t.width/2-i.width/2,o=t.y+t.height/2-i.height/2;switch(r){case et:c={x:s,y:t.y-i.height};break;case At:c={x:s,y:t.y+t.height};break;case Et:c={x:t.x+t.width,y:o};break;case tt:c={x:t.x-i.width,y:o};break;default:c={x:t.x,y:t.y}}var l=r?E5(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case ri:c[l]=c[l]-(t[u]/2-i[u]/2);break;case $r:c[l]=c[l]+(t[u]/2-i[u]/2)}}return c}function vC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _C(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}function I5(e,t){void 0===t&&(t={});var n=t.placement,r=void 0===n?e.placement:n,a=t.strategy,s=void 0===a?e.strategy:a,o=t.boundary,c=void 0===o?"clippingParents":o,l=t.rootBoundary,u=void 0===l?oC:l,d=t.elementContext,p=void 0===d?Wr:d,m=t.altBoundary,H=void 0!==m&&m,D=t.padding,x=void 0===D?0:D,E=vC("number"!=typeof x?x:_C(x,Gr)),B=e.rects.popper,U=e.elements[H?p===Wr?"reference":Wr:p],G=function UG(e,t,i,n){var r="clippingParents"===t?function BG(e){var t=qr(nc(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0&&_t(e)?Kr(e):e;return D3(n)?t.filter(function(r){return D3(r)&&hC(r,n)&&"body"!==tn(r)}):[]}(e):[].concat(t),a=[].concat(r,[i]),o=a.reduce(function(c,l){var u=pC(e,l,n);return c.top=S3(u.top,c.top),c.right=tc(u.right,c.right),c.bottom=tc(u.bottom,c.bottom),c.left=S3(u.left,c.left),c},pC(e,a[0],n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(D3(U)?U:U.contextElement||Zn(e.elements.popper),c,u,s),ie=si(e.elements.reference),ve=mC({reference:ie,element:B,strategy:"absolute",placement:r}),we=A5(Object.assign({},B,ve)),ke=p===Wr?we:ie,b1={top:G.top-ke.top+E.top,bottom:ke.bottom-G.bottom+E.bottom,left:G.left-ke.left+E.left,right:ke.right-G.right+E.right},t2=e.modifiersData.offset;if(p===Wr&&t2){var Rt=t2[r];Object.keys(b1).forEach(function(N2){var G3=[Et,At].indexOf(N2)>=0?1:-1,$3=[et,At].indexOf(N2)>=0?"y":"x";b1[N2]+=Rt[$3]*G3})}return b1}const WG={name:"flip",enabled:!0,phase:"main",fn:function $G(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0===s||s,c=i.fallbackPlacements,l=i.padding,u=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.flipVariations,H=void 0===m||m,D=i.allowedAutoPlacements,x=t.options.placement,E=en(x),B=c||(E!==x&&H?function GG(e){if(en(e)===D5)return[];var t=ec(e);return[sC(e),t,sC(t)]}(x):[ec(x)]),U=[x].concat(B).reduce(function(Vi,i3){return Vi.concat(en(i3)===D5?function jG(e,t){void 0===t&&(t={});var r=t.boundary,a=t.rootBoundary,s=t.padding,o=t.flipVariations,c=t.allowedAutoPlacements,l=void 0===c?lC:c,u=oi(t.placement),d=u?o?cC:cC.filter(function(H){return oi(H)===u}):Gr,p=d.filter(function(H){return l.indexOf(H)>=0});0===p.length&&(p=d);var m=p.reduce(function(H,D){return H[D]=I5(e,{placement:D,boundary:r,rootBoundary:a,padding:s})[en(D)],H},{});return Object.keys(m).sort(function(H,D){return m[H]-m[D]})}(t,{placement:i3,boundary:u,rootBoundary:d,padding:l,flipVariations:H,allowedAutoPlacements:D}):i3)},[]),G=t.rects.reference,ie=t.rects.popper,ve=new Map,we=!0,ke=U[0],b1=0;b1<U.length;b1++){var t2=U[b1],Rt=en(t2),N2=oi(t2)===ri,G3=[et,At].indexOf(Rt)>=0,$3=G3?"width":"height",rt=I5(t,{placement:t2,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),kt=G3?N2?Et:tt:N2?At:et;G[$3]>ie[$3]&&(kt=ec(kt));var C6=ec(kt),W3=[];if(a&&W3.push(rt[Rt]<=0),o&&W3.push(rt[kt]<=0,rt[C6]<=0),W3.every(function(Vi){return Vi})){ke=t2,we=!1;break}ve.set(t2,W3)}if(we)for(var Ku=function(i3){var Fa=U.find(function(b6){var q3=ve.get(b6);if(q3)return q3.slice(0,i3).every(function(Yu){return Yu})});if(Fa)return ke=Fa,"break"},Pa=H?3:1;Pa>0&&"break"!==Ku(Pa);Pa--);t.placement!==ke&&(t.modifiersData[n]._skip=!0,t.placement=ke,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yr(e,t,i){return S3(e,tc(t,i))}function T5(e){var t=si(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}const ZG={name:"preventOverflow",enabled:!0,phase:"main",fn:function YG(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,a=void 0===r||r,s=i.altAxis,o=void 0!==s&&s,p=i.tether,m=void 0===p||p,H=i.tetherOffset,D=void 0===H?0:H,x=I5(t,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),E=en(t.placement),z=oi(t.placement),B=!z,U=E5(E),G=function qG(e){return"x"===e?"y":"x"}(U),ie=t.modifiersData.popperOffsets,ve=t.rects.reference,we=t.rects.popper,ke="function"==typeof D?D(Object.assign({},t.rects,{placement:t.placement})):D,b1="number"==typeof ke?{mainAxis:ke,altAxis:ke}:Object.assign({mainAxis:0,altAxis:0},ke),t2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Rt={x:0,y:0};if(ie){if(a){var N2,G3="y"===U?et:tt,$3="y"===U?At:Et,rt="y"===U?"height":"width",kt=ie[U],C6=kt+x[G3],W3=kt-x[$3],y6=m?-we[rt]/2:0,Ku=z===ri?ve[rt]:we[rt],Pa=z===ri?-we[rt]:-ve[rt],M6=t.elements.arrow,Vi=m&&M6?T5(M6):{width:0,height:0},i3=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Fa=i3[G3],b6=i3[$3],q3=Yr(0,ve[rt],Vi[rt]),Yu=B?ve[rt]/2-y6-q3-Fa-b1.mainAxis:Ku-q3-Fa-b1.mainAxis,a_e=B?-ve[rt]/2+y6+q3+b6+b1.mainAxis:Pa+q3+b6+b1.mainAxis,Zu=t.elements.arrow&&Kr(t.elements.arrow),s_e=Zu?"y"===U?Zu.clientTop||0:Zu.clientLeft||0:0,hL=null!=(N2=t2?.[U])?N2:0,c_e=kt+a_e-hL,pL=Yr(m?tc(C6,kt+Yu-hL-s_e):C6,kt,m?S3(W3,c_e):W3);ie[U]=pL,Rt[U]=pL-kt}if(o){var mL,K3=ie[G],w6="y"===G?"height":"width",gL=K3+x["x"===U?et:tt],vL=K3-x["x"===U?At:Et],Qu=-1!==[et,tt].indexOf(E),_L=null!=(mL=t2?.[G])?mL:0,CL=Qu?gL:K3-ve[w6]-we[w6]-_L+b1.altAxis,yL=Qu?K3+ve[w6]+we[w6]-_L-b1.altAxis:vL,ML=m&&Qu?function KG(e,t,i){var n=Yr(e,t,i);return n>i?i:n}(CL,K3,yL):Yr(m?CL:gL,K3,m?yL:vL);ie[G]=ML,Rt[G]=ML-K3}t.modifiersData[n]=Rt}},requiresIfExists:["offset"]},e$={name:"arrow",enabled:!0,phase:"main",fn:function JG(e){var t,i=e.state,n=e.name,r=e.options,a=i.elements.arrow,s=i.modifiersData.popperOffsets,o=en(i.placement),c=E5(o),u=[tt,Et].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(t,i){return vC("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:_C(t,Gr))}(r.padding,i),p=T5(a),m="y"===c?et:tt,H="y"===c?At:Et,D=i.rects.reference[u]+i.rects.reference[c]-s[c]-i.rects.popper[u],x=s[c]-i.rects.reference[c],E=Kr(a),z=E?"y"===c?E.clientHeight||0:E.clientWidth||0:0,ie=z/2-p[u]/2+(D/2-x/2),ve=Yr(d[m],ie,z-p[u]-d[H]);i.modifiersData[n]=((t={})[c]=ve,t.centerOffset=ve-ie,t)}},effect:function XG(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||hC(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function r$(e,t,i){void 0===i&&(i=!1);var n=_t(t),r=_t(t)&&function i$(e){var t=e.getBoundingClientRect(),i=ai(t.width)/e.offsetWidth||1,n=ai(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Zn(t),s=si(e,r,i),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==tn(t)||N5(a))&&(o=function n$(e){return e!==nt(e)&&_t(e)?function t$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):x5(e)}(t)),_t(t)?((c=si(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=L5(a))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function a$(e){var t=new Map,i=new Set,n=[];function r(a){i.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(o){if(!i.has(o)){var c=t.get(o);c&&r(c)}}),n.push(a)}return e.forEach(function(a){t.set(a.name,a)}),e.forEach(function(a){i.has(a.name)||r(a)}),n}function o$(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var CC={placement:"bottom",modifiers:[],strategy:"absolute"};function yC(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function l$(e){void 0===e&&(e={});var i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,a=void 0===r?CC:r;return function(o,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},CC,a),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(E){var z="function"==typeof E?E(u.options):E;D(),u.options=Object.assign({},a,u.options,z),u.scrollParents={reference:D3(o)?qr(o):o.contextElement?qr(o.contextElement):[],popper:qr(c)};var B=function s$(e){var t=a$(e);return TG.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}(function c$(e){var t=e.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(t).map(function(i){return t[i]})}([].concat(n,u.options.modifiers)));return u.orderedModifiers=B.filter(function(U){return U.enabled}),function H(){u.orderedModifiers.forEach(function(x){var z=x.options,U=x.effect;if("function"==typeof U){var G=U({state:u,name:x.name,instance:m,options:void 0===z?{}:z});d.push(G||function(){})}})}(),m.update()},forceUpdate:function(){if(!p){var E=u.elements,z=E.reference,B=E.popper;if(yC(z,B)){u.rects={reference:r$(z,Kr(B),"fixed"===u.options.strategy),popper:T5(B)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b1){return u.modifiersData[b1.name]=Object.assign({},b1.data)});for(var U=0;U<u.orderedModifiers.length;U++)if(!0!==u.reset){var G=u.orderedModifiers[U],ie=G.fn,ve=G.options;"function"==typeof ie&&(u=ie({state:u,options:void 0===ve?{}:ve,name:G.name,instance:m})||u)}else u.reset=!1,U=-1}}},update:o$(function(){return new Promise(function(x){m.forceUpdate(),x(u)})}),destroy:function(){D(),p=!0}};if(!yC(o,c))return m;function D(){d.forEach(function(x){return x()}),d=[]}return m.setOptions(l).then(function(x){!p&&l.onFirstUpdate&&l.onFirstUpdate(x)}),m}}var ic={passive:!0},p$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MC(e){var t,i=e.popper,n=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,o=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,m=void 0===p?0:p,H=s.y,D=void 0===H?0:H,x="function"==typeof u?u({x:m,y:D}):{x:m,y:D};m=x.x,D=x.y;var E=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),B=tt,U=et,G=window;if(l){var ie=Kr(i),ve="clientHeight",we="clientWidth";ie===nt(i)&&"static"!==Mn(ie=Zn(i)).position&&"absolute"===o&&(ve="scrollHeight",we="scrollWidth"),(r===et||(r===tt||r===Et)&&a===$r)&&(U=At,D-=(d&&ie===G&&G.visualViewport?G.visualViewport.height:ie[ve])-n.height,D*=c?1:-1),r!==tt&&(r!==et&&r!==At||a!==$r)||(B=Et,m-=(d&&ie===G&&G.visualViewport?G.visualViewport.width:ie[we])-n.width,m*=c?1:-1)}var N2,t2=Object.assign({position:o},l&&p$),Rt=!0===u?function m$(e,t){var n=e.y,r=t.devicePixelRatio||1;return{x:ai(e.x*r)/r||0,y:ai(n*r)/r||0}}({x:m,y:D},nt(i)):{x:m,y:D};return m=Rt.x,D=Rt.y,Object.assign({},t2,c?((N2={})[U]=z?"0":"",N2[B]=E?"0":"",N2.transform=(G.devicePixelRatio||1)<=1?"translate("+m+"px, "+D+"px)":"translate3d("+m+"px, "+D+"px, 0)",N2):((t={})[U]=z?D+"px":"",t[B]=E?m+"px":"",t.transform="",t))}var M$=l$({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function u$(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,a=void 0===r||r,s=n.resize,o=void 0===s||s,c=nt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",i.update,ic)}),o&&c.addEventListener("resize",i.update,ic),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",i.update,ic)}),o&&c.removeEventListener("resize",i.update,ic)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function d$(e){var t=e.state;t.modifiersData[e.name]=mC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function g$(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,a=i.adaptive,s=void 0===a||a,o=i.roundOffsets,c=void 0===o||o,l={placement:en(t.placement),variation:oi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,MC(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,MC(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function _$(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!_t(a)||!tn(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];!1===o?a.removeAttribute(s):a.setAttribute(s,!0===o?"":o)}))})},effect:function C$(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]).reduce(function(c,l){return c[l]="",c},{});!_t(r)||!tn(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const H$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function w$(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,s=lC.reduce(function(u,d){return u[d]=function b$(e,t,i){var n=en(e),r=[tt,et].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[tt,Et].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}(d,t.rects,a),u},{}),o=s[t.placement],l=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}};function V$(e,t){}function D$(e,t){if(1&e&&(g(0,"button",3),M(1),O(2,V$,0,0,"ng-template",4),_()),2&e){const i=t.$implicit;b("ngbPanelToggle",i),C(1),Q2(" ",i.title," "),C(1),b("ngTemplateOutlet",null==i.titleTpl?null:i.titleTpl.templateRef)}}function S$(e,t){}function z$(e,t){}function x$(e,t){if(1&e){const i=I1();g(0,"div",8),R("ngbRef",function(r){return Y(i),Z(I().$implicit.panelDiv=r)}),g(1,"div",9),O(2,z$,0,0,"ng-template",4),_()()}if(2&e){const i=I().$implicit;Pl("id",i.id),W("aria-labelledby",i.id+"-header"),C(2),b("ngTemplateOutlet",(null==i.contentTpl?null:i.contentTpl.templateRef)||null)}}const L$=function(e,t){return{$implicit:e,opened:t}};function N$(e,t){if(1&e&&(g(0,"div")(1,"div",5),O(2,S$,0,0,"ng-template",6),_(),O(3,x$,3,3,"div",7),_()),2&e){const i=t.$implicit,n=I(),r=k2(1);gn("accordion-item "+(i.cardClass||"")),C(1),gn("accordion-header "+(i.type?"bg-"+i.type:n.type?"bg-"+n.type:"")),W4("id","",i.id,"-header"),C(1),b("ngTemplateOutlet",(null==i.headerTpl?null:i.headerTpl.templateRef)||r)("ngTemplateOutletContext",Sr(8,L$,i,i.isOpen)),C(1),b("ngIf",!n.destroyOnHide||i.isOpen||i.transitionRunning)}}function A$(e,t){if(1&e){const i=I1();g(0,"button",1),R("click",function(){return Y(i),Z(I().close())}),_()}}const rc=["*"],cW=["dialog"];function kW(e,t){1&e&&M(0),2&e&&pt(I(2).title)}function PW(e,t){}function FW(e,t){if(1&e&&(g(0,"h3",3),O(1,kW,1,1,"ng-template",null,4,S2),O(3,PW,0,0,"ng-template",5),_()),2&e){const i=k2(2),n=I();C(3),b("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function bn(e){return"string"==typeof e}function z3(e){return null!=e}function ci(e){return(e||document.body).getBoundingClientRect()}const SC={animation:!0,transitionTimerDelayMs:5},tq=()=>{},{transitionTimerDelayMs:nq}=SC,Zr=new Map,L2=(e,t,i,n)=>{let r=n.context||{};const a=Zr.get(t);if(a)switch(n.runningTransition){case"continue":return ot;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),Zr.delete(t)}const s=i(t,n.animation,r)||tq;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),ae(void 0).pipe(function XW(e){return t=>new We(i=>t.subscribe({next:s=>e.run(()=>i.next(s)),error:s=>e.run(()=>i.error(s)),complete:()=>e.run(()=>i.complete())}))}(e));const o=new fe,c=new fe,l=o.pipe(function CG(...e){return t=>jr(t,ae(...e))}(!0));Zr.set(t,{transition$:o,complete:()=>{c.next(),c.complete()},context:r});const u=function eq(e){const{transitionDelay:t,transitionDuration:i}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(i))}(t);return e.runOutsideAngular(()=>{const d=X1(t,"transitionend").pipe(R1(l),z1(({target:m})=>m===t));tC(X_(u+nq).pipe(R1(l)),d,c).pipe(R1(l)).subscribe(()=>{Zr.delete(t),e.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()},R5=(e,t,i)=>{let{direction:n,maxSize:r,dimension:a}=i;const{classList:s}=e;function o(){s.add("collapse"),"show"===n?s.add("show"):s.remove("show")}if(t)return r||(r=function iq(e,t){if(typeof navigator>"u")return"0px";const{classList:i}=e,n=i.contains("show");n||i.add("show"),e.style[t]="";const r=e.getBoundingClientRect()[t]+"px";return n||i.remove("show"),r}(e,a),i.maxSize=r,e.style[a]="show"!==n?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),ci(e),s.add("collapsing")),e.style[a]="show"===n?r:"0px",()=>{o(),s.remove("collapsing"),e.style[a]=""};o()};let x3=(()=>{var e;class t{constructor(){this.animation=SC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),zC=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(x3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),rq=0,ac=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),k5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),P5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(o1))},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),sc=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+rq++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new ee,this.hidden=new ee}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,r,a){if(1&n&&(C1(a,k5,4),C1(a,ac,4),C1(a,P5,4)),2&n){let s;je(s=Ge())&&(r.titleTpls=s),je(s=Ge())&&(r.headerTpls=s),je(s=Ge())&&(r.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),aq=(()=>{var e;class t{constructor(n){this._El=n,this.ngbRef=new ee}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne))},e.\u0275dir=j({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),F5=(()=>{var e;class t{set ngbPanelToggle(n){n&&(this.panel=n)}constructor(n,r){this.accordion=n,this.panel=r}}return(e=t).\u0275fac=function(n){return new(n||e)(w(me(()=>B5)),w(sc,9))},e.\u0275dir=j({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,r){1&n&&R("click",function(){return r.accordion.toggle(r.panel.id)}),2&n&&(H2("disabled",r.panel.disabled),W("aria-expanded",r.panel.isOpen)("aria-controls",r.panel.id),ze("collapsed",!r.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),B5=(()=>{var e;class t{constructor(n,r,a){this._ngZone=r,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new ee,this.shown=new ee,this.hidden=new ee,this.animation=n.animation,this.type=n.type,this.closeOtherPanels=n.closeOthers}isExpanded(n){return this.activeIds.indexOf(n)>-1}expand(n){this._changeOpenState(this._findPanelById(n),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(n=>this._changeOpenState(n,!0))}collapse(n){this._changeOpenState(this._findPanelById(n),!1)}collapseAll(){this.panels.forEach(n=>{this._changeOpenState(n,!1)})}toggle(n){const r=this._findPanelById(n);r&&this._changeOpenState(r,!r.isOpen)}ngAfterContentChecked(){bn(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(n=>{n.isOpen=!n.disabled&&this.activeIds.indexOf(n.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(e2(1)).subscribe(()=>{this.panels.forEach(n=>{const r=n.panelDiv;r?n.initClassDone||(n.initClassDone=!0,L2(this._ngZone,r,R5,{animation:!1,runningTransition:"continue",context:{direction:n.isOpen?"show":"hide",dimension:"height"}})):n.initClassDone=!1})})}_changeOpenState(n,r){if(null!=n&&!n.disabled&&n.isOpen!==r){let a=!1;this.panelChange.emit({panelId:n.id,nextState:r,preventDefault:()=>{a=!0}}),a||(n.isOpen=r,n.transitionRunning=!0,r&&this.closeOtherPanels&&this._closeOthers(n.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(n,r=!0){this.panels.forEach(a=>{a.id!==n&&a.isOpen&&(a.isOpen=!1,a.transitionRunning=r)})}_findPanelById(n){return this.panels.find(r=>r.id===n)||null}_updateActiveIds(){this.activeIds=this.panels.filter(n=>n.isOpen&&!n.disabled).map(n=>n.id)}_runTransitions(n){this._changeDetector.detectChanges(),this.panels.forEach(r=>{r.transitionRunning&&L2(this._ngZone,r.panelDiv,R5,{animation:n,runningTransition:"stop",context:{direction:r.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{r.transitionRunning=!1;const{id:s}=r;r.isOpen?(r.shown.emit(),this.shown.emit(s)):(r.hidden.emit(),this.hidden.emit(s))})})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(zC),w(Me),w(J2))},e.\u0275cmp=oe({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,r,a){if(1&n&&C1(a,sc,4),2&n){let s;je(s=Ge())&&(r.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,r){2&n&&W("aria-multiselectable",!r.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[D2],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(n,r){1&n&&(O(0,D$,3,3,"ng-template",0,1,S2),O(2,N$,4,11,"ng-template",2)),2&n&&(C(2),b("ngForOf",r.panels))},dependencies:[Xt,M3,F5,aq,ac,O1],encapsulation:2}),t})(),AC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const fq=({classList:e})=>{e.remove("show")};let dq=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(x3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),EC=(()=>{var e;class t{constructor(n,r,a,s){this._renderer=r,this._element=a,this._zone=s,this.closed=new ee,this.dismissible=n.dismissible,this.type=n.type,this.animation=n.animation}close(){const n=L2(this._zone,this._element.nativeElement,fq,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>this.closed.emit()),n}ngOnChanges(n){const r=n.type;r&&!r.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${r.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${r.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(dq),w(c2),w(Ne),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(n,r){2&n&&ze("fade",r.animation)("alert-dismissible",r.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[v1,D2],ngContentSelectors:rc,decls:2,vars:1,consts:function(){let i;return i=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",i,3,"click",4,"ngIf"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,r){1&n&&(G4(),$4(0),O(1,A$,1,0,"button",0)),2&n&&(C(1),b("ngIf",r.dismissible))},dependencies:[O1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),IC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),RC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),kC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();var Ze=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}(Ze||{});const dc=(e,t)=>!!t&&t.some(i=>i.contains(e)),jC=(e,t)=>!t||null!=function JW(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),Eq=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 hc(e,t,i,n,r,a,s,o){i&&e.runOutsideAngular((e=>Eq?()=>setTimeout(()=>e(),100):e)(()=>{const l=X1(t,"keydown").pipe(R1(r),z1(p=>p.which===Ze.Escape),q1(p=>p.preventDefault())),u=X1(t,"mousedown").pipe(He(p=>{const m=p.target;return 2!==p.button&&!dc(m,s)&&("inside"===i?dc(m,a)&&jC(m,o):"outside"===i?!dc(m,a):jC(m,o)||!dc(m,a))}),R1(r)),d=X1(t,"mouseup").pipe(V5(u),z1(([p,m])=>m),rC(0),R1(r));tC([l.pipe(He(p=>0)),d.pipe(He(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const GC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function $C(e){const t=Array.from(e.querySelectorAll(GC)).filter(i=>-1!==i.tabIndex);return[t[0],t[t.length-1]]}let Tq=(()=>{var e;class t{constructor(n){this._element=n.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Oq=/\s+/,Rq=/ +/gi,kq={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"]},Fq=/^left/,Bq=/^right/,Uq=/^start/,jq=/^end/;function qC({placement:e,baseClass:t},i){let n=Array.isArray(e)?e:e.split(Oq),a=n.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==n.find(u=>-1!==u.search("^"+l))&&n.splice(a++,1,l)});const s=n.map(l=>function Pq(e,t){const[i,n]=kq[e];return t&&n||i}(l,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:l}){const u=new RegExp(t+"(-[a-z]+)*","gi"),d=l.elements.popper,p=l.placement;let m=d.className;m=m.replace(u,""),m+=` ${function Gq(e,t){let[i,n]=t.split("-");const r=i.replace(Fq,"start").replace(Bq,"end");let a=[r];if(n){let s=n;("left"===i||"right"===i)&&(s=s.replace(Uq,"top").replace(jq,"bottom")),a.push(`${r}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,m=m.trim().replace(Rq," "),d.className=m}},WG,ZG,e$,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function KC(e){return e}function pc(){const e=J(Tq);let t=null;return{createPopper(i){if(!t){let r=(i.updatePopperOptions||KC)(qC(i,e));t=M$(i.hostElement,i.targetElement,r)}},update(){t&&t.update()},setOptions(i){if(t){let r=(i.updatePopperOptions||KC)(qC(i,e));t.setOptions(r)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let ny=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),ay=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();class I3{constructor(t,i,n){this.nodes=t,this.viewRef=i,this.componentRef=n}}class sy{constructor(t,i,n,r,a,s){this._componentType=t,this._injector=i,this._viewContainerRef=n,this._renderer=r,this._ngZone=a,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,i),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(e2(1),F1(()=>L2(this._ngZone,r,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?L2(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:t,runningTransition:"stop"}).pipe(q1(()=>{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)})):ae(void 0)}_getContentRef(t,i){if(t){if(t instanceof o1){const n=t.createEmbeddedView(i);return this._applicationRef.attachView(n),new I3([n.rootNodes],n)}return new I3([[this._renderer.createText(`${t}`)]])}return new I3([])}}let iK=(()=>{var e;class t{constructor(n,r){this._el=n,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{L2(this._zone,this._el.nativeElement,(n,r)=>{r&&ci(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return L2(this._zone,this._el.nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,r){2&n&&(gn("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ze("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[D2],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})();class oy{update(t){}close(t){}dismiss(t){}}const rK=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],aK=["animation","backdropClass"];class sK{_applyWindowOptions(t,i){rK.forEach(n=>{z3(i[n])&&(t[n]=i[n])})}_applyBackdropOptions(t,i){aK.forEach(n=>{z3(i[n])&&(t[n]=i[n])})}update(t){this._applyWindowOptions(this._windowCmptRef.instance,t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(R1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(R1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,i,n,r){this._windowCmptRef=t,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new fe,this._dismissed=new fe,this._hidden=new fe,t.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const i=this._beforeDismiss();!function wC(e){return e&&e.then}(i)?!1!==i&&this._dismiss(t):i.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ae(void 0);t.subscribe(()=>{const{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),H5(t,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var ea=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(ea||{});let oK=(()=>{var e;class t{constructor(n,r,a){this._document=n,this._elRef=r,this._zone=a,this._closed$=new fe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ee,this.shown=new fe,this.hidden=new fe}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":bn(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(e2(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=H5(L2(this._zone,n,()=>n.classList.remove("show"),r),L2(this._zone,this._dialogEl.nativeElement,()=>{},r));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const n={animation:this.animation,runningTransition:"continue"};H5(L2(this._zone,this._elRef.nativeElement,(s,o)=>{o&&ci(s),s.classList.add("show")},n),L2(this._zone,this._dialogEl.nativeElement,()=>{},n)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{X1(n,"keydown").pipe(R1(this._closed$),z1(a=>a.which===Ze.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(ea.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;X1(this._dialogEl.nativeElement,"mousedown").pipe(R1(this._closed$),q1(()=>r=!1),bt(()=>X1(n,"mouseup").pipe(R1(this._closed$),e2(1))),z1(({target:a})=>n===a)).subscribe(()=>{r=!0}),X1(n,"click").pipe(R1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(ea.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){const r=n.querySelector("[ngbAutofocus]"),a=$C(n)[0];(r||a||n).focus()}}_restoreFocus(){const n=this._document.body,r=this._elWithFocus;let a;a=r&&r.focus&&n.contains(r)?r:n,this._zone.runOutsideAngular(()=>{setTimeout(()=>a.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&L2(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(y1),w(Ne),w(Me))},e.\u0275cmp=oe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,r){if(1&n&&function C3(e,t,i){const n=Le();n.firstCreatePass&&(tg(n,new Jm(e,t,i),-1),2==(2&t)&&(n.staticViewQueries=!0)),eg(n,k(),t)}(cW,7),2&n){let a;je(a=Ge())&&(r._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,r){2&n&&(W("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),gn("modal d-block"+(r.windowClass?" "+r.windowClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[D2],ngContentSelectors:rc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,r){1&n&&(G4(),g(0,"div",0,1)(2,"div",2),$4(3),_()()),2&n&&gn("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}),t})(),cK=(()=>{var e;class t{constructor(n){this._document=n}hide(){const n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,a=r.style,{overflow:s,paddingRight:o}=a;if(n>0){const c=parseFloat(window.getComputedStyle(r).paddingRight);a.paddingRight=`${c+n}px`}return a.overflow="hidden",()=>{n>0&&(a.paddingRight=o),a.overflow=s}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(y1))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),lK=(()=>{var e;class t{constructor(n,r,a,s,o,c,l){this._applicationRef=n,this._injector=r,this._environmentInjector=a,this._document=s,this._scrollBar=o,this._rendererFactory=c,this._ngZone=l,this._activeWindowCmptHasChanged=new fe,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const u=this._windowCmpts[this._windowCmpts.length-1];((e,t,i,n=!1)=>{e.runOutsideAngular(()=>{const r=X1(t,"focusin").pipe(R1(i),He(a=>a.target));X1(t,"keydown").pipe(R1(i),z1(a=>a.which===Ze.Tab),V5(r)).subscribe(([a,s])=>{const[o,c]=$C(t);(s===o||s===t)&&a.shiftKey&&(c.focus(),a.preventDefault()),s===c&&!a.shiftKey&&(o.focus(),a.preventDefault())}),n&&X1(t,"click").pipe(R1(i),V5(r),He(a=>a[1])).subscribe(a=>a.focus())})})(this._ngZone,u.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(u.location.nativeElement)}})}_restoreScrollBar(){const n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,a){const s=a.container instanceof HTMLElement?a.container:z3(a.container)?this._document.querySelector(a.container):this._document.body,o=this._rendererFactory.createRenderer(null,null);if(!s)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new oy,l=(n=a.injector||n).get(R2,null)||this._environmentInjector,u=this._getContentRef(n,l,r,c,a);let d=!1!==a.backdrop?this._attachBackdrop(s):void 0,p=this._attachWindowComponent(s,u.nodes),m=new sK(p,u,d,a.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(p),m.hidden.pipe(e2(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(o.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=H=>{m.close(H)},c.dismiss=H=>{m.dismiss(H)},c.update=H=>{m.update(H)},m.update(a),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),p.changeDetectorRef.detectChanges(),m}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=z8(iK,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let a=z8(oK,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(a.hostView),n.appendChild(a.location.nativeElement),a}_getContentRef(n,r,a,s,o){return a?a instanceof o1?this._createFromTemplateRef(a,s):bn(a)?this._createFromString(a):this._createFromComponent(n,r,a,s,o):new I3([])}_createFromTemplateRef(n,r){const s=n.createEmbeddedView({$implicit:r,close(o){r.close(o)},dismiss(o){r.dismiss(o)}});return this._applicationRef.attachView(s),new I3([s.rootNodes],s)}_createFromString(n){const r=this._document.createTextNode(`${n}`);return new I3([[r]])}_createFromComponent(n,r,a,s,o){const l=z8(a,{environmentInjector:r,elementInjector:B1.create({providers:[{provide:oy,useValue:s}],parent:n})}),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new I3([[u]],l.hostView,l)}_setAriaHidden(n){const r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(a=>{a!==n&&"SCRIPT"!==a.nodeName&&(this._ariaHiddenValues.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){const r=()=>{const a=this._modalRefs.indexOf(n);a>-1&&(this._modalRefs.splice(a,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{const r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Jt),q(B1),q(R2),q(y1),q(cK),q(ul),q(Me))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),uK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(x3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cy=(()=>{var e;class t{constructor(n,r,a){this._injector=n,this._modalStack=r,this._config=a}open(n,r={}){const a={...this._config,animation:this._config.animation,...r};return this._modalStack.open(this._injector,n,a)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return(e=t).\u0275fac=function(n){return new(n||e)(q(B1),q(lK),q(uK))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),ly=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({providers:[cy]}),t})(),dy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),yy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();class CK{constructor(t,i){this.open=t,this.close=i,i||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const yK={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},My=e=>e>0?rC(e):t=>t;function by(e,t,i,n,r,a,s=0,o=0){const c=function MK(e,t=yK){const i=(e||"").trim();if(0===i.length)return[];const n=i.split(/\s+/).map(a=>a.split(":")).map(a=>{let s=t[a[0]]||a;return new CK(s[0],s[1])}),r=n.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&n.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n}(i);if(1===c.length&&c[0].isManual())return()=>{};const l=function bK(e,t,i,n){return new We(r=>{const a=[],s=()=>r.next(!0),o=()=>r.next(!1),c=()=>r.next(!n());return i.forEach(l=>{l.open===l.close?a.push(e.listen(t,l.open,c)):a.push(e.listen(t,l.open,s),e.listen(t,l.close,o))}),()=>{a.forEach(l=>l())}})}(e,t,c,n).pipe(function wK(e,t,i){return n=>{let r=null;const a=n.pipe(He(c=>({open:c})),z1(c=>{const l=i();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),T6());return I6(a.pipe(z1(c=>c.open),My(e)),a.pipe(z1(c=>!c.open),My(t))).pipe(z1(c=>c===r&&(r=null,c.open!==i())),He(c=>c.open))}}(s,o,n)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let HK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(x3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),VK=0,DK=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof o1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),gn("popover"+(r.popoverClass?" "+r.popoverClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[D2],ngContentSelectors:rc,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){1&n&&(G4(),P(0,"div",0),O(1,FW,4,2,"h3",1),g(2,"div",2),$4(3),_()),2&n&&(C(1),b("ngIf",r.title))},dependencies:[M3,O1],encapsulation:2,changeDetection:0}),t})(),SK=(()=>{var e;class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(n,r,a,s,o,c,l,u,d){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbPopoverWindowId="ngb-popover-"+VK++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._positioning=pc(),this._popupService=new sy(DK,a,s,r,this._ngZone,d)}open(n){if(!this._windowRef&&!this._isDisabled()){const{windowRef:r,transition$:a}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",n??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).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:s=>this.popperOptions(function K5(e){return t=>(t.modifiers.push(H$,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),hc(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).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=by(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:n,popoverTitle:r,disablePopover:a,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(n||r||a)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(bn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(B1),w(F2),w(HK),w(Me),w(y1),w(J2),w(Jt))},e.\u0275dir=j({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:[v1]}),t})(),wy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),Hy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),Vy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),Dy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),Sy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),zy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),AK=(()=>{var e;class t{constructor(n){this._ngbConfig=n,this.autoClose=!0,this.placement="auto",this.popperOptions=r=>r,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(n){this._animation=n}}return(e=t).\u0275fac=function(n){return new(n||e)(q(x3))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),EK=0,IK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(H2("id",r.id),gn("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[D2],ngContentSelectors:rc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,r){1&n&&(G4(),P(0,"div",0),g(1,"div",1),$4(2),_())},encapsulation:2,changeDetection:0}),t})(),TK=(()=>{var e;class t{constructor(n,r,a,s,o,c,l,u,d){this._elementRef=n,this._renderer=r,this._ngZone=c,this._document=l,this._changeDetector=u,this.shown=new ee,this.hidden=new ee,this._ngbTooltipWindowId="ngb-tooltip-"+EK++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.popperOptions=o.popperOptions,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new sy(IK,a,s,r,this._ngZone,d),this._positioning=pc()}set ngbTooltip(n){this._ngbTooltip=n,!n&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(n){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:r,transition$:a}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).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:s=>this.popperOptions(s)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),hc(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),a.subscribe(()=>this.shown.emit())}}close(n=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(n).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=by(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:n}){n&&this.isOpen()&&(this._windowRef.instance.tooltipClass=n.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(bn(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ne),w(c2),w(B1),w(F2),w(AK),w(Me),w(y1),w(J2),w(Jt))},e.\u0275dir=j({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:[v1]}),t})(),xy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();new te("live announcer delay",{providedIn:"root",factory:function OK(){return 100}});let Ly=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})(),Ny=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();const kK=[AC,IC,RC,kC,ny,ay,ly,dy,Ny,yy,wy,Hy,Vy,Dy,Sy,zy,xy,Ly];let PK=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({imports:[kK,AC,IC,RC,kC,ny,ay,ly,dy,Ny,yy,wy,Hy,Vy,Dy,Sy,zy,xy,Ly]}),t})();function Ay(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,n)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ay(Object(i),!0).forEach(function(n){Y1(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ay(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Mc(e){return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function Ey(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Y1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function X5(e,t){return function GK(e){if(Array.isArray(e))return e}(e)||function WK(e,t){var i=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,o,n=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){a=!0,o=c}finally{try{!r&&null!=i.return&&i.return()}finally{if(a)throw o}}return n}}(e,t)||Iy(e,t)||function KK(){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 ia(e){return function jK(e){if(Array.isArray(e))return e7(e)}(e)||function $K(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iy(e)||function qK(){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 Iy(e,t){if(e){if("string"==typeof e)return e7(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e7(e,t)}}function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var Ty=function(){},t7={},Oy={},Ry=null,ky={mark:Ty,measure:Ty};try{typeof window<"u"&&(t7=window),typeof document<"u"&&(Oy=document),typeof MutationObserver<"u"&&(Ry=MutationObserver),typeof performance<"u"&&(ky=performance)}catch{}var Hc,Vc,Dc,Sc,zc,Py=(t7.navigator||{}).userAgent,Fy=void 0===Py?"":Py,Qn=t7,c1=Oy,By=Ry,wc=ky,wn=!!c1.documentElement&&!!c1.head&&"function"==typeof c1.addEventListener&&"function"==typeof c1.createElement,Uy=~Fy.indexOf("MSIE")||~Fy.indexOf("Trident/"),Hn="___FONT_AWESOME___",jy="fa",Gy="svg-inline--fa",T3="data-fa-i2svg",i7="data-fa-pseudo-element",ZK="data-fa-pseudo-element-pending",r7="data-prefix",a7="data-icon",$y="fontawesome-i2svg",QK="async",JK=["HTML","HEAD","STYLE","SCRIPT"],Wy=function(){try{return!0}catch{return!1}}(),l1="classic",x1="sharp",s7=[l1,x1];function ra(e){return new Proxy(e,{get:function(i,n){return n in i?i[n]:i[l1]}})}var aa=ra((Y1(Hc={},l1,{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","fa-kit":"kit"}),Y1(Hc,x1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Hc)),sa=ra((Y1(Vc={},l1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(Vc,x1,{solid:"fass",regular:"fasr",light:"fasl"}),Vc)),oa=ra((Y1(Dc={},l1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Y1(Dc,x1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Dc)),XK=ra((Y1(Sc={},l1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Y1(Sc,x1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Sc)),eY=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,qy="fa-layers-text",tY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,nY=ra((Y1(zc={},l1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(zc,x1,{900:"fass",400:"fasr",300:"fasl"}),zc)),Ky=[1,2,3,4,5,6,7,8,9,10],iY=Ky.concat([11,12,13,14,15,16,17,18,19,20]),rY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],O3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ca=new Set;Object.keys(sa[l1]).map(ca.add.bind(ca)),Object.keys(sa[x1]).map(ca.add.bind(ca));var aY=[].concat(s7,ia(ca),["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(Ky.map(function(e){return"".concat(e,"x")})).concat(iY.map(function(e){return"w-".concat(e)})),la=Qn.FontAwesomeConfig||{};c1&&"function"==typeof c1.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 t=X5(e,2),n=t[1],r=function oY(e){return""===e||"false"!==e&&("true"===e||e)}(function sY(e){var t=c1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(la[n]=r)});var Yy={styleDefault:"solid",familyDefault:"classic",cssPrefix:jy,replacementClass:Gy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};la.familyPrefix&&(la.cssPrefix=la.familyPrefix);var di=X(X({},Yy),la);di.autoReplaceSvg||(di.observeMutations=!1);var ne={};Object.keys(Yy).forEach(function(e){Object.defineProperty(ne,e,{enumerable:!0,set:function(i){di[e]=i,ua.forEach(function(n){return n(ne)})},get:function(){return di[e]}})}),Object.defineProperty(ne,"familyPrefix",{enumerable:!0,set:function(t){di.cssPrefix=t,ua.forEach(function(i){return i(ne)})},get:function(){return di.cssPrefix}}),Qn.FontAwesomeConfig=ne;var ua=[],nn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},fY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fa(){for(var e=12,t="";e-- >0;)t+=fY[62*Math.random()|0];return t}function hi(e){for(var t=[],i=(e||[]).length>>>0;i--;)t[i]=e[i];return t}function o7(e){return e.classList?hi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Zy(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function xc(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,": ").concat(e[i].trim(),";")},"")}function c7(e){return e.size!==nn.size||e.x!==nn.x||e.y!==nn.y||e.rotate!==nn.rotate||e.flipX||e.flipY}var mY=':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-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, none));\n transform: rotate(var(--fa-rotate-angle, none));\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 Qy(){var e=jy,t=Gy,i=ne.cssPrefix,n=ne.replacementClass,r=mY;if(i!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");r=r.replace(a,".".concat(i,"-")).replace(s,"--".concat(i,"-")).replace(o,".".concat(n))}return r}var Jy=!1;function l7(){ne.autoAddCss&&!Jy&&(function uY(e){if(e&&wn){var t=c1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var i=c1.head.childNodes,n=null,r=i.length-1;r>-1;r--){var a=i[r],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(n=a)}c1.head.insertBefore(t,n)}}(Qy()),Jy=!0)}var gY={mixout:function(){return{dom:{css:Qy,insertCss:l7}}},hooks:function(){return{beforeDOMElementCreation:function(){l7()},beforeI2svg:function(){l7()}}}},Vn=Qn||{};Vn[Hn]||(Vn[Hn]={}),Vn[Hn].styles||(Vn[Hn].styles={}),Vn[Hn].hooks||(Vn[Hn].hooks={}),Vn[Hn].shims||(Vn[Hn].shims=[]);var Tt=Vn[Hn],Xy=[],Lc=!1;function da(e){var t=e.tag,i=e.attributes,n=void 0===i?{}:i,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?Zy(e):"<".concat(t," ").concat(function dY(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,'="').concat(Zy(e[i]),'" ')},"").trim()}(n),">").concat(a.map(da).join(""),"</").concat(t,">")}function eM(e,t,i){if(e&&e[t]&&e[t][i])return{prefix:t,iconName:i,icon:e[t][i]}}wn&&((Lc=(c1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c1.readyState))||c1.addEventListener("DOMContentLoaded",function e(){c1.removeEventListener("DOMContentLoaded",e),Lc=1,Xy.map(function(t){return t()})}));var u7=function(t,i,n,r){var c,l,u,a=Object.keys(t),s=a.length,o=void 0!==r?function(t,i){return function(n,r,a,s){return t.call(i,n,r,a,s)}}(i,r):i;for(void 0===n?(c=1,u=t[a[0]]):(c=0,u=n);c<s;c++)u=o(u,t[l=a[c]],l,t);return u};function f7(e){var t=function yY(e){for(var t=[],i=0,n=e.length;i<n;){var r=e.charCodeAt(i++);if(r>=55296&&r<=56319&&i<n){var a=e.charCodeAt(i++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),i--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function tM(e){return Object.keys(e).reduce(function(t,i){var n=e[i];return n.icon?t[n.iconName]=n.icon:t[i]=n,t},{})}function d7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=tM(t);"function"!=typeof Tt.hooks.addPack||r?Tt.styles[e]=X(X({},Tt.styles[e]||{}),a):Tt.hooks.addPack(e,tM(t)),"fas"===e&&d7("fa",t)}var Nc,Ac,Ec,pi=Tt.styles,bY=Tt.shims,wY=(Y1(Nc={},l1,Object.values(oa[l1])),Y1(Nc,x1,Object.values(oa[x1])),Nc),h7=null,nM={},iM={},rM={},aM={},sM={},HY=(Y1(Ac={},l1,Object.keys(aa[l1])),Y1(Ac,x1,Object.keys(aa[x1])),Ac);var oM=function(){var t=function(a){return u7(pi,function(s,o,c){return s[c]=u7(o,a,{}),s},{})};nM=t(function(r,a,s){return a[3]&&(r[a[3]]=s),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=s}),r}),iM=t(function(r,a,s){return r[s]=s,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=s}),r}),sM=t(function(r,a,s){var o=a[2];return r[s]=s,o.forEach(function(c){r[c]=s}),r});var i="far"in pi||ne.autoFetchSvg,n=u7(bY,function(r,a){var s=a[0],o=a[1],c=a[2];return"far"===o&&!i&&(o="fas"),"string"==typeof s&&(r.names[s]={prefix:o,iconName:c}),"number"==typeof s&&(r.unicodes[s.toString(16)]={prefix:o,iconName:c}),r},{names:{},unicodes:{}});rM=n.names,aM=n.unicodes,h7=Ic(ne.styleDefault,{family:ne.familyDefault})};function p7(e,t){return(nM[e]||{})[t]}function R3(e,t){return(sM[e]||{})[t]}function cM(e){return rM[e]||{prefix:null,iconName:null}}function Xn(){return h7}(function lY(e){ua.push(e)})(function(e){h7=Ic(e.styleDefault,{family:ne.familyDefault})}),oM();var m7=function(){return{prefix:null,iconName:null,rest:[]}};function Ic(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===i?l1:i;return sa[n][e]||sa[n][aa[n][e]]||(e in Tt.styles?e:null)||null}var lM=(Y1(Ec={},l1,Object.keys(oa[l1])),Y1(Ec,x1,Object.keys(oa[x1])),Ec);function Tc(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(Y1(t={},l1,"".concat(ne.cssPrefix,"-").concat(l1)),Y1(t,x1,"".concat(ne.cssPrefix,"-").concat(x1)),t),s=null,o=l1;(e.includes(a[l1])||e.some(function(l){return lM[l1].includes(l)}))&&(o=l1),(e.includes(a[x1])||e.some(function(l){return lM[x1].includes(l)}))&&(o=x1);var c=e.reduce(function(l,u){var d=function DY(e,t){var i=t.split("-"),n=i[0],r=i.slice(1).join("-");return n!==e||""===r||function VY(e){return~aY.indexOf(e)}(r)?null:r}(ne.cssPrefix,u);if(pi[u]?(u=wY[o].includes(u)?XK[o][u]:u,s=u,l.prefix=u):HY[o].indexOf(u)>-1?(s=u,l.prefix=Ic(u,{family:o})):d?l.iconName=d:u!==ne.replacementClass&&u!==a[l1]&&u!==a[x1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===s?cM(l.iconName):{},m=R3(l.prefix,l.iconName);p.prefix&&(s=null),l.iconName=p.iconName||m||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!pi.far&&pi.fas&&!ne.autoFetchSvg&&(l.prefix="fas")}return l},m7());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&o===x1&&(pi.fass||ne.autoFetchSvg)&&(c.prefix="fass",c.iconName=R3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===s)&&(c.prefix=Xn()||"fas"),c}var xY=function(){function e(){(function FK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function BK(e,t,i){t&&Ey(e.prototype,t),i&&Ey(e,i),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var i=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=r.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(o){i.definitions[o]=X(X({},i.definitions[o]||{}),s[o]),d7(o,s[o]);var c=oa[l1][o];c&&d7(c,s[o]),oM()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(i,n){var r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(function(a){var s=r[a],o=s.prefix,c=s.iconName,l=s.icon,u=l[2];i[o]||(i[o]={}),u.length>0&&u.forEach(function(d){"string"==typeof d&&(i[o][d]=l)}),i[o][c]=l}),i}}]),e}(),uM=[],mi={},gi={},LY=Object.keys(gi);function g7(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return(mi[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function k3(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(mi[e]||[]).forEach(function(a){a.apply(null,i)})}function Dn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return gi[e]?gi[e].apply(null,t):void 0}function v7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,i=e.prefix||Xn();if(t)return t=R3(i,t)||t,eM(fM.definitions,i,t)||eM(Tt.styles,i,t)}var fM=new xY,EY={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wn?(k3("beforeI2svg",t),Dn("pseudoElements2svg",t),Dn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoReplaceSvgRoot;!1===ne.autoReplaceSvg&&(ne.autoReplaceSvg=!0),ne.observeMutations=!0,function _Y(e){wn&&(Lc?setTimeout(e,0):Xy.push(e))}(function(){TY({autoReplaceSvgRoot:i}),k3("watch",t)})}},it={noAuto:function(){ne.autoReplaceSvg=!1,ne.observeMutations=!1,k3("noAuto")},config:ne,dom:EY,parse:{icon:function(t){if(null===t)return null;if("object"===Mc(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:R3(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var i=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],n=Ic(t[0]);return{prefix:n,iconName:R3(n,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(ne.cssPrefix,"-"))>-1||t.match(eY))){var r=Tc(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Xn(),iconName:R3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var a=Xn();return{prefix:a,iconName:R3(a,t)||t}}}},library:fM,findIconDefinition:v7,toHtml:da},TY=function(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===i?c1:i;(Object.keys(Tt.styles).length>0||ne.autoFetchSvg)&&wn&&ne.autoReplaceSvg&&it.dom.i2svg({node:n})};function Oc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return da(n)})}}),Object.defineProperty(e,"node",{get:function(){if(wn){var n=c1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function _7(e){var t=e.icons,i=t.main,n=t.mask,r=e.prefix,a=e.iconName,s=e.transform,o=e.symbol,c=e.title,l=e.maskId,u=e.titleId,d=e.extra,p=e.watchable,m=void 0!==p&&p,H=n.found?n:i,D=H.width,x=H.height,E="fak"===r,z=[ne.replacementClass,a?"".concat(ne.cssPrefix,"-").concat(a):""].filter(function(ke){return-1===d.classes.indexOf(ke)}).filter(function(ke){return""!==ke||!!ke}).concat(d.classes).join(" "),B={children:[],attributes:X(X({},d.attributes),{},{"data-prefix":r,"data-icon":a,class:z,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(D," ").concat(x)})},U=E&&!~d.classes.indexOf("fa-fw")?{width:"".concat(D/x*16*.0625,"em")}:{};m&&(B.attributes[T3]=""),c&&(B.children.push({tag:"title",attributes:{id:B.attributes["aria-labelledby"]||"title-".concat(u||fa())},children:[c]}),delete B.attributes.title);var G=X(X({},B),{},{prefix:r,iconName:a,main:i,mask:n,maskId:l,transform:s,symbol:o,styles:X(X({},U),d.styles)}),ie=n.found&&i.found?Dn("generateAbstractMask",G)||{children:[],attributes:{}}:Dn("generateAbstractIcon",G)||{children:[],attributes:{}},we=ie.attributes;return G.children=ie.children,G.attributes=we,o?function RY(e){var i=e.iconName,n=e.children,r=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(ne.cssPrefix,"-").concat(i):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},r),{},{id:s}),children:n}]}]}(G):function OY(e){var t=e.children,i=e.main,n=e.mask,r=e.attributes,a=e.styles,s=e.transform;if(c7(s)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=xc(X(X({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(G)}function dM(e){var t=e.content,i=e.width,n=e.height,r=e.transform,a=e.title,s=e.extra,o=e.watchable,c=void 0!==o&&o,l=X(X(X({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(l[T3]="");var u=X({},s.styles);c7(r)&&(u.transform=function pY(e){var t=e.transform,i=e.width,r=e.height,a=void 0===r?16:r,s=e.startCentered,o=void 0!==s&&s,c="";return c+=o&&Uy?"translate(".concat(t.x/16-(void 0===i?16:i)/2,"em, ").concat(t.y/16-a/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(c+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:r,startCentered:!0,width:i,height:n}),u["-webkit-transform"]=u.transform);var d=xc(u);d.length>0&&(l.style=d);var p=[];return p.push({tag:"span",attributes:l,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}var C7=Tt.styles;function y7(e){var t=e[0],i=e[1],a=X5(e.slice(4),1)[0];return{found:!0,width:t,height:i,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(ne.cssPrefix,"-").concat(O3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(O3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ne.cssPrefix,"-").concat(O3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var PY={found:!1,width:512,height:512};function M7(e,t){var i=t;return"fa"===t&&null!==ne.styleDefault&&(t=Xn()),new Promise(function(n,r){if(Dn("missingIconAbstract"),"fa"===i){var s=cM(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&C7[t]&&C7[t][e])return n(y7(C7[t][e]));(function FY(e,t){!Wy&&!ne.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(X(X({},PY),{},{icon:ne.showMissingIcons&&e&&Dn("missingIconAbstract")||{}}))})}var hM=function(){},b7=ne.measurePerformance&&wc&&wc.mark&&wc.measure?wc:{mark:hM,measure:hM},ha='FA "6.4.2"',pM=function(t){b7.mark("".concat(ha," ").concat(t," ends")),b7.measure("".concat(ha," ").concat(t),"".concat(ha," ").concat(t," begins"),"".concat(ha," ").concat(t," ends"))},w7={begin:function(t){return b7.mark("".concat(ha," ").concat(t," begins")),function(){return pM(t)}},end:pM},Rc=function(){};function mM(e){return"string"==typeof(e.getAttribute?e.getAttribute(T3):null)}function $Y(e){return c1.createElementNS("http://www.w3.org/2000/svg",e)}function WY(e){return c1.createElement(e)}function gM(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===i?"svg"===e.tag?$Y:WY:i;if("string"==typeof e)return c1.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(s){r.setAttribute(s,e.attributes[s])}),(e.children||[]).forEach(function(s){r.appendChild(gM(s,{ceFn:n}))}),r}var kc={replace:function(t){var i=t[0];if(i.parentNode)if(t[1].forEach(function(r){i.parentNode.insertBefore(gM(r),i)}),null===i.getAttribute(T3)&&ne.keepOriginalSource){var n=c1.createComment(function qY(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(i));i.parentNode.replaceChild(n,i)}else i.remove()},nest:function(t){var i=t[0],n=t[1];if(~o7(i).indexOf(ne.replacementClass))return kc.replace(t);var r=new RegExp("".concat(ne.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(o,c){return c===ne.replacementClass||c.match(r)?o.toSvg.push(c):o.toNode.push(c),o},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?i.removeAttribute("class"):i.setAttribute("class",a.toNode.join(" "))}var s=n.map(function(o){return da(o)}).join("\n");i.setAttribute(T3,""),i.innerHTML=s}};function vM(e){e()}function _M(e,t){var i="function"==typeof t?t:Rc;if(0===e.length)i();else{var n=vM;ne.mutateApproach===QK&&(n=Qn.requestAnimationFrame||vM),n(function(){var r=function GY(){return!0===ne.autoReplaceSvg?kc.replace:kc[ne.autoReplaceSvg]||kc.replace}(),a=w7.begin("mutate");e.map(r),a(),i()})}}var H7=!1;function CM(){H7=!0}function V7(){H7=!1}var Pc=null;function yM(e){if(By&&ne.observeMutations){var t=e.treeCallback,i=void 0===t?Rc:t,n=e.nodeCallback,r=void 0===n?Rc:n,a=e.pseudoElementsCallback,s=void 0===a?Rc:a,o=e.observeMutationsRoot,c=void 0===o?c1:o;Pc=new By(function(l){if(!H7){var u=Xn();hi(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!mM(d.addedNodes[0])&&(ne.searchPseudoElements&&s(d.target),i(d.target)),"attributes"===d.type&&d.target.parentNode&&ne.searchPseudoElements&&s(d.target.parentNode),"attributes"===d.type&&mM(d.target)&&~rY.indexOf(d.attributeName))if("class"===d.attributeName&&function UY(e){var t=e.getAttribute?e.getAttribute(r7):null,i=e.getAttribute?e.getAttribute(a7):null;return t&&i}(d.target)){var p=Tc(o7(d.target)),H=p.iconName;d.target.setAttribute(r7,p.prefix||u),H&&d.target.setAttribute(a7,H)}else(function jY(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ne.replacementClass)})(d.target)&&r(d.target)})}}),wn&&Pc.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function MM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},i=function ZY(e){var t=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",r=Tc(o7(e));return r.prefix||(r.prefix=Xn()),t&&i&&(r.prefix=t,r.iconName=i),r.iconName&&r.prefix||(r.prefix&&n.length>0&&(r.iconName=function SY(e,t){return(iM[e]||{})[t]}(r.prefix,e.innerText)||p7(r.prefix,f7(e.innerText))),!r.iconName&&ne.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}(e),n=i.iconName,r=i.prefix,a=i.rest,s=function QY(e){var t=hi(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),i=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return ne.autoA11y&&(i?t["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(n||fa()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=g7("parseNodeAttributes",{},e),c=t.styleParser?function YY(e){var t=e.getAttribute("style"),i=[];return t&&(i=t.split(";").reduce(function(n,r){var a=r.split(":"),s=a[0],o=a.slice(1);return s&&o.length>0&&(n[s]=o.join(":").trim()),n},{})),i}(e):[];return X({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},o)}var XY=Tt.styles;function bM(e){var t="nest"===ne.autoReplaceSvg?MM(e,{styleParser:!1}):MM(e);return~t.extra.classes.indexOf(qy)?Dn("generateLayersText",e,t):Dn("generateSvgReplacementMutation",e,t)}var e3=new Set;function wM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!wn)return Promise.resolve();var i=c1.documentElement.classList,n=function(d){return i.add("".concat($y,"-").concat(d))},r=function(d){return i.remove("".concat($y,"-").concat(d))},a=ne.autoFetchSvg?e3:s7.map(function(u){return"fa-".concat(u)}).concat(Object.keys(XY));a.includes("fa")||a.push("fa");var s=[".".concat(qy,":not([").concat(T3,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(T3,"])")})).join(", ");if(0===s.length)return Promise.resolve();var o=[];try{o=hi(e.querySelectorAll(s))}catch{}if(!(o.length>0))return Promise.resolve();n("pending"),r("complete");var c=w7.begin("onTree"),l=o.reduce(function(u,d){try{var p=bM(d);p&&u.push(p)}catch(m){Wy||"MissingIcon"===m.name&&console.error(m)}return u},[]);return new Promise(function(u,d){Promise.all(l).then(function(p){_M(p,function(){n("active"),n("complete"),r("pending"),"function"==typeof t&&t(),c(),u()})}).catch(function(p){c(),d(p)})})}function eZ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;bM(e).then(function(i){i&&_M([i],t)})}s7.map(function(e){e3.add("fa-".concat(e))}),Object.keys(aa[l1]).map(e3.add.bind(e3)),Object.keys(aa[x1]).map(e3.add.bind(e3)),e3=ia(e3);var nZ=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.transform,r=void 0===n?nn:n,a=i.symbol,s=void 0!==a&&a,o=i.mask,c=void 0===o?null:o,l=i.maskId,u=void 0===l?null:l,d=i.title,p=void 0===d?null:d,m=i.titleId,H=void 0===m?null:m,D=i.classes,x=void 0===D?[]:D,E=i.attributes,z=void 0===E?{}:E,B=i.styles,U=void 0===B?{}:B;if(t){var G=t.prefix,ie=t.iconName,ve=t.icon;return Oc(X({type:"icon"},t),function(){return k3("beforeDOMElementCreation",{iconDefinition:t,params:i}),ne.autoA11y&&(p?z["aria-labelledby"]="".concat(ne.replacementClass,"-title-").concat(H||fa()):(z["aria-hidden"]="true",z.focusable="false")),_7({icons:{main:y7(ve),mask:c?y7(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:G,iconName:ie,transform:X(X({},nn),r),symbol:s,title:p,maskId:u,titleId:H,extra:{attributes:z,styles:U,classes:x}})})}},iZ={mixout:function(){return{icon:(e=nZ,function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:v7(t||{}),r=i.mask;return r&&(r=(r||{}).icon?r:v7(r||{})),e(n,X(X({},i),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(i){return i.treeCallback=wM,i.nodeCallback=eZ,i}}},provides:function(t){t.i2svg=function(i){var n=i.node,a=i.callback;return wM(void 0===n?c1:n,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(i,n){var r=n.iconName,a=n.title,s=n.titleId,o=n.prefix,c=n.transform,l=n.symbol,u=n.mask,d=n.maskId,p=n.extra;return new Promise(function(m,H){Promise.all([M7(r,o),u.iconName?M7(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(D){var x=X5(D,2);m([i,_7({icons:{main:x[0],mask:x[1]},prefix:o,iconName:r,transform:c,symbol:l,maskId:d,title:a,titleId:s,extra:p,watchable:!0})])}).catch(H)})},t.generateAbstractIcon=function(i){var l,n=i.children,r=i.attributes,a=i.main,s=i.transform,c=xc(i.styles);return c.length>0&&(r.style=c),c7(s)&&(l=Dn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:r}}}},rZ={mixout:function(){return{layer:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.classes,a=void 0===r?[]:r;return Oc({type:"layer"},function(){k3("beforeDOMElementCreation",{assembler:i,params:n});var s=[];return i(function(o){Array.isArray(o)?o.map(function(c){s=s.concat(c.abstract)}):s=s.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(ne.cssPrefix,"-layers")].concat(ia(a)).join(" ")},children:s}]})}}}},aZ={mixout:function(){return{counter:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.title,a=void 0===r?null:r,s=n.classes,o=void 0===s?[]:s,c=n.attributes,l=void 0===c?{}:c,u=n.styles,d=void 0===u?{}:u;return Oc({type:"counter",content:i},function(){return k3("beforeDOMElementCreation",{content:i,params:n}),function kY(e){var t=e.content,i=e.title,n=e.extra,r=X(X(X({},n.attributes),i?{title:i}:{}),{},{class:n.classes.join(" ")}),a=xc(n.styles);a.length>0&&(r.style=a);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),i&&s.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),s}({content:i.toString(),title:a,extra:{attributes:l,styles:d,classes:["".concat(ne.cssPrefix,"-layers-counter")].concat(ia(o))}})})}}}},sZ={mixout:function(){return{text:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.transform,a=void 0===r?nn:r,s=n.title,o=void 0===s?null:s,c=n.classes,l=void 0===c?[]:c,u=n.attributes,d=void 0===u?{}:u,p=n.styles,m=void 0===p?{}:p;return Oc({type:"text",content:i},function(){return k3("beforeDOMElementCreation",{content:i,params:n}),dM({content:i,transform:X(X({},nn),a),title:o,extra:{attributes:d,styles:m,classes:["".concat(ne.cssPrefix,"-layers-text")].concat(ia(l))}})})}}},provides:function(t){t.generateLayersText=function(i,n){var r=n.title,a=n.transform,s=n.extra,o=null,c=null;if(Uy){var l=parseInt(getComputedStyle(i).fontSize,10),u=i.getBoundingClientRect();o=u.width/l,c=u.height/l}return ne.autoA11y&&!r&&(s.attributes["aria-hidden"]="true"),Promise.resolve([i,dM({content:i.innerHTML,width:o,height:c,transform:a,title:r,extra:s,watchable:!0})])}}},oZ=new RegExp('"',"ug"),HM=[1105920,1112319];function VM(e,t){var i="".concat(ZK).concat(t.replace(":","-"));return new Promise(function(n,r){if(null!==e.getAttribute(i))return n();var s=hi(e.children).filter(function(ve){return ve.getAttribute(i7)===t})[0],o=Qn.getComputedStyle(e,t),c=o.getPropertyValue("font-family").match(tY),l=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(s&&!c)return e.removeChild(s),n();if(c&&"none"!==u&&""!==u){var d=o.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?x1:l1,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?sa[p][c[2].toLowerCase()]:nY[p][l],H=function cZ(e){var t=e.replace(oZ,""),i=function MY(e,t){var r,i=e.length,n=e.charCodeAt(t);return n>=55296&&n<=56319&&i>t+1&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}(t,0),n=i>=HM[0]&&i<=HM[1],r=2===t.length&&t[0]===t[1];return{value:f7(r?t[0]:t),isSecondary:n||r}}(d),D=H.value,x=H.isSecondary,E=c[0].startsWith("FontAwesome"),z=p7(m,D),B=z;if(E){var U=function zY(e){var t=aM[e],i=p7("fas",e);return t||(i?{prefix:"fas",iconName:i}:null)||{prefix:null,iconName:null}}(D);U.iconName&&U.prefix&&(z=U.iconName,m=U.prefix)}if(!z||x||s&&s.getAttribute(r7)===m&&s.getAttribute(a7)===B)n();else{e.setAttribute(i,B),s&&e.removeChild(s);var G=function JY(){return{iconName:null,title:null,titleId:null,prefix:null,transform:nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ie=G.extra;ie.attributes[i7]=t,M7(z,m).then(function(ve){var we=_7(X(X({},G),{},{icons:{main:ve,mask:m7()},prefix:m,iconName:B,extra:ie,watchable:!0})),ke=c1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(ke,e.firstChild):e.appendChild(ke),ke.outerHTML=we.map(function(b1){return da(b1)}).join("\n"),e.removeAttribute(i),n()}).catch(r)}}else n()})}function lZ(e){return Promise.all([VM(e,"::before"),VM(e,"::after")])}function uZ(e){return!(e.parentNode===document.head||~JK.indexOf(e.tagName.toUpperCase())||e.getAttribute(i7)||e.parentNode&&"svg"===e.parentNode.tagName)}function DM(e){if(wn)return new Promise(function(t,i){var n=hi(e.querySelectorAll("*")).filter(uZ).map(lZ),r=w7.begin("searchPseudoElements");CM(),Promise.all(n).then(function(){r(),V7(),t()}).catch(function(){r(),V7(),i()})})}var SM=!1,zM=function(t){return t.toLowerCase().split(" ").reduce(function(n,r){var a=r.toLowerCase().split("-"),s=a[0],o=a.slice(1).join("-");if(s&&"h"===o)return n.flipX=!0,n;if(s&&"v"===o)return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(s){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o}return n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},D7={x:0,y:0,width:"100%",height:"100%"};function xM(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function NY(e,t){var i=t.mixoutsTo;uM=e,mi={},Object.keys(gi).forEach(function(n){-1===LY.indexOf(n)&&delete gi[n]}),uM.forEach(function(n){var r=n.mixout?n.mixout():{};if(Object.keys(r).forEach(function(s){"function"==typeof r[s]&&(i[s]=r[s]),"object"===Mc(r[s])&&Object.keys(r[s]).forEach(function(o){i[s]||(i[s]={}),i[s][o]=r[s][o]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(s){mi[s]||(mi[s]=[]),mi[s].push(a[s])})}n.provides&&n.provides(gi)})}([gY,iZ,rZ,aZ,sZ,{hooks:function(){return{mutationObserverCallbacks:function(i){return i.pseudoElementsCallback=DM,i}}},provides:function(t){t.pseudoElements2svg=function(i){var n=i.node;ne.searchPseudoElements&&DM(void 0===n?c1:n)}}},{mixout:function(){return{dom:{unwatch:function(){CM(),SM=!0}}}},hooks:function(){return{bootstrap:function(){yM(g7("mutationObserverCallbacks",{}))},noAuto:function(){!function KY(){Pc&&Pc.disconnect()}()},watch:function(i){var n=i.observeMutationsRoot;SM?V7():yM(g7("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},{mixout:function(){return{parse:{transform:function(i){return zM(i)}}}},hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-transform");return r&&(i.transform=zM(r)),i}}},provides:function(t){t.generateAbstractTransformGrouping=function(i){var n=i.main,r=i.transform,s=i.iconWidth,o={transform:"translate(".concat(i.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)"),m={outer:o,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(s/2*-1," -256)")}};return{tag:"g",attributes:X({},m.outer),children:[{tag:"g",attributes:X({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-mask"),a=r?Tc(r.split(" ").map(function(s){return s.trim()})):m7();return a.prefix||(a.prefix=Xn()),i.mask=a,i.maskId=n.getAttribute("data-fa-mask-id"),i}}},provides:function(t){t.generateAbstractMask=function(i){var e,n=i.children,r=i.attributes,a=i.main,s=i.mask,o=i.maskId,u=a.icon,p=s.icon,m=function hY(e){var t=e.transform,n=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:i.transform,containerWidth:s.width,iconWidth:a.width}),H={tag:"rect",attributes:X(X({},D7),{},{fill:"white"})},D=u.children?{children:u.children.map(xM)}:{},x={tag:"g",attributes:X({},m.inner),children:[xM(X({tag:u.tag,attributes:X(X({},u.attributes),m.path)},D))]},E={tag:"g",attributes:X({},m.outer),children:[x]},z="mask-".concat(o||fa()),B="clip-".concat(o||fa()),U={tag:"mask",attributes:X(X({},D7),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[H,E]},G={tag:"defs",children:[{tag:"clipPath",attributes:{id:B},children:(e=p,"g"===e.tag?e.children:[e])},U]};return n.push(G,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(B,")"),mask:"url(#".concat(z,")")},D7)}),{children:n,attributes:r}}}},{provides:function(t){var i=!1;Qn.matchMedia&&(i=Qn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:X(X({},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 s=X(X({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:X(X({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return i||o.children.push({tag:"animate",attributes:X(X({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:X(X({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:X(X({},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:i?[]:[{tag:"animate",attributes:X(X({},s),{},{values:"1;0;0;0;0;1;"})}]}),i||n.push({tag:"path",attributes:X(X({},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:X(X({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-symbol");return i.symbol=null!==r&&(""===r||r),i}}}}],{mixoutsTo:it});var CZ=it.parse,yZ=it.icon;const MZ=["*"],HZ=e=>{const t={[`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(t).map(i=>t[i]?i:null).filter(i=>i)};let SZ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),zZ=(()=>{var e;class t{constructor(){this.definitions={}}addIcons(...n){for(const r of n){r.prefix in this.definitions||(this.definitions[r.prefix]={}),this.definitions[r.prefix][r.iconName]=r;for(const a of r.icon[2])"string"==typeof a&&(this.definitions[r.prefix][a]=r)}}addIconPacks(...n){for(const r of n){const a=Object.keys(r).map(s=>r[s]);this.addIcons(...a)}}getIconDefinition(n,r){return n in this.definitions&&r in this.definitions[n]?this.definitions[n][r]:null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),xZ=(()=>{var e;class t{constructor(){this.stackItemSize="1x"}ngOnChanges(n){if("size"in n)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>.')}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[v1]}),t})(),LZ=(()=>{var e;class t{constructor(n,r){this.renderer=n,this.elementRef=r}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(n){"size"in n&&(null!=n.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${n.size.currentValue}`),null!=n.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${n.size.previousValue}`))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(c2),w(Ne))},e.\u0275cmp=oe({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[v1],ngContentSelectors:MZ,decls:1,vars:0,template:function(n,r){1&n&&(G4(),$4(0))},encapsulation:2}),t})(),LM=(()=>{var e;class t{set spin(n){this.animation=n?"spin":void 0}set pulse(n){this.animation=n?"spin-pulse":void 0}constructor(n,r,a,s,o){this.sanitizer=n,this.config=r,this.iconLibrary=a,this.stackItem=s,this.classes=[],null!=o&&null==s&&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(n){if(null!=this.icon||null!=this.config.fallbackIcon){if(n){const a=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=a){const s=this.buildParams();this.renderIcon(a,s)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(n){const r=((e,t)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:"string"==typeof e?{prefix:t,iconName:e}:{prefix:e[0],iconName:e[1]})(n,this.config.defaultPrefix);return"icon"in r?r:this.iconLibrary.getIconDefinition(r.prefix,r.iconName)??((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(r),null)}buildParams(){const n={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},r="string"==typeof this.transform?CZ.transform(this.transform):this.transform;return{title:this.title,transform:r,classes:[...HZ(n),...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(n,r){const a=yZ(n,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(w($v),w(SZ),w(zZ),w(xZ,8),w(LZ,8))},e.\u0275cmp=oe({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,r){2&n&&(H2("innerHTML",r.renderedIconHTML,Ed),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"},features:[v1],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})(),NZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function S7(...e){const t=Ni(e),i=Za(e),{args:n,keys:r}=Kv(e);if(0===n.length)return Q1([],t);const a=new We(function EZ(e,t,i=Mt){return n=>{NM(t,()=>{const{length:r}=e,a=new Array(r);let s=r,o=r;for(let c=0;c<r;c++)NM(t,()=>{const l=Q1(e[c],t);let u=!1;l.subscribe(qe(n,d=>{a[c]=d,u||(u=!0,o--),o||n.next(i(a.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,r?s=>Yv(r,s):Mt));return i?a.pipe(r5(i)):a}function NM(e,t,i){e?sn(i,e,t):t()}const Fc=f2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function AM(e){return new We(t=>{j1(e()).subscribe(t)})}function pa(e,t){const i=Q(e)?e:()=>e,n=r=>r.error(i());return new We(t?r=>t.schedule(n,0,r):n)}function z7(){return f1((e,t)=>{let i=null;e._refCount++;const n=qe(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(i=null);const r=e._connection,a=i;i=null,r&&(!a||r===a)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(i=e.connect())})}class EM extends We{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,xi(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new De;const i=this.getSubject();t.add(this.source.subscribe(qe(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=De.EMPTY)}return t}refCount(){return z7()(this)}}function Bc(e){return f1((t,i)=>{let n=!1;t.subscribe(qe(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function IM(e=IZ){return f1((t,i)=>{let n=!1;t.subscribe(qe(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function IZ(){return new Fc}function P3(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):Mt,e2(1),i?Bc(t):IM(()=>new Fc))}function ma(e,t){return Q(t)?F1(e,t,1):F1(e,1)}function F3(e){return f1((t,i)=>{let a,n=null,r=!1;n=t.subscribe(qe(i,void 0,void 0,s=>{a=j1(e(s,F3(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,a.subscribe(i))})}function x7(e){return e<=0?()=>ot:f1((t,i)=>{let n=[];t.subscribe(qe(i,r=>{n.push(r),e<n.length&&n.shift()},()=>{for(const r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function L7(e){return f1((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}const _e="primary",ga=Symbol("RouteTitle");class kZ{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){const i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function vi(e){return new kZ(e)}function PZ(e,t,i){const n=i.path.split("/");if(n.length>e.length||"full"===i.pathMatch&&(t.hasChildren()||n.length<e.length))return null;const r={};for(let a=0;a<n.length;a++){const s=n[a],o=e[a];if(s.startsWith(":"))r[s.substring(1)]=o;else if(s!==o.path)return null}return{consumed:e.slice(0,n.length),posParams:r}}function rn(e,t){const i=e?Object.keys(e):void 0,n=t?Object.keys(t):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let a=0;a<i.length;a++)if(r=i[a],!TM(e[r],t[r]))return!1;return!0}function TM(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const i=[...e].sort(),n=[...t].sort();return i.every((r,a)=>n[a]===r)}return e===t}function OM(e){return e.length>0?e[e.length-1]:null}function t3(e){return function AZ(e){return!!e&&(e instanceof We||Q(e.lift)&&Q(e.subscribe))}(e)?e:_r(e)?Q1(Promise.resolve(e)):ae(e)}const BZ={exact:function PM(e,t,i){if(!B3(e.segments,t.segments)||!Uc(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!PM(e.children[n],t.children[n],i))return!1;return!0},subset:FM},RM={exact:function UZ(e,t){return rn(e,t)},subset:function jZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>TM(e[i],t[i]))},ignored:()=>!0};function kM(e,t,i){return BZ[i.paths](e.root,t.root,i.matrixParams)&&RM[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function FM(e,t,i){return BM(e,t,t.segments,i)}function BM(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!B3(r,i)||t.hasChildren()||!Uc(r,i,n))}if(e.segments.length===i.length){if(!B3(e.segments,i)||!Uc(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!FM(e.children[r],t.children[r],n))return!1;return!0}{const r=i.slice(0,e.segments.length),a=i.slice(e.segments.length);return!!(B3(e.segments,r)&&Uc(e.segments,r,n)&&e.children[_e])&&BM(e.children[_e],t,a,n)}}function Uc(e,t,i){return t.every((n,r)=>RM[i](e[r].parameters,n.parameters))}class _i{constructor(t=new $e([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vi(this.queryParams)),this._queryParamMap}toString(){return WZ.serialize(this)}}class $e{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jc(this)}}class va{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=vi(this.parameters)),this._parameterMap}toString(){return GM(this)}}function B3(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let _a=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return new N7},providedIn:"root"}),t})();class N7{parse(t){const i=new iQ(t);return new _i(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${Ca(t.root,!0)}`,n=function YZ(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${Gc(i)}=${Gc(r)}`).join("&"):`${Gc(i)}=${Gc(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function qZ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const WZ=new N7;function jc(e){return e.segments.map(t=>GM(t)).join("/")}function Ca(e,t){if(!e.hasChildren())return jc(e);if(t){const i=e.children[_e]?Ca(e.children[_e],!1):"",n=[];return Object.entries(e.children).forEach(([r,a])=>{r!==_e&&n.push(`${r}:${Ca(a,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function $Z(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===_e&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==_e&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===_e?[Ca(e.children[_e],!1)]:[`${r}:${Ca(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[_e]?`${jc(e)}/${i[0]}`:`${jc(e)}/(${i.join("//")})`}}function UM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gc(e){return UM(e).replace(/%3B/gi,";")}function A7(e){return UM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $c(e){return decodeURIComponent(e)}function jM(e){return $c(e.replace(/\+/g,"%20"))}function GM(e){return`${A7(e.path)}${function KZ(e){return Object.keys(e).map(t=>`;${A7(t)}=${A7(e[t])}`).join("")}(e.parameters)}`}const ZZ=/^[^\/()?;#]+/;function E7(e){const t=e.match(ZZ);return t?t[0]:""}const QZ=/^[^\/()?;=#]+/,XZ=/^[^=?&#]+/,tQ=/^[^&#]+/;class iQ{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(n[_e]=new $e(t,i)),n}parseSegment(){const t=E7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new F(4009,!1);return this.capture(t),new va($c(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function JZ(e){const t=e.match(QZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=E7(this.remaining);r&&(n=r,this.capture(n))}t[$c(i)]=$c(n)}parseQueryParam(t){const i=function eQ(e){const t=e.match(XZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function nQ(e){const t=e.match(tQ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=jM(i),a=jM(n);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(a)}else t[r]=a}parseParens(t){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=E7(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new F(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=_e);const s=this.parseChildren();i[a]=1===Object.keys(s).length?s[_e]:new $e([],s),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new F(4011,!1)}}function $M(e){return e.segments.length>0?new $e([],{[_e]:e}):e}function WM(e){const t={};for(const n of Object.keys(e.children)){const a=WM(e.children[n]);if(n===_e&&0===a.segments.length&&a.hasChildren())for(const[s,o]of Object.entries(a.children))t[s]=o;else(a.segments.length>0||a.hasChildren())&&(t[n]=a)}return function rQ(e){if(1===e.numberOfChildren&&e.children[_e]){const t=e.children[_e];return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}function U3(e){return e instanceof _i}function qM(e){let t;const r=$M(function i(a){const s={};for(const c of a.children){const l=i(c);s[c.outlet]=l}const o=new $e(a.url,s);return a===e&&(t=o),o}(e.root));return t??r}function KM(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return I7(r,r,r,i,n);const a=function sQ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ZM(!0,0,e);let t=0,i=!1;const n=e.reduce((r,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const o={};return Object.entries(a.outlets).forEach(([c,l])=>{o[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:o}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===s?(a.split("/").forEach((o,c)=>{0==c&&"."===o||(0==c&&""===o?i=!0:".."===o?t++:""!=o&&r.push(o))}),r):[...r,a]},[]);return new ZM(i,t,n)}(t);if(a.toRoot())return I7(r,r,new $e([],{}),i,n);const s=function oQ(e,t,i){if(e.isAbsolute)return new qc(t,!0,0);if(!i)return new qc(t,!1,NaN);if(null===i.parent)return new qc(i,!0,0);const n=Wc(e.commands[0])?0:1;return function cQ(e,t,i){let n=e,r=t,a=i;for(;a>r;){if(a-=r,n=n.parent,!n)throw new F(4005,!1);r=n.segments.length}return new qc(n,!1,r-a)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(a,r,e),o=s.processChildren?Ma(s.segmentGroup,s.index,a.commands):QM(s.segmentGroup,s.index,a.commands);return I7(r,s.segmentGroup,o,i,n)}function Wc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ya(e){return"object"==typeof e&&null!=e&&e.outlets}function I7(e,t,i,n,r){let s,a={};n&&Object.entries(n).forEach(([c,l])=>{a[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===t?i:YM(e,t,i);const o=$M(WM(s));return new _i(o,a,r)}function YM(e,t,i){const n={};return Object.entries(e.children).forEach(([r,a])=>{n[r]=a===t?i:YM(a,t,i)}),new $e(e.segments,n)}class ZM{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&Wc(n[0]))throw new F(4003,!1);const r=n.find(ya);if(r&&r!==OM(n))throw new F(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class qc{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function QM(e,t,i){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return Ma(e,t,i);const n=function uQ(e,t,i){let n=0,r=t;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(n>=i.length)return a;const s=e.segments[r],o=i[n];if(ya(o))break;const c=`${o}`,l=n<i.length-1?i[n+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!XM(c,l,s))return a;n+=2}else{if(!XM(c,{},s))return a;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(e,t,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const a=new $e(e.segments.slice(0,n.pathIndex),{});return a.children[_e]=new $e(e.segments.slice(n.pathIndex),e.children),Ma(a,0,r)}return n.match&&0===r.length?new $e(e.segments,{}):n.match&&!e.hasChildren()?T7(e,t,i):n.match?Ma(e,0,r):T7(e,t,i)}function Ma(e,t,i){if(0===i.length)return new $e(e.segments,{});{const n=function lQ(e){return ya(e[0])?e[0].outlets:{[_e]:e}}(i),r={};if(Object.keys(n).some(a=>a!==_e)&&e.children[_e]&&1===e.numberOfChildren&&0===e.children[_e].segments.length){const a=Ma(e.children[_e],t,i);return new $e(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[a]=QM(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(r[a]=s)}),new $e(e.segments,r)}}function T7(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r<i.length;){const a=i[r];if(ya(a)){const c=fQ(a.outlets);return new $e(n,c)}if(0===r&&Wc(i[0])){n.push(new va(e.segments[t].path,JM(i[0]))),r++;continue}const s=ya(a)?a.outlets[_e]:`${a}`,o=r<i.length-1?i[r+1]:null;s&&o&&Wc(o)?(n.push(new va(s,JM(o))),r+=2):(n.push(new va(s,{})),r++)}return new $e(n,{})}function fQ(e){const t={};return Object.entries(e).forEach(([i,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=T7(new $e([],{}),0,n))}),t}function JM(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function XM(e,t,i){return e==i.path&&rn(t,i.parameters)}const ba="imperative";class an{constructor(t,i){this.id=t,this.url=i}}class wa extends an{constructor(t,i,n="imperative",r=null){super(t,i),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class n3 extends an{constructor(t,i,n){super(t,i),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ha extends an{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ci extends an{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class Kc extends an{constructor(t,i,n,r){super(t,i),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class eb extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hQ extends an{constructor(t,i,n,r,a){super(t,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=a,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mQ extends an{constructor(t,i,n,r){super(t,i),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gQ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class vQ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _Q{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CQ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yQ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MQ{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tb{constructor(t,i,n){this.routerEvent=t,this.position=i,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class O7{}class R7{constructor(t){this.url=t}}class bQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Va,this.attachRef=null}}let Va=(()=>{var e;class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const a=this.getOrCreateContext(n);a.outlet=r,this.contexts.set(n,a)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new bQ,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class nb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){const i=k7(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=k7(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=P7(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return P7(t,this._root).map(i=>i.value)}}function k7(e,t){if(e===t.value)return t;for(const i of t.children){const n=k7(e,i);if(n)return n}return null}function P7(e,t){if(e===t.value)return[t];for(const i of t.children){const n=P7(e,i);if(n.length)return n.unshift(t),n}return[]}class Sn{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function yi(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class ib extends nb{constructor(t,i){super(t),this.snapshot=i,F7(this,t)}toString(){return this.snapshot.toString()}}function rb(e,t){const i=function wQ(e,t){const s=new Yc([],{},{},"",{},_e,t,null,{});return new sb("",new Sn(s,[]))}(0,t),n=new ct([new va("",{})]),r=new ct({}),a=new ct({}),s=new ct({}),o=new ct(""),c=new zn(n,r,s,o,a,_e,t,i.root);return c.snapshot=i.root,new ib(new Sn(c,[]),i)}class zn{constructor(t,i,n,r,a,s,o,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=a,this.outlet=s,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(He(l=>l[ga]))??ae(void 0),this.url=t,this.params=i,this.queryParams=n,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._paramMap=this.params.pipe(He(t=>vi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(He(t=>vi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ab(e,t="emptyOnly"){const i=e.pathFromRoot;let n=0;if("always"!==t)for(n=i.length-1;n>=1;){const r=i[n],a=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(a.component)break;n--}}return function HQ(e){return e.reduce((t,i)=>({params:{...t.params,...i.params},data:{...t.data,...i.data},resolve:{...i.data,...t.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Yc{get title(){return this.data?.[ga]}constructor(t,i,n,r,a,s,o,c,l){this.url=t,this.params=i,this.queryParams=n,this.fragment=r,this.data=a,this.outlet=s,this.component=o,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||(this._paramMap=vi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class sb extends nb{constructor(t,i){super(i),this.url=t,F7(this,i)}toString(){return ob(this._root)}}function F7(e,t){t.value._routerState=e,t.children.forEach(i=>F7(e,i))}function ob(e){const t=e.children.length>0?` { ${e.children.map(ob).join(", ")} } `:"";return`${e.value}${t}`}function B7(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,rn(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),rn(t.params,i.params)||e.paramsSubject.next(i.params),function FZ(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!rn(e[i],t[i]))return!1;return!0}(t.url,i.url)||e.urlSubject.next(i.url),rn(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function U7(e,t){const i=rn(e.params,t.params)&&function GZ(e,t){return B3(e,t)&&e.every((i,n)=>rn(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||U7(e.parent,t.parent))}let j7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=_e,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.parentContexts=J(Va),this.location=J(F2),this.changeDetector=J(J2),this.environmentInjector=J(R2),this.inputBinder=J(Zc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:a}=n.name;if(r)return;this.isTrackedInParentContexts(a)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(a)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new F(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new F(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new F(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new F(4013,!1);this._activatedRoute=n;const a=this.location,o=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new VQ(n,c,a.injector);this.activated=a.createComponent(o,{index:a.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[v1]}),t})();class VQ{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===zn?this.route:t===Va?this.childContexts:this.parent.get(t,i)}}const Zc=new te("");let cb=(()=>{var e;class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,a=S7([r.queryParams,r.params,r.data]).pipe(bt(([s,o,c],l)=>(c={...s,...o,...c},0===l?ae(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const o=function xF(e){const t=xe(e);if(!t)return null;const i=new dr(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}(r.component);if(o)for(const{templateName:c}of o.inputs)n.activatedComponentRef.setInput(c,s[c]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,a)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function Da(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function SQ(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return Da(e,n,r);return Da(e,n)})}(e,t,i);return new Sn(n,r)}{if(e.shouldAttach(t.value)){const a=e.retrieve(t.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(o=>Da(e,o)),s}}const n=function zQ(e){return new zn(new ct(e.url),new ct(e.params),new ct(e.queryParams),new ct(e.fragment),new ct(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(a=>Da(e,a));return new Sn(n,r)}}const G7="ngNavigationCancelingError";function lb(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=U3(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=ub(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function ub(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[G7]=!0,n.cancellationCode=t,i&&(n.url=i),n}function fb(e){return e&&e[G7]}let db=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],standalone:!0,features:[D2],decls:1,vars:0,template:function(n,r){1&n&&P(0,"router-outlet")},dependencies:[j7],encapsulation:2}),t})();function $7(e){const t=e.children&&e.children.map($7),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==_e&&(i.component=db),i}function Ot(e){return e.outlet||_e}function Sa(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class OQ{constructor(t,i,n,r,a){this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=a}activate(t){const i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,t),B7(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=yi(i);t.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,r[s],n),delete r[s]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(r===a)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,i,s.children)}else this.deactivateChildRoutes(t,i,n);else a&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=yi(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);if(n&&n.outlet){const s=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:o})}}deactivateRouteAndOutlet(t,i){const n=i.getContext(t.value.outlet),r=n&&t.value.component?n.children:i,a=yi(t);for(const s of Object.keys(a))this.deactivateRouteAndItsChildren(a[s],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,i,n){const r=yi(i);t.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],n),this.forwardEvent(new MQ(a.value.snapshot))}),t.children.length&&this.forwardEvent(new CQ(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(B7(r),r===a)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,s.children)}else this.activateChildRoutes(t,i,n);else if(r.component){const s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),B7(o.route.value),this.activateChildRoutes(t,null,s.children)}else{const o=Sa(r.snapshot);s.attachRef=null,s.route=r,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}}class hb{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Qc{constructor(t,i){this.component=t,this.route=i}}function RQ(e,t,i){const n=e._root;return za(n,t?t._root:null,i,[n.value])}function Mi(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function KL(e){return null!==Xa(e)}(e)?t.get(e):e:n}function za(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=yi(t);return e.children.forEach(s=>{(function PQ(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,s=t?t.value:null,o=i?i.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const c=function FQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!B3(e.url,t.url);case"pathParamsOrQueryParamsChange":return!B3(e.url,t.url)||!rn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!U7(e,t)||!rn(e.queryParams,t.queryParams);default:return!U7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new hb(n)):(a.data=s.data,a._resolvedData=s._resolvedData),za(e,t,a.component?o?o.children:null:i,n,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Qc(o.outlet.component,s))}else s&&xa(t,o,r),r.canActivateChecks.push(new hb(n)),za(e,null,a.component?o?o.children:null:i,n,r)})(s,a[s.value.outlet],i,n.concat([s.value]),r),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,o])=>xa(o,i.getContext(s),r)),r}function xa(e,t,i){const n=yi(e),r=e.value;Object.entries(n).forEach(([a,s])=>{xa(s,r.component?t?t.children.getContext(a):null:t,i)}),i.canDeactivateChecks.push(new Qc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function La(e){return"function"==typeof e}function pb(e){return e instanceof Fc||"EmptyError"===e?.name}const Jc=Symbol("INITIAL_VALUE");function bi(){return bt(e=>S7(e.map(t=>t.pipe(e2(1),function aC(...e){const t=Ni(e);return f1((i,n)=>{(t?jr(e,i,t):jr(e,i)).subscribe(n)})}(Jc)))).pipe(He(t=>{for(const i of t)if(!0!==i){if(i===Jc)return Jc;if(!1===i||i instanceof _i)return i}return!0}),z1(t=>t!==Jc),e2(1)))}function mb(e){return function Ua(...e){return zi(e)}(q1(t=>{if(U3(t))throw lb(0,t)}),He(t=>!0===t))}class Xc{constructor(t){this.segmentGroup=t||null}}class gb{constructor(t){this.urlTree=t}}function wi(e){return pa(new Xc(e))}function vb(e){return pa(new gb(e))}class sJ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new F(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ae(n);if(r.numberOfChildren>1||!r.children[_e])return pa(new F(4e3,!1));r=r.children[_e]}}applyRedirectCommands(t,i,n){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,n)}applyRedirectCreateUrlTree(t,i,n,r){const a=this.createSegmentGroup(t,i.root,n,r);return new _i(a,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){const n={};return Object.entries(t).forEach(([r,a])=>{if("string"==typeof a&&a.startsWith(":")){const o=a.substring(1);n[r]=i[o]}else n[r]=a}),n}createSegmentGroup(t,i,n,r){const a=this.createSegments(t,i.segments,n,r);let s={};return Object.entries(i.children).forEach(([o,c])=>{s[o]=this.createSegmentGroup(t,c,n,r)}),new $e(a,s)}createSegments(t,i,n,r){return i.map(a=>a.path.startsWith(":")?this.findPosParam(t,a,r):this.findOrReturn(a,n))}findPosParam(t,i,n){const r=n[i.path.substring(1)];if(!r)throw new F(4001,!1);return r}findOrReturn(t,i){let n=0;for(const r of i){if(r.path===t.path)return i.splice(n),r;n++}return t}}const W7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oJ(e,t,i,n,r){const a=q7(e,t,i);return a.matched?(n=function LQ(e,t){return e.providers&&!e._injector&&(e._injector=Jl(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function iJ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const o=Mi(s,e);return t3(function WQ(e){return e&&La(e.canMatch)}(o)?o.canMatch(t,i):e.runInContext(()=>o(t,i)))})).pipe(bi(),mb()):ae(!0)}(n,t,i).pipe(He(s=>!0===s?a:{...W7}))):ae(a)}function q7(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...W7}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||PZ)(i,e,t);if(!r)return{...W7};const a={};Object.entries(r.posParams??{}).forEach(([o,c])=>{a[o]=c.path});const s=r.consumed.length>0?{...a,...r.consumed[r.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function _b(e,t,i,n){return i.length>0&&function uJ(e,t,i){return i.some(n=>e6(e,t,n)&&Ot(n)!==_e)}(e,i,n)?{segmentGroup:new $e(t,lJ(n,new $e(i,e.children))),slicedSegments:[]}:0===i.length&&function fJ(e,t,i){return i.some(n=>e6(e,t,n))}(e,i,n)?{segmentGroup:new $e(e.segments,cJ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new $e(e.segments,e.children),slicedSegments:i}}function cJ(e,t,i,n,r){const a={};for(const s of n)if(e6(e,i,s)&&!r[Ot(s)]){const o=new $e([],{});a[Ot(s)]=o}return{...r,...a}}function lJ(e,t){const i={};i[_e]=t;for(const n of e)if(""===n.path&&Ot(n)!==_e){const r=new $e([],{});i[Ot(n)]=r}return i}function e6(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class mJ{constructor(t,i,n,r,a,s,o){this.injector=t,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=o,this.allowRedirects=!0,this.applyRedirects=new sJ(this.urlSerializer,this.urlTree)}noMatchError(t){return new F(4002,!1)}recognize(){const t=_b(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,_e).pipe(F3(i=>{if(i instanceof gb)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof Xc?this.noMatchError(i):i}),He(i=>{const n=new Yc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),r=new Sn(n,i),a=new sb("",r),s=function aQ(e,t,i=null,n=null){return KM(qM(e),t,i,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(a._root),{state:a,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,_e).pipe(F3(n=>{throw n instanceof Xc?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=ab(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,i,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,i,n):this.processSegment(t,i,n,n.segments,r,!0)}processChildren(t,i,n){const r=[];for(const a of Object.keys(n.children))"primary"===a?r.unshift(a):r.push(a);return Q1(r).pipe(ma(a=>{const s=n.children[a],o=function IQ(e,t){const i=e.filter(n=>Ot(n)===t);return i.push(...e.filter(n=>Ot(n)!==t)),i}(i,a);return this.processSegmentGroup(t,o,s,a)}),function OZ(e,t){return f1(function TZ(e,t,i,n,r){return(a,s)=>{let o=i,c=t,l=0;a.subscribe(qe(s,u=>{const d=l++;c=o?e(c,u,d):(o=!0,u),n&&s.next(c)},r&&(()=>{o&&s.next(c),s.complete()})))}}(e,t,arguments.length>=2,!0))}((a,s)=>(a.push(...s),a)),Bc(null),function RZ(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):Mt,x7(1),i?Bc(t):IM(()=>new Fc))}(),F1(a=>{if(null===a)return wi(n);const s=Cb(a);return function gJ(e){e.sort((t,i)=>t.value.outlet===_e?-1:i.value.outlet===_e?1:t.value.outlet.localeCompare(i.value.outlet))}(s),ae(s)}))}processSegment(t,i,n,r,a,s){return Q1(i).pipe(ma(o=>this.processSegmentAgainstRoute(o._injector??t,i,o,n,r,a,s).pipe(F3(c=>{if(c instanceof Xc)return ae(null);throw c}))),P3(o=>!!o),F3(o=>{if(pb(o))return function hJ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,a)?ae([]):wi(n);throw o}))}processSegmentAgainstRoute(t,i,n,r,a,s,o){return function dJ(e,t,i,n){return!!(Ot(e)===n||n!==_e&&e6(t,i,e))&&("**"===e.path||q7(t,e,i).matched)}(n,r,a,s)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,r,n,a,s,o):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,n,a,s):wi(r):wi(r)}expandSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r){const a=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?vb(a):this.applyRedirects.lineralizeSegments(n,a).pipe(F1(s=>{const o=new $e(s,{});return this.processSegment(t,i,o,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,i,n,r,a,s){const{matched:o,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=q7(i,r,a);if(!o)return wi(i);const d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?vb(d):this.applyRedirects.lineralizeSegments(r,d).pipe(F1(p=>this.processSegment(t,n,i,p.concat(l),s,!1)))}matchSegmentAgainstRoute(t,i,n,r,a,s){let o;if("**"===n.path){const c=r.length>0?OM(r).parameters:{};o=ae({snapshot:new Yc(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yb(n),Ot(n),n.component??n._loadedComponent??null,n,Mb(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else o=oJ(i,n,r,t).pipe(He(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new Yc(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yb(n),Ot(n),n.component??n._loadedComponent??null,n,Mb(n)),consumedSegments:l,remainingSegments:u}:null));return o.pipe(bt(c=>null===c?wi(i):this.getChildConfig(t=n._injector??t,n,r).pipe(bt(({routes:l})=>{const u=n._loadedInjector??t,{snapshot:d,consumedSegments:p,remainingSegments:m}=c,{segmentGroup:H,slicedSegments:D}=_b(i,p,m,l);if(0===D.length&&H.hasChildren())return this.processChildren(u,l,H).pipe(He(E=>null===E?null:[new Sn(d,E)]));if(0===l.length&&0===D.length)return ae([new Sn(d,[])]);const x=Ot(n)===a;return this.processSegment(u,l,H,D,x?_e:a,!0).pipe(He(E=>[new Sn(d,E)]))}))))}getChildConfig(t,i,n){return i.children?ae({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):function nJ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const o=Mi(s,e);return t3(function UQ(e){return e&&La(e.canLoad)}(o)?o.canLoad(t,i):e.runInContext(()=>o(t,i)))})).pipe(bi(),mb())}(t,i,n).pipe(F1(r=>r?this.configLoader.loadChildren(t,i).pipe(q1(a=>{i._loadedRoutes=a.routes,i._loadedInjector=a.injector})):function aJ(e){return pa(ub(!1,3))}())):ae({routes:[],injector:t})}}function vJ(e){const t=e.value.routeConfig;return t&&""===t.path}function Cb(e){const t=[],i=new Set;for(const n of e){if(!vJ(n)){t.push(n);continue}const r=t.find(a=>n.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...n.children),i.add(r)):t.push(n)}for(const n of i){const r=Cb(n.children);t.push(new Sn(n.value,r))}return t.filter(n=>!i.has(n))}function yb(e){return e.data||{}}function Mb(e){return e.resolve||{}}function bb(e){return"string"==typeof e.title||null===e.title}function K7(e){return bt(t=>{const i=e(t);return i?Q1(i).pipe(He(()=>t)):ae(t)})}const Hi=new te("ROUTES");let Y7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=J(Mg)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ae(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=t3(n.loadComponent()).pipe(He(wb),q1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),L7(()=>{this.componentLoaders.delete(n)})),a=new EM(r,()=>new fe).pipe(z7());return this.componentLoaders.set(n,a),a}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ae({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(He(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(c)?u=c:(l=c.create(n).injector,u=l.get(Hi,[],ye.Self|ye.Optional).flat()),{routes:u.map($7),injector:l}}),L7(()=>{this.childrenLoaders.delete(r)})),o=new EM(s,()=>new fe).pipe(z7());return this.childrenLoaders.set(r,o),o}loadModuleFactoryOrRoutes(n){return t3(n()).pipe(He(wb),F1(r=>r instanceof Lm||Array.isArray(r)?ae(r):Q1(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function wb(e){return function HJ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let t6=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new fe,this.transitionAbortSubject=new fe,this.configLoader=J(Y7),this.environmentInjector=J(R2),this.urlSerializer=J(_a),this.rootContexts=J(Va),this.inputBindingEnabled=null!==J(Zc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new vQ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new gQ(a))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n,r,a){return this.transitions=new ct({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:n.urlHandlingStrategy.extract(r),urlAfterRedirects:n.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ba,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(z1(s=>0!==s.id),He(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),bt(s=>{this.currentTransition=s;let o=!1,c=!1;return ae(s).pipe(q1(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),bt(l=>{const u=l.currentBrowserUrl.toString(),d=!n.navigated||l.extractedUrl.toString()!==u||u!==l.currentUrlTree.toString();if(!d&&"reload"!==(l.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const m="";return this.events.next(new Ci(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),ot}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ae(l).pipe(bt(m=>{const H=this.transitions?.getValue();return this.events.next(new wa(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),H!==this.transitions?.getValue()?ot:Promise.resolve(m)}),function _J(e,t,i,n,r,a){return F1(s=>function pJ(e,t,i,n,r,a,s="emptyOnly"){return new mJ(e,t,i,n,r,s,a).recognize()}(e,t,i,n,s.extractedUrl,r,a).pipe(He(({state:o,tree:c})=>({...s,targetSnapshot:o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),q1(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const H=new eb(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(H)}));if(d&&n.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:H,source:D,restoredState:x,extras:E}=l,z=new wa(m,this.urlSerializer.serialize(H),D,x);this.events.next(z);const B=rb(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:B,urlAfterRedirects:H,extras:{...E,skipLocationChange:!1,replaceUrl:!1}},ae(s)}{const m="";return this.events.next(new Ci(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),ot}}),q1(l=>{const u=new dQ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),He(l=>(this.currentTransition=s={...l,guards:RQ(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function KQ(e,t){return F1(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:s}}=i;return 0===s.length&&0===a.length?ae({...i,guardsResult:!0}):function YQ(e,t,i,n){return Q1(e).pipe(F1(r=>function tJ(e,t,i,n,r){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?ae(a.map(o=>{const c=Sa(t)??r,l=Mi(o,c);return t3(function $Q(e){return e&&La(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(P3())})).pipe(bi()):ae(!0)}(r.component,r.route,i,t,n)),P3(r=>!0!==r,!0))}(s,n,r,e).pipe(F1(o=>o&&function BQ(e){return"boolean"==typeof e}(o)?function ZQ(e,t,i,n){return Q1(t).pipe(ma(r=>jr(function JQ(e,t){return null!==e&&t&&t(new _Q(e)),ae(!0)}(r.route.parent,n),function QQ(e,t){return null!==e&&t&&t(new yQ(e)),ae(!0)}(r.route,n),function eJ(e,t,i){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function kQ(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>AM(()=>ae(s.guards.map(c=>{const l=Sa(s.node)??i,u=Mi(c,l);return t3(function GQ(e){return e&&La(e.canActivateChild)}(u)?u.canActivateChild(n,e):l.runInContext(()=>u(n,e))).pipe(P3())})).pipe(bi())));return ae(a).pipe(bi())}(e,r.path,i),function XQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return ae(!0);const r=n.map(a=>AM(()=>{const s=Sa(t)??i,o=Mi(a,s);return t3(function jQ(e){return e&&La(e.canActivate)}(o)?o.canActivate(t,e):s.runInContext(()=>o(t,e))).pipe(P3())}));return ae(r).pipe(bi())}(e,r.route,i))),P3(r=>!0!==r,!0))}(n,a,e,t):ae(o)),He(o=>({...i,guardsResult:o})))})}(this.environmentInjector,l=>this.events.next(l)),q1(l=>{if(s.guardsResult=l.guardsResult,U3(l.guardsResult))throw lb(0,l.guardsResult);const u=new hQ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),z1(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),K7(l=>{if(l.guards.canActivateChecks.length)return ae(l).pipe(q1(u=>{const d=new pQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),bt(u=>{let d=!1;return ae(u).pipe(function CJ(e,t){return F1(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return ae(i);let a=0;return Q1(r).pipe(ma(s=>function yJ(e,t,i,n){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!bb(r)&&(a[ga]=r.title),function MJ(e,t,i,n){const r=function bJ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return ae({});const a={};return Q1(r).pipe(F1(s=>function wJ(e,t,i,n){const r=Sa(t)??n,a=Mi(e,r);return t3(a.resolve?a.resolve(t,i):r.runInContext(()=>a(t,i)))}(e[s],t,i,n).pipe(P3(),q1(o=>{a[s]=o}))),x7(1),nC(a),F3(s=>pb(s)?ot:pa(s)))}(a,e,t,n).pipe(He(s=>(e._resolvedData=s,e.data=ab(e,i).resolve,r&&bb(r)&&(e.data[ga]=r.title),null)))}(s.route,n,e,t)),q1(()=>a++),x7(1),F1(s=>a===r.length?ae(i):ot))})}(n.paramsInheritanceStrategy,this.environmentInjector),q1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",2)}}))}),q1(u=>{const d=new mQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),K7(l=>{const u=d=>{const p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(q1(m=>{d.component=m}),He(()=>{})));for(const m of d.children)p.push(...u(m));return p};return S7(u(l.targetSnapshot.root)).pipe(Bc(),e2(1))}),K7(()=>this.afterPreactivation()),He(l=>{const u=function DQ(e,t,i){const n=Da(e,t._root,i?i._root:void 0);return new ib(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:u},s}),q1(()=>{this.events.next(new O7)}),((e,t,i,n)=>He(r=>(new OQ(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),e2(1),q1({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new n3(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),n.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),R1(this.transitionAbortSubject.pipe(q1(l=>{throw l}))),L7(()=>{o||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),F3(l=>{if(c=!0,fb(l))this.events.next(new Ha(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function xQ(e){return fb(e)&&U3(e.url)}(l)?this.events.next(new R7(l.url)):s.resolve(!1);else{this.events.next(new Kc(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(u){s.reject(u)}}return ot}))}))}cancelNavigationTransition(n,r,a){const s=new Ha(n.id,this.urlSerializer.serialize(n.extractedUrl),r,a);this.events.next(s),n.resolve(!1)}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Hb(e){return e!==ba}let Vb=(()=>{var e;class t{buildTitle(n){let r,a=n.root;for(;void 0!==a;)r=this.getResolvedTitleForRoute(a)??r,a=a.children.find(s=>s.outlet===_e);return r}getResolvedTitleForRoute(n){return n.data[ga]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(VJ)},providedIn:"root"}),t})(),VJ=(()=>{var e;class t extends Vb{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Uv))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),DJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(zJ)},providedIn:"root"}),t})();class SJ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let zJ=(()=>{var e;class t extends SJ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const n6=new te("",{providedIn:"root",factory:()=>({})});let xJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:function(){return J(LJ)},providedIn:"root"}),t})(),LJ=(()=>{var e;class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var Na=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Na||{});function Db(e,t){e.events.pipe(z1(i=>i instanceof n3||i instanceof Ha||i instanceof Kc||i instanceof Ci),He(i=>i instanceof n3||i instanceof Ci?Na.COMPLETE:i instanceof Ha&&(0===i.code||1===i.code)?Na.REDIRECTING:Na.FAILED),z1(i=>i!==Na.REDIRECTING),e2(1)).subscribe(()=>{t()})}function NJ(e){throw e}function AJ(e,t,i){return t.parse("/")}const EJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _2=(()=>{var e;class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=J(Cg),this.isNgZoneEnabled=!1,this._events=new fe,this.options=J(n6,{optional:!0})||{},this.pendingTasks=J(yg),this.errorHandler=this.options.errorHandler||NJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||AJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=J(xJ),this.routeReuseStrategy=J(DJ),this.titleStrategy=J(Vb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=J(Hi,{optional:!0})?.flat()??[],this.navigationTransitions=J(t6),this.urlSerializer=J(_a),this.location=J(A8),this.componentInputBindingEnabled=!!J(Zc,{optional:!0}),this.eventsSubscription=new De,this.isNgZoneEnabled=J(Me)instanceof Me&&Me.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new _i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=rb(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:a}=this.navigationTransitions;if(null===a)return void(Sb(r)&&this._events.next(r));if(r instanceof wa)Hb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(r instanceof Ci)this.rawUrlTree=a.rawUrl;else if(r instanceof eb){if("eager"===this.urlUpdateStrategy){if(!a.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);this.setBrowserUrl(s,a)}this.browserUrlTree=a.urlAfterRedirects}}else if(r instanceof O7)this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects);else if(r instanceof Ha)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(a);else if(r instanceof R7){const s=this.urlHandlingStrategy.merge(r.url,a.currentRawUrl),o={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Hb(a.source)};this.scheduleNavigation(s,ba,null,o,{resolve:a.resolve,reject:a.reject,promise:a.promise})}r instanceof Kc&&this.restoreHistory(a,!0),r instanceof n3&&(this.navigated=!0),Sb(r)&&this._events.next(r)}catch(a){this.navigationTransitions.transitionAbortSubject.next(a)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ba,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,a){const s={replaceUrl:!0},o=a?.navigationId?a:null;if(a){const l={...a};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const c=this.parseUrl(n);this.scheduleNavigation(c,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map($7),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){const{relativeTo:a,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:o;let p,d=null;switch(c){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}null!==d&&(d=this.removeEmptyProps(d));try{p=qM(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return KM(p,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const a=U3(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,ba,null,r)}navigate(n,r={skipLocationChange:!1}){return function TJ(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new F(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(a){r=this.malformedUriErrorHandler(a,this.urlSerializer,n)}return r}isActive(n,r){let a;if(a=!0===r?{...EJ}:!1===r?{...IJ}:r,U3(n))return kM(this.currentUrlTree,n,a);const s=this.parseUrl(n);return kM(this.currentUrlTree,s,a)}removeEmptyProps(n){return Object.keys(n).reduce((r,a)=>{const s=n[a];return null!=s&&(r[a]=s),r},{})}scheduleNavigation(n,r,a,s,o){if(this.disposed)return Promise.resolve(!1);let c,l,u;o?(c=o.resolve,l=o.reject,u=o.promise):u=new Promise((p,m)=>{c=p,l=m});const d=this.pendingTasks.add();return Db(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}setBrowserUrl(n,r){const a=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(a)||r.extras.replaceUrl){const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(a,"",o)}else{const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(a,"",s)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Sb(e){return!(e instanceof O7||e instanceof R7)}let xn=(()=>{var e;class t{constructor(n,r,a,s,o,c){this.router=n,this.route=r,this.tabIndexAttribute=a,this.renderer=s,this.el=o,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new fe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof n3&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,a,s,o){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||a||s||o||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Td(e,t,i){return function XE(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Id:D4}(t,i)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const a=this.renderer,s=this.el.nativeElement;null!==r?a.setAttribute(s,n,r):a.removeAttribute(s,n)}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})}}return(e=t).\u0275fac=function(n){return new(n||e)(w(_2),w(zn),function u3(e){return function vA(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const n=i.length;let r=0;for(;r<n;){const a=i[r];if(Sf(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<n&&"string"==typeof i[r];)r++;else{if(a===t)return i[r+1];r+=2}}}return null}(o2(),e)}("tabindex"),w(c2),w(Ne),w(Gn))},e.\u0275dir=j({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&R("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&W("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",X4],skipLocationChange:["skipLocationChange","skipLocationChange",X4],replaceUrl:["replaceUrl","replaceUrl",X4],routerLink:"routerLink"},standalone:!0,features:[qh,v1]}),t})();class zb{}let kJ=(()=>{var e;class t{constructor(n,r,a,s,o){this.router=n,this.injector=a,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(z1(n=>n instanceof n3),ma(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const a=[];for(const s of r){s.providers&&!s._injector&&(s._injector=Jl(s.providers,n,`Route: ${s.path}`));const o=s._injector??n,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&a.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&a.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Q1(a).pipe(X3())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let a;a=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):ae(null);const s=a.pipe(F1(o=>null===o?ae(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??n,o.routes))));return r.loadComponent&&!r._loadedComponent?Q1([s,this.loader.loadComponent(r)]).pipe(X3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(q(_2),q(Mg),q(R2),q(zb),q(Y7))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Z7=new te("");let xb=(()=>{var e;class t{constructor(n,r,a,s,o={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=a,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=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(n=>{n instanceof wa?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof n3?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Ci&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof tb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new tb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(e=t).\u0275fac=function(n){!function yh(){throw new Error("invalid")}()},e.\u0275prov=$({token:e,factory:e.\u0275fac}),t})();function Ln(e,t){return{\u0275kind:e,\u0275providers:t}}function Nb(){const e=J(B1);return t=>{const i=e.get(Jt);if(t!==i.components[0])return;const n=e.get(_2),r=e.get(Ab);1===e.get(Q7)&&n.initialNavigation(),e.get(Eb,null,ye.Optional)?.setUpPreloading(),e.get(Z7,null,ye.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Ab=new te("",{factory:()=>new fe}),Q7=new te("",{providedIn:"root",factory:()=>1}),Eb=new te("");function UJ(e){return Ln(0,[{provide:Eb,useExisting:kJ},{provide:zb,useExisting:e}])}const Ib=new te("ROUTER_FORROOT_GUARD"),GJ=[A8,{provide:_a,useClass:N7},_2,Va,{provide:zn,useFactory:function Lb(e){return e.routerState.root},deps:[_2]},Y7,[]];function $J(){return new zg("Router",_2)}let Tb=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[GJ,[],{provide:Hi,multi:!0,useValue:n},{provide:Ib,useFactory:YJ,deps:[[_2,new Ds,new Ss]]},{provide:n6,useValue:r||{}},r?.useHash?{provide:Gn,useClass:av}:{provide:Gn,useClass:rv},{provide:Z7,useFactory:()=>{const e=J(JB),t=J(Me),i=J(n6),n=J(t6),r=J(_a);return i.scrollOffset&&e.setOffset(i.scrollOffset),new xb(r,n,e,t,i)}},r?.preloadingStrategy?UJ(r.preloadingStrategy).\u0275providers:[],{provide:zg,multi:!0,useFactory:$J},r?.initialNavigation?ZJ(r):[],r?.bindToComponentInputs?Ln(8,[cb,{provide:Zc,useExisting:cb}]).\u0275providers:[],[{provide:Ob,useFactory:Nb},{provide:M8,multi:!0,useExisting:Ob}]]}}static forChild(n){return{ngModule:t,providers:[{provide:Hi,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(q(Ib,8))},e.\u0275mod=Fe({type:e}),e.\u0275inj=Te({}),t})();function YJ(e){return"guarded"}function ZJ(e){return["disabled"===e.initialNavigation?Ln(3,[{provide:h8,multi:!0,useFactory:()=>{const t=J(_2);return()=>{t.setUpLocationChangeListener()}}},{provide:Q7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ln(2,[{provide:Q7,useValue:0},{provide:h8,multi:!0,deps:[B1],useFactory:t=>{const i=t.get(AF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(_2),a=t.get(Ab);Db(r,()=>{n(!0)}),t.get(t6).afterPreactivation=()=>(n(!0),a.closed?ae(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const Ob=new te("");let JJ=(()=>{var e;class t{constructor(){V(this,"title","config-ui"),V(this,"logoSrc","assets/images/homebridge-eufy-security.png")}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-root"]],decls:16,vars:1,consts:[[1,"card","card-body",2,"width","100%"],[1,"logo"],[1,"logo",3,"src"],[1,"text-center"],[2,"font-weight","800"],[1,"pluginContent",2,"max-width","720px !important"],[1,"footer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1),P(2,"img",2),_(),g(3,"h3",3),M(4," Welcome to"),P(5,"br"),g(6,"b",4),M(7,"Eufy Security Plugin"),_()(),g(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),_(),P(10,"hr"),g(11,"div",5),P(12,"router-outlet"),_(),P(13,"hr"),g(14,"div",6),M(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. "),_()()),2&n&&(C(2),b("src",r.logoSrc,D4))},dependencies:[j7],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}"]})),t})();function Rb(e,t,i,n,r,a,s){try{var o=e[a](s),c=o.value}catch(l){return void i(l)}o.done?t(c):Promise.resolve(c).then(n,r)}function Se(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(c){Rb(a,n,r,s,o,"next",c)}function o(c){Rb(a,n,r,s,o,"throw",c)}s(void 0)})}}var qb={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"]},iH={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"]},mu={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"]},gD={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"]},Ou={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"]},wx={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"]},L=function(e){return e[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.HB3=18]="HB3",e[e.CAMERA3=19]="CAMERA3",e[e.CAMERA3C=23]="CAMERA3C",e[e.INDOOR_CAMERA=30]="INDOOR_CAMERA",e[e.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",e[e.SOLO_CAMERA=32]="SOLO_CAMERA",e[e.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",e[e.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",e[e.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",e[e.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",e[e.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",e[e.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",e[e.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",e[e.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",e[e.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",e[e.LOCK_BLE=50]="LOCK_BLE",e[e.LOCK_WIFI=51]="LOCK_WIFI",e[e.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",e[e.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",e[e.LOCK_8503=54]="LOCK_8503",e[e.LOCK_8530=55]="LOCK_8530",e[e.LOCK_85A3=56]="LOCK_85A3",e[e.LOCK_8592=57]="LOCK_8592",e[e.LOCK_8504=58]="LOCK_8504",e[e.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",e[e.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",e[e.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",e[e.SMART_DROP=90]="SMART_DROP",e[e.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",e[e.DOORBELL_SOLO=93]="DOORBELL_SOLO",e[e.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",e[e.CAMERA_GUN=101]="CAMERA_GUN",e[e.CAMERA_SNAIL=102]="CAMERA_SNAIL",e[e.CAMERA_FG=110]="CAMERA_FG",e[e.CAMERA_GARAGE_T8453_COMMON=131]="CAMERA_GARAGE_T8453_COMMON",e[e.CAMERA_GARAGE_T8452=132]="CAMERA_GARAGE_T8452",e[e.CAMERA_GARAGE_T8453=133]="CAMERA_GARAGE_T8453",e[e.SMART_SAFE_7400=140]="SMART_SAFE_7400",e[e.SMART_SAFE_7401=141]="SMART_SAFE_7401",e[e.SMART_SAFE_7402=142]="SMART_SAFE_7402",e[e.SMART_SAFE_7403=143]="SMART_SAFE_7403",e[e.WALL_LIGHT_CAM=151]="WALL_LIGHT_CAM",e[e.SMART_TRACK_LINK=157]="SMART_TRACK_LINK",e[e.SMART_TRACK_CARD=159]="SMART_TRACK_CARD",e[e.LOCK_8502=180]="LOCK_8502",e[e.LOCK_8506=181]="LOCK_8506",e[e.WALL_LIGHT_CAM_81A0=10005]="WALL_LIGHT_CAM_81A0",e}(L||{});class Ra{static isDoorbell(t){return t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO}static isCamera(t){return t===L.CAMERA||t===L.CAMERA2||t===L.CAMERA_E||t===L.CAMERA2C||t===L.INDOOR_CAMERA||t===L.INDOOR_PT_CAMERA||t===L.FLOODLIGHT||t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO||t===L.CAMERA2C_PRO||t===L.CAMERA2_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_PT_CAMERA_1080||t===L.SOLO_CAMERA||t===L.SOLO_CAMERA_PRO||t===L.SOLO_CAMERA_SPOTLIGHT_1080||t===L.SOLO_CAMERA_SPOTLIGHT_2K||t===L.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_COST_DOWN_CAMERA||t===L.FLOODLIGHT_CAMERA_8422||t===L.FLOODLIGHT_CAMERA_8423||t===L.FLOODLIGHT_CAMERA_8424||t===L.WALL_LIGHT_CAM||t===L.WALL_LIGHT_CAM_81A0||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}static supportsRTSP(t){return t===L.CAMERA||t===L.CAMERA2||t===L.CAMERA2C||t===L.CAMERA2C_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.CAMERA_E||t===L.INDOOR_CAMERA||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_PT_CAMERA||t===L.INDOOR_PT_CAMERA_1080||t===L.INDOOR_COST_DOWN_CAMERA||t===L.FLOODLIGHT_CAMERA_8423||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}static supportsTalkback(t){return t===L.CAMERA2||t===L.CAMERA2C||t===L.CAMERA2C_PRO||t===L.CAMERA2_PRO||t===L.CAMERA3||t===L.CAMERA3C||t===L.DOORBELL||t===L.BATTERY_DOORBELL||t===L.BATTERY_DOORBELL_2||t===L.BATTERY_DOORBELL_PLUS||t===L.DOORBELL_SOLO||t===L.INDOOR_CAMERA||t===L.INDOOR_CAMERA_1080||t===L.INDOOR_OUTDOOR_CAMERA_1080P||t===L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===L.INDOOR_OUTDOOR_CAMERA_2K||t===L.INDOOR_PT_CAMERA||t===L.INDOOR_PT_CAMERA_1080||t===L.INDOOR_COST_DOWN_CAMERA||t===L.SOLO_CAMERA||t===L.SOLO_CAMERA_PRO||t===L.SOLO_CAMERA_SPOTLIGHT_1080||t===L.SOLO_CAMERA_SPOTLIGHT_2K||t===L.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===L.FLOODLIGHT||t===L.FLOODLIGHT_CAMERA_8422||t===L.FLOODLIGHT_CAMERA_8423||t===L.FLOODLIGHT_CAMERA_8424||t===L.WALL_LIGHT_CAM||t===L.WALL_LIGHT_CAM_81A0||t===L.CAMERA_GARAGE_T8453_COMMON||t===L.CAMERA_GARAGE_T8453||t===L.CAMERA_GARAGE_T8452||t===L.CAMERA_FG}}const Wu=new Map([[L.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[L.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[L.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[L.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[L.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[L.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[L.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[L.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[L.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[L.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[L.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[L.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[L.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[L.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[L.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[L.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[L.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[L.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[L.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[L.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[L.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[L.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[L.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[L.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[L.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[L.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[L.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[L.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[L.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[L.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[L.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[L.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[L.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[L.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[L.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[L.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[L.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[L.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[L.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[L.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[L.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[L.LOCK_8502,{image:"unknown.png",padding:"20px"}],[L.LOCK_8506,{image:"unknown.png",padding:"20px"}],[L.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[L.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[L.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[L.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let r1=(()=>{var e;class t extends EventTarget{constructor(){super(),V(this,"stations",[]),V(this,"devices",[]),V(this,"accessories$",X1(window.homebridge,"addAccessory")),V(this,"config",void 0),this.init()}init(){this.accessories$.subscribe(n=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(n){return this.stations.find(r=>r.uniqueId===n)}getDevice(n){return this.devices.find(r=>r.uniqueId===n)}loadStoredAccessories(){var n=this;return Se(function*(){try{const r=yield window.homebridge.request("/storedAccessories");return r.forEach(a=>{n.addAccessory(a)}),0!==r.length&&n.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==r.length)}catch(r){return Promise.reject(r)}})()}addAccessory(n){const r=n.station?this.stations:this.devices;r.find(a=>a.uniqueId===n.uniqueId)||r.push(n)}getConfig(){var n=this;return Se(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,r){var a=this;return Se(function*(){try{yield window.homebridge.updatePluginConfig([n]),a.config=n,r&&(yield window.homebridge.savePluginConfig()),a.dispatchEvent(new Event("configChanged"))}catch(s){console.log("There was an error updating the credentials in your config: "+s)}})()}getPlatformConfig(){var n=this;return Se(function*(){try{const r=yield window.homebridge.getPluginConfig();return r.length>0?(n.config=r[0],n.config.platform="EufySecurity",Promise.resolve(r[0])):Promise.reject("Could not get Platform config")}catch(r){return Promise.reject(r)}})()}getCachedName(n){return Se(function*(){let a;return(yield window.homebridge.getCachedAccessories()).forEach(s=>{s.context&&s.context.device&&s.context.device.uniqueId===n.uniqueId&&s.context.device.station===n.station&&(a=s.context.device.displayName)}),Promise.resolve(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275prov",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function yge(e,t){if(1&e){const i=I1();g(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),_(),g(3,"button",4),R("click",function(){return Z(Y(i).$implicit.dismiss("Cross click"))}),_()(),g(4,"div",5)(5,"div",6),M(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. "),P(7,"p"),g(8,"b",7),M(9,"We strongly recommened that you restart the plugin after you're done with the configuration even if you didn't change any settings."),_(),P(10,"p"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),g(12,"a",8),M(13,"here"),_(),M(14," for more information). "),_()(),g(15,"div",9)(16,"a",10),R("click",function(){return Z(Y(i).$implicit.close("Login"))}),M(17,"Login with eufy"),_()()}}function Mge(e,t){1&e&&(g(0,"div",11)(1,"div",12),P(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),g(7,"div",17),P(8,"div",18),_()()()(),P(9,"div",13),_()())}function bge(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=I(3);C(1),b("icon",i.ignoreIcon)}}function wge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),P(5,"img",36),g(6,"span",37),P(7,"fa-icon",38),_(),O(8,bge,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=I(2);let r;C(3),W4("routerLink","/stationConfig/",i.uniqueId,""),C(2),b("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),D4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),pt(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function Hge(e,t){if(1&e&&(g(0,"span",42),P(1,"fa-icon",43),_()),2&e){const i=I(3);C(1),b("icon",i.ignoreIcon)}}function Vge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),P(5,"img",36),g(6,"span",37),P(7,"fa-icon",38),_(),O(8,Hge,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=I(2);let r;C(3),W4("routerLink","/cameraConfig/",i.uniqueId,""),C(2),b("src","assets/devices/"+(n.DeviceImage.get(i.type)?null==(r=n.DeviceImage.get(i.type))?null:r.image:"unknown.png"),D4),W("style",n.getDevicePanelStyle(i),hn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),pt(i.cachedName?i.cachedName:i.displayName),C(2),Q2("(",i.uniqueId,")")}}function Dge(e,t){if(1&e){const i=I1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),R("click",function(){Y(i);const r=I(),a=k2(1);return Z(r.openReloadModal(a))}),P(4,"fa-icon",22),_()(),g(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),_()()(),P(8,"p"),g(9,"span"),M(10,"Click on any device below to access its settings."),_(),P(11,"p"),g(12,"div",25)(13,"div",26),M(14," Stations "),_(),g(15,"div",27)(16,"div",19),O(17,wge,13,7,"div",28),_()()(),P(18,"p"),g(19,"div",25)(20,"div",26),M(21," Devices "),_(),g(22,"div",29)(23,"div",19),O(24,Vge,13,7,"div",28),_()()(),P(25,"p"),g(26,"span")(27,"i"),M(28,"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 "),g(29,"a",30),M(30,"Github page."),_()()()()}if(2&e){const i=I();C(4),b("icon",i.reloadIcon),C(13),b("ngForOf",i.stations),C(7),b("ngForOf",i.devices)}}let Sge=(()=>{var e;class t{constructor(n,r,a,s){V(this,"modalService",void 0),V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"routerService",void 0),V(this,"stations",[]),V(this,"devices",[]),V(this,"waitForAccessories",void 0),V(this,"settingsIcon",mu),V(this,"ignoreIcon",iH),V(this,"reloadIcon",Ou),V(this,"DeviceImage",Wu),V(this,"closeResult",""),this.modalService=n,this.pluginService=r,this.route=a,this.routerService=s}ngOnInit(){this.waitForAccessories="true"===this.route.snapshot.paramMap.get("waitForAccessories"),this.pluginService.addEventListener("newAccessories",()=>{console.log("plugin accessories have changed. updating..."),this.updateDevices(),this.updateStations()}),this.updateStations(),this.updateDevices(),!this.waitForAccessories&&0===this.stations.length&&0===this.devices.length&&this.pluginService.loadStoredAccessories().then(n=>{n||this.routerService.navigateByUrl("/login")}).catch(n=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var n=this;return Se(function*(){const r=yield n.pluginService.getConfig();Array.isArray(r.ignoreStations)&&n.stations.forEach(a=>{a.ignored=void 0!==r.ignoreStations.find(s=>s===a.uniqueId)}),Array.isArray(r.ignoreDevices)&&n.devices.forEach(a=>{a.ignored=void 0!==r.ignoreDevices.find(s=>s===a.uniqueId)}),n.stations.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)}),n.devices.forEach(a=>{n.pluginService.getCachedName(a).then(s=>a.cachedName=s)})})()}openReloadModal(n){this.modalService.open(n,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(r=>{this.closeResult=`Closed with: ${r}`},r=>{this.closeResult=`Dismissed ${this.getDismissReason(r)}`})}getDismissReason(n){return n===ea.ESC?"by pressing ESC":n===ea.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let r="";return n.ignored&&(r+="opacity: 0.2;"),Wu.get(n.type)?r+="padding:"+Wu.get(n.type)?.padding:r+="padding:20px",r}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(cy),w(r1),w(zn),w(_2))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-accessory-list"]],inputs:{waitForAccessories:"waitForAccessories"},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","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%"],[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,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-0"],["class","col-6 col-sm-4 mt-3 mb-3 d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-body"],["href","https://github.com/homebridge-eufy-security/plugin","target","_blank","rel","noopener noreferrer"],[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",3,"src"],[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(n,r){1&n&&(O(0,yge,18,0,"ng-template",null,0,S2),O(2,Mge,10,0,"div",1),O(3,Dge,31,3,"div",1)),2&n&&(C(2),b("ngIf",0===r.stations.length&&0===r.devices.length),C(1),b("ngIf",0!==r.stations.length||0!==r.devices.length))},dependencies:[Xt,O1,xn,LM],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}"]})),t})();const j3={enableDetailedLogging:!1,CameraMaxLivestreamDuration:30,pollingIntervalMinutes:10,hkHome:1,hkAway:0,hkNight:3,hkOff:63,ignoreStations:[],ignoreDevices:[],country:"US",cameras:[],cleanCache:!0,unbridge:!0};class L1{constructor(t){V(this,"pluginService",void 0),V(this,"config",void 0),this.pluginService=t,this.config=j3,this.pluginService.getConfig().then(i=>{this.config={...this.config,config:i}}).catch(i=>console.log("Could not get config in config interpreter: "+i))}getCameraConfig(t){var i=this;return Se(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.cameras)?Promise.resolve(n.cameras.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}getStationConfig(t){var i=this;return Se(function*(){const n=yield i.pluginService.getConfig();return Array.isArray(n.stations)?Promise.resolve(n.stations.find(r=>r.serialNumber===t)):Promise.resolve(void 0)})()}updateConfig(t,i){var n=this;return Se(function*(){let r=yield n.pluginService.getConfig();if(i||(r={...j3,...r,...t}),i&&!1===i.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.cameras[a]={...r.cameras[a],...t}:r.cameras.push({serialNumber:i.uniqueId,...t})}else if(i&&!0===i.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((s,o)=>{s.serialNumber===i.uniqueId&&(a=o)}),a>=0?r.stations[a]={...r.stations[a],...t}:r.stations.push({serialNumber:i.uniqueId,...t})}n.pluginService.updateConfig(r)})()}}let zge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"enableDetailedLogging")&&(this.model=this.config.enableDetailedLogging)}update(){this.updateConfig({enableDetailedLogging:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-detailed-logging"]],features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Debug Mode"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),xge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",10),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}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})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-polling-interval-minutes"]],features:[re],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,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Polling Interval"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),M(9,"minutes"),_()()()()(),g(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),_()()()),2&n&&(C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ii,S1,M1],encapsulation:2})),t})(),Lge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",30),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}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})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-livestream-duration-seconds"]],features:[re],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,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Maximum Livestream Duration"),_(),g(4,"div",2)(5,"div",3)(6,"input",4),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(7,"div",5)(8,"span",6),M(9,"seconds"),_()()()()(),g(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),_()()()),2&n&&(C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ii,S1,M1],encapsulation:2})),t})(),Nge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-edit-credentials"]],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(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),_(),g(4,"a",3),M(5,"New Login"),_()()())},dependencies:[xn],encapsulation:2})),t})(),Age=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"cleanCache")&&(this.model=this.config.cleanCache)}update(){this.updateConfig({cleanCache:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-clean-cache"]],features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Clean cache automatically"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),Ege=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"model",!1)}ngOnInit(){this.readValue()}readValue(){const n=Object.prototype.hasOwnProperty.call(this.config,"unbridge")?this.config.unbridge:j3.unbridge;this.model=n}update(){this.updateConfig({unbridge:this.model})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-unbridge-accessory"]],features:[re],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,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Unbridge Camera"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.model=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," Bridged cameras can cause slowdowns of the entire Homebridge instance. If unbridged, the camera will need to be added to HomeKit manually. See "),g(9,"a",4),M(10,"here"),_(),M(11," for mor details. "),_()()()),2&n&&(C(5),b("ngModel",r.model))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function Ige(e,t){1&e&&(g(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),_())}function Tge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Oge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Rge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function kge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}let Pge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"hkHome",void 0),V(this,"hkAway",void 0),V(this,"hkNight",void 0),V(this,"hkOff",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();r&&Object.prototype.hasOwnProperty.call(r,"hkHome")?n.hkHome=r.hkHome:n.accessory||(n.hkHome=j3.hkHome),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?n.hkAway=r.hkAway:n.accessory||(n.hkAway=j3.hkAway),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?n.hkNight=r.hkNight:n.accessory||(n.hkNight=j3.hkNight),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?n.hkOff=r.hkOff:n.accessory||(n.hkOff=j3.hkOff)})()}update(){var n=this;return Se(function*(){let r=n.accessory?yield n.getStationConfig(n.accessory.uniqueId):yield n.pluginService.getConfig();void 0===r&&(r={}),void 0===n.hkHome&&Object.prototype.hasOwnProperty.call(r,"hkHome")?delete r.hkHome:r.hkHome=n.hkHome,void 0===n.hkAway&&Object.prototype.hasOwnProperty.call(r,"hkAway")?delete r.hkAway:r.hkAway=n.hkAway,void 0===n.hkNight&&Object.prototype.hasOwnProperty.call(r,"hkNight")?delete r.hkNight:r.hkNight=n.hkNight,void 0===n.hkOff&&Object.prototype.hasOwnProperty.call(r,"hkOff")?delete r.hkOff:r.hkOff=n.hkOff;let a=yield n.pluginService.getConfig();if(n.accessory){Array.isArray(a.stations)||(a.stations=[]);let s=-1;a.stations.forEach((o,c)=>{o.serialNumber===n.accessory?.uniqueId&&(s=c)}),s>=0?a.stations[s]=r:(r.serialNumber=n.accessory.uniqueId,a.stations.push(r))}else a=r;n.pluginService.updateConfig(a)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngIf"],[3,"ngValue"],["for","inputGroupSelect02",1,"input-group-text","w-25"],["id","inputGroupSelect02",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect03",1,"input-group-text","w-25"],["id","inputGroupSelect03",1,"form-select",3,"ngModel","ngModelChange","change"],["for","inputGroupSelect04",1,"input-group-text","w-25"],["id","inputGroupSelect04",1,"form-select",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"span"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),_(),P(3,"p"),O(4,Ige,2,0,"span",1),P(5,"p"),g(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),_(),g(9,"select",4),R("ngModelChange",function(s){return r.hkHome=s})("change",function(){return r.update()}),O(10,Tge,2,1,"option",5),g(11,"option",6),M(12,"Eufy Home"),_(),g(13,"option",6),M(14,"Eufy Away"),_(),g(15,"option",6),M(16,"Eufy Schedule"),_(),g(17,"option",6),M(18,"Eufy Custom 1 (Night)"),_(),g(19,"option",6),M(20,"Eufy Custom 2"),_(),g(21,"option",6),M(22,"Eufy Custom 3"),_(),g(23,"option",6),M(24,"Eufy Geofencing"),_(),g(25,"option",6),M(26,"Eufy Disarmed"),_()()(),g(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),_(),g(30,"select",8),R("ngModelChange",function(s){return r.hkAway=s})("change",function(){return r.update()}),O(31,Oge,2,1,"option",5),g(32,"option",6),M(33,"Eufy Home"),_(),g(34,"option",6),M(35,"Eufy Away"),_(),g(36,"option",6),M(37,"Eufy Schedule"),_(),g(38,"option",6),M(39,"Eufy Custom 1 (Night)"),_(),g(40,"option",6),M(41,"Eufy Custom 2"),_(),g(42,"option",6),M(43,"Eufy Custom 3"),_(),g(44,"option",6),M(45,"Eufy Geofencing"),_(),g(46,"option",6),M(47,"Eufy Disarmed"),_()()(),g(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),_(),g(51,"select",10),R("ngModelChange",function(s){return r.hkNight=s})("change",function(){return r.update()}),O(52,Rge,2,1,"option",5),g(53,"option",6),M(54,"Eufy Home"),_(),g(55,"option",6),M(56,"Eufy Away"),_(),g(57,"option",6),M(58,"Eufy Schedule"),_(),g(59,"option",6),M(60,"Eufy Custom 1 (Night)"),_(),g(61,"option",6),M(62,"Eufy Custom 2"),_(),g(63,"option",6),M(64,"Eufy Custom 3"),_(),g(65,"option",6),M(66,"Eufy Geofencing"),_(),g(67,"option",6),M(68,"Eufy Disarmed"),_()()(),g(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),_(),g(72,"select",12),R("ngModelChange",function(s){return r.hkOff=s})("change",function(){return r.update()}),O(73,kge,2,1,"option",5),g(74,"option",6),M(75,"Eufy Home"),_(),g(76,"option",6),M(77,"Eufy Away"),_(),g(78,"option",6),M(79,"Eufy Schedule"),_(),g(80,"option",6),M(81,"Eufy Custom 1 (Night)"),_(),g(82,"option",6),M(83,"Eufy Custom 2"),_(),g(84,"option",6),M(85,"Eufy Custom 3"),_(),g(86,"option",6),M(87,"Eufy Geofencing"),_(),g(88,"option",6),M(89,"Eufy Disarmed"),_()()()()),2&n&&(C(4),b("ngIf",r.accessory),C(5),b("ngModel",r.hkHome),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkAway),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkNight),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63),C(5),b("ngModel",r.hkOff),C(1),b("ngIf",r.accessory),C(1),b("ngValue",1),C(2),b("ngValue",0),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngValue",4),C(2),b("ngValue",5),C(2),b("ngValue",47),C(2),b("ngValue",63))},dependencies:[O1,w3,H3,yn,S1,M1],encapsulation:2})),t})(),Fge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-reset-plugin"]],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(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),_(),g(4,"a",3),M(5,"Remove everything"),_()(),g(6,"small")(7,"i"),M(8," This will delete the plugin settings and files. Please be aware that this will not delete any cached accessories from homebridge. You'll have to remove these manually via the homebridge UI. "),_()()())},dependencies:[xn],encapsulation:2})),t})(),Bge=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){Object.prototype.hasOwnProperty.call(this.config,"omitLogFiles")&&(this.value=this.config.omitLogFiles)}update(){this.updateConfig({omitLogFiles:this.value})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-omit-log-files"]],features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Don't store log files"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})();var Uge=u1(7);function jge(e,t){if(1&e&&(g(0,"div",7),M(1),_()),2&e){const i=I();C(1),Q2(" ",i.failureMessage," ")}}function Gge(e,t){1&e&&P(0,"span",10)}function $ge(e,t){1&e&&(g(0,"span"),M(1,"Download Logs"),_())}function Wge(e,t){1&e&&(g(0,"span"),M(1," Generating Log File..."),_())}function qge(e,t){if(1&e){const i=I1();g(0,"button",8),R("click",function(){return Y(i),Z(I().downloadLogs())}),O(1,Gge,1,0,"span",9),O(2,$ge,2,0,"span",6),O(3,Wge,2,0,"span",6),_()}if(2&e){const i=I();W("disabled",!!i.isDownloading||null),C(1),b("ngIf",i.isDownloading),C(1),b("ngIf",!i.isDownloading),C(1),b("ngIf",i.isDownloading)}}function Kge(e,t){if(1&e){const i=I1();g(0,"a",11),R("click",function(){return Y(i),Z(I().openLink())}),g(1,"span"),M(2,"Download Logs"),_()()}}function Yge(e,t){if(1&e&&(g(0,"small")(1,"i"),M(2),_()()),2&e){const i=I();C(2),Q2(" ",i.downloadMessage," ")}}function Zge(e,t){1&e&&(g(0,"small")(1,"i"),M(2," The log file should have downloaded. If not click the button again. The file will be named 'Unknown.zip', due to technical reasons."),P(3,"br"),g(4,"b"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),g(6,"a",12),M(7,"site"),_(),M(8," can help."),_()()())}let Qge=(()=>{var e;class t{constructor(n,r){V(this,"router",void 0),V(this,"zone",void 0),V(this,"routeSub",void 0),V(this,"failed",!1),V(this,"isDownloading",!1),V(this,"hasDownloaded",!1),V(this,"downloadMessage",void 0),V(this,"failureMessage",""),V(this,"logFileLocation",""),this.router=n,this.zone=r}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof wa&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",n=>{this.updateDownloadMessage(`Compressing ${n.data.numberOfFiles} log files...`)})}downloadLogs(){var n=this;return Se(function*(){try{n.isDownloading=!0;const r=yield window.homebridge.request("/downloadLogs"),a=Uge.lW.from(r.data),s=new File([a],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(s);n.logFileLocation=o,window.open(n.logFileLocation),n.updateDownloadMessage(void 0),n.hasDownloaded=!0}catch(r){console.log(r);const a=r;n.failed=!0,n.updateDownloadMessage(void 0),n.failureMessage=`Generating of compressed logs.zip file did not complete: ${a.message}`}finally{n.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(n){this.zone.run(()=>{this.downloadMessage=n})}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(_2),w(Me))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-download-logs"]],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"],["class","btn btn-success col-12 col-sm-4",3,"click",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"],[1,"btn","btn-success","col-12","col-sm-4",3,"click"],["href","https://www.howtogeek.com/773082/how-to-disable-pop-up-blocker-in-chrome-firefox-edge-safari/","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0),O(1,jge,2,1,"div",1),g(2,"div",2)(3,"span",3),M(4,"Download Logs"),_(),O(5,qge,4,4,"button",4),O(6,Kge,3,0,"a",5),_(),O(7,Yge,3,1,"small",6),O(8,Zge,9,0,"small",6),_()),2&n&&(C(1),b("ngIf",r.failed),C(4),b("ngIf",!r.hasDownloaded),C(1),b("ngIf",r.hasDownloaded),C(1),b("ngIf",r.downloadMessage),C(1),b("ngIf",r.hasDownloaded))},dependencies:[O1],encapsulation:2})),t})(),Jge=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-advanced-config-options"]],decls:25,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(n,r){1&n&&(g(0,"a",0),M(1,"Back to Devices List"),_(),g(2,"div",1)(3,"div",2),M(4," Advanced Settings "),_(),g(5,"div",3),P(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-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-unbridge-accessory")(19,"hr")(20,"app-guard-modes-mapping")(21,"hr")(22,"app-download-logs")(23,"hr")(24,"app-reset-plugin"),_()())},dependencies:[xn,zge,xge,Lge,Nge,Age,Ege,Pge,Fge,Bge,Qge],encapsulation:2})),t})(),dL=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){if(n.config=yield n.pluginService.getConfig(),n.accessory){const r=n.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(n.config[r])&&(n.value=void 0!==n.config[r].find(a=>a===n.accessory.uniqueId))}})()}update(){var n=this;return Se(function*(){if(!n.accessory)return;const r=n.accessory.station?"ignoreStations":"ignoreDevices";n.config=yield n.pluginService.getConfig(),n.value?Array.isArray(n.config[r])&&!n.config[r].find(a=>a===n.accessory.uniqueId)?n.config[r].push(n.accessory.uniqueId):Array.isArray(n.config[r])||(n.config[r]=[n.accessory.uniqueId]):Array.isArray(n.config[r])&&void 0!==n.config[r].find(a=>a===n.accessory.uniqueId)&&(n.config[r]=n.config[r].filter(a=>a!==n.accessory.uniqueId)),n.pluginService.updateConfig(n.config)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:2,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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()()()),2&n&&(C(3),Q2("Ignore ",r.accessory&&r.accessory.station?"Station":"Device",""),C(2),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function Xge(e,t){1&e&&(g(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),_()())}function eve(e,t){1&e&&(g(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),_()())}let tve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value","true"),V(this,"disabled",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){n.accessory&&Ra.isDoorbell(n.accessory.type)&&(n.value="true",n.disabled=!0,n.update());const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(n.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:JSON.parse(this.value)},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"],["value","false"],["value","true"],[4,"ngIf"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Operation Mode"),_(),g(4,"div",2)(5,"select",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),M(7,"Motion Sensor"),_(),g(8,"option",5),M(9,"Camera"),_()()()(),O(10,Xge,3,0,"small",6),O(11,eve,3,0,"small",6),_()),2&n&&(C(5),b("ngModel",r.value),W("disabled",!!r.disabled||null),C(5),b("ngIf",r.disabled),C(1),b("ngIf",!r.disabled))},dependencies:[O1,w3,H3,yn,S1,M1],encapsulation:2})),t})(),nve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"enableCameraButton",!0),V(this,"enableMotionButton",!0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(n.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(n.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[re],decls:17,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,"ngModel","ngModelChange","change"],["href","https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues#unexpected-homekit-behaviour","target","_blank","rel","noopener noreferrer"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Display HomeKit button to switch camera on/off"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.enableCameraButton=s})("change",function(){return r.update()}),_()()(),g(6,"div",1)(7,"span"),M(8,"Display HomeKit button to switch motion detection on/off"),_(),g(9,"div",2)(10,"input",3),R("ngModelChange",function(s){return r.enableMotionButton=s})("change",function(){return r.update()}),_()()(),g(11,"small")(12,"i"),M(13," When changing these settings you might need to clear accessory cache (homebridge settings) so it can take effect. See "),g(14,"a",4),M(15,"here"),_(),M(16," for more details. "),_()()()),2&n&&(C(5),b("ngModel",r.enableCameraButton),C(5),b("ngModel",r.enableMotionButton))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),ive=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(n.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use Local Livestream Caching"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i")(8,"b"),M(9,"This setting seems only useful if you are able to set the video codec / video compression for the camera in the eufy app to 'low' (aka. H264 codec). If you can, we recommened to do so, since there can be a significant performance boost (aka. startup of livestreams)."),_(),P(10,"p"),M(11," If enabled local livestreams will be kept alive for a short time after the user stops streaming or a snapshot is refreshed (see 'Force Refresh Snapshot' also). This allows subsequent streams to start up much faster, but also may increase power consumption for battery powered devices. Additionally a livestream will be started (cached) immediately after an event (motion, person, doorbell) occurs, so that start up times are decreased. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function rve(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let ave=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"talkbackIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use RTSP streaming"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),O(6,rve,2,0,"div",4),g(7,"small")(8,"i"),M(9," Try to utilize RTSP capabilities of some devices. This may result in improved streaming stability. Please be advised that RTSP must be enable within Eufy App first!"),P(10,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[O1,v2,S1,M1],encapsulation:2})),t})(),sve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"samplerate",0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(n.value=r.videoConfig.audio),r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audioSampleRate")){const a=r.videoConfig.audioSampleRate;(8===a||16===a||24===a)&&(n.samplerate=a)}})()}update(){var n=this;return Se(function*(){if(!n.accessory)return;let r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r||(r={serialNumber:n.accessory?.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(r,"videoConfig")||(r.videoConfig={}),r.videoConfig.audio=n.value,r.videoConfig.audioSampleRate=n.samplerate,n.updateConfig(r,n.accessory)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","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"],["aria-label","Samplerate",1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Audio"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),P(9,"br"),M(10," If you encounter problems try to disable this setting. "),_()(),P(11,"p"),g(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),_(),g(15,"div",5)(16,"select",6),R("ngModelChange",function(s){return r.samplerate=s})("change",function(){return r.update()}),g(17,"option",7),M(18,"Default Sample Rate"),_(),g(19,"option",7),M(20,"8 kHz"),_(),g(21,"option",7),M(22,"16 kHz"),_(),g(23,"option",7),M(24,"24 kHz"),_()()()()()),2&n&&(C(5),b("ngModel",r.value),C(11),b("ngModel",r.samplerate),W("disabled",!r.value||null),C(1),b("ngValue",0),C(2),b("ngValue",8),C(2),b("ngValue",16),C(2),b("ngValue",24))},dependencies:[w3,H3,v2,yn,S1,M1],encapsulation:2})),t})(),ove=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Force Refresh Snapshot (Deprecated)"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(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)."),P(9,"br"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),_()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})();function cve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(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."),P(5,"br"),M(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. "),P(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",6),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",7),M(15," Performance"),P(16,"br")(17,"fa-icon",7),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();C(8),b("icon",i.plusIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon),C(3),b("icon",i.minusIcon)}}function lve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(4," This mode combines the other two. When a snapshot is requested the plugin will try to get a new snapshot from the camera."),P(5,"br"),M(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. "),P(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",8),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),M(15," Performance"),P(16,"br")(17,"fa-icon",7),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();C(8),b("icon",i.plusIcon),C(3),b("icon",i.mediumIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon)}}function uve(e,t){if(1&e&&(g(0,"small")(1,"i")(2,"b"),M(3,"Description:"),_(),M(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),P(5,"br"),M(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). "),P(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),P(10,"br")(11,"fa-icon",7),M(12," Up-to-date Snapshots (HomeKit View)"),P(13,"br")(14,"fa-icon",6),M(15," Performance"),P(16,"br")(17,"fa-icon",6),M(18," Battery life"),P(19,"br"),_()()),2&e){const i=I();C(8),b("icon",i.plusIcon),C(3),b("icon",i.minusIcon),C(3),b("icon",i.plusIcon),C(3),b("icon",i.plusIcon)}}let fve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"plusIcon",wx),V(this,"minusIcon",qb),V(this,"mediumIcon",gD),V(this,"accessory",void 0),V(this,"value",3)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?n.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(n.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[re],decls:15,vars:7,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,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],["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(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Snapshot Handling Method"),_(),g(4,"div",2)(5,"select",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),g(6,"option",4),M(7,"Force Refresh Snapshots"),_(),g(8,"option",4),M(9,"Balanced"),_(),g(10,"option",4),M(11,"Cloud Snapshots"),_()()()(),O(12,cve,20,4,"small",5),O(13,lve,20,4,"small",5),O(14,uve,20,4,"small",5),_()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngValue",1),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngIf",1===r.value),C(1),b("ngIf",2===r.value),C(1),b("ngIf",3===r.value))},dependencies:[O1,w3,H3,yn,S1,M1,LM],encapsulation:2})),t})(),dve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(n.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Immediate Notification on ring events"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," In general Homekit will try to get a snapshot to show it in it's push notifications. Since the process to genereate a snapshot takes some time the push notification will be delayed by this time difference. This option allows to generate an empty snapshot on ringing events to speed up the push notification. This can safe up to 10 seconds between the event and the corresponding notification on your device."),P(9,"br"),g(10,"b"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),_()()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),hve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",false)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(n.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Night-Vision Improvement for camera snapshots"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),g(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),P(9,"br"),g(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),_()()()()),2&n&&(C(5),b("ngModel",r.value))},dependencies:[v2,S1,M1],encapsulation:2})),t})(),pve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",0),V(this,"inputIsInvalid",!1)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(n.value=r.refreshSnapshotIntervalMinutes)})()}switchSetting(){this.value=0===this.value?30:0,this.update()}update(){this.validate()&&this.updateConfig({refreshSnapshotIntervalMinutes:this.value},this.accessory)}validate(){return this.inputIsInvalid=!1,(null==this.value||this.value<5&&0!==this.value)&&(this.inputIsInvalid=!0),!this.inputIsInvalid}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Periodic Snapshot Refresh"),_(),g(4,"div",2)(5,"input",3),R("change",function(){return r.switchSetting()}),_()()(),g(6,"div",4)(7,"span"),M(8,"Refresh Interval"),_(),g(9,"div",5)(10,"div",6)(11,"input",7),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_(),g(12,"div",8)(13,"span",9),M(14,"minutes"),_()()()()(),g(15,"small")(16,"i"),M(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."),P(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),P(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),P(22,"br"),g(23,"b"),M(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."),_()()()()),2&n&&(C(5),W("checked",r.value>0||null),C(6),b("ngModel",r.value),W("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ii,S1,M1],encapsulation:2})),t})();function mve(e,t){1&e&&(g(0,"span")(1,"b"),M(2,"Advanced Video Config"),_()())}function gve(e,t){1&e&&(g(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),_()()())}function vve(e,t){if(1&e&&(g(0,"div"),M(1),_()),2&e){const i=I(2);C(1),Q2(" ",i.presetDescription," ")}}function _ve(e,t){if(1&e){const i=I1();M(0," 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. "),P(1,"p"),M(2," You can try the following presets to improve your streaming experience. We do not guarantee that these will work for you."),P(3,"p"),g(4,"div",5)(5,"div",6)(6,"select",7),R("ngModelChange",function(r){return Y(i),Z(I().preset=r)})("change",function(){return Y(i),Z(I().loadPreset())}),g(7,"option",8),M(8,"No Preset (default)"),_(),g(9,"option",8),M(10,"Copy"),_(),g(11,"option",8),M(12,"Performance"),_(),g(13,"option",8),M(14,"Custom"),_()()()(),O(15,vve,2,1,"div",9),P(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().debug=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(20,"span",13),M(21,"ffmpeg debug"),_()(),g(22,"div",10)(23,"div",11)(24,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().useSeparateProcesses=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(25,"span",13),M(26,"use separate processes for video and audio"),_()(),g(27,"div",10)(28,"div",11)(29,"input",12),R("ngModelChange",function(r){return Y(i),Z(I().readRate=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(30,"span",13),M(31,"readRate"),_()(),g(32,"div",10)(33,"div",11)(34,"input",14),R("change",function(){Y(i);const r=I();return r.vcodec=void 0===r.vcodec?"":void 0,Z(r.update())}),_()(),g(35,"span",13),M(36,"vcodec"),_(),g(37,"input",15),R("ngModelChange",function(r){return Y(i),Z(I().vcodec=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(38,"div",10)(39,"div",11)(40,"input",14),R("change",function(){Y(i);const r=I();return r.acodec=void 0===r.acodec?"":void 0,Z(r.update())}),_()(),g(41,"span",13),M(42,"acodec"),_(),g(43,"input",16),R("ngModelChange",function(r){return Y(i),Z(I().acodec=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(44,"div",10)(45,"div",11)(46,"input",14),R("change",function(){Y(i);const r=I();return r.videoFilter=void 0===r.videoFilter?"":void 0,Z(r.update())}),_()(),g(47,"span",13),M(48,"videoFilter"),_(),g(49,"input",17),R("ngModelChange",function(r){return Y(i),Z(I().videoFilter=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(50,"div",10)(51,"div",11)(52,"input",14),R("change",function(){Y(i);const r=I();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,Z(r.update())}),_()(),g(53,"span",13),M(54,"encoderOptions"),_(),g(55,"input",18),R("ngModelChange",function(r){return Y(i),Z(I().encoderOptions=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(56,"div",10)(57,"div",11)(58,"input",14),R("change",function(){Y(i);const r=I();return r.probeSize=void 0===r.probeSize?0:void 0,Z(r.update())}),_()(),g(59,"span",13),M(60,"probeSize"),_(),g(61,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().probeSize=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(62,"div",10)(63,"div",11)(64,"input",14),R("change",function(){Y(i);const r=I();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,Z(r.update())}),_()(),g(65,"span",13),M(66,"analyzeDuration"),_(),g(67,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().analyzeDuration=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(68,"div",10)(69,"div",11)(70,"input",14),R("change",function(){Y(i);const r=I();return r.maxStreams=void 0===r.maxStreams?0:void 0,Z(r.update())}),_()(),g(71,"span",13),M(72,"maxStreams"),_(),g(73,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxStreams=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(74,"div",10)(75,"div",11)(76,"input",14),R("change",function(){Y(i);const r=I();return r.maxWidth=void 0===r.maxWidth?0:void 0,Z(r.update())}),_()(),g(77,"span",13),M(78,"maxWidth"),_(),g(79,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxWidth=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(80,"div",10)(81,"div",11)(82,"input",14),R("change",function(){Y(i);const r=I();return r.maxHeight=void 0===r.maxHeight?0:void 0,Z(r.update())}),_()(),g(83,"span",13),M(84,"maxHeight"),_(),g(85,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxHeight=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(86,"div",10)(87,"div",11)(88,"input",14),R("change",function(){Y(i);const r=I();return r.maxFPS=void 0===r.maxFPS?0:void 0,Z(r.update())}),_()(),g(89,"span",13),M(90,"fps"),_(),g(91,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxFPS=r)})("change",function(){return Y(i),Z(I().update())}),_()(),g(92,"div",10)(93,"div",11)(94,"input",14),R("change",function(){Y(i);const r=I();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,Z(r.update())}),_()(),g(95,"span",13),M(96,"bitrate"),_(),g(97,"input",19),R("ngModelChange",function(r){return Y(i),Z(I().maxBitrate=r)})("change",function(){return Y(i),Z(I().update())}),_()()}if(2&e){const i=I();C(6),b("ngModel",i.preset),C(1),b("ngValue",0),C(2),b("ngValue",1),C(2),b("ngValue",2),C(2),b("ngValue",3),C(2),b("ngIf",i.presetDescription),C(4),b("ngModel",i.debug),C(5),b("ngModel",i.useSeparateProcesses),C(5),b("ngModel",i.readRate),C(5),b("checked",void 0!==i.vcodec||null),C(3),b("ngModel",i.vcodec),W("disabled",void 0===i.vcodec||null),C(3),b("checked",void 0!==i.acodec||null),C(3),b("ngModel",i.acodec),W("disabled",void 0===i.acodec||null),C(3),b("checked",void 0!==i.videoFilter||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.videoFilter),W("disabled",void 0===i.videoFilter||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.encoderOptions||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.encoderOptions),W("disabled",void 0===i.encoderOptions||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.probeSize||null),C(3),b("ngModel",i.probeSize),W("disabled",void 0===i.probeSize||null),C(3),b("checked",void 0!==i.analyzeDuration||null),C(3),b("ngModel",i.analyzeDuration),W("disabled",void 0===i.analyzeDuration||null),C(3),b("checked",void 0!==i.maxStreams||null),C(3),b("ngModel",i.maxStreams),W("disabled",void 0===i.maxStreams||null),C(3),b("checked",void 0!==i.maxWidth||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxWidth),W("disabled",void 0===i.maxWidth||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxHeight||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxHeight),W("disabled",void 0===i.maxHeight||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxFPS||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxFPS),W("disabled",void 0===i.maxFPS||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxBitrate||null),W("disabled","copy"===i.vcodec||null),C(1),W("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,hn),C(2),b("ngModel",i.maxBitrate),W("disabled",void 0===i.maxBitrate||"copy"===i.vcodec||null)}}let Cve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"debug",void 0),V(this,"readRate",void 0),V(this,"vcodec",void 0),V(this,"acodec",void 0),V(this,"videoFilter",void 0),V(this,"encoderOptions",void 0),V(this,"probeSize",void 0),V(this,"analyzeDuration",void 0),V(this,"maxStreams",void 0),V(this,"maxWidth",void 0),V(this,"maxHeight",void 0),V(this,"maxFPS",void 0),V(this,"maxBitrate",void 0),V(this,"useSeparateProcesses",void 0),V(this,"preset",0),V(this,"presetDescription",void 0)}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([a,s])=>{n[a]=s}),n.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 n=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&&(n=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&&(n=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&&(n=2),n!==this.preset&&(this.preset=n)}update(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},s={};Object.prototype.hasOwnProperty.call(a,"audio")&&(s.audio=a.audio),n.debug&&(s.debug=n.debug),n.readRate&&(s.readRate=n.readRate),n.vcodec&&""!==n.vcodec&&(s.vcodec=n.vcodec),n.acodec&&""!==n.acodec&&(s.acodec=n.acodec),n.videoFilter&&""!==n.videoFilter&&(s.videoFilter=n.videoFilter),n.encoderOptions&&""!==n.encoderOptions&&(s.encoderOptions=n.encoderOptions),void 0!==n.probeSize&&(s.probeSize=n.probeSize),void 0!==n.analyzeDuration&&(s.analyzeDuration=n.analyzeDuration),void 0!==n.maxStreams&&(s.maxStreams=n.maxStreams),void 0!==n.maxWidth&&(s.maxWidth=n.maxWidth),void 0!==n.maxHeight&&(s.maxHeight=n.maxHeight),void 0!==n.maxFPS&&(s.maxFPS=n.maxFPS),void 0!==n.maxBitrate&&(s.maxBitrate=n.maxBitrate),n.useSeparateProcesses&&(s.useSeparateProcesses=n.useSeparateProcesses),n.updateConfig({videoConfig:s},n.accessory),n.updatePreset()})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[re],decls:6,vars:0,consts:[["acc","ngbAccordion"],["ngbPanelTitle","","class","accordion-header"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","",1,"accordion-button"],[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,"ngModel","ngModelChange","change"],[3,"ngValue"],[4,"ngIf"],[1,"input-group","mb-1"],[1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModel","ngModelChange","change"],["id","inputGroup-sizing-default",1,"input-group-text"],["type","checkbox",1,"form-check-input","mt-0",3,"checked","change"],["type","text","placeholder","libx264",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","libfdk_aac",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","leave blank if you don't know",1,"form-control",3,"ngModel","ngModelChange","change"],["type","text","placeholder","-preset ultrafast -tune zerolatency",1,"form-control",3,"ngModel","ngModelChange","change"],["type","number","placeholder","0",1,"form-control",3,"ngModel","ngModelChange","change"]],template:function(n,r){1&n&&(g(0,"ngb-accordion",null,0)(2,"ngb-panel"),O(3,mve,3,0,"ng-template",1),O(4,gve,4,0,"ng-template",2),O(5,_ve,98,54,"ng-template",3),_()())},dependencies:[O1,w3,H3,Wn,ii,v2,yn,S1,M1,B5,sc,k5,P5,ac,F5],styles:[".accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#00000008!important;color:#000!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed):after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\")}.form-check-input[_ngcontent-%COMP%]{margin-left:-.5rem}.input-group-text[_ngcontent-%COMP%]{padding:.375rem 1rem}"]})),t})();function yve(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let Mve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",!1),V(this,"rtspIsEnabled",!1)}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return Se(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(n.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(n.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[re],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,"ngModel","ngModelChange","change"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger"]],template:function(n,r){1&n&&(g(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Talkback (Two way communication)"),_(),g(4,"div",2)(5,"input",3),R("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),O(6,yve,2,0,"div",4),g(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),P(10,"p"),M(11," Please be advised that this setting is in an early development stage. If you're experiencing issues while streaming, it is recommened to disable this setting."),P(12,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[O1,v2,S1,M1],encapsulation:2})),t})();function bve(e,t){1&e&&P(0,"hr")}function wve(e,t){1&e&&P(0,"app-rtsp-streaming",6),2&e&&b("accessory",I(3).accessory)}function Hve(e,t){1&e&&P(0,"hr")}function Vve(e,t){1&e&&P(0,"app-talkback",6),2&e&&b("accessory",I(3).accessory)}function Dve(e,t){if(1&e&&(g(0,"div"),P(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),O(5,bve,1,0,"hr",2),O(6,wve,1,1,"app-rtsp-streaming",7),P(7,"hr")(8,"app-enable-audio",6),O(9,Hve,1,0,"hr",2),O(10,Vve,1,1,"app-talkback",7),_()),2&e){const i=I(2);C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.supportsRTSP),C(1),b("ngIf",i.supportsRTSP),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.supportsTalkback),C(1),b("ngIf",i.supportsTalkback)}}function Sve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-ignore-accessory",6),O(9,Dve,11,7,"div",2),_()()),2&e){const i=I();C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isCamera)}}function zve(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-camera-buttons",6),_()()),2&e){const i=I(2);C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory)}}function xve(e,t){1&e&&P(0,"hr")}function Lve(e,t){1&e&&P(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",I(3).accessory)}function Nve(e,t){if(1&e&&(g(0,"div"),P(1,"app-force-refreshsnap",6),_()),2&e){const i=I(3);C(1),b("accessory",i.accessory)}}function Ave(e,t){if(1&e&&(g(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",5),P(8,"app-snapshot-handling-method",6),O(9,xve,1,0,"hr",2),O(10,Lve,1,1,"app-immediate-notification-on-ring",7),P(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),O(15,Nve,2,1,"div",2),_()()),2&e){const i=I(2);C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isDoorbell),C(1),b("ngIf",i.isDoorbell),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory),C(1),b("ngIf",!i.showEnhancedSnapshotBehaviour)}}function Eve(e,t){if(1&e&&(g(0,"div"),P(1,"p"),O(2,zve,9,3,"div",1),P(3,"p"),O(4,Ave,16,8,"div",1),P(5,"p")(6,"app-advanced-videoconfig",6),_()),2&e){const i=I();C(2),b("ngIf",i.accessory),C(2),b("ngIf",i.accessory),C(2),b("accessory",i.accessory)}}let Ive=(()=>{var e;class t extends L1{constructor(n,r){super(n),V(this,"route",void 0),V(this,"accessory",void 0),V(this,"showEnhancedSnapshotBehaviour",!0),V(this,"isDoorbell",!1),V(this,"isCamera",!1),V(this,"supportsRTSP",!1),V(this,"supportsTalkback",!1),this.route=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=Ra.isDoorbell(this.accessory.type),this.isCamera=Ra.isCamera(this.accessory.type),this.supportsRTSP=Ra.supportsRTSP(this.accessory.type),this.supportsTalkback=Ra.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(n){this.showEnhancedSnapshotBehaviour=n}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1),w(zn))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-camera-config-options"]],features:[re],decls:4,vars:2,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"],[3,"accessory",4,"ngIf"]],template:function(n,r){1&n&&(g(0,"a",0),M(1,"Back to Devices List"),_(),O(2,Sve,10,4,"div",1),O(3,Eve,7,3,"div",2)),2&n&&(C(2),b("ngIf",r.accessory),C(1),b("ngIf",r.isCamera))},dependencies:[O1,xn,dL,tve,nve,ive,ave,sve,ove,fve,dve,hve,pve,Cve,Mve],encapsulation:2})),t})();var qu=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}(qu||{});const Tve={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 Ove=(()=>{var e;class t{constructor(n){V(this,"pluginService",void 0),this.pluginService=n}getCredentials(){var n=this;return Se(function*(){try{const r=yield n.pluginService.getConfig();return r.username&&r.password?Promise.resolve({username:r.username,password:r.password,country:r.country?r.country:"US",deviceName:r.deviceName}):Promise.reject("no full credentials in config")}catch{return Promise.reject("no config")}})()}login(n){return Se(function*(){try{const r=yield window.homebridge.request("/login",n);return Promise.resolve(r)}catch(r){return Promise.reject(r)}})()}updateConfigCredentials(n){var r=this;return Se(function*(){let a={};try{a=yield r.pluginService.getConfig()}catch(s){console.log("Could not get credentials from config: "+s)}a.username=n.username,a.password=n.password,a.country=n.country,a.deviceName=n.deviceName,yield r.pluginService.updateConfig(a,!0)})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(q(r1))}),V(t,"\u0275prov",$({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Rve(e,t){1&e&&(f4(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),d4(),P(1,"p"),g(2,"i"),M(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),_())}function kve(e,t){if(1&e){const i=I1();g(0,"p",10)(1,"ngb-alert",11),R("closed",function(){return Y(i),Z(I().resetLoginFailed())}),f4(),g(2,"svg",12),P(3,"use",13),_(),d4(),g(4,"strong"),M(5,"Login was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}function Pve(e,t){if(1&e&&(g(0,"div",32),f4(),g(1,"svg",33),P(2,"use",34),_(),d4(),g(3,"div"),M(4," Please make sure to restart plugin after you're done. "),g(5,"u",35),M(6," Tell me why... "),_()()()),2&e){I(2);const i=k2(6);C(5),b("autoClose","outside")("ngbPopover",i)}}function Fve(e,t){1&e&&(M(0,"You can leave this field blank."),P(1,"p"),M(2,"This will set the an option in the api calls to the eufy cloud, so that the servers think this plugin uses the official eufy app on the given device. If left blank the plugin will use a random device identifier. See "),g(3,"a",36),M(4,"this disussion"),_(),M(5," to learn more."))}function Bve(e,t){if(1&e&&(g(0,"option"),M(1),_()),2&e){const i=t.$implicit,n=I(2);W("value",i.short)("selected",n.credentials.country===i.short||null),C(1),Q2("",i.long," ")}}function Uve(e,t){1&e&&P(0,"span",37)}function jve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Gve(e,t){if(1&e){const i=I1();g(0,"div"),O(1,Pve,7,2,"div",14),g(2,"div",15)(3,"input",16),R("ngModelChange",function(r){return Y(i),Z(I().credentials.username=r)}),_(),g(4,"label",17),M(5,"Email address"),_()(),P(6,"p"),g(7,"div",15)(8,"input",18),R("ngModelChange",function(r){return Y(i),Z(I().credentials.password=r)}),_(),g(9,"label",19),M(10,"Password"),_()(),P(11,"p"),g(12,"div",15),O(13,Fve,6,0,"ng-template",null,20,S2),g(15,"input",21),R("ngModelChange",function(r){return Y(i),Z(I().credentials.deviceName=r)}),_(),g(16,"label",22),M(17,"Device Name"),_()(),g(18,"div",23)(19,"div",24)(20,"select",25),R("ngModelChange",function(r){return Y(i),Z(I().credentials.country=r)}),O(21,Bve,2,3,"option",26),_(),g(22,"small")(23,"i"),M(24," Make sure to use the same country that you use to login with the eufy app. "),_()()(),P(25,"span",27),g(26,"div",28)(27,"button",29),R("click",function(){return Y(i),Z(I().login())}),O(28,Uve,1,0,"span",30),M(29," Login "),O(30,jve,2,0,"span",9),_(),g(31,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(32," Cancel "),_()()()()}if(2&e){const i=k2(14),n=I();C(1),b("ngIf",!n.firstLoginAssumed),C(2),b("ngModel",n.credentials.username),W("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.password),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),b("ngModel",n.credentials.deviceName)("ngbTooltip",i)("closeDelay",2500),W("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.country),W("disabled",!!n.loginInProgress||null),C(1),b("ngForOf",n.countries),C(6),W("disabled",!!n.loginInProgress||null),C(1),b("ngIf",n.loginInProgress),C(2),b("ngIf",n.loginInProgress),C(1),W("disabled",!!n.loginInProgress||null)}}function $ve(e,t){1&e&&P(0,"span",37)}function Wve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function qve(e,t){if(1&e){const i=I1();g(0,"div")(1,"div",38),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),_(),g(3,"div",6)(4,"div",39)(5,"input",40),R("ngModelChange",function(r){return Y(i),Z(I().otp=r)}),_(),g(6,"label",41),M(7,"2FA Code"),_()()(),g(8,"div",42)(9,"div",43)(10,"button",44),R("click",function(){return Y(i),Z(I().login())}),O(11,$ve,1,0,"span",30),M(12," Verify "),O(13,Wve,2,0,"span",9),_()()(),g(14,"div",6)(15,"div",43)(16,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(17," Cancel "),_()()()()}if(2&e){const i=I();C(5),b("ngModel",i.otp),W("class",i.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),W("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),W("disabled",!!i.loginInProgress||null)}}function Kve(e,t){1&e&&P(0,"span",37)}function Yve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Zve(e,t){if(1&e){const i=I1();g(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),_(),g(3,"div",42),P(4,"img",45),_(),g(5,"div",6)(6,"div",39)(7,"input",40),R("ngModelChange",function(r){return Y(i),Z(I().captcha=r)}),_(),g(8,"label",41),M(9,"Captcha"),_()()(),g(10,"div",42)(11,"div",43)(12,"button",44),R("click",function(){return Y(i),Z(I().login())}),O(13,Kve,1,0,"span",30),M(14," Verify "),O(15,Yve,2,0,"span",9),_()()(),g(16,"div",6)(17,"div",43)(18,"button",31),R("click",function(){return Y(i),Z(I().cancelLogin())}),M(19," Cancel "),_()()()()}if(2&e){const i=I();C(4),b("src",i.captchaImageData,D4),C(3),b("ngModel",i.captcha),W("class",i.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),W("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),W("disabled",!!i.loginInProgress||null)}}var Ct=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(Ct||{});let Qve=(()=>{var e;class t{constructor(n,r){V(this,"loginService",void 0),V(this,"routerService",void 0),V(this,"countries",[]),V(this,"credentials",{username:"",password:"",country:"US",deviceName:""}),V(this,"otp",""),V(this,"captcha",""),V(this,"captchaImageData",""),V(this,"captchaId",""),V(this,"loginInProgress",!1),V(this,"loginFailed",!1),V(this,"loginStep",Ct.LOGIN),V(this,"firstLoginAssumed",!1),V(this,"emailIsValid",!0),V(this,"passwordIsValid",!0),V(this,"otpIsValid",!0),V(this,"captchaIsValid",!0),this.loginService=n,this.routerService=r}ngOnInit(){this.getCredentials(),this.fillCountryArray()}getCredentials(){this.loginService.getCredentials().then(n=>this.credentials=n).catch(n=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+n)})}fillCountryArray(){Object.entries(Tve).forEach(([n,r])=>{this.countries.push({short:n,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===Ct.LOGIN&&this.loginWithCredentials(),this.loginStep===Ct.TFA&&this.loginWithTFA(),this.loginStep===Ct.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return Se(function*(){let r;try{r=yield n.loginService.login(n.credentials)}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithTFA(){var n=this;return Se(function*(){let r;try{r=yield n.loginService.login({verifyCode:n.otp})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}loginWithCaptcha(){var n=this;return Se(function*(){let r;try{r=yield n.loginService.login({captcha:{captchaCode:n.captcha,captchaId:n.captchaId}})}catch(a){console.log("login error: "+a)}n.evaluateLoginResult(r)})()}evaluateLoginResult(n){if(this.loginInProgress=!1,n&&n.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(n&&n.failReason&&n.failReason===qu.TFA)return void(this.loginStep=Ct.TFA);if(n&&n.failReason&&n.failReason===qu.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=Ct.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=Ct.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===Ct.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===Ct.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===Ct.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===Ct.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,n=!0),n}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(Ove),w(_2))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-login"]],decls:13,vars:4,consts:[["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"],["popInfo",""],[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,"dismissible","closed"],["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,"ngModel","ngModelChange"],["for","floatingInput"],["type","password","id","floatingPassword","placeholder","Password",3,"ngModel","ngModelChange"],["for","floatingPassword"],["deviceNameExplanation",""],["type","text","id","floatingDevice","placeholder","Device Name","placement","top",3,"ngModel","ngbTooltip","closeDelay","ngModelChange"],["for","floatingDevice"],[1,"row"],[1,"col-12","col-sm-6","mb-3","mb-sm0"],["aria-label","select country",1,"form-select","mb-3",3,"ngModel","ngModelChange"],[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,"ngModel","ngModelChange"],["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"],[1,"col-10","col-sm-8",3,"src"]],template:function(n,r){1&n&&(f4(),g(0,"svg",0)(1,"symbol",1),P(2,"path",2),_(),g(3,"symbol",3),P(4,"path",4),_()(),O(5,Rve,4,0,"ng-template",null,5,S2),d4(),g(7,"div",6),O(8,kve,6,1,"p",7),g(9,"div",8),O(10,Gve,33,19,"div",9),O(11,qve,18,7,"div",9),O(12,Zve,20,8,"div",9),_()()),2&n&&(C(8),b("ngIf",r.loginFailed),C(2),b("ngIf",1===r.loginStep),C(1),b("ngIf",2===r.loginStep),C(1),b("ngIf",3===r.loginStep))},dependencies:[Xt,O1,w3,H3,Wn,yn,S1,w5,M1,EC,SK,TK],encapsulation:2})),t})(),Jve=(()=>{var e;class t extends L1{constructor(n){super(n),V(this,"accessory",void 0),V(this,"value",[])}ngOnInit(){this.readValue()}readValue(){var n=this;return Se(function*(){const r=yield n.getStationConfig(n.accessory?.uniqueId||"");r&&Array.isArray(r.manualTriggerModes)&&(n.value=r.manualTriggerModes)})()}toggle(n){-1!==this.value.indexOf(n)?this.value=this.value.filter(r=>r!==n):this.value.push(n)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[re],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(n,r){1&n&&(g(0,"div",0)(1,"span",1),M(2,"Manual Alarm Trigger Modes"),_(),g(3,"div",2)(4,"span"),M(5,"HomeKit Home"),_(),g(6,"div",3)(7,"input",4),R("change",function(){return r.toggle(0),r.update()}),_()()(),g(8,"div",2)(9,"span"),M(10,"HomeKit Away"),_(),g(11,"div",3)(12,"input",4),R("change",function(){return r.toggle(1),r.update()}),_()()(),g(13,"div",2)(14,"span"),M(15,"HomeKit Night"),_(),g(16,"div",3)(17,"input",4),R("change",function(){return r.toggle(2),r.update()}),_()()(),g(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),_(),g(21,"div",3)(22,"input",4),R("change",function(){return r.toggle(3),r.update()}),_()()(),g(23,"small")(24,"i"),M(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."),P(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),P(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),P(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),P(32,"p"),M(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."),P(34,"br"),M(35," The native alarm delay setting is currently not supported. "),_()()()),2&n&&(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})),t})();function Xve(e,t){if(1&e&&(g(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),_(),M(4," for "),g(5,"i"),M(6),_()(),g(7,"div",4),P(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),_()()),2&e){const i=I();C(6),K4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory)}}function t_e(e,t){if(1&e){const i=I1();g(0,"p",7)(1,"ngb-alert",8),R("closed",function(){return Y(i),Z(I().failed=!1)}),f4(),g(2,"svg",9),P(3,"use",10),_(),d4(),g(4,"strong"),M(5,"Reset was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}const n_e=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Sge},{path:"advancedConfig",component:Jge},{path:"cameraConfig/:uniqueId",component:Ive},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,r){V(this,"pluginService",void 0),V(this,"route",void 0),V(this,"accessory",void 0),this.pluginService=n,this.route=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(n)}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(r1),w(zn))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-station-config-options"]],decls:3,vars:1,consts:[["routerLink","/accessories",1,"btn","btn-secondary","mb-3"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header"],[1,"card-body","pt-0","pb-4"],[3,"accessory"]],template:function(n,r){1&n&&(g(0,"a",0),M(1,"Back to Devices List"),_(),O(2,Xve,11,4,"div",1)),2&n&&(C(2),b("ngIf",r.accessory))},dependencies:[O1,xn,dL,Jve],encapsulation:2})),t})()},{path:"login",component:Qve},{path:"reset",component:(()=>{var e;class t{constructor(n,r){V(this,"routerService",void 0),V(this,"pluginService",void 0),V(this,"disabled",!1),V(this,"failed",!1),this.routerService=n,this.pluginService=r}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return Se(function*(){n.disabled=!0;try{const r=yield window.homebridge.request("/reset");n.failed=1!==r.result}catch{n.failed=!0}n.disabled=!1,n.failed||(yield n.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e=t,V(t,"\u0275fac",function(n){return new(n||e)(w(_2),w(r1))}),V(t,"\u0275cmp",oe({type:e,selectors:[["app-reset-confirmation"]],decls:10,vars:3,consts:[[1,"row","d-flex","justify-content-center"],["class","col-11 col-sm-7",4,"ngIf"],[1,"col-11","col-sm-7","card","p-4"],[1,"text-center","mb-4"],[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center"],["type","button",1,"btn","btn-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,"dismissible","closed"],["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(n,r){1&n&&(g(0,"div",0),O(1,t_e,6,1,"p",1),g(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),_(),g(5,"div",4)(6,"button",5),R("click",function(){return r.cancel()}),M(7,"No"),_(),g(8,"button",6),R("click",function(){return r.resetEverything()}),M(9,"Do it!"),_()()()()),2&n&&(C(1),b("ngIf",r.failed),C(5),W("disabled",!!r.disabled||null),C(2),W("disabled",!!r.disabled||null))},dependencies:[O1,EC],encapsulation:2})),t})()},{path:"**",redirectTo:"/accessories"}];let i_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e})),V(t,"\u0275inj",Te({imports:[Tb.forRoot(n_e,{scrollPositionRestoration:"enabled"}),Tb]})),t})(),r_e=(()=>{var e;class t{}return e=t,V(t,"\u0275fac",function(n){return new(n||e)}),V(t,"\u0275mod",Fe({type:e,bootstrap:[JJ]})),V(t,"\u0275inj",Te({providers:[{provide:Gn,useClass:av}],imports:[WU,rG,PK,i_e,NZ]})),t})();GU().bootstrapModule(r_e).catch(e=>console.error(e))},919:(Y3,G2)=>{"use strict";G2.byteLength=function a1(le){var be=Ee(le),g1=be[1];return 3*(be[0]+g1)/4-g1},G2.toByteArray=function k1(le){var be,h2,Ke=Ee(le),g1=Ke[0],H1=Ke[1],Je=new f2(function A(le,be,Ke){return 3*(be+Ke)/4-Ke}(0,g1,H1)),d2=0,at=H1>0?g1-4:g1;for(h2=0;h2<at;h2+=4)be=Q[le.charCodeAt(h2)]<<18|Q[le.charCodeAt(h2+1)]<<12|Q[le.charCodeAt(h2+2)]<<6|Q[le.charCodeAt(h2+3)],Je[d2++]=be>>16&255,Je[d2++]=be>>8&255,Je[d2++]=255&be;return 2===H1&&(be=Q[le.charCodeAt(h2)]<<2|Q[le.charCodeAt(h2+1)]>>4,Je[d2++]=255&be),1===H1&&(be=Q[le.charCodeAt(h2)]<<10|Q[le.charCodeAt(h2+1)]<<4|Q[le.charCodeAt(h2+2)]>>2,Je[d2++]=be>>8&255,Je[d2++]=255&be),Je},G2.fromByteArray=function Z1(le){for(var be,Ke=le.length,g1=Ke%3,H1=[],d2=0,at=Ke-g1;d2<at;d2+=16383)H1.push(P1(le,d2,d2+16383>at?at:d2+16383));return 1===g1?H1.push(u1[(be=le[Ke-1])>>2]+u1[be<<4&63]+"=="):2===g1&&H1.push(u1[(be=(le[Ke-2]<<8)+le[Ke-1])>>10]+u1[be>>4&63]+u1[be<<2&63]+"="),H1.join("")};for(var u1=[],Q=[],f2=typeof Uint8Array<"u"?Uint8Array:Array,w1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qe=0;Qe<64;++Qe)u1[Qe]=w1[Qe],Q[w1.charCodeAt(Qe)]=Qe;function Ee(le){var be=le.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Ke=le.indexOf("=");return-1===Ke&&(Ke=be),[Ke,Ke===be?0:4-Ke%4]}function s1(le){return u1[le>>18&63]+u1[le>>12&63]+u1[le>>6&63]+u1[63&le]}function P1(le,be,Ke){for(var H1=[],Je=be;Je<Ke;Je+=3)H1.push(s1((le[Je]<<16&16711680)+(le[Je+1]<<8&65280)+(255&le[Je+2])));return H1.join("")}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},7:(Y3,G2,u1)=>{"use strict";const f2=u1(919),w1=u1(601),Qe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;G2.lW=A,G2.h2=50;const De=2147483647;function a1(v){if(v>De)throw new RangeError('The value "'+v+'" is invalid for option "size"');const f=new Uint8Array(v);return Object.setPrototypeOf(f,A.prototype),f}function A(v,f,h){if("number"==typeof v){if("string"==typeof f)throw new TypeError('The "string" argument must be of type string. Received type number');return Z1(v)}return k1(v,f,h)}function k1(v,f,h){if("string"==typeof v)return function le(v,f){if(("string"!=typeof f||""===f)&&(f="utf8"),!A.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const h=0|at(v,f);let y=a1(h);const S=y.write(v,f);return S!==h&&(y=y.slice(0,S)),y}(v,f);if(ArrayBuffer.isView(v))return function Ke(v){if(st(v,Uint8Array)){const f=new Uint8Array(v);return g1(f.buffer,f.byteOffset,f.byteLength)}return be(v)}(v);if(null==v)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(st(v,ArrayBuffer)||v&&st(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(v,SharedArrayBuffer)||v&&st(v.buffer,SharedArrayBuffer)))return g1(v,f,h);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');const y=v.valueOf&&v.valueOf();if(null!=y&&y!==v)return A.from(y,f,h);const S=function H1(v){if(A.isBuffer(v)){const f=0|Je(v.length),h=a1(f);return 0===h.length||v.copy(h,0,0,f),h}return void 0!==v.length?"number"!=typeof v.length||r3(v.length)?a1(0):be(v):"Buffer"===v.type&&Array.isArray(v.data)?be(v.data):void 0}(v);if(S)return S;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return A.from(v[Symbol.toPrimitive]("string"),f,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}function s1(v){if("number"!=typeof v)throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function Z1(v){return s1(v),a1(v<0?0:0|Je(v))}function be(v){const f=v.length<0?0:0|Je(v.length),h=a1(f);for(let y=0;y<f;y+=1)h[y]=255&v[y];return h}function g1(v,f,h){if(f<0||v.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<f+(h||0))throw new RangeError('"length" is outside of buffer bounds');let y;return y=void 0===f&&void 0===h?new Uint8Array(v):void 0===h?new Uint8Array(v,f):new Uint8Array(v,f,h),Object.setPrototypeOf(y,A.prototype),y}function Je(v){if(v>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return 0|v}function at(v,f){if(A.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||st(v,ArrayBuffer))return v.byteLength;if("string"!=typeof v)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const h=v.length,y=arguments.length>2&&!0===arguments[2];if(!y&&0===h)return 0;let S=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Wa(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return Ka(v).length;default:if(S)return y?-1:Wa(v).length;f=(""+f).toLowerCase(),S=!0}}function h2(v,f,h){let y=!1;if((void 0===f||f<0)&&(f=0),f>this.length||((void 0===h||h>this.length)&&(h=this.length),h<=0)||(h>>>=0)<=(f>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return S6(this,f,h);case"utf8":case"utf-8":return Ua(this,f,h);case"ascii":return ja(this,f,h);case"latin1":case"binary":return D6(this,f,h);case"base64":return Mt(this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z6(this,f,h);default:if(y)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),y=!0}}function yt(v,f,h){const y=v[f];v[f]=v[h],v[h]=y}function Ba(v,f,h,y,S){if(0===v.length)return-1;if("string"==typeof h?(y=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),r3(h=+h)&&(h=S?0:v.length-1),h<0&&(h=v.length+h),h>=v.length){if(S)return-1;h=v.length-1}else if(h<0){if(!S)return-1;h=0}if("string"==typeof f&&(f=A.from(f,y)),A.isBuffer(f))return 0===f.length?-1:Nn(v,f,h,y,S);if("number"==typeof f)return f&=255,"function"==typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(v,f,h):Uint8Array.prototype.lastIndexOf.call(v,f,h):Nn(v,[f],h,y,S);throw new TypeError("val must be string, number or Buffer")}function Nn(v,f,h,y,S){let Xe,N=1,T=v.length,Ce=f.length;if(void 0!==y&&("ucs2"===(y=String(y).toLowerCase())||"ucs-2"===y||"utf16le"===y||"utf-16le"===y)){if(v.length<2||f.length<2)return-1;N=2,T/=2,Ce/=2,h/=2}function d1(h1,Be){return 1===N?h1[Be]:h1.readUInt16BE(Be*N)}if(S){let h1=-1;for(Xe=h;Xe<T;Xe++)if(d1(v,Xe)===d1(f,-1===h1?0:Xe-h1)){if(-1===h1&&(h1=Xe),Xe-h1+1===Ce)return h1*N}else-1!==h1&&(Xe-=Xe-h1),h1=-1}else for(h+Ce>T&&(h=T-Ce),Xe=h;Xe>=0;Xe--){let h1=!0;for(let Be=0;Be<Ce;Be++)if(d1(v,Xe+Be)!==d1(f,Be)){h1=!1;break}if(h1)return Xe}return-1}function Z3(v,f,h,y){h=Number(h)||0;const S=v.length-h;y?(y=Number(y))>S&&(y=S):y=S;const N=f.length;let T;for(y>N/2&&(y=N/2),T=0;T<y;++T){const Ce=parseInt(f.substr(2*T,2),16);if(r3(Ce))return T;v[h+T]=Ce}return T}function H6(v,f,h,y){return En(Wa(f,v.length-h),v,h,y)}function Di(v,f,h,y){return En(function L6(v){const f=[];for(let h=0;h<v.length;++h)f.push(255&v.charCodeAt(h));return f}(f),v,h,y)}function V6(v,f,h,y){return En(Ka(f),v,h,y)}function Si(v,f,h,y){return En(function qa(v,f){let h,y,S;const N=[];for(let T=0;T<v.length&&!((f-=2)<0);++T)h=v.charCodeAt(T),y=h>>8,S=h%256,N.push(S),N.push(y);return N}(f,v.length-h),v,h,y)}function Mt(v,f,h){return f2.fromByteArray(0===f&&h===v.length?v:v.slice(f,h))}function Ua(v,f,h){h=Math.min(v.length,h);const y=[];let S=f;for(;S<h;){const N=v[S];let T=null,Ce=N>239?4:N>223?3:N>191?2:1;if(S+Ce<=h){let d1,Xe,h1,Be;switch(Ce){case 1:N<128&&(T=N);break;case 2:d1=v[S+1],128==(192&d1)&&(Be=(31&N)<<6|63&d1,Be>127&&(T=Be));break;case 3:d1=v[S+1],Xe=v[S+2],128==(192&d1)&&128==(192&Xe)&&(Be=(15&N)<<12|(63&d1)<<6|63&Xe,Be>2047&&(Be<55296||Be>57343)&&(T=Be));break;case 4:d1=v[S+1],Xe=v[S+2],h1=v[S+3],128==(192&d1)&&128==(192&Xe)&&128==(192&h1)&&(Be=(15&N)<<18|(63&d1)<<12|(63&Xe)<<6|63&h1,Be>65535&&Be<1114112&&(T=Be))}}null===T?(T=65533,Ce=1):T>65535&&(T-=65536,y.push(T>>>10&1023|55296),T=56320|1023&T),y.push(T),S+=Ce}return function We(v){const f=v.length;if(f<=zi)return String.fromCharCode.apply(String,v);let h="",y=0;for(;y<f;)h+=String.fromCharCode.apply(String,v.slice(y,y+=zi));return h}(y)}!(A.TYPED_ARRAY_SUPPORT=function Ee(){try{const v=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(v,f),42===v.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.buffer}}),Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.byteOffset}}),A.poolSize=8192,A.from=function(v,f,h){return k1(v,f,h)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array),A.alloc=function(v,f,h){return function P1(v,f,h){return s1(v),v<=0?a1(v):void 0!==f?"string"==typeof h?a1(v).fill(f,h):a1(v).fill(f):a1(v)}(v,f,h)},A.allocUnsafe=function(v){return Z1(v)},A.allocUnsafeSlow=function(v){return Z1(v)},A.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==A.prototype},A.compare=function(f,h){if(st(f,Uint8Array)&&(f=A.from(f,f.offset,f.byteLength)),st(h,Uint8Array)&&(h=A.from(h,h.offset,h.byteLength)),!A.isBuffer(f)||!A.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===h)return 0;let y=f.length,S=h.length;for(let N=0,T=Math.min(y,S);N<T;++N)if(f[N]!==h[N]){y=f[N],S=h[N];break}return y<S?-1:S<y?1:0},A.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},A.concat=function(f,h){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return A.alloc(0);let y;if(void 0===h)for(h=0,y=0;y<f.length;++y)h+=f[y].length;const S=A.allocUnsafe(h);let N=0;for(y=0;y<f.length;++y){let T=f[y];if(st(T,Uint8Array))N+T.length>S.length?(A.isBuffer(T)||(T=A.from(T)),T.copy(S,N)):Uint8Array.prototype.set.call(S,T,N);else{if(!A.isBuffer(T))throw new TypeError('"list" argument must be an Array of Buffers');T.copy(S,N)}N+=T.length}return S},A.byteLength=at,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const f=this.length;if(f%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;h<f;h+=2)yt(this,h,h+1);return this},A.prototype.swap32=function(){const f=this.length;if(f%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let h=0;h<f;h+=4)yt(this,h,h+3),yt(this,h+1,h+2);return this},A.prototype.swap64=function(){const f=this.length;if(f%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let h=0;h<f;h+=8)yt(this,h,h+7),yt(this,h+1,h+6),yt(this,h+2,h+5),yt(this,h+3,h+4);return this},A.prototype.toLocaleString=A.prototype.toString=function(){const f=this.length;return 0===f?"":0===arguments.length?Ua(this,0,f):h2.apply(this,arguments)},A.prototype.equals=function(f){if(!A.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f||0===A.compare(this,f)},A.prototype.inspect=function(){let f="";const h=G2.h2;return f=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(f+=" ... "),"<Buffer "+f+">"},Qe&&(A.prototype[Qe]=A.prototype.inspect),A.prototype.compare=function(f,h,y,S,N){if(st(f,Uint8Array)&&(f=A.from(f,f.offset,f.byteLength)),!A.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(void 0===h&&(h=0),void 0===y&&(y=f?f.length:0),void 0===S&&(S=0),void 0===N&&(N=this.length),h<0||y>f.length||S<0||N>this.length)throw new RangeError("out of range index");if(S>=N&&h>=y)return 0;if(S>=N)return-1;if(h>=y)return 1;if(this===f)return 0;let T=(N>>>=0)-(S>>>=0),Ce=(y>>>=0)-(h>>>=0);const d1=Math.min(T,Ce),Xe=this.slice(S,N),h1=f.slice(h,y);for(let Be=0;Be<d1;++Be)if(Xe[Be]!==h1[Be]){T=Xe[Be],Ce=h1[Be];break}return T<Ce?-1:Ce<T?1:0},A.prototype.includes=function(f,h,y){return-1!==this.indexOf(f,h,y)},A.prototype.indexOf=function(f,h,y){return Ba(this,f,h,y,!0)},A.prototype.lastIndexOf=function(f,h,y){return Ba(this,f,h,y,!1)},A.prototype.write=function(f,h,y,S){if(void 0===h)S="utf8",y=this.length,h=0;else if(void 0===y&&"string"==typeof h)S=h,y=this.length,h=0;else{if(!isFinite(h))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");h>>>=0,isFinite(y)?(y>>>=0,void 0===S&&(S="utf8")):(S=y,y=void 0)}const N=this.length-h;if((void 0===y||y>N)&&(y=N),f.length>0&&(y<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");S||(S="utf8");let T=!1;for(;;)switch(S){case"hex":return Z3(this,f,h,y);case"utf8":case"utf-8":return H6(this,f,h,y);case"ascii":case"latin1":case"binary":return Di(this,f,h,y);case"base64":return V6(this,f,h,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Si(this,f,h,y);default:if(T)throw new TypeError("Unknown encoding: "+S);S=(""+S).toLowerCase(),T=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const zi=4096;function ja(v,f,h){let y="";h=Math.min(v.length,h);for(let S=f;S<h;++S)y+=String.fromCharCode(127&v[S]);return y}function D6(v,f,h){let y="";h=Math.min(v.length,h);for(let S=f;S<h;++S)y+=String.fromCharCode(v[S]);return y}function S6(v,f,h){const y=v.length;(!f||f<0)&&(f=0),(!h||h<0||h>y)&&(h=y);let S="";for(let N=f;N<h;++N)S+=Ya[v[N]];return S}function z6(v,f,h){const y=v.slice(f,h);let S="";for(let N=0;N<y.length-1;N+=2)S+=String.fromCharCode(y[N]+256*y[N+1]);return S}function fe(v,f,h){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+f>h)throw new RangeError("Trying to access beyond buffer length")}function n2(v,f,h,y,S,N){if(!A.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>S||f<N)throw new RangeError('"value" argument is out of bounds');if(h+y>v.length)throw new RangeError("Index out of range")}function xi(v,f,h,y,S){$a(f,y,S,v,h,7);let N=Number(f&BigInt(4294967295));v[h++]=N,N>>=8,v[h++]=N,N>>=8,v[h++]=N,N>>=8,v[h++]=N;let T=Number(f>>BigInt(32)&BigInt(4294967295));return v[h++]=T,T>>=8,v[h++]=T,T>>=8,v[h++]=T,T>>=8,v[h++]=T,h}function f1(v,f,h,y,S){$a(f,y,S,v,h,7);let N=Number(f&BigInt(4294967295));v[h+7]=N,N>>=8,v[h+6]=N,N>>=8,v[h+5]=N,N>>=8,v[h+4]=N;let T=Number(f>>BigInt(32)&BigInt(4294967295));return v[h+3]=T,T>>=8,v[h+2]=T,T>>=8,v[h+1]=T,T>>=8,v[h]=T,h+8}function qe(v,f,h,y,S,N){if(h+y>v.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Ga(v,f,h,y,S){return f=+f,h>>>=0,S||qe(v,0,h,4),w1.write(v,f,h,y,23,4),h+4}function He(v,f,h,y,S){return f=+f,h>>>=0,S||qe(v,0,h,8),w1.write(v,f,h,y,52,8),h+8}A.prototype.slice=function(f,h){const y=this.length;(f=~~f)<0?(f+=y)<0&&(f=0):f>y&&(f=y),(h=void 0===h?y:~~h)<0?(h+=y)<0&&(h=0):h>y&&(h=y),h<f&&(h=f);const S=this.subarray(f,h);return Object.setPrototypeOf(S,A.prototype),S},A.prototype.readUintLE=A.prototype.readUIntLE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f],N=1,T=0;for(;++T<h&&(N*=256);)S+=this[f+T]*N;return S},A.prototype.readUintBE=A.prototype.readUIntBE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f+--h],N=1;for(;h>0&&(N*=256);)S+=this[f+--h]*N;return S},A.prototype.readUint8=A.prototype.readUInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),this[f]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]|this[f+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(f,h){return f>>>=0,h||fe(f,2,this.length),this[f]<<8|this[f+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(f,h){return f>>>=0,h||fe(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+16777216*this[f+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(f,h){return f>>>=0,h||fe(f,4,this.length),16777216*this[f]+(this[f+1]<<16|this[f+2]<<8|this[f+3])},A.prototype.readBigUInt64LE=Ft(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&J3(f,this.length-8);const S=h+256*this[++f]+65536*this[++f]+this[++f]*2**24,N=this[++f]+256*this[++f]+65536*this[++f]+y*2**24;return BigInt(S)+(BigInt(N)<<BigInt(32))}),A.prototype.readBigUInt64BE=Ft(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&J3(f,this.length-8);const S=h*2**24+65536*this[++f]+256*this[++f]+this[++f],N=this[++f]*2**24+65536*this[++f]+256*this[++f]+y;return(BigInt(S)<<BigInt(32))+BigInt(N)}),A.prototype.readIntLE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=this[f],N=1,T=0;for(;++T<h&&(N*=256);)S+=this[f+T]*N;return N*=128,S>=N&&(S-=Math.pow(2,8*h)),S},A.prototype.readIntBE=function(f,h,y){f>>>=0,h>>>=0,y||fe(f,h,this.length);let S=h,N=1,T=this[f+--S];for(;S>0&&(N*=256);)T+=this[f+--S]*N;return N*=128,T>=N&&(T-=Math.pow(2,8*h)),T},A.prototype.readInt8=function(f,h){return f>>>=0,h||fe(f,1,this.length),128&this[f]?-1*(255-this[f]+1):this[f]},A.prototype.readInt16LE=function(f,h){f>>>=0,h||fe(f,2,this.length);const y=this[f]|this[f+1]<<8;return 32768&y?4294901760|y:y},A.prototype.readInt16BE=function(f,h){f>>>=0,h||fe(f,2,this.length);const y=this[f+1]|this[f]<<8;return 32768&y?4294901760|y:y},A.prototype.readInt32LE=function(f,h){return f>>>=0,h||fe(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},A.prototype.readInt32BE=function(f,h){return f>>>=0,h||fe(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},A.prototype.readBigInt64LE=Ft(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];return(void 0===h||void 0===y)&&J3(f,this.length-8),(BigInt(this[f+4]+256*this[f+5]+65536*this[f+6]+(y<<24))<<BigInt(32))+BigInt(h+256*this[++f]+65536*this[++f]+this[++f]*2**24)}),A.prototype.readBigInt64BE=Ft(function(f){An(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&J3(f,this.length-8);const S=(h<<24)+65536*this[++f]+256*this[++f]+this[++f];return(BigInt(S)<<BigInt(32))+BigInt(this[++f]*2**24+65536*this[++f]+256*this[++f]+y)}),A.prototype.readFloatLE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!0,23,4)},A.prototype.readFloatBE=function(f,h){return f>>>=0,h||fe(f,4,this.length),w1.read(this,f,!1,23,4)},A.prototype.readDoubleLE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!0,52,8)},A.prototype.readDoubleBE=function(f,h){return f>>>=0,h||fe(f,8,this.length),w1.read(this,f,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(f,h,y,S){f=+f,h>>>=0,y>>>=0,S||n2(this,f,h,y,Math.pow(2,8*y)-1,0);let N=1,T=0;for(this[h]=255&f;++T<y&&(N*=256);)this[h+T]=f/N&255;return h+y},A.prototype.writeUintBE=A.prototype.writeUIntBE=function(f,h,y,S){f=+f,h>>>=0,y>>>=0,S||n2(this,f,h,y,Math.pow(2,8*y)-1,0);let N=y-1,T=1;for(this[h+N]=255&f;--N>=0&&(T*=256);)this[h+N]=f/T&255;return h+y},A.prototype.writeUint8=A.prototype.writeUInt8=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,1,255,0),this[h]=255&f,h+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,2,65535,0),this[h]=255&f,this[h+1]=f>>>8,h+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,2,65535,0),this[h]=f>>>8,this[h+1]=255&f,h+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,4,4294967295,0),this[h+3]=f>>>24,this[h+2]=f>>>16,this[h+1]=f>>>8,this[h]=255&f,h+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,4,4294967295,0),this[h]=f>>>24,this[h+1]=f>>>16,this[h+2]=f>>>8,this[h+3]=255&f,h+4},A.prototype.writeBigUInt64LE=Ft(function(f,h=0){return xi(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=Ft(function(f,h=0){return f1(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(f,h,y,S){if(f=+f,h>>>=0,!S){const d1=Math.pow(2,8*y-1);n2(this,f,h,y,d1-1,-d1)}let N=0,T=1,Ce=0;for(this[h]=255&f;++N<y&&(T*=256);)f<0&&0===Ce&&0!==this[h+N-1]&&(Ce=1),this[h+N]=(f/T>>0)-Ce&255;return h+y},A.prototype.writeIntBE=function(f,h,y,S){if(f=+f,h>>>=0,!S){const d1=Math.pow(2,8*y-1);n2(this,f,h,y,d1-1,-d1)}let N=y-1,T=1,Ce=0;for(this[h+N]=255&f;--N>=0&&(T*=256);)f<0&&0===Ce&&0!==this[h+N+1]&&(Ce=1),this[h+N]=(f/T>>0)-Ce&255;return h+y},A.prototype.writeInt8=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,1,127,-128),f<0&&(f=255+f+1),this[h]=255&f,h+1},A.prototype.writeInt16LE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,2,32767,-32768),this[h]=255&f,this[h+1]=f>>>8,h+2},A.prototype.writeInt16BE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,2,32767,-32768),this[h]=f>>>8,this[h+1]=255&f,h+2},A.prototype.writeInt32LE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,4,2147483647,-2147483648),this[h]=255&f,this[h+1]=f>>>8,this[h+2]=f>>>16,this[h+3]=f>>>24,h+4},A.prototype.writeInt32BE=function(f,h,y){return f=+f,h>>>=0,y||n2(this,f,h,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[h]=f>>>24,this[h+1]=f>>>16,this[h+2]=f>>>8,this[h+3]=255&f,h+4},A.prototype.writeBigInt64LE=Ft(function(f,h=0){return xi(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=Ft(function(f,h=0){return f1(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(f,h,y){return Ga(this,f,h,!0,y)},A.prototype.writeFloatBE=function(f,h,y){return Ga(this,f,h,!1,y)},A.prototype.writeDoubleLE=function(f,h,y){return He(this,f,h,!0,y)},A.prototype.writeDoubleBE=function(f,h,y){return He(this,f,h,!1,y)},A.prototype.copy=function(f,h,y,S){if(!A.isBuffer(f))throw new TypeError("argument should be a Buffer");if(y||(y=0),!S&&0!==S&&(S=this.length),h>=f.length&&(h=f.length),h||(h=0),S>0&&S<y&&(S=y),S===y||0===f.length||0===this.length)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=this.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("sourceEnd out of bounds");S>this.length&&(S=this.length),f.length-h<S-y&&(S=f.length-h+y);const N=S-y;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,y,S):Uint8Array.prototype.set.call(f,this.subarray(y,S),h),N},A.prototype.fill=function(f,h,y,S){if("string"==typeof f){if("string"==typeof h?(S=h,h=0,y=this.length):"string"==typeof y&&(S=y,y=this.length),void 0!==S&&"string"!=typeof S)throw new TypeError("encoding must be a string");if("string"==typeof S&&!A.isEncoding(S))throw new TypeError("Unknown encoding: "+S);if(1===f.length){const T=f.charCodeAt(0);("utf8"===S&&T<128||"latin1"===S)&&(f=T)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(h<0||this.length<h||this.length<y)throw new RangeError("Out of range index");if(y<=h)return this;let N;if(h>>>=0,y=void 0===y?this.length:y>>>0,f||(f=0),"number"==typeof f)for(N=h;N<y;++N)this[N]=f;else{const T=A.isBuffer(f)?f:A.from(f,S),Ce=T.length;if(0===Ce)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(N=0;N<y-h;++N)this[N+h]=T[N%Ce]}return this};const Pt={};function Li(v,f,h){Pt[v]=class extends h{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${v}]`,delete this.name}get code(){return v}set code(S){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:S,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function Q3(v){let f="",h=v.length;const y="-"===v[0]?1:0;for(;h>=y+4;h-=3)f=`_${v.slice(h-3,h)}${f}`;return`${v.slice(0,h)}${f}`}function $a(v,f,h,y,S,N){if(v>h||v<f){const T="bigint"==typeof f?"n":"";let Ce;throw Ce=N>3?0===f||f===BigInt(0)?`>= 0${T} and < 2${T} ** ${8*(N+1)}${T}`:`>= -(2${T} ** ${8*(N+1)-1}${T}) and < 2 ** ${8*(N+1)-1}${T}`:`>= ${f}${T} and <= ${h}${T}`,new Pt.ERR_OUT_OF_RANGE("value",Ce,v)}!function x6(v,f,h){An(f,"offset"),(void 0===v[f]||void 0===v[f+h])&&J3(f,v.length-(h+1))}(y,S,N)}function An(v,f){if("number"!=typeof v)throw new Pt.ERR_INVALID_ARG_TYPE(f,"number",v)}function J3(v,f,h){throw Math.floor(v)!==v?(An(v,h),new Pt.ERR_OUT_OF_RANGE(h||"offset","an integer",v)):f<0?new Pt.ERR_BUFFER_OUT_OF_BOUNDS:new Pt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,v)}Li("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Li("ERR_INVALID_ARG_TYPE",function(v,f){return`The "${v}" argument must be of type number. Received type ${typeof f}`},TypeError),Li("ERR_OUT_OF_RANGE",function(v,f,h){let y=`The value of "${v}" is out of range.`,S=h;return Number.isInteger(h)&&Math.abs(h)>2**32?S=Q3(String(h)):"bigint"==typeof h&&(S=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(S=Q3(S)),S+="n"),y+=` It must be ${f}. Received ${S}`,y},RangeError);const Ju=/[^+/0-9A-Za-z-_]/g;function Wa(v,f){let h;f=f||1/0;const y=v.length;let S=null;const N=[];for(let T=0;T<y;++T){if(h=v.charCodeAt(T),h>55295&&h<57344){if(!S){if(h>56319){(f-=3)>-1&&N.push(239,191,189);continue}if(T+1===y){(f-=3)>-1&&N.push(239,191,189);continue}S=h;continue}if(h<56320){(f-=3)>-1&&N.push(239,191,189),S=h;continue}h=65536+(S-55296<<10|h-56320)}else S&&(f-=3)>-1&&N.push(239,191,189);if(S=null,h<128){if((f-=1)<0)break;N.push(h)}else if(h<2048){if((f-=2)<0)break;N.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;N.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((f-=4)<0)break;N.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return N}function Ka(v){return f2.toByteArray(function Xu(v){if((v=(v=v.split("=")[0]).trim().replace(Ju,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function En(v,f,h,y){let S;for(S=0;S<y&&!(S+h>=f.length||S>=v.length);++S)f[S+h]=v[S];return S}function st(v,f){return v instanceof f||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===f.name}function r3(v){return v!=v}const Ya=function(){const v="0123456789abcdef",f=new Array(256);for(let h=0;h<16;++h){const y=16*h;for(let S=0;S<16;++S)f[y+S]=v[h]+v[S]}return f}();function Ft(v){return typeof BigInt>"u"?N6:v}function N6(){throw new Error("BigInt not supported")}},601:(Y3,G2)=>{G2.read=function(u1,Q,f2,w1,Qe){var De,Ee,a1=8*Qe-w1-1,A=(1<<a1)-1,k1=A>>1,s1=-7,P1=f2?Qe-1:0,Z1=f2?-1:1,le=u1[Q+P1];for(P1+=Z1,De=le&(1<<-s1)-1,le>>=-s1,s1+=a1;s1>0;De=256*De+u1[Q+P1],P1+=Z1,s1-=8);for(Ee=De&(1<<-s1)-1,De>>=-s1,s1+=w1;s1>0;Ee=256*Ee+u1[Q+P1],P1+=Z1,s1-=8);if(0===De)De=1-k1;else{if(De===A)return Ee?NaN:1/0*(le?-1:1);Ee+=Math.pow(2,w1),De-=k1}return(le?-1:1)*Ee*Math.pow(2,De-w1)},G2.write=function(u1,Q,f2,w1,Qe,De){var Ee,a1,A,k1=8*De-Qe-1,s1=(1<<k1)-1,P1=s1>>1,Z1=23===Qe?Math.pow(2,-24)-Math.pow(2,-77):0,le=w1?0:De-1,be=w1?1:-1,Ke=Q<0||0===Q&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(a1=isNaN(Q)?1:0,Ee=s1):(Ee=Math.floor(Math.log(Q)/Math.LN2),Q*(A=Math.pow(2,-Ee))<1&&(Ee--,A*=2),(Q+=Ee+P1>=1?Z1/A:Z1*Math.pow(2,1-P1))*A>=2&&(Ee++,A/=2),Ee+P1>=s1?(a1=0,Ee=s1):Ee+P1>=1?(a1=(Q*A-1)*Math.pow(2,Qe),Ee+=P1):(a1=Q*Math.pow(2,P1-1)*Math.pow(2,Qe),Ee=0));Qe>=8;u1[f2+le]=255&a1,le+=be,a1/=256,Qe-=8);for(Ee=Ee<<Qe|a1,k1+=Qe;k1>0;u1[f2+le]=255&Ee,le+=be,Ee/=256,k1-=8);u1[f2+le-be]|=128*Ke}}},Y3=>{Y3(Y3.s=841)}]);
|