homebridge-eufy-security 2.3.1-beta.2 → 2.3.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accessories/SmartLockAccessory.d.ts +2 -2
- package/dist/controller/LocalLivestreamManager.d.ts +3 -1
- package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
- package/dist/controller/SnapshotManager.d.ts +1 -0
- package/dist/controller/SnapshotManager.d.ts.map +1 -1
- package/dist/controller/streamingDelegate.d.ts +4 -2
- package/dist/controller/streamingDelegate.d.ts.map +1 -1
- package/dist/controller/streamingDelegate.js +13 -13
- package/dist/controller/streamingDelegate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/utils/Talkback.d.ts +1 -0
- package/dist/utils/Talkback.d.ts.map +1 -1
- package/dist/utils/configTypes.d.ts +3 -3
- package/dist/utils/configTypes.d.ts.map +1 -1
- package/dist/utils/ffmpeg.d.ts +2 -0
- package/dist/utils/ffmpeg.d.ts.map +1 -1
- package/dist/utils/ffmpeg.js +2 -2
- package/dist/utils/ffmpeg.js.map +1 -1
- package/homebridge-ui/configui/app/accessory.d.ts +1 -1
- package/homebridge-ui/configui/app/accessory.d.ts.map +1 -1
- package/homebridge-ui/configui/app/util/types.d.ts +2 -2
- package/homebridge-ui/configui/app/util/types.d.ts.map +1 -1
- package/homebridge-ui/public/3rdpartylicenses.txt +6 -22
- package/homebridge-ui/public/index.html +2 -2
- package/homebridge-ui/public/main.589a07db270a5759.js +1 -0
- package/homebridge-ui/public/polyfills.cdb21ff95fdea645.js +1 -0
- package/homebridge-ui/public/styles.68268876f5e65c91.css +5 -0
- package/package.json +43 -43
- package/homebridge-ui/public/main.d9308c6d7457a79d.js +0 -1
- package/homebridge-ui/public/polyfills.6050693665c0e882.js +0 -1
- package/homebridge-ui/public/styles.9ec071e4734414fd.css +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{574:(q3,j2,l1)=>{"use strict";function Z(e){return"function"==typeof e}function u2(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 b1=u2(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 Ze(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(Z(n))try{n()}catch(a){t=a instanceof b1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{L(a)}catch(s){t=t??[],s instanceof b1?t=[...t,...s.errors]:t.push(s)}}if(t)throw new b1(t)}}add(t){var i;if(t&&t!==this)if(this.closed)L(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)&&Ze(i,t)}remove(t){const{_finalizers:i}=this;i&&Ze(i,t),t instanceof De&&t._removeParent(this)}}De.EMPTY=(()=>{const e=new De;return e.closed=!0,e})();const Ee=De.EMPTY;function r1(e){return e instanceof De||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function L(e){Z(e)?e():e.unsubscribe()}const R1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},a1={setTimeout(e,t,...i){const{delegate:n}=a1;return n?.setTimeout?n.setTimeout(e,t,...i):setTimeout(e,t,...i)},clearTimeout(e){const{delegate:t}=a1;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function k1(e){a1.setTimeout(()=>{const{onUnhandledError:t}=R1;if(!t)throw e;t(e)})}function K1(){}const ce=m1("C",void 0,void 0);function m1(e,t,i){return{kind:e,value:t,error:i}}let w1=null;function Qe(e){if(R1.useDeprecatedSynchronousErrorHandling){const t=!w1;if(t&&(w1={errorThrown:!1,error:null}),e(),t){const{errorThrown:i,error:n}=w1;if(w1=null,i)throw n}}else e()}class rt extends De{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,r1(t)&&t.add(this)):this.destination=w6}static create(t,i,n){return new Nn(t,i,n)}next(t){this.isStopped?Vi(function qe(e){return m1("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Vi(function Me(e){return m1("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vi(ce,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 d2=Function.prototype.bind;function Ct(e,t){return d2.call(e,t)}class ka{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(n){Y3(n)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(n){Y3(n)}else Y3(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(i){Y3(i)}}}class Nn extends rt{constructor(t,i,n){let r;if(super(),Z(t)||!t)r={next:t??void 0,error:i??void 0,complete:n??void 0};else{let a;this&&R1.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Ct(t.next,a),error:t.error&&Ct(t.error,a),complete:t.complete&&Ct(t.complete,a)}):r=t}this.destination=new ka(r)}}function Y3(e){R1.useDeprecatedSynchronousErrorHandling?function f2(e){R1.useDeprecatedSynchronousErrorHandling&&w1&&(w1.errorThrown=!0,w1.error=e)}(e):k1(e)}function Vi(e,t){const{onStoppedNotification:i}=R1;i&&a1.setTimeout(()=>i(e,t))}const w6={closed:!0,next:K1,error:function b6(e){throw e},complete:K1},Di="function"==typeof Symbol&&Symbol.observable||"@@observable";function yt(e){return e}function zi(e){return 0===e.length?yt:1===e.length?e[0]:function(i){return e.reduce((n,r)=>r(n),i)}}let $e=(()=>{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 V6(e){return e&&e instanceof rt||function H6(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}(e)&&r1(e)}(i)?i:new Nn(i,n,r);return Qe(()=>{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=Fa(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)}[Di](){return this}pipe(...i){return zi(i)(this)}toPromise(i){return new(i=Fa(i))((n,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>n(a))})}}return e.create=t=>new e(t),e})();function Fa(e){var t;return null!==(t=e??R1.Promise)&&void 0!==t?t:Promise}const D6=u2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ue=(()=>{class e extends $e{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){const n=new t2(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new D6}next(i){Qe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(i)}})}error(i){Qe(()=>{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(){Qe(()=>{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,Ze(a,i)}))}_checkFinalizedStatuses(i){const{hasError:n,thrownError:r,isStopped:a}=this;n?i.error(r):a&&i.complete()}asObservable(){const i=new $e;return i.source=this,i}}return e.create=(t,i)=>new t2(t,i),e})();class t2 extends ue{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 Si(e){return Z(e?.lift)}function u1(e){return t=>{if(Si(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 We(e,t,i,n,r){return new Ba(e,t,i,n,r)}class Ba extends rt{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 we(e,t){return u1((i,n)=>{let r=0;i.subscribe(We(n,a=>{n.next(e.call(t,a,r++))}))})}function f(e){return this instanceof f?(this.v=e,this):new f(e)}function D(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 L6=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ju(e){return Z(e?.then)}function Xu(e){return Z(e[Di])}function ef(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function tf(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 nf=function HL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rf(e){return Z(e?.[nf])}function af(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,V){a.push([p,m,H,V])>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 sf(e){return Z(e?.getReader)}function U1(e){if(e instanceof $e)return e;if(null!=e){if(Xu(e))return function VL(e){return new $e(t=>{const i=e[Di]();if(Z(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(L6(e))return function DL(e){return new $e(t=>{for(let i=0;i<e.length&&!t.closed;i++)t.next(e[i]);t.complete()})}(e);if(Ju(e))return function zL(e){return new $e(t=>{e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,k1)})}(e);if(ef(e))return cf(e);if(rf(e))return function SL(e){return new $e(t=>{for(const i of e)if(t.next(i),t.closed)return;t.complete()})}(e);if(sf(e))return function xL(e){return cf(af(e))}(e)}throw tf(e)}function cf(e){return new $e(t=>{(function LL(e,t){var i,n,r,a;return function Ga(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=D(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 an(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 P1(e,t,i=1/0){return Z(t)?P1((n,r)=>we((a,s)=>t(n,a,r,s))(U1(e(n,r))),i):("number"==typeof t&&(i=t),u1((n,r)=>function NL(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=V=>l<n?H(V):c.push(V),H=V=>{a&&t.next(V),l++;let S=!1;U1(i(V,u++)).subscribe(We(t,N=>{r?.(N),a?m(N):t.next(N)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<n;){const N=c.shift();s?an(t,s,()=>H(N)):H(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(We(t,m,()=>{d=!0,p()})),()=>{o?.()}}(n,r,e,i)))}function Q3(e=1/0){return P1(yt,e)}const st=new $e(e=>e.complete());function lf(e){return e&&Z(e.schedule)}function N6(e){return e[e.length-1]}function qa(e){return Z(N6(e))?e.pop():void 0}function Li(e){return lf(N6(e))?e.pop():void 0}function uf(e,t=0){return u1((i,n)=>{i.subscribe(We(n,r=>an(n,e,()=>n.next(r),t),()=>an(n,e,()=>n.complete(),t),r=>an(n,e,()=>n.error(r),t)))})}function ff(e,t=0){return u1((i,n)=>{n.add(e.schedule(()=>i.subscribe(n),t))})}function df(e,t){if(!e)throw new Error("Iterable cannot be null");return new $e(i=>{an(i,t,()=>{const n=e[Symbol.asyncIterator]();an(i,t,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Z1(e,t){return t?function PL(e,t){if(null!=e){if(Xu(e))return function IL(e,t){return U1(e).pipe(ff(t),uf(t))}(e,t);if(L6(e))return function OL(e,t){return new $e(i=>{let n=0;return t.schedule(function(){n===e.length?i.complete():(i.next(e[n++]),i.closed||this.schedule())})})}(e,t);if(Ju(e))return function TL(e,t){return U1(e).pipe(ff(t),uf(t))}(e,t);if(ef(e))return df(e,t);if(rf(e))return function RL(e,t){return new $e(i=>{let n;return an(i,t,()=>{n=e[nf](),an(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)}),()=>Z(n?.return)&&n.return()})}(e,t);if(sf(e))return function kL(e,t){return df(af(e),t)}(e,t)}throw tf(e)}(e,t):U1(e)}function E6(...e){const t=Li(e),i=function AL(e,t){return"number"==typeof N6(e)?e.pop():t}(e,1/0),n=e;return n.length?1===n.length?U1(n[0]):Q3(i)(Z1(n,t)):st}class ot extends ue{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 re(...e){return Z1(e,Li(e))}function A6(e={}){const{connector:t=(()=>new ue),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 V=s;m(),V?.unsubscribe()};return u1((V,S)=>{l++,!d&&!u&&p();const N=c=c??t();S.add(()=>{l--,0===l&&!d&&!u&&(o=I6(H,r))}),N.subscribe(S),!s&&l>0&&(s=new Nn({next:z=>N.next(z),error:z=>{d=!0,p(),o=I6(m,i,z),N.error(z)},complete:()=>{u=!0,p(),o=I6(m,n),N.complete()}}),U1(V).subscribe(s))})(a)}}function I6(e,t,...i){if(!0===t)return void e();if(!1===t)return;const n=new Nn({next:()=>{n.unsubscribe(),e()}});return U1(t(...i)).subscribe(n)}function Mt(e,t){return u1((i,n)=>{let r=null,a=0,s=!1;const o=()=>s&&!r&&n.complete();i.subscribe(We(n,c=>{r?.unsubscribe();let l=0;const u=a++;U1(e(c,u)).subscribe(r=We(n,d=>n.next(t?t(c,d,u,l++):d),()=>{r=null,o()}))},()=>{s=!0,o()}))})}function FL(e,t){return e===t}function Be(e){for(let t in e)if(e[t]===Be)return t;throw Error("Could not find renamed property on target object.")}function Ya(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function j1(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(j1).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 T6(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const BL=Be({__forward_ref__:Be});function pe(e){return e.__forward_ref__=pe,e.toString=function(){return j1(this())},e}function le(e){return O6(e)?e():e}function O6(e){return"function"==typeof e&&e.hasOwnProperty(BL)&&e.__forward_ref__===pe}function R6(e){return e&&!!e.\u0275providers}const pf="https://g.co/ng/security#xss";class P extends Error{constructor(t,i){super(function Ka(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,i)),this.code=t}}function fe(e){return"string"==typeof e?e:null==e?"":String(e)}function k6(e,t){throw new P(-201,!1)}function ct(e,t){null==e&&function ae(e,t,i,n){throw new Error(`ASSERTION ERROR: ${e}`+(null==n?"":` [Expected=> ${i} ${n} ${t} <=Actual]`))}(t,e,null,"!=")}function G(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function Za(e){return mf(e,Ja)||mf(e,gf)}function mf(e,t){return e.hasOwnProperty(t)?e[t]:null}function Qa(e){return e&&(e.hasOwnProperty(P6)||e.hasOwnProperty(KL))?e[P6]:null}const Ja=Be({\u0275prov:Be}),P6=Be({\u0275inj:Be}),gf=Be({ngInjectableDef:Be}),KL=Be({ngInjectorDef:Be});var Ce=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}(Ce||{});let F6;function N2(e){const t=F6;return F6=e,t}function _f(e,t,i){const n=Za(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ce.Optional?null:void 0!==t?t:void k6(j1(e))}const Xe=globalThis,Ni={},$6="__NG_DI_FLAG__",Xa="ngTempTokenPath",JL=/\n/gm,yf="__source";let J3;function In(e){const t=J3;return J3=e,t}function tN(e,t=Ce.Default){if(void 0===J3)throw new P(-203,!1);return null===J3?_f(e,void 0,t):J3.get(e,t&Ce.Optional?null:void 0,t)}function W(e,t=Ce.Default){return(function vf(){return F6}()||tN)(le(e),t)}function Q(e,t=Ce.Default){return W(e,es(t))}function es(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function W6(e){const t=[];for(let i=0;i<e.length;i++){const n=le(e[i]);if(Array.isArray(n)){if(0===n.length)throw new P(900,!1);let r,a=Ce.Default;for(let s=0;s<n.length;s++){const o=n[s],c=nN(o);"number"==typeof c?-1===c?r=o.token:a|=c:r=o}t.push(W(r,a))}else t.push(W(n))}return t}function Ei(e,t){return e[$6]=t,e.prototype[$6]=t,e}function nN(e){return e[$6]}function sn(e){return{toString:e}.toString()}var ts=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ts||{}),bt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(bt||{});const Ft={},Ae=[],ns=Be({\u0275cmp:Be}),q6=Be({\u0275dir:Be}),Y6=Be({\u0275pipe:Be}),bf=Be({\u0275mod:Be}),on=Be({\u0275fac:Be}),Ai=Be({__NG_ELEMENT_ID__:Be}),wf=Be({__NG_ENV_ID__:Be});function Hf(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 K6(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];Df(a)?e.setProperty(t,a,s):e.setAttribute(t,a,s),n++}}return n}function Vf(e){return 3===e||4===e||6===e}function Df(e){return 64===e.charCodeAt(0)}function Ii(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||zf(e,i,r,null,-1===i||2===i?t[++n]:null)}}return e}function zf(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 Sf="ng-template";function aN(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!==Hf(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 xf(e){return 4===e.type&&e.value!==Sf}function sN(e,t,i){return t===(4!==e.type||i?e.value:Sf)}function oN(e,t,i){let n=4;const r=e.attrs||[],a=function uN(e){for(let t=0;t<e.length;t++)if(Vf(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&&!sN(e,c,i)||""===c&&1===t.length){if(wt(n))return!1;s=!0}}else{const l=8&n?c:t[++o];if(8&n&&null!==e.attrs){if(!aN(e.attrs,l,i)){if(wt(n))return!1;s=!0}continue}const d=cN(8&n?"class":c,r,xf(e),i);if(-1===d){if(wt(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!==Hf(m,l,0)||2&n&&l!==p){if(wt(n))return!1;s=!0}}}}else{if(!s&&!wt(n)&&!wt(c))return!1;if(s&&wt(c))continue;s=!1,n=c|1&n}}return wt(n)||s}function wt(e){return 0==(1&e)}function cN(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 fN(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 Lf(e,t,i=!1){for(let n=0;n<t.length;n++)if(oN(e,t[n],i))return!0;return!1}function dN(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 Nf(e,t){return e?":not("+t.trim()+")":t}function hN(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&&!wt(s)&&(t+=Nf(a,r),r=""),n=s,a=a||!wt(n);i++}return""!==r&&(t+=Nf(a,r)),t}function se(e){return sn(()=>{const t=Af(e),i={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ts.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bt.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""};If(i);const n=e.dependencies;return i.directiveDefs=is(n,!1),i.pipeDefs=is(n,!0),i.id=function MN(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 vN(e){return Se(e)||n2(e)}function _N(e){return null!==e}function Pe(e){return sn(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ef(e,t){if(null==e)return Ft;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 U(e){return sn(()=>{const t=Af(e);return If(t),t})}function Se(e){return e[ns]||null}function n2(e){return e[q6]||null}function _2(e){return e[Y6]||null}function $2(e,t){const i=e[bf]||null;if(!i&&!0===t)throw new Error(`Type ${j1(e)} does not have '\u0275mod' property.`);return i}function Af(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||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ef(e.inputs,t),outputs:Ef(e.outputs)}}function If(e){e.features?.forEach(t=>t(e))}function is(e,t){if(!e)return null;const i=t?_2:vN;return()=>("function"==typeof e?e():e).map(n=>i(n)).filter(_N)}const H1=0,q=1,me=2,h1=3,Ht=4,Ti=5,h2=6,e4=7,L1=8,Tn=9,t4=10,de=11,Oi=12,Tf=13,n4=14,N1=15,Ri=16,i4=17,Bt=18,ki=19,Of=20,On=21,cn=22,Pi=23,Fi=24,He=25,Z6=1,Rf=2,Ut=7,r4=9,r2=11;function A2(e){return Array.isArray(e)&&"object"==typeof e[Z6]}function C2(e){return Array.isArray(e)&&!0===e[Z6]}function Q6(e){return 0!=(4&e.flags)}function s3(e){return e.componentOffset>-1}function as(e){return 1==(1&e.flags)}function Vt(e){return!!e.template}function J6(e){return 0!=(512&e[me])}function o3(e,t){return e.hasOwnProperty(on)?e[on]:null}let a2=null,ss=!1;function lt(e){const t=a2;return a2=e,t}const os={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 Uf(e){if(!Ui(e)||e.dirty){if(!e.producerMustRecompute(e)&&!$f(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Gf(e){e.dirty=!0,function jf(e){if(void 0===e.liveConsumerNode)return;const t=ss;ss=!0;try{for(const i of e.liveConsumerNode)i.dirty||Gf(i)}finally{ss=t}}(e),e.consumerMarkedDirty?.(e)}function cs(e){return e&&(e.nextProducerIndex=0),lt(e)}function ls(e,t){if(lt(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ui(e))for(let i=e.nextProducerIndex;i<e.producerNode.length;i++)us(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 $f(e){a4(e);for(let t=0;t<e.producerNode.length;t++){const i=e.producerNode[t],n=e.producerLastReadVersion[t];if(n!==i.version||(Uf(i),n!==i.version))return!0}return!1}function Wf(e){if(a4(e),Ui(e))for(let t=0;t<e.producerNode.length;t++)us(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 us(e,t){if(function Yf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),a4(e),1===e.liveConsumerNode.length)for(let n=0;n<e.producerNode.length;n++)us(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];a4(r),r.producerIndexOfThis[n]=t}}function Ui(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function a4(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Kf=null;const Xf=()=>{},AN={...os,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Xf};class IN{constructor(t,i,n){this.previousValue=t,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}}function g1(){return e9}function e9(e){return e.type.prototype.ngOnChanges&&(e.setInput=ON),TN}function TN(){const e=n9(this),t=e?.current;if(t){const i=e.previous;if(i===Ft)e.previous=t;else for(let n in t)i[n]=t[n];e.current=null,this.ngOnChanges(t)}}function ON(e,t,i,n){const r=this.declaredInputs[i],a=n9(e)||function RN(e,t){return e[t9]=t}(e,{previous:Ft,current:null}),s=a.current||(a.current={}),o=a.previous,c=o[r];s[r]=new IN(c&&c.currentValue,t,o===Ft),e[n]=t}g1.ngInherit=!0;const t9="__ngSimpleChanges__";function n9(e){return e[t9]||null}const jt=function(e,t,i){},i9="svg";function e1(e){for(;Array.isArray(e);)e=e[H1];return e}function ds(e,t){return e1(t[e])}function I2(e,t){return e1(t[e.index])}function a9(e,t){return e.data[t]}function W2(e,t){const i=t[e];return A2(i)?i:i[H1]}function kn(e,t){return null==t?null:e[t]}function s9(e){e[i4]=0}function jN(e){1024&e[me]||(e[me]|=1024,c9(e,1))}function o9(e){1024&e[me]&&(e[me]&=-1025,c9(e,-1))}function c9(e,t){let i=e[h1];if(null===i)return;i[Ti]+=t;let n=i;for(i=i[h1];null!==i&&(1===t&&1===n[Ti]||-1===t&&0===n[Ti]);)i[Ti]+=t,n=i,i=i[h1]}const oe={lFrame:C9(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function f9(){return oe.bindingsEnabled}function o4(){return null!==oe.skipHydrationRootTNode}function R(){return oe.lFrame.lView}function xe(){return oe.lFrame.tView}function Y(e){return oe.lFrame.contextLView=e,e[L1]}function K(e){return oe.lFrame.contextLView=null,e}function s2(){let e=d9();for(;null!==e&&64===e.type;)e=e.parent;return e}function d9(){return oe.lFrame.currentTNode}function Gt(e,t){const i=oe.lFrame;i.currentTNode=e,i.isParent=t}function o0(){return oe.lFrame.isParent}function c0(){oe.lFrame.isParent=!1}function c4(){return oe.lFrame.bindingIndex++}function un(e){const t=oe.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function tE(e,t){const i=oe.lFrame;i.bindingIndex=i.bindingRootIndex=e,l0(t)}function l0(e){oe.lFrame.currentDirectiveIndex=e}function g9(){return oe.lFrame.currentQueryIndex}function f0(e){oe.lFrame.currentQueryIndex=e}function iE(e){const t=e[q];return 2===t.type?t.declTNode:1===t.type?e[h2]:null}function v9(e,t,i){if(i&Ce.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||i&Ce.Host||(r=iE(a),null===r||(a=a[n4],10&r.type))););if(null===r)return!1;t=r,e=a}const n=oe.lFrame=_9();return n.currentTNode=t,n.lView=e,!0}function d0(e){const t=_9(),i=e[q];oe.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function _9(){const e=oe.lFrame,t=null===e?null:e.child;return null===t?C9(e):t}function C9(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 y9(){const e=oe.lFrame;return oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const M9=y9;function h0(){const e=y9();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 M2(){return oe.lFrame.selectedIndex}function c3(e){oe.lFrame.selectedIndex=e}function v1(){const e=oe.lFrame;return a9(e.tView,e.selectedIndex)}function l4(){oe.lFrame.currentNamespace=i9}function u4(){!function oE(){oe.lFrame.currentNamespace=null}()}let w9=!0;function hs(){return w9}function Pn(e){w9=e}function ps(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 ms(e,t,i){H9(e,t,3,i)}function gs(e,t,i,n){(3&e[me])===i&&H9(e,t,i,n)}function p0(e,t){let i=e[me];(3&i)===t&&(i&=8191,i+=1,e[me]=i)}function H9(e,t,i,n){const a=n??-1,s=t.length-1;let o=0;for(let c=void 0!==n?65535&e[i4]:0;c<s;c++)if("number"==typeof t[c+1]){if(o=t[c],null!=n&&o>=n)break}else t[c]<0&&(e[i4]+=65536),(o<a||-1==a)&&(lE(e,i,t,c),e[i4]=(4294901760&e[i4])+c+2),c++}function V9(e,t){jt(4,e,t);const i=lt(null);try{t.call(e)}finally{lt(i),jt(5,e,t)}}function lE(e,t,i,n){const r=i[n]<0,a=i[n+1],o=e[r?-i[n]:i[n]];r?e[me]>>13<e[i4]>>16&&(3&e[me])===t&&(e[me]+=8192,V9(o,a)):V9(o,a)}const f4=-1;class Gi{constructor(t,i,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}}function g0(e){return e!==f4}function $i(e){return 32767&e}function Wi(e,t){let i=function hE(e){return e>>16}(e),n=t;for(;i>0;)n=n[n4],i--;return n}let v0=!0;function vs(e){const t=v0;return v0=e,t}const D9=255,z9=5;let pE=0;const $t={};function _s(e,t){const i=S9(e,t);if(-1!==i)return i;const n=t[q];n.firstCreatePass&&(e.injectorIndex=t.length,_0(n.data,e),_0(t,null),_0(n.blueprint,null));const r=Cs(e,t),a=e.injectorIndex;if(g0(r)){const s=$i(r),o=Wi(r,t),c=o[q].data;for(let l=0;l<8;l++)t[a+l]=o[s+l]|c[s+l]}return t[a+8]=r,a}function _0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function S9(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Cs(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=T9(r),null===n)return f4;if(i++,r=r[n4],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return f4}function C0(e,t,i){!function mE(e,t,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Ai)&&(n=i[Ai]),null==n&&(n=i[Ai]=pE++);const r=n&D9;t.data[e+(r>>z9)]|=1<<r}(e,t,i)}function x9(e,t,i){if(i&Ce.Optional||void 0!==e)return e;k6()}function L9(e,t,i,n){if(i&Ce.Optional&&void 0===n&&(n=null),!(i&(Ce.Self|Ce.Host))){const r=e[Tn],a=N2(void 0);try{return r?r.get(t,n,i&Ce.Optional):_f(t,n,i&Ce.Optional)}finally{N2(a)}}return x9(n,0,i)}function N9(e,t,i,n=Ce.Default,r){if(null!==e){if(2048&t[me]&&!(n&Ce.Self)){const s=function ME(e,t,i,n,r){let a=e,s=t;for(;null!==a&&null!==s&&2048&s[me]&&!(512&s[me]);){const o=E9(a,s,i,n|Ce.Self,$t);if(o!==$t)return o;let c=a.parent;if(!c){const l=s[Of];if(l){const u=l.get(i,$t,n);if(u!==$t)return u}c=T9(s),s=s[n4]}a=c}return r}(e,t,i,n,$t);if(s!==$t)return s}const a=E9(e,t,i,n,$t);if(a!==$t)return a}return L9(t,i,n,r)}function E9(e,t,i,n,r){const a=function _E(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ai)?e[Ai]:void 0;return"number"==typeof t?t>=0?t&D9:yE:t}(i);if("function"==typeof a){if(!v9(t,e,n))return n&Ce.Host?x9(r,0,n):L9(t,i,n,r);try{let s;if(s=a(n),null!=s||n&Ce.Optional)return s;k6()}finally{M9()}}else if("number"==typeof a){let s=null,o=S9(e,t),c=f4,l=n&Ce.Host?t[N1][h2]:null;for((-1===o||n&Ce.SkipSelf)&&(c=-1===o?Cs(e,t):t[o+8],c!==f4&&I9(n,!1)?(s=t[q],o=$i(c),t=Wi(c,t)):o=-1);-1!==o;){const u=t[q];if(A9(a,o,u.data)){const d=vE(o,t,i,s,n,l);if(d!==$t)return d}c=t[o+8],c!==f4&&I9(n,t[q].data[o+8]===l)&&A9(a,o,t)?(s=u,o=$i(c),t=Wi(c,t)):o=-1}}return r}function vE(e,t,i,n,r,a){const s=t[q],o=s.data[e+8],u=ys(o,s,i,null==n?s3(o)&&v0:n!=s&&0!=(3&o.type),r&Ce.Host&&a===o);return null!==u?l3(t,s,u,o):$t}function ys(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&&Vt(m)&&m.type===i)return c}return null}function l3(e,t,i,n){let r=e[i];const a=t.data;if(function uE(e){return e instanceof Gi}(r)){const s=r;s.resolving&&function UL(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new P(-200,`Circular dependency in DI detected for ${e}${i}`)}(function ke(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():fe(e)}(a[i]));const o=vs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?N2(s.injectImpl):null;v9(e,n,Ce.Default);try{r=e[i]=s.factory(void 0,a,e,n),t.firstCreatePass&&i>=n.directiveStart&&function cE(e,t,i){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(n){const s=e9(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&&N2(l),vs(o),s.resolving=!1,M9()}}return r}function A9(e,t,i){return!!(i[t+(e>>z9)]&1<<e)}function I9(e,t){return!(e&Ce.Self||e&Ce.Host&&t)}class b2{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,n){return N9(this._tNode,this._lView,t,es(n),i)}}function yE(){return new b2(s2(),R())}function E1(e){return sn(()=>{const t=e.prototype.constructor,i=t[on]||y0(t),n=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==n;){const a=r[on]||y0(r);if(a&&a!==i)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function y0(e){return O6(e)?()=>{const t=y0(le(e));return t&&t()}:o3(e)}function T9(e){const t=e[q],i=t.type;return 2===i?t.declTNode:1===i?e[h2]:null}const h4="__parameters__";function m4(e,t,i){return sn(()=>{const n=function M0(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(h4)?c[h4]:Object.defineProperty(c,h4,{value:[]})[h4];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 v4(e,t){e.forEach(i=>Array.isArray(i)?v4(i,t):t(i))}function R9(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ki(e,t){const i=[];for(let n=0;n<e;n++)i.push(t);return i}function q2(e,t,i){let n=_4(e,t);return n>=0?e[1|n]=i:(n=~n,function SE(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 b0(e,t){const i=_4(e,t);if(i>=0)return e[1|i]}function _4(e,t){return function k9(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 ws=Ei(m4("Optional"),8),Hs=Ei(m4("SkipSelf"),4);function xs(e){return 128==(128&e.flags)}var Fn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Fn||{});const z0=new Map;let JE=0;const x0="__ngContext__";function p2(e,t){A2(t)?(e[x0]=t[ki],function eA(e){z0.set(e[ki],e)}(t)):e[x0]=t}let L0;function N0(e,t){return L0(e,t)}function Ji(e){const t=e[h1];return C2(t)?t[h1]:t}function rd(e){return sd(e[Oi])}function ad(e){return sd(e[Ht])}function sd(e){for(;null!==e&&!C2(e);)e=e[Ht];return e}function M4(e,t,i,n,r){if(null!=n){let a,s=!1;C2(n)?a=n:A2(n)&&(s=!0,n=n[H1]);const o=e1(n);0===e&&null!==i?null==r?ud(t,i,o):f3(t,i,o,r||null,!0):1===e&&null!==i?f3(t,i,o,r||null,!0):2===e?function Os(e,t,i){const n=Is(e,t);n&&function CA(e,t,i,n){e.removeChild(t,i,n)}(e,n,t,i)}(t,o,s):3===e&&t.destroyNode(o),null!=a&&function bA(e,t,i,n,r){const a=i[Ut];a!==e1(i)&&M4(t,e,n,a,r);for(let o=r2;o<i.length;o++){const c=i[o];er(c[q],c,e,t,n,a)}}(t,e,a,i,r)}}function Es(e,t,i){return e.createElement(t,i)}function cd(e,t){const i=e[r4],n=i.indexOf(t);o9(t),i.splice(n,1)}function As(e,t){if(e.length<=r2)return;const i=r2+t,n=e[i];if(n){const r=n[Ri];null!==r&&r!==e&&cd(r,n),t>0&&(e[i-1][Ht]=n[Ht]);const a=Ms(e,r2+t);!function fA(e,t){er(e,t,t[de],2,null,null),t[H1]=null,t[h2]=null}(n[q],n);const s=a[Bt];null!==s&&s.detachView(a[q]),n[h1]=null,n[Ht]=null,n[me]&=-129}return n}function A0(e,t){if(!(256&t[me])){const i=t[de];t[Pi]&&Wf(t[Pi]),t[Fi]&&Wf(t[Fi]),i.destroyNode&&er(e,t,i,3,null,null),function pA(e){let t=e[Oi];if(!t)return I0(e[q],e);for(;t;){let i=null;if(A2(t))i=t[Oi];else{const n=t[r2];n&&(i=n)}if(!i){for(;t&&!t[Ht]&&t!==e;)A2(t)&&I0(t[q],t),t=t[h1];null===t&&(t=e),A2(t)&&I0(t[q],t),i=t&&t[Ht]}t=i}}(t)}}function I0(e,t){if(!(256&t[me])){t[me]&=-129,t[me]|=256,function _A(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 Gi)){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];jt(4,o,c);try{c.call(o)}finally{jt(5,o,c)}}else{jt(4,r,a);try{a.call(r)}finally{jt(5,r,a)}}}}}(e,t),function vA(e,t){const i=e.cleanup,n=t[e4];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[e4]=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[q].type&&t[de].destroy();const i=t[Ri];if(null!==i&&C2(t[h1])){i!==t[h1]&&cd(i,t);const n=t[Bt];null!==n&&n.detachView(e)}!function tA(e){z0.delete(e[ki])}(t)}}function T0(e,t,i){return function ld(e,t,i){let n=t;for(;null!==n&&40&n.type;)n=(t=n).parent;if(null===n)return i[H1];{const{componentOffset:r}=n;if(r>-1){const{encapsulation:a}=e.data[n.directiveStart+r];if(a===bt.None||a===bt.Emulated)return null}return I2(n,i)}}(e,t.parent,i)}function f3(e,t,i,n,r){e.insertBefore(t,i,n,r)}function ud(e,t,i){e.appendChild(t,i)}function fd(e,t,i,n,r){null!==n?f3(e,t,i,n,r):ud(e,t,i)}function Is(e,t){return e.parentNode(t)}function dd(e,t,i){return pd(e,t,i)}let O0,Rs,F0,ks,pd=function hd(e,t,i){return 40&e.type?I2(e,i):null};function Ts(e,t,i,n){const r=T0(e,n,t),a=t[de],o=dd(n.parent||t[h2],n,t);if(null!=r)if(Array.isArray(i))for(let c=0;c<i.length;c++)fd(a,r,i[c],o,!1);else fd(a,r,i,o,!1);void 0!==O0&&O0(a,n,t,i,r)}function Xi(e,t){if(null!==t){const i=t.type;if(3&i)return I2(t,e);if(4&i)return R0(-1,e[t.index]);if(8&i){const n=t.child;if(null!==n)return Xi(e,n);{const r=e[t.index];return C2(r)?R0(-1,r):e1(r)}}if(32&i)return N0(t,e)()||e1(e[t.index]);{const n=gd(e,t);return null!==n?Array.isArray(n)?n[0]:Xi(Ji(e[N1]),n):Xi(e,t.next)}}return null}function gd(e,t){return null!==t?e[N1][h2].projection[t.projection]:null}function R0(e,t){const i=r2+e+1;if(i<t.length){const n=t[i],r=n[q].firstChild;if(null!==r)return Xi(n,r)}return t[Ut]}function k0(e,t,i,n,r,a,s){for(;null!=i;){const o=n[i.index],c=i.type;if(s&&0===t&&(o&&p2(e1(o),n),i.flags|=2),32!=(32&i.flags))if(8&c)k0(e,t,i.child,n,r,a,!1),M4(t,e,r,o,a);else if(32&c){const l=N0(i,n);let u;for(;u=l();)M4(t,e,r,u,a);M4(t,e,r,o,a)}else 16&c?_d(e,t,n,i,r,a):M4(t,e,r,o,a);i=s?i.projectionNext:i.next}}function er(e,t,i,n,r,a){k0(i,n,e.firstChild,t,r,a,!1)}function _d(e,t,i,n,r,a){const s=i[N1],c=s[h2].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)M4(t,e,r,c[l],a);else{let l=c;const u=s[h1];xs(n)&&(l.flags|=128),k0(e,t,l,u,r,a,!0)}}function Cd(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function yd(e,t,i){const{mergedAttrs:n,classes:r,styles:a}=i;null!==n&&K6(e,t,n),null!==r&&Cd(e,t,r),null!==a&&function HA(e,t,i){e.setAttribute(t,"style",i)}(e,t,a)}function b4(e){return function P0(){if(void 0===Rs&&(Rs=null,Xe.trustedTypes))try{Rs=Xe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rs}()?.createHTML(e)||e}function w4(){if(void 0!==F0)return F0;if(typeof document<"u")return document;throw new P(210,!1)}function B0(){if(void 0===ks&&(ks=null,Xe.trustedTypes))try{ks=Xe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ks}function Md(e){return B0()?.createHTML(e)||e}function wd(e){return B0()?.createScriptURL(e)||e}class d3{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pf})`}}class xA extends d3{getTypeName(){return"HTML"}}class LA extends d3{getTypeName(){return"Style"}}class NA extends d3{getTypeName(){return"Script"}}class EA extends d3{getTypeName(){return"URL"}}class AA extends d3{getTypeName(){return"ResourceURL"}}function Y2(e){return e instanceof d3?e.changingThisBreaksApplicationSecurity:e}function Wt(e,t){const i=function IA(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 ${pf})`)}return i===t}class FA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(b4(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch{return null}}}class BA{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const i=this.inertDocument.createElement("template");return i.innerHTML=b4(t),i}}const jA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ps(e){return(e=String(e)).match(jA)?e:"unsafe:"+e}function fn(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function tr(...e){const t={};for(const i of e)for(const n in i)i.hasOwnProperty(n)&&(t[n]=!0);return t}const Vd=fn("area,br,col,hr,img,wbr"),Dd=fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zd=fn("rp,rt"),U0=tr(Vd,tr(Dd,fn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tr(zd,fn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),tr(zd,Dd)),j0=fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sd=tr(j0,fn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),GA=fn("script,style,template");class $A{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(!U0.hasOwnProperty(i))return this.sanitizedSomething=!0,!GA.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(!Sd.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let c=a.value;j0[o]&&(c=Ps(c)),this.buf.push(" ",s,'="',xd(c),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();U0.hasOwnProperty(i)&&!Vd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(xd(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 WA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qA=/([^\#-~ |!])/g;function xd(e){return e.replace(/&/g,"&").replace(WA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Fs;function Ld(e,t){let i=null;try{Fs=Fs||function Hd(e){const t=new BA(e);return function UA(){try{return!!(new window.DOMParser).parseFromString(b4(""),"text/html")}catch{return!1}}()?new FA(t):t}(e);let n=t?String(t):"";i=Fs.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=Fs.getInertBodyElement(n)}while(n!==a);return b4((new $A).sanitizeChildren(G0(i)||i))}finally{if(i){const n=G0(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function G0(e){return"content"in e&&function YA(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ft=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}(ft||{});function Nd(e){const t=nr();return t?Md(t.sanitize(ft.HTML,e)||""):Wt(e,"HTML")?Md(Y2(e)):Ld(w4(),fe(e))}function dn(e){const t=nr();return t?t.sanitize(ft.STYLE,e)||"":Wt(e,"Style")?Y2(e):fe(e)}function H4(e){const t=nr();return t?t.sanitize(ft.URL,e)||"":Wt(e,"URL")?Y2(e):Ps(fe(e))}function Ed(e){const t=nr();if(t)return wd(t.sanitize(ft.RESOURCE_URL,e)||"");if(Wt(e,"ResourceURL"))return wd(Y2(e));throw new P(904,!1)}function nr(){const e=R();return e&&e[t4].sanitizer}class ee{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=G({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ir=new ee("ENVIRONMENT_INITIALIZER"),Id=new ee("INJECTOR",-1),Td=new ee("INJECTOR_DEF_TYPES");class $0{get(t,i=Ni){if(i===Ni){const n=new Error(`NullInjectorError: No provider for ${j1(t)}!`);throw n.name="NullInjectorError",n}return i}}function XA(...e){return{\u0275providers:Rd(0,e),\u0275fromNgModule:!0}}function Rd(e,...t){const i=[],n=new Set;let r;const a=s=>{i.push(s)};return v4(t,s=>{const o=s;Bs(o,a,[],n)&&(r||=[],r.push(o))}),void 0!==r&&kd(r,a),i}function kd(e,t){for(let i=0;i<e.length;i++){const{ngModule:n,providers:r}=e[i];W0(r,a=>{t(a,n)})}}function Bs(e,t,i,n){if(!(e=le(e)))return!1;let r=null,a=Qa(e);const s=!a&&Se(e);if(a||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(a=Qa(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)Bs(l,t,i,n)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let l;n.add(r);try{v4(a.imports,u=>{Bs(u,t,i,n)&&(l||=[],l.push(u))})}finally{}void 0!==l&&kd(l,t)}if(!o){const l=o3(r)||(()=>new r);t({provide:r,useFactory:l,deps:Ae},r),t({provide:Td,useValue:r,multi:!0},r),t({provide:ir,useValue:()=>W(r),multi:!0},r)}const c=a.providers;if(null!=c&&!o){const l=e;W0(c,u=>{t(u,l)})}}}return r!==e&&void 0!==e.providers}function W0(e,t){for(let i of e)R6(i)&&(i=i.\u0275providers),Array.isArray(i)?W0(i,t):t(i)}const eI=Be({provide:String,useValue:Be});function q0(e){return null!==e&&"object"==typeof e&&eI in e}function h3(e){return"function"==typeof e}const Y0=new ee("Set Injector scope."),Us={},nI={};let K0;function js(){return void 0===K0&&(K0=new $0),K0}class O2{}class Gs extends O2{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,Q0(t,s=>this.processProvider(s)),this.records.set(Id,V4(void 0,this)),r.has("environment")&&this.records.set(O2,V4(void 0,this));const a=this.records.get(Y0);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Td.multi,Ae,Ce.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=N2(void 0);try{return t()}finally{In(i),N2(n)}}get(t,i=Ni,n=Ce.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(wf))return t[wf](this);n=es(n);const a=In(this),s=N2(void 0);try{if(!(n&Ce.SkipSelf)){let c=this.records.get(t);if(void 0===c){const l=function oI(e){return"function"==typeof e||"object"==typeof e&&e instanceof ee}(t)&&Za(t);c=l&&this.injectableDefInScope(l)?V4(Z0(t),Us):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(n&Ce.Self?js():this.parent).get(t,i=n&Ce.Optional&&i===Ni?null:i)}catch(o){if("NullInjectorError"===o.name){if((o[Xa]=o[Xa]||[]).unshift(j1(t)),a)throw o;return function iN(e,t,i,n){const r=e[Xa];throw t[yf]&&r.unshift(t[yf]),e.message=function rN(e,t,i,n=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=j1(t);if(Array.isArray(t))r=t.map(j1).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):j1(o)))}r=`{${a.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${e.replace(JL,"\n ")}`}("\n"+e.message,r,i,n),e.ngTokenPath=r,e[Xa]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{N2(s),In(a)}}resolveInjectorInitializers(){const t=In(this),i=N2(void 0);try{const r=this.get(ir.multi,Ae,Ce.Self);for(const a of r)a()}finally{In(t),N2(i)}}toString(){const t=[],i=this.records;for(const n of i.keys())t.push(j1(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(t){let i=h3(t=le(t))?t:le(t&&t.provide);const n=function rI(e){return q0(e)?V4(void 0,e.useValue):V4(Bd(e),Us)}(t);if(h3(t)||!0!==t.multi)this.records.get(i);else{let r=this.records.get(i);r||(r=V4(void 0,Us,!0),r.factory=()=>W6(r.multi),this.records.set(i,r)),i=t,r.multi.push(t)}this.records.set(i,n)}hydrate(t,i){return i.value===Us&&(i.value=nI,i.value=i.factory()),"object"==typeof i.value&&i.value&&function sI(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=le(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 Z0(e){const t=Za(e),i=null!==t?t.factory:o3(e);if(null!==i)return i;if(e instanceof ee)throw new P(204,!1);if(e instanceof Function)return function iI(e){const t=e.length;if(t>0)throw Ki(t,"?"),new P(204,!1);const i=function YL(e){return e&&(e[Ja]||e[gf])||null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new P(204,!1)}function Bd(e,t,i){let n;if(h3(e)){const r=le(e);return o3(r)||Z0(r)}if(q0(e))n=()=>le(e.useValue);else if(function Fd(e){return!(!e||!e.useFactory)}(e))n=()=>e.useFactory(...W6(e.deps||[]));else if(function Pd(e){return!(!e||!e.useExisting)}(e))n=()=>W(le(e.useExisting));else{const r=le(e&&(e.useClass||e.provide));if(!function aI(e){return!!e.deps}(e))return o3(r)||Z0(r);n=()=>new r(...W6(e.deps))}return n}function V4(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Q0(e,t){for(const i of e)Array.isArray(i)?Q0(i,t):i&&R6(i)?Q0(i.\u0275providers,t):t(i)}const $s=new ee("AppId",{providedIn:"root",factory:()=>cI}),cI="ng",Ud=new ee("Platform Initializer"),D4=new ee("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),jd=new ee("CSP nonce",{providedIn:"root",factory:()=>w4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Gd=(e,t,i)=>null;function al(e,t,i=!1){return Gd(e,t,i)}class _I{}class qd{}class yI{resolveComponentFactory(t){throw function CI(e){const t=Error(`No component factory found for ${j1(e)}.`);return t.ngComponent=e,t}(t)}}let Qs=(()=>{class t{}return t.NULL=new yI,t})();function MI(){return x4(s2(),R())}function x4(e,t){return new Le(I2(e,t))}let Le=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=MI,t})();function bI(e){return e instanceof Le?e.nativeElement:e}class cl{}let o2=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function wI(){const e=R(),i=W2(s2().index,e);return(A2(i)?i:e)[de]}(),t})(),HI=(()=>{var e;class t{}return(e=t).\u0275prov=G({token:e,providedIn:"root",factory:()=>null}),t})();class sr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const VI=new sr("16.2.5"),ll={};function Jd(e,t=null,i=null,n){const r=Xd(e,t,i,n);return r.resolveInjectorInitializers(),r}function Xd(e,t=null,i=null,n,r=new Set){const a=[i||Ae,XA(e)];return n=n||("object"==typeof e?void 0:j1(e)),new Gs(a,t||js(),n||null,r)}let F1=(()=>{var e;class t{static create(n,r){if(Array.isArray(n))return Jd({name:""},r,n,"");{const a=n.name??"";return Jd({name:a},n.parent,n.providers,a)}}}return(e=t).THROW_IF_NOT_FOUND=Ni,e.NULL=new $0,e.\u0275prov=G({token:e,providedIn:"any",factory:()=>W(Id)}),e.__NG_ELEMENT_ID__=-1,t})();function fl(e){return e.ngOriginalError}class hn{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&&fl(t);for(;i&&fl(i);)i=fl(i);return i||null}}function hl(e){return t=>{setTimeout(e,void 0,t)}}const X=class EI extends ue{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=hl(a),r&&(r=hl(r)),s&&(s=hl(s)));const o=super.subscribe({next:r,error:a,complete:s});return t instanceof De&&t.add(o),o}};function th(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new P(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 AI(){const e="function"==typeof Xe.requestAnimationFrame;let t=Xe[e?"requestAnimationFrame":"setTimeout"],i=Xe[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 OI(e){const t=()=>{!function TI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Xe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ml(e),e.isCheckStableRunning=!0,pl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ml(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,a,s,o)=>{if(function kI(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 nh(e),i.invokeTask(r,a,s,o)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),ih(e)}},onInvoke:(i,n,r,a,s,o,c)=>{try{return nh(e),i.invoke(r,a,s,o,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),ih(e)}},onHasTask:(i,n,r,a)=>{i.hasTask(r,a),n===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,ml(e),pl(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(!ye.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new P(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,II,th,th);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 II={};function pl(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 ml(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function nh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ih(e){e._nesting--,pl(e)}class RI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}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 rh=new ee("",{providedIn:"root",factory:ah});function ah(){const e=Q(ye);let t=!0;return E6(new $e(r=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(t),r.complete()})}),new $e(r=>{let a;e.runOutsideAngular(()=>{a=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{a.unsubscribe(),s.unsubscribe()}}).pipe(A6()))}function pn(e){return e instanceof Function?e():e}let gl=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=G({token:e,providedIn:"root",factory:()=>new e}),t})();function or(e){for(;e;){e[me]|=64;const t=Ji(e);if(J6(e)&&!t)return e;e=t}return null}const uh=new ee("",{providedIn:"root",factory:()=>!1});let Xs=null;function ph(e,t){return e[t]??vh()}function mh(e,t){const i=vh();i.producerNode?.length&&(e[t]=Xs,i.lView=e,Xs=gh())}const YI={...os,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{or(e.lView)},lView:null};function gh(){return Object.create(YI)}function vh(){return Xs??=gh(),Xs}const he={};function C(e){_h(xe(),R(),M2()+e,!1)}function _h(e,t,i,n){if(!n)if(3==(3&t[me])){const a=e.preOrderCheckHooks;null!==a&&ms(t,a,i)}else{const a=e.preOrderHooks;null!==a&&gs(t,a,0,i)}c3(i)}function w(e,t=Ce.Default){const i=R();return null===i?W(e,t):N9(s2(),i,le(e),t)}function eo(e,t,i,n,r,a,s,o,c,l,u){const d=t.blueprint.slice();return d[H1]=r,d[me]=140|n,(null!==l||e&&2048&e[me])&&(d[me]|=2048),s9(d),d[h1]=d[n4]=e,d[L1]=i,d[t4]=s||e&&e[t4],d[de]=o||e&&e[de],d[Tn]=c||e&&e[Tn]||null,d[h2]=a,d[ki]=function XE(){return JE++}(),d[cn]=u,d[Of]=l,d[N1]=2==t.type?e[N1]:d,d}function E4(e,t,i,n,r){let a=e.data[t];if(null===a)a=function vl(e,t,i,n,r){const a=d9(),s=o0(),c=e.data[t]=function nT(e,t,i,n,r,a){let s=t?t.injectorIndex:-1,o=0;return o4()&&(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 eE(){return oe.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=i,a.value=n,a.attrs=r;const s=function ji(){const e=oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return Gt(a,!0),a}function cr(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 yh(e,t,i,n,r){const a=ph(t,Pi),s=M2(),o=2&n;try{c3(-1),o&&t.length>He&&_h(e,t,He,!1),jt(o?2:0,r);const l=o?a:null,u=cs(l);try{null!==l&&(l.dirty=!1),i(n,r)}finally{ls(l,u)}}finally{o&&null===t[Pi]&&mh(t,Pi),c3(s),jt(o?3:1,r)}}function _l(e,t,i){if(Q6(t)){const n=lt(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{lt(n)}}}function Cl(e,t,i){f9()&&(function lT(e,t,i,n){const r=i.directiveStart,a=i.directiveEnd;s3(i)&&function gT(e,t,i){const n=I2(t,e),r=Mh(i);let s=16;i.signals?s=4096:i.onPush&&(s=64);const o=to(e,eo(e,r,null,s,n,t,null,e[t4].rendererFactory.createRenderer(n,i),null,null,null));e[t.index]=o}(t,i,e.data[r+i.componentOffset]),e.firstCreatePass||_s(i,t),p2(n,t);const s=i.initialInputs;for(let o=r;o<a;o++){const c=e.data[o],l=l3(t,e,o,i);p2(l,t),null!==s&&vT(0,o-r,l,c,0,s),Vt(c)&&(W2(i.index,t)[L1]=l3(t,e,o,i))}}(e,t,i,I2(i,t)),64==(64&i.flags)&&Dh(e,t,i))}function yl(e,t,i=I2){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 Mh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ml(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ml(e,t,i,n,r,a,s,o,c,l,u){const d=He+n,p=d+r,m=function ZI(e,t){const i=[];for(let n=0;n<t;n++)i.push(n<e?null:he);return i}(d,p),H="function"==typeof l?l():l;return m[q]={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 bh=e=>null;function wh(e,t,i,n){for(let r in e)if(e.hasOwnProperty(r)){i=null===i?{}:i;const a=e[r];null===n?Hh(i,t,r,a):n.hasOwnProperty(r)&&Hh(i,t,n[r],a)}return i}function Hh(e,t,i,n){e.hasOwnProperty(i)?e[i].push(t,n):e[i]=[t,n]}function K2(e,t,i,n,r,a,s,o){const c=I2(t,i);let u,l=t.inputs;!o&&null!=l&&(u=l[n])?(Dl(e,i,u,n,r),s3(t)&&function aT(e,t){const i=W2(t,e);16&i[me]||(i[me]|=64)}(i,t.index)):3&t.type&&(n=function rT(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 bl(e,t,i,n){if(f9()){const r=null===n?null:{"":-1},a=function fT(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(Lf(t,s.selectors,!1))if(n||(n=[]),Vt(s))if(null!==s.findHostDirectiveDefs){const o=[];r=r||new Map,s.findHostDirectiveDefs(s,o,r),n.unshift(...o,s),wl(e,t,o.length)}else n.unshift(s),wl(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&&Vh(e,t,i,s,r,o),r&&function dT(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 P(-301,!1);n.push(t[r],a)}}}(i,n,r)}i.mergedAttrs=Ii(i.mergedAttrs,i.attrs)}function Vh(e,t,i,n,r,a){for(let l=0;l<n.length;l++)C0(_s(i,t),e,n[l].type);!function pT(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=cr(e,t,n.length,null);for(let l=0;l<n.length;l++){const u=n[l];i.mergedAttrs=Ii(i.mergedAttrs,u.hostAttrs),mT(e,i,t,c,u),hT(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 iT(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=wh(d.inputs,u,c,p?p.inputs:null),l=wh(d.outputs,u,l,H);const V=null===c||null===s||xf(t)?null:_T(c,u,s);o.push(V)}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 Dh(e,t,i){const n=i.directiveStart,r=i.directiveEnd,a=i.index,s=function nE(){return oe.lFrame.currentDirectiveIndex}();try{c3(a);for(let o=n;o<r;o++){const c=e.data[o],l=t[o];l0(o),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&uT(c,l)}}finally{c3(-1),l0(s)}}function uT(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function wl(e,t,i){t.componentOffset=i,(e.components??=[]).push(t.index)}function hT(e,t,i){if(i){if(t.exportAs)for(let n=0;n<t.exportAs.length;n++)i[t.exportAs[n]]=e;Vt(t)&&(i[""]=e)}}function mT(e,t,i,n,r){e.data[n]=r;const a=r.factory||(r.factory=o3(r.type)),s=new Gi(a,Vt(r),w);e.blueprint[n]=s,i[n]=s,function oT(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 cT(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,cr(e,i,r.hostVars,he),r)}function qt(e,t,i,n,r,a){const s=I2(e,t);!function Hl(e,t,i,n,r,a,s){if(null==a)e.removeAttribute(t,r,i);else{const o=null==s?fe(a):s(a,n||"",r);e.setAttribute(t,r,o,i)}}(t[de],s,a,e.value,i,n,r)}function vT(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=lt(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{lt(a)}}function _T(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 Sh(e,t,i,n){return[e,!0,!1,t,null,0,n,i,null,null,null]}function xh(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];f0(i[n]),s.contentQueries(2,t[a],a)}}}function to(e,t){return e[Oi]?e[Tf][Ht]=t:e[Oi]=t,e[Tf]=t,t}function Vl(e,t,i){f0(0);const n=lt(null);try{t(e,i)}finally{lt(n)}}function Lh(e){return e[e4]||(e[e4]=[])}function Nh(e){return e.cleanup||(e.cleanup=[])}function Ah(e,t){const i=e[Tn],n=i?i.get(hn,null):null;n&&n.handleError(t)}function Dl(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=ds(t,e);!function od(e,t,i){e.setValue(t,i)}(e[de],n,i)}function CT(e,t){const i=W2(t,e),n=i[q];!function yT(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])}(n,i);const r=i[H1];null!==r&&null===i[cn]&&(i[cn]=al(r,i[Tn])),zl(n,i,i[L1])}function zl(e,t,i){d0(t);try{const n=e.viewQuery;null!==n&&Vl(1,n,i);const r=e.template;null!==r&&yh(e,t,r,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&xh(e,t),e.staticViewQueries&&Vl(2,e.viewQuery,i);const a=e.components;null!==a&&function MT(e,t){for(let i=0;i<t.length;i++)CT(e,t[i])}(t,a)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{t[me]&=-5,h0()}}let Ih=(()=>{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(AN);i&&(n.consumerAllowSignalWrites=!0),n.fn=e,n.schedule=t;const r=s=>{n.cleanupFn=s};return n.ref={notify:()=>Gf(n),run:()=>{if(n.dirty=!1,n.hasRun&&!$f(n))return;n.hasRun=!0;const s=cs(n);try{n.cleanupFn(),n.cleanupFn=Xf,n.fn(r)}finally{ls(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=G({token:e,providedIn:"root",factory:()=>new e}),t})();function no(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=T6(r,o):2==a&&(n=T6(n,o+": "+t[++s]+";"))}i?e.styles=n:e.stylesWithoutHost=n,i?e.classes=r:e.classesWithoutHost=r}function lr(e,t,i,n,r=!1){for(;null!==i;){const a=t[i.index];null!==a&&n.push(e1(a)),C2(a)&&Th(a,n);const s=i.type;if(8&s)lr(e,t,i.child,n);else if(32&s){const o=N0(i,t);let c;for(;c=o();)n.push(c)}else if(16&s){const o=gd(t,i);if(Array.isArray(o))n.push(...o);else{const c=Ji(t[N1]);lr(c[q],c,o,n,!0)}}i=r?i.projectionNext:i.next}return n}function Th(e,t){for(let i=r2;i<e.length;i++){const n=e[i],r=n[q].firstChild;null!==r&&lr(n[q],n,r,t)}e[Ut]!==e[H1]&&t.push(e[Ut])}function io(e,t,i,n=!0){const r=t[t4],a=r.rendererFactory,s=r.afterRenderEventManager;a.begin?.(),s?.begin();try{Oh(e,t,e.template,i)}catch(c){throw n&&Ah(t,c),c}finally{a.end?.(),r.effectManager?.flush(),s?.end()}}function Oh(e,t,i,n){const r=t[me];if(256!=(256&r)){t[t4].effectManager?.flush(),d0(t);try{s9(t),function p9(e){return oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==i&&yh(e,t,i,2,n);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&ms(t,l,null)}else{const l=e.preOrderHooks;null!==l&&gs(t,l,0,null),p0(t,0)}if(function HT(e){for(let t=rd(e);null!==t;t=ad(t)){if(!t[Rf])continue;const i=t[r4];for(let n=0;n<i.length;n++){jN(i[n])}}}(t),Rh(t,2),null!==e.contentQueries&&xh(e,t),s){const l=e.contentCheckHooks;null!==l&&ms(t,l)}else{const l=e.contentHooks;null!==l&&gs(t,l,1),p0(t,1)}!function KI(e,t){const i=e.hostBindingOpCodes;if(null===i)return;const n=ph(t,Fi);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];tE(o,s),n.dirty=!1;const l=cs(n);try{c(2,t[s])}finally{ls(n,l)}}}}finally{null===t[Fi]&&mh(t,Fi),c3(-1)}}(e,t);const o=e.components;null!==o&&Ph(t,o,0);const c=e.viewQuery;if(null!==c&&Vl(2,c,n),s){const l=e.viewCheckHooks;null!==l&&ms(t,l)}else{const l=e.viewHooks;null!==l&&gs(t,l,2),p0(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[me]&=-73,o9(t)}finally{h0()}}}function Rh(e,t){for(let i=rd(e);null!==i;i=ad(i))for(let n=r2;n<i.length;n++)kh(i[n],t)}function VT(e,t,i){kh(W2(t,e),i)}function kh(e,t){if(!function BN(e){return 128==(128&e[me])}(e))return;const i=e[q],n=e[me];if(80&n&&0===t||1024&n||2===t)Oh(i,e,i.template,e[L1]);else if(e[Ti]>0){Rh(e,1);const r=i.components;null!==r&&Ph(e,r,1)}}function Ph(e,t,i){for(let n=0;n<t.length;n++)VT(e,t[n],i)}class ur{get rootNodes(){const t=this._lView,i=t[q];return lr(i,t,i.firstChild,[])}constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[L1]}set context(t){this._lView[L1]=t}get destroyed(){return 256==(256&this._lView[me])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[h1];if(C2(t)){const i=t[8],n=i?i.indexOf(this):-1;n>-1&&(As(t,n),Ms(i,n))}this._attachedToViewContainer=!1}A0(this._lView[q],this._lView)}onDestroy(t){!function l9(e,t){if(256==(256&e[me]))throw new P(911,!1);null===e[On]&&(e[On]=[]),e[On].push(t)}(this._lView,t)}markForCheck(){or(this._cdRefInjectingView||this._lView)}detach(){this._lView[me]&=-129}reattach(){this._lView[me]|=128}detectChanges(){io(this._lView[q],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function hA(e,t){er(e,t,t[de],2,null,null)}(this._lView[q],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t}}class DT extends ur{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;io(t[q],t,t[L1],!1)}checkNoChanges(){}get context(){return null}}class Fh extends Qs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=Se(t);return new fr(i,this.ngModule)}}function Bh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class ST{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,n){n=es(n);const r=this.injector.get(t,ll,n);return r!==ll||i===ll?r:this.parentInjector.get(t,i,n)}}class fr extends qd{get inputs(){const t=this.componentDef,i=t.inputTransforms,n=Bh(t.inputs);if(null!==i)for(const r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Bh(this.componentDef.outputs)}constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function pN(e){return e.map(hN).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}create(t,i,n,r){let a=(r=r||this.ngModule)instanceof O2?r:r?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const s=a?new ST(t,a):t,o=s.get(cl,null);if(null===o)throw new P(407,!1);const d={rendererFactory:o,sanitizer:s.get(HI,null),effectManager:s.get(Ih,null),afterRenderEventManager:s.get(gl,null)},p=o.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",H=n?function QI(e,t,i,n){const a=n.get(uh,!1)||i===bt.ShadowDom,s=e.selectRootElement(t,a);return function JI(e){bh(e)}(s),s}(p,n,this.componentDef.encapsulation,s):Es(p,m,function zT(e){const t=e.toLowerCase();return"svg"===t?i9:"math"===t?"math":null}(m)),N=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let z=null;null!==H&&(z=al(H,s,!0));const F=Ml(0,null,null,1,0,null,null,null,null,null,null),B=eo(null,F,null,N,null,null,d,p,s,null,z);let j,ne;d0(B);try{const ge=this.componentDef;let be,Re=null;ge.findHostDirectiveDefs?(be=[],Re=new Map,ge.findHostDirectiveDefs(ge,be,Re),be.push(ge)):be=[ge];const M1=function LT(e,t){const i=e[q],n=He;return e[n]=t,E4(i,n,2,"#host",null)}(B,H),e2=function NT(e,t,i,n,r,a,s){const o=r[q];!function ET(e,t,i,n){for(const r of e)t.mergedAttrs=Ii(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(no(t,t.mergedAttrs,!0),null!==i&&yd(n,i,t))}(n,e,t,s);let c=null;null!==t&&(c=al(t,r[Tn]));const l=a.rendererFactory.createRenderer(t,i);let u=16;i.signals?u=4096:i.onPush&&(u=64);const d=eo(r,Mh(i),null,u,r[e.index],e,a,l,null,null,c);return o.firstCreatePass&&wl(o,e,n.length-1),to(r,d),r[e.index]=d}(M1,H,ge,be,B,d,p);ne=a9(F,He),H&&function IT(e,t,i,n){if(n)K6(e,i,["ng-version",VI.full]);else{const{attrs:r,classes:a}=function mN(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(!wt(r))break;r=a}n++}return{attrs:t,classes:i}}(t.selectors[0]);r&&K6(e,i,r),a&&a.length>0&&Cd(e,i,a.join(" "))}}(p,ge,H,n),void 0!==i&&function TT(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)}}(ne,this.ngContentSelectors,i),j=function AT(e,t,i,n,r,a){const s=s2(),o=r[q],c=I2(s,r);Vh(o,r,s,i,null,n);for(let u=0;u<i.length;u++)p2(l3(r,o,s.directiveStart+u,s),r);Dh(o,r,s),c&&p2(c,r);const l=l3(r,o,s.directiveStart+s.componentOffset,s);if(e[L1]=r[L1]=l,null!==a)for(const u of a)u(l,t);return _l(o,s,e),l}(e2,ge,be,Re,B,[OT]),zl(F,B,null)}finally{h0()}return new xT(this.componentType,j,x4(ne,B),B,ne)}}class xT extends _I{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 DT(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;Dl(a[q],a,r,t,i),this.previousInputValues.set(t,i),or(W2(this._tNode.index,a))}}get injector(){return new b2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function OT(){const e=s2();ps(R()[q],e)}function ie(e){let t=function Uh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),i=!0;const n=[e];for(;t;){let r;if(Vt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new P(903,!1);r=t.\u0275dir}if(r){if(i){n.push(r);const s=e;s.inputs=ro(e.inputs),s.inputTransforms=ro(e.inputTransforms),s.declaredInputs=ro(e.declaredInputs),s.outputs=ro(e.outputs);const o=r.hostBindings;o&&FT(e,o);const c=r.viewQuery,l=r.contentQueries;if(c&&kT(e,c),l&&PT(e,l),Ya(e.inputs,r.inputs),Ya(e.declaredInputs,r.declaredInputs),Ya(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),Ya(s.inputTransforms,r.inputTransforms)),Vt(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===ie&&(i=!1)}}t=Object.getPrototypeOf(t)}!function RT(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=Ii(r.hostAttrs,i=Ii(i,r.hostAttrs))}}(n)}function ro(e){return e===Ft?{}:e===Ae?[]:e}function kT(e,t){const i=e.viewQuery;e.viewQuery=i?(n,r)=>{t(n,r),i(n,r)}:t}function PT(e,t){const i=e.contentQueries;e.contentQueries=i?(n,r,a)=>{t(n,r,a),i(n,r,a)}:t}function FT(e,t){const i=e.hostBindings;e.hostBindings=i?(n,r)=>{t(n,r),i(n,r)}:t}function Wh(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 ao(e){return!!function Sl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function m2(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function p3(e,t,i,n){const r=m2(e,t,i);return m2(e,t+1,n)||r}function $(e,t,i,n){const r=R();return m2(r,c4(),t)&&(xe(),qt(v1(),r,e,t,i,n)),$}function I4(e,t,i,n){return m2(e,c4(),i)?t+fe(i)+n:he}function T4(e,t,i,n,r,a){const o=p3(e,function ln(){return oe.lFrame.bindingIndex}(),i,r);return un(2),o?t+fe(i)+n+fe(r)+a:he}function T(e,t,i,n,r,a,s,o){const c=R(),l=xe(),u=e+He,d=l.firstCreatePass?function uO(e,t,i,n,r,a,s,o,c){const l=t.consts,u=E4(t,e,4,s||null,kn(l,o));bl(t,i,u,kn(l,c)),ps(t,u);const d=u.tView=Ml(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];Gt(d,!1);const p=ap(l,c,d,e);hs()&&Ts(l,c,p,d),p2(p,c),to(c,c[u]=Sh(p,c,p,d)),as(d)&&Cl(l,c,d),null!=s&&yl(c,d,o)}let ap=function sp(e,t,i,n){return Pn(!0),t[de].createComment("")};function R2(e){return function s4(e,t){return e[t]}(function XN(){return oe.lFrame.contextLView}(),He+e)}function b(e,t,i){const n=R();return m2(n,c4(),t)&&K2(xe(),v1(),n,e,t,n[de],i,!1),b}function Il(e,t,i,n,r){const s=r?"class":"style";Dl(e,i,t.inputs[s],s,n)}function g(e,t,i,n){const r=R(),a=xe(),s=He+e,o=r[de],c=a.firstCreatePass?function pO(e,t,i,n,r,a){const s=t.consts,c=E4(t,e,2,n,kn(s,r));return bl(t,i,c,kn(s,a)),null!==c.attrs&&no(c,c.attrs,!1),null!==c.mergedAttrs&&no(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,a,r,t,i,n):a.data[s],l=op(a,r,c,o,t,e);r[s]=l;const u=as(c);return Gt(c,!0),yd(o,l,c),32!=(32&c.flags)&&hs()&&Ts(a,r,l,c),0===function $N(){return oe.lFrame.elementDepthCount}()&&p2(l,r),function WN(){oe.lFrame.elementDepthCount++}(),u&&(Cl(a,r,c),_l(a,c,r)),null!==n&&yl(r,c),g}function _(){let e=s2();o0()?c0():(e=e.parent,Gt(e,!1));const t=e;(function YN(e){return oe.skipHydrationRootTNode===e})(t)&&function JN(){oe.skipHydrationRootTNode=null}(),function qN(){oe.lFrame.elementDepthCount--}();const i=xe();return i.firstCreatePass&&(ps(i,e),Q6(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function fE(e){return 0!=(8&e.flags)}(t)&&Il(i,t,R(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function dE(e){return 0!=(16&e.flags)}(t)&&Il(i,t,R(),t.stylesWithoutHost,!1),_}function k(e,t,i,n){return g(e,t,i,n),_(),k}let op=(e,t,i,n,r,a)=>(Pn(!0),Es(n,r,function b9(){return oe.lFrame.currentNamespace}()));function A1(){return R()}function vr(e){return!!e&&"function"==typeof e.then}function up(e){return!!e&&"function"==typeof e.subscribe}function O(e,t,i,n){const r=R(),a=xe(),s=s2();return function dp(e,t,i,n,r,a,s){const o=as(n),l=e.firstCreatePass&&Nh(e),u=t[L1],d=Lh(t);let p=!0;if(3&n.type||s){const V=I2(n,t),S=s?s(V):V,N=d.length,z=s?B=>s(e1(B[n.index])):n.index;let F=null;if(!s&&o&&(F=function yO(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[e4],c=r[a+2];return o.length>c?o[c]:null}"string"==typeof s&&(a+=2)}return null}(e,t,r,n.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=a,F.__ngLastListenerFn__=a,p=!1;else{a=pp(n,t,u,a,!1);const B=i.listen(S,r,a);d.push(a,B),l&&l.push(r,z,N,N+1)}}else a=pp(n,t,u,a,!1);const m=n.outputs;let H;if(p&&null!==m&&(H=m[r])){const V=H.length;if(V)for(let S=0;S<V;S+=2){const j=t[H[S]][H[S+1]].subscribe(a),ne=d.length;d.push(a,j),l&&l.push(r,n.index,ne,-(ne+1))}}}(a,r,r[de],s,e,t,n),O}function hp(e,t,i,n){try{return jt(6,t,i),!1!==i(n)}catch(r){return Ah(e,r),!1}finally{jt(7,t,i)}}function pp(e,t,i,n,r){return function a(s){if(s===Function)return n;or(e.componentOffset>-1?W2(e.index,t):t);let c=hp(t,i,n,s),l=a.__ngNextListenerFn__;for(;l;)c=hp(t,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function E(e=1){return function rE(e){return(oe.lFrame.contextLView=function aE(e,t){for(;e>0;)t=t[n4],e--;return t}(e,oe.lFrame.contextLView))[L1]}(e)}function MO(e,t){let i=null;const n=function lN(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?Lf(e,a,!0):dN(n,a))return r}else i=r}return i}function U4(e){const t=R()[N1][h2];if(!t.projection){const n=t.projection=Ki(e?e.length:1,null),r=n.slice();let a=t.child;for(;null!==a;){const s=e?MO(a,e):0;null!==s&&(r[s]?r[s].projectionNext=a:n[s]=a,r[s]=a),a=a.next}}}function j4(e,t=0,i){const n=R(),r=xe(),a=E4(r,He+e,16,null,i||null);null===a.projection&&(a.projection=t),c0(),(!n[cn]||o4())&&32!=(32&a.flags)&&function MA(e,t,i){_d(t[de],0,t,i,T0(e,i,t),dd(i.parent||t[h2],i,t))}(r,n,a)}function Rl(e,t,i){return G4(e,"",t,"",i),Rl}function G4(e,t,i,n,r){const a=R(),s=I4(a,t,i,n);return s!==he&&K2(xe(),v1(),a,e,s,a[de],r,!1),G4}function uo(e,t){return e<<17|t<<2}function Bn(e){return e>>17&32767}function kl(e){return 2|e}function m3(e){return(131068&e)>>2}function Pl(e,t){return-131069&e|t<<2}function Fl(e){return 1|e}function wp(e,t,i,n,r){const a=e[i+1],s=null===t;let o=n?Bn(a):m3(a),c=!1;for(;0!==o&&(!1===c||s);){const u=e[o+1];zO(e[o],t)&&(c=!0,e[o+1]=n?Fl(u):kl(u)),o=n?Bn(u):m3(u)}c&&(e[i+1]=n?kl(a):Fl(a))}function zO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&_4(e,t)>=0}const $1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hp(e){return e.substring($1.key,$1.keyEnd)}function Vp(e,t){const i=$1.textEnd;return i===t?-1:(t=$1.keyEnd=function NO(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,$1.key=t,i),$4(e,t,i))}function $4(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function ze(e,t){return function Dt(e,t,i,n){const r=R(),a=xe(),s=un(2);a.firstUpdatePass&&Ep(a,e,s,n),t!==he&&m2(r,s,t)&&Ip(a,a.data[M2()],r,r[de],e,r[s+1]=function UO(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=j1(Y2(e)))),e}(t,i),n,s)}(e,t,null,!0),ze}function gn(e){!function zt(e,t,i,n){const r=xe(),a=un(2);r.firstUpdatePass&&Ep(r,null,a,n);const s=R();if(i!==he&&m2(s,a,i)){const o=r.data[M2()];if(Op(o,n)&&!Np(r,a)){let c=n?o.classesWithoutHost:o.stylesWithoutHost;null!==c&&(i=T6(c,i||"")),Il(r,o,s,i,n)}else!function BO(e,t,i,n,r,a,s,o){r===he&&(r=Ae);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 V,H=null;u===d?(c+=2,l+=2,p!==m&&(H=d,V=m)):null===d||null!==u&&u<d?(c+=2,H=u):(l+=2,H=d,V=m),null!==H&&Ip(e,t,i,n,H,V,s,o),u=c<r.length?r[c]:null,d=l<a.length?a[l]:null}}(r,o,s,s[de],s[a+1],s[a+1]=function PO(e,t,i){if(null==i||""===i)return Ae;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)}}(FO,Zt,e,!0)}function Zt(e,t){for(let i=function xO(e){return function zp(e){$1.key=0,$1.keyEnd=0,$1.value=0,$1.valueEnd=0,$1.textEnd=e.length}(e),Vp(e,$4(e,0,$1.textEnd))}(t);i>=0;i=Vp(t,i))q2(e,Hp(t),!0)}function Np(e,t){return t>=e.expandoStartIndex}function Ep(e,t,i,n){const r=e.data;if(null===r[i+1]){const a=r[M2()],s=Np(e,i);Op(a,n)&&null===t&&!s&&(t=!1),t=function TO(e,t,i,n){const r=function u0(e){const t=oe.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=_r(i=Bl(null,e,t,i,n),t.attrs,n),a=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(i=Bl(r,e,t,i,n),null===a){let c=function OO(e,t,i){const n=i?t.classBindings:t.styleBindings;if(0!==m3(n))return e[Bn(n)]}(e,t,n);void 0!==c&&Array.isArray(c)&&(c=Bl(null,e,t,c[1],n),c=_r(c,t.attrs,n),function RO(e,t,i,n){e[Bn(i?t.classBindings:t.styleBindings)]=n}(e,t,n,c))}else a=function kO(e,t,i){let n;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)n=_r(n,e[a].hostAttrs,i);return _r(n,t.attrs,i)}(e,t,n)}return void 0!==a&&(n?t.residualClasses=a:t.residualStyles=a),i}(r,a,t,n),function VO(e,t,i,n,r,a){let s=a?t.classBindings:t.styleBindings,o=Bn(s),c=m3(s);e[n]=i;let u,l=!1;if(Array.isArray(i)?(u=i[1],(null===u||_4(i,u)>0)&&(l=!0)):u=i,r)if(0!==c){const p=Bn(e[o+1]);e[n+1]=uo(p,o),0!==p&&(e[p+1]=Pl(e[p+1],n)),e[o+1]=function wO(e,t){return 131071&e|t<<17}(e[o+1],n)}else e[n+1]=uo(o,0),0!==o&&(e[o+1]=Pl(e[o+1],n)),o=n;else e[n+1]=uo(c,0),0===o?o=n:e[c+1]=Pl(e[c+1],n),c=n;l&&(e[n+1]=kl(e[n+1])),wp(e,u,n,!0),wp(e,u,n,!1),function DO(e,t,i,n,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&_4(a,t)>=0&&(i[n+1]=Fl(i[n+1]))}(t,u,e,n,a),s=uo(o,c),a?t.classBindings=s:t.styleBindings=s}(r,a,t,i,s,n)}}function Bl(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=_r(n,a.hostAttrs,r),a!==e);)o++;return null!==e&&(i.directiveStylingLast=o),n}function _r(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]),q2(e,s,!!i||t[++a]))}return void 0===e?null:e}function FO(e,t,i){const n=String(t);""!==n&&!n.includes(" ")&&q2(e,n,i)}function Ip(e,t,i,n,r,a,s,o){if(!(3&t.type))return;const c=e.data,l=c[o+1],u=function HO(e){return 1==(1&e)}(l)?Tp(c,t,i,r,m3(l),s):void 0;fo(u)||(fo(a)||function bO(e){return 2==(2&e)}(l)&&(a=Tp(c,null,i,r,o,s)),function wA(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,ds(M2(),i),r,a))}function Tp(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===he&&(p=d?Ae:void 0);let m=d?b0(p,n):u===n?p:void 0;if(l&&!fo(m)&&(m=b0(c,n)),fo(m)&&(o=m,s))return o;const H=e[r+1];r=s?Bn(H):m3(H)}if(null!==t){let c=a?t.residualClasses:t.residualStyles;null!=c&&(o=b0(c,n))}return o}function fo(e){return void 0!==e}function Op(e,t){return 0!=(e.flags&(t?8:16))}function M(e,t=""){const i=R(),n=xe(),r=e+He,a=n.firstCreatePass?E4(n,r,1,t,null):n.data[r],s=Rp(n,i,a,t,e);i[r]=s,hs()&&Ts(n,i,s,a),Gt(a,!1)}let Rp=(e,t,i,n,r)=>(Pn(!0),function Ns(e,t){return e.createText(t)}(t[de],n));function ht(e){return Z2("",e,""),ht}function Z2(e,t,i){const n=R(),r=I4(n,e,t,i);return r!==he&&mn(n,M2(),r),Z2}function W4(e,t,i,n,r){const a=R(),s=T4(a,e,t,i,n,r);return s!==he&&mn(a,M2(),s),W4}function w2(e,t,i){const n=R();return m2(n,c4(),t)&&K2(xe(),v1(),n,e,t,n[de],i,!0),w2}const Y4="en-US";let im=Y4;function Gl(e,t,i,n,r){if(e=le(e),Array.isArray(e))for(let a=0;a<e.length;a++)Gl(e[a],t,i,n,r);else{const a=xe(),s=R(),o=s2();let c=h3(e)?e:le(e.provide);const l=Bd(e),u=1048575&o.providerIndexes,d=o.directiveStart,p=o.providerIndexes>>20;if(h3(e)||!e.multi){const m=new Gi(l,r,w),H=Wl(c,t,r?u:u+p,d);-1===H?(C0(_s(o,s),a,c),$l(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=Wl(c,t,u+p,d),H=Wl(c,t,u,u+p),S=H>=0&&i[H];if(r&&!S||!r&&!(m>=0&&i[m])){C0(_s(o,s),a,c);const N=function ck(e,t,i,n,r){const a=new Gi(e,i,w);return a.multi=[],a.index=t,a.componentProviders=0,Sm(a,r,n&&!i),a}(r?ok:sk,i.length,r,n,l);!r&&S&&(i[H].providerFactory=N),$l(a,e,t.length,0),t.push(c),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),i.push(N),s.push(N)}else $l(a,e,m>-1?m:H,Sm(i[r?H:m],l,!r&&n));!r&&n&&S&&i[H].componentProviders++}}}function $l(e,t,i,n){const r=h3(t),a=function tI(e){return!!e.useClass}(t);if(r||a){const c=(a?le(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 Sm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function Wl(e,t,i,n){for(let r=i;r<n;r++)if(t[r]===e)return r;return-1}function sk(e,t,i,n){return ql(this.multi,[])}function ok(e,t,i,n){const r=this.multi;let a;if(this.providerFactory){const s=this.providerFactory.componentProviders,o=l3(i,i[q],this.providerFactory.index,n);a=o.slice(0,s),ql(r,a);for(let c=s;c<o.length;c++)a.push(o[c])}else a=[],ql(r,a);return a}function ql(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 ak(e,t,i){const n=xe();if(n.firstCreatePass){const r=Vt(e);Gl(i,n.data,n.blueprint,r,!0),Gl(t,n.data,n.blueprint,r,!1)}}(n,r?r(e):e,t)}}class v3{}class xm{}class Yl extends v3{constructor(t,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fh(this);const r=$2(t);this._bootstrapComponents=pn(r.bootstrap),this._r3Injector=Xd(t,i,[{provide:v3,useValue:this},{provide:Qs,useValue:this.componentFactoryResolver},...n],j1(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 Kl extends xm{constructor(t){super(),this.moduleType=t}create(t){return new Yl(this.moduleType,t,[])}}class Lm extends v3{constructor(t){super(),this.componentFactoryResolver=new Fh(this),this.instance=null;const i=new Gs([...t.providers,{provide:v3,useValue:this},{provide:Qs,useValue:this.componentFactoryResolver}],t.parent||js(),t.debugName,new Set(["environment"]));this.injector=i,t.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Zl(e,t,i=null){return new Lm({providers:e,parent:t,debugName:i,runEnvironmentInitializers:!0}).injector}let fk=(()=>{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=Rd(0,n.type),a=r.length>0?Zl([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=G({token:e,providedIn:"environment",factory:()=>new e(W(O2))}),t})();function V2(e){e.getStandaloneInjector=t=>t.get(fk).getOrCreateStandaloneInjector(e)}function Dr(e,t,i,n,r){return function km(e,t,i,n,r,a,s){const o=t+i;return p3(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===he?void 0:i}(e,o+2)}(R(),function y2(){const e=oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,i,n,r)}function Ik(){return this._results[Symbol.iterator]()}class Xl{get changes(){return this._changes||(this._changes=new X)}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=Xl.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Ik)}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 ut(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function DE(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 Ok(e,t,i,n=!0){const r=t[q];if(function mA(e,t,i,n){const r=r2+n,a=i.length;n>0&&(i[r-1][Ht]=t),n<a-r2?(t[Ht]=i[r],R9(i,r2+n,t)):(i.push(t),t[Ht]=null),t[h1]=i;const s=t[Ri];null!==s&&i!==s&&function gA(e,t){const i=e[r4];t[N1]!==t[h1][h1][N1]&&(e[Rf]=!0),null===i?e[r4]=[t]:i.push(t)}(s,t);const o=t[Bt];null!==o&&o.insertView(e),t[me]|=128}(r,t,e,i),n){const a=R0(i,e),s=t[de],o=Is(s,e[Ut]);null!==o&&function dA(e,t,i,n,r,a){n[H1]=r,n[h2]=t,er(e,n,i,1,r,a)}(r,e[h2],s,t,o,a)}}let s1=(()=>{class t{}return t.__NG_ELEMENT_ID__=Pk,t})();const Rk=s1,kk=class extends Rk{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 Tk(e,t,i,n){const r=t.tView,o=eo(e,r,i,4096&e[me]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);o[Ri]=e[t.index];const l=e[Bt];return null!==l&&(o[Bt]=l.createEmbeddedView(r)),zl(r,o,i),o}(this._declarationLView,this._declarationTContainer,t,{injector:i,hydrationInfo:n});return new ur(r)}};function Pk(){return vo(s2(),R())}function vo(e,t){return 4&e.type?new kk(t,e,x4(e,t)):null}let P2=(()=>{class t{}return t.__NG_ELEMENT_ID__=$k,t})();function $k(){return Ym(s2(),R())}const Wk=P2,Wm=class extends Wk{constructor(t,i,n){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=n}get element(){return x4(this._hostTNode,this._hostLView)}get injector(){return new b2(this._hostTNode,this._hostLView)}get parentInjector(){const t=Cs(this._hostTNode,this._hostLView);if(g0(t)){const i=Wi(t,this._hostLView),n=$i(t);return new b2(i[q].data[n+8],i)}return new b2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=qm(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-r2}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 V=i||{};o=V.index,n=V.injector,r=V.projectableNodes,a=V.environmentInjector||V.ngModuleRef}const c=s?t:new fr(Se(t)),l=n||this.parentInjector;if(!a&&null==c.ngModule){const S=(s?l:this.parentInjector).get(O2,null);S&&(a=S)}Se(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 UN(e){return C2(e[h1])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const l=r[h1],u=new Wm(l,l[h2],l[h1]);u.detach(u.indexOf(t))}}const s=this._adjustIndex(i),o=this._lContainer;return Ok(o,r,s,!n),t.attachToViewContainerRef(),R9(e8(o),s,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=qm(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),n=As(this._lContainer,i);n&&(Ms(e8(this._lContainer),i),A0(n[q],n))}detach(t){const i=this._adjustIndex(t,-1),n=As(this._lContainer,i);return n&&null!=Ms(e8(this._lContainer),i)?new ur(n):null}_adjustIndex(t,i=0){return t??this.length+i}};function qm(e){return e[8]}function e8(e){return e[8]||(e[8]=[])}function Ym(e,t){let i;const n=t[e.index];return C2(n)?i=n:(i=Sh(n,t,null,e),t[e.index]=i,to(t,i)),Km(i,t,e,n),new Wm(i,e,t)}let Km=function Zm(e,t,i,n){if(e[Ut])return;let r;r=8&i.type?e1(n):function qk(e,t){const i=e[de],n=i.createComment(""),r=I2(t,e);return f3(i,Is(i,r),n,function yA(e,t){return e.nextSibling(t)}(i,r),!1),n}(t,i),e[Ut]=r};class t8{constructor(t){this.queryList=t,this.matches=null}clone(){return new t8(this.queryList)}setDirty(){this.queryList.setDirty()}}class n8{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 n8(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!==tg(t,i).matches&&this.queries[i].setDirty()}}class Qm{constructor(t,i,n=null){this.predicate=t,this.flags=i,this.read=n}}class i8{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 i8(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 r8{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 r8(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,Zk(i,a)),this.matchTNodeWithReadOption(t,i,ys(i,t,a,!1,!1))}else n===s1?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,ys(i,t,n,!1,!1))}matchTNodeWithReadOption(t,i,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Le||r===P2||r===s1&&4&i.type)this.addMatch(i.index,-2);else{const a=ys(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 Zk(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 Jk(e,t,i,n){return-1===i?function Qk(e,t){return 11&e.type?x4(e,t):4&e.type?vo(e,t):null}(t,e):-2===i?function Xk(e,t,i){return i===Le?x4(t,e):i===s1?vo(t,e):i===P2?Ym(t,e):void 0}(e,t,n):l3(e,e[q],i,t)}function Jm(e,t,i,n){const r=t[Bt].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:Jk(t,a[l],s[c+1],i.metadata.read))}r.matches=o}return r.matches}function a8(e,t,i,n){const r=e.queries.getByIndex(i),a=r.matches;if(null!==a){const s=Jm(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=r2;d<u.length;d++){const p=u[d];p[Ri]===p[h1]&&a8(p[q],p,l,n)}if(null!==u[r4]){const d=u[r4];for(let p=0;p<d.length;p++){const m=d[p];a8(m[q],m,l,n)}}}}}return n}function Ue(e){const t=R(),i=xe(),n=g9();f0(n+1);const r=tg(i,n);if(e.dirty&&function FN(e){return 4==(4&e[me])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?a8(i,t,n,[]):Jm(i,t,r,n);e.reset(a,bI),e.notifyOnChanges()}return!0}return!1}function _1(e,t,i,n){const r=xe();if(r.firstCreatePass){const a=s2();eg(r,new Qm(t,i,n),a.index),function tP(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)}Xm(r,R(),i)}function je(){return function eP(e,t){return e[Bt].queries[t].queryList}(R(),g9())}function Xm(e,t,i){const n=new Xl(4==(4&i));(function tT(e,t,i,n){const r=Lh(t);r.push(i),e.firstCreatePass&&Nh(e).push(n,r.length-1)})(e,t,n,n.destroy),null===t[Bt]&&(t[Bt]=new n8),t[Bt].queries.push(new t8(n))}function eg(e,t,i){null===e.queries&&(e.queries=new i8),e.queries.track(new r8(t,i))}function tg(e,t){return e.queries.getByIndex(t)}function D2(e,t){return vo(e,t)}const f8=new ee("Application Initializer");let d8=(()=>{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=Q(f8,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const s=a();if(vr(s))n.push(s);else if(up(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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),_g=(()=>{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=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const St=new ee("LocaleId",{providedIn:"root",factory:()=>Q(St,Ce.Optional|Ce.SkipSelf)||function bP(){return typeof $localize<"u"&&$localize.locale||Y4}()});let Cg=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ot(!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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class VP{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let yg=(()=>{var e;class t{compileModuleSync(n){return new Kl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=pn($2(n).declarations).reduce((o,c)=>{const l=Se(c);return l&&o.push(new fr(l)),o},[]);return new VP(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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Hg=new ee(""),Mo=new ee("");let v8,m8=(()=>{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,v8||(function $P(e){v8=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:()=>{ye.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)(W(ye),W(g8),W(Mo))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})(),g8=(()=>{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 v8?.findTestabilityInTree(this,n,r)??null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Un=null;const Vg=new ee("AllowMultipleToken"),_8=new ee("PlatformDestroyListeners"),C8=new ee("appBootstrapListener");class zg{constructor(t,i){this.name=t,this.token=i}}function xg(e,t,i=[]){const n=`Platform: ${t}`,r=new ee(n);return(a=[])=>{let s=y8();if(!s||s.injector.get(Vg,!1)){const o=[...i,...a,{provide:r,useValue:!0}];e?e(o):function YP(e){if(Un&&!Un.get(Vg,!1))throw new P(400,!1);(function Dg(){!function zN(e){Kf=e}(()=>{throw new P(600,!1)})})(),Un=e;const t=e.get(Ng);(function Sg(e){e.get(Ud,null)?.forEach(i=>i())})(e)}(function Lg(e=[],t){return F1.create({name:t,providers:[{provide:Y0,useValue:"platform"},{provide:_8,useValue:new Set([()=>Un=null])},...e]})}(o,n))}return function ZP(e){const t=y8();if(!t)throw new P(401,!1);return t}()}}function y8(){return Un?.get(Ng)??null}let Ng=(()=>{var e;class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function QP(e="zone.js",t){return"noop"===e?new RI:"zone.js"===e?new ye(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 uk(e,t,i){return new Yl(e,t,i)}(n.moduleType,this.injector,function Rg(e){return[{provide:ye,useFactory:e},{provide:ir,multi:!0,useFactory:()=>{const t=Q(XP,{optional:!0});return()=>t.initialize()}},{provide:Og,useFactory:JP},{provide:rh,useFactory:ah}]}(()=>a)),o=s.injector.get(hn,null);return a.runOutsideAngular(()=>{const c=a.onError.subscribe({next:l=>{o.handleError(l)}});s.onDestroy(()=>{bo(this._modules,s),c.unsubscribe()})}),function Ag(e,t,i){try{const n=i();return vr(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(d8);return c.runInitializers(),c.donePromise.then(()=>(function rm(e){ct(e,"Expected localeId to be defined"),"string"==typeof e&&(im=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(St,Y4)||Y4),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const a=Ig({},r);return function WP(e,t,i){const n=new Kl(i);return Promise.resolve(n)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,a))}_moduleDoBootstrap(n){const r=n.injector.get(Qt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(a=>r.bootstrap(a));else{if(!n.instance.ngDoBootstrap)throw new P(-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 P(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(_8,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)(W(F1))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function Ig(e,t){return Array.isArray(t)?t.reduce(Ig,e):{...e,...t}}let Qt=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Q(Og),this.zoneIsStable=Q(rh),this.componentTypes=[],this.components=[],this.isStable=Q(Cg).hasPendingTasks.pipe(Mt(n=>n?re(!1):this.zoneIsStable),function hf(e,t=yt){return e=e??FL,u1((i,n)=>{let r,a=!0;i.subscribe(We(n,s=>{const o=t(s);(a||!e(r,o))&&(a=!1,r=o,n.next(s))}))})}(),A6()),this._injector=Q(O2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof qd;if(!this._injector.get(d8).done)throw!a&&function X3(e){const t=Se(e)||n2(e)||_2(e);return null!==t&&t.standalone}(n),new P(405,!1);let o;o=a?n:this._injector.get(Qs).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const c=function qP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(v3),u=o.create(F1.NULL,[],r||o.selector,c),d=u.location.nativeElement,p=u.injector.get(Hg,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),bo(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new P(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;bo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(C8,[]);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),()=>bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new P(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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function bo(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Og=new ee("",{providedIn:"root",factory:()=>Q(hn).handleError.bind(void 0)});function JP(){const e=Q(ye),t=Q(hn);return i=>e.runOutsideAngular(()=>t.handleError(i))}let XP=(()=>{var e;class t{constructor(){this.zone=Q(ye),this.applicationRef=Q(Qt)}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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();let Q2=(()=>{class t{}return t.__NG_ELEMENT_ID__=tF,t})();function tF(e){return function nF(e,t,i){if(s3(e)&&!i){const n=W2(e.index,t);return new ur(n,n)}return 47&e.type?new ur(t[N1],t):null}(s2(),R(),16==(16&e))}class Bg{constructor(){}supports(t){return ao(t)}create(t){return new cF(t)}}const oF=(e,t)=>t;class cF{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||oF}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<jg(n,r,a)?i:n,o=jg(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=[]),!ao(t))throw new P(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 WT(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 lF(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 Ug),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 Ug),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 lF{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 uF{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 Ug{constructor(){this.map=new Map}put(t){const i=t.trackById;let n=this.map.get(i);n||(n=new uF,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 jg(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 $g(){return new Vo([new Bg])}let Vo=(()=>{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||$g()),deps:[[t,new Hs,new ws]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(null!=r)return r;throw new P(901,!1)}}return(e=t).\u0275prov=G({token:e,providedIn:"root",factory:$g}),t})();const mF=xg(null,"core",[]);let gF=(()=>{var e;class t{constructor(n){}}return(e=t).\u0275fac=function(n){return new(n||e)(W(Qt))},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();function Q4(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function D8(e,t){const i=Se(e),n=t.elementInjector||js();return new fr(i).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let z8=null;function jn(){return z8}class LF{}const C1=new ee("DocumentToken");let S8=(()=>{var e;class t{historyGo(n){throw new Error("Not implemented")}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(){return Q(EF)},providedIn:"platform"}),t})();const NF=new ee("Location Initialized");let EF=(()=>{var e;class t extends S8{constructor(){super(),this._doc=Q(C1),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=G({token:e,factory:function(){return new e},providedIn:"platform"}),t})();function x8(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 tv(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=G({token:e,factory:function(){return Q(iv)},providedIn:"root"}),t})();const nv=new ee("appBaseHref");let iv=(()=>{var e;class t extends Gn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Q(C1).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 x8(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)(W(S8),W(nv,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),rv=(()=>{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=x8(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)(W(S8),W(nv,8))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})(),L8=(()=>{var e;class t{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function TF(e){if(new RegExp("^(https?:)?//").test(e)){const[,i]=e.split(/\/\/[^\/]+/);return i}return e}(tv(av(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 IF(e,t){if(!e||!t.startsWith(e))return t;const i=t.substring(e.length);return""===i||["/",";","?","#"].includes(i[0])?i:t}(this._basePath,av(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=x8,e.stripTrailingSlash=tv,e.\u0275fac=function(n){return new(n||e)(W(Gn))},e.\u0275prov=G({token:e,factory:function(){return function AF(){return new L8(W(Gn))}()},providedIn:"root"}),t})();function av(e){return e.replace(/\/index.html$/,"")}class CB{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 Jt=(()=>{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 CB(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),_v(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=>{_v(r.get(a.currentIndex),a)})}static ngTemplateContextGuard(n,r){return!0}}return(e=t).\u0275fac=function(n){return new(n||e)(w(P2),w(s1),w(Vo))},e.\u0275dir=U({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function _v(e,t){e.context.$implicit=t.item}let T1=(()=>{var e;class t{constructor(n,r){this._viewContainer=n,this._context=new yB,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){Cv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Cv("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(P2),w(s1))},e.\u0275dir=U({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class yB{constructor(){this.$implicit=null,this.ngIf=null}}function Cv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${j1(t)}'.`)}let y3=(()=>{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(P2))},e.\u0275dir=U({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g1]}),t})(),qB=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();function wv(e){return"server"===e}let QB=(()=>{var e;class t{}return(e=t).\u0275prov=G({token:e,providedIn:"root",factory:()=>new JB(W(C1),window)}),t})();class JB{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 XB(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 wU extends LF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y8 extends wU{static makeCurrent(){!function xF(e){z8||(z8=e)}(new Y8)}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 HU(){return Tr=Tr||document.querySelector("base"),Tr?Tr.getAttribute("href"):null}();return null==i?null:function VU(e){Po=Po||document.createElement("a"),Po.setAttribute("href",e);const t=Po.pathname;return"/"===t.charAt(0)?t:`/${t}`}(i)}resetBaseElement(){Tr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function gB(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 Po,Tr=null,zU=(()=>{var e;class t{build(){return new XMLHttpRequest}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();const K8=new ee("EventManagerPlugins");let Sv=(()=>{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 P(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return(e=t).\u0275fac=function(n){return new(n||e)(W(K8),W(ye))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();class xv{constructor(t){this._doc=t}}const Z8="ng-app-id";let Lv=(()=>{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=wv(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[${Z8}="${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(Z8),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Z8,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)(W(C1),W($s),W(jd,8),W(D4))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();const Q8={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/"},J8=/%COMP%/g,NU=new ee("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Ev(e,t){return t.map(i=>i.replace(J8,e))}let Av=(()=>{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=wv(c),this.defaultRenderer=new X8(n,o,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===bt.ShadowDom&&(r={...r,encapsulation:bt.Emulated});const a=this.getOrCreateRenderer(n,r);return a instanceof Tv?a.applyToHost(n):a instanceof e5&&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 bt.Emulated:s=new Tv(l,u,r,this.appId,d,o,c,p);break;case bt.ShadowDom:return new TU(l,u,n,r,o,c,this.nonce,p);default:s=new e5(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)(W(Sv),W(Lv),W($s),W(NU),W(C1),W(D4),W(ye),W(jd))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();class X8{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(Q8[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(Iv(t)?t.content:t).appendChild(i)}insertBefore(t,i,n){t&&(Iv(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 P(-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=Q8[r];a?t.setAttributeNS(a,i,n):t.setAttribute(i,n)}else t.setAttribute(i,n)}removeAttribute(t,i,n){if(n){const r=Q8[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 Iv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class TU extends X8{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 e5 extends X8{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 Tv extends e5{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(J8,e)}(l),this.hostAttr=function AU(e){return"_nghost-%COMP%".replace(J8,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 OU=(()=>{var e;class t extends xv{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)(W(C1))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();const Ov=["alt","control","meta","shift"],RU={"\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"},kU={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let PU=(()=>{var e;class t extends xv{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."),Ov.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=RU[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"),Ov.forEach(o=>{o!==a&&(0,kU[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)(W(C1))},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();const jU=xg(mF,"browser",[{provide:D4,useValue:"browser"},{provide:Ud,useValue:function FU(){Y8.makeCurrent()},multi:!0},{provide:C1,useFactory:function UU(){return function SA(e){F0=e}(document),document},deps:[]}]),GU=new ee(""),Pv=[{provide:Mo,useClass:class DU{addToWindow(t){Xe.getAngularTestability=(n,r=!0)=>{const a=t.findTestabilityInTree(n,r);if(null==a)throw new P(5103,!1);return a},Xe.getAllAngularTestabilities=()=>t.getAllTestabilities(),Xe.getAllAngularRootElements=()=>t.getAllRootElements(),Xe.frameworkStabilizers||(Xe.frameworkStabilizers=[]),Xe.frameworkStabilizers.push(n=>{const r=Xe.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:Hg,useClass:m8,deps:[ye,g8,Mo]},{provide:m8,useClass:m8,deps:[ye,g8,Mo]}],Fv=[{provide:Y0,useValue:"root"},{provide:hn,useFactory:function BU(){return new hn},deps:[]},{provide:K8,useClass:OU,multi:!0,deps:[C1,ye,D4]},{provide:K8,useClass:PU,multi:!0,deps:[C1]},Av,Lv,Sv,{provide:cl,useExisting:Av},{provide:class eU{},useClass:zU,deps:[]},[]];let $U=(()=>{var e;class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:$s,useValue:n.appId}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(W(GU,12))},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({providers:[...Fv,...Pv],imports:[qB,gF]}),t})(),Bv=(()=>{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)(W(C1))},e.\u0275prov=G({token:e,factory:function(n){let r=null;return r=n?new n:function qU(){return new Bv(W(C1))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Gv=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(n){let r=null;return r=n?new(n||e):W($v),r},providedIn:"root"}),t})(),$v=(()=>{var e;class t extends Gv{constructor(n){super(),this._doc=n}sanitize(n,r){if(null==r)return null;switch(n){case ft.NONE:return r;case ft.HTML:return Wt(r,"HTML")?Y2(r):Ld(this._doc,String(r)).toString();case ft.STYLE:return Wt(r,"Style")?Y2(r):r;case ft.SCRIPT:if(Wt(r,"Script"))return Y2(r);throw new P(5200,!1);case ft.URL:return Wt(r,"URL")?Y2(r):Ps(String(r));case ft.RESOURCE_URL:if(Wt(r,"ResourceURL"))return Y2(r);throw new P(5201,!1);default:throw new P(5202,!1)}}bypassSecurityTrustHtml(n){return function TA(e){return new xA(e)}(n)}bypassSecurityTrustStyle(n){return function OA(e){return new LA(e)}(n)}bypassSecurityTrustScript(n){return function RA(e){return new NA(e)}(n)}bypassSecurityTrustUrl(n){return function kA(e){return new EA(e)}(n)}bypassSecurityTrustResourceUrl(n){return function PA(e){return new AA(e)}(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(W(C1))},e.\u0275prov=G({token:e,factory:function(n){let r=null;return r=n?new n:function QU(e){return new $v(e.get(C1))}(W(F1)),r},providedIn:"root"}),t})();const{isArray:JU}=Array,{getPrototypeOf:XU,prototype:ej,keys:tj}=Object;function qv(e){if(1===e.length){const t=e[0];if(JU(t))return{args:t,keys:null};if(function nj(e){return e&&"object"==typeof e&&XU(e)===ej}(t)){const i=tj(t);return{args:i.map(n=>t[n]),keys:i}}}return{args:e,keys:null}}const{isArray:ij}=Array;function n5(e){return we(t=>function rj(e,t){return ij(t)?e(...t):e(t)}(e,t))}function Yv(e,t){return e.reduce((i,n,r)=>(i[n]=t[r],i),{})}let Kv=(()=>{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(o2),w(Le))},e.\u0275dir=U({type:e}),t})(),M3=(()=>{var e;class t extends Kv{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=U({type:e,features:[ie]}),t})();const gt=new ee("NgValueAccessor"),sj={provide:gt,useExisting:pe(()=>g2),multi:!0};let g2=(()=>{var e;class t extends M3{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=U({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[Ye([sj]),ie]}),t})();const oj={provide:gt,useExisting:pe(()=>Wn),multi:!0},lj=new ee("CompositionEventMode");let Wn=(()=>{var e;class t extends Kv{constructor(n,r,a){super(n,r),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function cj(){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(o2),w(Le),w(lj,8))},e.\u0275dir=U({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&&O("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([oj]),ie]}),t})();const c2=new ee("NgValidators"),Yn=new ee("NgAsyncValidators"),uj=/^(?=.{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 t_(e){return function qn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)||uj.test(e.value)?null:{email:!0}}function Fo(e){return null}function a_(e){return null!=e}function s_(e){return vr(e)?Z1(e):e}function o_(e){let t={};return e.forEach(i=>{t=null!=i?{...t,...i}:t}),0===Object.keys(t).length?null:t}function c_(e,t){return t.map(i=>i(e))}function l_(e){return e.map(t=>function fj(e){return!e.validate}(t)?t:i=>t.validate(i))}function i5(e){return null!=e?function u_(e){if(!e)return null;const t=e.filter(a_);return 0==t.length?null:function(i){return o_(c_(i,t))}}(l_(e)):null}function r5(e){return null!=e?function f_(e){if(!e)return null;const t=e.filter(a_);return 0==t.length?null:function(i){return function aj(...e){const t=qa(e),{args:i,keys:n}=qv(e),r=new $e(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;U1(i[u]).subscribe(We(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(n5(t)):r}(c_(i,t).map(s_)).pipe(we(o_))}}(l_(e)):null}function d_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function a5(e){return e?Array.isArray(e)?e:[e]:[]}function Bo(e,t){return Array.isArray(e)?e.includes(t):e===t}function m_(e,t){const i=a5(t);return a5(e).forEach(r=>{Bo(i,r)||i.push(r)}),i}function g_(e,t){return a5(t).filter(i=>!Bo(e,i))}class v_{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=i5(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=r5(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 S2 extends v_{get formDirective(){return null}get path(){return null}}class Kn extends v_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class __{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 D1=(()=>{var e;class t extends __{constructor(n){super(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Kn,2))},e.\u0275dir=U({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:[ie]}),t})();const Or="VALID",jo="INVALID",X4="PENDING",Rr="DISABLED";function Go(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class b_{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===Or}get invalid(){return this.status===jo}get pending(){return this.status==X4}get disabled(){return this.status===Rr}get enabled(){return this.status!==Rr}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(m_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(m_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(g_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(g_(t,this._rawAsyncValidators))}hasValidator(t){return Bo(this._rawValidators,t)}hasAsyncValidator(t){return Bo(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=X4,!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=Rr,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=Or,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===Or||this.status===X4)&&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()?Rr:Or}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=X4,this._hasOwnPendingAsyncValidator=!0;const i=s_(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 X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?Rr:this.errors?jo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(X4)?X4:this._anyControlsHaveStatus(jo)?jo:Or}_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){Go(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 gj(e){return Array.isArray(e)?i5(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function vj(e){return Array.isArray(e)?r5(e):e||null}(this._rawAsyncValidators)}}const ei=new ee("CallSetDisabledState",{providedIn:"root",factory:()=>$o}),$o="always";function kr(e,t,i=$o){(function f5(e,t){const i=function h_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(d_(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const n=function p_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(d_(n,t.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);const r=()=>e.updateValueAndValidity();Yo(t._rawValidators,r),Yo(t._rawAsyncValidators,r)})(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===i)&&t.valueAccessor.setDisabledState?.(e.disabled),function yj(e,t){t.valueAccessor.registerOnChange(i=>{e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&w_(e,t)})}(e,t),function bj(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 Mj(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&w_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function Cj(e,t){if(t.valueAccessor.setDisabledState){const i=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(i),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(i)})}}(e,t)}function Yo(e,t){e.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function w_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function D_(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 S_=class extends b_{constructor(t=null,i,n){super(function c5(e){return(Go(e)?e.validators:e)||null}(i),function l5(e,t){return(Go(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}),Go(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){D_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){D_(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}},Lj={provide:Kn,useExisting:pe(()=>y1)},N_=(()=>Promise.resolve())();let y1=(()=>{var e;class t extends Kn{constructor(n,r,a,s,o,c){super(),this._changeDetectorRef=o,this.callSetDisabledState=c,this.control=new S_,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(r),this._setAsyncValidators(a),this.valueAccessor=function p5(e,t){if(!t)return null;let i,n,r;return Array.isArray(t),t.forEach(a=>{a.constructor===Wn?i=a:function Vj(e){return Object.getPrototypeOf(e.constructor)===M3}(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 h5(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(){kr(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){N_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,a=0!==r&&Q4(r);N_.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Wo(e,t){return[...t.path,e]}(n,this._parent):[n]}}return(e=t).\u0275fac=function(n){return new(n||e)(w(S2,9),w(c2,10),w(Yn,10),w(gt,10),w(Q2,8),w(ei,8))},e.\u0275dir=U({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([Lj]),ie,g1]}),t})();const Ej={provide:gt,useExisting:pe(()=>ti),multi:!0};let ti=(()=>{var e;class t extends M3{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=U({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&O("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Ye([Ej]),ie]}),t})(),E_=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();const Bj={provide:gt,useExisting:pe(()=>yn),multi:!0};function P_(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let yn=(()=>{var e;class t extends M3{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=P_(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 Uj(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=U({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([Bj]),ie]}),t})(),b3=(()=>{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(P_(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(Le),w(o2),w(yn,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const jj={provide:gt,useExisting:pe(()=>C5),multi:!0};function F_(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let C5=(()=>{var e;class t extends M3{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 Gj(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=U({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){1&n&&O("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ye([jj]),ie]}),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(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(F_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(F_(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(Le),w(o2),w(C5,9))},e.\u0275dir=U({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),H3=(()=>{var e;class t{constructor(){this._validator=Fo}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):Fo,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=U({type:e,features:[g1]}),t})();const Kj={provide:c2,useExisting:pe(()=>M5),multi:!0};let M5=(()=>{var e;class t extends H3{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Q4,this.createValidator=n=>t_}enabled(n){return n}}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275dir=U({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ye([Kj]),ie]}),t})(),Xj=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({imports:[E_]}),t})(),tG=(()=>{var e;class t{static withConfig(n){return{ngModule:t,providers:[{provide:ei,useValue:n.callSetDisabledState??$o}]}}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({imports:[Xj]}),t})();const nG=["addListener","removeListener"],iG=["addEventListener","removeEventListener"],rG=["on","off"];function J1(e,t,i,n){if(Z(i)&&(n=i,i=void 0),n)return J1(e,t,i).pipe(n5(n));const[r,a]=function oG(e){return Z(e.addEventListener)&&Z(e.removeEventListener)}(e)?iG.map(s=>o=>e[s](t,o,i)):function aG(e){return Z(e.addListener)&&Z(e.removeListener)}(e)?nG.map(K_(e,t)):function sG(e){return Z(e.on)&&Z(e.off)}(e)?rG.map(K_(e,t)):[];if(!r&&L6(e))return P1(s=>J1(s,t,i))(U1(e));if(!r)throw new TypeError("Invalid event target");return new $e(s=>{const o=(...c)=>s.next(1<c.length?c:c[0]);return r(o),()=>a(o)})}function K_(e,t){return i=>n=>e[i](t,n)}class cG extends De{constructor(t,i){super()}schedule(t,i=0){return this}}const Zo={setInterval(e,t,...i){const{delegate:n}=Zo;return n?.setInterval?n.setInterval(e,t,...i):setInterval(e,t,...i)},clearInterval(e){const{delegate:t}=Zo;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Z_={now:()=>(Z_.delegate||Date).now(),delegate:void 0};class Fr{constructor(t,i=Fr.now){this.schedulerActionCtor=t,this.now=i}schedule(t,i=0,n){return new this.schedulerActionCtor(this,t).schedule(n,i)}}Fr.now=Z_.now;const Q_=new class uG extends Fr{constructor(t,i=Fr.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 lG extends cG{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 Zo.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&&Zo.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,Ze(n,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,super.unsubscribe()}}}),fG=Q_;function J_(e=0,t,i=fG){let n=-1;return null!=t&&(lf(t)?i=t:n=t),new $e(r=>{let a=function dG(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:hG}=Array;function X_(e){return 1===e.length&&hG(e[0])?e[0]:e}function eC(...e){return 1===(e=X_(e)).length?U1(e[0]):new $e(function pG(e){return t=>{let i=[];for(let n=0;i&&!t.closed&&n<e.length;n++)i.push(U1(e[n]).subscribe(We(t,r=>{if(i){for(let a=0;a<i.length;a++)a!==n&&i[a].unsubscribe();i=null}t.next(r)})))}}(e))}function b5(...e){const t=qa(e),i=X_(e);return i.length?new $e(n=>{let r=i.map(()=>[]),a=i.map(()=>!1);n.add(()=>{r=a=null});for(let s=0;!n.closed&&s<i.length;s++)U1(i[s]).subscribe(We(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}}):st}function Br(...e){return function mG(){return Q3(1)}()(Z1(e,Li(e)))}function O1(e){return u1((t,i)=>{U1(e).subscribe(We(i,()=>i.complete(),K1)),!i.closed&&t.subscribe(i)})}function z1(e,t){return u1((i,n)=>{let r=0;i.subscribe(We(n,a=>e.call(t,a,r++)&&n.next(a)))})}function X1(e){return e<=0?()=>st:u1((t,i)=>{let n=0;t.subscribe(We(i,r=>{++n<=e&&(i.next(r),e<=n&&i.complete())}))})}function W1(e,t,i){const n=Z(e)||t||i?{next:e,error:t,complete:i}:e;return n?u1((r,a)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let o=!0;r.subscribe(We(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)}))}):yt}function w5(...e){const t=qa(e);return u1((i,n)=>{const r=e.length,a=new Array(r);let s=e.map(()=>!1),o=!1;for(let c=0;c<r;c++)U1(e[c]).subscribe(We(n,l=>{a[c]=l,!o&&!s[c]&&(s[c]=!0,(o=s.every(yt))&&(s=null))},K1));i.subscribe(We(n,c=>{if(o){const l=[c,...a];n.next(t?t(...l):l)}}))})}function tC(e){return we(()=>e)}function nC(e,t){return t?i=>Br(t.pipe(X1(1),function vG(){return u1((e,t)=>{e.subscribe(We(t,K1))})}()),i.pipe(nC(e))):P1((i,n)=>U1(e(i,n)).pipe(X1(1),tC(i)))}function iC(e,t=Q_){const i=J_(e,t);return nC(()=>i)}var CG={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(e){return e.replace(/left|right|bottom|top/g,function(t){return CG[t]})}function Xt(e){return e.split("-")[0]}var yG={start:"end",end:"start"};function aC(e){return e.replace(/start|end/g,function(t){return yG[t]})}var X2="top",Nt="bottom",Et="right",et="left",H5="auto",Ur=[X2,Nt,Et,et],ni="start",jr="end",sC="viewport",Gr="popper",oC=Ur.reduce(function(e,t){return e.concat([t+"-"+ni,t+"-"+jr])},[]),cC=[].concat(Ur,[H5]).reduce(function(e,t){return e.concat([t,t+"-"+ni,t+"-"+jr])},[]),EG=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function V3(e){return e instanceof tt(e).Element||e instanceof Element}function vt(e){return e instanceof tt(e).HTMLElement||e instanceof HTMLElement}function V5(e){return!(typeof ShadowRoot>"u")&&(e instanceof tt(e).ShadowRoot||e instanceof ShadowRoot)}function Zn(e){return((V3(e)?e.ownerDocument:e.document)||window.document).documentElement}var D3=Math.max,Jo=Math.min,ii=Math.round;function D5(){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 lC(){return!/^((?!chrome|android).)*safari/i.test(D5())}function ri(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&vt(e)&&(r=e.offsetWidth>0&&ii(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ii(n.height)/e.offsetHeight||1);var o=(V3(e)?tt(e):window).visualViewport,c=!lC()&&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 z5(e){var t=tt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S5(e){return ri(Zn(e)).left+z5(e).scrollLeft}function Mn(e){return tt(e).getComputedStyle(e)}function en(e){return e?(e.nodeName||"").toLowerCase():null}function Xo(e){return"html"===en(e)?e:e.assignedSlot||e.parentNode||(V5(e)?e.host:null)||Zn(e)}function x5(e){var t=Mn(e);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function uC(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:vt(e)&&x5(e)?e:uC(Xo(e))}function $r(e,t){var i;void 0===t&&(t=[]);var n=uC(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),a=tt(n),s=r?[a].concat(a.visualViewport||[],x5(n)?n:[]):n,o=t.concat(s);return r?o:o.concat($r(Xo(s)))}function TG(e){return["table","td","th"].indexOf(en(e))>=0}function fC(e){return vt(e)&&"fixed"!==Mn(e).position?e.offsetParent:null}function Wr(e){for(var t=tt(e),i=fC(e);i&&TG(i)&&"static"===Mn(i).position;)i=fC(i);return i&&("html"===en(i)||"body"===en(i)&&"static"===Mn(i).position)?t:i||function OG(e){var t=/firefox/i.test(D5());if(/Trident/i.test(D5())&&vt(e)&&"fixed"===Mn(e).position)return null;var r=Xo(e);for(V5(r)&&(r=r.host);vt(r)&&["html","body"].indexOf(en(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 dC(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&V5(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function L5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hC(e,t,i){return t===sC?L5(function AG(e,t){var i=tt(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=lC();(l||!l&&"fixed"===t)&&(o=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:o+S5(e),y:c}}(e,i)):V3(t)?function RG(e,t){var i=ri(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):L5(function IG(e){var t,i=Zn(e),n=z5(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=D3(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=D3(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+S5(e),c=-n.scrollTop;return"rtl"===Mn(r||i).direction&&(o+=D3(i.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:o,y:c}}(Zn(e)))}function ai(e){return e.split("-")[1]}function N5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pC(e){var c,t=e.reference,i=e.element,n=e.placement,r=n?Xt(n):null,a=n?ai(n):null,s=t.x+t.width/2-i.width/2,o=t.y+t.height/2-i.height/2;switch(r){case X2:c={x:s,y:t.y-i.height};break;case Nt:c={x:s,y:t.y+t.height};break;case Et:c={x:t.x+t.width,y:o};break;case et:c={x:t.x-i.width,y:o};break;default:c={x:t.x,y:t.y}}var l=r?N5(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case ni:c[l]=c[l]-(t[u]/2-i[u]/2);break;case jr:c[l]=c[l]+(t[u]/2-i[u]/2)}}return c}function gC(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vC(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}function E5(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?sC:l,d=t.elementContext,p=void 0===d?Gr:d,m=t.altBoundary,H=void 0!==m&&m,V=t.padding,S=void 0===V?0:V,N=gC("number"!=typeof S?S:vC(S,Ur)),F=e.rects.popper,B=e.elements[H?p===Gr?"reference":Gr:p],j=function PG(e,t,i,n){var r="clippingParents"===t?function kG(e){var t=$r(Xo(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0&&vt(e)?Wr(e):e;return V3(n)?t.filter(function(r){return V3(r)&&dC(r,n)&&"body"!==en(r)}):[]}(e):[].concat(t),a=[].concat(r,[i]),o=a.reduce(function(c,l){var u=hC(e,l,n);return c.top=D3(u.top,c.top),c.right=Jo(u.right,c.right),c.bottom=Jo(u.bottom,c.bottom),c.left=D3(u.left,c.left),c},hC(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}(V3(B)?B:B.contextElement||Zn(e.elements.popper),c,u,s),ne=ri(e.elements.reference),ge=pC({reference:ne,element:F,strategy:"absolute",placement:r}),be=L5(Object.assign({},F,ge)),Re=p===Gr?be:ne,M1={top:j.top-Re.top+N.top,bottom:Re.bottom-j.bottom+N.bottom,left:j.left-Re.left+N.left,right:Re.right-j.right+N.right},e2=e.modifiersData.offset;if(p===Gr&&e2){var Ot=e2[r];Object.keys(M1).forEach(function(L2){var U3=[Et,Nt].indexOf(L2)>=0?1:-1,j3=[X2,Nt].indexOf(L2)>=0?"y":"x";M1[L2]+=Ot[j3]*U3})}return M1}const jG={name:"flip",enabled:!0,phase:"main",fn:function UG(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,V=i.allowedAutoPlacements,S=t.options.placement,N=Xt(S),F=c||(N!==S&&H?function BG(e){if(Xt(e)===H5)return[];var t=Qo(e);return[aC(e),t,aC(t)]}(S):[Qo(S)]),B=[S].concat(F).reduce(function(Hi,i3){return Hi.concat(Xt(i3)===H5?function FG(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?cC:c,u=ai(t.placement),d=u?o?oC:oC.filter(function(H){return ai(H)===u}):Ur,p=d.filter(function(H){return l.indexOf(H)>=0});0===p.length&&(p=d);var m=p.reduce(function(H,V){return H[V]=E5(e,{placement:V,boundary:r,rootBoundary:a,padding:s})[Xt(V)],H},{});return Object.keys(m).sort(function(H,V){return m[H]-m[V]})}(t,{placement:i3,boundary:u,rootBoundary:d,padding:l,flipVariations:H,allowedAutoPlacements:V}):i3)},[]),j=t.rects.reference,ne=t.rects.popper,ge=new Map,be=!0,Re=B[0],M1=0;M1<B.length;M1++){var e2=B[M1],Ot=Xt(e2),L2=ai(e2)===ni,U3=[X2,Nt].indexOf(Ot)>=0,j3=U3?"width":"height",it=E5(t,{placement:e2,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),Rt=U3?L2?Et:et:L2?Nt:X2;j[j3]>ne[j3]&&(Rt=Qo(Rt));var v6=Qo(Rt),G3=[];if(a&&G3.push(it[Ot]<=0),o&&G3.push(it[Rt]<=0,it[v6]<=0),G3.every(function(Hi){return Hi})){Re=e2,be=!1;break}ge.set(e2,G3)}if(be)for(var Wu=function(i3){var Ra=B.find(function(y6){var $3=ge.get(y6);if($3)return $3.slice(0,i3).every(function(qu){return qu})});if(Ra)return Re=Ra,"break"},Oa=H?3:1;Oa>0&&"break"!==Wu(Oa);Oa--);t.placement!==Re&&(t.modifiersData[n]._skip=!0,t.placement=Re,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qr(e,t,i){return D3(e,Jo(t,i))}function A5(e){var t=ri(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 qG={name:"preventOverflow",enabled:!0,phase:"main",fn:function WG(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,V=void 0===H?0:H,S=E5(t,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),N=Xt(t.placement),z=ai(t.placement),F=!z,B=N5(N),j=function GG(e){return"x"===e?"y":"x"}(B),ne=t.modifiersData.popperOffsets,ge=t.rects.reference,be=t.rects.popper,Re="function"==typeof V?V(Object.assign({},t.rects,{placement:t.placement})):V,M1="number"==typeof Re?{mainAxis:Re,altAxis:Re}:Object.assign({mainAxis:0,altAxis:0},Re),e2=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ot={x:0,y:0};if(ne){if(a){var L2,U3="y"===B?X2:et,j3="y"===B?Nt:Et,it="y"===B?"height":"width",Rt=ne[B],v6=Rt+S[U3],G3=Rt-S[j3],_6=m?-be[it]/2:0,Wu=z===ni?ge[it]:be[it],Oa=z===ni?-be[it]:-ge[it],C6=t.elements.arrow,Hi=m&&C6?A5(C6):{width:0,height:0},i3=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ra=i3[U3],y6=i3[j3],$3=qr(0,ge[it],Hi[it]),qu=F?ge[it]/2-_6-$3-Ra-M1.mainAxis:Wu-$3-Ra-M1.mainAxis,n_e=F?-ge[it]/2+_6+$3+y6+M1.mainAxis:Oa+$3+y6+M1.mainAxis,Yu=t.elements.arrow&&Wr(t.elements.arrow),i_e=Yu?"y"===B?Yu.clientTop||0:Yu.clientLeft||0:0,dL=null!=(L2=e2?.[B])?L2:0,a_e=Rt+n_e-dL,hL=qr(m?Jo(v6,Rt+qu-dL-i_e):v6,Rt,m?D3(G3,a_e):G3);ne[B]=hL,Ot[B]=hL-Rt}if(o){var pL,W3=ne[j],M6="y"===j?"height":"width",mL=W3+S["x"===B?X2:et],gL=W3-S["x"===B?Nt:Et],Ku=-1!==[X2,et].indexOf(N),vL=null!=(pL=e2?.[j])?pL:0,_L=Ku?mL:W3-ge[M6]-be[M6]-vL+M1.altAxis,CL=Ku?W3+ge[M6]+be[M6]-vL-M1.altAxis:gL,yL=m&&Ku?function $G(e,t,i){var n=qr(e,t,i);return n>i?i:n}(_L,W3,CL):qr(m?_L:mL,W3,m?CL:gL);ne[j]=yL,Ot[j]=yL-W3}t.modifiersData[n]=Ot}},requiresIfExists:["offset"]},QG={name:"arrow",enabled:!0,phase:"main",fn:function KG(e){var t,i=e.state,n=e.name,r=e.options,a=i.elements.arrow,s=i.modifiersData.popperOffsets,o=Xt(i.placement),c=N5(o),u=[et,Et].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(t,i){return gC("number"!=typeof(t="function"==typeof t?t(Object.assign({},i.rects,{placement:i.placement})):t)?t:vC(t,Ur))}(r.padding,i),p=A5(a),m="y"===c?X2:et,H="y"===c?Nt:Et,V=i.rects.reference[u]+i.rects.reference[c]-s[c]-i.rects.popper[u],S=s[c]-i.rects.reference[c],N=Wr(a),z=N?"y"===c?N.clientHeight||0:N.clientWidth||0:0,ne=z/2-p[u]/2+(V/2-S/2),ge=qr(d[m],ne,z-p[u]-d[H]);i.modifiersData[n]=((t={})[c]=ge,t.centerOffset=ge-ne,t)}},effect:function ZG(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))||dC(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function t$(e,t,i){void 0===i&&(i=!1);var n=vt(t),r=vt(t)&&function e$(e){var t=e.getBoundingClientRect(),i=ii(t.width)/e.offsetWidth||1,n=ii(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=Zn(t),s=ri(e,r,i),o={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==en(t)||x5(a))&&(o=function XG(e){return e!==tt(e)&&vt(e)?function JG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):z5(e)}(t)),vt(t)?((c=ri(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=S5(a))),{x:s.left+o.scrollLeft-c.x,y:s.top+o.scrollTop-c.y,width:s.width,height:s.height}}function n$(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 r$(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}var _C={placement:"bottom",modifiers:[],strategy:"absolute"};function CC(){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 s$(e){void 0===e&&(e={});var i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,a=void 0===r?_C:r;return function(o,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_C,a),modifiersData:{},elements:{reference:o,popper:c},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(N){var z="function"==typeof N?N(u.options):N;V(),u.options=Object.assign({},a,u.options,z),u.scrollParents={reference:V3(o)?$r(o):o.contextElement?$r(o.contextElement):[],popper:$r(c)};var F=function i$(e){var t=n$(e);return EG.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}(function a$(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=F.filter(function(B){return B.enabled}),function H(){u.orderedModifiers.forEach(function(S){var z=S.options,B=S.effect;if("function"==typeof B){var j=B({state:u,name:S.name,instance:m,options:void 0===z?{}:z});d.push(j||function(){})}})}(),m.update()},forceUpdate:function(){if(!p){var N=u.elements,z=N.reference,F=N.popper;if(CC(z,F)){u.rects={reference:t$(z,Wr(F),"fixed"===u.options.strategy),popper:A5(F)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M1){return u.modifiersData[M1.name]=Object.assign({},M1.data)});for(var B=0;B<u.orderedModifiers.length;B++)if(!0!==u.reset){var j=u.orderedModifiers[B],ne=j.fn,ge=j.options;"function"==typeof ne&&(u=ne({state:u,options:void 0===ge?{}:ge,name:j.name,instance:m})||u)}else u.reset=!1,B=-1}}},update:r$(function(){return new Promise(function(S){m.forceUpdate(),S(u)})}),destroy:function(){V(),p=!0}};if(!CC(o,c))return m;function V(){d.forEach(function(S){return S()}),d=[]}return m.setOptions(l).then(function(S){!p&&l.onFirstUpdate&&l.onFirstUpdate(S)}),m}}var ec={passive:!0},f$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yC(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,V=void 0===H?0:H,S="function"==typeof u?u({x:m,y:V}):{x:m,y:V};m=S.x,V=S.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),F=et,B=X2,j=window;if(l){var ne=Wr(i),ge="clientHeight",be="clientWidth";ne===tt(i)&&"static"!==Mn(ne=Zn(i)).position&&"absolute"===o&&(ge="scrollHeight",be="scrollWidth"),(r===X2||(r===et||r===Et)&&a===jr)&&(B=Nt,V-=(d&&ne===j&&j.visualViewport?j.visualViewport.height:ne[ge])-n.height,V*=c?1:-1),r!==et&&(r!==X2&&r!==Nt||a!==jr)||(F=Et,m-=(d&&ne===j&&j.visualViewport?j.visualViewport.width:ne[be])-n.width,m*=c?1:-1)}var L2,e2=Object.assign({position:o},l&&f$),Ot=!0===u?function d$(e,t){var n=e.y,r=t.devicePixelRatio||1;return{x:ii(e.x*r)/r||0,y:ii(n*r)/r||0}}({x:m,y:V},tt(i)):{x:m,y:V};return m=Ot.x,V=Ot.y,Object.assign({},e2,c?((L2={})[B]=z?"0":"",L2[F]=N?"0":"",L2.transform=(j.devicePixelRatio||1)<=1?"translate("+m+"px, "+V+"px)":"translate3d("+m+"px, "+V+"px, 0)",L2):((t={})[B]=z?V+"px":"",t[F]=N?m+"px":"",t.transform="",t))}var _$=s$({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function o$(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=tt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",i.update,ec)}),o&&c.addEventListener("resize",i.update,ec),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",i.update,ec)}),o&&c.removeEventListener("resize",i.update,ec)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function l$(e){var t=e.state;t.modifiersData[e.name]=pC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function h$(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:Xt(t.placement),variation:ai(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,yC(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,yC(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 m$(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];!vt(a)||!en(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 g$(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},{});!vt(r)||!en(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const M$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function y$(e){var t=e.state,n=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,s=cC.reduce(function(u,d){return u[d]=function C$(e,t,i){var n=Xt(e),r=[et,X2].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,[et,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 b$(e,t){}function w$(e,t){if(1&e&&(g(0,"button",3),M(1),T(2,b$,0,0,"ng-template",4),_()),2&e){const i=t.$implicit;b("ngbPanelToggle",i),C(1),Z2(" ",i.title," "),C(1),b("ngTemplateOutlet",null==i.titleTpl?null:i.titleTpl.templateRef)}}function H$(e,t){}function V$(e,t){}function D$(e,t){if(1&e){const i=A1();g(0,"div",8),O("ngbRef",function(r){return Y(i),K(E().$implicit.panelDiv=r)}),g(1,"div",9),T(2,V$,0,0,"ng-template",4),_()()}if(2&e){const i=E().$implicit;Rl("id",i.id),$("aria-labelledby",i.id+"-header"),C(2),b("ngTemplateOutlet",(null==i.contentTpl?null:i.contentTpl.templateRef)||null)}}const z$=function(e,t){return{$implicit:e,opened:t}};function S$(e,t){if(1&e&&(g(0,"div")(1,"div",5),T(2,H$,0,0,"ng-template",6),_(),T(3,D$,3,3,"div",7),_()),2&e){const i=t.$implicit,n=E(),r=R2(1);gn("accordion-item "+(i.cardClass||"")),C(1),gn("accordion-header "+(i.type?"bg-"+i.type:n.type?"bg-"+n.type:"")),G4("id","",i.id,"-header"),C(1),b("ngTemplateOutlet",(null==i.headerTpl?null:i.headerTpl.templateRef)||r)("ngTemplateOutletContext",Dr(8,z$,i,i.isOpen)),C(1),b("ngIf",!n.destroyOnHide||i.isOpen||i.transitionRunning)}}function x$(e,t){if(1&e){const i=A1();g(0,"button",1),O("click",function(){return Y(i),K(E().close())}),_()}}const tc=["*"],aW=["dialog"];function TW(e,t){1&e&&M(0),2&e&&ht(E(2).title)}function OW(e,t){}function RW(e,t){if(1&e&&(g(0,"h3",3),T(1,TW,1,1,"ng-template",null,4,D2),T(3,OW,0,0,"ng-template",5),_()),2&e){const i=R2(2),n=E();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 si(e){return(e||document.body).getBoundingClientRect()}const DC={animation:!0,transitionTimerDelayMs:5},JW=()=>{},{transitionTimerDelayMs:XW}=DC,Yr=new Map,x2=(e,t,i,n)=>{let r=n.context||{};const a=Yr.get(t);if(a)switch(n.runningTransition){case"continue":return st;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),Yr.delete(t)}const s=i(t,n.animation,r)||JW;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(()=>s()),re(void 0).pipe(function ZW(e){return t=>new $e(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 ue,c=new ue,l=o.pipe(function gG(...e){return t=>Br(t,re(...e))}(!0));Yr.set(t,{transition$:o,complete:()=>{c.next(),c.complete()},context:r});const u=function QW(e){const{transitionDelay:t,transitionDuration:i}=window.getComputedStyle(e);return 1e3*(parseFloat(t)+parseFloat(i))}(t);return e.runOutsideAngular(()=>{const d=J1(t,"transitionend").pipe(O1(l),z1(({target:m})=>m===t));eC(J_(u+XW).pipe(O1(l)),d,c).pipe(O1(l)).subscribe(()=>{Yr.delete(t),e.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()},T5=(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 eq(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"),si(e),s.add("collapsing")),e.style[a]="show"===n?r:"0px",()=>{o(),s.remove("collapsing"),e.style[a]=""};o()};let S3=(()=>{var e;class t{constructor(){this.animation=DC.animation}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({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)(W(S3))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),tq=0,nc=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(s1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0}),t})(),O5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(s1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0}),t})(),R5=(()=>{var e;class t{constructor(n){this.templateRef=n}}return(e=t).\u0275fac=function(n){return new(n||e)(w(s1))},e.\u0275dir=U({type:e,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0}),t})(),ic=(()=>{var e;class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+tq++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new X,this.hidden=new X}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=U({type:e,selectors:[["ngb-panel"]],contentQueries:function(n,r,a){if(1&n&&(_1(a,O5,4),_1(a,nc,4),_1(a,R5,4)),2&n){let s;Ue(s=je())&&(r.titleTpls=s),Ue(s=je())&&(r.headerTpls=s),Ue(s=je())&&(r.contentTpls=s)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0}),t})(),nq=(()=>{var e;class t{constructor(n){this._El=n,this.ngbRef=new X}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Le))},e.\u0275dir=U({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0}),t})(),k5=(()=>{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(pe(()=>P5)),w(ic,9))},e.\u0275dir=U({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(n,r){1&n&&O("click",function(){return r.accordion.toggle(r.panel.id)}),2&n&&(w2("disabled",r.panel.disabled),$("aria-expanded",r.panel.isOpen)("aria-controls",r.panel.id),ze("collapsed",!r.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0}),t})(),P5=(()=>{var e;class t{constructor(n,r,a){this._ngZone=r,this._changeDetector=a,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new X,this.shown=new X,this.hidden=new X,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(X1(1)).subscribe(()=>{this.panels.forEach(n=>{const r=n.panelDiv;r?n.initClassDone||(n.initClassDone=!0,x2(this._ngZone,r,T5,{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&&x2(this._ngZone,r.panelDiv,T5,{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(ye),w(Q2))},e.\u0275cmp=se({type:e,selectors:[["ngb-accordion"]],contentQueries:function(n,r,a){if(1&n&&_1(a,ic,4),2&n){let s;Ue(s=je())&&(r.panels=s)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(n,r){2&n&&$("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:[V2],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&&(T(0,w$,3,3,"ng-template",0,1,D2),T(2,S$,4,11,"ng-template",2)),2&n&&(C(2),b("ngForOf",r.panels))},dependencies:[Jt,y3,k5,nq,nc,T1],encapsulation:2}),t})(),NC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();const cq=({classList:e})=>{e.remove("show")};let lq=(()=>{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)(W(S3))},e.\u0275prov=G({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 X,this.dismissible=n.dismissible,this.type=n.type,this.animation=n.animation}close(){const n=x2(this._zone,this._element.nativeElement,cq,{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(lq),w(o2),w(Le),w(ye))},e.\u0275cmp=se({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:[g1,V2],ngContentSelectors:tc,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&&(U4(),j4(0),T(1,x$,1,0,"button",0)),2&n&&(C(1),b("ngIf",r.dismissible))},dependencies:[T1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),t})(),AC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),OC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),RC=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();var Ke=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}(Ke||{});const lc=(e,t)=>!!t&&t.some(i=>i.contains(e)),UC=(e,t)=>!t||null!=function KW(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}(e,t),Lq=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 uc(e,t,i,n,r,a,s,o){i&&e.runOutsideAngular((e=>Lq?()=>setTimeout(()=>e(),100):e)(()=>{const l=J1(t,"keydown").pipe(O1(r),z1(p=>p.which===Ke.Escape),W1(p=>p.preventDefault())),u=J1(t,"mousedown").pipe(we(p=>{const m=p.target;return 2!==p.button&&!lc(m,s)&&("inside"===i?lc(m,a)&&UC(m,o):"outside"===i?!lc(m,a):UC(m,o)||!lc(m,a))}),O1(r)),d=J1(t,"mouseup").pipe(w5(u),z1(([p,m])=>m),iC(0),O1(r));eC([l.pipe(we(p=>0)),d.pipe(we(p=>1))]).subscribe(p=>e.run(()=>n(p)))}))}const jC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function GC(e){const t=Array.from(e.querySelectorAll(jC)).filter(i=>-1!==i.tabIndex);return[t[0],t[t.length-1]]}let Eq=(()=>{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)(W(C1))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Aq=/\s+/,Iq=/ +/gi,Tq={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"]},Rq=/^left/,kq=/^right/,Pq=/^start/,Fq=/^end/;function WC({placement:e,baseClass:t},i){let n=Array.isArray(e)?e:e.split(Aq),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 Oq(e,t){const[i,n]=Tq[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 Bq(e,t){let[i,n]=t.split("-");const r=i.replace(Rq,"start").replace(kq,"end");let a=[r];if(n){let s=n;("left"===i||"right"===i)&&(s=s.replace(Pq,"top").replace(Fq,"bottom")),a.push(`${r}-${s}`)}return e&&(a=a.map(s=>`${e}-${s}`)),a.join(" ")}(t,p)}`,m=m.trim().replace(Iq," "),d.className=m}},jG,qG,QG,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function qC(e){return e}function fc(){const e=Q(Eq);let t=null;return{createPopper(i){if(!t){let r=(i.updatePopperOptions||qC)(WC(i,e));t=_$(i.hostElement,i.targetElement,r)}},update(){t&&t.update()},setOptions(i){if(t){let r=(i.updatePopperOptions||qC)(WC(i,e));t.setOptions(r)}},destroy(){t&&(t.destroy(),t=null)}}}new Date(1882,10,12),new Date(2174,10,25);let ty=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),ry=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();class A3{constructor(t,i,n){this.nodes=t,this.viewRef=i,this.componentRef=n}}class ay{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(X1(1),P1(()=>x2(this._ngZone,r,({classList:s})=>s.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(t=!1){return this._windowRef?x2(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:t,runningTransition:"stop"}).pipe(W1(()=>{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)})):re(void 0)}_getContentRef(t,i){if(t){if(t instanceof s1){const n=t.createEmbeddedView(i);return this._applicationRef.attachView(n),new A3([n.rootNodes],n)}return new A3([[this._renderer.createText(`${t}`)]])}return new A3([])}}let eY=(()=>{var e;class t{constructor(n,r){this._el=n,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(X1(1)).subscribe(()=>{x2(this._zone,this._el.nativeElement,(n,r)=>{r&&si(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return x2(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(Le),w(ye))},e.\u0275cmp=se({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:[V2],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})();class sy{update(t){}close(t){}dismiss(t){}}const tY=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],nY=["animation","backdropClass"];class iY{_applyWindowOptions(t,i){tY.forEach(n=>{z3(i[n])&&(t[n]=i[n])})}_applyBackdropOptions(t,i){nY.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(O1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(O1(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 ue,this._dismissed=new ue,this._hidden=new ue,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 bC(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():re(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}}),b5(t,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Jr=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(Jr||{});let rY=(()=>{var e;class t{constructor(n,r,a){this._document=n,this._elRef=r,this._zone=a,this._closed$=new ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new X,this.shown=new ue,this.hidden=new ue}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(X1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=b5(x2(this._zone,n,()=>n.classList.remove("show"),r),x2(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"};b5(x2(this._zone,this._elRef.nativeElement,(s,o)=>{o&&si(s),s.classList.add("show")},n),x2(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(()=>{J1(n,"keydown").pipe(O1(this._closed$),z1(a=>a.which===Ke.Escape)).subscribe(a=>{this.keyboard?requestAnimationFrame(()=>{a.defaultPrevented||this._zone.run(()=>this.dismiss(Jr.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;J1(this._dialogEl.nativeElement,"mousedown").pipe(O1(this._closed$),W1(()=>r=!1),Mt(()=>J1(n,"mouseup").pipe(O1(this._closed$),X1(1))),z1(({target:a})=>n===a)).subscribe(()=>{r=!0}),J1(n,"click").pipe(O1(this._closed$)).subscribe(({target:a})=>{n===a&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(Jr.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=GC(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&&x2(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(C1),w(Le),w(ye))},e.\u0275cmp=se({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,r){if(1&n&&function _3(e,t,i){const n=xe();n.firstCreatePass&&(eg(n,new Qm(e,t,i),-1),2==(2&t)&&(n.staticViewQueries=!0)),Xm(n,R(),t)}(aW,7),2&n){let a;Ue(a=je())&&(r._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,r){2&n&&($("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:[V2],ngContentSelectors:tc,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(n,r){1&n&&(U4(),g(0,"div",0,1)(2,"div",2),j4(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})(),aY=(()=>{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)(W(C1))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),sY=(()=>{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 ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new X,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const u=this._windowCmpts[this._windowCmpts.length-1];((e,t,i,n=!1)=>{e.runOutsideAngular(()=>{const r=J1(t,"focusin").pipe(O1(i),we(a=>a.target));J1(t,"keydown").pipe(O1(i),z1(a=>a.which===Ke.Tab),w5(r)).subscribe(([a,s])=>{const[o,c]=GC(t);(s===o||s===t)&&a.shiftKey&&(c.focus(),a.preventDefault()),s===c&&!a.shiftKey&&(o.focus(),a.preventDefault())}),n&&J1(t,"click").pipe(O1(i),w5(r),we(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 sy,l=(n=a.injector||n).get(O2,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 iY(p,u,d,a.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(p),m.hidden.pipe(X1(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=D8(eY,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let a=D8(rY,{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 s1?this._createFromTemplateRef(a,s):bn(a)?this._createFromString(a):this._createFromComponent(n,r,a,s,o):new A3([])}_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 A3([s.rootNodes],s)}_createFromString(n){const r=this._document.createTextNode(`${n}`);return new A3([[r]])}_createFromComponent(n,r,a,s,o){const l=D8(a,{environmentInjector:r,elementInjector:F1.create({providers:[{provide:sy,useValue:s}],parent:n})}),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new A3([[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)(W(Qt),W(F1),W(O2),W(C1),W(aY),W(cl),W(ye))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),oY=(()=>{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)(W(S3))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),oy=(()=>{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)(W(F1),W(sY),W(oY))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),cy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({providers:[oy]}),t})(),fy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),Cy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();class gY{constructor(t,i){this.open=t,this.close=i,i||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const vY={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},yy=e=>e>0?iC(e):t=>t;function My(e,t,i,n,r,a,s=0,o=0){const c=function _Y(e,t=vY){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 gY(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 CY(e,t,i,n){return new $e(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 yY(e,t,i){return n=>{let r=null;const a=n.pipe(we(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)}),A6());return E6(a.pipe(z1(c=>c.open),yy(e)),a.pipe(z1(c=>!c.open),yy(t))).pipe(z1(c=>c===r&&(r=null,c.open!==i())),we(c=>c.open))}}(s,o,n)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let MY=(()=>{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)(W(S3))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),bY=0,wY=(()=>{var e;class t{isTitleTemplate(){return this.title instanceof s1}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(w2("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:[V2],ngContentSelectors:tc,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&&(U4(),k(0,"div",0),T(1,RW,4,2,"h3",1),g(2,"div",2),j4(3),_()),2&n&&(C(1),b("ngIf",r.title))},dependencies:[y3,T1],encapsulation:2,changeDetection:0}),t})(),HY=(()=>{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 X,this.hidden=new X,this._ngbPopoverWindowId="ngb-popover-"+bY++,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=fc(),this._popupService=new ay(wY,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 W5(e){return t=>(t.modifiers.push(M$,{name:"offset",options:{offset:()=>e}}),t)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),uc(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=My(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(Le),w(o2),w(F1),w(P2),w(MY),w(ye),w(C1),w(Q2),w(Qt))},e.\u0275dir=U({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:[g1]}),t})(),by=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),wy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),Hy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),Vy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),Dy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),zy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),xY=(()=>{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)(W(S3))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),LY=0,NY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,r){2&n&&(w2("id",r.id),gn("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),ze("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[V2],ngContentSelectors:tc,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,r){1&n&&(U4(),k(0,"div",0),g(1,"div",1),j4(2),_())},encapsulation:2,changeDetection:0}),t})(),EY=(()=>{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 X,this.hidden=new X,this._ngbTooltipWindowId="ngb-tooltip-"+LY++,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 ay(NY,a,s,r,this._ngZone,d),this._positioning=fc()}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())})}),uc(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=My(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(Le),w(o2),w(F1),w(P2),w(xY),w(ye),w(C1),w(Q2),w(Qt))},e.\u0275dir=U({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:[g1]}),t})(),Sy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();new ee("live announcer delay",{providedIn:"root",factory:function AY(){return 100}});let xy=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})(),Ly=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();const TY=[NC,AC,OC,RC,ty,ry,cy,fy,Ly,Cy,by,wy,Hy,Vy,Dy,zy,Sy,xy];let OY=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({imports:[TY,NC,AC,OC,RC,ty,ry,cy,fy,Ly,Cy,by,wy,Hy,Vy,Dy,zy,Sy,xy]}),t})();function Ny(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 J(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(i),!0).forEach(function(n){Y1(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ny(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function _c(e){return(_c="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 Q5(e,t){return function BY(e){if(Array.isArray(e))return e}(e)||function jY(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)||Ay(e,t)||function $Y(){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 ta(e){return function FY(e){if(Array.isArray(e))return J5(e)}(e)||function UY(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ay(e)||function GY(){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 Ay(e,t){if(e){if("string"==typeof e)return J5(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 J5(e,t)}}function J5(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 Iy=function(){},X5={},Ty={},Oy=null,Ry={mark:Iy,measure:Iy};try{typeof window<"u"&&(X5=window),typeof document<"u"&&(Ty=document),typeof MutationObserver<"u"&&(Oy=MutationObserver),typeof performance<"u"&&(Ry=performance)}catch{}var Mc,bc,wc,Hc,Vc,ky=(X5.navigator||{}).userAgent,Py=void 0===ky?"":ky,Qn=X5,o1=Ty,Fy=Oy,yc=Ry,wn=!!o1.documentElement&&!!o1.head&&"function"==typeof o1.addEventListener&&"function"==typeof o1.createElement,By=~Py.indexOf("MSIE")||~Py.indexOf("Trident/"),Hn="___FONT_AWESOME___",Uy="fa",jy="svg-inline--fa",I3="data-fa-i2svg",t7="data-fa-pseudo-element",qY="data-fa-pseudo-element-pending",n7="data-prefix",i7="data-icon",Gy="fontawesome-i2svg",YY="async",KY=["HTML","HEAD","STYLE","SCRIPT"],$y=function(){try{return!0}catch{return!1}}(),c1="classic",S1="sharp",r7=[c1,S1];function na(e){return new Proxy(e,{get:function(i,n){return n in i?i[n]:i[c1]}})}var ia=na((Y1(Mc={},c1,{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(Mc,S1,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Mc)),ra=na((Y1(bc={},c1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Y1(bc,S1,{solid:"fass",regular:"fasr",light:"fasl"}),bc)),aa=na((Y1(wc={},c1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Y1(wc,S1,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),wc)),ZY=na((Y1(Hc={},c1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Y1(Hc,S1,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Hc)),QY=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Wy="fa-layers-text",JY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,XY=na((Y1(Vc={},c1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Y1(Vc,S1,{900:"fass",400:"fasr",300:"fasl"}),Vc)),qy=[1,2,3,4,5,6,7,8,9,10],eK=qy.concat([11,12,13,14,15,16,17,18,19,20]),tK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],T3={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},sa=new Set;Object.keys(ra[c1]).map(sa.add.bind(sa)),Object.keys(ra[S1]).map(sa.add.bind(sa));var nK=[].concat(r7,ta(sa),["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",T3.GROUP,T3.SWAP_OPACITY,T3.PRIMARY,T3.SECONDARY]).concat(qy.map(function(e){return"".concat(e,"x")})).concat(eK.map(function(e){return"w-".concat(e)})),oa=Qn.FontAwesomeConfig||{};o1&&"function"==typeof o1.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=Q5(e,2),n=t[1],r=function rK(e){return""===e||"false"!==e&&("true"===e||e)}(function iK(e){var t=o1.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=r&&(oa[n]=r)});var Yy={styleDefault:"solid",familyDefault:"classic",cssPrefix:Uy,replacementClass:jy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};oa.familyPrefix&&(oa.cssPrefix=oa.familyPrefix);var ui=J(J({},Yy),oa);ui.autoReplaceSvg||(ui.observeMutations=!1);var te={};Object.keys(Yy).forEach(function(e){Object.defineProperty(te,e,{enumerable:!0,set:function(i){ui[e]=i,ca.forEach(function(n){return n(te)})},get:function(){return ui[e]}})}),Object.defineProperty(te,"familyPrefix",{enumerable:!0,set:function(t){ui.cssPrefix=t,ca.forEach(function(i){return i(te)})},get:function(){return ui.cssPrefix}}),Qn.FontAwesomeConfig=te;var ca=[],tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},cK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function la(){for(var e=12,t="";e-- >0;)t+=cK[62*Math.random()|0];return t}function fi(e){for(var t=[],i=(e||[]).length>>>0;i--;)t[i]=e[i];return t}function a7(e){return e.classList?fi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ky(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Dc(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,": ").concat(e[i].trim(),";")},"")}function s7(e){return e.size!==tn.size||e.x!==tn.x||e.y!==tn.y||e.rotate!==tn.rotate||e.flipX||e.flipY}var dK=':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 Zy(){var e=Uy,t=jy,i=te.cssPrefix,n=te.replacementClass,r=dK;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 Qy=!1;function o7(){te.autoAddCss&&!Qy&&(function oK(e){if(e&&wn){var t=o1.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var i=o1.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)}o1.head.insertBefore(t,n)}}(Zy()),Qy=!0)}var hK={mixout:function(){return{dom:{css:Zy,insertCss:o7}}},hooks:function(){return{beforeDOMElementCreation:function(){o7()},beforeI2svg:function(){o7()}}}},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 It=Vn[Hn],Jy=[],zc=!1;function ua(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?Ky(e):"<".concat(t," ").concat(function lK(e){return Object.keys(e||{}).reduce(function(t,i){return t+"".concat(i,'="').concat(Ky(e[i]),'" ')},"").trim()}(n),">").concat(a.map(ua).join(""),"</").concat(t,">")}function Xy(e,t,i){if(e&&e[t]&&e[t][i])return{prefix:t,iconName:i,icon:e[t][i]}}wn&&((zc=(o1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(o1.readyState))||o1.addEventListener("DOMContentLoaded",function e(){o1.removeEventListener("DOMContentLoaded",e),zc=1,Jy.map(function(t){return t()})}));var c7=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 l7(e){var t=function vK(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 eM(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 u7(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=eM(t);"function"!=typeof It.hooks.addPack||r?It.styles[e]=J(J({},It.styles[e]||{}),a):It.hooks.addPack(e,eM(t)),"fas"===e&&u7("fa",t)}var Sc,xc,Lc,di=It.styles,CK=It.shims,yK=(Y1(Sc={},c1,Object.values(aa[c1])),Y1(Sc,S1,Object.values(aa[S1])),Sc),f7=null,tM={},nM={},iM={},rM={},aM={},MK=(Y1(xc={},c1,Object.keys(ia[c1])),Y1(xc,S1,Object.keys(ia[S1])),xc);var sM=function(){var t=function(a){return c7(di,function(s,o,c){return s[c]=c7(o,a,{}),s},{})};tM=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}),nM=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}),aM=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 di||te.autoFetchSvg,n=c7(CK,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:{}});iM=n.names,rM=n.unicodes,f7=Nc(te.styleDefault,{family:te.familyDefault})};function d7(e,t){return(tM[e]||{})[t]}function O3(e,t){return(aM[e]||{})[t]}function oM(e){return iM[e]||{prefix:null,iconName:null}}function Xn(){return f7}(function sK(e){ca.push(e)})(function(e){f7=Nc(e.styleDefault,{family:te.familyDefault})}),sM();var h7=function(){return{prefix:null,iconName:null,rest:[]}};function Nc(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===i?c1:i;return ra[n][e]||ra[n][ia[n][e]]||(e in It.styles?e:null)||null}var cM=(Y1(Lc={},c1,Object.keys(aa[c1])),Y1(Lc,S1,Object.keys(aa[S1])),Lc);function Ec(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,a=(Y1(t={},c1,"".concat(te.cssPrefix,"-").concat(c1)),Y1(t,S1,"".concat(te.cssPrefix,"-").concat(S1)),t),s=null,o=c1;(e.includes(a[c1])||e.some(function(l){return cM[c1].includes(l)}))&&(o=c1),(e.includes(a[S1])||e.some(function(l){return cM[S1].includes(l)}))&&(o=S1);var c=e.reduce(function(l,u){var d=function wK(e,t){var i=t.split("-"),n=i[0],r=i.slice(1).join("-");return n!==e||""===r||function bK(e){return~nK.indexOf(e)}(r)?null:r}(te.cssPrefix,u);if(di[u]?(u=yK[o].includes(u)?ZY[o][u]:u,s=u,l.prefix=u):MK[o].indexOf(u)>-1?(s=u,l.prefix=Nc(u,{family:o})):d?l.iconName=d:u!==te.replacementClass&&u!==a[c1]&&u!==a[S1]&&l.rest.push(u),!r&&l.prefix&&l.iconName){var p="fa"===s?oM(l.iconName):{},m=O3(l.prefix,l.iconName);p.prefix&&(s=null),l.iconName=p.iconName||m||l.iconName,l.prefix=p.prefix||l.prefix,"far"===l.prefix&&!di.far&&di.fas&&!te.autoFetchSvg&&(l.prefix="fas")}return l},h7());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&o===S1&&(di.fass||te.autoFetchSvg)&&(c.prefix="fass",c.iconName=O3(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===s)&&(c.prefix=Xn()||"fas"),c}var DK=function(){function e(){(function RY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function kY(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]=J(J({},i.definitions[o]||{}),s[o]),u7(o,s[o]);var c=aa[c1][o];c&&u7(c,s[o]),sM()})}},{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}(),lM=[],hi={},pi={},zK=Object.keys(pi);function p7(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(hi[e]||[]).forEach(function(s){t=s.apply(null,[t].concat(n))}),t}function R3(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(hi[e]||[]).forEach(function(a){a.apply(null,i)})}function Dn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return pi[e]?pi[e].apply(null,t):void 0}function m7(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,i=e.prefix||Xn();if(t)return t=O3(i,t)||t,Xy(uM.definitions,i,t)||Xy(It.styles,i,t)}var uM=new DK,LK={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wn?(R3("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===te.autoReplaceSvg&&(te.autoReplaceSvg=!0),te.observeMutations=!0,function mK(e){wn&&(zc?setTimeout(e,0):Jy.push(e))}(function(){EK({autoReplaceSvgRoot:i}),R3("watch",t)})}},nt={noAuto:function(){te.autoReplaceSvg=!1,te.observeMutations=!1,R3("noAuto")},config:te,dom:LK,parse:{icon:function(t){if(null===t)return null;if("object"===_c(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:O3(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=Nc(t[0]);return{prefix:n,iconName:O3(n,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(te.cssPrefix,"-"))>-1||t.match(QY))){var r=Ec(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||Xn(),iconName:O3(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var a=Xn();return{prefix:a,iconName:O3(a,t)||t}}}},library:uM,findIconDefinition:m7,toHtml:ua},EK=function(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,n=void 0===i?o1:i;(Object.keys(It.styles).length>0||te.autoFetchSvg)&&wn&&te.autoReplaceSvg&&nt.dom.i2svg({node:n})};function Ac(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return ua(n)})}}),Object.defineProperty(e,"node",{get:function(){if(wn){var n=o1.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function g7(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,V=H.width,S=H.height,N="fak"===r,z=[te.replacementClass,a?"".concat(te.cssPrefix,"-").concat(a):""].filter(function(Re){return-1===d.classes.indexOf(Re)}).filter(function(Re){return""!==Re||!!Re}).concat(d.classes).join(" "),F={children:[],attributes:J(J({},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(V," ").concat(S)})},B=N&&!~d.classes.indexOf("fa-fw")?{width:"".concat(V/S*16*.0625,"em")}:{};m&&(F.attributes[I3]=""),c&&(F.children.push({tag:"title",attributes:{id:F.attributes["aria-labelledby"]||"title-".concat(u||la())},children:[c]}),delete F.attributes.title);var j=J(J({},F),{},{prefix:r,iconName:a,main:i,mask:n,maskId:l,transform:s,symbol:o,styles:J(J({},B),d.styles)}),ne=n.found&&i.found?Dn("generateAbstractMask",j)||{children:[],attributes:{}}:Dn("generateAbstractIcon",j)||{children:[],attributes:{}},be=ne.attributes;return j.children=ne.children,j.attributes=be,o?function IK(e){var i=e.iconName,n=e.children,r=e.attributes,a=e.symbol,s=!0===a?"".concat(e.prefix,"-").concat(te.cssPrefix,"-").concat(i):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},r),{},{id:s}),children:n}]}]}(j):function AK(e){var t=e.children,i=e.main,n=e.mask,r=e.attributes,a=e.styles,s=e.transform;if(s7(s)&&i.found&&!n.found){var l={x:i.width/i.height/2,y:.5};r.style=Dc(J(J({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(j)}function fM(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=J(J(J({},s.attributes),a?{title:a}:{}),{},{class:s.classes.join(" ")});c&&(l[I3]="");var u=J({},s.styles);s7(r)&&(u.transform=function fK(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&&By?"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=Dc(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 v7=It.styles;function _7(e){var t=e[0],i=e[1],a=Q5(e.slice(4),1)[0];return{found:!0,width:t,height:i,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(te.cssPrefix,"-").concat(T3.GROUP)},children:[{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat(T3.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat(T3.PRIMARY),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var OK={found:!1,width:512,height:512};function C7(e,t){var i=t;return"fa"===t&&null!==te.styleDefault&&(t=Xn()),new Promise(function(n,r){if(Dn("missingIconAbstract"),"fa"===i){var s=oM(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&v7[t]&&v7[t][e])return n(_7(v7[t][e]));(function RK(e,t){!$y&&!te.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),n(J(J({},OK),{},{icon:te.showMissingIcons&&e&&Dn("missingIconAbstract")||{}}))})}var dM=function(){},y7=te.measurePerformance&&yc&&yc.mark&&yc.measure?yc:{mark:dM,measure:dM},fa='FA "6.4.2"',hM=function(t){y7.mark("".concat(fa," ").concat(t," ends")),y7.measure("".concat(fa," ").concat(t),"".concat(fa," ").concat(t," begins"),"".concat(fa," ").concat(t," ends"))},M7={begin:function(t){return y7.mark("".concat(fa," ").concat(t," begins")),function(){return hM(t)}},end:hM},Ic=function(){};function pM(e){return"string"==typeof(e.getAttribute?e.getAttribute(I3):null)}function UK(e){return o1.createElementNS("http://www.w3.org/2000/svg",e)}function jK(e){return o1.createElement(e)}function mM(e){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===i?"svg"===e.tag?UK:jK:i;if("string"==typeof e)return o1.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(mM(s,{ceFn:n}))}),r}var Tc={replace:function(t){var i=t[0];if(i.parentNode)if(t[1].forEach(function(r){i.parentNode.insertBefore(mM(r),i)}),null===i.getAttribute(I3)&&te.keepOriginalSource){var n=o1.createComment(function GK(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(~a7(i).indexOf(te.replacementClass))return Tc.replace(t);var r=new RegExp("".concat(te.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(o,c){return c===te.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 ua(o)}).join("\n");i.setAttribute(I3,""),i.innerHTML=s}};function gM(e){e()}function vM(e,t){var i="function"==typeof t?t:Ic;if(0===e.length)i();else{var n=gM;te.mutateApproach===YY&&(n=Qn.requestAnimationFrame||gM),n(function(){var r=function BK(){return!0===te.autoReplaceSvg?Tc.replace:Tc[te.autoReplaceSvg]||Tc.replace}(),a=M7.begin("mutate");e.map(r),a(),i()})}}var b7=!1;function _M(){b7=!0}function w7(){b7=!1}var Oc=null;function CM(e){if(Fy&&te.observeMutations){var t=e.treeCallback,i=void 0===t?Ic:t,n=e.nodeCallback,r=void 0===n?Ic:n,a=e.pseudoElementsCallback,s=void 0===a?Ic:a,o=e.observeMutationsRoot,c=void 0===o?o1:o;Oc=new Fy(function(l){if(!b7){var u=Xn();fi(l).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!pM(d.addedNodes[0])&&(te.searchPseudoElements&&s(d.target),i(d.target)),"attributes"===d.type&&d.target.parentNode&&te.searchPseudoElements&&s(d.target.parentNode),"attributes"===d.type&&pM(d.target)&&~tK.indexOf(d.attributeName))if("class"===d.attributeName&&function PK(e){var t=e.getAttribute?e.getAttribute(n7):null,i=e.getAttribute?e.getAttribute(i7):null;return t&&i}(d.target)){var p=Ec(a7(d.target)),H=p.iconName;d.target.setAttribute(n7,p.prefix||u),H&&d.target.setAttribute(i7,H)}else(function FK(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(te.replacementClass)})(d.target)&&r(d.target)})}}),wn&&Oc.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function yM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},i=function qK(e){var t=e.getAttribute("data-prefix"),i=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"",r=Ec(a7(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 HK(e,t){return(nM[e]||{})[t]}(r.prefix,e.innerText)||d7(r.prefix,l7(e.innerText))),!r.iconName&&te.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 YK(e){var t=fi(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 te.autoA11y&&(i?t["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(n||la()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=p7("parseNodeAttributes",{},e),c=t.styleParser?function WK(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 J({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:s}},o)}var ZK=It.styles;function MM(e){var t="nest"===te.autoReplaceSvg?yM(e,{styleParser:!1}):yM(e);return~t.extra.classes.indexOf(Wy)?Dn("generateLayersText",e,t):Dn("generateSvgReplacementMutation",e,t)}var e3=new Set;function bM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!wn)return Promise.resolve();var i=o1.documentElement.classList,n=function(d){return i.add("".concat(Gy,"-").concat(d))},r=function(d){return i.remove("".concat(Gy,"-").concat(d))},a=te.autoFetchSvg?e3:r7.map(function(u){return"fa-".concat(u)}).concat(Object.keys(ZK));a.includes("fa")||a.push("fa");var s=[".".concat(Wy,":not([").concat(I3,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(I3,"])")})).join(", ");if(0===s.length)return Promise.resolve();var o=[];try{o=fi(e.querySelectorAll(s))}catch{}if(!(o.length>0))return Promise.resolve();n("pending"),r("complete");var c=M7.begin("onTree"),l=o.reduce(function(u,d){try{var p=MM(d);p&&u.push(p)}catch(m){$y||"MissingIcon"===m.name&&console.error(m)}return u},[]);return new Promise(function(u,d){Promise.all(l).then(function(p){vM(p,function(){n("active"),n("complete"),r("pending"),"function"==typeof t&&t(),c(),u()})}).catch(function(p){c(),d(p)})})}function QK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;MM(e).then(function(i){i&&vM([i],t)})}r7.map(function(e){e3.add("fa-".concat(e))}),Object.keys(ia[c1]).map(e3.add.bind(e3)),Object.keys(ia[S1]).map(e3.add.bind(e3)),e3=ta(e3);var XK=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.transform,r=void 0===n?tn: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,V=i.classes,S=void 0===V?[]:V,N=i.attributes,z=void 0===N?{}:N,F=i.styles,B=void 0===F?{}:F;if(t){var j=t.prefix,ne=t.iconName,ge=t.icon;return Ac(J({type:"icon"},t),function(){return R3("beforeDOMElementCreation",{iconDefinition:t,params:i}),te.autoA11y&&(p?z["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(H||la()):(z["aria-hidden"]="true",z.focusable="false")),g7({icons:{main:_7(ge),mask:c?_7(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:ne,transform:J(J({},tn),r),symbol:s,title:p,maskId:u,titleId:H,extra:{attributes:z,styles:B,classes:S}})})}},eZ={mixout:function(){return{icon:(e=XK,function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:m7(t||{}),r=i.mask;return r&&(r=(r||{}).icon?r:m7(r||{})),e(n,J(J({},i),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(i){return i.treeCallback=bM,i.nodeCallback=QK,i}}},provides:function(t){t.i2svg=function(i){var n=i.node,a=i.callback;return bM(void 0===n?o1: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([C7(r,o),u.iconName?C7(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(V){var S=Q5(V,2);m([i,g7({icons:{main:S[0],mask:S[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=Dc(i.styles);return c.length>0&&(r.style=c),s7(s)&&(l=Dn("generateAbstractTransformGrouping",{main:a,transform:s,containerWidth:a.width,iconWidth:a.width})),n.push(l||a.icon),{children:n,attributes:r}}}},tZ={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 Ac({type:"layer"},function(){R3("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(te.cssPrefix,"-layers")].concat(ta(a)).join(" ")},children:s}]})}}}},nZ={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 Ac({type:"counter",content:i},function(){return R3("beforeDOMElementCreation",{content:i,params:n}),function TK(e){var t=e.content,i=e.title,n=e.extra,r=J(J(J({},n.attributes),i?{title:i}:{}),{},{class:n.classes.join(" ")}),a=Dc(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(te.cssPrefix,"-layers-counter")].concat(ta(o))}})})}}}},iZ={mixout:function(){return{text:function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.transform,a=void 0===r?tn: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 Ac({type:"text",content:i},function(){return R3("beforeDOMElementCreation",{content:i,params:n}),fM({content:i,transform:J(J({},tn),a),title:o,extra:{attributes:d,styles:m,classes:["".concat(te.cssPrefix,"-layers-text")].concat(ta(l))}})})}}},provides:function(t){t.generateLayersText=function(i,n){var r=n.title,a=n.transform,s=n.extra,o=null,c=null;if(By){var l=parseInt(getComputedStyle(i).fontSize,10),u=i.getBoundingClientRect();o=u.width/l,c=u.height/l}return te.autoA11y&&!r&&(s.attributes["aria-hidden"]="true"),Promise.resolve([i,fM({content:i.innerHTML,width:o,height:c,transform:a,title:r,extra:s,watchable:!0})])}}},rZ=new RegExp('"',"ug"),wM=[1105920,1112319];function HM(e,t){var i="".concat(qY).concat(t.replace(":","-"));return new Promise(function(n,r){if(null!==e.getAttribute(i))return n();var s=fi(e.children).filter(function(ge){return ge.getAttribute(t7)===t})[0],o=Qn.getComputedStyle(e,t),c=o.getPropertyValue("font-family").match(JY),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])?S1:c1,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?ra[p][c[2].toLowerCase()]:XY[p][l],H=function aZ(e){var t=e.replace(rZ,""),i=function _K(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>=wM[0]&&i<=wM[1],r=2===t.length&&t[0]===t[1];return{value:l7(r?t[0]:t),isSecondary:n||r}}(d),V=H.value,S=H.isSecondary,N=c[0].startsWith("FontAwesome"),z=d7(m,V),F=z;if(N){var B=function VK(e){var t=rM[e],i=d7("fas",e);return t||(i?{prefix:"fas",iconName:i}:null)||{prefix:null,iconName:null}}(V);B.iconName&&B.prefix&&(z=B.iconName,m=B.prefix)}if(!z||S||s&&s.getAttribute(n7)===m&&s.getAttribute(i7)===F)n();else{e.setAttribute(i,F),s&&e.removeChild(s);var j=function KK(){return{iconName:null,title:null,titleId:null,prefix:null,transform:tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ne=j.extra;ne.attributes[t7]=t,C7(z,m).then(function(ge){var be=g7(J(J({},j),{},{icons:{main:ge,mask:h7()},prefix:m,iconName:F,extra:ne,watchable:!0})),Re=o1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(Re,e.firstChild):e.appendChild(Re),Re.outerHTML=be.map(function(M1){return ua(M1)}).join("\n"),e.removeAttribute(i),n()}).catch(r)}}else n()})}function sZ(e){return Promise.all([HM(e,"::before"),HM(e,"::after")])}function oZ(e){return!(e.parentNode===document.head||~KY.indexOf(e.tagName.toUpperCase())||e.getAttribute(t7)||e.parentNode&&"svg"===e.parentNode.tagName)}function VM(e){if(wn)return new Promise(function(t,i){var n=fi(e.querySelectorAll("*")).filter(oZ).map(sZ),r=M7.begin("searchPseudoElements");_M(),Promise.all(n).then(function(){r(),w7(),t()}).catch(function(){r(),w7(),i()})})}var DM=!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})},H7={x:0,y:0,width:"100%",height:"100%"};function SM(e){return e.attributes&&(e.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e.attributes.fill="black"),e}!function SK(e,t){var i=t.mixoutsTo;lM=e,hi={},Object.keys(pi).forEach(function(n){-1===zK.indexOf(n)&&delete pi[n]}),lM.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"===_c(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){hi[s]||(hi[s]=[]),hi[s].push(a[s])})}n.provides&&n.provides(pi)})}([hK,eZ,tZ,nZ,iZ,{hooks:function(){return{mutationObserverCallbacks:function(i){return i.pseudoElementsCallback=VM,i}}},provides:function(t){t.pseudoElements2svg=function(i){var n=i.node;te.searchPseudoElements&&VM(void 0===n?o1:n)}}},{mixout:function(){return{dom:{unwatch:function(){_M(),DM=!0}}}},hooks:function(){return{bootstrap:function(){CM(p7("mutationObserverCallbacks",{}))},noAuto:function(){!function $K(){Oc&&Oc.disconnect()}()},watch:function(i){var n=i.observeMutationsRoot;DM?w7():CM(p7("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:J({},m.outer),children:[{tag:"g",attributes:J({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},n.icon.attributes),m.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(i,n){var r=n.getAttribute("data-fa-mask"),a=r?Ec(r.split(" ").map(function(s){return s.trim()})):h7();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 uK(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:J(J({},H7),{},{fill:"white"})},V=u.children?{children:u.children.map(SM)}:{},S={tag:"g",attributes:J({},m.inner),children:[SM(J({tag:u.tag,attributes:J(J({},u.attributes),m.path)},V))]},N={tag:"g",attributes:J({},m.outer),children:[S]},z="mask-".concat(o||la()),F="clip-".concat(o||la()),B={tag:"mask",attributes:J(J({},H7),{},{id:z,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[H,N]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:F},children:(e=p,"g"===e.tag?e.children:[e])},B]};return n.push(j,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(F,")"),mask:"url(#".concat(z,")")},H7)}),{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:J(J({},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=J(J({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return i||o.children.push({tag:"animate",attributes:J(J({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},s),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:J(J({},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:J(J({},s),{},{values:"1;0;0;0;0;1;"})}]}),i||n.push({tag:"path",attributes:J(J({},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:J(J({},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:nt});var gZ=nt.parse,vZ=nt.icon;const _Z=["*"],MZ=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 HZ=(()=>{var e;class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),VZ=(()=>{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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),DZ=(()=>{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=U({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[g1]}),t})(),zZ=(()=>{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(o2),w(Le))},e.\u0275cmp=se({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[g1],ngContentSelectors:_Z,decls:1,vars:0,template:function(n,r){1&n&&(U4(),j4(0))},encapsulation:2}),t})(),xM=(()=>{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?gZ.transform(this.transform):this.transform;return{title:this.title,transform:r,classes:[...MZ(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=vZ(n,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(a.html.join("\n"))}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Gv),w(HZ),w(VZ),w(DZ,8),w(zZ,8))},e.\u0275cmp=se({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,r){2&n&&(w2("innerHTML",r.renderedIconHTML,Nd),$("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:[g1],decls:0,vars:0,template:function(n,r){},encapsulation:2}),t})(),SZ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();function V7(...e){const t=Li(e),i=qa(e),{args:n,keys:r}=qv(e);if(0===n.length)return Z1([],t);const a=new $e(function LZ(e,t,i=yt){return n=>{LM(t,()=>{const{length:r}=e,a=new Array(r);let s=r,o=r;for(let c=0;c<r;c++)LM(t,()=>{const l=Z1(e[c],t);let u=!1;l.subscribe(We(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):yt));return i?a.pipe(n5(i)):a}function LM(e,t,i){e?an(i,e,t):t()}const Rc=u2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function NM(e){return new $e(t=>{U1(e()).subscribe(t)})}function da(e,t){const i=Z(e)?e:()=>e,n=r=>r.error(i());return new $e(t?r=>t.schedule(n,0,r):n)}function D7(){return u1((e,t)=>{let i=null;e._refCount++;const n=We(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 $e{constructor(t,i){super(),this.source=t,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Si(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(We(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 D7()(this)}}function kc(e){return u1((t,i)=>{let n=!1;t.subscribe(We(i,r=>{n=!0,i.next(r)},()=>{n||i.next(e),i.complete()}))})}function AM(e=NZ){return u1((t,i)=>{let n=!1;t.subscribe(We(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(e())))})}function NZ(){return new Rc}function k3(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):yt,X1(1),i?kc(t):AM(()=>new Rc))}function ha(e,t){return Z(t)?P1(e,t,1):P1(e,1)}function P3(e){return u1((t,i)=>{let a,n=null,r=!1;n=t.subscribe(We(i,void 0,void 0,s=>{a=U1(e(s,P3(e)(t))),n?(n.unsubscribe(),n=null,a.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,a.subscribe(i))})}function z7(e){return e<=0?()=>st:u1((t,i)=>{let n=[];t.subscribe(We(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 S7(e){return u1((t,i)=>{try{t.subscribe(i)}finally{i.add(e)}})}const ve="primary",pa=Symbol("RouteTitle");class TZ{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 mi(e){return new TZ(e)}function OZ(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 nn(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],!IM(e[r],t[r]))return!1;return!0}function IM(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 TM(e){return e.length>0?e[e.length-1]:null}function t3(e){return function xZ(e){return!!e&&(e instanceof $e||Z(e.lift)&&Z(e.subscribe))}(e)?e:vr(e)?Z1(Promise.resolve(e)):re(e)}const kZ={exact:function kM(e,t,i){if(!F3(e.segments,t.segments)||!Pc(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!e.children[n]||!kM(e.children[n],t.children[n],i))return!1;return!0},subset:PM},OM={exact:function PZ(e,t){return nn(e,t)},subset:function FZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>IM(e[i],t[i]))},ignored:()=>!0};function RM(e,t,i){return kZ[i.paths](e.root,t.root,i.matrixParams)&&OM[i.queryParams](e.queryParams,t.queryParams)&&!("exact"===i.fragment&&e.fragment!==t.fragment)}function PM(e,t,i){return FM(e,t,t.segments,i)}function FM(e,t,i,n){if(e.segments.length>i.length){const r=e.segments.slice(0,i.length);return!(!F3(r,i)||t.hasChildren()||!Pc(r,i,n))}if(e.segments.length===i.length){if(!F3(e.segments,i)||!Pc(e.segments,i,n))return!1;for(const r in t.children)if(!e.children[r]||!PM(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!!(F3(e.segments,r)&&Pc(e.segments,r,n)&&e.children[ve])&&FM(e.children[ve],t,a,n)}}function Pc(e,t,i){return t.every((n,r)=>OM[i](e[r].parameters,n.parameters))}class gi{constructor(t=new Ge([],{}),i={},n=null){this.root=t,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mi(this.queryParams)),this._queryParamMap}toString(){return jZ.serialize(this)}}class Ge{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 Fc(this)}}class ma{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=mi(this.parameters)),this._parameterMap}toString(){return jM(this)}}function F3(e,t){return e.length===t.length&&e.every((i,n)=>i.path===t[n].path)}let ga=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(){return new x7},providedIn:"root"}),t})();class x7{parse(t){const i=new eQ(t);return new gi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){const i=`/${va(t.root,!0)}`,n=function WZ(e){const t=Object.keys(e).map(i=>{const n=e[i];return Array.isArray(n)?n.map(r=>`${Bc(i)}=${Bc(r)}`).join("&"):`${Bc(i)}=${Bc(n)}`}).filter(i=>!!i);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${i}${n}${"string"==typeof t.fragment?`#${function GZ(e){return encodeURI(e)}(t.fragment)}`:""}`}}const jZ=new x7;function Fc(e){return e.segments.map(t=>jM(t)).join("/")}function va(e,t){if(!e.hasChildren())return Fc(e);if(t){const i=e.children[ve]?va(e.children[ve],!1):"",n=[];return Object.entries(e.children).forEach(([r,a])=>{r!==ve&&n.push(`${r}:${va(a,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=function UZ(e,t){let i=[];return Object.entries(e.children).forEach(([n,r])=>{n===ve&&(i=i.concat(t(r,n)))}),Object.entries(e.children).forEach(([n,r])=>{n!==ve&&(i=i.concat(t(r,n)))}),i}(e,(n,r)=>r===ve?[va(e.children[ve],!1)]:[`${r}:${va(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ve]?`${Fc(e)}/${i[0]}`:`${Fc(e)}/(${i.join("//")})`}}function BM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bc(e){return BM(e).replace(/%3B/gi,";")}function L7(e){return BM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uc(e){return decodeURIComponent(e)}function UM(e){return Uc(e.replace(/\+/g,"%20"))}function jM(e){return`${L7(e.path)}${function $Z(e){return Object.keys(e).map(t=>`;${L7(t)}=${L7(e[t])}`).join("")}(e.parameters)}`}const qZ=/^[^\/()?;#]+/;function N7(e){const t=e.match(qZ);return t?t[0]:""}const YZ=/^[^\/()?;=#]+/,ZZ=/^[^=?&#]+/,JZ=/^[^&#]+/;class eQ{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],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[ve]=new Ge(t,i)),n}parseSegment(){const t=N7(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(t),new ma(Uc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const i=function KZ(e){const t=e.match(YZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const r=N7(this.remaining);r&&(n=r,this.capture(n))}t[Uc(i)]=Uc(n)}parseQueryParam(t){const i=function QZ(e){const t=e.match(ZZ);return t?t[0]:""}(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){const s=function XZ(e){const t=e.match(JZ);return t?t[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const r=UM(i),a=UM(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=N7(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a=ve);const s=this.parseChildren();i[a]=1===Object.keys(s).length?s[ve]:new Ge([],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 P(4011,!1)}}function GM(e){return e.segments.length>0?new Ge([],{[ve]:e}):e}function $M(e){const t={};for(const n of Object.keys(e.children)){const a=$M(e.children[n]);if(n===ve&&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 tQ(e){if(1===e.numberOfChildren&&e.children[ve]){const t=e.children[ve];return new Ge(e.segments.concat(t.segments),t.children)}return e}(new Ge(e.segments,t))}function B3(e){return e instanceof gi}function WM(e){let t;const r=GM(function i(a){const s={};for(const c of a.children){const l=i(c);s[c.outlet]=l}const o=new Ge(a.url,s);return a===e&&(t=o),o}(e.root));return t??r}function qM(e,t,i,n){let r=e;for(;r.parent;)r=r.parent;if(0===t.length)return E7(r,r,r,i,n);const a=function iQ(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new KM(!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 KM(i,t,n)}(t);if(a.toRoot())return E7(r,r,new Ge([],{}),i,n);const s=function rQ(e,t,i){if(e.isAbsolute)return new Gc(t,!0,0);if(!i)return new Gc(t,!1,NaN);if(null===i.parent)return new Gc(i,!0,0);const n=jc(e.commands[0])?0:1;return function aQ(e,t,i){let n=e,r=t,a=i;for(;a>r;){if(a-=r,n=n.parent,!n)throw new P(4005,!1);r=n.segments.length}return new Gc(n,!1,r-a)}(i,i.segments.length-1+n,e.numberOfDoubleDots)}(a,r,e),o=s.processChildren?Ca(s.segmentGroup,s.index,a.commands):ZM(s.segmentGroup,s.index,a.commands);return E7(r,s.segmentGroup,o,i,n)}function jc(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function _a(e){return"object"==typeof e&&null!=e&&e.outlets}function E7(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=GM($M(s));return new gi(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 Ge(e.segments,n)}class KM{constructor(t,i,n){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&jc(n[0]))throw new P(4003,!1);const r=n.find(_a);if(r&&r!==TM(n))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gc{constructor(t,i,n){this.segmentGroup=t,this.processChildren=i,this.index=n}}function ZM(e,t,i){if(e||(e=new Ge([],{})),0===e.segments.length&&e.hasChildren())return Ca(e,t,i);const n=function oQ(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(_a(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(!JM(c,l,s))return a;n+=2}else{if(!JM(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 Ge(e.segments.slice(0,n.pathIndex),{});return a.children[ve]=new Ge(e.segments.slice(n.pathIndex),e.children),Ca(a,0,r)}return n.match&&0===r.length?new Ge(e.segments,{}):n.match&&!e.hasChildren()?A7(e,t,i):n.match?Ca(e,0,r):A7(e,t,i)}function Ca(e,t,i){if(0===i.length)return new Ge(e.segments,{});{const n=function sQ(e){return _a(e[0])?e[0].outlets:{[ve]:e}}(i),r={};if(Object.keys(n).some(a=>a!==ve)&&e.children[ve]&&1===e.numberOfChildren&&0===e.children[ve].segments.length){const a=Ca(e.children[ve],t,i);return new Ge(e.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[a]=ZM(e.children[a],t,s))}),Object.entries(e.children).forEach(([a,s])=>{void 0===n[a]&&(r[a]=s)}),new Ge(e.segments,r)}}function A7(e,t,i){const n=e.segments.slice(0,t);let r=0;for(;r<i.length;){const a=i[r];if(_a(a)){const c=cQ(a.outlets);return new Ge(n,c)}if(0===r&&jc(i[0])){n.push(new ma(e.segments[t].path,QM(i[0]))),r++;continue}const s=_a(a)?a.outlets[ve]:`${a}`,o=r<i.length-1?i[r+1]:null;s&&o&&jc(o)?(n.push(new ma(s,QM(o))),r+=2):(n.push(new ma(s,{})),r++)}return new Ge(n,{})}function cQ(e){const t={};return Object.entries(e).forEach(([i,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[i]=A7(new Ge([],{}),0,n))}),t}function QM(e){const t={};return Object.entries(e).forEach(([i,n])=>t[i]=`${n}`),t}function JM(e,t,i){return e==i.path&&nn(t,i.parameters)}const ya="imperative";class rn{constructor(t,i){this.id=t,this.url=i}}class Ma extends rn{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 rn{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 ba extends rn{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 vi extends rn{constructor(t,i,n,r){super(t,i),this.reason=n,this.code=r,this.type=16}}class $c extends rn{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 XM extends rn{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 lQ extends rn{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 uQ extends rn{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 fQ extends rn{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 dQ extends rn{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 hQ{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pQ{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mQ{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gQ{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vQ{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _Q{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eb{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 I7{}class T7{constructor(t){this.url=t}}class CQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new wa,this.attachRef=null}}let wa=(()=>{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 CQ,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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class tb{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=O7(t,this._root);return i?i.children.map(n=>n.value):[]}firstChild(t){const i=O7(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){const i=R7(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return R7(t,this._root).map(i=>i.value)}}function O7(e,t){if(e===t.value)return t;for(const i of t.children){const n=O7(e,i);if(n)return n}return null}function R7(e,t){if(e===t.value)return[t];for(const i of t.children){const n=R7(e,i);if(n.length)return n.unshift(t),n}return[]}class zn{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}}function _i(e){const t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}class nb extends tb{constructor(t,i){super(t),this.snapshot=i,k7(this,t)}toString(){return this.snapshot.toString()}}function ib(e,t){const i=function yQ(e,t){const s=new Wc([],{},{},"",{},ve,t,null,{});return new ab("",new zn(s,[]))}(0,t),n=new ot([new ma("",{})]),r=new ot({}),a=new ot({}),s=new ot({}),o=new ot(""),c=new Sn(n,r,s,o,a,ve,t,i.root);return c.snapshot=i.root,new nb(new zn(c,[]),i)}class Sn{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(we(l=>l[pa]))??re(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(we(t=>mi(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(we(t=>mi(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rb(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 MQ(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 Wc{get title(){return this.data?.[pa]}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=mi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ab extends tb{constructor(t,i){super(i),this.url=t,k7(this,i)}toString(){return sb(this._root)}}function k7(e,t){t.value._routerState=e,t.children.forEach(i=>k7(e,i))}function sb(e){const t=e.children.length>0?` { ${e.children.map(sb).join(", ")} } `:"";return`${e.value}${t}`}function P7(e){if(e.snapshot){const t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,nn(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),nn(t.params,i.params)||e.paramsSubject.next(i.params),function RZ(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!nn(e[i],t[i]))return!1;return!0}(t.url,i.url)||e.urlSubject.next(i.url),nn(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function F7(e,t){const i=nn(e.params,t.params)&&function BZ(e,t){return F3(e,t)&&e.every((i,n)=>nn(i.parameters,t[n].parameters))}(e.url,t.url);return i&&!(!e.parent!=!t.parent)&&(!e.parent||F7(e.parent,t.parent))}let B7=(()=>{var e;class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=Q(wa),this.location=Q(P2),this.changeDetector=Q(Q2),this.environmentInjector=Q(O2),this.inputBinder=Q(qc,{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 P(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,!1);this.location.detach();const 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 P(4013,!1);this._activatedRoute=n;const a=this.location,o=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new bQ(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=U({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g1]}),t})();class bQ{constructor(t,i,n){this.route=t,this.childContexts=i,this.parent=n}get(t,i){return t===Sn?this.route:t===wa?this.childContexts:this.parent.get(t,i)}}const qc=new ee("");let ob=(()=>{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=V7([r.queryParams,r.params,r.data]).pipe(Mt(([s,o,c],l)=>(c={...s,...o,...c},0===l?re(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 SF(e){const t=Se(e);if(!t)return null;const i=new fr(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=G({token:e,factory:e.\u0275fac}),t})();function Ha(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=t.value;const r=function HQ(e,t,i){return t.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(n.value,r.value.snapshot))return Ha(e,n,r);return Ha(e,n)})}(e,t,i);return new zn(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=>Ha(e,o)),s}}const n=function VQ(e){return new Sn(new ot(e.url),new ot(e.params),new ot(e.queryParams),new ot(e.fragment),new ot(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(a=>Ha(e,a));return new zn(n,r)}}const U7="ngNavigationCancelingError";function cb(e,t){const{redirectTo:i,navigationBehaviorOptions:n}=B3(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=lb(!1,0,t);return r.url=i,r.navigationBehaviorOptions=n,r}function lb(e,t,i){const n=new Error("NavigationCancelingError: "+(e||""));return n[U7]=!0,n.cancellationCode=t,i&&(n.url=i),n}function ub(e){return e&&e[U7]}let fb=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[V2],decls:1,vars:0,template:function(n,r){1&n&&k(0,"router-outlet")},dependencies:[B7],encapsulation:2}),t})();function j7(e){const t=e.children&&e.children.map(j7),i=t?{...e,children:t}:{...e};return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==ve&&(i.component=fb),i}function Tt(e){return e.outlet||ve}function Va(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 AQ{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),P7(this.futureState.root),this.activateChildRoutes(i,n,t)}deactivateChildRoutes(t,i,n){const r=_i(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=_i(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=_i(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=_i(i);t.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],n),this.forwardEvent(new _Q(a.value.snapshot))}),t.children.length&&this.forwardEvent(new gQ(t.value.snapshot))}activateRoutes(t,i,n){const r=t.value,a=i?i.value:null;if(P7(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),P7(o.route.value),this.activateChildRoutes(t,null,s.children)}else{const o=Va(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 db{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Yc{constructor(t,i){this.component=t,this.route=i}}function IQ(e,t,i){const n=e._root;return Da(n,t?t._root:null,i,[n.value])}function Ci(e,t){const i=Symbol(),n=t.get(e,i);return n===i?"function"!=typeof e||function qL(e){return null!==Za(e)}(e)?t.get(e):e:n}function Da(e,t,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=_i(t);return e.children.forEach(s=>{(function OQ(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 RQ(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!F3(e.url,t.url);case"pathParamsOrQueryParamsChange":return!F3(e.url,t.url)||!nn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!F7(e,t)||!nn(e.queryParams,t.queryParams);default:return!F7(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new db(n)):(a.data=s.data,a._resolvedData=s._resolvedData),Da(e,t,a.component?o?o.children:null:i,n,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Yc(o.outlet.component,s))}else s&&za(t,o,r),r.canActivateChecks.push(new db(n)),Da(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])=>za(o,i.getContext(s),r)),r}function za(e,t,i){const n=_i(e),r=e.value;Object.entries(n).forEach(([a,s])=>{za(s,r.component?t?t.children.getContext(a):null:t,i)}),i.canDeactivateChecks.push(new Yc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Sa(e){return"function"==typeof e}function hb(e){return e instanceof Rc||"EmptyError"===e?.name}const Kc=Symbol("INITIAL_VALUE");function yi(){return Mt(e=>V7(e.map(t=>t.pipe(X1(1),function rC(...e){const t=Li(e);return u1((i,n)=>{(t?Br(e,i,t):Br(e,i)).subscribe(n)})}(Kc)))).pipe(we(t=>{for(const i of t)if(!0!==i){if(i===Kc)return Kc;if(!1===i||i instanceof gi)return i}return!0}),z1(t=>t!==Kc),X1(1)))}function pb(e){return function Pa(...e){return zi(e)}(W1(t=>{if(B3(t))throw cb(0,t)}),we(t=>!0===t))}class Zc{constructor(t){this.segmentGroup=t||null}}class mb{constructor(t){this.urlTree=t}}function Mi(e){return da(new Zc(e))}function gb(e){return da(new mb(e))}class iJ{constructor(t,i){this.urlSerializer=t,this.urlTree=i}noMatchError(t){return new P(4002,!1)}lineralizeSegments(t,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return re(n);if(r.numberOfChildren>1||!r.children[ve])return da(new P(4e3,!1));r=r.children[ve]}}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 gi(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 Ge(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 P(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 G7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function rJ(e,t,i,n,r){const a=$7(e,t,i);return a.matched?(n=function zQ(e,t){return e.providers&&!e._injector&&(e._injector=Zl(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,n),function eJ(e,t,i,n){const r=t.canMatch;return r&&0!==r.length?re(r.map(s=>{const o=Ci(s,e);return t3(function jQ(e){return e&&Sa(e.canMatch)}(o)?o.canMatch(t,i):e.runInContext(()=>o(t,i)))})).pipe(yi(),pb()):re(!0)}(n,t,i).pipe(we(s=>!0===s?a:{...G7}))):re(a)}function $7(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{...G7}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const r=(t.matcher||OZ)(i,e,t);if(!r)return{...G7};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 vb(e,t,i,n){return i.length>0&&function oJ(e,t,i){return i.some(n=>Qc(e,t,n)&&Tt(n)!==ve)}(e,i,n)?{segmentGroup:new Ge(t,sJ(n,new Ge(i,e.children))),slicedSegments:[]}:0===i.length&&function cJ(e,t,i){return i.some(n=>Qc(e,t,n))}(e,i,n)?{segmentGroup:new Ge(e.segments,aJ(e,0,i,n,e.children)),slicedSegments:i}:{segmentGroup:new Ge(e.segments,e.children),slicedSegments:i}}function aJ(e,t,i,n,r){const a={};for(const s of n)if(Qc(e,i,s)&&!r[Tt(s)]){const o=new Ge([],{});a[Tt(s)]=o}return{...r,...a}}function sJ(e,t){const i={};i[ve]=t;for(const n of e)if(""===n.path&&Tt(n)!==ve){const r=new Ge([],{});i[Tt(n)]=r}return i}function Qc(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path}class dJ{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 iJ(this.urlSerializer,this.urlTree)}noMatchError(t){return new P(4002,!1)}recognize(){const t=vb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,ve).pipe(P3(i=>{if(i instanceof mb)return this.allowRedirects=!1,this.urlTree=i.urlTree,this.match(i.urlTree);throw i instanceof Zc?this.noMatchError(i):i}),we(i=>{const n=new Wc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),r=new zn(n,i),a=new ab("",r),s=function nQ(e,t,i=null,n=null){return qM(WM(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,ve).pipe(P3(n=>{throw n instanceof Zc?this.noMatchError(n):n}))}inheritParamsAndData(t){const i=t.value,n=rb(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 Z1(r).pipe(ha(a=>{const s=n.children[a],o=function NQ(e,t){const i=e.filter(n=>Tt(n)===t);return i.push(...e.filter(n=>Tt(n)!==t)),i}(i,a);return this.processSegmentGroup(t,o,s,a)}),function AZ(e,t){return u1(function EZ(e,t,i,n,r){return(a,s)=>{let o=i,c=t,l=0;a.subscribe(We(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)),kc(null),function IZ(e,t){const i=arguments.length>=2;return n=>n.pipe(e?z1((r,a)=>e(r,a,n)):yt,z7(1),i?kc(t):AM(()=>new Rc))}(),P1(a=>{if(null===a)return Mi(n);const s=_b(a);return function hJ(e){e.sort((t,i)=>t.value.outlet===ve?-1:i.value.outlet===ve?1:t.value.outlet.localeCompare(i.value.outlet))}(s),re(s)}))}processSegment(t,i,n,r,a,s){return Z1(i).pipe(ha(o=>this.processSegmentAgainstRoute(o._injector??t,i,o,n,r,a,s).pipe(P3(c=>{if(c instanceof Zc)return re(null);throw c}))),k3(o=>!!o),P3(o=>{if(hb(o))return function uJ(e,t,i){return 0===t.length&&!e.children[i]}(n,r,a)?re([]):Mi(n);throw o}))}processSegmentAgainstRoute(t,i,n,r,a,s,o){return function lJ(e,t,i,n){return!!(Tt(e)===n||n!==ve&&Qc(t,i,e))&&("**"===e.path||$7(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):Mi(r):Mi(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("/")?gb(a):this.applyRedirects.lineralizeSegments(n,a).pipe(P1(s=>{const o=new Ge(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}=$7(i,r,a);if(!o)return Mi(i);const d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?gb(d):this.applyRedirects.lineralizeSegments(r,d).pipe(P1(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?TM(r).parameters:{};o=re({snapshot:new Wc(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Cb(n),Tt(n),n.component??n._loadedComponent??null,n,yb(n)),consumedSegments:[],remainingSegments:[]}),i.children={}}else o=rJ(i,n,r,t).pipe(we(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new Wc(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Cb(n),Tt(n),n.component??n._loadedComponent??null,n,yb(n)),consumedSegments:l,remainingSegments:u}:null));return o.pipe(Mt(c=>null===c?Mi(i):this.getChildConfig(t=n._injector??t,n,r).pipe(Mt(({routes:l})=>{const u=n._loadedInjector??t,{snapshot:d,consumedSegments:p,remainingSegments:m}=c,{segmentGroup:H,slicedSegments:V}=vb(i,p,m,l);if(0===V.length&&H.hasChildren())return this.processChildren(u,l,H).pipe(we(N=>null===N?null:[new zn(d,N)]));if(0===l.length&&0===V.length)return re([new zn(d,[])]);const S=Tt(n)===a;return this.processSegment(u,l,H,V,S?ve:a,!0).pipe(we(N=>[new zn(d,N)]))}))))}getChildConfig(t,i,n){return i.children?re({routes:i.children,injector:t}):i.loadChildren?void 0!==i._loadedRoutes?re({routes:i._loadedRoutes,injector:i._loadedInjector}):function XQ(e,t,i,n){const r=t.canLoad;return void 0===r||0===r.length?re(!0):re(r.map(s=>{const o=Ci(s,e);return t3(function PQ(e){return e&&Sa(e.canLoad)}(o)?o.canLoad(t,i):e.runInContext(()=>o(t,i)))})).pipe(yi(),pb())}(t,i,n).pipe(P1(r=>r?this.configLoader.loadChildren(t,i).pipe(W1(a=>{i._loadedRoutes=a.routes,i._loadedInjector=a.injector})):function nJ(e){return da(lb(!1,3))}())):re({routes:[],injector:t})}}function pJ(e){const t=e.value.routeConfig;return t&&""===t.path}function _b(e){const t=[],i=new Set;for(const n of e){if(!pJ(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=_b(n.children);t.push(new zn(n.value,r))}return t.filter(n=>!i.has(n))}function Cb(e){return e.data||{}}function yb(e){return e.resolve||{}}function Mb(e){return"string"==typeof e.title||null===e.title}function W7(e){return Mt(t=>{const i=e(t);return i?Z1(i).pipe(we(()=>t)):re(t)})}const bi=new ee("ROUTES");let q7=(()=>{var e;class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Q(yg)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return re(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=t3(n.loadComponent()).pipe(we(bb),W1(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),S7(()=>{this.componentLoaders.delete(n)})),a=new EM(r,()=>new ue).pipe(D7());return this.componentLoaders.set(n,a),a}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return re({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const s=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(we(c=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(c)?u=c:(l=c.create(n).injector,u=l.get(bi,[],Ce.Self|Ce.Optional).flat()),{routes:u.map(j7),injector:l}}),S7(()=>{this.childrenLoaders.delete(r)})),o=new EM(s,()=>new ue).pipe(D7());return this.childrenLoaders.set(r,o),o}loadModuleFactoryOrRoutes(n){return t3(n()).pipe(we(bb),P1(r=>r instanceof xm||Array.isArray(r)?re(r):Z1(this.compiler.compileModuleAsync(r))))}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function bb(e){return function MJ(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Jc=(()=>{var e;class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=Q(q7),this.environmentInjector=Q(O2),this.urlSerializer=Q(ga),this.rootContexts=Q(wa),this.inputBindingEnabled=null!==Q(qc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>re(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=a=>this.events.next(new pQ(a)),this.configLoader.onLoadStartListener=a=>this.events.next(new hQ(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 ot({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:ya,restoredState:null,currentSnapshot:a.snapshot,targetSnapshot:null,currentRouterState:a,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(z1(s=>0!==s.id),we(s=>({...s,extractedUrl:n.urlHandlingStrategy.extract(s.rawUrl)})),Mt(s=>{this.currentTransition=s;let o=!1,c=!1;return re(s).pipe(W1(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}}),Mt(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 vi(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),st}if(n.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return re(l).pipe(Mt(m=>{const H=this.transitions?.getValue();return this.events.next(new Ma(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),H!==this.transitions?.getValue()?st:Promise.resolve(m)}),function mJ(e,t,i,n,r,a){return P1(s=>function fJ(e,t,i,n,r,a,s="emptyOnly"){return new dJ(e,t,i,n,r,s,a).recognize()}(e,t,i,n,s.extractedUrl,r,a).pipe(we(({state:o,tree:c})=>({...s,targetSnapshot:o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),W1(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const H=new XM(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:V,restoredState:S,extras:N}=l,z=new Ma(m,this.urlSerializer.serialize(H),V,S);this.events.next(z);const F=ib(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:F,urlAfterRedirects:H,extras:{...N,skipLocationChange:!1,replaceUrl:!1}},re(s)}{const m="";return this.events.next(new vi(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),st}}),W1(l=>{const u=new lQ(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),we(l=>(this.currentTransition=s={...l,guards:IQ(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function $Q(e,t){return P1(i=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:s}}=i;return 0===s.length&&0===a.length?re({...i,guardsResult:!0}):function WQ(e,t,i,n){return Z1(e).pipe(P1(r=>function JQ(e,t,i,n,r){const a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?re(a.map(o=>{const c=Va(t)??r,l=Ci(o,c);return t3(function UQ(e){return e&&Sa(e.canDeactivate)}(l)?l.canDeactivate(e,t,i,n):c.runInContext(()=>l(e,t,i,n))).pipe(k3())})).pipe(yi()):re(!0)}(r.component,r.route,i,t,n)),k3(r=>!0!==r,!0))}(s,n,r,e).pipe(P1(o=>o&&function kQ(e){return"boolean"==typeof e}(o)?function qQ(e,t,i,n){return Z1(t).pipe(ha(r=>Br(function KQ(e,t){return null!==e&&t&&t(new mQ(e)),re(!0)}(r.route.parent,n),function YQ(e,t){return null!==e&&t&&t(new vQ(e)),re(!0)}(r.route,n),function QQ(e,t,i){const n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map(s=>function TQ(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=>NM(()=>re(s.guards.map(c=>{const l=Va(s.node)??i,u=Ci(c,l);return t3(function BQ(e){return e&&Sa(e.canActivateChild)}(u)?u.canActivateChild(n,e):l.runInContext(()=>u(n,e))).pipe(k3())})).pipe(yi())));return re(a).pipe(yi())}(e,r.path,i),function ZQ(e,t,i){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return re(!0);const r=n.map(a=>NM(()=>{const s=Va(t)??i,o=Ci(a,s);return t3(function FQ(e){return e&&Sa(e.canActivate)}(o)?o.canActivate(t,e):s.runInContext(()=>o(t,e))).pipe(k3())}));return re(r).pipe(yi())}(e,r.route,i))),k3(r=>!0!==r,!0))}(n,a,e,t):re(o)),we(o=>({...i,guardsResult:o})))})}(this.environmentInjector,l=>this.events.next(l)),W1(l=>{if(s.guardsResult=l.guardsResult,B3(l.guardsResult))throw cb(0,l.guardsResult);const u=new uQ(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)),W7(l=>{if(l.guards.canActivateChecks.length)return re(l).pipe(W1(u=>{const d=new fQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Mt(u=>{let d=!1;return re(u).pipe(function gJ(e,t){return P1(i=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return re(i);let a=0;return Z1(r).pipe(ha(s=>function vJ(e,t,i,n){const r=e.routeConfig,a=e._resolve;return void 0!==r?.title&&!Mb(r)&&(a[pa]=r.title),function _J(e,t,i,n){const r=function CJ(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return re({});const a={};return Z1(r).pipe(P1(s=>function yJ(e,t,i,n){const r=Va(t)??n,a=Ci(e,r);return t3(a.resolve?a.resolve(t,i):r.runInContext(()=>a(t,i)))}(e[s],t,i,n).pipe(k3(),W1(o=>{a[s]=o}))),z7(1),tC(a),P3(s=>hb(s)?st:da(s)))}(a,e,t,n).pipe(we(s=>(e._resolvedData=s,e.data=rb(e,i).resolve,r&&Mb(r)&&(e.data[pa]=r.title),null)))}(s.route,n,e,t)),W1(()=>a++),z7(1),P1(s=>a===r.length?re(i):st))})}(n.paramsInheritanceStrategy,this.environmentInjector),W1({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",2)}}))}),W1(u=>{const d=new dQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),W7(l=>{const u=d=>{const p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(W1(m=>{d.component=m}),we(()=>{})));for(const m of d.children)p.push(...u(m));return p};return V7(u(l.targetSnapshot.root)).pipe(kc(),X1(1))}),W7(()=>this.afterPreactivation()),we(l=>{const u=function wQ(e,t,i){const n=Ha(e,t._root,i?i._root:void 0);return new nb(n,t)}(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:u},s}),W1(()=>{this.events.next(new I7)}),((e,t,i,n)=>we(r=>(new AQ(t,r.targetRouterState,r.currentRouterState,i,n).activate(e),r)))(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),X1(1),W1({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}}),O1(this.transitionAbortSubject.pipe(W1(l=>{throw l}))),S7(()=>{o||c||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),P3(l=>{if(c=!0,ub(l))this.events.next(new ba(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function DQ(e){return ub(e)&&B3(e.url)}(l)?this.events.next(new T7(l.url)):s.resolve(!1);else{this.events.next(new $c(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(u){s.reject(u)}}return st}))}))}cancelNavigationTransition(n,r,a){const s=new ba(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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function wb(e){return e!==ya}let Hb=(()=>{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===ve);return r}getResolvedTitleForRoute(n){return n.data[pa]}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(){return Q(bJ)},providedIn:"root"}),t})(),bJ=(()=>{var e;class t extends Hb{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)(W(Bv))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(){return Q(VJ)},providedIn:"root"}),t})();class HJ{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}}let VJ=(()=>{var e;class t extends HJ{}return(e=t).\u0275fac=function(){let i;return function(r){return(i||(i=E1(e)))(r||e)}}(),e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Xc=new ee("",{providedIn:"root",factory:()=>({})});let DJ=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:function(){return Q(zJ)},providedIn:"root"}),t})(),zJ=(()=>{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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();var xa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(xa||{});function Vb(e,t){e.events.pipe(z1(i=>i instanceof n3||i instanceof ba||i instanceof $c||i instanceof vi),we(i=>i instanceof n3||i instanceof vi?xa.COMPLETE:i instanceof ba&&(0===i.code||1===i.code)?xa.REDIRECTING:xa.FAILED),z1(i=>i!==xa.REDIRECTING),X1(1)).subscribe(()=>{t()})}function SJ(e){throw e}function xJ(e,t,i){return t.parse("/")}const LJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let v2=(()=>{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=Q(_g),this.isNgZoneEnabled=!1,this._events=new ue,this.options=Q(Xc,{optional:!0})||{},this.pendingTasks=Q(Cg),this.errorHandler=this.options.errorHandler||SJ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||xJ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Q(DJ),this.routeReuseStrategy=Q(wJ),this.titleStrategy=Q(Hb),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=Q(bi,{optional:!0})?.flat()??[],this.navigationTransitions=Q(Jc),this.urlSerializer=Q(ga),this.location=Q(L8),this.componentInputBindingEnabled=!!Q(qc,{optional:!0}),this.eventsSubscription=new De,this.isNgZoneEnabled=Q(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new gi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ib(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(Db(r)&&this._events.next(r));if(r instanceof Ma)wb(a.source)&&(this.browserUrlTree=a.extractedUrl);else if(r instanceof vi)this.rawUrlTree=a.rawUrl;else if(r instanceof XM){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 I7)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 ba)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(a);else if(r instanceof T7){const s=this.urlHandlingStrategy.merge(r.url,a.currentRawUrl),o={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||wb(a.source)};this.scheduleNavigation(s,ya,null,o,{resolve:a.resolve,reject:a.reject,promise:a.promise})}r instanceof $c&&this.restoreHistory(a,!0),r instanceof n3&&(this.navigated=!0),Db(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),ya,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(j7),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=WM(a?a.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return qM(p,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const a=B3(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,ya,null,r)}navigate(n,r={skipLocationChange:!1}){return function EJ(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new P(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?{...LJ}:!1===r?{...NJ}:r,B3(n))return RM(this.currentUrlTree,n,a);const s=this.parseUrl(n);return RM(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 Vb(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=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Db(e){return!(e instanceof I7||e instanceof T7)}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 ue,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 Ad(e,t,i){return function JA(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ed:H4}(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(v2),w(Sn),function u3(e){return function gE(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(Vf(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}(s2(),e)}("tabindex"),w(o2),w(Le),w(Gn))},e.\u0275dir=U({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&O("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&n&&$("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Q4],skipLocationChange:["skipLocationChange","skipLocationChange",Q4],replaceUrl:["replaceUrl","replaceUrl",Q4],routerLink:"routerLink"},standalone:!0,features:[Wh,g1]}),t})();class zb{}let TJ=(()=>{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),ha(()=>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=Zl(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 Z1(a).pipe(Q3())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let a;a=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):re(null);const s=a.pipe(P1(o=>null===o?re(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??n,o.routes))));return r.loadComponent&&!r._loadedComponent?Z1([s,this.loader.loadComponent(r)]).pipe(Q3()):s})}}return(e=t).\u0275fac=function(n){return new(n||e)(W(v2),W(yg),W(O2),W(zb),W(q7))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Y7=new ee("");let Sb=(()=>{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 Ma?(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 vi&&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 eb&&(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 eb(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 Ch(){throw new Error("invalid")}()},e.\u0275prov=G({token:e,factory:e.\u0275fac}),t})();function Ln(e,t){return{\u0275kind:e,\u0275providers:t}}function Lb(){const e=Q(F1);return t=>{const i=e.get(Qt);if(t!==i.components[0])return;const n=e.get(v2),r=e.get(Nb);1===e.get(K7)&&n.initialNavigation(),e.get(Eb,null,Ce.Optional)?.setUpPreloading(),e.get(Y7,null,Ce.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Nb=new ee("",{factory:()=>new ue}),K7=new ee("",{providedIn:"root",factory:()=>1}),Eb=new ee("");function PJ(e){return Ln(0,[{provide:Eb,useExisting:TJ},{provide:zb,useExisting:e}])}const Ab=new ee("ROUTER_FORROOT_GUARD"),BJ=[L8,{provide:ga,useClass:x7},v2,wa,{provide:Sn,useFactory:function xb(e){return e.routerState.root},deps:[v2]},q7,[]];function UJ(){return new zg("Router",v2)}let Ib=(()=>{var e;class t{constructor(n){}static forRoot(n,r){return{ngModule:t,providers:[BJ,[],{provide:bi,multi:!0,useValue:n},{provide:Ab,useFactory:WJ,deps:[[v2,new ws,new Hs]]},{provide:Xc,useValue:r||{}},r?.useHash?{provide:Gn,useClass:rv}:{provide:Gn,useClass:iv},{provide:Y7,useFactory:()=>{const e=Q(QB),t=Q(ye),i=Q(Xc),n=Q(Jc),r=Q(ga);return i.scrollOffset&&e.setOffset(i.scrollOffset),new Sb(r,n,e,t,i)}},r?.preloadingStrategy?PJ(r.preloadingStrategy).\u0275providers:[],{provide:zg,multi:!0,useFactory:UJ},r?.initialNavigation?qJ(r):[],r?.bindToComponentInputs?Ln(8,[ob,{provide:qc,useExisting:ob}]).\u0275providers:[],[{provide:Tb,useFactory:Lb},{provide:C8,multi:!0,useExisting:Tb}]]}}static forChild(n){return{ngModule:t,providers:[{provide:bi,multi:!0,useValue:n}]}}}return(e=t).\u0275fac=function(n){return new(n||e)(W(Ab,8))},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({}),t})();function WJ(e){return"guarded"}function qJ(e){return["disabled"===e.initialNavigation?Ln(3,[{provide:f8,multi:!0,useFactory:()=>{const t=Q(v2);return()=>{t.setUpLocationChangeListener()}}},{provide:K7,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ln(2,[{provide:K7,useValue:0},{provide:f8,multi:!0,deps:[F1],useFactory:t=>{const i=t.get(NF,Promise.resolve());return()=>i.then(()=>new Promise(n=>{const r=t.get(v2),a=t.get(Nb);Vb(r,()=>{n(!0)}),t.get(Jc).afterPreactivation=()=>(n(!0),a.closed?re(void 0):a),r.initialNavigation()}))}}]).\u0275providers:[]]}const Tb=new ee("");let KJ=(()=>{var e;class t{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({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),k(2,"img",2),_(),g(3,"h3",3),M(4," Welcome to"),k(5,"br"),g(6,"b",4),M(7,"Eufy Security Plugin"),_()(),g(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),_(),k(10,"hr"),g(11,"div",5),k(12,"router-outlet"),_(),k(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,H4))},dependencies:[B7],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 Ob(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 Ve(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var a=e.apply(t,i);function s(c){Ob(a,n,r,s,o,"next",c)}function o(c){Ob(a,n,r,s,o,"throw",c)}s(void 0)})}}var Wb={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"]},nH={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"]},hu={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"]},mD={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"]},Iu={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"]},bx={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"]},A=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.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.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}(A||{});class Ta{static isDoorbell(t){return t===A.DOORBELL||t===A.BATTERY_DOORBELL||t===A.BATTERY_DOORBELL_2||t===A.BATTERY_DOORBELL_PLUS||t===A.DOORBELL_SOLO}static isCamera(t){return t===A.CAMERA||t===A.CAMERA2||t===A.CAMERA_E||t===A.CAMERA2C||t===A.INDOOR_CAMERA||t===A.INDOOR_PT_CAMERA||t===A.FLOODLIGHT||t===A.DOORBELL||t===A.BATTERY_DOORBELL||t===A.BATTERY_DOORBELL_2||t===A.BATTERY_DOORBELL_PLUS||t===A.DOORBELL_SOLO||t===A.CAMERA2C_PRO||t===A.CAMERA2_PRO||t===A.INDOOR_CAMERA_1080||t===A.INDOOR_PT_CAMERA_1080||t===A.SOLO_CAMERA||t===A.SOLO_CAMERA_PRO||t===A.SOLO_CAMERA_SPOTLIGHT_1080||t===A.SOLO_CAMERA_SPOTLIGHT_2K||t===A.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===A.INDOOR_OUTDOOR_CAMERA_1080P||t===A.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===A.INDOOR_OUTDOOR_CAMERA_2K||t===A.INDOOR_COST_DOWN_CAMERA||t===A.FLOODLIGHT_CAMERA_8422||t===A.FLOODLIGHT_CAMERA_8423||t===A.FLOODLIGHT_CAMERA_8424}static supportsRTSP(t){return t===A.CAMERA||t===A.CAMERA2||t===A.CAMERA2C||t===A.CAMERA2C_PRO||t===A.CAMERA_E||t===A.INDOOR_CAMERA||t===A.INDOOR_CAMERA_1080||t===A.INDOOR_OUTDOOR_CAMERA_1080P||t===A.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===A.INDOOR_OUTDOOR_CAMERA_2K||t===A.INDOOR_PT_CAMERA||t===A.INDOOR_PT_CAMERA_1080||t===A.INDOOR_COST_DOWN_CAMERA||t===A.FLOODLIGHT_CAMERA_8423}static supportsTalkback(t){return t===A.CAMERA2||t===A.CAMERA2C||t===A.CAMERA2C_PRO||t===A.CAMERA2_PRO||t===A.DOORBELL||t===A.BATTERY_DOORBELL||t===A.BATTERY_DOORBELL_2||t===A.BATTERY_DOORBELL_PLUS||t===A.DOORBELL_SOLO||t===A.INDOOR_CAMERA||t===A.INDOOR_CAMERA_1080||t===A.INDOOR_OUTDOOR_CAMERA_1080P||t===A.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||t===A.INDOOR_OUTDOOR_CAMERA_2K||t===A.INDOOR_PT_CAMERA||t===A.INDOOR_PT_CAMERA_1080||t===A.INDOOR_COST_DOWN_CAMERA||t===A.SOLO_CAMERA||t===A.SOLO_CAMERA_PRO||t===A.SOLO_CAMERA_SPOTLIGHT_1080||t===A.SOLO_CAMERA_SPOTLIGHT_2K||t===A.SOLO_CAMERA_SPOTLIGHT_SOLAR||t===A.FLOODLIGHT||t===A.FLOODLIGHT_CAMERA_8422||t===A.FLOODLIGHT_CAMERA_8423||t===A.FLOODLIGHT_CAMERA_8424}}const Gu=new Map([[A.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[A.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[A.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[A.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[A.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[A.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[A.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[A.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[A.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[A.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[A.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[A.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[A.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[A.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[A.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[A.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[A.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[A.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[A.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[A.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[A.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[A.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[A.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[A.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[A.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[A.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[A.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[A.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[A.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[A.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[A.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[A.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[A.SMART_DROP,{image:"unknown.png",padding:"20px"}],[A.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[A.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[A.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[A.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[A.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[A.CAMERA_FG,{image:"unknown.png",padding:"20px"}],[A.SMART_SAFE_7400,{image:"unknown.png",padding:"20px"}],[A.SMART_SAFE_7401,{image:"unknown.png",padding:"20px"}],[A.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[A.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}]]);let i1=(()=>{var e;class t extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=J1(window.homebridge,"addAccessory"),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 Ve(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 Ve(function*(){return n.config?Promise.resolve(n.config):n.getPlatformConfig()})()}updateConfig(n,r){var a=this;return Ve(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 Ve(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 Ve(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).\u0275fac=function(n){return new(n||e)},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function vge(e,t){if(1&e){const i=A1();g(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),_(),g(3,"button",4),O("click",function(){return K(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. "),k(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."),_(),k(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),O("click",function(){return K(Y(i).$implicit.close("Login"))}),M(17,"Login with eufy"),_()()}}function _ge(e,t){1&e&&(g(0,"div",11)(1,"div",12),k(2,"div",13),g(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),g(7,"div",17),k(8,"div",18),_()()()(),k(9,"div",13),_()())}function Cge(e,t){if(1&e&&(g(0,"span",42),k(1,"fa-icon",43),_()),2&e){const i=E(3);C(1),b("icon",i.ignoreIcon)}}function yge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),k(5,"img",36),g(6,"span",37),k(7,"fa-icon",38),_(),T(8,Cge,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=E(2);let r;C(3),G4("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"),H4),$("style",n.getDevicePanelStyle(i),dn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),ht(i.cachedName?i.cachedName:i.displayName),C(2),Z2("(",i.uniqueId,")")}}function Mge(e,t){if(1&e&&(g(0,"span",42),k(1,"fa-icon",43),_()),2&e){const i=E(3);C(1),b("icon",i.ignoreIcon)}}function bge(e,t){if(1&e&&(g(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),k(5,"img",36),g(6,"span",37),k(7,"fa-icon",38),_(),T(8,Mge,2,1,"span",39),_()()()(),g(9,"span",40),M(10),_(),g(11,"span",41),M(12),_()()),2&e){const i=t.$implicit,n=E(2);let r;C(3),G4("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"),H4),$("style",n.getDevicePanelStyle(i),dn),C(2),b("icon",n.settingsIcon),C(1),b("ngIf",i.ignored),C(2),ht(i.cachedName?i.cachedName:i.displayName),C(2),Z2("(",i.uniqueId,")")}}function wge(e,t){if(1&e){const i=A1();g(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),O("click",function(){Y(i);const r=E(),a=R2(1);return K(r.openReloadModal(a))}),k(4,"fa-icon",22),_()(),g(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),_()()(),k(8,"p"),g(9,"span"),M(10,"Click on any device below to access its settings."),_(),k(11,"p"),g(12,"div",25)(13,"div",26),M(14," Stations "),_(),g(15,"div",27)(16,"div",19),T(17,yge,13,7,"div",28),_()()(),k(18,"p"),g(19,"div",25)(20,"div",26),M(21," Devices "),_(),g(22,"div",29)(23,"div",19),T(24,bge,13,7,"div",28),_()()(),k(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=E();C(4),b("icon",i.reloadIcon),C(13),b("ngForOf",i.stations),C(7),b("ngForOf",i.devices)}}let Hge=(()=>{var e;class t{constructor(n,r,a,s){this.modalService=n,this.pluginService=r,this.route=a,this.routerService=s,this.stations=[],this.devices=[],this.settingsIcon=hu,this.ignoreIcon=nH,this.reloadIcon=Iu,this.DeviceImage=Gu,this.closeResult=""}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 Ve(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===Jr.ESC?"by pressing ESC":n===Jr.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${n}`}getDevicePanelStyle(n){let r="";return n.ignored&&(r+="opacity: 0.2;"),Gu.get(n.type)?r+="padding:"+Gu.get(n.type)?.padding:r+="padding:20px",r}}return(e=t).\u0275fac=function(n){return new(n||e)(w(oy),w(i1),w(Sn),w(v2))},e.\u0275cmp=se({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&&(T(0,vge,18,0,"ng-template",null,0,D2),T(2,_ge,10,0,"div",1),T(3,wge,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:[Jt,T1,xn,xM],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})();class x1{constructor(t){this.pluginService=t,this.config={},this.pluginService.getConfig().then(i=>{this.config=i}).catch(i=>console.log("Could not get config in config interpreter: "+i))}getCameraConfig(t){var i=this;return Ve(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 Ve(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 Ve(function*(){let r=yield n.pluginService.getConfig();if(i||(r={...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 Vge=(()=>{var e;class t extends x1{constructor(n){super(n),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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-enable-detailed-logging"]],features:[ie],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),O("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:[g2,D1,y1],encapsulation:2}),t})(),Dge=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=10,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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-polling-interval-minutes"]],features:[ie],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),O("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),$("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ti,D1,y1],encapsulation:2}),t})(),zge=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=30,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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-livestream-duration-seconds"]],features:[ie],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),O("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),$("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ti,D1,y1],encapsulation:2}),t})(),Sge=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({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})(),xge=(()=>{var e;class t extends x1{constructor(n){super(n),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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-clean-cache"]],features:[ie],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),O("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:[g2,D1,y1],encapsulation:2}),t})();function Lge(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 Nge(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Ege(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Age(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}function Ige(e,t){1&e&&(g(0,"option",6),M(1,"Use global setting"),_()),2&e&&b("ngValue",void 0)}let Tge=(()=>{var e;class t extends x1{constructor(n){super(n),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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=1),r&&Object.prototype.hasOwnProperty.call(r,"hkAway")?n.hkAway=r.hkAway:n.accessory||(n.hkAway=0),r&&Object.prototype.hasOwnProperty.call(r,"hkNight")?n.hkNight=r.hkNight:n.accessory||(n.hkNight=3),r&&Object.prototype.hasOwnProperty.call(r,"hkOff")?n.hkOff=r.hkOff:n.accessory||(n.hkOff=63)})()}update(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[ie],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."),_(),k(3,"p"),T(4,Lge,2,0,"span",1),k(5,"p"),g(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),_(),g(9,"select",4),O("ngModelChange",function(s){return r.hkHome=s})("change",function(){return r.update()}),T(10,Nge,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),O("ngModelChange",function(s){return r.hkAway=s})("change",function(){return r.update()}),T(31,Ege,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),O("ngModelChange",function(s){return r.hkNight=s})("change",function(){return r.update()}),T(52,Age,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),O("ngModelChange",function(s){return r.hkOff=s})("change",function(){return r.update()}),T(73,Ige,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:[T1,b3,w3,yn,D1,y1],encapsulation:2}),t})(),Oge=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({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})(),Rge=(()=>{var e;class t extends x1{constructor(n){super(n),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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-omit-log-files"]],features:[ie],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),O("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:[g2,D1,y1],encapsulation:2}),t})();var kge=l1(7);function Pge(e,t){if(1&e&&(g(0,"div",7),M(1),_()),2&e){const i=E();C(1),Z2(" ",i.failureMessage," ")}}function Fge(e,t){1&e&&k(0,"span",10)}function Bge(e,t){1&e&&(g(0,"span"),M(1,"Download Logs"),_())}function Uge(e,t){1&e&&(g(0,"span"),M(1," Generating Log File..."),_())}function jge(e,t){if(1&e){const i=A1();g(0,"button",8),O("click",function(){return Y(i),K(E().downloadLogs())}),T(1,Fge,1,0,"span",9),T(2,Bge,2,0,"span",6),T(3,Uge,2,0,"span",6),_()}if(2&e){const i=E();$("disabled",!!i.isDownloading||null),C(1),b("ngIf",i.isDownloading),C(1),b("ngIf",!i.isDownloading),C(1),b("ngIf",i.isDownloading)}}function Gge(e,t){if(1&e){const i=A1();g(0,"a",11),O("click",function(){return Y(i),K(E().openLink())}),g(1,"span"),M(2,"Download Logs"),_()()}}function $ge(e,t){if(1&e&&(g(0,"small")(1,"i"),M(2),_()()),2&e){const i=E();C(2),Z2(" ",i.downloadMessage," ")}}function Wge(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."),k(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){this.router=n,this.zone=r,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(n=>{n instanceof Ma&&""!==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 Ve(function*(){try{n.isDownloading=!0;const r=yield window.homebridge.request("/downloadLogs"),a=kge.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).\u0275fac=function(n){return new(n||e)(w(v2),w(ye))},e.\u0275cmp=se({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),T(1,Pge,2,1,"div",1),g(2,"div",2)(3,"span",3),M(4,"Download Logs"),_(),T(5,jge,4,4,"button",4),T(6,Gge,3,0,"a",5),_(),T(7,$ge,3,1,"small",6),T(8,Wge,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:[T1],encapsulation:2}),t})(),Yge=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275cmp=se({type:e,selectors:[["app-advanced-config-options"]],decls:23,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),k(6,"app-edit-credentials")(7,"hr")(8,"app-polling-interval-minutes")(9,"hr")(10,"app-livestream-duration-seconds")(11,"hr")(12,"app-enable-detailed-logging")(13,"hr")(14,"app-omit-log-files")(15,"hr")(16,"app-clean-cache")(17,"hr")(18,"app-guard-modes-mapping")(19,"hr")(20,"app-download-logs")(21,"hr")(22,"app-reset-plugin"),_()())},dependencies:[xn,Vge,Dge,zge,Sge,xge,Tge,Oge,Rge,qge],encapsulation:2}),t})(),fL=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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 Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[ie],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),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()()()),2&n&&(C(3),Z2("Ignore ",r.accessory&&r.accessory.station?"Station":"Device",""),C(2),b("ngModel",r.value))},dependencies:[g2,D1,y1],encapsulation:2}),t})();function Kge(e,t){1&e&&(g(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),_()())}function Zge(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 Qge=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){n.accessory&&Ta.isDoorbell(n.accessory.type)&&(n.value=!0,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:this.value},this.accessory)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[ie],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),O("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"),_()()()(),T(10,Kge,3,0,"small",6),T(11,Zge,3,0,"small",6),_()),2&n&&(C(5),b("ngModel",r.value),$("disabled",!!r.disabled||null),C(5),b("ngIf",r.disabled),C(1),b("ngIf",!r.disabled))},dependencies:[T1,b3,w3,yn,D1,y1],encapsulation:2}),t})(),Jge=(()=>{var e;class t extends x1{constructor(n){super(n),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[ie],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),O("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),O("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:[g2,D1,y1],encapsulation:2}),t})(),Xge=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=false}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(function*(){const r=yield n.getCameraConfig(n.accessory?.uniqueId||"");r&&Object.prototype.hasOwnProperty.call(r,"unbridge")&&(n.value=r.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[ie],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),O("ngModelChange",function(s){return r.value=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.value))},dependencies:[g2,D1,y1],encapsulation:2}),t})(),eve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=false}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[ie],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),O("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)."),_(),k(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:[g2,D1,y1],encapsulation:2}),t})();function tve(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let nve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[ie],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),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),T(6,tve,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!"),k(10,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.talkbackIsEnabled&&r.value))},dependencies:[T1,g2,D1,y1],encapsulation:2}),t})(),ive=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1,this.samplerate=0}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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 Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[ie],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),O("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."),k(9,"br"),M(10," If you encounter problems try to disable this setting. "),_()(),k(11,"p"),g(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),_(),g(15,"div",5)(16,"select",6),O("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),$("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:[b3,w3,g2,yn,D1,y1],encapsulation:2}),t})(),rve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[ie],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),O("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)."),k(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:[g2,D1,y1],encapsulation:2}),t})();function ave(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."),k(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. "),k(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",6),M(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",7),M(15," Performance"),k(16,"br")(17,"fa-icon",7),M(18," Battery life"),k(19,"br"),_()()),2&e){const i=E();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 sve(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."),k(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. "),k(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",8),M(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",6),M(15," Performance"),k(16,"br")(17,"fa-icon",7),M(18," Battery life"),k(19,"br"),_()()),2&e){const i=E();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 ove(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."),k(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). "),k(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),k(10,"br")(11,"fa-icon",7),M(12," Up-to-date Snapshots (HomeKit View)"),k(13,"br")(14,"fa-icon",6),M(15," Performance"),k(16,"br")(17,"fa-icon",6),M(18," Battery life"),k(19,"br"),_()()),2&e){const i=E();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 cve=(()=>{var e;class t extends x1{constructor(n){super(n),this.plusIcon=bx,this.minusIcon=Wb,this.mediumIcon=mD,this.value=3}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[ie],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),O("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"),_()()()(),T(12,ave,20,4,"small",5),T(13,sve,20,4,"small",5),T(14,ove,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:[T1,b3,w3,yn,D1,y1,xM],encapsulation:2}),t})(),lve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=false}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[ie],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),O("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."),k(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:[g2,D1,y1],encapsulation:2}),t})(),uve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=false}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[ie],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),O("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."),k(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:[g2,D1,y1],encapsulation:2}),t})(),fve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=0,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[ie],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),O("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),O("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."),k(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),k(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),k(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),$("checked",r.value>0||null),C(6),b("ngModel",r.value),$("class",r.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},dependencies:[Wn,ti,D1,y1],encapsulation:2}),t})();function dve(e,t){1&e&&(g(0,"span")(1,"b"),M(2,"Advanced Video Config"),_()())}function hve(e,t){1&e&&(g(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),_()()())}function pve(e,t){if(1&e&&(g(0,"div"),M(1),_()),2&e){const i=E(2);C(1),Z2(" ",i.presetDescription," ")}}function mve(e,t){if(1&e){const i=A1();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. "),k(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."),k(3,"p"),g(4,"div",5)(5,"div",6)(6,"select",7),O("ngModelChange",function(r){return Y(i),K(E().preset=r)})("change",function(){return Y(i),K(E().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"),_()()()(),T(15,pve,2,1,"div",9),k(16,"p"),g(17,"div",10)(18,"div",11)(19,"input",12),O("ngModelChange",function(r){return Y(i),K(E().debug=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(20,"span",13),M(21,"ffmpeg debug"),_()(),g(22,"div",10)(23,"div",11)(24,"input",12),O("ngModelChange",function(r){return Y(i),K(E().useSeparateProcesses=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(25,"span",13),M(26,"use separate processes for video and audio"),_()(),g(27,"div",10)(28,"div",11)(29,"input",12),O("ngModelChange",function(r){return Y(i),K(E().readRate=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(30,"span",13),M(31,"readRate"),_()(),g(32,"div",10)(33,"div",11)(34,"input",14),O("change",function(){Y(i);const r=E();return r.vcodec=void 0===r.vcodec?"":void 0,K(r.update())}),_()(),g(35,"span",13),M(36,"vcodec"),_(),g(37,"input",15),O("ngModelChange",function(r){return Y(i),K(E().vcodec=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(38,"div",10)(39,"div",11)(40,"input",14),O("change",function(){Y(i);const r=E();return r.acodec=void 0===r.acodec?"":void 0,K(r.update())}),_()(),g(41,"span",13),M(42,"acodec"),_(),g(43,"input",16),O("ngModelChange",function(r){return Y(i),K(E().acodec=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(44,"div",10)(45,"div",11)(46,"input",14),O("change",function(){Y(i);const r=E();return r.videoFilter=void 0===r.videoFilter?"":void 0,K(r.update())}),_()(),g(47,"span",13),M(48,"videoFilter"),_(),g(49,"input",17),O("ngModelChange",function(r){return Y(i),K(E().videoFilter=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(50,"div",10)(51,"div",11)(52,"input",14),O("change",function(){Y(i);const r=E();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,K(r.update())}),_()(),g(53,"span",13),M(54,"encoderOptions"),_(),g(55,"input",18),O("ngModelChange",function(r){return Y(i),K(E().encoderOptions=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(56,"div",10)(57,"div",11)(58,"input",14),O("change",function(){Y(i);const r=E();return r.probeSize=void 0===r.probeSize?0:void 0,K(r.update())}),_()(),g(59,"span",13),M(60,"probeSize"),_(),g(61,"input",19),O("ngModelChange",function(r){return Y(i),K(E().probeSize=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(62,"div",10)(63,"div",11)(64,"input",14),O("change",function(){Y(i);const r=E();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,K(r.update())}),_()(),g(65,"span",13),M(66,"analyzeDuration"),_(),g(67,"input",19),O("ngModelChange",function(r){return Y(i),K(E().analyzeDuration=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(68,"div",10)(69,"div",11)(70,"input",14),O("change",function(){Y(i);const r=E();return r.maxStreams=void 0===r.maxStreams?0:void 0,K(r.update())}),_()(),g(71,"span",13),M(72,"maxStreams"),_(),g(73,"input",19),O("ngModelChange",function(r){return Y(i),K(E().maxStreams=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(74,"div",10)(75,"div",11)(76,"input",14),O("change",function(){Y(i);const r=E();return r.maxWidth=void 0===r.maxWidth?0:void 0,K(r.update())}),_()(),g(77,"span",13),M(78,"maxWidth"),_(),g(79,"input",19),O("ngModelChange",function(r){return Y(i),K(E().maxWidth=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(80,"div",10)(81,"div",11)(82,"input",14),O("change",function(){Y(i);const r=E();return r.maxHeight=void 0===r.maxHeight?0:void 0,K(r.update())}),_()(),g(83,"span",13),M(84,"maxHeight"),_(),g(85,"input",19),O("ngModelChange",function(r){return Y(i),K(E().maxHeight=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(86,"div",10)(87,"div",11)(88,"input",14),O("change",function(){Y(i);const r=E();return r.maxFPS=void 0===r.maxFPS?0:void 0,K(r.update())}),_()(),g(89,"span",13),M(90,"fps"),_(),g(91,"input",19),O("ngModelChange",function(r){return Y(i),K(E().maxFPS=r)})("change",function(){return Y(i),K(E().update())}),_()(),g(92,"div",10)(93,"div",11)(94,"input",14),O("change",function(){Y(i);const r=E();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,K(r.update())}),_()(),g(95,"span",13),M(96,"bitrate"),_(),g(97,"input",19),O("ngModelChange",function(r){return Y(i),K(E().maxBitrate=r)})("change",function(){return Y(i),K(E().update())}),_()()}if(2&e){const i=E();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),$("disabled",void 0===i.vcodec||null),C(3),b("checked",void 0!==i.acodec||null),C(3),b("ngModel",i.acodec),$("disabled",void 0===i.acodec||null),C(3),b("checked",void 0!==i.videoFilter||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.videoFilter),$("disabled",void 0===i.videoFilter||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.encoderOptions||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.encoderOptions),$("disabled",void 0===i.encoderOptions||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.probeSize||null),C(3),b("ngModel",i.probeSize),$("disabled",void 0===i.probeSize||null),C(3),b("checked",void 0!==i.analyzeDuration||null),C(3),b("ngModel",i.analyzeDuration),$("disabled",void 0===i.analyzeDuration||null),C(3),b("checked",void 0!==i.maxStreams||null),C(3),b("ngModel",i.maxStreams),$("disabled",void 0===i.maxStreams||null),C(3),b("checked",void 0!==i.maxWidth||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.maxWidth),$("disabled",void 0===i.maxWidth||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxHeight||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.maxHeight),$("disabled",void 0===i.maxHeight||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxFPS||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.maxFPS),$("disabled",void 0===i.maxFPS||"copy"===i.vcodec||null),C(3),b("checked",void 0!==i.maxBitrate||null),$("disabled","copy"===i.vcodec||null),C(1),$("style","copy"===i.vcodec?"text-decoration: line-through; color: lightgray;":null,dn),C(2),b("ngModel",i.maxBitrate),$("disabled",void 0===i.maxBitrate||"copy"===i.vcodec||null)}}let gve=(()=>{var e;class t extends x1{constructor(n){super(n),this.debug=void 0,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.preset=0}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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 Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[ie],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"),T(3,dve,3,0,"ng-template",1),T(4,hve,4,0,"ng-template",2),T(5,mve,98,54,"ng-template",3),_()())},dependencies:[T1,b3,w3,Wn,ti,g2,yn,D1,y1,P5,ic,O5,R5,nc,k5],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 vve(e,t){1&e&&(g(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),_())}let _ve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[ie],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),O("ngModelChange",function(s){return r.value=s})("change",function(){return r.update()}),_()()(),T(6,vve,2,0,"div",4),g(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),k(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."),k(12,"br"),_()()()),2&n&&(C(5),b("ngModel",r.value),C(1),b("ngIf",r.rtspIsEnabled&&r.value))},dependencies:[T1,g2,D1,y1],encapsulation:2}),t})();function Cve(e,t){1&e&&k(0,"hr")}function yve(e,t){1&e&&k(0,"app-rtsp-streaming",6),2&e&&b("accessory",E(3).accessory)}function Mve(e,t){1&e&&k(0,"hr")}function bve(e,t){1&e&&k(0,"app-talkback",6),2&e&&b("accessory",E(3).accessory)}function wve(e,t){if(1&e&&(g(0,"div"),k(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),T(5,Cve,1,0,"hr",2),T(6,yve,1,1,"app-rtsp-streaming",7),k(7,"hr")(8,"app-enable-audio",6),T(9,Mve,1,0,"hr",2),T(10,bve,1,1,"app-talkback",7),_()),2&e){const i=E(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 Hve(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),k(8,"app-ignore-accessory",6),T(9,wve,11,7,"div",2),_()()),2&e){const i=E();C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(1),b("ngIf",i.isCamera)}}function Vve(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),k(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),_()()),2&e){const i=E(2);C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory)}}function Dve(e,t){1&e&&k(0,"hr")}function zve(e,t){1&e&&k(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",E(3).accessory)}function Sve(e,t){if(1&e&&(g(0,"div"),k(1,"app-force-refreshsnap",6),_()),2&e){const i=E(3);C(1),b("accessory",i.accessory)}}function xve(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),k(8,"app-snapshot-handling-method",6),T(9,Dve,1,0,"hr",2),T(10,zve,1,1,"app-immediate-notification-on-ring",7),k(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),T(15,Sve,2,1,"div",2),_()()),2&e){const i=E(2);C(6),W4("",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 Lve(e,t){if(1&e&&(g(0,"div"),k(1,"p"),T(2,Vve,11,4,"div",1),k(3,"p"),T(4,xve,16,8,"div",1),k(5,"p")(6,"app-advanced-videoconfig",6),_()),2&e){const i=E();C(2),b("ngIf",i.accessory),C(2),b("ngIf",i.accessory),C(2),b("accessory",i.accessory)}}let Nve=(()=>{var e;class t extends x1{constructor(n,r){super(n),this.route=r,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(n),this.accessory&&(this.isDoorbell=Ta.isDoorbell(this.accessory.type),this.isCamera=Ta.isCamera(this.accessory.type),this.supportsRTSP=Ta.supportsRTSP(this.accessory.type),this.supportsTalkback=Ta.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).\u0275fac=function(n){return new(n||e)(w(i1),w(Sn))},e.\u0275cmp=se({type:e,selectors:[["app-camera-config-options"]],features:[ie],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"),_(),T(2,Hve,10,4,"div",1),T(3,Lve,7,3,"div",2)),2&n&&(C(2),b("ngIf",r.accessory),C(1),b("ngIf",r.isCamera))},dependencies:[T1,xn,fL,Qge,Jge,Xge,eve,nve,ive,rve,cve,lve,uve,fve,gve,_ve],encapsulation:2}),t})();var $u=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",e}($u||{});const Eve={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 Ave=(()=>{var e;class t{constructor(n){this.pluginService=n}getCredentials(){var n=this;return Ve(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 Ve(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 Ve(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).\u0275fac=function(n){return new(n||e)(W(i1))},e.\u0275prov=G({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Ive(e,t){1&e&&(l4(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),u4(),k(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 Tve(e,t){if(1&e){const i=A1();g(0,"p",10)(1,"ngb-alert",11),O("closed",function(){return Y(i),K(E().resetLoginFailed())}),l4(),g(2,"svg",12),k(3,"use",13),_(),u4(),g(4,"strong"),M(5,"Login was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}function Ove(e,t){if(1&e&&(g(0,"div",32),l4(),g(1,"svg",33),k(2,"use",34),_(),u4(),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){E(2);const i=R2(6);C(5),b("autoClose","outside")("ngbPopover",i)}}function Rve(e,t){1&e&&(M(0,"You can leave this field blank."),k(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 kve(e,t){if(1&e&&(g(0,"option"),M(1),_()),2&e){const i=t.$implicit,n=E(2);$("value",i.short)("selected",n.credentials.country===i.short||null),C(1),Z2("",i.long," ")}}function Pve(e,t){1&e&&k(0,"span",37)}function Fve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Bve(e,t){if(1&e){const i=A1();g(0,"div"),T(1,Ove,7,2,"div",14),g(2,"div",15)(3,"input",16),O("ngModelChange",function(r){return Y(i),K(E().credentials.username=r)}),_(),g(4,"label",17),M(5,"Email address"),_()(),k(6,"p"),g(7,"div",15)(8,"input",18),O("ngModelChange",function(r){return Y(i),K(E().credentials.password=r)}),_(),g(9,"label",19),M(10,"Password"),_()(),k(11,"p"),g(12,"div",15),T(13,Rve,6,0,"ng-template",null,20,D2),g(15,"input",21),O("ngModelChange",function(r){return Y(i),K(E().credentials.deviceName=r)}),_(),g(16,"label",22),M(17,"Device Name"),_()(),g(18,"div",23)(19,"div",24)(20,"select",25),O("ngModelChange",function(r){return Y(i),K(E().credentials.country=r)}),T(21,kve,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. "),_()()(),k(25,"span",27),g(26,"div",28)(27,"button",29),O("click",function(){return Y(i),K(E().login())}),T(28,Pve,1,0,"span",30),M(29," Login "),T(30,Fve,2,0,"span",9),_(),g(31,"button",31),O("click",function(){return Y(i),K(E().cancelLogin())}),M(32," Cancel "),_()()()()}if(2&e){const i=R2(14),n=E();C(1),b("ngIf",!n.firstLoginAssumed),C(2),b("ngModel",n.credentials.username),$("class",n.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.password),$("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(7),b("ngModel",n.credentials.deviceName)("ngbTooltip",i)("closeDelay",2500),$("class",n.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!n.loginInProgress||null),C(5),b("ngModel",n.credentials.country),$("disabled",!!n.loginInProgress||null),C(1),b("ngForOf",n.countries),C(6),$("disabled",!!n.loginInProgress||null),C(1),b("ngIf",n.loginInProgress),C(2),b("ngIf",n.loginInProgress),C(1),$("disabled",!!n.loginInProgress||null)}}function Uve(e,t){1&e&&k(0,"span",37)}function jve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function Gve(e,t){if(1&e){const i=A1();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),O("ngModelChange",function(r){return Y(i),K(E().otp=r)}),_(),g(6,"label",41),M(7,"2FA Code"),_()()(),g(8,"div",42)(9,"div",43)(10,"button",44),O("click",function(){return Y(i),K(E().login())}),T(11,Uve,1,0,"span",30),M(12," Verify "),T(13,jve,2,0,"span",9),_()()(),g(14,"div",6)(15,"div",43)(16,"button",31),O("click",function(){return Y(i),K(E().cancelLogin())}),M(17," Cancel "),_()()()()}if(2&e){const i=E();C(5),b("ngModel",i.otp),$("class",i.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),$("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),$("disabled",!!i.loginInProgress||null)}}function $ve(e,t){1&e&&k(0,"span",37)}function Wve(e,t){1&e&&(g(0,"span"),M(1,"..."),_())}function qve(e,t){if(1&e){const i=A1();g(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),_(),g(3,"div",42),k(4,"img",45),_(),g(5,"div",6)(6,"div",39)(7,"input",40),O("ngModelChange",function(r){return Y(i),K(E().captcha=r)}),_(),g(8,"label",41),M(9,"Captcha"),_()()(),g(10,"div",42)(11,"div",43)(12,"button",44),O("click",function(){return Y(i),K(E().login())}),T(13,$ve,1,0,"span",30),M(14," Verify "),T(15,Wve,2,0,"span",9),_()()(),g(16,"div",6)(17,"div",43)(18,"button",31),O("click",function(){return Y(i),K(E().cancelLogin())}),M(19," Cancel "),_()()()()}if(2&e){const i=E();C(4),b("src",i.captchaImageData,H4),C(3),b("ngModel",i.captcha),$("class",i.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),C(5),$("disabled",!!i.loginInProgress||null),C(1),b("ngIf",i.loginInProgress),C(2),b("ngIf",i.loginInProgress),C(3),$("disabled",!!i.loginInProgress||null)}}var _t=function(e){return e[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",e}(_t||{});let Yve=(()=>{var e;class t{constructor(n,r){this.loginService=n,this.routerService=r,this.countries=[],this.credentials={username:"",password:"",country:"US",deviceName:""},this.otp="",this.captcha="",this.captchaImageData="",this.captchaId="",this.loginInProgress=!1,this.loginFailed=!1,this.loginStep=_t.LOGIN,this.firstLoginAssumed=!1,this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0,this.captchaIsValid=!0}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(Eve).forEach(([n,r])=>{this.countries.push({short:n,long:r})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===_t.LOGIN&&this.loginWithCredentials(),this.loginStep===_t.TFA&&this.loginWithTFA(),this.loginStep===_t.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var n=this;return Ve(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 Ve(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 Ve(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===$u.TFA)return void(this.loginStep=_t.TFA);if(n&&n.failReason&&n.failReason===$u.CAPTCHA&&n.data&&n.data.id&&n.data.captcha)return this.loginStep=_t.CAPTCHA,this.captchaId=n.data.id,void(this.captchaImageData=n.data.captcha);this.loginStep=_t.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let n=!1;return this.loginStep===_t.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,n=!0),this.loginStep===_t.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,n=!0),this.loginStep===_t.TFA&&this.otp.length<6&&(this.otpIsValid=!1,n=!0),this.loginStep===_t.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,n=!0),n}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return(e=t).\u0275fac=function(n){return new(n||e)(w(Ave),w(v2))},e.\u0275cmp=se({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&&(l4(),g(0,"svg",0)(1,"symbol",1),k(2,"path",2),_(),g(3,"symbol",3),k(4,"path",4),_()(),T(5,Ive,4,0,"ng-template",null,5,D2),u4(),g(7,"div",6),T(8,Tve,6,1,"p",7),g(9,"div",8),T(10,Bve,33,19,"div",9),T(11,Gve,18,7,"div",9),T(12,qve,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:[Jt,T1,b3,w3,Wn,yn,D1,M5,y1,EC,HY,EY],encapsulation:2}),t})(),Kve=(()=>{var e;class t extends x1{constructor(n){super(n),this.value=[]}ngOnInit(){this.readValue()}readValue(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(i1))},e.\u0275cmp=se({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[ie],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),O("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),O("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),O("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),O("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."),k(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),k(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),k(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),k(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."),k(34,"br"),M(35," The native alarm delay setting is currently not supported. "),_()()()),2&n&&(C(7),$("checked",-1!==r.value.indexOf(0)||null),C(5),$("checked",-1!==r.value.indexOf(1)||null),C(5),$("checked",-1!==r.value.indexOf(2)||null),C(5),$("checked",-1!==r.value.indexOf(3)||null))},encapsulation:2}),t})();function Zve(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),k(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),_()()),2&e){const i=E();C(6),W4("",i.accessory.displayName," (",i.accessory.uniqueId,")"),C(2),b("accessory",i.accessory),C(2),b("accessory",i.accessory)}}function Jve(e,t){if(1&e){const i=A1();g(0,"p",7)(1,"ngb-alert",8),O("closed",function(){return Y(i),K(E().failed=!1)}),l4(),g(2,"svg",9),k(3,"use",10),_(),u4(),g(4,"strong"),M(5,"Reset was not successful!"),_()()()}2&e&&(C(1),b("dismissible",!0))}const Xve=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:Hge},{path:"advancedConfig",component:Yge},{path:"cameraConfig/:uniqueId",component:Nve},{path:"stationConfig/:uniqueId",component:(()=>{var e;class t{constructor(n,r){this.pluginService=n,this.route=r}ngOnInit(){const n=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(n)}}return(e=t).\u0275fac=function(n){return new(n||e)(w(i1),w(Sn))},e.\u0275cmp=se({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"),_(),T(2,Zve,11,4,"div",1)),2&n&&(C(2),b("ngIf",r.accessory))},dependencies:[T1,xn,fL,Kve],encapsulation:2}),t})()},{path:"login",component:Yve},{path:"reset",component:(()=>{var e;class t{constructor(n,r){this.routerService=n,this.pluginService=r,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var n=this;return Ve(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).\u0275fac=function(n){return new(n||e)(w(v2),w(i1))},e.\u0275cmp=se({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),T(1,Jve,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),O("click",function(){return r.cancel()}),M(7,"No"),_(),g(8,"button",6),O("click",function(){return r.resetEverything()}),M(9,"Do it!"),_()()()()),2&n&&(C(1),b("ngIf",r.failed),C(5),$("disabled",!!r.disabled||null),C(2),$("disabled",!!r.disabled||null))},dependencies:[T1,EC],encapsulation:2}),t})()},{path:"**",redirectTo:"/accessories"}];let e_e=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e}),e.\u0275inj=Ie({imports:[Ib.forRoot(Xve,{scrollPositionRestoration:"enabled"}),Ib]}),t})(),t_e=(()=>{var e;class t{}return(e=t).\u0275fac=function(n){return new(n||e)},e.\u0275mod=Pe({type:e,bootstrap:[KJ]}),e.\u0275inj=Ie({providers:[{provide:Gn,useClass:rv}],imports:[$U,tG,OY,e_e,SZ]}),t})();jU().bootstrapModule(t_e).catch(e=>console.error(e))},919:(q3,j2)=>{"use strict";j2.byteLength=function r1(ce){var Me=Ee(ce),m1=Me[1];return 3*(Me[0]+m1)/4-m1},j2.toByteArray=function R1(ce){var Me,d2,qe=Ee(ce),m1=qe[0],w1=qe[1],Qe=new u2(function L(ce,Me,qe){return 3*(Me+qe)/4-qe}(0,m1,w1)),f2=0,rt=w1>0?m1-4:m1;for(d2=0;d2<rt;d2+=4)Me=Z[ce.charCodeAt(d2)]<<18|Z[ce.charCodeAt(d2+1)]<<12|Z[ce.charCodeAt(d2+2)]<<6|Z[ce.charCodeAt(d2+3)],Qe[f2++]=Me>>16&255,Qe[f2++]=Me>>8&255,Qe[f2++]=255&Me;return 2===w1&&(Me=Z[ce.charCodeAt(d2)]<<2|Z[ce.charCodeAt(d2+1)]>>4,Qe[f2++]=255&Me),1===w1&&(Me=Z[ce.charCodeAt(d2)]<<10|Z[ce.charCodeAt(d2+1)]<<4|Z[ce.charCodeAt(d2+2)]>>2,Qe[f2++]=Me>>8&255,Qe[f2++]=255&Me),Qe},j2.fromByteArray=function K1(ce){for(var Me,qe=ce.length,m1=qe%3,w1=[],f2=0,rt=qe-m1;f2<rt;f2+=16383)w1.push(k1(ce,f2,f2+16383>rt?rt:f2+16383));return 1===m1?w1.push(l1[(Me=ce[qe-1])>>2]+l1[Me<<4&63]+"=="):2===m1&&w1.push(l1[(Me=(ce[qe-2]<<8)+ce[qe-1])>>10]+l1[Me>>4&63]+l1[Me<<2&63]+"="),w1.join("")};for(var l1=[],Z=[],u2=typeof Uint8Array<"u"?Uint8Array:Array,b1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=0;Ze<64;++Ze)l1[Ze]=b1[Ze],Z[b1.charCodeAt(Ze)]=Ze;function Ee(ce){var Me=ce.length;if(Me%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var qe=ce.indexOf("=");return-1===qe&&(qe=Me),[qe,qe===Me?0:4-qe%4]}function a1(ce){return l1[ce>>18&63]+l1[ce>>12&63]+l1[ce>>6&63]+l1[63&ce]}function k1(ce,Me,qe){for(var w1=[],Qe=Me;Qe<qe;Qe+=3)w1.push(a1((ce[Qe]<<16&16711680)+(ce[Qe+1]<<8&65280)+(255&ce[Qe+2])));return w1.join("")}Z["-".charCodeAt(0)]=62,Z["_".charCodeAt(0)]=63},7:(q3,j2,l1)=>{"use strict";const u2=l1(919),b1=l1(601),Ze="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;j2.lW=L,j2.h2=50;const De=2147483647;function r1(v){if(v>De)throw new RangeError('The value "'+v+'" is invalid for option "size"');const f=new Uint8Array(v);return Object.setPrototypeOf(f,L.prototype),f}function L(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 K1(v)}return R1(v,f,h)}function R1(v,f,h){if("string"==typeof v)return function ce(v,f){if(("string"!=typeof f||""===f)&&(f="utf8"),!L.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const h=0|rt(v,f);let y=r1(h);const D=y.write(v,f);return D!==h&&(y=y.slice(0,D)),y}(v,f);if(ArrayBuffer.isView(v))return function qe(v){if(at(v,Uint8Array)){const f=new Uint8Array(v);return m1(f.buffer,f.byteOffset,f.byteLength)}return Me(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(at(v,ArrayBuffer)||v&&at(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(v,SharedArrayBuffer)||v&&at(v.buffer,SharedArrayBuffer)))return m1(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 L.from(y,f,h);const D=function w1(v){if(L.isBuffer(v)){const f=0|Qe(v.length),h=r1(f);return 0===h.length||v.copy(h,0,0,f),h}return void 0!==v.length?"number"!=typeof v.length||r3(v.length)?r1(0):Me(v):"Buffer"===v.type&&Array.isArray(v.data)?Me(v.data):void 0}(v);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return L.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 a1(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 K1(v){return a1(v),r1(v<0?0:0|Qe(v))}function Me(v){const f=v.length<0?0:0|Qe(v.length),h=r1(f);for(let y=0;y<f;y+=1)h[y]=255&v[y];return h}function m1(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,L.prototype),y}function Qe(v){if(v>=De)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De.toString(16)+" bytes");return 0|v}function rt(v,f){if(L.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||at(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 D=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return ja(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*h;case"hex":return h>>>1;case"base64":return $a(v).length;default:if(D)return y?-1:ja(v).length;f=(""+f).toLowerCase(),D=!0}}function d2(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 V6(this,f,h);case"utf8":case"utf-8":return Pa(this,f,h);case"ascii":return Fa(this,f,h);case"latin1":case"binary":return H6(this,f,h);case"base64":return yt(this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D6(this,f,h);default:if(y)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),y=!0}}function Ct(v,f,h){const y=v[f];v[f]=v[h],v[h]=y}function ka(v,f,h,y,D){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=D?0:v.length-1),h<0&&(h=v.length+h),h>=v.length){if(D)return-1;h=v.length-1}else if(h<0){if(!D)return-1;h=0}if("string"==typeof f&&(f=L.from(f,y)),L.isBuffer(f))return 0===f.length?-1:Nn(v,f,h,y,D);if("number"==typeof f)return f&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,f,h):Uint8Array.prototype.lastIndexOf.call(v,f,h):Nn(v,[f],h,y,D);throw new TypeError("val must be string, number or Buffer")}function Nn(v,f,h,y,D){let Je,x=1,I=v.length,_e=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;x=2,I/=2,_e/=2,h/=2}function f1(d1,Fe){return 1===x?d1[Fe]:d1.readUInt16BE(Fe*x)}if(D){let d1=-1;for(Je=h;Je<I;Je++)if(f1(v,Je)===f1(f,-1===d1?0:Je-d1)){if(-1===d1&&(d1=Je),Je-d1+1===_e)return d1*x}else-1!==d1&&(Je-=Je-d1),d1=-1}else for(h+_e>I&&(h=I-_e),Je=h;Je>=0;Je--){let d1=!0;for(let Fe=0;Fe<_e;Fe++)if(f1(v,Je+Fe)!==f1(f,Fe)){d1=!1;break}if(d1)return Je}return-1}function Y3(v,f,h,y){h=Number(h)||0;const D=v.length-h;y?(y=Number(y))>D&&(y=D):y=D;const x=f.length;let I;for(y>x/2&&(y=x/2),I=0;I<y;++I){const _e=parseInt(f.substr(2*I,2),16);if(r3(_e))return I;v[h+I]=_e}return I}function b6(v,f,h,y){return An(ja(f,v.length-h),v,h,y)}function Vi(v,f,h,y){return An(function S6(v){const f=[];for(let h=0;h<v.length;++h)f.push(255&v.charCodeAt(h));return f}(f),v,h,y)}function w6(v,f,h,y){return An($a(f),v,h,y)}function Di(v,f,h,y){return An(function Ga(v,f){let h,y,D;const x=[];for(let I=0;I<v.length&&!((f-=2)<0);++I)h=v.charCodeAt(I),y=h>>8,D=h%256,x.push(D),x.push(y);return x}(f,v.length-h),v,h,y)}function yt(v,f,h){return u2.fromByteArray(0===f&&h===v.length?v:v.slice(f,h))}function Pa(v,f,h){h=Math.min(v.length,h);const y=[];let D=f;for(;D<h;){const x=v[D];let I=null,_e=x>239?4:x>223?3:x>191?2:1;if(D+_e<=h){let f1,Je,d1,Fe;switch(_e){case 1:x<128&&(I=x);break;case 2:f1=v[D+1],128==(192&f1)&&(Fe=(31&x)<<6|63&f1,Fe>127&&(I=Fe));break;case 3:f1=v[D+1],Je=v[D+2],128==(192&f1)&&128==(192&Je)&&(Fe=(15&x)<<12|(63&f1)<<6|63&Je,Fe>2047&&(Fe<55296||Fe>57343)&&(I=Fe));break;case 4:f1=v[D+1],Je=v[D+2],d1=v[D+3],128==(192&f1)&&128==(192&Je)&&128==(192&d1)&&(Fe=(15&x)<<18|(63&f1)<<12|(63&Je)<<6|63&d1,Fe>65535&&Fe<1114112&&(I=Fe))}}null===I?(I=65533,_e=1):I>65535&&(I-=65536,y.push(I>>>10&1023|55296),I=56320|1023&I),y.push(I),D+=_e}return function $e(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)}!(L.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(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}}),L.poolSize=8192,L.from=function(v,f,h){return R1(v,f,h)},Object.setPrototypeOf(L.prototype,Uint8Array.prototype),Object.setPrototypeOf(L,Uint8Array),L.alloc=function(v,f,h){return function k1(v,f,h){return a1(v),v<=0?r1(v):void 0!==f?"string"==typeof h?r1(v).fill(f,h):r1(v).fill(f):r1(v)}(v,f,h)},L.allocUnsafe=function(v){return K1(v)},L.allocUnsafeSlow=function(v){return K1(v)},L.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==L.prototype},L.compare=function(f,h){if(at(f,Uint8Array)&&(f=L.from(f,f.offset,f.byteLength)),at(h,Uint8Array)&&(h=L.from(h,h.offset,h.byteLength)),!L.isBuffer(f)||!L.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,D=h.length;for(let x=0,I=Math.min(y,D);x<I;++x)if(f[x]!==h[x]){y=f[x],D=h[x];break}return y<D?-1:D<y?1:0},L.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}},L.concat=function(f,h){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return L.alloc(0);let y;if(void 0===h)for(h=0,y=0;y<f.length;++y)h+=f[y].length;const D=L.allocUnsafe(h);let x=0;for(y=0;y<f.length;++y){let I=f[y];if(at(I,Uint8Array))x+I.length>D.length?(L.isBuffer(I)||(I=L.from(I)),I.copy(D,x)):Uint8Array.prototype.set.call(D,I,x);else{if(!L.isBuffer(I))throw new TypeError('"list" argument must be an Array of Buffers');I.copy(D,x)}x+=I.length}return D},L.byteLength=rt,L.prototype._isBuffer=!0,L.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)Ct(this,h,h+1);return this},L.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)Ct(this,h,h+3),Ct(this,h+1,h+2);return this},L.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)Ct(this,h,h+7),Ct(this,h+1,h+6),Ct(this,h+2,h+5),Ct(this,h+3,h+4);return this},L.prototype.toLocaleString=L.prototype.toString=function(){const f=this.length;return 0===f?"":0===arguments.length?Pa(this,0,f):d2.apply(this,arguments)},L.prototype.equals=function(f){if(!L.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f||0===L.compare(this,f)},L.prototype.inspect=function(){let f="";const h=j2.h2;return f=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(f+=" ... "),"<Buffer "+f+">"},Ze&&(L.prototype[Ze]=L.prototype.inspect),L.prototype.compare=function(f,h,y,D,x){if(at(f,Uint8Array)&&(f=L.from(f,f.offset,f.byteLength)),!L.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===D&&(D=0),void 0===x&&(x=this.length),h<0||y>f.length||D<0||x>this.length)throw new RangeError("out of range index");if(D>=x&&h>=y)return 0;if(D>=x)return-1;if(h>=y)return 1;if(this===f)return 0;let I=(x>>>=0)-(D>>>=0),_e=(y>>>=0)-(h>>>=0);const f1=Math.min(I,_e),Je=this.slice(D,x),d1=f.slice(h,y);for(let Fe=0;Fe<f1;++Fe)if(Je[Fe]!==d1[Fe]){I=Je[Fe],_e=d1[Fe];break}return I<_e?-1:_e<I?1:0},L.prototype.includes=function(f,h,y){return-1!==this.indexOf(f,h,y)},L.prototype.indexOf=function(f,h,y){return ka(this,f,h,y,!0)},L.prototype.lastIndexOf=function(f,h,y){return ka(this,f,h,y,!1)},L.prototype.write=function(f,h,y,D){if(void 0===h)D="utf8",y=this.length,h=0;else if(void 0===y&&"string"==typeof h)D=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===D&&(D="utf8")):(D=y,y=void 0)}const x=this.length-h;if((void 0===y||y>x)&&(y=x),f.length>0&&(y<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let I=!1;for(;;)switch(D){case"hex":return Y3(this,f,h,y);case"utf8":case"utf-8":return b6(this,f,h,y);case"ascii":case"latin1":case"binary":return Vi(this,f,h,y);case"base64":return w6(this,f,h,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Di(this,f,h,y);default:if(I)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),I=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const zi=4096;function Fa(v,f,h){let y="";h=Math.min(v.length,h);for(let D=f;D<h;++D)y+=String.fromCharCode(127&v[D]);return y}function H6(v,f,h){let y="";h=Math.min(v.length,h);for(let D=f;D<h;++D)y+=String.fromCharCode(v[D]);return y}function V6(v,f,h){const y=v.length;(!f||f<0)&&(f=0),(!h||h<0||h>y)&&(h=y);let D="";for(let x=f;x<h;++x)D+=Wa[v[x]];return D}function D6(v,f,h){const y=v.slice(f,h);let D="";for(let x=0;x<y.length-1;x+=2)D+=String.fromCharCode(y[x]+256*y[x+1]);return D}function ue(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 t2(v,f,h,y,D,x){if(!L.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>D||f<x)throw new RangeError('"value" argument is out of bounds');if(h+y>v.length)throw new RangeError("Index out of range")}function Si(v,f,h,y,D){Ua(f,y,D,v,h,7);let x=Number(f&BigInt(4294967295));v[h++]=x,x>>=8,v[h++]=x,x>>=8,v[h++]=x,x>>=8,v[h++]=x;let I=Number(f>>BigInt(32)&BigInt(4294967295));return v[h++]=I,I>>=8,v[h++]=I,I>>=8,v[h++]=I,I>>=8,v[h++]=I,h}function u1(v,f,h,y,D){Ua(f,y,D,v,h,7);let x=Number(f&BigInt(4294967295));v[h+7]=x,x>>=8,v[h+6]=x,x>>=8,v[h+5]=x,x>>=8,v[h+4]=x;let I=Number(f>>BigInt(32)&BigInt(4294967295));return v[h+3]=I,I>>=8,v[h+2]=I,I>>=8,v[h+1]=I,I>>=8,v[h]=I,h+8}function We(v,f,h,y,D,x){if(h+y>v.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Ba(v,f,h,y,D){return f=+f,h>>>=0,D||We(v,0,h,4),b1.write(v,f,h,y,23,4),h+4}function we(v,f,h,y,D){return f=+f,h>>>=0,D||We(v,0,h,8),b1.write(v,f,h,y,52,8),h+8}L.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 D=this.subarray(f,h);return Object.setPrototypeOf(D,L.prototype),D},L.prototype.readUintLE=L.prototype.readUIntLE=function(f,h,y){f>>>=0,h>>>=0,y||ue(f,h,this.length);let D=this[f],x=1,I=0;for(;++I<h&&(x*=256);)D+=this[f+I]*x;return D},L.prototype.readUintBE=L.prototype.readUIntBE=function(f,h,y){f>>>=0,h>>>=0,y||ue(f,h,this.length);let D=this[f+--h],x=1;for(;h>0&&(x*=256);)D+=this[f+--h]*x;return D},L.prototype.readUint8=L.prototype.readUInt8=function(f,h){return f>>>=0,h||ue(f,1,this.length),this[f]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(f,h){return f>>>=0,h||ue(f,2,this.length),this[f]|this[f+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(f,h){return f>>>=0,h||ue(f,2,this.length),this[f]<<8|this[f+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(f,h){return f>>>=0,h||ue(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+16777216*this[f+3]},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(f,h){return f>>>=0,h||ue(f,4,this.length),16777216*this[f]+(this[f+1]<<16|this[f+2]<<8|this[f+3])},L.prototype.readBigUInt64LE=Pt(function(f){En(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Z3(f,this.length-8);const D=h+256*this[++f]+65536*this[++f]+this[++f]*2**24,x=this[++f]+256*this[++f]+65536*this[++f]+y*2**24;return BigInt(D)+(BigInt(x)<<BigInt(32))}),L.prototype.readBigUInt64BE=Pt(function(f){En(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Z3(f,this.length-8);const D=h*2**24+65536*this[++f]+256*this[++f]+this[++f],x=this[++f]*2**24+65536*this[++f]+256*this[++f]+y;return(BigInt(D)<<BigInt(32))+BigInt(x)}),L.prototype.readIntLE=function(f,h,y){f>>>=0,h>>>=0,y||ue(f,h,this.length);let D=this[f],x=1,I=0;for(;++I<h&&(x*=256);)D+=this[f+I]*x;return x*=128,D>=x&&(D-=Math.pow(2,8*h)),D},L.prototype.readIntBE=function(f,h,y){f>>>=0,h>>>=0,y||ue(f,h,this.length);let D=h,x=1,I=this[f+--D];for(;D>0&&(x*=256);)I+=this[f+--D]*x;return x*=128,I>=x&&(I-=Math.pow(2,8*h)),I},L.prototype.readInt8=function(f,h){return f>>>=0,h||ue(f,1,this.length),128&this[f]?-1*(255-this[f]+1):this[f]},L.prototype.readInt16LE=function(f,h){f>>>=0,h||ue(f,2,this.length);const y=this[f]|this[f+1]<<8;return 32768&y?4294901760|y:y},L.prototype.readInt16BE=function(f,h){f>>>=0,h||ue(f,2,this.length);const y=this[f+1]|this[f]<<8;return 32768&y?4294901760|y:y},L.prototype.readInt32LE=function(f,h){return f>>>=0,h||ue(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},L.prototype.readInt32BE=function(f,h){return f>>>=0,h||ue(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},L.prototype.readBigInt64LE=Pt(function(f){En(f>>>=0,"offset");const h=this[f],y=this[f+7];return(void 0===h||void 0===y)&&Z3(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)}),L.prototype.readBigInt64BE=Pt(function(f){En(f>>>=0,"offset");const h=this[f],y=this[f+7];(void 0===h||void 0===y)&&Z3(f,this.length-8);const D=(h<<24)+65536*this[++f]+256*this[++f]+this[++f];return(BigInt(D)<<BigInt(32))+BigInt(this[++f]*2**24+65536*this[++f]+256*this[++f]+y)}),L.prototype.readFloatLE=function(f,h){return f>>>=0,h||ue(f,4,this.length),b1.read(this,f,!0,23,4)},L.prototype.readFloatBE=function(f,h){return f>>>=0,h||ue(f,4,this.length),b1.read(this,f,!1,23,4)},L.prototype.readDoubleLE=function(f,h){return f>>>=0,h||ue(f,8,this.length),b1.read(this,f,!0,52,8)},L.prototype.readDoubleBE=function(f,h){return f>>>=0,h||ue(f,8,this.length),b1.read(this,f,!1,52,8)},L.prototype.writeUintLE=L.prototype.writeUIntLE=function(f,h,y,D){f=+f,h>>>=0,y>>>=0,D||t2(this,f,h,y,Math.pow(2,8*y)-1,0);let x=1,I=0;for(this[h]=255&f;++I<y&&(x*=256);)this[h+I]=f/x&255;return h+y},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(f,h,y,D){f=+f,h>>>=0,y>>>=0,D||t2(this,f,h,y,Math.pow(2,8*y)-1,0);let x=y-1,I=1;for(this[h+x]=255&f;--x>=0&&(I*=256);)this[h+x]=f/I&255;return h+y},L.prototype.writeUint8=L.prototype.writeUInt8=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,1,255,0),this[h]=255&f,h+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,2,65535,0),this[h]=255&f,this[h+1]=f>>>8,h+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,2,65535,0),this[h]=f>>>8,this[h+1]=255&f,h+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(f,h,y){return f=+f,h>>>=0,y||t2(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},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(f,h,y){return f=+f,h>>>=0,y||t2(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},L.prototype.writeBigUInt64LE=Pt(function(f,h=0){return Si(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Pt(function(f,h=0){return u1(this,f,h,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(f,h,y,D){if(f=+f,h>>>=0,!D){const f1=Math.pow(2,8*y-1);t2(this,f,h,y,f1-1,-f1)}let x=0,I=1,_e=0;for(this[h]=255&f;++x<y&&(I*=256);)f<0&&0===_e&&0!==this[h+x-1]&&(_e=1),this[h+x]=(f/I>>0)-_e&255;return h+y},L.prototype.writeIntBE=function(f,h,y,D){if(f=+f,h>>>=0,!D){const f1=Math.pow(2,8*y-1);t2(this,f,h,y,f1-1,-f1)}let x=y-1,I=1,_e=0;for(this[h+x]=255&f;--x>=0&&(I*=256);)f<0&&0===_e&&0!==this[h+x+1]&&(_e=1),this[h+x]=(f/I>>0)-_e&255;return h+y},L.prototype.writeInt8=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,1,127,-128),f<0&&(f=255+f+1),this[h]=255&f,h+1},L.prototype.writeInt16LE=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,2,32767,-32768),this[h]=255&f,this[h+1]=f>>>8,h+2},L.prototype.writeInt16BE=function(f,h,y){return f=+f,h>>>=0,y||t2(this,f,h,2,32767,-32768),this[h]=f>>>8,this[h+1]=255&f,h+2},L.prototype.writeInt32LE=function(f,h,y){return f=+f,h>>>=0,y||t2(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},L.prototype.writeInt32BE=function(f,h,y){return f=+f,h>>>=0,y||t2(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},L.prototype.writeBigInt64LE=Pt(function(f,h=0){return Si(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Pt(function(f,h=0){return u1(this,f,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeFloatLE=function(f,h,y){return Ba(this,f,h,!0,y)},L.prototype.writeFloatBE=function(f,h,y){return Ba(this,f,h,!1,y)},L.prototype.writeDoubleLE=function(f,h,y){return we(this,f,h,!0,y)},L.prototype.writeDoubleBE=function(f,h,y){return we(this,f,h,!1,y)},L.prototype.copy=function(f,h,y,D){if(!L.isBuffer(f))throw new TypeError("argument should be a Buffer");if(y||(y=0),!D&&0!==D&&(D=this.length),h>=f.length&&(h=f.length),h||(h=0),D>0&&D<y&&(D=y),D===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(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),f.length-h<D-y&&(D=f.length-h+y);const x=D-y;return this===f&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(h,y,D):Uint8Array.prototype.set.call(f,this.subarray(y,D),h),x},L.prototype.fill=function(f,h,y,D){if("string"==typeof f){if("string"==typeof h?(D=h,h=0,y=this.length):"string"==typeof y&&(D=y,y=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!L.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===f.length){const I=f.charCodeAt(0);("utf8"===D&&I<128||"latin1"===D)&&(f=I)}}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 x;if(h>>>=0,y=void 0===y?this.length:y>>>0,f||(f=0),"number"==typeof f)for(x=h;x<y;++x)this[x]=f;else{const I=L.isBuffer(f)?f:L.from(f,D),_e=I.length;if(0===_e)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(x=0;x<y-h;++x)this[x+h]=I[x%_e]}return this};const kt={};function xi(v,f,h){kt[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(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${v}]: ${this.message}`}}}function K3(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 Ua(v,f,h,y,D,x){if(v>h||v<f){const I="bigint"==typeof f?"n":"";let _e;throw _e=x>3?0===f||f===BigInt(0)?`>= 0${I} and < 2${I} ** ${8*(x+1)}${I}`:`>= -(2${I} ** ${8*(x+1)-1}${I}) and < 2 ** ${8*(x+1)-1}${I}`:`>= ${f}${I} and <= ${h}${I}`,new kt.ERR_OUT_OF_RANGE("value",_e,v)}!function z6(v,f,h){En(f,"offset"),(void 0===v[f]||void 0===v[f+h])&&Z3(f,v.length-(h+1))}(y,D,x)}function En(v,f){if("number"!=typeof v)throw new kt.ERR_INVALID_ARG_TYPE(f,"number",v)}function Z3(v,f,h){throw Math.floor(v)!==v?(En(v,h),new kt.ERR_OUT_OF_RANGE(h||"offset","an integer",v)):f<0?new kt.ERR_BUFFER_OUT_OF_BOUNDS:new kt.ERR_OUT_OF_RANGE(h||"offset",`>= ${h?1:0} and <= ${f}`,v)}xi("ERR_BUFFER_OUT_OF_BOUNDS",function(v){return v?`${v} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),xi("ERR_INVALID_ARG_TYPE",function(v,f){return`The "${v}" argument must be of type number. Received type ${typeof f}`},TypeError),xi("ERR_OUT_OF_RANGE",function(v,f,h){let y=`The value of "${v}" is out of range.`,D=h;return Number.isInteger(h)&&Math.abs(h)>2**32?D=K3(String(h)):"bigint"==typeof h&&(D=String(h),(h>BigInt(2)**BigInt(32)||h<-(BigInt(2)**BigInt(32)))&&(D=K3(D)),D+="n"),y+=` It must be ${f}. Received ${D}`,y},RangeError);const Zu=/[^+/0-9A-Za-z-_]/g;function ja(v,f){let h;f=f||1/0;const y=v.length;let D=null;const x=[];for(let I=0;I<y;++I){if(h=v.charCodeAt(I),h>55295&&h<57344){if(!D){if(h>56319){(f-=3)>-1&&x.push(239,191,189);continue}if(I+1===y){(f-=3)>-1&&x.push(239,191,189);continue}D=h;continue}if(h<56320){(f-=3)>-1&&x.push(239,191,189),D=h;continue}h=65536+(D-55296<<10|h-56320)}else D&&(f-=3)>-1&&x.push(239,191,189);if(D=null,h<128){if((f-=1)<0)break;x.push(h)}else if(h<2048){if((f-=2)<0)break;x.push(h>>6|192,63&h|128)}else if(h<65536){if((f-=3)<0)break;x.push(h>>12|224,h>>6&63|128,63&h|128)}else{if(!(h<1114112))throw new Error("Invalid code point");if((f-=4)<0)break;x.push(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}}return x}function $a(v){return u2.toByteArray(function Qu(v){if((v=(v=v.split("=")[0]).trim().replace(Zu,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function An(v,f,h,y){let D;for(D=0;D<y&&!(D+h>=f.length||D>=v.length);++D)f[D+h]=v[D];return D}function at(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 Wa=function(){const v="0123456789abcdef",f=new Array(256);for(let h=0;h<16;++h){const y=16*h;for(let D=0;D<16;++D)f[y+D]=v[h]+v[D]}return f}();function Pt(v){return typeof BigInt>"u"?x6:v}function x6(){throw new Error("BigInt not supported")}},601:(q3,j2)=>{j2.read=function(l1,Z,u2,b1,Ze){var De,Ee,r1=8*Ze-b1-1,L=(1<<r1)-1,R1=L>>1,a1=-7,k1=u2?Ze-1:0,K1=u2?-1:1,ce=l1[Z+k1];for(k1+=K1,De=ce&(1<<-a1)-1,ce>>=-a1,a1+=r1;a1>0;De=256*De+l1[Z+k1],k1+=K1,a1-=8);for(Ee=De&(1<<-a1)-1,De>>=-a1,a1+=b1;a1>0;Ee=256*Ee+l1[Z+k1],k1+=K1,a1-=8);if(0===De)De=1-R1;else{if(De===L)return Ee?NaN:1/0*(ce?-1:1);Ee+=Math.pow(2,b1),De-=R1}return(ce?-1:1)*Ee*Math.pow(2,De-b1)},j2.write=function(l1,Z,u2,b1,Ze,De){var Ee,r1,L,R1=8*De-Ze-1,a1=(1<<R1)-1,k1=a1>>1,K1=23===Ze?Math.pow(2,-24)-Math.pow(2,-77):0,ce=b1?0:De-1,Me=b1?1:-1,qe=Z<0||0===Z&&1/Z<0?1:0;for(Z=Math.abs(Z),isNaN(Z)||Z===1/0?(r1=isNaN(Z)?1:0,Ee=a1):(Ee=Math.floor(Math.log(Z)/Math.LN2),Z*(L=Math.pow(2,-Ee))<1&&(Ee--,L*=2),(Z+=Ee+k1>=1?K1/L:K1*Math.pow(2,1-k1))*L>=2&&(Ee++,L/=2),Ee+k1>=a1?(r1=0,Ee=a1):Ee+k1>=1?(r1=(Z*L-1)*Math.pow(2,Ze),Ee+=k1):(r1=Z*Math.pow(2,k1-1)*Math.pow(2,Ze),Ee=0));Ze>=8;l1[u2+ce]=255&r1,ce+=Me,r1/=256,Ze-=8);for(Ee=Ee<<Ze|r1,R1+=Ze;R1>0;l1[u2+ce]=255&Ee,ce+=Me,Ee/=256,R1-=8);l1[u2+ce-Me]|=128*qe}}},q3=>{q3(q3.s=574)}]);
|