homebridge-eufy-security 2.2.1 → 2.2.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.
@@ -0,0 +1 @@
1
+ (self.webpackChunkconfig_ui=self.webpackChunkconfig_ui||[]).push([[179],{623:(Dt,N3,r1)=>{"use strict";function K(e){return"function"==typeof e}function n3(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const p1=n3(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function W2(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class H2{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const a of t)a.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(K(i))try{i()}catch(a){n=a instanceof p1?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{x(a)}catch(o){n=null!=n?n:[],o instanceof p1?n=[...n,...o.errors]:n.push(o)}}if(n)throw new p1(n)}}add(n){var t;if(n&&n!==this)if(this.closed)x(n);else{if(n instanceof H2){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&W2(t,n)}remove(n){const{_finalizers:t}=this;t&&W2(t,n),n instanceof H2&&n._removeParent(this)}}H2.EMPTY=(()=>{const e=new H2;return e.closed=!0,e})();const x2=H2.EMPTY;function t1(e){return e instanceof H2||e&&"closed"in e&&K(e.remove)&&K(e.add)&&K(e.unsubscribe)}function x(e){K(e)?e():e.unsubscribe()}const z1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},n1={setTimeout(e,n,...t){const{delegate:i}=n1;return(null==i?void 0:i.setTimeout)?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=n1;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function x1(e){n1.setTimeout(()=>{const{onUnhandledError:n}=z1;if(!n)throw e;n(e)})}function I1(){}const n2=u1("C",void 0,void 0);function u1(e,n,t){return{kind:e,value:n,error:t}}let g1=null;function q2(e){if(z1.useDeprecatedSynchronousErrorHandling){const n=!g1;if(n&&(g1={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=g1;if(g1=null,t)throw i}}else e()}class W3 extends H2{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,t1(n)&&n.add(this)):this.destination=Ei}static create(n,t,i){return new Be(n,t,i)}next(n){this.isStopped?G6(function B2(e){return u1("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?G6(function _2(e){return u1("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?G6(n2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const a3=Function.prototype.bind;function a4(e,n){return a3.call(e,n)}class In{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){St(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){St(i)}else St(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){St(t)}}}class Be extends W3{constructor(n,t,i){let r;if(super(),K(n)||!n)r={next:null!=n?n:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0};else{let a;this&&z1.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&a4(n.next,a),error:n.error&&a4(n.error,a),complete:n.complete&&a4(n.complete,a)}):r=n}this.destination=new In(r)}}function St(e){z1.useDeprecatedSynchronousErrorHandling?function r3(e){z1.useDeprecatedSynchronousErrorHandling&&g1&&(g1.errorThrown=!0,g1.error=e)}(e):x1(e)}function G6(e,n){const{onStoppedNotification:t}=z1;t&&n1.setTimeout(()=>t(e,n))}const Ei={closed:!0,next:I1,error:function xi(e){throw e},complete:I1},$6="function"==typeof Symbol&&Symbol.observable||"@@observable";function o4(e){return e}let k2=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const a=function ki(e){return e&&e instanceof W3||function Ti(e){return e&&K(e.next)&&K(e.error)&&K(e.complete)}(e)&&t1(e)}(t)?t:new Be(t,i,r);return q2(()=>{const{operator:o,source:s}=this;a.add(o?o.call(a,s):s?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=On(i))((r,a)=>{const o=new Be({next:s=>{try{t(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:r});this.subscribe(o)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[$6](){return this}pipe(...t){return function W6(e){return 0===e.length?o4:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=On(t))((i,r)=>{let a;this.subscribe(o=>a=o,o=>r(o),()=>i(a))})}}return e.create=n=>new e(n),e})();function On(e){var n;return null!==(n=null!=e?e:z1.Promise)&&void 0!==n?n:Promise}const Ii=n3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let C2=(()=>{class e extends k2{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new q1(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new Ii}next(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){q2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:a}=this;return i||r?x2:(this.currentObservers=null,a.push(t),new H2(()=>{this.currentObservers=null,W2(a,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:a}=this;i?t.error(r):a&&t.complete()}asObservable(){const t=new k2;return t.source=this,t}}return e.create=(n,t)=>new q1(n,t),e})();class q1 extends C2{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:x2}}function q6(e){return K(null==e?void 0:e.lift)}function a1(e){return n=>{if(q6(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function O2(e,n,t,i,r){return new Oi(e,n,t,i,r)}class Oi extends W3{constructor(n,t,i,r,a,o){super(n),this.onFinalize=a,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(c){n.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function m2(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>{i.next(e.call(n,a,r++))}))})}function w2(e){return this instanceof w2?(this.v=e,this):new w2(e)}function K2(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(g){return new Promise(function(V,H){a.push([h,g,V,H])>1||s(h,g)})})}function s(h,g){try{!function c(h){h.value instanceof w2?Promise.resolve(h.value.v).then(l,u):f(a[0][2],h)}(i[h](g))}catch(V){f(a[0][3],V)}}function l(h){s("next",h)}function u(h){s("throw",h)}function f(h,g){h(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}function o1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function y(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,c){!function r(a,o,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},o)}(s,c,(o=e[a](o)).done,o.value)})}}}const Bi=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j9(e){return K(null==e?void 0:e.then)}function G9(e){return K(e[$6])}function $9(e){return Symbol.asyncIterator&&K(null==e?void 0:e[Symbol.asyncIterator])}function W9(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 q9=function Sw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function K9(e){return K(null==e?void 0:e[q9])}function Y9(e){return K2(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield w2(t.read());if(r)return yield w2(void 0);yield yield w2(i)}}finally{t.releaseLock()}})}function Q9(e){return K(null==e?void 0:e.getReader)}function o3(e){if(e instanceof k2)return e;if(null!=e){if(G9(e))return function Nw(e){return new k2(n=>{const t=e[$6]();if(K(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Bi(e))return function zw(e){return new k2(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(j9(e))return function xw(e){return new k2(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,x1)})}(e);if($9(e))return Z9(e);if(K9(e))return function Ew(e){return new k2(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Q9(e))return function Aw(e){return Z9(Y9(e))}(e)}throw W9(e)}function Z9(e){return new k2(n=>{(function Tw(e,n){var t,i,r,a;return function Pi(e,n,t,i){return new(t||(t=Promise))(function(a,o){function s(u){try{l(i.next(u))}catch(f){o(f)}}function c(u){try{l(i.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):function r(a){return a instanceof t?a:new t(function(o){o(a)})}(u.value).then(s,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=o1(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(a=t.return)&&(yield a.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function $4(e,n,t,i=0,r=!1){const a=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!r)return a}function b1(e,n,t=1/0){return K(n)?b1((i,r)=>m2((a,o)=>n(i,a,r,o))(o3(e(i,r))),t):("number"==typeof n&&(t=n),a1((i,r)=>function kw(e,n,t,i,r,a,o,s){const c=[];let l=0,u=0,f=!1;const h=()=>{f&&!c.length&&!l&&n.complete()},g=H=>l<i?V(H):c.push(H),V=H=>{a&&n.next(H),l++;let N=!1;o3(t(H,u++)).subscribe(O2(n,z=>{null==r||r(z),a?g(z):n.next(z)},()=>{N=!0},void 0,()=>{if(N)try{for(l--;c.length&&l<i;){const z=c.shift();o?$4(n,o,()=>V(z)):V(z)}h()}catch(z){n.error(z)}}))};return e.subscribe(O2(n,g,()=>{f=!0,h()})),()=>{null==s||s()}}(i,r,e,t)))}function Q6(e=1/0){return b1(o4,e)}const c4=new k2(e=>e.complete());function J9(e){return e&&K(e.schedule)}function Ui(e){return e[e.length-1]}function Bn(e){return K(Ui(e))?e.pop():void 0}function Z6(e){return J9(Ui(e))?e.pop():void 0}function X9(e,n=0){return a1((t,i)=>{t.subscribe(O2(i,r=>$4(i,e,()=>i.next(r),n),()=>$4(i,e,()=>i.complete(),n),r=>$4(i,e,()=>i.error(r),n)))})}function ec(e,n=0){return a1((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function tc(e,n){if(!e)throw new Error("Iterable cannot be null");return new k2(t=>{$4(t,n,()=>{const i=e[Symbol.asyncIterator]();$4(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function G1(e,n){return n?function jw(e,n){if(null!=e){if(G9(e))return function Rw(e,n){return o3(e).pipe(ec(n),X9(n))}(e,n);if(Bi(e))return function Fw(e,n){return new k2(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(j9(e))return function Pw(e,n){return o3(e).pipe(ec(n),X9(n))}(e,n);if($9(e))return tc(e,n);if(K9(e))return function Bw(e,n){return new k2(t=>{let i;return $4(t,n,()=>{i=e[q9](),$4(t,n,()=>{let r,a;try{({value:r,done:a}=i.next())}catch(o){return void t.error(o)}a?t.complete():t.next(r)},0,!0)}),()=>K(null==i?void 0:i.return)&&i.return()})}(e,n);if(Q9(e))return function Uw(e,n){return tc(Y9(e),n)}(e,n)}throw W9(e)}(e,n):o3(e)}function nc(...e){const n=Z6(e),t=function Ow(e,n){return"number"==typeof Ui(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?o3(i[0]):Q6(t)(G1(i,n)):c4}function Y1(e){return e<=0?()=>c4:a1((n,t)=>{let i=0;n.subscribe(O2(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function ic(e={}){const{connector:n=(()=>new C2),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return a=>{let o=null,s=null,c=null,l=0,u=!1,f=!1;const h=()=>{null==s||s.unsubscribe(),s=null},g=()=>{h(),o=c=null,u=f=!1},V=()=>{const H=o;g(),null==H||H.unsubscribe()};return a1((H,N)=>{l++,!f&&!u&&h();const z=c=null!=c?c:n();N.add(()=>{l--,0===l&&!f&&!u&&(s=ji(V,r))}),z.subscribe(N),o||(o=new Be({next:w=>z.next(w),error:w=>{f=!0,h(),s=ji(g,t,w),z.error(w)},complete:()=>{u=!0,h(),s=ji(g,i),z.complete()}}),G1(H).subscribe(o))})(a)}}function ji(e,n,...t){return!0===n?(e(),null):!1===n?null:n(...t).pipe(Y1(1)).subscribe(()=>e())}function U2(e){for(let n in e)if(e[n]===U2)return n;throw Error("Could not find renamed property on target object.")}function Gi(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function I2(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I2).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function $i(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Gw=U2({__forward_ref__:U2});function z2(e){return e.__forward_ref__=z2,e.toString=function(){return I2(this())},e}function d2(e){return rc(e)?e():e}function rc(e){return"function"==typeof e&&e.hasOwnProperty(Gw)&&e.__forward_ref__===z2}class S2 extends Error{constructor(n,t){super(function Wi(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function c2(e){return"string"==typeof e?e:null==e?"":String(e)}function Q1(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():c2(e)}function Un(e,n){const t=n?` in ${n}`:"";throw new S2(-201,`No provider for ${Q1(e)} found${t}`)}function x3(e,n){null==e&&function j2(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function Z(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function E2(e){return{providers:e.providers||[],imports:e.imports||[]}}function qi(e){return ac(e,jn)||ac(e,sc)}function ac(e,n){return e.hasOwnProperty(n)?e[n]:null}function oc(e){return e&&(e.hasOwnProperty(Ki)||e.hasOwnProperty(Zw))?e[Ki]:null}const jn=U2({\u0275prov:U2}),Ki=U2({\u0275inj:U2}),sc=U2({ngInjectableDef:U2}),Zw=U2({ngInjectorDef:U2});var a2=(()=>((a2=a2||{})[a2.Default=0]="Default",a2[a2.Host=1]="Host",a2[a2.Self=2]="Self",a2[a2.SkipSelf=4]="SkipSelf",a2[a2.Optional=8]="Optional",a2))();let Yi;function me(e){const n=Yi;return Yi=e,n}function cc(e,n,t){const i=qi(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&a2.Optional?null:void 0!==n?n:void Un(I2(e),"Injector")}function ve(e){return{toString:e}.toString()}var l4=(()=>((l4=l4||{})[l4.OnPush=0]="OnPush",l4[l4.Default=1]="Default",l4))(),D4=(()=>{return(e=D4||(D4={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",D4;var e})();const Xw="undefined"!=typeof globalThis&&globalThis,eD="undefined"!=typeof window&&window,tD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R2=Xw||"undefined"!=typeof global&&global||eD||tD,Nt={},G2=[],Gn=U2({\u0275cmp:U2}),Qi=U2({\u0275dir:U2}),Zi=U2({\u0275pipe:U2}),lc=U2({\u0275mod:U2}),q4=U2({\u0275fac:U2}),J6=U2({__NG_ELEMENT_ID__:U2});let nD=0;function o2(e){return ve(()=>{const t={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===l4.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||G2,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||D4.Emulated,id:"c",styles:e.styles||G2,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,a=e.features,o=e.pipes;return i.id+=nD++,i.inputs=dc(e.inputs,t),i.outputs=dc(e.outputs),a&&a.forEach(s=>s(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(uc):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(fc):null,i})}function uc(e){return s3(e)||function _e(e){return e[Qi]||null}(e)}function fc(e){return function je(e){return e[Zi]||null}(e)}const Cc={};function A2(e){return ve(()=>{const n={type:e.type,bootstrap:e.bootstrap||G2,declarations:e.declarations||G2,imports:e.imports||G2,exports:e.exports||G2,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Cc[e.id]=e.type),n})}function dc(e,n){if(null==e)return Nt;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),t[r]=i,n&&(n[r]=a)}return t}const B=o2;function s3(e){return e[Gn]||null}function q3(e,n){const t=e[lc]||null;if(!t&&!0===n)throw new Error(`Type ${I2(e)} does not have '\u0275mod' property.`);return t}function S4(e){return Array.isArray(e)&&"object"==typeof e[1]}function f4(e){return Array.isArray(e)&&!0===e[1]}function er(e){return 0!=(8&e.flags)}function Kn(e){return 2==(2&e.flags)}function Yn(e){return 1==(1&e.flags)}function C4(e){return null!==e.template}function cD(e){return 0!=(512&e[2])}function qe(e,n){return e.hasOwnProperty(q4)?e[q4]:null}class fD{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function V1(){return pc}function pc(e){return e.type.prototype.ngOnChanges&&(e.setInput=dD),CD}function CD(){const e=mc(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===Nt)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function dD(e,n,t,i){const r=mc(e)||function hD(e,n){return e[gc]=n}(e,{previous:Nt,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[t],c=o[s];a[s]=new fD(c&&c.currentValue,n,o===Nt),e[i]=n}V1.ngInherit=!0;const gc="__ngSimpleChanges__";function mc(e){return e[gc]||null}let ar;function or(){return void 0!==ar?ar:"undefined"!=typeof document?document:void 0}function m1(e){return!!e.listen}const vc={createRenderer:(e,n)=>or()};function E1(e){for(;Array.isArray(e);)e=e[0];return e}function Qn(e,n){return E1(n[e])}function Q3(e,n){return E1(n[e.index])}function sr(e,n){return e.data[n]}function A3(e,n){const t=n[e];return S4(t)?t:t[0]}function _c(e){return 4==(4&e[2])}function cr(e){return 128==(128&e[2])}function Me(e,n){return null==n?null:e[n]}function Mc(e){e[18]=0}function lr(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3]}const l2={lFrame:Nc(null),bindingsEnabled:!0};function bc(){return l2.bindingsEnabled}function k(){return l2.lFrame.lView}function N2(){return l2.lFrame.tView}function W(e){return l2.lFrame.contextLView=e,e[8]}function O1(){let e=Lc();for(;null!==e&&64===e.type;)e=e.parent;return e}function Lc(){return l2.lFrame.currentTNode}function N4(e,n){const t=l2.lFrame;t.currentTNode=e,t.isParent=n}function ur(){return l2.lFrame.isParent}function fr(){l2.lFrame.isParent=!1}function kt(){return l2.lFrame.bindingIndex++}function Y4(e){const n=l2.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function xD(e,n){const t=l2.lFrame;t.bindingIndex=t.bindingRootIndex=e,Cr(n)}function Cr(e){l2.lFrame.currentDirectiveIndex=e}function wc(){return l2.lFrame.currentQueryIndex}function hr(e){l2.lFrame.currentQueryIndex=e}function AD(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function Dc(e,n,t){if(t&a2.SkipSelf){let r=n,a=e;for(;!(r=r.parent,null!==r||t&a2.Host||(r=AD(a),null===r||(a=a[15],10&r.type))););if(null===r)return!1;n=r,e=a}const i=l2.lFrame=Sc();return i.currentTNode=n,i.lView=e,!0}function Jn(e){const n=Sc(),t=e[1];l2.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Sc(){const e=l2.lFrame,n=null===e?null:e.child;return null===n?Nc(e):n}function Nc(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function zc(){const e=l2.lFrame;return l2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xc=zc;function Xn(){const e=zc();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 _3(){return l2.lFrame.selectedIndex}function ye(e){l2.lFrame.selectedIndex=e}function v1(){const e=l2.lFrame;return sr(e.tView,e.selectedIndex)}function It(){l2.lFrame.currentNamespace="svg"}function Ot(){!function OD(){l2.lFrame.currentNamespace=null}()}function e8(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const a=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=a;o&&(e.contentHooks||(e.contentHooks=[])).push(-t,o),s&&((e.contentHooks||(e.contentHooks=[])).push(t,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,s)),c&&(e.viewHooks||(e.viewHooks=[])).push(-t,c),l&&((e.viewHooks||(e.viewHooks=[])).push(t,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,l)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function t8(e,n,t){Ec(e,n,3,t)}function n8(e,n,t,i){(3&e[2])===t&&Ec(e,n,t,i)}function pr(e,n){let t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function Ec(e,n,t,i){const a=null!=i?i:-1,o=n.length-1;let s=0;for(let c=void 0!==i?65535&e[18]:0;c<o;c++)if("number"==typeof n[c+1]){if(s=n[c],null!=i&&s>=i)break}else n[c]<0&&(e[18]+=65536),(s<a||-1==a)&&(FD(e,t,n,c),e[18]=(4294901760&e[18])+c+2),c++}function FD(e,n,t,i){const r=t[i]<0,a=t[i+1],s=e[r?-t[i]:t[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===n){e[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}class i5{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function i8(e,n,t){const i=m1(e);let r=0;for(;r<t.length;){const a=t[r];if("number"==typeof a){if(0!==a)break;r++;const o=t[r++],s=t[r++],c=t[r++];i?e.setAttribute(n,s,c,o):n.setAttributeNS(o,s,c)}else{const o=a,s=t[++r];mr(o)?i&&e.setProperty(n,o,s):i?e.setAttribute(n,o,s):n.setAttribute(o,s),r++}}return r}function Ac(e){return 3===e||4===e||6===e}function mr(e){return 64===e.charCodeAt(0)}function r8(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||Tc(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function Tc(e,n,t,i,r){let a=0,o=e.length;if(-1===n)o=-1;else for(;a<e.length;){const s=e[a++];if("number"==typeof s){if(s===n){o=-1;break}if(s>n){o=a-1;break}}}for(;a<e.length;){const s=e[a];if("number"==typeof s)break;if(s===t){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,n),a=o+1),e.splice(a++,0,t),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function kc(e){return-1!==e}function Rt(e){return 32767&e}function Pt(e,n){let t=function $D(e){return e>>16}(e),i=n;for(;t>0;)i=i[15],t--;return i}let vr=!0;function a8(e){const n=vr;return vr=e,n}let WD=0;function a5(e,n){const t=Mr(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,_r(i.data,e),_r(n,null),_r(i.blueprint,null));const r=o8(e,n),a=e.injectorIndex;if(kc(r)){const o=Rt(r),s=Pt(r,n),c=s[1].data;for(let l=0;l<8;l++)n[a+l]=s[o+l]|c[o+l]}return n[a+8]=r,a}function _r(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Mr(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function o8(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){const a=r[1],o=a.type;if(i=2===o?a.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function s8(e,n,t){!function qD(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(J6)&&(i=t[J6]),null==i&&(i=t[J6]=WD++);const r=255&i;n.data[e+(r>>5)]|=1<<r}(e,n,t)}function Rc(e,n,t){if(t&a2.Optional)return e;Un(n,"NodeInjector")}function Pc(e,n,t,i){if(t&a2.Optional&&void 0===i&&(i=null),0==(t&(a2.Self|a2.Host))){const r=e[9],a=me(void 0);try{return r?r.get(n,i,t&a2.Optional):cc(n,i,t&a2.Optional)}finally{me(a)}}return Rc(i,n,t)}function Fc(e,n,t,i=a2.Default,r){if(null!==e){const a=function ZD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(J6)?e[J6]:void 0;return"number"==typeof n?n>=0?255&n:YD:n}(t);if("function"==typeof a){if(!Dc(n,e,i))return i&a2.Host?Rc(r,t,i):Pc(n,t,i,r);try{const o=a(i);if(null!=o||i&a2.Optional)return o;Un(t)}finally{xc()}}else if("number"==typeof a){let o=null,s=Mr(e,n),c=-1,l=i&a2.Host?n[16][6]:null;for((-1===s||i&a2.SkipSelf)&&(c=-1===s?o8(e,n):n[s+8],-1!==c&&jc(i,!1)?(o=n[1],s=Rt(c),n=Pt(c,n)):s=-1);-1!==s;){const u=n[1];if(Uc(a,s,u.data)){const f=QD(s,n,t,o,i,l);if(f!==Bc)return f}c=n[s+8],-1!==c&&jc(i,n[1].data[s+8]===l)&&Uc(a,s,n)?(o=u,s=Rt(c),n=Pt(c,n)):s=-1}}}return Pc(n,t,i,r)}const Bc={};function YD(){return new Ft(O1(),k())}function QD(e,n,t,i,r,a){const o=n[1],s=o.data[e+8],u=c8(s,o,t,null==i?Kn(s)&&vr:i!=o&&0!=(3&s.type),r&a2.Host&&a===s);return null!==u?o5(n,o,u,s):Bc}function c8(e,n,t,i,r){const a=e.providerIndexes,o=n.data,s=1048575&a,c=e.directiveStart,u=a>>20,h=r?s+u:e.directiveEnd;for(let g=i?s:s+u;g<h;g++){const V=o[g];if(g<c&&t===V||g>=c&&V.type===t)return g}if(r){const g=o[c];if(g&&C4(g)&&g.type===t)return c}return null}function o5(e,n,t,i){let r=e[t];const a=n.data;if(function BD(e){return e instanceof i5}(r)){const o=r;o.resolving&&function $w(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new S2(-200,`Circular dependency in DI detected for ${e}${t}`)}(Q1(a[t]));const s=a8(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?me(o.injectImpl):null;Dc(e,i,a2.Default);try{r=e[t]=o.factory(void 0,a,e,i),n.firstCreatePass&&t>=i.directiveStart&&function PD(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=n.type.prototype;if(i){const o=pc(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,r),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,a[t],n)}finally{null!==c&&me(c),a8(s),o.resolving=!1,xc()}}return r}function Uc(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function jc(e,n){return!(e&a2.Self||e&a2.Host&&n)}class Ft{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Fc(this._tNode,this._lView,n,i,t)}}function l3(e){return ve(()=>{const n=e.prototype.constructor,t=n[q4]||yr(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const a=r[q4]||yr(r);if(a&&a!==t)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function yr(e){return rc(e)?()=>{const n=yr(d2(e));return n&&n()}:qe(e)}const Ut="__parameters__";function Gt(e,n,t){return ve(()=>{const i=function br(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...a){if(this instanceof r)return i.apply(this,a),this;const o=new r(...a);return s.annotation=o,s;function s(c,l,u){const f=c.hasOwnProperty(Ut)?c[Ut]:Object.defineProperty(c,Ut,{value:[]})[Ut];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(o),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class v2{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Z({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const XD=new v2("AnalyzeForEntryComponents");function Z3(e,n){void 0===n&&(n=e);for(let t=0;t<e.length;t++){let i=e[t];Array.isArray(i)?(n===e&&(n=e.slice(0,t)),Z3(i,n)):n!==e&&n.push(i)}return n}function z4(e,n){e.forEach(t=>Array.isArray(t)?z4(t,n):n(t))}function $c(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function l8(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function l5(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}function T3(e,n,t){let i=$t(e,n);return i>=0?e[1|i]=t:(i=~i,function nS(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Vr(e,n){const t=$t(e,n);if(t>=0)return e[1|t]}function $t(e,n){return function Kc(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const a=i+(r-i>>1),o=e[a<<t];if(n===o)return a<<t;o>n?r=a:i=a+1}return~(r<<t)}(e,n,1)}const u5={},wr="__NG_DI_FLAG__",f8="ngTempTokenPath",lS=/\n/gm,Qc="__source",fS=U2({provide:String,useValue:U2});let f5;function Zc(e){const n=f5;return f5=e,n}function CS(e,n=a2.Default){if(void 0===f5)throw new S2(203,"");return null===f5?cc(e,void 0,n):f5.get(e,n&a2.Optional?null:void 0,n)}function q(e,n=a2.Default){return(function Jw(){return Yi}()||CS)(d2(e),n)}const dS=q;function Dr(e){const n=[];for(let t=0;t<e.length;t++){const i=d2(e[t]);if(Array.isArray(i)){if(0===i.length)throw new S2(900,"");let r,a=a2.Default;for(let o=0;o<i.length;o++){const s=i[o],c=hS(s);"number"==typeof c?-1===c?r=s.token:a|=c:r=s}n.push(q(r,a))}else n.push(q(i))}return n}function C5(e,n){return e[wr]=n,e.prototype[wr]=n,e}function hS(e){return e[wr]}const C8=C5(Gt("Inject",e=>({token:e})),-1),Le=C5(Gt("Optional"),8),d5=C5(Gt("SkipSelf"),4);let h8,p8;function qt(e){var n;return(null===(n=function Nr(){if(void 0===h8&&(h8=null,R2.trustedTypes))try{h8=R2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return h8}())||void 0===n?void 0:n.createHTML(e))||e}function il(e){var n;return(null===(n=function zr(){if(void 0===p8&&(p8=null,R2.trustedTypes))try{p8=R2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return p8}())||void 0===n?void 0:n.createHTML(e))||e}class Ye{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class DS extends Ye{getTypeName(){return"HTML"}}class SS extends Ye{getTypeName(){return"Style"}}class NS extends Ye{getTypeName(){return"Script"}}class zS extends Ye{getTypeName(){return"URL"}}class xS extends Ye{getTypeName(){return"ResourceURL"}}function k3(e){return e instanceof Ye?e.changingThisBreaksApplicationSecurity:e}function x4(e,n){const t=ol(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===n}function ol(e){return e instanceof Ye&&e.getTypeName()||null}class OS{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(qt(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class RS{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(n){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=qt(n),t;const i=this.inertDocument.createElement("body");return i.innerHTML=qt(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const t=n.attributes;for(let r=t.length-1;0<r;r--){const o=t.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FS=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,BS=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function p5(e){return(e=String(e)).match(FS)||e.match(BS)?e:"unsafe:"+e}function E4(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function g5(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const ll=E4("area,br,col,hr,img,wbr"),ul=E4("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fl=E4("rp,rt"),xr=g5(ll,g5(ul,E4("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")),g5(fl,E4("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")),g5(fl,ul)),Er=E4("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ar=E4("srcset"),Cl=g5(Er,Ar,E4("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),E4("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")),US=E4("script,style,template");class jS{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!xr.hasOwnProperty(t))return this.sanitizedSomething=!0,!US.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),o=a.name,s=o.toLowerCase();if(!Cl.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let c=a.value;Er[s]&&(c=p5(c)),Ar[s]&&(e=c,c=(e=String(e)).split(",").map(n=>p5(n.trim())).join(", ")),this.buf.push(" ",o,'="',dl(c),'"')}var e;return this.buf.push(">"),!0}endElement(n){const t=n.nodeName.toLowerCase();xr.hasOwnProperty(t)&&!ll.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(dl(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const GS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$S=/([^\#-~ |!])/g;function dl(e){return e.replace(/&/g,"&amp;").replace(GS,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace($S,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let g8;function hl(e,n){let t=null;try{g8=g8||function sl(e){const n=new RS(e);return function PS(){try{return!!(new window.DOMParser).parseFromString(qt(""),"text/html")}catch(e){return!1}}()?new OS(n):n}(e);let i=n?String(n):"";t=g8.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=t.innerHTML,t=g8.getInertBodyElement(i)}while(i!==a);return qt((new jS).sanitizeChildren(Tr(t)||t))}finally{if(t){const i=Tr(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Tr(e){return"content"in e&&function WS(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Q2=(()=>((Q2=Q2||{})[Q2.NONE=0]="NONE",Q2[Q2.HTML=1]="HTML",Q2[Q2.STYLE=2]="STYLE",Q2[Q2.SCRIPT=3]="SCRIPT",Q2[Q2.URL=4]="URL",Q2[Q2.RESOURCE_URL=5]="RESOURCE_URL",Q2))();function pl(e){const n=m5();return n?il(n.sanitize(Q2.HTML,e)||""):x4(e,"HTML")?il(k3(e)):hl(or(),c2(e))}function Q4(e){const n=m5();return n?n.sanitize(Q2.STYLE,e)||"":x4(e,"Style")?k3(e):c2(e)}function Qe(e){const n=m5();return n?n.sanitize(Q2.URL,e)||"":x4(e,"URL")?k3(e):p5(c2(e))}function m5(){const e=k();return e&&e[12]}const vl="__ngContext__";function u3(e,n){e[vl]=n}function Ir(e){const n=function v5(e){return e[vl]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function Rr(e){return e.ngOriginalError}function sN(e,...n){e.error(...n)}class _5{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n),i=function oN(e){return e&&e.ngErrorLogger||sN}(n);i(this._console,"ERROR",n),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Rr(n);for(;t&&Rr(t);)t=Rr(t);return t||null}}const mN=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(R2))();function A4(e){return e instanceof Function?e():e}var I3=(()=>((I3=I3||{})[I3.Important=1]="Important",I3[I3.DashCase=2]="DashCase",I3))();function Fr(e,n){return undefined(e,n)}function M5(e){const n=e[3];return f4(n)?n[3]:n}function Br(e){return Dl(e[13])}function Ur(e){return Dl(e[4])}function Dl(e){for(;null!==e&&!f4(e);)e=e[4];return e}function Yt(e,n,t,i,r){if(null!=i){let a,o=!1;f4(i)?a=i:S4(i)&&(o=!0,i=i[0]);const s=E1(i);0===e&&null!==t?null==r?Al(n,t,s):Ze(n,t,s,r||null,!0):1===e&&null!==t?Ze(n,t,s,r||null,!0):2===e?function Fl(e,n,t){const i=m8(e,n);i&&function xN(e,n,t,i){m1(e)?e.removeChild(n,t,i):n.removeChild(t)}(e,i,n,t)}(n,s,o):3===e&&n.destroyNode(s),null!=a&&function TN(e,n,t,i,r){const a=t[7];a!==E1(t)&&Yt(n,e,i,a,r);for(let s=10;s<t.length;s++){const c=t[s];y5(c[1],c,e,n,i,a)}}(n,e,a,t,r)}}function Gr(e,n,t){if(m1(e))return e.createElement(n,t);{const i=null!==t?function vD(e){const n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?e.createElement(n):e.createElementNS(i,n)}}function Nl(e,n){const t=e[9],i=t.indexOf(n),r=n[3];1024&n[2]&&(n[2]&=-1025,lr(r,-1)),t.splice(i,1)}function $r(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[17];null!==r&&r!==e&&Nl(r,i),n>0&&(e[t-1][4]=i[4]);const a=l8(e,10+n);!function LN(e,n){y5(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function zl(e,n){if(!(256&n[2])){const t=n[11];m1(t)&&t.destroyNode&&y5(e,n,t,3,null,null),function wN(e){let n=e[13];if(!n)return Wr(e[1],e);for(;n;){let t=null;if(S4(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)S4(n)&&Wr(n[1],n),n=n[3];null===n&&(n=e),S4(n)&&Wr(n[1],n),t=n&&n[4]}n=t}}(n)}}function Wr(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function zN(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof i5)){const a=t[i+1];if(Array.isArray(a))for(let o=0;o<a.length;o+=2){const s=r[a[o]],c=a[o+1];try{c.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,n),function NN(e,n){const t=e.cleanup,i=n[7];let r=-1;if(null!==t)for(let a=0;a<t.length-1;a+=2)if("string"==typeof t[a]){const o=t[a+1],s="function"==typeof o?o(n):E1(n[o]),c=i[r=t[a+2]],l=t[a+3];"boolean"==typeof l?s.removeEventListener(t[a],c,l):l>=0?i[r=l]():i[r=-l].unsubscribe(),a+=2}else{const o=i[r=t[a+1]];t[a].call(o)}if(null!==i){for(let a=r+1;a<i.length;a++)i[a]();n[7]=null}}(e,n),1===n[1].type&&m1(n[11])&&n[11].destroy();const t=n[17];if(null!==t&&f4(n[3])){t!==n[3]&&Nl(t,n);const i=n[19];null!==i&&i.detachView(e)}}}function xl(e,n,t){return function El(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===D4.None||r===D4.Emulated)return null}return Q3(i,t)}(e,n.parent,t)}function Ze(e,n,t,i,r){m1(e)?e.insertBefore(n,t,i,r):n.insertBefore(t,i,r)}function Al(e,n,t){m1(e)?e.appendChild(n,t):n.appendChild(t)}function Tl(e,n,t,i,r){null!==i?Ze(e,n,t,i,r):Al(e,n,t)}function m8(e,n){return m1(e)?e.parentNode(n):n.parentNode}function kl(e,n,t){return Ol(e,n,t)}let Ol=function Il(e,n,t){return 40&e.type?Q3(e,t):null};function v8(e,n,t,i){const r=xl(e,i,n),a=n[11],s=kl(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)Tl(a,r,t[c],s,!1);else Tl(a,r,t,s,!1)}function _8(e,n){if(null!==n){const t=n.type;if(3&t)return Q3(n,e);if(4&t)return Kr(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return _8(e,i);{const r=e[n.index];return f4(r)?Kr(-1,r):E1(r)}}if(32&t)return Fr(n,e)()||E1(e[n.index]);{const i=Pl(e,n);return null!==i?Array.isArray(i)?i[0]:_8(M5(e[16]),i):_8(e,n.next)}}return null}function Pl(e,n){return null!==n?e[16][6].projection[n.projection]:null}function Kr(e,n){const t=10+e+1;if(t<n.length){const i=n[t],r=i[1].firstChild;if(null!==r)return _8(i,r)}return n[7]}function Yr(e,n,t,i,r,a,o){for(;null!=t;){const s=i[t.index],c=t.type;if(o&&0===n&&(s&&u3(E1(s),i),t.flags|=4),64!=(64&t.flags))if(8&c)Yr(e,n,t.child,i,r,a,!1),Yt(n,e,r,s,a);else if(32&c){const l=Fr(t,i);let u;for(;u=l();)Yt(n,e,r,u,a);Yt(n,e,r,s,a)}else 16&c?Bl(e,n,i,t,r,a):Yt(n,e,r,s,a);t=o?t.projectionNext:t.next}}function y5(e,n,t,i,r,a){Yr(t,i,e.firstChild,n,r,a,!1)}function Bl(e,n,t,i,r,a){const o=t[16],c=o[6].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Yt(n,e,r,c[l],a);else Yr(e,n,c,o[3],r,a,!0)}function Ul(e,n,t){m1(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function Qr(e,n,t){m1(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}function jl(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=n.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}t=r+1}}const Gl="ng-template";function IN(e,n,t){let i=0;for(;i<e.length;){let r=e[i++];if(t&&"class"===r){if(r=e[i],-1!==jl(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function $l(e){return 4===e.type&&e.value!==Gl}function ON(e,n,t){return n===(4!==e.type||t?e.value:Gl)}function RN(e,n,t){let i=4;const r=e.attrs||[],a=function BN(e){for(let n=0;n<e.length;n++)if(Ac(e[n]))return n;return e.length}(r);let o=!1;for(let s=0;s<n.length;s++){const c=n[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!ON(e,c,t)||""===c&&1===n.length){if(d4(i))return!1;o=!0}}else{const l=8&i?c:n[++s];if(8&i&&null!==e.attrs){if(!IN(e.attrs,l,t)){if(d4(i))return!1;o=!0}continue}const f=PN(8&i?"class":c,r,$l(e),t);if(-1===f){if(d4(i))return!1;o=!0;continue}if(""!==l){let h;h=f>a?"":r[f+1].toLowerCase();const g=8&i?h:null;if(g&&-1!==jl(g,l,0)||2&i&&l!==h){if(d4(i))return!1;o=!0}}}}else{if(!o&&!d4(i)&&!d4(c))return!1;if(o&&d4(c))continue;o=!1,i=c|1&i}}return d4(i)||o}function d4(e){return 0==(1&e)}function PN(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let a=!1;for(;r<n.length;){const o=n[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function UN(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Wl(e,n,t=!1){for(let i=0;i<n.length;i++)if(RN(e,n[i],t))return!0;return!1}function jN(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function ql(e,n){return e?":not("+n.trim()+")":n}function GN(e){let n=e[0],t=1,i=2,r="",a=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&i){const s=e[++t];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!d4(o)&&(n+=ql(a,r),r=""),i=o,a=a||!d4(i);t++}return""!==r&&(n+=ql(a,r)),n}const u2={};function _(e){Kl(N2(),k(),_3()+e,!1)}function Kl(e,n,t,i){if(!i)if(3==(3&n[2])){const a=e.preOrderCheckHooks;null!==a&&t8(n,a,t)}else{const a=e.preOrderHooks;null!==a&&n8(n,a,0,t)}ye(t)}function M8(e,n){return e<<17|n<<2}function h4(e){return e>>17&32767}function Zr(e){return 2|e}function Z4(e){return(131068&e)>>2}function Jr(e,n){return-131069&e|n<<2}function Xr(e){return 1|e}function au(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],a=t[i+1];if(-1!==a){const o=e.data[a];hr(r),o.contentQueries(2,n[a],a)}}}function b5(e,n,t,i,r,a,o,s,c,l){const u=n.blueprint.slice();return u[0]=r,u[2]=140|i,Mc(u),u[3]=u[15]=e,u[8]=t,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=c||e&&e[12]||null,u[9]=l||e&&e[9]||null,u[6]=a,u[16]=2==n.type?e[16]:u,u}function Qt(e,n,t,i,r){let a=e.data[n];if(null===a)a=function ca(e,n,t,i,r){const a=Lc(),o=ur(),c=e.data[n]=function cz(e,n,t,i,r,a){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==a&&(o?null==a.child&&null!==c.parent&&(a.child=c):null===a.next&&(a.next=c)),c}(e,n,t,i,r),function zD(){return l2.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=t,a.value=i,a.attrs=r;const o=function n5(){const e=l2.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();a.injectorIndex=null===o?-1:o.injectorIndex}return N4(a,!0),a}function Zt(e,n,t,i){if(0===t)return-1;const r=n.length;for(let a=0;a<t;a++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function L5(e,n,t){Jn(n);try{const i=e.viewQuery;null!==i&&ma(1,i,t);const r=e.template;null!==r&&ou(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&au(e,n),e.staticViewQueries&&ma(2,e.viewQuery,t);const a=e.components;null!==a&&function az(e,n){for(let t=0;t<n.length;t++)wz(e,n[t])}(n,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[2]&=-5,Xn()}}function Jt(e,n,t,i){const r=n[2];if(256!=(256&r)){Jn(n);try{Mc(n),function Vc(e){return l2.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&ou(e,n,t,2,i);const o=3==(3&r);if(o){const l=e.preOrderCheckHooks;null!==l&&t8(n,l,null)}else{const l=e.preOrderHooks;null!==l&&n8(n,l,0,null),pr(n,0)}if(function Vz(e){for(let n=Br(e);null!==n;n=Ur(n)){if(!n[2])continue;const t=n[9];for(let i=0;i<t.length;i++){const r=t[i],a=r[3];0==(1024&r[2])&&lr(a,1),r[2]|=1024}}}(n),function Lz(e){for(let n=Br(e);null!==n;n=Ur(n))for(let t=10;t<n.length;t++){const i=n[t],r=i[1];cr(i)&&Jt(r,i,r.template,i[8])}}(n),null!==e.contentQueries&&au(e,n),o){const l=e.contentCheckHooks;null!==l&&t8(n,l)}else{const l=e.contentHooks;null!==l&&n8(n,l,1),pr(n,1)}!function iz(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)ye(~r);else{const a=r,o=t[++i],s=t[++i];xD(o,a),s(2,n[a])}}}finally{ye(-1)}}(e,n);const s=e.components;null!==s&&function rz(e,n){for(let t=0;t<n.length;t++)Hz(e,n[t])}(n,s);const c=e.viewQuery;if(null!==c&&ma(2,c,i),o){const l=e.viewCheckHooks;null!==l&&t8(n,l)}else{const l=e.viewHooks;null!==l&&n8(n,l,2),pr(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,lr(n[3],-1))}finally{Xn()}}}function oz(e,n,t,i){const r=n[10],o=_c(n);try{!o&&r.begin&&r.begin(),o&&L5(e,n,i),Jt(e,n,t,i)}finally{!o&&r.end&&r.end()}}function ou(e,n,t,i,r){const a=_3(),o=2&i;try{ye(-1),o&&n.length>20&&Kl(e,n,20,!1),t(i,r)}finally{ye(a)}}function la(e,n,t){!bc()||(function pz(e,n,t,i){const r=t.directiveStart,a=t.directiveEnd;e.firstCreatePass||a5(t,n),u3(i,n);const o=t.initialInputs;for(let s=r;s<a;s++){const c=e.data[s],l=C4(c);l&&Mz(n,t,c);const u=o5(n,e,s,t);u3(u,n),null!==o&&yz(0,s-r,u,c,0,o),l&&(A3(t.index,n)[8]=u)}}(e,n,t,Q3(t,n)),128==(128&t.flags)&&function gz(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,s=function ED(){return l2.lFrame.currentDirectiveIndex}();try{ye(o);for(let c=i;c<r;c++){const l=e.data[c],u=n[c];Cr(c),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&pu(l,u)}}finally{ye(-1),Cr(s)}}(e,n,t))}function ua(e,n,t=Q3){const i=n.localNames;if(null!==i){let r=n.index+1;for(let a=0;a<i.length;a+=2){const o=i[a+1],s=-1===o?t(n,e):e[o];e[r++]=s}}}function cu(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=L8(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function L8(e,n,t,i,r,a,o,s,c,l){const u=20+i,f=u+r,h=function sz(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:u2);return t}(u,f),g="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:t,queries:null,viewQuery:s,declTNode:n,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1}}function fu(e,n,t,i){const r=yu(n);null===t?r.push(i):(r.push(t),e.firstCreatePass&&bu(e).push(i,r.length-1))}function Cu(e,n,t){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(n,r):t[i]=[n,r]}return t}function O3(e,n,t,i,r,a,o,s){const c=Q3(n,t);let u,l=n.inputs;!s&&null!=l&&(u=l[i])?(Hu(e,t,u,i,r),Kn(n)&&function fz(e,n){const t=A3(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function uz(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=o?o(r,n.value||"",i):r,m1(a)?a.setProperty(c,i,r):mr(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function fa(e,n,t,i){let r=!1;if(bc()){const a=function mz(e,n,t){const i=e.directiveRegistry;let r=null;if(i)for(let a=0;a<i.length;a++){const o=i[a];Wl(t,o.selectors,!1)&&(r||(r=[]),s8(a5(t,n),e,o.type),C4(o)?(gu(e,t),r.unshift(o)):r.push(o))}return r}(e,n,t),o=null===i?null:{"":-1};if(null!==a){r=!0,mu(t,e.data.length,a.length);for(let u=0;u<a.length;u++){const f=a[u];f.providersResolver&&f.providersResolver(f)}let s=!1,c=!1,l=Zt(e,n,a.length,null);for(let u=0;u<a.length;u++){const f=a[u];t.mergedAttrs=r8(t.mergedAttrs,f.hostAttrs),vu(e,t,n,l,f),_z(l,f,o),null!==f.contentQueries&&(t.flags|=8),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=128);const h=f.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),s=!0),!c&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),c=!0),l++}!function lz(e,n){const i=n.directiveEnd,r=e.data,a=n.attrs,o=[];let s=null,c=null;for(let l=n.directiveStart;l<i;l++){const u=r[l],f=u.inputs,h=null===a||$l(n)?null:bz(f,a);o.push(h),s=Cu(f,l,s),c=Cu(u.outputs,l,c)}null!==s&&(s.hasOwnProperty("class")&&(n.flags|=16),s.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=s,n.outputs=c}(e,t)}o&&function vz(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const a=t[n[r+1]];if(null==a)throw new S2(-301,!1);i.push(n[r],a)}}}(t,i,o)}return t.mergedAttrs=r8(t.mergedAttrs,t.attrs),r}function hu(e,n,t,i,r,a){const o=a.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const c=~n.index;(function hz(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function pu(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function gu(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function _z(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;C4(n)&&(t[""]=e)}}function mu(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function vu(e,n,t,i,r){e.data[i]=r;const a=r.factory||(r.factory=qe(r.type)),o=new i5(a,C4(r),null);e.blueprint[i]=o,t[i]=o,hu(e,n,0,i,Zt(e,t,r.hostVars,u2),r)}function Mz(e,n,t){const i=Q3(n,e),r=cu(t),a=e[10],o=V8(e,b5(e,r,null,t.onPush?64:16,i,n,a,a.createRenderer(i,t),null,null));e[n.index]=o}function T4(e,n,t,i,r,a){const o=Q3(e,n);!function Ca(e,n,t,i,r,a,o){if(null==a)m1(e)?e.removeAttribute(n,r,t):n.removeAttribute(r);else{const s=null==o?c2(a):o(a,i||"",r);m1(e)?e.setAttribute(n,r,s,t):t?n.setAttributeNS(t,r,s):n.setAttribute(r,s)}}(n[11],o,a,e.value,t,i,r)}function yz(e,n,t,i,r,a){const o=a[n];if(null!==o){const s=i.setInput;for(let c=0;c<o.length;){const l=o[c++],u=o[c++],f=o[c++];null!==s?i.setInput(t,f,l,u):t[u]=f}}}function bz(e,n){let t=null,i=0;for(;i<n.length;){const r=n[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,e[r],n[i+1])),i+=2}else i+=2;else i+=4}return t}function _u(e,n,t,i){return new Array(e,!0,!1,n,null,0,i,t,null,null)}function Hz(e,n){const t=A3(n,e);if(cr(t)){const i=t[1];80&t[2]?Jt(i,t,i.template,t[8]):t[5]>0&&da(t)}}function da(e){for(let i=Br(e);null!==i;i=Ur(i))for(let r=10;r<i.length;r++){const a=i[r];if(1024&a[2]){const o=a[1];Jt(o,a,o.template,a[8])}else a[5]>0&&da(a)}const t=e[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=A3(t[i],e);cr(r)&&r[5]>0&&da(r)}}function wz(e,n){const t=A3(n,e),i=t[1];(function Dz(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])})(i,t),L5(i,t,t[8])}function V8(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function ha(e){for(;e;){e[2]|=64;const n=M5(e);if(cD(e)&&!n)return e;e=n}return null}function Mu(e){!function pa(e){for(let n=0;n<e.components.length;n++){const t=e.components[n],i=Ir(t),r=i[1];oz(r,i,r.template,t)}}(e[8])}function ma(e,n,t){hr(0),n(e,t)}const Nz=(()=>Promise.resolve(null))();function yu(e){return e[7]||(e[7]=[])}function bu(e){return e.cleanup||(e.cleanup=[])}function Vu(e,n){const t=e[9],i=t?t.get(_5,null):null;i&&i.handleError(n)}function Hu(e,n,t,i,r){for(let a=0;a<t.length;){const o=t[a++],s=t[a++],c=n[o],l=e.data[o];null!==l.setInput?l.setInput(c,r,i,s):c[s]=r}}function J4(e,n,t){const i=Qn(n,e);!function Sl(e,n,t){m1(e)?e.setValue(n,t):n.textContent=t}(e[11],i,t)}function H8(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,a=0;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?a=s:1==a?r=$i(r,s):2==a&&(i=$i(i,s+": "+n[++o]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}const va=new v2("INJECTOR",-1);class wu{get(n,t=u5){if(t===u5){const i=new Error(`NullInjectorError: No provider for ${I2(n)}!`);throw i.name="NullInjectorError",i}return t}}const _a=new v2("Set Injector scope."),V5={},Ez={};let Ma;function Du(){return void 0===Ma&&(Ma=new wu),Ma}function Su(e,n=null,t=null,i){const r=Nu(e,n,t,i);return r._resolveInjectorDefTypes(),r}function Nu(e,n=null,t=null,i){return new Az(e,t,n||Du(),i)}class Az{constructor(n,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];t&&z4(t,s=>this.processProvider(s,n,t)),z4([n],s=>this.processInjectorType(s,[],a)),this.records.set(va,Xt(void 0,this));const o=this.records.get(_a);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof n?null:I2(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,t=u5,i=a2.Default){this.assertNotDestroyed();const r=Zc(this),a=me(void 0);try{if(!(i&a2.SkipSelf)){let s=this.records.get(n);if(void 0===s){const c=function Bz(e){return"function"==typeof e||"object"==typeof e&&e instanceof v2}(n)&&qi(n);s=c&&this.injectableDefInScope(c)?Xt(ya(n),V5):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&a2.Self?Du():this.parent).get(n,t=i&a2.Optional&&t===u5?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[f8]=o[f8]||[]).unshift(I2(n)),r)throw o;return function pS(e,n,t,i){const r=e[f8];throw n[Qc]&&r.unshift(n[Qc]),e.message=function gS(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=I2(n);if(Array.isArray(n))r=n.map(I2).join(" -> ");else if("object"==typeof n){let a=[];for(let o in n)if(n.hasOwnProperty(o)){let s=n[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):I2(s)))}r=`{${a.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(lS,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[f8]=null,e}(o,n,"R3InjectorError",this.source)}throw o}finally{me(a),Zc(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(I2(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S2(205,!1)}processInjectorType(n,t,i){if(!(n=d2(n)))return!1;let r=oc(n);const a=null==r&&n.ngModule||void 0,o=void 0===a?n:a,s=-1!==i.indexOf(o);if(void 0!==a&&(r=oc(a)),null==r)return!1;if(null!=r.imports&&!s){let u;i.push(o);try{z4(r.imports,f=>{this.processInjectorType(f,t,i)&&(void 0===u&&(u=[]),u.push(f))})}finally{}if(void 0!==u)for(let f=0;f<u.length;f++){const{ngModule:h,providers:g}=u[f];z4(g,V=>this.processProvider(V,h,g||G2))}}this.injectorDefTypes.add(o);const c=qe(o)||(()=>new o);this.records.set(o,Xt(c,V5));const l=r.providers;if(null!=l&&!s){const u=n;z4(l,f=>this.processProvider(f,u,l))}return void 0!==a&&void 0!==n.providers}processProvider(n,t,i){let r=e6(n=d2(n))?n:d2(n&&n.provide);const a=function kz(e,n,t){return xu(e)?Xt(void 0,e.useValue):Xt(zu(e),V5)}(n);if(e6(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Xt(void 0,V5,!0),o.factory=()=>Dr(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,a)}hydrate(n,t){return t.value===V5&&(t.value=Ez,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Fz(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=d2(n.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ya(e){const n=qi(e),t=null!==n?n.factory:qe(e);if(null!==t)return t;if(e instanceof v2)throw new S2(204,!1);if(e instanceof Function)return function Tz(e){const n=e.length;if(n>0)throw l5(n,"?"),new S2(204,!1);const t=function Yw(e){const n=e&&(e[jn]||e[sc]);if(n){const t=function Qw(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new S2(204,!1)}function zu(e,n,t){let i;if(e6(e)){const r=d2(e);return qe(r)||ya(r)}if(xu(e))i=()=>d2(e.useValue);else if(function Oz(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Dr(e.deps||[]));else if(function Iz(e){return!(!e||!e.useExisting)}(e))i=()=>q(d2(e.useExisting));else{const r=d2(e&&(e.useClass||e.provide));if(!function Pz(e){return!!e.deps}(e))return qe(r)||ya(r);i=()=>new r(...Dr(e.deps))}return i}function Xt(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function xu(e){return null!==e&&"object"==typeof e&&fS in e}function e6(e){return"function"==typeof e}let A1=(()=>{class e{static create(t,i){var r;if(Array.isArray(t))return Su({name:""},i,t,"");{const a=null!==(r=t.name)&&void 0!==r?r:"";return Su({name:a},t.parent,t.providers,a)}}}return e.THROW_IF_NOT_FOUND=u5,e.NULL=new wu,e.\u0275prov=Z({token:e,providedIn:"any",factory:()=>q(va)}),e.__NG_ELEMENT_ID__=-1,e})();function Yz(e,n){e8(Ir(e)[1],O1())}function J(e){let n=function ju(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(C4(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S2(903,"");r=n.\u0275dir}if(r){if(t){i.push(r);const o=e;o.inputs=Va(e.inputs),o.declaredInputs=Va(e.declaredInputs),o.outputs=Va(e.outputs);const s=r.hostBindings;s&&Xz(e,s);const c=r.viewQuery,l=r.contentQueries;if(c&&Zz(e,c),l&&Jz(e,l),Gi(e.inputs,r.inputs),Gi(e.declaredInputs,r.declaredInputs),Gi(e.outputs,r.outputs),C4(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let o=0;o<a.length;o++){const s=a[o];s&&s.ngInherit&&s(e),s===J&&(t=!1)}}n=Object.getPrototypeOf(n)}!function Qz(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=r8(r.hostAttrs,t=r8(t,r.hostAttrs))}}(i)}function Va(e){return e===Nt?{}:e===G2?[]:e}function Zz(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function Jz(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,a)=>{n(i,r,a),t(i,r,a)}:n}function Xz(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}let w8=null;function t6(){if(!w8){const e=R2.Symbol;if(e&&e.iterator)w8=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<n.length;++t){const i=n[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(w8=i)}}}return w8}function H5(e){return!!function Ha(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&t6()in e)}function f3(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Je(e,n,t,i){const r=f3(e,n,t);return f3(e,n+1,i)||r}function j(e,n,t,i){const r=k();return f3(r,kt(),n)&&(N2(),T4(v1(),r,e,n,t,i)),j}function i6(e,n,t,i){return f3(e,kt(),t)?n+c2(t)+i:u2}function r6(e,n,t,i,r,a){const s=Je(e,function K4(){return l2.lFrame.bindingIndex}(),t,r);return Y4(2),s?n+c2(t)+i+c2(r)+a:u2}function O(e,n,t,i,r,a,o,s){const c=k(),l=N2(),u=e+20,f=l.firstCreatePass?function ox(e,n,t,i,r,a,o,s,c){const l=n.consts,u=Qt(n,e,4,o||null,Me(l,s));fa(n,t,u,Me(l,c)),e8(n,u);const f=u.tViews=L8(2,u,i,r,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,u),f.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,t,i,r,a,o):l.data[u];N4(f,!1);const h=c[11].createComment("");v8(l,c,h,f),u3(h,c),V8(c,c[u]=_u(h,c,h,f)),Yn(f)&&la(l,c,f),null!=o&&ua(c,f,s)}function R3(e){return function Tt(e,n){return e[n]}(function ND(){return l2.lFrame.contextLView}(),20+e)}function L(e,n=a2.Default){const t=k();return null===t?q(e,n):Fc(O1(),t,d2(e),n)}function za(){throw new Error("invalid")}function b(e,n,t){const i=k();return f3(i,kt(),n)&&O3(N2(),v1(),i,e,n,i[11],t,!1),b}function xa(e,n,t,i,r){const o=r?"class":"style";Hu(e,t,n.inputs[o],o,i)}function p(e,n,t,i){const r=k(),a=N2(),o=20+e,s=r[11],c=r[o]=Gr(s,n,function RD(){return l2.lFrame.currentNamespace}()),l=a.firstCreatePass?function Dx(e,n,t,i,r,a,o){const s=n.consts,l=Qt(n,e,2,r,Me(s,a));return fa(n,t,l,Me(s,o)),null!==l.attrs&&H8(l,l.attrs,!1),null!==l.mergedAttrs&&H8(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,a,r,0,n,t,i):a.data[o];N4(l,!0);const u=l.mergedAttrs;null!==u&&i8(s,c,u);const f=l.classes;null!==f&&Qr(s,c,f);const h=l.styles;return null!==h&&Ul(s,c,h),64!=(64&l.flags)&&v8(a,r,c,l),0===function VD(){return l2.lFrame.elementDepthCount}()&&u3(c,r),function HD(){l2.lFrame.elementDepthCount++}(),Yn(l)&&(la(a,r,l),function su(e,n,t){if(er(n)){const r=n.directiveEnd;for(let a=n.directiveStart;a<r;a++){const o=e.data[a];o.contentQueries&&o.contentQueries(1,t[a],a)}}}(a,l,r)),null!==i&&ua(r,l),p}function m(){let e=O1();ur()?fr():(e=e.parent,N4(e,!1));const n=e;!function wD(){l2.lFrame.elementDepthCount--}();const t=N2();return t.firstCreatePass&&(e8(t,e),er(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function jD(e){return 0!=(16&e.flags)}(n)&&xa(t,n,k(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function GD(e){return 0!=(32&e.flags)}(n)&&xa(t,n,k(),n.stylesWithoutHost,!1),m}function I(e,n,t,i){return p(e,n,t,i),m(),I}function H1(){return k()}function D5(e){return!!e&&"function"==typeof e.then}const Ta=function Cf(e){return!!e&&"function"==typeof e.subscribe};function A(e,n,t,i){const r=k(),a=N2(),o=O1();return function hf(e,n,t,i,r,a,o,s){const c=Yn(i),u=e.firstCreatePass&&bu(e),f=n[8],h=yu(n);let g=!0;if(3&i.type||s){const N=Q3(i,n),z=s?s(N):N,w=h.length,T=s?F=>s(E1(F[i.index])):i.index;if(m1(t)){let F=null;if(!s&&c&&(F=function Nx(e,n,t,i){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const o=r[a];if(o===t&&r[a+1]===i){const s=n[7],c=r[a+2];return s.length>c?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=a,F.__ngLastListenerFn__=a,g=!1;else{a=ka(i,n,f,a,!1);const U=t.listen(z,r,a);h.push(a,U),u&&u.push(r,T,w,w+1)}}else a=ka(i,n,f,a,!0),z.addEventListener(r,a,o),h.push(a),u&&u.push(r,T,w,o)}else a=ka(i,n,f,a,!1);const V=i.outputs;let H;if(g&&null!==V&&(H=V[r])){const N=H.length;if(N)for(let z=0;z<N;z+=2){const Q=n[H[z]][H[z+1]].subscribe(a),f2=h.length;h.push(a,Q),u&&u.push(r,i.index,f2,-(f2+1))}}}(a,r,r[11],o,e,n,!!t,i),A}function pf(e,n,t,i){try{return!1!==t(i)}catch(r){return Vu(e,r),!1}}function ka(e,n,t,i,r){return function a(o){if(o===Function)return i;const s=2&e.flags?A3(e.index,n):n;0==(32&n[2])&&ha(s);let c=pf(n,0,i,o),l=a.__ngNextListenerFn__;for(;l;)c=pf(n,0,l,o)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(o.preventDefault(),o.returnValue=!1),c}}function E(e=1){return function TD(e){return(l2.lFrame.contextLView=function kD(e,n){for(;e>0;)n=n[15],e--;return n}(e,l2.lFrame.contextLView))[8]}(e)}function zx(e,n){let t=null;const i=function FN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let r=0;r<n.length;r++){const a=n[r];if("*"!==a){if(null===i?Wl(e,a,!0):jN(i,a))return r}else t=r}return t}function C6(e){const n=k()[16][6];if(!n.projection){const i=n.projection=l5(e?e.length:1,null),r=i.slice();let a=n.child;for(;null!==a;){const o=e?zx(a,e):0;null!==o&&(r[o]?r[o].projectionNext=a:i[o]=a,r[o]=a),a=a.next}}}function d6(e,n=0,t){const i=k(),r=N2(),a=Qt(r,20+e,16,null,t||null);null===a.projection&&(a.projection=n),fr(),64!=(64&a.flags)&&function AN(e,n,t){Bl(n[11],0,n,t,xl(e,t,n),kl(t.parent||n[6],t,n))}(r,i,a)}function Ia(e,n,t){return h6(e,"",n,"",t),Ia}function h6(e,n,t,i,r){const a=k(),o=i6(a,n,t,i);return o!==u2&&O3(N2(),v1(),a,e,o,a[11],r,!1),h6}function Vf(e,n,t,i,r){const a=e[t+1],o=null===n;let s=i?h4(a):Z4(a),c=!1;for(;0!==s&&(!1===c||o);){const u=e[s+1];Ax(e[s],n)&&(c=!0,e[s+1]=i?Xr(u):Zr(u)),s=i?h4(u):Z4(u)}c&&(e[t+1]=i?Zr(a):Xr(a))}function Ax(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&$t(e,n)>=0}const P1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hf(e){return e.substring(P1.key,P1.keyEnd)}function wf(e,n){const t=P1.textEnd;return t===n?-1:(n=P1.keyEnd=function Ox(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,P1.key=n,t),p6(e,n,t))}function p6(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function Z2(e,n){return function g4(e,n,t,i){const r=k(),a=N2(),o=Y4(2);a.firstUpdatePass&&Ef(a,e,o,i),n!==u2&&f3(r,o,n)&&Tf(a,a.data[_3()],r,r[11],e,r[o+1]=function qx(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=I2(k3(e)))),e}(n,t),i,o)}(e,n,null,!0),Z2}function X4(e){!function m4(e,n,t,i){const r=N2(),a=Y4(2);r.firstUpdatePass&&Ef(r,null,a,i);const o=k();if(t!==u2&&f3(o,a,t)){const s=r.data[_3()];if(If(s,i)&&!xf(r,a)){let c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(t=$i(c,t||"")),xa(r,s,o,t,i)}else!function Wx(e,n,t,i,r,a,o,s){r===u2&&(r=G2);let c=0,l=0,u=0<r.length?r[0]:null,f=0<a.length?a[0]:null;for(;null!==u||null!==f;){const h=c<r.length?r[c+1]:void 0,g=l<a.length?a[l+1]:void 0;let H,V=null;u===f?(c+=2,l+=2,h!==g&&(V=f,H=g)):null===f||null!==u&&u<f?(c+=2,V=u):(l+=2,V=f,H=g),null!==V&&Tf(e,n,t,i,V,H,o,s),u=c<r.length?r[c]:null,f=l<a.length?a[l]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function $x(e,n,t){if(null==t||""===t)return G2;const i=[],r=k3(t);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,a)}}(T3,O4,e,!0)}function O4(e,n){for(let t=function kx(e){return function Sf(e){P1.key=0,P1.keyEnd=0,P1.value=0,P1.valueEnd=0,P1.textEnd=e.length}(e),wf(e,p6(e,0,P1.textEnd))}(n);t>=0;t=wf(n,t))T3(e,Hf(n),!0)}function xf(e,n){return n>=e.expandoStartIndex}function Ef(e,n,t,i){const r=e.data;if(null===r[t+1]){const a=r[_3()],o=xf(e,t);If(a,i)&&null===n&&!o&&(n=!1),n=function Bx(e,n,t,i){const r=function dr(e){const n=l2.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let a=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=S5(t=Ra(null,e,n,t,i),n.attrs,i),a=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==r)if(t=Ra(r,e,n,t,i),null===a){let c=function Ux(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==Z4(i))return e[h4(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=Ra(null,e,n,c[1],i),c=S5(c,n.attrs,i),function jx(e,n,t,i){e[h4(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else a=function Gx(e,n,t){let i;const r=n.directiveEnd;for(let a=1+n.directiveStylingLast;a<r;a++)i=S5(i,e[a].hostAttrs,t);return S5(i,n.attrs,t)}(e,n,i)}return void 0!==a&&(i?n.residualClasses=a:n.residualStyles=a),t}(r,a,n,i),function xx(e,n,t,i,r,a){let o=a?n.classBindings:n.styleBindings,s=h4(o),c=Z4(o);e[i]=t;let u,l=!1;if(Array.isArray(t)){const f=t;u=f[1],(null===u||$t(f,u)>0)&&(l=!0)}else u=t;if(r)if(0!==c){const h=h4(e[s+1]);e[i+1]=M8(h,s),0!==h&&(e[h+1]=Jr(e[h+1],i)),e[s+1]=function qN(e,n){return 131071&e|n<<17}(e[s+1],i)}else e[i+1]=M8(s,0),0!==s&&(e[s+1]=Jr(e[s+1],i)),s=i;else e[i+1]=M8(c,0),0===s?s=i:e[c+1]=Jr(e[c+1],i),c=i;l&&(e[i+1]=Zr(e[i+1])),Vf(e,u,i,!0),Vf(e,u,i,!1),function Ex(e,n,t,i,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof n&&$t(a,n)>=0&&(t[i+1]=Xr(t[i+1]))}(n,u,e,i,a),o=M8(s,c),a?n.classBindings=o:n.styleBindings=o}(r,a,n,t,o,i)}}function Ra(e,n,t,i,r){let a=null;const o=t.directiveEnd;let s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s<o&&(a=n[s],i=S5(i,a.hostAttrs,r),a!==e);)s++;return null!==e&&(t.directiveStylingLast=s),i}function S5(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let a=0;a<n.length;a++){const o=n[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),T3(e,o,!!t||n[++a]))}return void 0===e?null:e}function Tf(e,n,t,i,r,a,o,s){if(!(3&n.type))return;const c=e.data,l=c[s+1];N8(function Zl(e){return 1==(1&e)}(l)?kf(c,n,t,r,Z4(l),o):void 0)||(N8(a)||function Ql(e){return 2==(2&e)}(l)&&(a=kf(c,null,t,r,s,o)),function kN(e,n,t,i,r){const a=m1(e);if(n)r?a?e.addClass(t,i):t.classList.add(i):a?e.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:I3.DashCase;if(null==r)a?e.removeStyle(t,i,o):t.style.removeProperty(i);else{const s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=I3.Important),a?e.setStyle(t,i,r,o):t.style.setProperty(i,r,s?"important":"")}}}(i,o,Qn(_3(),t),r,a))}function kf(e,n,t,i,r,a){const o=null===n;let s;for(;r>0;){const c=e[r],l=Array.isArray(c),u=l?c[1]:c,f=null===u;let h=t[r+1];h===u2&&(h=f?G2:void 0);let g=f?Vr(h,i):u===i?h:void 0;if(l&&!N8(g)&&(g=Vr(c,i)),N8(g)&&(s=g,o))return s;const V=e[r+1];r=o?h4(V):Z4(V)}if(null!==n){let c=a?n.residualClasses:n.residualStyles;null!=c&&(s=Vr(c,i))}return s}function N8(e){return void 0!==e}function If(e,n){return 0!=(e.flags&(n?16:32))}function M(e,n=""){const t=k(),i=N2(),r=e+20,a=i.firstCreatePass?Qt(i,r,1,n,null):i.data[r],o=t[r]=function jr(e,n){return m1(e)?e.createText(n):e.createTextNode(n)}(t[11],n);v8(i,t,o,a),N4(a,!1)}function N5(e){return X3("",e,""),N5}function X3(e,n,t){const i=k(),r=i6(i,e,n,t);return r!==u2&&J4(i,_3(),r),X3}function g6(e,n,t,i,r){const a=k(),o=r6(a,e,n,t,i,r);return o!==u2&&J4(a,_3(),o),g6}function v4(e,n,t){const i=k();return f3(i,kt(),n)&&O3(N2(),v1(),i,e,n,i[11],t,!0),v4}const z8="en-US";let nC=z8;function Ua(e,n,t,i,r){if(e=d2(e),Array.isArray(e))for(let a=0;a<e.length;a++)Ua(e[a],n,t,i,r);else{const a=N2(),o=k();let s=e6(e)?e:d2(e.provide),c=zu(e);const l=O1(),u=1048575&l.providerIndexes,f=l.directiveStart,h=l.providerIndexes>>20;if(e6(e)||!e.multi){const g=new i5(c,r,L),V=Ga(s,n,r?u:u+h,f);-1===V?(s8(a5(l,o),a,s),ja(a,e,n.length),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(g),o.push(g)):(t[V]=g,o[V]=g)}else{const g=Ga(s,n,u+h,f),V=Ga(s,n,u,u+h),H=g>=0&&t[g],N=V>=0&&t[V];if(r&&!N||!r&&!H){s8(a5(l,o),a,s);const z=function uA(e,n,t,i,r){const a=new i5(e,t,L);return a.multi=[],a.index=n,a.componentProviders=0,wC(a,r,i&&!t),a}(r?lA:cA,t.length,r,i,c);!r&&N&&(t[V].providerFactory=z),ja(a,e,n.length,0),n.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),t.push(z),o.push(z)}else ja(a,e,g>-1?g:V,wC(t[r?V:g],c,!r&&i));!r&&i&&N&&t[V].componentProviders++}}}function ja(e,n,t,i){const r=e6(n),a=function Rz(e){return!!e.useClass}(n);if(r||a){const c=(a?d2(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[i,c]):l[u+1].push(i,c)}else l.push(t,c)}}}function wC(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Ga(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function cA(e,n,t,i){return $a(this.multi,[])}function lA(e,n,t,i){const r=this.multi;let a;if(this.providerFactory){const o=this.providerFactory.componentProviders,s=o5(t,t[1],this.providerFactory.index,i);a=s.slice(0,o),$a(r,a);for(let c=o;c<s.length;c++)a.push(s[c])}else a=[],$a(r,a);return a}function $a(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function $2(e,n=[]){return t=>{t.providersResolver=(i,r)=>function sA(e,n,t){const i=N2();if(i.firstCreatePass){const r=C4(e);Ua(t,i.data,i.blueprint,r,!0),Ua(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class DC{}class dA{resolveComponentFactory(n){throw function CA(e){const n=Error(`No component factory found for ${I2(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let _6=(()=>{class e{}return e.NULL=new dA,e})();function hA(){return M6(O1(),k())}function M6(e,n){return new T2(Q3(e,n))}let T2=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=hA,e})();function pA(e){return e instanceof T2?e.nativeElement:e}class Wa{}let C3=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function mA(){const e=k(),t=A3(O1().index,e);return function gA(e){return e[11]}(S4(t)?t:e)}(),e})(),vA=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>null}),e})();class T5{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const _A=new T5("13.3.11"),qa={};function k8(e,n,t,i,r=!1){for(;null!==t;){const a=n[t.index];if(null!==a&&i.push(E1(a)),f4(a))for(let s=10;s<a.length;s++){const c=a[s],l=c[1].firstChild;null!==l&&k8(c[1],c,l,i)}const o=t.type;if(8&o)k8(e,n,t.child,i);else if(32&o){const s=Fr(t,n);let c;for(;c=s();)i.push(c)}else if(16&o){const s=Pl(n,t);if(Array.isArray(s))i.push(...s);else{const c=M5(n[16]);k8(c[1],c,s,i,!0)}}t=r?t.projectionNext:t.next}return i}class k5{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return k8(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(f4(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&($r(n,i),l8(t,i))}this._attachedToViewContainer=!1}zl(this._lView[1],this._lView)}onDestroy(n){fu(this._lView[1],this._lView,null,n)}markForCheck(){ha(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ga(e,n,t){const i=n[10];i.begin&&i.begin();try{Jt(e,n,e.template,t)}catch(r){throw Vu(n,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S2(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function HN(e,n){y5(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S2(902,"");this._appRef=n}}class MA extends k5{constructor(n){super(n),this._view=n}detectChanges(){Mu(this._view)}checkNoChanges(){}get context(){return null}}class NC extends _6{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=s3(n);return new Ka(t,this.ngModule)}}function zC(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class Ka extends DC{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function $N(e){return e.map(GN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return zC(this.componentDef.inputs)}get outputs(){return zC(this.componentDef.outputs)}create(n,t,i,r){const a=(r=r||this.ngModule)?function bA(e,n){return{get:(t,i,r)=>{const a=e.get(t,qa,r);return a!==qa||i===qa?a:n.get(t,i,r)}}}(n,r.injector):n,o=a.get(Wa,vc),s=a.get(vA,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=i?function uu(e,n,t){if(m1(e))return e.selectRootElement(n,t===D4.ShadowDom);let i="string"==typeof n?e.querySelector(n):n;return i.textContent="",i}(c,i,this.componentDef.encapsulation):Gr(o.createRenderer(null,this.componentDef),l,function yA(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(l)),f=this.componentDef.onPush?576:528,h=function Uu(e,n){return{components:[],scheduler:e||mN,clean:Nz,playerHandler:n||null,flags:0}}(),g=L8(0,null,null,1,0,null,null,null,null,null),V=b5(null,g,h,f,null,null,o,c,s,a);let H,N;Jn(V);try{const z=function Fu(e,n,t,i,r,a){const o=t[1];t[20]=e;const c=Qt(o,20,2,"#host",null),l=c.mergedAttrs=n.hostAttrs;null!==l&&(H8(c,l,!0),null!==e&&(i8(r,e,l),null!==c.classes&&Qr(r,e,c.classes),null!==c.styles&&Ul(r,e,c.styles)));const u=i.createRenderer(e,n),f=b5(t,cu(n),null,n.onPush?64:16,t[20],c,i,u,a||null,null);return o.firstCreatePass&&(s8(a5(c,t),o,n.type),gu(o,c),mu(c,t.length,1)),V8(t,f),t[20]=f}(u,this.componentDef,V,o,c);if(u)if(i)i8(c,u,["ng-version",_A.full]);else{const{attrs:w,classes:T}=function WN(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===r?""!==a&&n.push(a,e[++i]):8===r&&t.push(a);else{if(!d4(r))break;r=a}i++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]);w&&i8(c,u,w),T&&T.length>0&&Qr(c,u,T.join(" "))}if(N=sr(g,20),void 0!==t){const w=N.projection=[];for(let T=0;T<this.ngContentSelectors.length;T++){const F=t[T];w.push(null!=F?Array.from(F):null)}}H=function Bu(e,n,t,i,r){const a=t[1],o=function dz(e,n,t){const i=O1();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),vu(e,i,n,Zt(e,n,1,null),t));const r=o5(n,e,i.directiveStart,i);u3(r,n);const a=Q3(i,n);return a&&u3(a,n),r}(a,t,n);if(i.components.push(o),e[8]=o,r&&r.forEach(c=>c(o,n)),n.contentQueries){const c=O1();n.contentQueries(1,o,c.directiveStart)}const s=O1();return!a.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(ye(s.index),hu(t[1],s,0,s.directiveStart,s.directiveEnd,n),pu(n,o)),o}(z,this.componentDef,V,h,[Yz]),L5(g,V,null)}finally{Xn()}return new VA(this.componentType,H,M6(N,V),V,N)}}class VA extends class fA{}{constructor(n,t,i,r,a){super(),this.location=i,this._rootLView=r,this._tNode=a,this.instance=t,this.hostView=this.changeDetectorRef=new MA(r),this.componentType=n}get injector(){return new Ft(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class ee{}class xC{}const y6=new Map;class TC extends ee{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new NC(this);const i=q3(n);this._bootstrapComponents=A4(i.bootstrap),this._r3Injector=Nu(n,t,[{provide:ee,useValue:this},{provide:_6,useValue:this.componentFactoryResolver}],I2(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,t=A1.THROW_IF_NOT_FOUND,i=a2.Default){return n===A1||n===ee||n===va?this:this._r3Injector.get(n,t,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ya extends xC{constructor(n){super(),this.moduleType=n,null!==q3(n)&&function wA(e){const n=new Set;!function t(i){const r=q3(i,!0),a=r.id;null!==a&&(function EC(e,n,t){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${I2(n)} vs ${I2(n.name)}`)}(a,y6.get(a),i),y6.set(a,i));const o=A4(r.imports);for(const s of o)n.has(s)||(n.add(s),t(s))}(e)}(n)}create(n){return new TC(this.moduleType,n)}}function I5(e,n,t,i,r){return function IC(e,n,t,i,r,a,o){const s=n+t;return Je(e,s,r,a)?function k4(e,n,t){return e[n]=t}(e,s+2,o?i.call(o,r,a):i(r,a)):function O5(e,n){const t=e[n];return t===u2?void 0:t}(e,s+2)}(k(),function v3(){const e=l2.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),e,n,t,i,r)}function Za(e){return n=>{setTimeout(e,void 0,n)}}const r2=class BA extends C2{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){var r,a,o;let s=n,c=t||(()=>null),l=i;if(n&&"object"==typeof n){const f=n;s=null===(r=f.next)||void 0===r?void 0:r.bind(f),c=null===(a=f.error)||void 0===a?void 0:a.bind(f),l=null===(o=f.complete)||void 0===o?void 0:o.bind(f)}this.__isAsync&&(c=Za(c),s&&(s=Za(s)),l&&(l=Za(l)));const u=super.subscribe({next:s,error:c,complete:l});return n instanceof H2&&n.add(u),u}};function UA(){return this._results[t6()]()}class Ja{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=t6(),i=Ja.prototype;i[t]||(i[t]=UA)}get changes(){return this._changes||(this._changes=new r2)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=Z3(n);(this._changesDetected=!function eS(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],a=n[i];if(t&&(r=t(r),a=t(a)),a!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.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()}}Symbol;let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=$A,e})();const jA=c1,GA=class extends jA{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n){const t=this._declarationTContainer.tViews,i=b5(this._declarationLView,t,n,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(t)),L5(t,i,n),new k5(i)}};function $A(){return O8(O1(),k())}function O8(e,n){return 4&e.type?new GA(n,e,M6(e,n)):null}let P3=(()=>{class e{}return e.__NG_ELEMENT_ID__=WA,e})();function WA(){return UC(O1(),k())}const qA=P3,FC=class extends qA{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return M6(this._hostTNode,this._hostLView)}get injector(){return new Ft(this._hostTNode,this._hostLView)}get parentInjector(){const n=o8(this._hostTNode,this._hostLView);if(kc(n)){const t=Pt(n,this._hostLView),i=Rt(n);return new Ft(t[1].data[i+8],t)}return new Ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=BC(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){const r=n.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(n,t,i,r,a){const o=n&&!function c5(e){return"function"==typeof e}(n);let s;if(o)s=t;else{const f=t||{};s=f.index,i=f.injector,r=f.projectableNodes,a=f.ngModuleRef}const c=o?n:new Ka(s3(n)),l=i||this.parentInjector;if(!a&&null==c.ngModule){const h=(o?l:this.parentInjector).get(ee,null);h&&(a=h)}const u=c.create(l,r,void 0,a);return this.insert(u.hostView,s),u}insert(n,t){const i=n._lView,r=i[1];if(function LD(e){return f4(e[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const f=i[3],h=new FC(f,f[6],f[3]);h.detach(h.indexOf(n))}}const a=this._adjustIndex(t),o=this._lContainer;!function DN(e,n,t,i){const r=10+i,a=t.length;i>0&&(t[r-1][4]=n),i<a-10?(n[4]=t[r],$c(t,10+i,n)):(t.push(n),n[4]=null),n[3]=t;const o=n[17];null!==o&&t!==o&&function SN(e,n){const t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(o,n);const s=n[19];null!==s&&s.insertView(e),n[2]|=128}(r,i,o,a);const s=Kr(a,o),c=i[11],l=m8(c,o[7]);return null!==l&&function VN(e,n,t,i,r,a){i[0]=r,i[6]=n,y5(e,i,t,1,r,a)}(r,o[6],c,i,l,s),n.attachToViewContainerRef(),$c(Xa(o),a,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=BC(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=$r(this._lContainer,t);i&&(l8(Xa(this._lContainer),t),zl(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=$r(this._lContainer,t);return i&&null!=l8(Xa(this._lContainer),t)?new k5(i):null}_adjustIndex(n,t=0){return null==n?this.length+t:n}};function BC(e){return e[8]}function Xa(e){return e[8]||(e[8]=[])}function UC(e,n){let t;const i=n[e.index];if(f4(i))t=i;else{let r;if(8&e.type)r=E1(i);else{const a=n[11];r=a.createComment("");const o=Q3(e,n);Ze(a,m8(a,o),r,function EN(e,n){return m1(e)?e.nextSibling(n):n.nextSibling}(a,o),!1)}n[e.index]=t=_u(i,n,r,e),V8(n,t)}return new FC(t,e,n)}class eo{constructor(n){this.queryList=n,this.matches=null}clone(){return new eo(this.queryList)}setDirty(){this.queryList.setDirty()}}class to{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let a=0;a<i;a++){const o=t.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new to(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==qC(n,t).matches&&this.queries[t].setDirty()}}class jC{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class no{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,a=this.getByIndex(i).embeddedTView(n,r);a&&(a.indexInDeclarationView=i,null!==t?t.push(a):t=[a])}return null!==t?new no(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class io{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new io(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];this.matchTNodeWithReadOption(n,t,QA(t,a)),this.matchTNodeWithReadOption(n,t,c8(t,n,a,!1,!1))}else i===c1?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,c8(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===T2||r===P3||r===c1&&4&t.type)this.addMatch(t.index,-2);else{const a=c8(t,n,r,!1,!1);null!==a&&this.addMatch(t.index,a)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function QA(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function JA(e,n,t,i){return-1===t?function ZA(e,n){return 11&e.type?M6(e,n):4&e.type?O8(e,n):null}(n,e):-2===t?function XA(e,n,t){return t===T2?M6(n,e):t===c1?O8(n,e):t===P3?UC(n,e):void 0}(e,n,i):o5(e,e[1],t,n)}function GC(e,n,t,i){const r=n[19].queries[i];if(null===r.matches){const a=e.data,o=t.matches,s=[];for(let c=0;c<o.length;c+=2){const l=o[c];s.push(l<0?null:JA(n,a[l],o[c+1],t.metadata.read))}r.matches=s}return r.matches}function ro(e,n,t,i){const r=e.queries.getByIndex(t),a=r.matches;if(null!==a){const o=GC(e,n,r,t);for(let s=0;s<a.length;s+=2){const c=a[s];if(c>0)i.push(o[s/2]);else{const l=a[s+1],u=n[-c];for(let f=10;f<u.length;f++){const h=u[f];h[17]===h[3]&&ro(h[1],h,l,i)}if(null!==u[9]){const f=u[9];for(let h=0;h<f.length;h++){const g=f[h];ro(g[1],g,l,i)}}}}}return i}function f1(e){const n=k(),t=N2(),i=wc();hr(i+1);const r=qC(t,i);if(e.dirty&&_c(n)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?ro(t,n,i,[]):GC(t,n,r,i);e.reset(a,pA),e.notifyOnChanges()}return!0}return!1}function w1(e,n,t,i){const r=N2();if(r.firstCreatePass){const a=O1();WC(r,new jC(n,t,i),a.index),function tT(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}$C(r,k(),t)}function C1(){return function eT(e,n){return e[19].queries[n].queryList}(k(),wc())}function $C(e,n,t){const i=new Ja(4==(4&t));fu(e,n,i,i.destroy),null===n[19]&&(n[19]=new to),n[19].queries.push(new eo(i))}function WC(e,n,t){null===e.queries&&(e.queries=new no),e.queries.track(new io(n,t))}function qC(e,n){return e.queries.getByIndex(n)}function F3(e,n){return O8(e,n)}function F8(...e){}const fo=new v2("Application Initializer");let Co=(()=>{class e{constructor(t){this.appInits=t,this.resolve=F8,this.reject=F8,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const a=this.appInits[r]();if(D5(a))t.push(a);else if(Ta(a)){const o=new Promise((s,c)=>{a.subscribe({complete:s,error:c})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(q(fo,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const F5=new v2("AppId",{providedIn:"root",factory:function ud(){return`${ho()}${ho()}${ho()}`}});function ho(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fd=new v2("Platform Initializer"),po=new v2("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Cd=new v2("appBootstrapListener");let vT=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const De=new v2("LocaleId",{providedIn:"root",factory:()=>dS(De,a2.Optional|a2.SkipSelf)||function _T(){return"undefined"!=typeof $localize&&$localize.locale||z8}()});class yT{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let dd=(()=>{class e{compileModuleSync(t){return new Ya(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),a=A4(q3(t).declarations).reduce((o,s)=>{const c=s3(s);return c&&o.push(new Ka(c)),o},[]);return new yT(i,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const LT=(()=>Promise.resolve(0))();function go(e){"undefined"==typeof Zone?LT.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class P2{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new r2(!1),this.onMicrotaskEmpty=new r2(!1),this.onStable=new r2(!1),this.onError=new r2(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function VT(){let e=R2.requestAnimationFrame,n=R2.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function DT(e){const n=()=>{!function wT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(R2,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,vo(e),e.isCheckStableRunning=!0,mo(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),vo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,a,o,s)=>{try{return hd(e),t.invokeTask(r,a,o,s)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&n(),pd(e)}},onInvoke:(t,i,r,a,o,s,c)=>{try{return hd(e),t.invoke(r,a,o,s,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),pd(e)}},onHasTask:(t,i,r,a)=>{t.hasTask(r,a),i===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,vo(e),mo(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,i,r,a)=>(t.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!P2.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(P2.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,n,HT,F8,F8);try{return a.runTask(o,t,i)}finally{a.cancelTask(o)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const HT={};function mo(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 vo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function hd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pd(e){e._nesting--,mo(e)}class ST{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new r2,this.onMicrotaskEmpty=new r2,this.onStable=new r2,this.onError=new r2}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}let _o=(()=>{class e{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{P2.assertNotInAngularZone(),go(()=>{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())go(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return e.\u0275fac=function(t){return new(t||e)(q(P2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),NT=(()=>{class e{constructor(){this._applications=new Map,Mo.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Mo.findTestabilityInTree(this,t,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class zT{addToWindow(n){}findTestabilityInTree(n,t,i){return null}}let Mo=new zT,et=null;const gd=new v2("AllowMultipleToken"),md=new v2("PlatformOnDestroy");class vd{constructor(n,t){this.name=n,this.token=t}}function _d(e,n,t=[]){const i=`Platform: ${n}`,r=new v2(i);return(a=[])=>{let o=yo();if(!o||o.injector.get(gd,!1)){const s=[...t,...a,{provide:r,useValue:!0}];e?e(s):function TT(e){if(et&&!et.get(gd,!1))throw new S2(400,"");et=e;const n=e.get(Md),t=e.get(fd,null);t&&t.forEach(i=>i())}(function IT(e=[],n){return A1.create({name:n,providers:[{provide:_a,useValue:"platform"},{provide:md,useValue:()=>et=null},...e]})}(s,i))}return function kT(e){const n=yo();if(!n)throw new S2(401,"");return n}()}}function yo(){var e;return null!==(e=null==et?void 0:et.get(Md))&&void 0!==e?e:null}let Md=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const s=function OT(e,n){let t;return t="noop"===e?new ST:("zone.js"===e?void 0:e)||new P2({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),c=[{provide:P2,useValue:s}];return s.run(()=>{const l=A1.create({providers:c,parent:this.injector,name:t.moduleType.name}),u=t.create(l),f=u.injector.get(_5,null);if(!f)throw new S2(402,"");return s.runOutsideAngular(()=>{const h=s.onError.subscribe({next:g=>{f.handleError(g)}});u.onDestroy(()=>{bo(this._modules,u),h.unsubscribe()})}),function RT(e,n,t){try{const i=t();return D5(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(f,s,()=>{const h=u.injector.get(Co);return h.runInitializers(),h.donePromise.then(()=>(function vE(e){x3(e,"Expected localeId to be defined"),"string"==typeof e&&(nC=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(De,z8)||z8),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=yd({},i);return function ET(e,n,t){const i=new Ya(t);return Promise.resolve(i)}(0,0,t).then(a=>this.bootstrapModuleFactory(a,r))}_moduleDoBootstrap(t){const i=t.injector.get(L6);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S2(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S2(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(md,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(q(A1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function yd(e,n){return Array.isArray(n)?n.reduce(yd,e):Object.assign(Object.assign({},e),n)}let L6=(()=>{class e{constructor(t,i,r,a){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new k2(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),s=new k2(c=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{P2.assertNotInAngularZone(),go(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{P2.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=nc(o,s.pipe(ic()))}bootstrap(t,i){if(!this._initStatus.done)throw new S2(405,"");let r;r=t instanceof DC?t:this._injector.get(_6).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const a=function AT(e){return e.isBoundToModule}(r)?void 0:this._injector.get(ee),s=r.create(A1.NULL,[],i||r.selector,a),c=s.location.nativeElement,l=s.injector.get(_o,null),u=l&&s.injector.get(NT);return l&&u&&u.registerApplication(c,l),s.onDestroy(()=>{this.detachView(s.hostView),bo(this.components,s),u&&u.unregisterApplication(c)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new S2(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;bo(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Cd,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(q(P2),q(A1),q(_5),q(Co))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function bo(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Ld=!0,B3=(()=>{class e{}return e.__NG_ELEMENT_ID__=BT,e})();function BT(e){return function UT(e,n,t){if(Kn(e)&&!t){const i=A3(e.index,n);return new k5(i,i)}return 47&e.type?new k5(n[16],n):null}(O1(),k(),16==(16&e))}class Sd{constructor(){}supports(n){return H5(n)}create(n){return new KT(n)}}const qT=(e,n)=>n;class KT{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||qT}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,a=null;for(;t||i;){const o=!i||t&&t.currentIndex<zd(i,r,a)?t:i,s=zd(o,r,a),c=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{a||(a=[]);const l=s-r,u=c-r;if(l!=u){for(let h=0;h<l;h++){const g=h<a.length?a[h]:a[h]=0,V=g+h;u<=V&&V<l&&(a[h]=g+1)}a[o.previousIndex]=u-l}}s!==c&&n(o,s,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!H5(n))throw new S2(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,a,o,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)a=n[s],o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),i=!0),t=t._next}else r=0,function ax(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[t6()]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,s=>{o=this._trackByFn(r,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,r)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let a;return null===n?a=this._itTail:(a=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,a,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,a,r)):n=this._addAfter(new YT(t,i),a,r),n}_verifyReinsertion(n,t,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?n=this._reinsertAfter(a,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,a=n._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new Nd),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Nd),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YT{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class Nd{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new QT,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zd(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}function Ed(){return new j8([new Sd])}let j8=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||Ed()),deps:[[e,new d5,new Le]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S2(901,"")}}return e.\u0275prov=Z({token:e,providedIn:"root",factory:Ed}),e})();const tk=_d(null,"core",[]);let nk=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(q(L6))},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})(),G8=null;function R4(){return G8}const D1=new v2("DocumentToken");let nt=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function ok(){return q(Td)}()},providedIn:"platform"}),e})();const sk=new v2("Location Initialized");let Td=(()=>{class e extends nt{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R4().getBaseHref(this._doc)}onPopState(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=R4().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,i,r){kd()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){kd()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:function(){return function ck(){return new Td(q(D1))}()},providedIn:"platform"}),e})();function kd(){return!!window.history.pushState}function Do(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Id(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function te(e){return e&&"?"!==e[0]?"?"+e:e}let it=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(){return function lk(e){const n=q(D1).location;return new Od(q(nt),n&&n.origin||"")}()},providedIn:"root"}),e})();const So=new v2("appBaseHref");let Od=(()=>{class e extends it{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Do(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+te(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,a){const o=this.prepareExternalUrl(r+te(a));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){const o=this.prepareExternalUrl(r+te(a));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(So,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Rd=(()=>{class e extends it{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=Do(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,a){let o=this.prepareExternalUrl(r+te(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,a){let o=this.prepareExternalUrl(r+te(a));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(q(nt),q(So,8))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),No=(()=>{class e{constructor(t,i){this._subject=new r2,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Id(Pd(r)),this._platformStrategy.onPopState(a=>{this._subject.emit({url:this.path(!0),pop:!0,state:a.state,type:a.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+te(i))}normalize(t){return e.stripTrailingSlash(function fk(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,Pd(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+te(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+te(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return e.normalizeQueryParams=te,e.joinWithSlash=Do,e.stripTrailingSlash=Id,e.\u0275fac=function(t){return new(t||e)(q(it),q(nt))},e.\u0275prov=Z({token:e,factory:function(){return function uk(){return new No(q(it),q(nt))}()},providedIn:"root"}),e})();function Pd(e){return e.replace(/\/index.html$/,"")}class Zk{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let rt=(()=>{class e{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,a,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Zk(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===a?void 0:a);else if(null!==a){const s=i.get(a);i.move(s,o),Kd(s,r)}});for(let r=0,a=i.length;r<a;r++){const s=i.get(r).context;s.index=r,s.count=a,s.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Kd(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(L(P3),L(c1),L(j8))},e.\u0275dir=B({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();function Kd(e,n){e.context.$implicit=n.item}let B1=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new Jk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Yd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Yd("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(L(P3),L(c1))},e.\u0275dir=B({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Jk{constructor(){this.$implicit=null,this.ngIf=null}}function Yd(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${I2(n)}'.`)}let V6=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(L(P3))},e.\u0275dir=B({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[V1]}),e})(),U3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();let SI=(()=>{class e{}return e.\u0275prov=Z({token:e,providedIn:"root",factory:()=>new NI(q(D1),window)}),e})();class NI{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function zI(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const a=r.shadowRoot;if(a){const o=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(i-a[0],r-a[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Xd(this.window.history)||Xd(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Xd(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class jo extends class EI extends class ak{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function rk(e){G8||(G8=e)}(new jo)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function AI(){return G5=G5||document.querySelector("base"),G5?G5.getAttribute("href"):null}();return null==t?null:function TI(e){e0=e0||document.createElement("a"),e0.setAttribute("href",e);const n=e0.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){G5=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function Kk(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,a]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(a)}return null}(document.cookie,n)}}let e0,G5=null;const eh=new v2("TRANSITION_ID"),II=[{provide:fo,useFactory:function kI(e,n,t){return()=>{t.get(Co).donePromise.then(()=>{const i=R4(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let a=0;a<r.length;a++)i.remove(r[a])})}},deps:[eh,D1,A1],multi:!0}];class Go{static init(){!function xT(e){Mo=e}(new Go)}addToWindow(n){R2.getAngularTestability=(i,r=!0)=>{const a=n.findTestabilityInTree(i,r);if(null==a)throw new Error("Could not find testability for element.");return a},R2.getAllAngularTestabilities=()=>n.getAllTestabilities(),R2.getAllAngularRootElements=()=>n.getAllRootElements(),R2.frameworkStabilizers||(R2.frameworkStabilizers=[]),R2.frameworkStabilizers.push(i=>{const r=R2.getAllAngularTestabilities();let a=r.length,o=!1;const s=function(c){o=o||c,a--,0==a&&i(o)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(n,t,i){if(null==t)return null;const r=n.getTestability(t);return null!=r?r:i?R4().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}}let OI=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const t0=new v2("EventManagerPlugins");let n0=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let a=0;a<r.length;a++){const o=r[a];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return e.\u0275fac=function(t){return new(t||e)(q(t0),q(P2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class th{constructor(n){this._doc=n}addGlobalEventListener(n,t,i){const r=R4().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let nh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),$5=(()=>{class e extends nh{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(a=>{const o=this._doc.createElement("style");o.textContent=a,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(ih),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(ih))}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function ih(e){R4().remove(e)}const $o={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/"},Wo=/%COMP%/g;function r0(e,n,t){for(let i=0;i<n.length;i++){let r=n[i];Array.isArray(r)?r0(e,r,t):(r=r.replace(Wo,e),t.push(r))}return t}function oh(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let qo=(()=>{class e{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ko(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case D4.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new jI(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case D4.ShadowDom:return new GI(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=r0(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(q(n0),q($5),q(F5))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();class Ko{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS($o[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){n.appendChild(t)}insertBefore(n,t,i){n&&n.insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const a=$o[r];a?n.setAttributeNS(a,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=$o[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(I3.DashCase|I3.Important)?n.style.setProperty(t,i,r&I3.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&I3.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,oh(i)):this.eventManager.addEventListener(n,t,oh(i))}}class jI extends Ko{constructor(n,t,i,r){super(n),this.component=i;const a=r0(r+"-"+i.id,i.styles,[]);t.addStyles(a),this.contentAttr=function FI(e){return"_ngcontent-%COMP%".replace(Wo,e)}(r+"-"+i.id),this.hostAttr=function BI(e){return"_nghost-%COMP%".replace(Wo,e)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class GI extends Ko{constructor(n,t,i,r){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const a=r0(r.id,r.styles,[]);for(let o=0;o<a.length;o++){const s=document.createElement("style");s.textContent=a[o],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let $I=(()=>{class e extends th{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const ch=["alt","control","meta","shift"],qI={"\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"},lh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},KI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let YI=(()=>{class e extends th{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const a=e.parseEventName(i),o=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>R4().onAndCancel(t,a.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const a=e._normalizeKey(i.pop());let o="";if(ch.forEach(c=>{const l=i.indexOf(c);l>-1&&(i.splice(l,1),o+=c+".")}),o+=a,0!=i.length||0===a.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let i="",r=function QI(e){let n=e.key;if(null==n){if(n=e.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&lh.hasOwnProperty(n)&&(n=lh[n]))}return qI[n]||n}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),ch.forEach(a=>{a!=r&&KI[a](t)&&(i+=a+".")}),i+=r,i}static eventCallback(t,i,r){return a=>{e.getEventFullKey(a)===t&&r.runGuarded(()=>i(a))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const eO=_d(tk,"browser",[{provide:po,useValue:"browser"},{provide:fd,useValue:function ZI(){jo.makeCurrent(),Go.init()},multi:!0},{provide:D1,useFactory:function XI(){return function _D(e){ar=e}(document),document},deps:[]}]),tO=[{provide:_a,useValue:"root"},{provide:_5,useFactory:function JI(){return new _5},deps:[]},{provide:t0,useClass:$I,multi:!0,deps:[D1,P2,po]},{provide:t0,useClass:YI,multi:!0,deps:[D1]},{provide:qo,useClass:qo,deps:[n0,$5,F5]},{provide:Wa,useExisting:qo},{provide:nh,useExisting:$5},{provide:$5,useClass:$5,deps:[D1]},{provide:_o,useClass:_o,deps:[P2]},{provide:n0,useClass:n0,deps:[t0,P2]},{provide:class xI{},useClass:OI,deps:[]}];let nO=(()=>{class e{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:F5,useValue:t.appId},{provide:eh,useExisting:F5},II]}}}return e.\u0275fac=function(t){return new(t||e)(q(e,12))},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({providers:tO,imports:[U3,nk]}),e})();"undefined"!=typeof window&&window;let Ch=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new(t||e):q(dh),i},providedIn:"root"}),e})(),dh=(()=>{class e extends Ch{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Q2.NONE:return i;case Q2.HTML:return x4(i,"HTML")?k3(i):hl(this._doc,String(i)).toString();case Q2.STYLE:return x4(i,"Style")?k3(i):i;case Q2.SCRIPT:if(x4(i,"Script"))return k3(i);throw new Error("unsafe value used in a script context");case Q2.URL:return ol(i),x4(i,"URL")?k3(i):p5(String(i));case Q2.RESOURCE_URL:if(x4(i,"ResourceURL"))return k3(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function ES(e){return new DS(e)}(t)}bypassSecurityTrustStyle(t){return function AS(e){return new SS(e)}(t)}bypassSecurityTrustScript(t){return function TS(e){return new NS(e)}(t)}bypassSecurityTrustUrl(t){return function kS(e){return new zS(e)}(t)}bypassSecurityTrustResourceUrl(t){return function IS(e){return new xS(e)}(t)}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:function(t){let i=null;return i=t?new t:function CO(e){return new dh(e.get(D1))}(q(A1)),i},providedIn:"root"}),e})();const{isArray:dO}=Array,{getPrototypeOf:hO,prototype:pO,keys:gO}=Object;function hh(e){if(1===e.length){const n=e[0];if(dO(n))return{args:n,keys:null};if(function mO(e){return e&&"object"==typeof e&&hO(e)===pO}(n)){const t=gO(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:vO}=Array;function Qo(e){return m2(n=>function _O(e,n){return vO(n)?e(...n):e(n)}(e,n))}function ph(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let gh=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(L(C3),L(T2))},e.\u0275dir=B({type:e}),e})(),at=(()=>{class e extends gh{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,features:[J]}),e})();const n4=new v2("NgValueAccessor"),yO={provide:n4,useExisting:z2(()=>d3),multi:!0};let d3=(()=>{class e extends at{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){1&t&&A("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[$2([yO]),J]}),e})();const bO={provide:n4,useExisting:z2(()=>Ne),multi:!0},VO=new v2("CompositionEventMode");let Ne=(()=>{class e extends gh{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function LO(){const e=R4()?R4().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(L(C3),L(T2),L(VO,8))},e.\u0275dir=B({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(t,i){1&t&&A("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[$2([bO]),J]}),e})();const h3=new v2("NgValidators"),xe=new v2("NgAsyncValidators"),HO=/^(?=.{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 bh(e){return function ze(e){return null==e||0===e.length}(e.value)||HO.test(e.value)?null:{email:!0}}function a0(e){return null}function wh(e){return null!=e}function Dh(e){const n=D5(e)?G1(e):e;return Ta(n),n}function Sh(e){let n={};return e.forEach(t=>{n=null!=t?Object.assign(Object.assign({},n),t):n}),0===Object.keys(n).length?null:n}function Nh(e,n){return n.map(t=>t(e))}function zh(e){return e.map(n=>function wO(e){return!e.validate}(n)?n:t=>n.validate(t))}function Zo(e){return null!=e?function xh(e){if(!e)return null;const n=e.filter(wh);return 0==n.length?null:function(t){return Sh(Nh(t,n))}}(zh(e)):null}function Jo(e){return null!=e?function Eh(e){if(!e)return null;const n=e.filter(wh);return 0==n.length?null:function(t){return function MO(...e){const n=Bn(e),{args:t,keys:i}=hh(e),r=new k2(a=>{const{length:o}=t;if(!o)return void a.complete();const s=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let f=!1;o3(t[u]).subscribe(O2(a,h=>{f||(f=!0,l--),s[u]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||a.next(i?ph(i,s):s),a.complete())}))}});return n?r.pipe(Qo(n)):r}(Nh(t,n).map(Dh)).pipe(m2(Sh))}}(zh(e)):null}function Ah(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Xo(e){return e?Array.isArray(e)?e:[e]:[]}function o0(e,n){return Array.isArray(e)?e.includes(n):e===n}function Ih(e,n){const t=Xo(n);return Xo(e).forEach(r=>{o0(t,r)||t.push(r)}),t}function Oh(e,n){return Xo(n).filter(t=>!o0(e,t))}class Rh{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Zo(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Jo(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ee extends Rh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L3 extends Rh{get formDirective(){return null}get path(){return null}}let M1=(()=>{class e extends class Ph{constructor(n){this._cd=n}is(n){var t,i,r;return"submitted"===n?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Ee,2))},e.\u0275dir=B({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Z2("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[J]}),e})();function W5(e,n){(function n7(e,n){const t=function Th(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(Ah(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function kh(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(Ah(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();u0(n._rawValidators,r),u0(n._rawAsyncValidators,r)})(e,n),n.valueAccessor.writeValue(e.value),function kO(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Bh(e,n)})}(e,n),function OO(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function IO(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Bh(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function TO(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function u0(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Bh(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function a7(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const q5="VALID",C0="INVALID",H6="PENDING",K5="DISABLED";function s7(e){return(d0(e)?e.validators:e)||null}function $h(e){return Array.isArray(e)?Zo(e):e||null}function c7(e,n){return(d0(n)?n.asyncValidators:e)||null}function Wh(e){return Array.isArray(e)?Jo(e):e||null}function d0(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}const l7=e=>e instanceof f7;function Kh(e){return(e=>e instanceof Zh)(e)?e.value:e.getRawValue()}function Yh(e,n){const t=l7(e),i=e.controls;if(!(t?Object.keys(i):i).length)throw new S2(1e3,"");if(!i[n])throw new S2(1001,"")}function Qh(e,n){l7(e),e._forEachChild((i,r)=>{if(void 0===n[r])throw new S2(1002,"")})}class u7{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=$h(this._rawValidators),this._composedAsyncValidatorFn=Wh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===q5}get invalid(){return this.status===C0}get pending(){return this.status==H6}get disabled(){return this.status===K5}get enabled(){return this.status!==K5}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=$h(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=Wh(n)}addValidators(n){this.setValidators(Ih(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Ih(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Oh(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Oh(n,this._rawAsyncValidators))}hasValidator(n){return o0(this._rawValidators,n)}hasAsyncValidator(n){return o0(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=H6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=K5,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=q5,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===q5||this.status===H6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?K5:q5}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=H6,this._hasOwnPendingAsyncValidator=!0;const t=Dh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){return function BO(e,n,t){if(null==n||(Array.isArray(n)||(n=n.split(t)),Array.isArray(n)&&0===n.length))return null;let i=e;return n.forEach(r=>{i=l7(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(e=>e instanceof jO)(i)&&i.at(r)||null}),i}(this,n,".")}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new r2,this.statusChanges=new r2}_calculateStatus(){return this._allControlsDisabled()?K5:this.errors?C0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(H6)?H6:this._anyControlsHaveStatus(C0)?C0:q5}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){d0(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Zh extends u7{constructor(n=null,t,i){super(s7(t),c7(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),d0(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){a7(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){a7(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class f7 extends u7{constructor(n,t,i){super(s7(t),c7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){Qh(this,n),Object.keys(n).forEach(i=>{Yh(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=Kh(t),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,t,i)=>((t.enabled||this.disabled)&&(n[i]=t.value),n))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,a)=>{i=t(i,r,a)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class jO extends u7{constructor(n,t,i){super(s7(t),c7(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),t&&(this.controls.splice(n,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){Qh(this,n),n.forEach((i,r)=>{Yh(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>Kh(n))}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const WO={provide:Ee,useExisting:z2(()=>h1)},ep=(()=>Promise.resolve(null))();let h1=(()=>{class e extends Ee{constructor(t,i,r,a,o){super(),this._changeDetectorRef=o,this.control=new Zh,this._registered=!1,this.update=new r2,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function r7(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(a=>{a.constructor===Ne?t=a:function FO(e){return Object.getPrototypeOf(e.constructor)===at}(a)?i=a:r=a}),r||i||t||null}(0,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function i7(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){W5(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ep.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=""===i||i&&"false"!==i;ep.then(()=>{var a;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()})}_getPath(t){return this._parent?function c0(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(L(L3,9),L(h3,10),L(xe,10),L(n4,10),L(B3,8))},e.\u0275dir=B({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:[$2([WO]),J,V1]}),e})();const KO={provide:n4,useExisting:z2(()=>w6),multi:!0};let w6=(()=>{class e extends at{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&A("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},features:[$2([KO]),J]}),e})(),tp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();const iR={provide:n4,useExisting:z2(()=>ie),multi:!0};function cp(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let ie=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=cp(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function rR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,i){1&t&&A("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[$2([iR]),J]}),e})(),ot=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(cp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(L(T2),L(C3),L(ie,9))},e.\u0275dir=B({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const aR={provide:n4,useExisting:z2(()=>g7),multi:!0};function lp(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let g7=(()=>{class e extends at{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(a=>this._getOptionId(a));i=(a,o)=>{a._setSelected(r.indexOf(o.toString())>-1)}}else i=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],a=i.selectedOptions;if(void 0!==a){const o=a;for(let s=0;s<o.length;s++){const l=this._getOptionValue(o[s].value);r.push(l)}}else{const o=i.options;for(let s=0;s<o.length;s++){const c=o[s];if(c.selected){const l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function oR(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,i){1&t&&A("change",function(a){return i.onChange(a.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[$2([aR]),J]}),e})(),st=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(lp(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(lp(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(L(T2),L(C3),L(g7,9))},e.\u0275dir=B({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),ct=(()=>{class e{constructor(){this._validator=a0}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):a0,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=B({type:e,features:[V1]}),e})();const CR={provide:h3,useExisting:z2(()=>v7),multi:!0};let v7=(()=>{class e extends ct{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t=>""===t||!0===t||"true"===t,this.createValidator=t=>bh}enabled(t){return t}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=l3(e)))(i||e)}}(),e.\u0275dir=B({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[$2([CR]),J]}),e})(),gR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[tp]]}),e})(),vp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[gR]}),e})();function s2(...e){return G1(e,Z6(e))}const mR=["addListener","removeListener"],vR=["addEventListener","removeEventListener"],_R=["on","off"];function p3(e,n,t,i){if(K(t)&&(i=t,t=void 0),i)return p3(e,n,t).pipe(Qo(i));const[r,a]=function bR(e){return K(e.addEventListener)&&K(e.removeEventListener)}(e)?vR.map(o=>s=>e[o](n,s,t)):function MR(e){return K(e.addListener)&&K(e.removeListener)}(e)?mR.map(_p(e,n)):function yR(e){return K(e.on)&&K(e.off)}(e)?_R.map(_p(e,n)):[];if(!r&&Bi(e))return b1(o=>p3(o,n,t))(o3(e));if(!r)throw new TypeError("Invalid event target");return new k2(o=>{const s=(...c)=>o.next(1<c.length?c:c[0]);return r(s),()=>a(s)})}function _p(e,n){return t=>i=>e[t](n,i)}class LR extends H2{constructor(n,t){super()}schedule(n,t=0){return this}}const h0={setInterval(e,n,...t){const{delegate:i}=h0;return(null==i?void 0:i.setInterval)?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=h0;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},Mp={now:()=>(Mp.delegate||Date).now(),delegate:void 0};class Q5{constructor(n,t=Q5.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Q5.now=Mp.now;const yp=new class HR extends Q5{constructor(n,t=Q5.now){super(n,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}(class VR extends LR{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,i=0){return h0.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;h0.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(a){i=!0,r=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,W2(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),wR=yp;function _7(e=0,n,t=wR){let i=-1;return null!=n&&(J9(n)?t=n:i=n),new k2(r=>{let a=function DR(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;a<0&&(a=0);let o=0;return t.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},a)})}const{isArray:SR}=Array;function bp(e){return 1===e.length&&SR(e[0])?e[0]:e}function Lp(...e){return 1===(e=bp(e)).length?o3(e[0]):new k2(function NR(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(o3(e[i]).subscribe(O2(n,r=>{if(t){for(let a=0;a<t.length;a++)a!==i&&t[a].unsubscribe();t=null}n.next(r)})))}}(e))}class W1 extends C2{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function Vp(e,n,t){e?$4(t,e,n):n()}function p0(...e){const n=Bn(e),t=bp(e);return t.length?new k2(i=>{let r=t.map(()=>[]),a=t.map(()=>!1);i.add(()=>{r=a=null});for(let o=0;!i.closed&&o<t.length;o++)o3(t[o]).subscribe(O2(i,s=>{if(r[o].push(s),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,u)=>!l.length&&a[u])&&i.complete()}},()=>{a[o]=!0,!r[o].length&&i.complete()}));return()=>{r=a=null}}):c4}function Z5(...e){return function xR(){return Q6(1)}()(G1(e,Z6(e)))}function U1(e){return a1((n,t)=>{o3(e).subscribe(O2(t,()=>t.complete(),I1)),!t.closed&&n.subscribe(t)})}function Z1(e,n){return a1((t,i)=>{let r=0;t.subscribe(O2(i,a=>e.call(n,a,r++)&&i.next(a)))})}function re(e,n){return a1((t,i)=>{let r=null,a=0,o=!1;const s=()=>o&&!r&&i.complete();t.subscribe(O2(i,c=>{null==r||r.unsubscribe();let l=0;const u=a++;o3(e(c,u)).subscribe(r=O2(i,f=>i.next(n?n(c,f,u,l++):f),()=>{r=null,s()}))},()=>{o=!0,s()}))})}function g3(e,n,t){const i=K(e)||n||t?{next:e,error:n,complete:t}:e;return i?a1((r,a)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let s=!0;r.subscribe(O2(a,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),a.next(c)},()=>{var c;s=!1,null===(c=i.complete)||void 0===c||c.call(i),a.complete()},c=>{var l;s=!1,null===(l=i.error)||void 0===l||l.call(i,c),a.error(c)},()=>{var c,l;s&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):o4}function b7(...e){const n=Bn(e);return a1((t,i)=>{const r=e.length,a=new Array(r);let o=e.map(()=>!1),s=!1;for(let c=0;c<r;c++)o3(e[c]).subscribe(O2(i,l=>{a[c]=l,!s&&!o[c]&&(o[c]=!0,(s=o.every(o4))&&(o=null))},I1));t.subscribe(O2(i,c=>{if(s){const l=[c,...a];i.next(n?n(...l):l)}}))})}function wp(e,n){return n?t=>Z5(n.pipe(Y1(1),function TR(){return a1((e,n)=>{e.subscribe(O2(n,I1))})}()),t.pipe(wp(e))):b1((t,i)=>e(t,i).pipe(Y1(1),function kR(e){return m2(()=>e)}(t)))}function Dp(e,n=yp){const t=_7(e,n);return wp(()=>t)}new k2(I1);var OR={left:"right",right:"left",bottom:"top",top:"bottom"};function m0(e){return e.replace(/left|right|bottom|top/g,function(n){return OR[n]})}function P4(e){return e.split("-")[0]}var RR={start:"end",end:"start"};function Sp(e){return e.replace(/start|end/g,function(n){return RR[n]})}var j3="top",y4="bottom",b4="right",G3="left",L7="auto",J5=[j3,y4,b4,G3],D6="start",X5="end",Np="viewport",en="popper",zp=J5.reduce(function(e,n){return e.concat([n+"-"+D6,n+"-"+X5])},[]),xp=[].concat(J5,[L7]).reduce(function(e,n){return e.concat([n,n+"-"+D6,n+"-"+X5])},[]),QR=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function L4(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function S6(e){return e instanceof L4(e).Element||e instanceof Element}function i4(e){return e instanceof L4(e).HTMLElement||e instanceof HTMLElement}function V7(e){return"undefined"!=typeof ShadowRoot&&(e instanceof L4(e).ShadowRoot||e instanceof ShadowRoot)}function Ae(e){return((S6(e)?e.ownerDocument:e.document)||window.document).documentElement}var lt=Math.max,v0=Math.min,N6=Math.round;function z6(e,n){void 0===n&&(n=!1);var t=e.getBoundingClientRect(),i=1,r=1;if(i4(e)&&n){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=N6(t.width)/o||1),a>0&&(r=N6(t.height)/a||1)}return{width:t.width/i,height:t.height/r,top:t.top/r,right:t.right/i,bottom:t.bottom/r,left:t.left/i,x:t.left/i,y:t.top/r}}function H7(e){var n=L4(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function w7(e){return z6(Ae(e)).left+H7(e).scrollLeft}function ae(e){return L4(e).getComputedStyle(e)}function F4(e){return e?(e.nodeName||"").toLowerCase():null}function _0(e){return"html"===F4(e)?e:e.assignedSlot||e.parentNode||(V7(e)?e.host:null)||Ae(e)}function D7(e){var n=ae(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function Ep(e){return["html","body","#document"].indexOf(F4(e))>=0?e.ownerDocument.body:i4(e)&&D7(e)?e:Ep(_0(e))}function tn(e,n){var t;void 0===n&&(n=[]);var i=Ep(e),r=i===(null==(t=e.ownerDocument)?void 0:t.body),a=L4(i),o=r?[a].concat(a.visualViewport||[],D7(i)?i:[]):i,s=n.concat(o);return r?s:s.concat(tn(_0(o)))}function XR(e){return["table","td","th"].indexOf(F4(e))>=0}function Ap(e){return i4(e)&&"fixed"!==ae(e).position?e.offsetParent:null}function nn(e){for(var n=L4(e),t=Ap(e);t&&XR(t)&&"static"===ae(t).position;)t=Ap(t);return t&&("html"===F4(t)||"body"===F4(t)&&"static"===ae(t).position)?n:t||function eP(e){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i4(e)&&"fixed"===ae(e).position)return null;var r=_0(e);for(V7(r)&&(r=r.host);i4(r)&&["html","body"].indexOf(F4(r))<0;){var a=ae(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||n&&"filter"===a.willChange||n&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||n}function Tp(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&V7(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function S7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kp(e,n){return n===Np?S7(function ZR(e){var n=L4(e),t=Ae(e),i=n.visualViewport,r=t.clientWidth,a=t.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+w7(e),y:s}}(e)):S6(n)?function tP(e){var n=z6(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(n):S7(function JR(e){var n,t=Ae(e),i=H7(e),r=null==(n=e.ownerDocument)?void 0:n.body,a=lt(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=lt(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+w7(e),c=-i.scrollTop;return"rtl"===ae(r||t).direction&&(s+=lt(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(Ae(e)))}function x6(e){return e.split("-")[1]}function N7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ip(e){var c,n=e.reference,t=e.element,i=e.placement,r=i?P4(i):null,a=i?x6(i):null,o=n.x+n.width/2-t.width/2,s=n.y+n.height/2-t.height/2;switch(r){case j3:c={x:o,y:n.y-t.height};break;case y4:c={x:o,y:n.y+n.height};break;case b4:c={x:n.x+n.width,y:s};break;case G3:c={x:n.x-t.width,y:s};break;default:c={x:n.x,y:n.y}}var l=r?N7(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case D6:c[l]=c[l]-(n[u]/2-t[u]/2);break;case X5:c[l]=c[l]+(n[u]/2-t[u]/2)}}return c}function Rp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Pp(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function z7(e,n){void 0===n&&(n={});var i=n.placement,r=void 0===i?e.placement:i,a=n.boundary,o=void 0===a?"clippingParents":a,s=n.rootBoundary,c=void 0===s?Np:s,l=n.elementContext,u=void 0===l?en:l,f=n.altBoundary,h=void 0!==f&&f,g=n.padding,V=void 0===g?0:g,H=Rp("number"!=typeof V?V:Pp(V,J5)),z=e.rects.popper,w=e.elements[h?u===en?"reference":en:u],T=function iP(e,n,t){var i="clippingParents"===n?function nP(e){var n=tn(_0(e)),i=["absolute","fixed"].indexOf(ae(e).position)>=0&&i4(e)?nn(e):e;return S6(i)?n.filter(function(r){return S6(r)&&Tp(r,i)&&"body"!==F4(r)}):[]}(e):[].concat(n),r=[].concat(i,[t]),o=r.reduce(function(s,c){var l=kp(e,c);return s.top=lt(l.top,s.top),s.right=v0(l.right,s.right),s.bottom=v0(l.bottom,s.bottom),s.left=lt(l.left,s.left),s},kp(e,r[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(S6(w)?w:w.contextElement||Ae(e.elements.popper),o,c),F=z6(e.elements.reference),U=Ip({reference:F,element:z,strategy:"absolute",placement:r}),Q=S7(Object.assign({},z,U)),f2=u===en?Q:F,g2={top:T.top-f2.top+H.top,bottom:f2.bottom-T.bottom+H.bottom,left:T.left-f2.left+H.left,right:f2.right-T.right+H.right},F2=e.modifiersData.offset;if(u===en&&F2){var N1=F2[r];Object.keys(g2).forEach(function(e1){var V3=[b4,y4].indexOf(e1)>=0?1:-1,e3=[j3,y4].indexOf(e1)>=0?"y":"x";g2[e1]+=N1[e3]*V3})}return g2}const sP={name:"flip",enabled:!0,phase:"main",fn:function oP(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0===o||o,c=t.fallbackPlacements,l=t.padding,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,V=void 0===g||g,H=t.allowedAutoPlacements,N=n.options.placement,z=P4(N),T=c||(z!==N&&V?function aP(e){if(P4(e)===L7)return[];var n=m0(e);return[Sp(e),n,Sp(n)]}(N):[m0(N)]),F=[N].concat(T).reduce(function(j6,Fe){return j6.concat(P4(Fe)===L7?function rP(e,n){void 0===n&&(n={});var r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?xp:c,u=x6(n.placement),f=u?s?zp:zp.filter(function(V){return x6(V)===u}):J5,h=f.filter(function(V){return l.indexOf(V)>=0});0===h.length&&(h=f);var g=h.reduce(function(V,H){return V[H]=z7(e,{placement:H,boundary:r,rootBoundary:a,padding:o})[P4(H)],V},{});return Object.keys(g).sort(function(V,H){return g[V]-g[H]})}(n,{placement:Fe,boundary:u,rootBoundary:f,padding:l,flipVariations:V,allowedAutoPlacements:H}):Fe)},[]),U=n.rects.reference,Q=n.rects.popper,f2=new Map,g2=!0,F2=F[0],N1=0;N1<F.length;N1++){var e1=F[N1],V3=P4(e1),e3=x6(e1)===D6,pe=[j3,y4].indexOf(V3)>=0,ge=pe?"width":"height",t3=z7(n,{placement:e1,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),w4=pe?e3?b4:G3:e3?y4:j3;U[ge]>Q[ge]&&(w4=m0(w4));var wi=m0(w4),Vt=[];if(a&&Vt.push(t3[V3]<=0),s&&Vt.push(t3[w4]<=0,t3[wi]<=0),Vt.every(function(j6){return j6})){F2=e1,g2=!1;break}f2.set(e1,Vt)}if(g2)for(var R9=function(Fe){var kn=F.find(function(Ni){var Ht=f2.get(Ni);if(Ht)return Ht.slice(0,Fe).every(function(P9){return P9})});if(kn)return F2=kn,"break"},Tn=V?3:1;Tn>0&&"break"!==R9(Tn);Tn--);n.placement!==F2&&(n.modifiersData[i]._skip=!0,n.placement=F2,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rn(e,n,t){return lt(e,v0(n,t))}function x7(e){var n=z6(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}const fP={name:"preventOverflow",enabled:!0,phase:"main",fn:function uP(e){var n=e.state,t=e.options,i=e.name,r=t.mainAxis,a=void 0===r||r,o=t.altAxis,s=void 0!==o&&o,h=t.tether,g=void 0===h||h,V=t.tetherOffset,H=void 0===V?0:V,N=z7(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),z=P4(n.placement),w=x6(n.placement),T=!w,F=N7(z),U=function cP(e){return"x"===e?"y":"x"}(F),Q=n.modifiersData.popperOffsets,f2=n.rects.reference,g2=n.rects.popper,F2="function"==typeof H?H(Object.assign({},n.rects,{placement:n.placement})):H,N1="number"==typeof F2?{mainAxis:F2,altAxis:F2}:Object.assign({mainAxis:0,altAxis:0},F2),e1=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V3={x:0,y:0};if(Q){if(a){var e3,pe="y"===F?j3:G3,ge="y"===F?y4:b4,t3="y"===F?"height":"width",w4=Q[F],wi=w4+N[pe],Vt=w4-N[ge],Di=g?-g2[t3]/2:0,R9=w===D6?f2[t3]:g2[t3],Tn=w===D6?-g2[t3]:-f2[t3],Si=n.elements.arrow,j6=g&&Si?x7(Si):{width:0,height:0},Fe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},kn=Fe[pe],Ni=Fe[ge],Ht=rn(0,f2[t3],j6[t3]),P9=T?f2[t3]/2-Di-Ht-kn-N1.mainAxis:R9-Ht-kn-N1.mainAxis,Tf2=T?-f2[t3]/2+Di+Ht+Ni+N1.mainAxis:Tn+Ht+Ni+N1.mainAxis,F9=n.elements.arrow&&nn(n.elements.arrow),_w=null!=(e3=null==e1?void 0:e1[F])?e3:0,Of2=w4+Tf2-_w,Mw=rn(g?v0(wi,w4+P9-_w-(F9?"y"===F?F9.clientTop||0:F9.clientLeft||0:0)):wi,w4,g?lt(Vt,Of2):Vt);Q[F]=Mw,V3[F]=Mw-w4}if(s){var yw,wt=Q[U],zi="y"===U?"height":"width",bw=wt+N["x"===F?j3:G3],Lw=wt-N["x"===F?y4:b4],B9=-1!==[j3,G3].indexOf(z),Vw=null!=(yw=null==e1?void 0:e1[U])?yw:0,Hw=B9?bw:wt-f2[zi]-g2[zi]-Vw+N1.altAxis,ww=B9?wt+f2[zi]+g2[zi]-Vw-N1.altAxis:Lw,Dw=g&&B9?function lP(e,n,t){var i=rn(e,n,t);return i>t?t:i}(Hw,wt,ww):rn(g?Hw:bw,wt,g?ww:Lw);Q[U]=Dw,V3[U]=Dw-wt}n.modifiersData[i]=V3}},requiresIfExists:["offset"]},pP={name:"arrow",enabled:!0,phase:"main",fn:function dP(e){var n,t=e.state,i=e.name,r=e.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=P4(t.placement),c=N7(s),u=[G3,b4].indexOf(s)>=0?"height":"width";if(a&&o){var f=function(n,t){return Rp("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:Pp(n,J5))}(r.padding,t),h=x7(a),g="y"===c?j3:G3,V="y"===c?y4:b4,H=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],N=o[c]-t.rects.reference[c],z=nn(a),w=z?"y"===c?z.clientHeight||0:z.clientWidth||0:0,Q=w/2-h[u]/2+(H/2-N/2),f2=rn(f[g],Q,w-h[u]-f[V]);t.modifiersData[i]=((n={})[c]=f2,n.centerOffset=f2-Q,n)}},effect:function hP(e){var n=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=n.elements.popper.querySelector(r))||!Tp(n.elements.popper,r)||(n.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _P(e,n,t){void 0===t&&(t=!1);var i=i4(n),r=i4(n)&&function vP(e){var n=e.getBoundingClientRect(),t=N6(n.width)/e.offsetWidth||1,i=N6(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),a=Ae(n),o=z6(e,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&(("body"!==F4(n)||D7(a))&&(s=function mP(e){return e!==L4(e)&&i4(e)?function gP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):H7(e)}(n)),i4(n)?((c=z6(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):a&&(c.x=w7(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function MP(e){var n=new Map,t=new Set,i=[];function r(a){t.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach(function(s){if(!t.has(s)){var c=n.get(s);c&&r(c)}}),i.push(a)}return e.forEach(function(a){n.set(a.name,a)}),e.forEach(function(a){t.has(a.name)||r(a)}),i}function bP(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var Fp={placement:"bottom",modifiers:[],strategy:"absolute"};function Bp(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return!n.some(function(i){return!(i&&"function"==typeof i.getBoundingClientRect)})}function VP(e){void 0===e&&(e={});var t=e.defaultModifiers,i=void 0===t?[]:t,r=e.defaultOptions,a=void 0===r?Fp:r;return function(s,c,l){void 0===l&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fp,a),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(z){var w="function"==typeof z?z(u.options):z;H(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:S6(s)?tn(s):s.contextElement?tn(s.contextElement):[],popper:tn(c)};var T=function yP(e){var n=MP(e);return QR.reduce(function(t,i){return t.concat(n.filter(function(r){return r.phase===i}))},[])}(function LP(e){var n=e.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(n).map(function(t){return n[t]})}([].concat(i,u.options.modifiers)));return u.orderedModifiers=T.filter(function(e1){return e1.enabled}),function V(){u.orderedModifiers.forEach(function(N){var w=N.options,F=N.effect;if("function"==typeof F){var U=F({state:u,name:N.name,instance:g,options:void 0===w?{}:w});f.push(U||function(){})}})}(),g.update()},forceUpdate:function(){if(!h){var z=u.elements,w=z.reference,T=z.popper;if(Bp(w,T)){u.rects={reference:_P(w,nn(T),"fixed"===u.options.strategy),popper:x7(T)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(e1){return u.modifiersData[e1.name]=Object.assign({},e1.data)});for(var U=0;U<u.orderedModifiers.length;U++)if(!0!==u.reset){var Q=u.orderedModifiers[U],f2=Q.fn,g2=Q.options;"function"==typeof f2&&(u=f2({state:u,options:void 0===g2?{}:g2,name:Q.name,instance:g})||u)}else u.reset=!1,U=-1}}},update:bP(function(){return new Promise(function(N){g.forceUpdate(),N(u)})}),destroy:function(){H(),h=!0}};if(!Bp(s,c))return g;function H(){f.forEach(function(N){return N()}),f=[]}return g.setOptions(l).then(function(N){!h&&l.onFirstUpdate&&l.onFirstUpdate(N)}),g}}var M0={passive:!0},NP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Up(e){var n,t=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=o.x,g=void 0===h?0:h,V=o.y,H=void 0===V?0:V,N="function"==typeof u?u({x:g,y:H}):{x:g,y:H};g=N.x,H=N.y;var z=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),T=G3,F=j3,U=window;if(l){var Q=nn(t),f2="clientHeight",g2="clientWidth";Q===L4(t)&&"static"!==ae(Q=Ae(t)).position&&"absolute"===s&&(f2="scrollHeight",g2="scrollWidth"),Q=Q,(r===j3||(r===G3||r===b4)&&a===X5)&&(F=y4,H-=(f&&Q===U&&U.visualViewport?U.visualViewport.height:Q[f2])-i.height,H*=c?1:-1),r!==G3&&(r!==j3&&r!==y4||a!==X5)||(T=b4,g-=(f&&Q===U&&U.visualViewport?U.visualViewport.width:Q[g2])-i.width,g*=c?1:-1)}var e3,e1=Object.assign({position:s},l&&NP),V3=!0===u?function zP(e){var t=e.y,r=window.devicePixelRatio||1;return{x:N6(e.x*r)/r||0,y:N6(t*r)/r||0}}({x:g,y:H}):{x:g,y:H};return g=V3.x,H=V3.y,Object.assign({},e1,c?((e3={})[F]=w?"0":"",e3[T]=z?"0":"",e3.transform=(U.devicePixelRatio||1)<=1?"translate("+g+"px, "+H+"px)":"translate3d("+g+"px, "+H+"px, 0)",e3):((n={})[F]=w?H+"px":"",n[T]=z?g+"px":"",n.transform="",n))}var IP=VP({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function HP(e){var n=e.state,t=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,o=i.resize,s=void 0===o||o,c=L4(n.elements.popper),l=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",t.update,M0)}),s&&c.addEventListener("resize",t.update,M0),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",t.update,M0)}),s&&c.removeEventListener("resize",t.update,M0)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function DP(e){var n=e.state;n.modifiersData[e.name]=Ip({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function xP(e){var n=e.state,t=e.options,i=t.gpuAcceleration,r=void 0===i||i,a=t.adaptive,o=void 0===a||a,s=t.roundOffsets,c=void 0===s||s,u={placement:P4(n.placement),variation:x6(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Up(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:o,roundOffsets:c})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Up(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function AP(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},r=n.attributes[t]||{},a=n.elements[t];!i4(a)||!F4(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(o){var s=r[o];!1===s?a.removeAttribute(o):a.setAttribute(o,!0===s?"":s)}))})},effect:function TP(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var r=n.elements[i],a=n.attributes[i]||{},s=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(c,l){return c[l]="",c},{});!i4(r)||!F4(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]}]});const PP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function RP(e){var n=e.state,i=e.name,r=e.options.offset,a=void 0===r?[0,0]:r,o=xp.reduce(function(u,f){return u[f]=function OP(e,n,t){var i=P4(e),r=[G3,j3].indexOf(i)>=0?-1:1,a="function"==typeof t?t(Object.assign({},n,{placement:e})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[G3,b4].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(f,n.rects,a),u},{}),s=o[n.placement],l=s.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=s.x,n.modifiersData.popperOffsets.y+=l),n.modifiersData[i]=o}};function FP(e,n){}function BP(e,n){if(1&e&&(p(0,"button",3),M(1),O(2,FP,0,0,"ng-template",4),m()),2&e){const t=n.$implicit;b("ngbPanelToggle",t),_(1),X3(" ",t.title,""),_(1),b("ngTemplateOutlet",null==t.titleTpl?null:t.titleTpl.templateRef)}}function UP(e,n){}function jP(e,n){}function GP(e,n){if(1&e){const t=H1();p(0,"div",8),A("ngbRef",function(r){return W(t),E().$implicit.panelDiv=r}),p(1,"div",9),O(2,jP,0,0,"ng-template",4),m()()}if(2&e){const t=E().$implicit;Ia("id",t.id),j("aria-labelledby",t.id+"-header"),_(2),b("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)}}const $P=function(e,n){return{$implicit:e,opened:n}};function WP(e,n){if(1&e&&(p(0,"div")(1,"div",5),O(2,UP,0,0,"ng-template",6),m(),O(3,GP,3,3,"div",7),m()),2&e){const t=n.$implicit,i=E(),r=R3(1);X4("accordion-item "+(t.cardClass||"")),_(1),X4("accordion-header "+(t.type?"bg-"+t.type:i.type?"bg-"+i.type:"")),h6("id","",t.id,"-header"),_(1),b("ngTemplateOutlet",(null==t.headerTpl?null:t.headerTpl.templateRef)||r)("ngTemplateOutletContext",I5(8,$P,t,t.isOpen)),_(1),b("ngIf",!i.destroyOnHide||t.isOpen||t.transitionRunning)}}function qP(e,n){if(1&e){const t=H1();p(0,"button",1),A("click",function(){return W(t),E().close()}),m()}}const y0=["*"],fF=["dialog"];function jF(e,n){1&e&&M(0),2&e&&N5(E(2).title)}function GF(e,n){}function $F(e,n){if(1&e&&(p(0,"h3",3),O(1,jF,1,1,"ng-template",null,4,F3),O(3,GF,0,0,"ng-template",5),m()),2&e){const t=R3(2),i=E();_(3),b("ngTemplateOutlet",i.isTitleTemplate()?i.title:t)("ngTemplateOutletContext",i.context)}}function A7(e){return"string"==typeof e}function ut(e){return null!=e}function E6(e){return(e||document.body).getBoundingClientRect()}const Gp={animation:!0,transitionTimerDelayMs:5},oB=()=>{},{transitionTimerDelayMs:sB}=Gp,an=new Map,m3=(e,n,t,i)=>{let r=i.context||{};const a=an.get(n);if(a)switch(i.runningTransition){case"continue":return c4;case"stop":e.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),an.delete(n)}const o=t(n,i.animation,r)||oB;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>o()),s2(void 0).pipe(function rB(e){return n=>new k2(t=>n.subscribe({next:o=>e.run(()=>t.next(o)),error:o=>e.run(()=>t.error(o)),complete:()=>e.run(()=>t.complete())}))}(e));const s=new C2,c=new C2,l=s.pipe(function ER(...e){return n=>Z5(n,s2(...e))}(!0));an.set(n,{transition$:s,complete:()=>{c.next(),c.complete()},context:r});const u=function aB(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const f=p3(n,"transitionend").pipe(U1(l),Z1(({target:g})=>g===n));Lp(_7(u+sB).pipe(U1(l)),f,c).pipe(U1(l)).subscribe(()=>{an.delete(n),e.run(()=>{o(),s.next(),s.complete()})})}),s.asObservable()},$p=(e,n,t)=>{let{direction:i,maxHeight:r}=t;const{classList:a}=e;function o(){a.add("collapse"),"show"===i?a.add("show"):a.remove("show")}if(n)return r||(r=function lB(e){if("undefined"==typeof navigator)return"0px";const{classList:n}=e,t=n.contains("show");t||n.add("show"),e.style.height="";const i=e.getBoundingClientRect().height+"px";return t||n.remove("show"),i}(e),t.maxHeight=r,e.style.height="show"!==i?r:"0px",a.remove("collapse"),a.remove("collapsing"),a.remove("show"),E6(e),a.add("collapsing")),e.style.height="show"===i?r:"0px",()=>{o(),a.remove("collapsing"),e.style.height=""};o()};let ft=(()=>{class e{constructor(){this.animation=Gp.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),uB=(()=>{class e{constructor(t){this._ngbConfig=t,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(ft))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fB=0,L0=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(L(c1))},e.\u0275dir=B({type:e,selectors:[["ng-template","ngbPanelHeader",""]]}),e})(),k7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(L(c1))},e.\u0275dir=B({type:e,selectors:[["ng-template","ngbPanelTitle",""]]}),e})(),I7=(()=>{class e{constructor(t){this.templateRef=t}}return e.\u0275fac=function(t){return new(t||e)(L(c1))},e.\u0275dir=B({type:e,selectors:[["ng-template","ngbPanelContent",""]]}),e})(),V0=(()=>{class e{constructor(){this.disabled=!1,this.id="ngb-panel-"+fB++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new r2,this.hidden=new r2}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=B({type:e,selectors:[["ngb-panel"]],contentQueries:function(t,i,r){if(1&t&&(w1(r,k7,4),w1(r,L0,4),w1(r,I7,4)),2&t){let a;f1(a=C1())&&(i.titleTpls=a),f1(a=C1())&&(i.headerTpls=a),f1(a=C1())&&(i.contentTpls=a)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),e})(),CB=(()=>{class e{constructor(t){this._El=t,this.ngbRef=new r2}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return e.\u0275fac=function(t){return new(t||e)(L(T2))},e.\u0275dir=B({type:e,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),e})(),O7=(()=>{class e{constructor(t,i,r){this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r2,this.shown=new r2,this.hidden=new r2,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const i=this._findPanelById(t);i&&this._changeOpenState(i,!i.isOpen)}ngAfterContentChecked(){A7(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>{t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Y1(1)).subscribe(()=>{this.panels.forEach(t=>{const i=t.panelDiv;i?t.initClassDone||(t.initClassDone=!0,m3(this._ngZone,i,$p,{animation:!1,runningTransition:"continue",context:{direction:t.isOpen?"show":"hide"}})):t.initClassDone=!1})})}_changeOpenState(t,i){if(null!=t&&!t.disabled&&t.isOpen!==i){let r=!1;this.panelChange.emit({panelId:t.id,nextState:i,preventDefault:()=>{r=!0}}),r||(t.isOpen=i,t.transitionRunning=!0,i&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(t,i=!0){this.panels.forEach(r=>{r.id!==t&&r.isOpen&&(r.isOpen=!1,r.transitionRunning=i)})}_findPanelById(t){return this.panels.find(i=>i.id===t)||null}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}_runTransitions(t){this._changeDetector.detectChanges(),this.panels.forEach(i=>{i.transitionRunning&&m3(this._ngZone,i.panelDiv,$p,{animation:t,runningTransition:"stop",context:{direction:i.isOpen?"show":"hide"}}).subscribe(()=>{i.transitionRunning=!1;const{id:a}=i;i.isOpen?(i.shown.emit(),this.shown.emit(a)):(i.hidden.emit(),this.hidden.emit(a))})})}}return e.\u0275fac=function(t){return new(t||e)(L(uB),L(P2),L(B3))},e.\u0275cmp=o2({type:e,selectors:[["ngb-accordion"]],contentQueries:function(t,i,r){if(1&t&&w1(r,V0,4),2&t){let a;f1(a=C1())&&(i.panels=a)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(t,i){2&t&&j("aria-multiselectable",!i.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],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(t,i){1&t&&(O(0,BP,3,3,"ng-template",0,1,F3),O(2,WP,4,11,"ng-template",2)),2&t&&(_(2),b("ngForOf",i.panels))},directives:function(){return[L0,R7,V6,rt,B1,CB]},encapsulation:2}),e})(),R7=(()=>{class e{constructor(t,i){this.accordion=t,this.panel=i}set ngbPanelToggle(t){t&&(this.panel=t)}}return e.\u0275fac=function(t){return new(t||e)(L(O7),L(V0,9))},e.\u0275dir=B({type:e,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(t,i){1&t&&A("click",function(){return i.accordion.toggle(i.panel.id)}),2&t&&(v4("disabled",i.panel.disabled),j("aria-expanded",i.panel.isOpen)("aria-controls",i.panel.id),Z2("collapsed",!i.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),e})(),Wp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})();const dB=({classList:e})=>{e.remove("show")};let hB=(()=>{class e{constructor(t){this._ngbConfig=t,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(ft))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qp=(()=>{class e{constructor(t,i,r,a){this._renderer=i,this._element=r,this._zone=a,this.closed=new r2,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=m3(this._zone,this._element.nativeElement,dB,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const i=t.type;i&&!i.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${i.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${i.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}return e.\u0275fac=function(t){return new(t||e)(L(hB),L(C3),L(T2),L(P2))},e.\u0275cmp=o2({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,i){2&t&&Z2("fade",i.animation)("alert-dismissible",i.dismissible)},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[V1],ngContentSelectors:y0,decls:2,vars:1,consts:function(){let n;return n=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",n,3,"click",4,"ngIf"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(t,i){1&t&&(C6(),d6(0),O(1,qP,1,0,"button",0)),2&t&&(_(1),b("ngIf",i.dismissible))},directives:[B1],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0}),e})(),Kp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Qp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})(),Xp=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),eg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();var j1=(()=>{return(e=j1||(j1={}))[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",j1;var e})();const w0=(e,n)=>!!n&&n.some(t=>t.contains(e)),tg=(e,n)=>!n||null!=function iB(e,n){return n&&void 0!==e.closest?e.closest(n):null}(e,n),SB="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function F7(e,n,t,i,r,a,o,s){t&&e.runOutsideAngular((e=>SB?()=>setTimeout(()=>e(),100):e)(()=>{const l=p3(n,"keydown").pipe(U1(r),Z1(h=>h.which===j1.Escape),g3(h=>h.preventDefault())),u=p3(n,"mousedown").pipe(m2(h=>{const g=h.target;return 2!==h.button&&!w0(g,o)&&("inside"===t?w0(g,a)&&tg(g,s):"outside"===t?!w0(g,a):tg(g,s)||!w0(g,a))}),U1(r)),f=p3(n,"mouseup").pipe(b7(u),Z1(([h,g])=>g),Dp(0),U1(r));Lp([l.pipe(m2(h=>0)),f.pipe(m2(h=>1))]).subscribe(h=>e.run(()=>i(h)))}))}const ng=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ig(e){const n=Array.from(e.querySelectorAll(ng)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}const xB=/\s+/,EB=/ +/gi,AB=/^start/,TB=/^end/,kB=/-(top|left)$/,IB=/-(bottom|right)$/,RB=/^left/,PB=/^right/,FB=/^start/,BB=/^end/;function rg({placement:e,baseClass:n}){let t=Array.isArray(e)?e:e.split(xB),r=t.findIndex(c=>"auto"===c);r>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(c){null==t.find(l=>-1!==l.search("^"+c))&&t.splice(r++,1,c)});const a=t.map(c=>function OB(e){return e.replace(AB,"left").replace(TB,"right").replace(kB,"-start").replace(IB,"-end")}(c));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:c}){const l=new RegExp(n+"(-[a-z]+)*","gi"),u=c.elements.popper,f=c.placement;let h=u.className;h=h.replace(l,""),h+=` ${function UB(e,n){let[t,i]=n.split("-");const r=t.replace(RB,"start").replace(PB,"end");let a=[r];if(i){let o=i;("left"===t||"right"===t)&&(o=o.replace(FB,"top").replace(BB,"bottom")),a.push(`${r}-${o}`)}return e&&(a=a.map(o=>`${e}-${o}`)),a.join(" ")}(n,f)}`,h=h.trim().replace(EB," "),u.className=h}},sP,fP,pP,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function ag(e){return e}function B7(){let e=null;return{createPopper(n){if(!e){let i=(n.updatePopperOptions||ag)(rg(n));e=IP(n.hostElement,n.targetElement,i)}},update(){e&&e.update()},setOptions(n){if(e){let i=(n.updatePopperOptions||ag)(rg(n));e.setOptions(i)}},destroy(){e&&(e.destroy(),e=null)}}}function og(e){return n=>(n.modifiers.push(PP,{name:"offset",options:{offset:()=>e}}),n)}new Date(1882,10,12),new Date(2174,10,25);let Cg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3,vp]]}),e})(),gg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();class pt{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class mg{constructor(n,t,i,r,a,o){this._type=n,this._injector=t,this._viewContainerRef=i,this._renderer=r,this._ngZone=a,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(n,t,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,t),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:r}=this._windowRef.location,a=this._ngZone.onStable.pipe(Y1(1),b1(()=>m3(this._ngZone,r,({classList:o})=>o.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?m3(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:n,runningTransition:"stop"}).pipe(g3(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):s2(void 0)}_getContentRef(n,t){if(n){if(n instanceof c1){const i=n.createEmbeddedView(t);return this._applicationRef.attachView(i),new pt([i.rootNodes],i)}return new pt([[this._renderer.createText(`${n}`)]])}return new pt([])}}let XB=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Y1(1)).subscribe(()=>{m3(this._zone,this._el.nativeElement,(t,i)=>{i&&E6(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return m3(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(L(T2),L(P2))},e.\u0275cmp=o2({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(t,i){2&t&&(X4("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Z2("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})();class vg{close(n){}dismiss(n){}}class eU{constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new C2,this._dismissed=new C2,this._hidden=new C2,n.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,o)=>{this._resolve=a,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(U1(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(U1(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();!function jp(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():s2(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),p0(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var gt=(()=>{return(e=gt||(gt={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",gt;var e})();let tU=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new C2,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r2,this.shown=new C2,this.hidden=new C2}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":A7(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Y1(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=p0(m3(this._zone,t,()=>t.classList.remove("show"),i),m3(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const t={animation:this.animation,runningTransition:"continue"};p0(m3(this._zone,this._elRef.nativeElement,(a,o)=>{o&&E6(a),a.classList.add("show")},t),m3(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{p3(t,"keydown").pipe(U1(this._closed$),Z1(r=>r.which===j1.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(gt.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;p3(this._dialogEl.nativeElement,"mousedown").pipe(U1(this._closed$),g3(()=>i=!1),re(()=>p3(t,"mouseup").pipe(U1(this._closed$),Y1(1))),Z1(({target:r})=>t===r)).subscribe(()=>{i=!0}),p3(t,"click").pipe(U1(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(gt.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=ig(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&m3(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(L(D1),L(T2),L(P2))},e.\u0275cmp=o2({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,i){if(1&t&&function ao(e,n,t){const i=N2();i.firstCreatePass&&(WC(i,new jC(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),$C(i,k(),n)}(fF,7),2&t){let r;f1(r=C1())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,i){2&t&&(j("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),X4("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Z2("fade",i.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"},ngContentSelectors:y0,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,i){1&t&&(C6(),p(0,"div",0,1)(2,"div",2),d6(3),m()()),2&t&&X4("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+i.fullscreenClass+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})(),nU=(()=>{class e{constructor(t){this._document=t}hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:a,paddingRight:o}=r;if(t>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=o),r.overflow=a}}}return e.\u0275fac=function(t){return new(t||e)(q(D1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iU=(()=>{class e{constructor(t,i,r,a,o,s){this._applicationRef=t,this._injector=i,this._document=r,this._scrollBar=a,this._rendererFactory=o,this._ngZone=s,this._activeWindowCmptHasChanged=new C2,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new r2,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=p3(n,"focusin").pipe(U1(t),m2(a=>a.target));p3(n,"keydown").pipe(U1(t),Z1(a=>a.which===j1.Tab),b7(r)).subscribe(([a,o])=>{const[s,c]=ig(n);(o===s||o===n)&&a.shiftKey&&(c.focus(),a.preventDefault()),o===c&&!a.shiftKey&&(s.focus(),a.preventDefault())}),i&&p3(n,"click").pipe(U1(t),b7(r),m2(a=>a[1])).subscribe(a=>a.focus())})})(0,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r,a){const o=a.container instanceof HTMLElement?a.container:ut(a.container)?this._document.querySelector(a.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${a.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const c=new vg,l=this._getContentRef(t,a.injector||i,r,c,a);let u=!1!==a.backdrop?this._attachBackdrop(t,o):void 0,f=this._attachWindowComponent(t,o,l),h=new eU(f,l,u,a.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(Y1(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=g=>{h.close(g)},c.dismiss=g=>{h.dismiss(g)},this._applyWindowOptions(f.instance,a),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&(this._applyBackdropOptions(u.instance,a),u.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,i){let a=t.resolveComponentFactory(XB).create(this._injector);return this._applicationRef.attachView(a.hostView),i.appendChild(a.location.nativeElement),a}_attachWindowComponent(t,i,r){let o=t.resolveComponentFactory(tU).create(this._injector,r.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(t,i){this._windowAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_applyBackdropOptions(t,i){this._backdropAttributes.forEach(r=>{ut(i[r])&&(t[r]=i[r])})}_getContentRef(t,i,r,a,o){return r?r instanceof c1?this._createFromTemplateRef(r,a):A7(r)?this._createFromString(r):this._createFromComponent(t,i,r,a,o):new pt([])}_createFromTemplateRef(t,i){const a=t.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(a),new pt([a.rootNodes],a)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new pt([[i]])}_createFromComponent(t,i,r,a,o){const s=t.resolveComponentFactory(r),c=A1.create({providers:[{provide:vg,useValue:a}],parent:i}),l=s.create(c),u=l.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new pt([[u]],l.hostView,l)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(q(L6),q(A1),q(D1),q(nU),q(Wa),q(P2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rU=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(ft))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_g=(()=>{class e{constructor(t,i,r,a){this._moduleCFR=t,this._injector=i,this._modalStack=r,this._config=a}open(t,i={}){const r=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(q(_6),q(A1),q(iU),q(rU))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Mg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({providers:[_g]}),e})(),Vg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Eg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})();class uU{constructor(n,t){this.open=n,this.close=t,t||(this.close=n)}isManual(){return"manual"===this.open||"manual"===this.close}}const fU={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Ag=e=>e>0?Dp(e):n=>n;function Tg(e,n,t,i,r,a,o=0,s=0){const c=function CU(e,n=fU){const t=(e||"").trim();if(0===t.length)return[];const i=t.split(/\s+/).map(a=>a.split(":")).map(a=>{let o=n[a[0]]||a;return new uU(o[0],o[1])}),r=i.filter(a=>a.isManual());if(r.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===r.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(t);if(1===c.length&&c[0].isManual())return()=>{};const l=function dU(e,n,t,i){return new k2(r=>{const a=[],o=()=>r.next(!0),s=()=>r.next(!1),c=()=>r.next(!i());return t.forEach(l=>{l.open===l.close?a.push(e.listen(n,l.open,c)):a.push(e.listen(n,l.open,o),e.listen(n,l.close,s))}),()=>{a.forEach(l=>l())}})}(e,n,c,i).pipe(function hU(e,n,t){return i=>{let r=null;const a=i.pipe(m2(c=>({open:c})),Z1(c=>{const l=t();return l===c.open||r&&r.open!==l?(r&&r.open!==c.open&&(r=null),!1):(r=c,!0)}),ic());return nc(a.pipe(Z1(c=>c.open),Ag(e)),a.pipe(Z1(c=>!c.open),Ag(n))).pipe(Z1(c=>c===r&&(r=null,c.open!==t())),m2(c=>c.open))}}(o,s,i)).subscribe(u=>u?r():a());return()=>l.unsubscribe()}let pU=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",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(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(ft))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gU=0,mU=(()=>{class e{isTitleTemplate(){return this.title instanceof c1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(v4("id",i.id),X4("popover"+(i.popoverClass?" "+i.popoverClass:"")),Z2("fade",i.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:y0,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(t,i){1&t&&(C6(),I(0,"div",0),O(1,$F,4,2,"h3",1),p(2,"div",2),d6(3),m()),2&t&&(_(1),b("ngIf",i.title))},directives:[B1,V6],encapsulation:2,changeDetection:0}),e})(),vU=(()=>{class e{constructor(t,i,r,a,o,s,c,l,u){this._elementRef=t,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbPopoverWindowId="ngb-popover-"+gU++,this._windowRef=null,this._positioning=B7(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,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._popupService=new mg(mU,r,a,i,this._ngZone,u)}_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}open(t){if(!this._windowRef&&!this._isDisabled()){const{windowRef:i,transition$:r}=this._popupService.open(this.ngbPopover,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"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._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:og([0,8])}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),F7(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Tg(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:t,popoverTitle:i,disablePopover:r,popoverClass:a}){a&&this.isOpen()&&(this._windowRef.instance.popoverClass=a.currentValue),(t||i||r)&&this._isDisabled()&&this.close()}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(L(T2),L(C3),L(A1),L(P3),L(pU),L(P2),L(D1),L(B3),L(L6))},e.\u0275dir=B({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[V1]}),e})(),kg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Ig=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Og=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Rg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Pg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),yU=(()=>{class e{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",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(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(q(ft))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bU=0,LU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){2&t&&(v4("id",i.id),X4("tooltip"+(i.tooltipClass?" "+i.tooltipClass:"")),Z2("fade",i.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:y0,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(t,i){1&t&&(C6(),I(0,"div",0),p(1,"div",1),d6(2),m())},encapsulation:2,changeDetection:0}),e})(),VU=(()=>{class e{constructor(t,i,r,a,o,s,c,l,u){this._elementRef=t,this._renderer=i,this._ngZone=s,this._document=c,this._changeDetector=l,this.shown=new r2,this.hidden=new r2,this._ngbTooltipWindowId="ngb-tooltip-"+bU++,this._windowRef=null,this._positioning=B7(),this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,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 mg(LU,r,a,i,this._ngZone,u)}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=i,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"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._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip"}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),F7(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),r.subscribe(()=>this.shown.emit())}}close(t=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(t).subscribe(()=>{var i;this._windowRef=null,this._positioning.destroy(),null===(i=this._zoneSubscription)||void 0===i||i.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Tg(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:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){var t;this.close(!1),null===(t=this._unregisterListenersFn)||void 0===t||t.call(this)}}return e.\u0275fac=function(t){return new(t||e)(L(T2),L(C3),L(A1),L(P3),L(yU),L(P2),L(D1),L(B3),L(L6))},e.\u0275dir=B({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[V1]}),e})(),Fg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();new v2("live announcer delay",{providedIn:"root",factory:function HU(){return 100}});let Bg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[U3]]}),e})(),Ug=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();const wU=[Wp,Kp,Qp,Xp,eg,Cg,gg,Mg,Vg,Ug,Eg,kg,Ig,Og,Rg,Pg,Fg,Bg];let DU=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[wU,Wp,Kp,Qp,Xp,eg,Cg,gg,Mg,Vg,Ug,Eg,kg,Ig,Og,Rg,Pg,Fg,Bg]}),e})();function jg(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?jg(Object(t),!0).forEach(function(i){zU(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jg(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function E0(e){return(E0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}function Gg(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function zU(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function K7(e,n){return function AU(e){if(Array.isArray(e))return e}(e)||function kU(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,s,i=[],r=!0,a=!1;try{for(t=t.call(e);!(r=(o=t.next()).done)&&(i.push(o.value),!n||i.length!==n);r=!0);}catch(c){a=!0,s=c}finally{try{!r&&null!=t.return&&t.return()}finally{if(a)throw s}}return i}}(e,n)||$g(e,n)||function OU(){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 T0(e){return function EU(e){if(Array.isArray(e))return Y7(e)}(e)||function TU(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$g(e)||function IU(){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 $g(e,n){if(e){if("string"==typeof e)return Y7(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Y7(e,n)}}function Y7(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var Wg=function(){},Q7={},qg={},Kg=null,Yg={mark:Wg,measure:Wg};try{"undefined"!=typeof window&&(Q7=window),"undefined"!=typeof document&&(qg=document),"undefined"!=typeof MutationObserver&&(Kg=MutationObserver),"undefined"!=typeof performance&&(Yg=performance)}catch(e){}var Qg=(Q7.navigator||{}).userAgent,Zg=void 0===Qg?"":Qg,ke=Q7,i1=qg,Jg=Kg,k0=Yg,se=!!i1.documentElement&&!!i1.head&&"function"==typeof i1.addEventListener&&"function"==typeof i1.createElement,Xg=~Zg.indexOf("MSIE")||~Zg.indexOf("Trident/"),ce="___FONT_AWESOME___",tm="svg-inline--fa",mt="data-fa-i2svg",J7="data-fa-pseudo-element",X7="data-prefix",es="data-icon",nm="fontawesome-i2svg",BU=["HTML","HEAD","STYLE","SCRIPT"],im=function(){try{return!0}catch(e){return!1}}(),ts={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",fa:"solid"},I0={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},rm={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},UU={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},jU=/fa[srltdbk\-\ ]/,am="fa-layers-text",GU=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,$U={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},om=[1,2,3,4,5,6,7,8,9,10],WU=om.concat([11,12,13,14,15,16,17,18,19,20]),qU=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],KU=[].concat(T0(Object.keys(I0)),["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","duotone-group","swap-opacity","primary","secondary"]).concat(om.map(function(e){return"".concat(e,"x")})).concat(WU.map(function(e){return"w-".concat(e)})),sm=ke.FontAwesomeConfig||{};i1&&"function"==typeof i1.querySelector&&[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var n=K7(e,2),i=n[1],r=function QU(e){return""===e||"false"!==e&&("true"===e||e)}(function YU(e){var n=i1.querySelector("script["+e+"]");if(n)return n.getAttribute(e)}(n[0]));null!=r&&(sm[i]=r)});var un=Y(Y({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:tm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),sm);un.autoReplaceSvg||(un.observeMutations=!1);var X={};Object.keys(un).forEach(function(e){Object.defineProperty(X,e,{enumerable:!0,set:function(t){un[e]=t,O0.forEach(function(i){return i(X)})},get:function(){return un[e]}})}),ke.FontAwesomeConfig=X;var O0=[],U4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fn(){for(var e=12,n="";e-- >0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function T6(e){for(var n=[],t=(e||[]).length>>>0;t--;)n[t]=e[t];return n}function ns(e){return e.classList?T6(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(n){return n})}function cm(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R0(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,": ").concat(e[t].trim(),";")},"")}function is(e){return e.size!==U4.size||e.x!==U4.x||e.y!==U4.y||e.rotate!==U4.rotate||e.flipX||e.flipY}function lm(){var e="fa",n=tm,t=X.familyPrefix,i=X.replacementClass,r=':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-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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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, 0);\n animation-delay: var(--fa-animation-delay, 0);\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 transition-delay: 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}';if(t!==e||i!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");r=r.replace(a,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(s,".".concat(i))}return r}var um=!1;function rs(){X.autoAddCss&&!um&&(function ej(e){if(e&&se){var n=i1.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e;for(var t=i1.head.childNodes,i=null,r=t.length-1;r>-1;r--){var a=t[r],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=a)}i1.head.insertBefore(n,i)}}(lm()),um=!0)}var oj={mixout:function(){return{dom:{css:lm,insertCss:rs}}},hooks:function(){return{beforeDOMElementCreation:function(){rs()},beforeI2svg:function(){rs()}}}},le=ke||{};le[ce]||(le[ce]={}),le[ce].styles||(le[ce].styles={}),le[ce].hooks||(le[ce].hooks={}),le[ce].shims||(le[ce].shims=[]);var H4=le[ce],fm=[],P0=!1;function cj(e){!se||(P0?setTimeout(e,0):fm.push(e))}function Cn(e){var n=e.tag,t=e.attributes,i=void 0===t?{}:t,r=e.children,a=void 0===r?[]:r;return"string"==typeof e?cm(e):"<".concat(n," ").concat(function nj(e){return Object.keys(e||{}).reduce(function(n,t){return n+"".concat(t,'="').concat(cm(e[t]),'" ')},"").trim()}(i),">").concat(a.map(Cn).join(""),"</").concat(n,">")}function Cm(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}se&&((P0=(i1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(i1.readyState))||i1.addEventListener("DOMContentLoaded",function e(){i1.removeEventListener("DOMContentLoaded",e),P0=1,fm.map(function(n){return n()})}));var as=function(n,t,i,r){var c,l,u,a=Object.keys(n),o=a.length,s=void 0!==r?function(n,t){return function(i,r,a,o){return n.call(t,i,r,a,o)}}(t,r):t;for(void 0===i?(c=1,u=n[a[0]]):(c=0,u=i);c<o;c++)u=s(u,n[l=a[c]],l,n);return u};function os(e){var n=function uj(e){for(var n=[],t=0,i=e.length;t<i;){var r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){var a=e.charCodeAt(t++);56320==(64512&a)?n.push(((1023&r)<<10)+(1023&a)+65536):(n.push(r),t--)}else n.push(r)}return n}(e);return 1===n.length?n[0].toString(16):null}function dm(e){return Object.keys(e).reduce(function(n,t){var i=e[t];return i.icon?n[i.iconName]=i.icon:n[t]=i,n},{})}function ss(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.skipHooks,r=void 0!==i&&i,a=dm(n);"function"!=typeof H4.hooks.addPack||r?H4.styles[e]=Y(Y({},H4.styles[e]||{}),a):H4.hooks.addPack(e,dm(n)),"fas"===e&&ss("fa",n)}var dn=H4.styles,Cj=H4.shims,dj=Object.values(rm),cs=null,hm={},pm={},gm={},mm={},vm={},hj=Object.keys(ts);function gj(e,n){var t=n.split("-"),i=t[0],r=t.slice(1).join("-");return i!==e||""===r||function pj(e){return~KU.indexOf(e)}(r)?null:r}var _m=function(){var n=function(a){return as(dn,function(o,s,c){return o[c]=as(s,a,{}),o},{})};hm=n(function(r,a,o){return a[3]&&(r[a[3]]=o),a[2]&&a[2].filter(function(c){return"number"==typeof c}).forEach(function(c){r[c.toString(16)]=o}),r}),pm=n(function(r,a,o){return r[o]=o,a[2]&&a[2].filter(function(c){return"string"==typeof c}).forEach(function(c){r[c]=o}),r}),vm=n(function(r,a,o){var s=a[2];return r[o]=o,s.forEach(function(c){r[c]=o}),r});var t="far"in dn||X.autoFetchSvg,i=as(Cj,function(r,a){var o=a[0],s=a[1],c=a[2];return"far"===s&&!t&&(s="fas"),"string"==typeof o&&(r.names[o]={prefix:s,iconName:c}),"number"==typeof o&&(r.unicodes[o.toString(16)]={prefix:s,iconName:c}),r},{names:{},unicodes:{}});gm=i.names,mm=i.unicodes,cs=F0(X.styleDefault)};function ls(e,n){return(hm[e]||{})[n]}function k6(e,n){return(vm[e]||{})[n]}function Mm(e){return gm[e]||{prefix:null,iconName:null}}function Oe(){return cs}function F0(e){return I0[e]||I0[ts[e]]||(e in H4.styles?e:null)||null}function B0(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.skipLookups,i=void 0!==t&&t,r=null,a=e.reduce(function(o,s){var c=gj(X.familyPrefix,s);if(dn[s]?(s=dj.includes(s)?UU[s]:s,r=s,o.prefix=s):hj.indexOf(s)>-1?(r=s,o.prefix=F0(s)):c?o.iconName=c:s!==X.replacementClass&&o.rest.push(s),!i&&o.prefix&&o.iconName){var l="fa"===r?Mm(o.iconName):{},u=k6(o.prefix,o.iconName);l.prefix&&(r=null),o.iconName=l.iconName||u||o.iconName,o.prefix=l.prefix||o.prefix,"far"===o.prefix&&!dn.far&&dn.fas&&!X.autoFetchSvg&&(o.prefix="fas")}return o},{prefix:null,iconName:null,rest:[]});return("fa"===a.prefix||"fa"===r)&&(a.prefix=Oe()||"fas"),a}(function XU(e){O0.push(e)})(function(e){cs=F0(e.styleDefault)}),_m();var _j=function(){function e(){(function SU(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function NU(e,n,t){n&&Gg(e.prototype,n),t&&Gg(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var t=this,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){t.definitions[s]=Y(Y({},t.definitions[s]||{}),o[s]),ss(s,o[s]);var c=rm[s];c&&ss(c,o[s]),_m()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(a){var o=r[a],s=o.prefix,c=o.iconName,l=o.icon,u=l[2];t[s]||(t[s]={}),u.length>0&&u.forEach(function(f){"string"==typeof f&&(t[s][f]=l)}),t[s][c]=l}),t}}]),e}(),ym=[],I6={},O6={},Mj=Object.keys(O6);function fs(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r<t;r++)i[r-2]=arguments[r];var a=I6[e]||[];return a.forEach(function(o){n=o.apply(null,[n].concat(i))}),n}function _t(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];var r=I6[e]||[];r.forEach(function(a){a.apply(null,t)})}function ue(){var e=arguments[0],n=Array.prototype.slice.call(arguments,1);return O6[e]?O6[e].apply(null,n):void 0}function Cs(e){"fa"===e.prefix&&(e.prefix="fas");var n=e.iconName,t=e.prefix||Oe();if(n)return n=k6(t,n)||n,Cm(bm.definitions,t,n)||Cm(H4.styles,t,n)}var bm=new _j,Lj={i2svg:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return se?(_t("beforeI2svg",n),ue("pseudoElements2svg",n),ue("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot;!1===X.autoReplaceSvg&&(X.autoReplaceSvg=!0),X.observeMutations=!0,cj(function(){Hj({autoReplaceSvgRoot:t}),_t("watch",n)})}},$3={noAuto:function(){X.autoReplaceSvg=!1,X.observeMutations=!1,_t("noAuto")},config:X,dom:Lj,parse:{icon:function(n){if(null===n)return null;if("object"===E0(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:k6(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var t=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=F0(n[0]);return{prefix:i,iconName:k6(i,t)||t}}if("string"==typeof n&&(n.indexOf("".concat(X.familyPrefix,"-"))>-1||n.match(jU))){var r=B0(n.split(" "),{skipLookups:!0});return{prefix:r.prefix||Oe(),iconName:k6(r.prefix,r.iconName)||r.iconName}}if("string"==typeof n){var a=Oe();return{prefix:a,iconName:k6(a,n)||n}}}},library:bm,findIconDefinition:Cs,toHtml:Cn},Hj=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.autoReplaceSvgRoot,i=void 0===t?i1:t;(Object.keys(H4.styles).length>0||X.autoFetchSvg)&&se&&X.autoReplaceSvg&&$3.dom.i2svg({node:i})};function U0(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cn(i)})}}),Object.defineProperty(e,"node",{get:function(){if(se){var i=i1.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function ds(e){var n=e.icons,t=n.main,i=n.mask,r=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.title,l=e.maskId,u=e.titleId,f=e.extra,h=e.watchable,g=void 0!==h&&h,V=i.found?i:t,H=V.width,N=V.height,z="fak"===r,w=[X.replacementClass,a?"".concat(X.familyPrefix,"-").concat(a):""].filter(function(F2){return-1===f.classes.indexOf(F2)}).filter(function(F2){return""!==F2||!!F2}).concat(f.classes).join(" "),T={children:[],attributes:Y(Y({},f.attributes),{},{"data-prefix":r,"data-icon":a,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(H," ").concat(N)})},F=z&&!~f.classes.indexOf("fa-fw")?{width:"".concat(H/N*16*.0625,"em")}:{};g&&(T.attributes[mt]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(u||fn())},children:[c]}),delete T.attributes.title);var U=Y(Y({},T),{},{prefix:r,iconName:a,main:t,mask:i,maskId:l,transform:o,symbol:s,styles:Y(Y({},F),f.styles)}),Q=i.found&&t.found?ue("generateAbstractMask",U)||{children:[],attributes:{}}:ue("generateAbstractIcon",U)||{children:[],attributes:{}},g2=Q.attributes;return U.children=Q.children,U.attributes=g2,s?function Dj(e){var t=e.iconName,i=e.children,r=e.attributes,a=e.symbol,o=!0===a?"".concat(e.prefix,"-").concat(X.familyPrefix,"-").concat(t):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},r),{},{id:o}),children:i}]}]}(U):function wj(e){var n=e.children,t=e.main,i=e.mask,r=e.attributes,a=e.styles,o=e.transform;if(is(o)&&t.found&&!i.found){var l={x:t.width/t.height/2,y:.5};r.style=R0(Y(Y({},a),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}(U)}function Lm(e){var n=e.content,t=e.width,i=e.height,r=e.transform,a=e.title,o=e.extra,s=e.watchable,c=void 0!==s&&s,l=Y(Y(Y({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});c&&(l[mt]="");var u=Y({},o.styles);is(r)&&(u.transform=function rj(e){var n=e.transform,t=e.width,r=e.height,a=void 0===r?16:r,o=e.startCentered,s=void 0!==o&&o,c="";return c+=s&&Xg?"translate(".concat(n.x/16-(void 0===t?16:t)/2,"em, ").concat(n.y/16-a/2,"em) "):s?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(c+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:r,startCentered:!0,width:t,height:i}),u["-webkit-transform"]=u.transform);var f=R0(u);f.length>0&&(l.style=f);var h=[];return h.push({tag:"span",attributes:l,children:[n]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function Sj(e){var n=e.content,t=e.title,i=e.extra,r=Y(Y(Y({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),a=R0(i.styles);a.length>0&&(r.style=a);var o=[];return o.push({tag:"span",attributes:r,children:[n]}),t&&o.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),o}var hs=H4.styles;function ps(e){var n=e[0],t=e[1],a=K7(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(X.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(X.familyPrefix,"-").concat("primary"),fill:"currentColor",d:a[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var Nj={found:!1,width:512,height:512};function gs(e,n){var t=n;return"fa"===n&&null!==X.styleDefault&&(n=Oe()),new Promise(function(i,r){if(ue("missingIconAbstract"),"fa"===t){var o=Mm(e)||{};e=o.iconName||e,n=o.prefix||n}if(e&&n&&hs[n]&&hs[n][e])return i(ps(hs[n][e]));(function zj(e,n){!im&&!X.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(n,'" is missing.'))})(e,n),i(Y(Y({},Nj),{},{icon:X.showMissingIcons&&e&&ue("missingIconAbstract")||{}}))})}var Vm=function(){},ms=X.measurePerformance&&k0&&k0.mark&&k0.measure?k0:{mark:Vm,measure:Vm},hn='FA "6.1.1"',vs_begin=function(n){return ms.mark("".concat(hn," ").concat(n," begins")),function(){return function(n){ms.mark("".concat(hn," ").concat(n," ends")),ms.measure("".concat(hn," ").concat(n),"".concat(hn," ").concat(n," begins"),"".concat(hn," ").concat(n," ends"))}(n)}},j0=function(){};function wm(e){return"string"==typeof(e.getAttribute?e.getAttribute(mt):null)}function kj(e){return i1.createElementNS("http://www.w3.org/2000/svg",e)}function Ij(e){return i1.createElement(e)}function Dm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.ceFn,i=void 0===t?"svg"===e.tag?kj:Ij:t;if("string"==typeof e)return i1.createTextNode(e);var r=i(e.tag);Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){r.appendChild(Dm(o,{ceFn:i}))}),r}var G0={replace:function(n){var t=n[0];if(t.parentNode)if(n[1].forEach(function(r){t.parentNode.insertBefore(Dm(r),t)}),null===t.getAttribute(mt)&&X.keepOriginalSource){var i=i1.createComment(function Oj(e){var n=" ".concat(e.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(n){var t=n[0],i=n[1];if(~ns(t).indexOf(X.replacementClass))return G0.replace(n);var r=new RegExp("".concat(X.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var a=i[0].attributes.class.split(" ").reduce(function(s,c){return c===X.replacementClass||c.match(r)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});i[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var o=i.map(function(s){return Cn(s)}).join("\n");t.setAttribute(mt,""),t.innerHTML=o}};function Sm(e){e()}function Nm(e,n){var t="function"==typeof n?n:j0;if(0===e.length)t();else{var i=Sm;"async"===X.mutateApproach&&(i=ke.requestAnimationFrame||Sm),i(function(){var r=function Tj(){return!0===X.autoReplaceSvg?G0.replace:G0[X.autoReplaceSvg]||G0.replace}(),a=vs_begin("mutate");e.map(r),a(),t()})}}var _s=!1;function zm(){_s=!0}function Ms(){_s=!1}var $0=null;function xm(e){if(Jg&&X.observeMutations){var n=e.treeCallback,t=void 0===n?j0:n,i=e.nodeCallback,r=void 0===i?j0:i,a=e.pseudoElementsCallback,o=void 0===a?j0:a,s=e.observeMutationsRoot,c=void 0===s?i1:s;$0=new Jg(function(l){if(!_s){var u=Oe();T6(l).forEach(function(f){if("childList"===f.type&&f.addedNodes.length>0&&!wm(f.addedNodes[0])&&(X.searchPseudoElements&&o(f.target),t(f.target)),"attributes"===f.type&&f.target.parentNode&&X.searchPseudoElements&&o(f.target.parentNode),"attributes"===f.type&&wm(f.target)&&~qU.indexOf(f.attributeName))if("class"===f.attributeName&&function Ej(e){var n=e.getAttribute?e.getAttribute(X7):null,t=e.getAttribute?e.getAttribute(es):null;return n&&t}(f.target)){var h=B0(ns(f.target)),V=h.iconName;f.target.setAttribute(X7,h.prefix||u),V&&f.target.setAttribute(es,V)}else(function Aj(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(X.replacementClass)})(f.target)&&r(f.target)})}}),se&&$0.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Pj(e){var n=e.getAttribute("style"),t=[];return n&&(t=n.split(";").reduce(function(i,r){var a=r.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(i[o]=s.join(":").trim()),i},{})),t}function Fj(e){var n=e.getAttribute("data-prefix"),t=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",r=B0(ns(e));return r.prefix||(r.prefix=Oe()),n&&t&&(r.prefix=n,r.iconName=t),r.iconName&&r.prefix||r.prefix&&i.length>0&&(r.iconName=function mj(e,n){return(pm[e]||{})[n]}(r.prefix,e.innerText)||ls(r.prefix,os(e.innerText))),r}function Bj(e){var n=T6(e.attributes).reduce(function(r,a){return"class"!==r.name&&"style"!==r.name&&(r[a.name]=a.value),r},{}),t=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return X.autoA11y&&(t?n["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(i||fn()):(n["aria-hidden"]="true",n.focusable="false")),n}function Em(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},t=Fj(e),i=t.iconName,r=t.prefix,a=t.rest,o=Bj(e),s=fs("parseNodeAttributes",{},e),c=n.styleParser?Pj(e):[];return Y({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:U4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var jj=H4.styles;function Am(e){var n="nest"===X.autoReplaceSvg?Em(e,{styleParser:!1}):Em(e);return~n.extra.classes.indexOf(am)?ue("generateLayersText",e,n):ue("generateSvgReplacementMutation",e,n)}function Tm(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!se)return Promise.resolve();var t=i1.documentElement.classList,i=function(f){return t.add("".concat(nm,"-").concat(f))},r=function(f){return t.remove("".concat(nm,"-").concat(f))},a=Object.keys(X.autoFetchSvg?ts:jj),o=[".".concat(am,":not([").concat(mt,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(mt,"])")})).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=T6(e.querySelectorAll(o))}catch(u){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var c=vs_begin("onTree"),l=s.reduce(function(u,f){try{var h=Am(f);h&&u.push(h)}catch(g){im||"MissingIcon"===g.name&&console.error(g)}return u},[]);return new Promise(function(u,f){Promise.all(l).then(function(h){Nm(h,function(){i("active"),i("complete"),r("pending"),"function"==typeof n&&n(),c(),u()})}).catch(function(h){c(),f(h)})})}function Gj(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Am(e).then(function(t){t&&Nm([t],n)})}var Wj=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.transform,r=void 0===i?U4:i,a=t.symbol,o=void 0!==a&&a,s=t.mask,c=void 0===s?null:s,l=t.maskId,u=void 0===l?null:l,f=t.title,h=void 0===f?null:f,g=t.titleId,V=void 0===g?null:g,H=t.classes,N=void 0===H?[]:H,z=t.attributes,w=void 0===z?{}:z,T=t.styles,F=void 0===T?{}:T;if(n){var U=n.prefix,Q=n.iconName,f2=n.icon;return U0(Y({type:"icon"},n),function(){return _t("beforeDOMElementCreation",{iconDefinition:n,params:t}),X.autoA11y&&(h?w["aria-labelledby"]="".concat(X.replacementClass,"-title-").concat(V||fn()):(w["aria-hidden"]="true",w.focusable="false")),ds({icons:{main:ps(f2),mask:c?ps(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:U,iconName:Q,transform:Y(Y({},U4),r),symbol:o,title:h,maskId:u,titleId:V,extra:{attributes:w,styles:F,classes:N}})})}},qj={mixout:function(){return{icon:(e=Wj,function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:Cs(n||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Cs(r||{})),e(i,Y(Y({},t),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=Tm,t.nodeCallback=Gj,t}}},provides:function(n){n.i2svg=function(t){var i=t.node,a=t.callback;return Tm(void 0===i?i1:i,void 0===a?function(){}:a)},n.generateSvgReplacementMutation=function(t,i){var r=i.iconName,a=i.title,o=i.titleId,s=i.prefix,c=i.transform,l=i.symbol,u=i.mask,f=i.maskId,h=i.extra;return new Promise(function(g,V){Promise.all([gs(r,s),u.iconName?gs(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(H){var N=K7(H,2);g([t,ds({icons:{main:N[0],mask:N[1]},prefix:s,iconName:r,transform:c,symbol:l,maskId:f,title:a,titleId:o,extra:h,watchable:!0})])}).catch(V)})},n.generateAbstractIcon=function(t){var l,i=t.children,r=t.attributes,a=t.main,o=t.transform,c=R0(t.styles);return c.length>0&&(r.style=c),is(o)&&(l=ue("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),i.push(l||a.icon),{children:i,attributes:r}}}},Kj={mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,a=void 0===r?[]:r;return U0({type:"layer"},function(){_t("beforeDOMElementCreation",{assembler:t,params:i});var o=[];return t(function(s){Array.isArray(s)?s.map(function(c){o=o.concat(c.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(X.familyPrefix,"-layers")].concat(T0(a)).join(" ")},children:o}]})}}}},Yj={mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,a=void 0===r?null:r,o=i.classes,s=void 0===o?[]:o,c=i.attributes,l=void 0===c?{}:c,u=i.styles,f=void 0===u?{}:u;return U0({type:"counter",content:t},function(){return _t("beforeDOMElementCreation",{content:t,params:i}),Sj({content:t.toString(),title:a,extra:{attributes:l,styles:f,classes:["".concat(X.familyPrefix,"-layers-counter")].concat(T0(s))}})})}}}},Qj={mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?U4:r,o=i.title,s=void 0===o?null:o,c=i.classes,l=void 0===c?[]:c,u=i.attributes,f=void 0===u?{}:u,h=i.styles,g=void 0===h?{}:h;return U0({type:"text",content:t},function(){return _t("beforeDOMElementCreation",{content:t,params:i}),Lm({content:t,transform:Y(Y({},U4),a),title:s,extra:{attributes:f,styles:g,classes:["".concat(X.familyPrefix,"-layers-text")].concat(T0(l))}})})}}},provides:function(n){n.generateLayersText=function(t,i){var r=i.title,a=i.transform,o=i.extra,s=null,c=null;if(Xg){var l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,c=u.height/l}return X.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Lm({content:t.innerHTML,width:s,height:c,transform:a,title:r,extra:o,watchable:!0})])}}},Zj=new RegExp('"',"ug"),km=[1105920,1112319];function Im(e,n){var t="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,r){if(null!==e.getAttribute(t))return i();var o=T6(e.children).filter(function(Q){return Q.getAttribute(J7)===n})[0],s=ke.getComputedStyle(e,n),c=s.getPropertyValue("font-family").match(GU),l=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!c)return e.removeChild(o),i();if(c&&"none"!==u&&""!==u){var f=s.getPropertyValue("content"),h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?I0[c[2].toLowerCase()]:$U[l],g=function Jj(e){var n=e.replace(Zj,""),t=function fj(e,n){var r,t=e.length,i=e.charCodeAt(n);return i>=55296&&i<=56319&&t>n+1&&(r=e.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(n,0),i=t>=km[0]&&t<=km[1],r=2===n.length&&n[0]===n[1];return{value:os(r?n[0]:n),isSecondary:i||r}}(f),V=g.value,H=g.isSecondary,N=c[0].startsWith("FontAwesome"),z=ls(h,V),w=z;if(N){var T=function vj(e){var n=mm[e],t=ls("fas",e);return n||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}(V);T.iconName&&T.prefix&&(z=T.iconName,h=T.prefix)}if(!z||H||o&&o.getAttribute(X7)===h&&o.getAttribute(es)===w)i();else{e.setAttribute(t,w),o&&e.removeChild(o);var F=function Uj(){return{iconName:null,title:null,titleId:null,prefix:null,transform:U4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),U=F.extra;U.attributes[J7]=n,gs(z,h).then(function(Q){var f2=ds(Y(Y({},F),{},{icons:{main:Q,mask:{prefix:null,iconName:null,rest:[]}},prefix:h,iconName:w,extra:U,watchable:!0})),g2=i1.createElement("svg");"::before"===n?e.insertBefore(g2,e.firstChild):e.appendChild(g2),g2.outerHTML=f2.map(function(F2){return Cn(F2)}).join("\n"),e.removeAttribute(t),i()}).catch(r)}}else i()})}function Xj(e){return Promise.all([Im(e,"::before"),Im(e,"::after")])}function eG(e){return!(e.parentNode===document.head||~BU.indexOf(e.tagName.toUpperCase())||e.getAttribute(J7)||e.parentNode&&"svg"===e.parentNode.tagName)}function Om(e){if(se)return new Promise(function(n,t){var i=T6(e.querySelectorAll("*")).filter(eG).map(Xj),r=vs_begin("searchPseudoElements");zm(),Promise.all(i).then(function(){r(),Ms(),n()}).catch(function(){r(),Ms(),t()})})}var Rm=!1,Pm=function(n){return n.toLowerCase().split(" ").reduce(function(i,r){var a=r.toLowerCase().split("-"),o=a[0],s=a.slice(1).join("-");if(o&&"h"===s)return i.flipX=!0,i;if(o&&"v"===s)return i.flipY=!0,i;if(s=parseFloat(s),isNaN(s))return i;switch(o){case"grow":i.size=i.size+s;break;case"shrink":i.size=i.size-s;break;case"left":i.x=i.x-s;break;case"right":i.x=i.x+s;break;case"up":i.y=i.y-s;break;case"down":i.y=i.y+s;break;case"rotate":i.rotate=i.rotate+s}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},ys={x:0,y:0,width:"100%",height:"100%"};function Fm(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}!function yj(e,n){var t=n.mixoutsTo;ym=e,I6={},Object.keys(O6).forEach(function(i){-1===Mj.indexOf(i)&&delete O6[i]}),ym.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(o){"function"==typeof r[o]&&(t[o]=r[o]),"object"===E0(r[o])&&Object.keys(r[o]).forEach(function(s){t[o]||(t[o]={}),t[o][s]=r[o][s]})}),i.hooks){var a=i.hooks();Object.keys(a).forEach(function(o){I6[o]||(I6[o]=[]),I6[o].push(a[o])})}i.provides&&i.provides(O6)})}([oj,qj,Kj,Yj,Qj,{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=Om,t}}},provides:function(n){n.pseudoElements2svg=function(t){var i=t.node;X.searchPseudoElements&&Om(void 0===i?i1:i)}}},{mixout:function(){return{dom:{unwatch:function(){zm(),Rm=!0}}}},hooks:function(){return{bootstrap:function(){xm(fs("mutationObserverCallbacks",{}))},noAuto:function(){!function Rj(){!$0||$0.disconnect()}()},watch:function(t){var i=t.observeMutationsRoot;Rm?Ms():xm(fs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return Pm(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-transform");return r&&(t.transform=Pm(r)),t}}},provides:function(n){n.generateAbstractTransformGrouping=function(t){var i=t.main,r=t.transform,o=t.iconWidth,s={transform:"translate(".concat(t.containerWidth/2," 256)")},c="translate(".concat(32*r.x,", ").concat(32*r.y,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),g={outer:s,inner:{transform:"".concat(c," ").concat(l," ").concat(u)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:Y({},g.outer),children:[{tag:"g",attributes:Y({},g.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Y(Y({},i.icon.attributes),g.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-mask"),a=r?B0(r.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return a.prefix||(a.prefix=Oe()),t.mask=a,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(n){n.generateAbstractMask=function(t){var e,i=t.children,r=t.attributes,a=t.main,o=t.mask,s=t.maskId,u=a.icon,h=o.icon,g=function ij(e){var n=e.transform,i=e.iconWidth,r={transform:"translate(".concat(e.containerWidth/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),o="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:t.transform,containerWidth:o.width,iconWidth:a.width}),V={tag:"rect",attributes:Y(Y({},ys),{},{fill:"white"})},H=u.children?{children:u.children.map(Fm)}:{},N={tag:"g",attributes:Y({},g.inner),children:[Fm(Y({tag:u.tag,attributes:Y(Y({},u.attributes),g.path)},H))]},z={tag:"g",attributes:Y({},g.outer),children:[N]},w="mask-".concat(s||fn()),T="clip-".concat(s||fn()),F={tag:"mask",attributes:Y(Y({},ys),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[V,z]},U={tag:"defs",children:[{tag:"clipPath",attributes:{id:T},children:(e=h,"g"===e.tag?e.children:[e])},F]};return i.push(U,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(T,")"),mask:"url(#".concat(w,")")},ys)}),{children:i,attributes:r}}}},{provides:function(n){var t=!1;ke.matchMedia&&(t=ke.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Y(Y({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},a),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Y(Y({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:Y(Y({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(s),i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:Y(Y({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],{mixoutsTo:$3});var lG=$3.parse,uG=$3.icon;const fG=["*"],hG=e=>{const n={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-inverse":e.inverse,"fa-layers-counter":e.counter,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip,[`fa-${e.size}`]:null!==e.size,[`fa-rotate-${e.rotate}`]:null!==e.rotate,[`fa-pull-${e.pull}`]:null!==e.pull,[`fa-stack-${e.stackItemSize}`]:null!=e.stackItemSize};return Object.keys(n).map(t=>n[t]?t:null).filter(t=>t)};let mG=(()=>{class e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vG=(()=>{class e{constructor(){this.definitions={}}addIcons(...t){for(const i of t){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const r of i.icon[2])"string"==typeof r&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...t){for(const i of t){const r=Object.keys(i).map(a=>i[a]);this.addIcons(...r)}}getIconDefinition(t,i){return t in this.definitions&&i in this.definitions[t]?this.definitions[t][i]:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_G=(()=>{class e{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=B({type:e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[V1]}),e})(),MG=(()=>{class e{constructor(t,i){this.renderer=t,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${t.size.currentValue}`),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${t.size.previousValue}`))}}return e.\u0275fac=function(t){return new(t||e)(L(C3),L(T2))},e.\u0275cmp=o2({type:e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[V1],ngContentSelectors:fG,decls:1,vars:0,template:function(t,i){1&t&&(C6(),d6(0))},encapsulation:2}),e})(),Bm=(()=>{class e{constructor(t,i,r,a,o){this.sanitizer=t,this.config=i,this.iconLibrary=r,this.stackItem=a,this.classes=[],null!=o&&null==a&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,t){const r=this.findIconDefinition(i);if(null!=r){const a=this.buildParams();this.renderIcon(r,a)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const i=((e,n)=>(e=>void 0!==e.prefix&&void 0!==e.iconName)(e)?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:n,iconName:e}:void 0)(t,this.config.defaultPrefix);if("icon"in i)return i;const r=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=r?r:((e=>{throw new Error(`Could not find icon with iconName=${e.iconName} and prefix=${e.prefix} in the icon library.`)})(i),null)}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?lG.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...hG(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,i){const r=uG(t,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(r.html.join("\n"))}}return e.\u0275fac=function(t){return new(t||e)(L(Ch),L(mG),L(vG),L(_G,8),L(MG,8))},e.\u0275cmp=o2({type:e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,i){2&t&&(v4("innerHTML",i.renderedIconHTML,pl),j("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[V1],decls:0,vars:0,template:function(t,i){},encapsulation:2}),e})(),yG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();function W0(e,n){const t=K(e)?e:()=>e,i=r=>r.error(t());return new k2(n?r=>n.schedule(i,0,r):i)}const q0=n3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Um(e){return new k2(n=>{o3(e()).subscribe(n)})}function jm(){return a1((e,n)=>{let t=null;e._refCount++;const i=O2(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,a=t;t=null,r&&(!a||r===a)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class bG extends k2{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,q6(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new H2;const t=this.getSubject();n.add(this.source.subscribe(O2(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=H2.EMPTY)}return n}refCount(){return jm()(this)}}function LG(e,n,t,i,r){return(a,o)=>{let s=t,c=n,l=0;a.subscribe(O2(o,u=>{const f=l++;c=s?e(c,u,f):(s=!0,u),i&&o.next(c)},r&&(()=>{s&&o.next(c),o.complete()})))}}function Gm(e,n){return a1(LG(e,n,arguments.length>=2,!0))}function Re(e){return a1((n,t)=>{let a,i=null,r=!1;i=n.subscribe(O2(t,void 0,void 0,o=>{a=o3(e(o,Re(e)(n))),i?(i.unsubscribe(),i=null,a.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(t))})}function pn(e,n){return K(n)?b1(e,n,1):b1(e,1)}function bs(e){return e<=0?()=>c4:a1((n,t)=>{let i=[];n.subscribe(O2(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function $m(e=VG){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function VG(){return new q0}function Wm(e){return a1((n,t)=>{let i=!1;n.subscribe(O2(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function R6(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,Y1(1),t?Wm(n):$m(()=>new q0))}class fe{constructor(n,t){this.id=n,this.url=t}}class K0 extends fe{constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends fe{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qm extends fe{constructor(n,t,i){super(n,t),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class DG extends fe{constructor(n,t,i){super(n,t),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class SG extends fe{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NG extends fe{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zG extends fe{constructor(n,t,i,r,a){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=a}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xG extends fe{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EG extends fe{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Km{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ym{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class AG{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TG{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kG{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class IG{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qm{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const y2="primary";class OG{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function P6(e){return new OG(e)}const Zm="ngNavigationCancelingError";function Ls(e){const n=Error("NavigationCancelingError: "+e);return n[Zm]=!0,n}function PG(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let a=0;a<i.length;a++){const o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function j4(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let a=0;a<t.length;a++)if(r=t[a],!Jm(e[r],n[r]))return!1;return!0}function Jm(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,a)=>i[a]===r)}return e===n}function Xm(e){return Array.prototype.concat.apply([],e)}function ev(e){return e.length>0?e[e.length-1]:null}function J1(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function G4(e){return Ta(e)?e:D5(e)?G1(Promise.resolve(e)):s2(e)}const UG={exact:function iv(e,n,t){if(!yt(e.segments,n.segments)||!Y0(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!iv(e.children[i],n.children[i],t))return!1;return!0},subset:rv},tv={exact:function jG(e,n){return j4(e,n)},subset:function GG(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Jm(e[t],n[t]))},ignored:()=>!0};function nv(e,n,t){return UG[t.paths](e.root,n.root,t.matrixParams)&&tv[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function rv(e,n,t){return av(e,n,n.segments,t)}function av(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!yt(r,t)||n.hasChildren()||!Y0(r,t,i))}if(e.segments.length===t.length){if(!yt(e.segments,t)||!Y0(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!rv(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),a=t.slice(e.segments.length);return!!(yt(e.segments,r)&&Y0(e.segments,r,i)&&e.children[y2])&&av(e.children[y2],n,a,i)}}function Y0(e,n,t){return n.every((i,r)=>tv[t](e[r].parameters,i.parameters))}class Mt{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=P6(this.queryParams)),this._queryParamMap}toString(){return qG.serialize(this)}}class V2{constructor(n,t){this.segments=n,this.children=t,this.parent=null,J1(t,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Q0(this)}}class mn{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=P6(this.parameters)),this._parameterMap}toString(){return uv(this)}}function yt(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}class ov{}class sv{parse(n){const t=new n$(n);return new Mt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${vn(n.root,!0)}`,i=function QG(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${Z0(t)}=${Z0(r)}`).join("&"):`${Z0(t)}=${Z0(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function KG(e){return encodeURI(e)}(n.fragment)}`:""}`}}const qG=new sv;function Q0(e){return e.segments.map(n=>uv(n)).join("/")}function vn(e,n){if(!e.hasChildren())return Q0(e);if(n){const t=e.children[y2]?vn(e.children[y2],!1):"",i=[];return J1(e.children,(r,a)=>{a!==y2&&i.push(`${a}:${vn(r,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function WG(e,n){let t=[];return J1(e.children,(i,r)=>{r===y2&&(t=t.concat(n(i,r)))}),J1(e.children,(i,r)=>{r!==y2&&(t=t.concat(n(i,r)))}),t}(e,(i,r)=>r===y2?[vn(e.children[y2],!1)]:[`${r}:${vn(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[y2]?`${Q0(e)}/${t[0]}`:`${Q0(e)}/(${t.join("//")})`}}function cv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Z0(e){return cv(e).replace(/%3B/gi,";")}function Vs(e){return cv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function J0(e){return decodeURIComponent(e)}function lv(e){return J0(e.replace(/\+/g,"%20"))}function uv(e){return`${Vs(e.path)}${function YG(e){return Object.keys(e).map(n=>`;${Vs(n)}=${Vs(e[n])}`).join("")}(e.parameters)}`}const ZG=/^[^\/()?;=#]+/;function X0(e){const n=e.match(ZG);return n?n[0]:""}const JG=/^[^=?&#]+/,e$=/^[^&#]+/;class n${constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V2([],{}):new V2([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[y2]=new V2(n,t)),i}parseSegment(){const n=X0(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new mn(J0(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=X0(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=X0(this.remaining);r&&(i=r,this.capture(i))}n[J0(t)]=J0(i)}parseQueryParam(n){const t=function XG(e){const n=e.match(JG);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=function t$(e){const n=e.match(e$);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=lv(t),a=lv(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(a)}else n[r]=a}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=X0(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let a;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=y2);const o=this.parseChildren();t[a]=1===Object.keys(o).length?o[y2]:new V2([],o),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class fv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Hs(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Hs(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=ws(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return ws(n,this._root).map(t=>t.value)}}function Hs(e,n){if(e===n.value)return n;for(const t of n.children){const i=Hs(e,t);if(i)return i}return null}function ws(e,n){if(e===n.value)return[n];for(const t of n.children){const i=ws(e,t);if(i.length)return i.unshift(n),i}return[]}class Ce{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function F6(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class Cv extends fv{constructor(n,t){super(n),this.snapshot=t,Ds(this,n)}toString(){return this.snapshot.toString()}}function dv(e,n){const t=function i$(e,n){const o=new ei([],{},{},"",{},y2,n,null,e.root,-1,{});return new pv("",new Ce(o,[]))}(e,n),i=new W1([new mn("",{})]),r=new W1({}),a=new W1({}),o=new W1({}),s=new W1(""),c=new de(i,r,o,s,a,y2,n,t.root);return c.snapshot=t.root,new Cv(new Ce(c,[]),t)}class de{constructor(n,t,i,r,a,o,s,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}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(m2(n=>P6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(m2(n=>P6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hv(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],a=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function r$(e){return e.reduce((n,t)=>({params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign({},n.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(i))}class ei{constructor(n,t,i,r,a,o,s,c,l,u,f){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=f}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=P6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=P6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pv extends fv{constructor(n,t){super(t),this.url=n,Ds(this,t)}toString(){return gv(this._root)}}function Ds(e,n){n.value._routerState=e,n.children.forEach(t=>Ds(e,t))}function gv(e){const n=e.children.length>0?` { ${e.children.map(gv).join(", ")} } `:"";return`${e.value}${n}`}function Ss(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,j4(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),j4(n.params,t.params)||e.params.next(t.params),function FG(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!j4(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.url.next(t.url),j4(n.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ns(e,n){const t=j4(e.params,n.params)&&function $G(e,n){return yt(e,n)&&e.every((t,i)=>j4(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Ns(e.parent,n.parent))}function _n(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function o$(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return _n(e,i,r);return _n(e,i)})}(e,n,t);return new Ce(i,r)}{if(e.shouldAttach(n.value)){const a=e.retrieve(n.value);if(null!==a){const o=a.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(s=>_n(e,s)),o}}const i=function s$(e){return new de(new W1(e.url),new W1(e.params),new W1(e.queryParams),new W1(e.fragment),new W1(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(a=>_n(e,a));return new Ce(i,r)}}function ti(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Mn(e){return"object"==typeof e&&null!=e&&e.outlets}function zs(e,n,t,i,r){let a={};if(i&&J1(i,(s,c)=>{a[c]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),e===n)return new Mt(t,a,r);const o=mv(e,n,t);return new Mt(o,a,r)}function mv(e,n,t){const i={};return J1(e.children,(r,a)=>{i[a]=r===n?t:mv(r,n,t)}),new V2(e.segments,i)}class vv{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&ti(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Mn);if(r&&r!==ev(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xs{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function _v(e,n,t){if(e||(e=new V2([],{})),0===e.segments.length&&e.hasChildren())return ni(e,n,t);const i=function d$(e,n,t){let i=0,r=n;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return a;const o=e.segments[r],s=t[i];if(Mn(s))break;const c=`${s}`,l=i<t.length-1?t[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!yv(c,l,o))return a;i+=2}else{if(!yv(c,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const a=new V2(e.segments.slice(0,i.pathIndex),{});return a.children[y2]=new V2(e.segments.slice(i.pathIndex),e.children),ni(a,0,r)}return i.match&&0===r.length?new V2(e.segments,{}):i.match&&!e.hasChildren()?Es(e,n,t):i.match?ni(e,0,r):Es(e,n,t)}function ni(e,n,t){if(0===t.length)return new V2(e.segments,{});{const i=function C$(e){return Mn(e[0])?e[0].outlets:{[y2]:e}}(t),r={};return J1(i,(a,o)=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=_v(e.children[o],n,a))}),J1(e.children,(a,o)=>{void 0===i[o]&&(r[o]=a)}),new V2(e.segments,r)}}function Es(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const a=t[r];if(Mn(a)){const c=h$(a.outlets);return new V2(i,c)}if(0===r&&ti(t[0])){i.push(new mn(e.segments[n].path,Mv(t[0]))),r++;continue}const o=Mn(a)?a.outlets[y2]:`${a}`,s=r<t.length-1?t[r+1]:null;o&&s&&ti(s)?(i.push(new mn(o,Mv(s))),r+=2):(i.push(new mn(o,{})),r++)}return new V2(i,{})}function h$(e){const n={};return J1(e,(t,i)=>{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=Es(new V2([],{}),0,t))}),n}function Mv(e){const n={};return J1(e,(t,i)=>n[i]=`${t}`),n}function yv(e,n,t){return e==t.path&&j4(n,t.parameters)}class g${constructor(n,t,i,r){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Ss(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=F6(t);n.children.forEach(a=>{const o=a.value.outlet;this.deactivateRoutes(a,r[o],i),delete r[o]}),J1(r,(a,o)=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(r===a)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,t,o.children)}else this.deactivateChildRoutes(n,t,i);else a&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=F6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);if(i&&i.outlet){const o=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:s})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,a=F6(n);for(const o of Object.keys(a))this.deactivateRouteAndItsChildren(a[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const r=F6(t);n.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],i),this.forwardEvent(new IG(a.value.snapshot))}),n.children.length&&this.forwardEvent(new TG(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,a=t?t.value:null;if(Ss(r),r===a)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,o.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Ss(s.route.value),this.activateChildRoutes(n,null,o.children)}else{const s=function m$(e){for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class As{constructor(n,t){this.routes=n,this.module=t}}function Pe(e){return"function"==typeof e}function bt(e){return e instanceof Mt}const yn=Symbol("INITIAL_VALUE");function bn(){return re(e=>function M7(...e){const n=Z6(e),t=Bn(e),{args:i,keys:r}=hh(e);if(0===i.length)return G1([],n);const a=new k2(function zR(e,n,t=o4){return i=>{Vp(n,()=>{const{length:r}=e,a=new Array(r);let o=r,s=r;for(let c=0;c<r;c++)Vp(n,()=>{const l=G1(e[c],n);let u=!1;l.subscribe(O2(i,f=>{a[c]=f,u||(u=!0,s--),s||i.next(t(a.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,r?o=>ph(r,o):o4));return t?a.pipe(Qo(t)):a}(e.map(n=>n.pipe(Y1(1),function g0(...e){const n=Z6(e);return a1((t,i)=>{(n?Z5(e,t,n):Z5(e,t)).subscribe(i)})}(yn)))).pipe(Gm((n,t)=>{let i=!1;return t.reduce((r,a,o)=>r!==yn?r:(a===yn&&(i=!0),i||!1!==a&&o!==t.length-1&&!bt(a)?r:a),n)},yn),Z1(n=>n!==yn),m2(n=>bt(n)?n:!0===n),Y1(1)))}class L${constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ln,this.attachRef=null}}class Ln{constructor(){this.contexts=new Map}onChildOutletCreated(n,t){const i=this.getOrCreateContext(n);i.outlet=t,this.contexts.set(n,i)}onChildOutletDestroyed(n){const t=this.getContext(n);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let t=this.getContext(n);return t||(t=new L$,this.contexts.set(n,t)),t}getContext(n){return this.contexts.get(n)||null}}let Ts=(()=>{class e{constructor(t,i,r,a,o){this.parentContexts=t,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r2,this.deactivateEvents=new r2,this.attachEvents=new r2,this.detachEvents=new r2,this.name=a||y2,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(i=i||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,c=new V$(t,s,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(L(Ln),L(P3),L(_6),function Ke(e){return function KD(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const a=t[r];if(Ac(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(a===n)return t[r+1];r+=2}}}return null}(O1(),e)}("name"),L(B3))},e.\u0275dir=B({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),e})();class V${constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===de?this.route:n===Ln?this.childContexts:this.parent.get(n,t)}}let bv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&I(0,"router-outlet")},directives:[Ts],encapsulation:2}),e})();function Lv(e,n=""){for(let t=0;t<e.length;t++){const i=e[t];H$(i,w$(n,i))}}function H$(e,n){e.children&&Lv(e.children,n)}function w$(e,n){return n?e||n.path?e&&!n.path?`${e}/`:!e&&n.path?n.path:`${e}/${n.path}`:"":e}function ks(e){const n=e.children&&e.children.map(ks),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&(n||t.loadChildren)&&t.outlet&&t.outlet!==y2&&(t.component=bv),t}function r4(e){return e.outlet||y2}function Vv(e,n){const t=e.filter(i=>r4(i)===n);return t.push(...e.filter(i=>r4(i)!==n)),t}const Hv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ii(e,n,t){var i;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},Hv):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const a=(n.matcher||PG)(t,e,n);if(!a)return Object.assign({},Hv);const o={};J1(a.posParams,(c,l)=>{o[l]=c.path});const s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function ri(e,n,t,i,r="corrected"){if(t.length>0&&function N$(e,n,t){return t.some(i=>ai(e,n,i)&&r4(i)!==y2)}(e,t,i)){const o=new V2(n,function S$(e,n,t,i){const r={};r[y2]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const a of t)if(""===a.path&&r4(a)!==y2){const o=new V2([],{});o._sourceSegment=e,o._segmentIndexShift=n.length,r[r4(a)]=o}return r}(e,n,i,new V2(t,e.children)));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function z$(e,n,t){return t.some(i=>ai(e,n,i))}(e,t,i)){const o=new V2(e.segments,function D$(e,n,t,i,r,a){const o={};for(const s of i)if(ai(e,t,s)&&!r[r4(s)]){const c=new V2([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===a?e.segments.length:n.length,o[r4(s)]=c}return Object.assign(Object.assign({},r),o)}(e,n,t,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}const a=new V2(e.segments,e.children);return a._sourceSegment=e,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:t}}function ai(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function wv(e,n,t,i){return!!(r4(e)===i||i!==y2&&ai(n,t,e))&&("**"===e.path||ii(n,e,t).matched)}function Dv(e,n,t){return 0===n.length&&!e.children[t]}class oi{constructor(n){this.segmentGroup=n||null}}class Sv{constructor(n){this.urlTree=n}}function Vn(e){return W0(new oi(e))}function Nv(e){return W0(new Sv(e))}class T${constructor(n,t,i,r,a){this.configLoader=t,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=n.get(ee)}apply(){const n=ri(this.urlTree.root,[],[],this.config).segmentGroup,t=new V2(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,t,y2).pipe(m2(a=>this.createUrlTree(Is(a),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Re(a=>{if(a instanceof Sv)return this.allowRedirects=!1,this.match(a.urlTree);throw a instanceof oi?this.noMatchError(a):a}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,y2).pipe(m2(r=>this.createUrlTree(Is(r),n.queryParams,n.fragment))).pipe(Re(r=>{throw r instanceof oi?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,t,i){const r=n.segments.length>0?new V2([],{[y2]:n}):n;return new Mt(r,t,i)}expandSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(m2(a=>new V2([],a))):this.expandSegment(n,i,t,i.segments,r,!0)}expandChildren(n,t,i){const r=[];for(const a of Object.keys(i.children))"primary"===a?r.unshift(a):r.push(a);return G1(r).pipe(pn(a=>{const o=i.children[a],s=Vv(t,a);return this.expandSegmentGroup(n,s,o,a).pipe(m2(c=>({segment:c,outlet:a})))}),Gm((a,o)=>(a[o.outlet]=o.segment,a),{}),function HG(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Z1((r,a)=>e(r,a,i)):o4,bs(1),t?Wm(n):$m(()=>new q0))}())}expandSegment(n,t,i,r,a,o){return G1(i).pipe(pn(s=>this.expandSegmentAgainstRoute(n,t,i,s,r,a,o).pipe(Re(l=>{if(l instanceof oi)return s2(null);throw l}))),R6(s=>!!s),Re((s,c)=>{if(s instanceof q0||"EmptyError"===s.name)return Dv(t,r,a)?s2(new V2([],{})):Vn(t);throw s}))}expandSegmentAgainstRoute(n,t,i,r,a,o,s){return wv(r,t,a,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,t,r,a,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o):Vn(t):Vn(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const a=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Nv(a):this.lineralizeSegments(i,a).pipe(b1(o=>{const s=new V2(o,{});return this.expandSegment(n,s,t,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,a,o){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=ii(t,r,a);if(!s)return Vn(t);const f=this.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?Nv(f):this.lineralizeSegments(r,f).pipe(b1(h=>this.expandSegment(n,t,i,h.concat(l),o,!1)))}matchSegmentAgainstRoute(n,t,i,r,a){if("**"===i.path)return i.loadChildren?(i._loadedConfig?s2(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(m2(f=>(i._loadedConfig=f,new V2(r,{})))):s2(new V2(r,{}));const{matched:o,consumedSegments:s,remainingSegments:c}=ii(t,i,r);return o?this.getChildConfig(n,i,r).pipe(b1(u=>{const f=u.module,h=u.routes,{segmentGroup:g,slicedSegments:V}=ri(t,s,c,h),H=new V2(g.segments,g.children);if(0===V.length&&H.hasChildren())return this.expandChildren(f,h,H).pipe(m2(T=>new V2(s,T)));if(0===h.length&&0===V.length)return s2(new V2(s,{}));const N=r4(i)===a;return this.expandSegment(f,H,h,V,N?y2:a,!0).pipe(m2(w=>new V2(s.concat(w.segments),w.children)))})):Vn(t)}getChildConfig(n,t,i){return t.children?s2(new As(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?s2(t._loadedConfig):this.runCanLoadGuards(n.injector,t,i).pipe(b1(r=>r?this.configLoader.load(n.injector,t).pipe(m2(a=>(t._loadedConfig=a,a))):function E$(e){return W0(Ls(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))}(t))):s2(new As([],n))}runCanLoadGuards(n,t,i){const r=t.canLoad;return r&&0!==r.length?s2(r.map(o=>{const s=n.get(o);let c;if(function _$(e){return e&&Pe(e.canLoad)}(s))c=s.canLoad(t,i);else{if(!Pe(s))throw new Error("Invalid CanLoad guard");c=s(t,i)}return G4(c)})).pipe(bn(),g3(o=>{if(!bt(o))return;const s=Ls(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw s.url=o,s}),m2(o=>!0===o)):s2(!0)}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return s2(i);if(r.numberOfChildren>1||!r.children[y2])return W0(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));r=r.children[y2]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreatreUrlTree(n,t,i,r){const a=this.createSegmentGroup(n,t.root,i,r);return new Mt(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return J1(n,(r,a)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[a]=t[s]}else i[a]=r}),i}createSegmentGroup(n,t,i,r){const a=this.createSegments(n,t.segments,i,r);let o={};return J1(t.children,(s,c)=>{o[c]=this.createSegmentGroup(n,s,i,r)}),new V2(a,o)}createSegments(n,t,i,r){return t.map(a=>a.path.startsWith(":")?this.findPosParam(n,a,r):this.findOrReturn(a,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${t.path}'.`);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}function Is(e){const n={};for(const i of Object.keys(e.children)){const a=Is(e.children[i]);(a.segments.length>0||a.hasChildren())&&(n[i]=a)}return function k$(e){if(1===e.numberOfChildren&&e.children[y2]){const n=e.children[y2];return new V2(e.segments.concat(n.segments),n.children)}return e}(new V2(e.segments,n))}class zv{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class si{constructor(n,t){this.component=n,this.route=t}}function O$(e,n,t){const i=e._root;return Hn(i,n?n._root:null,t,[i.value])}function ci(e,n,t){const i=function P$(e){if(!e)return null;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(n);return(i?i.module.injector:t).get(e)}function Hn(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=F6(n);return e.children.forEach(o=>{(function F$(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=e.value,o=n?n.value:null,s=t?t.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){const c=function B$(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!yt(e.url,n.url);case"pathParamsOrQueryParamsChange":return!yt(e.url,n.url)||!j4(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ns(e,n)||!j4(e.queryParams,n.queryParams);default:return!Ns(e,n)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new zv(i)):(a.data=o.data,a._resolvedData=o._resolvedData),Hn(e,n,a.component?s?s.children:null:t,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new si(s.outlet.component,o))}else o&&wn(n,s,r),r.canActivateChecks.push(new zv(i)),Hn(e,null,a.component?s?s.children:null:t,i,r)})(o,a[o.value.outlet],t,i.concat([o.value]),r),delete a[o.value.outlet]}),J1(a,(o,s)=>wn(o,t.getContext(s),r)),r}function wn(e,n,t){const i=F6(e),r=e.value;J1(i,(a,o)=>{wn(a,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new si(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}class Q${}function xv(e){return new k2(n=>n.error(e))}class J${constructor(n,t,i,r,a,o){this.rootComponentType=n,this.config=t,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}recognize(){const n=ri(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,y2);if(null===t)return null;const i=new ei([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},y2,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ce(i,t),a=new pv(this.url,r);return this.inheritParamsAndData(a._root),a}inheritParamsAndData(n){const t=n.value,i=hv(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,i)}processChildren(n,t){const i=[];for(const a of Object.keys(t.children)){const o=t.children[a],s=Vv(n,a),c=this.processSegmentGroup(s,o,a);if(null===c)return null;i.push(...c)}const r=Ev(i);return function X$(e){e.sort((n,t)=>n.value.outlet===y2?-1:t.value.outlet===y2?1:n.value.outlet.localeCompare(t.value.outlet))}(r),r}processSegment(n,t,i,r){for(const a of n){const o=this.processSegmentAgainstRoute(a,t,i,r);if(null!==o)return o}return Dv(t,i,r)?[]:null}processSegmentAgainstRoute(n,t,i,r){if(n.redirectTo||!wv(n,t,i,r))return null;let a,o=[],s=[];if("**"===n.path){const g=i.length>0?ev(i).parameters:{};a=new ei(i,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,kv(n),r4(n),n.component,n,Av(t),Tv(t)+i.length,Iv(n))}else{const g=ii(t,n,i);if(!g.matched)return null;o=g.consumedSegments,s=g.remainingSegments,a=new ei(o,g.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,kv(n),r4(n),n.component,n,Av(t),Tv(t)+o.length,Iv(n))}const c=function eW(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(n),{segmentGroup:l,slicedSegments:u}=ri(t,o,s,c.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const g=this.processChildren(c,l);return null===g?null:[new Ce(a,g)]}if(0===c.length&&0===u.length)return[new Ce(a,[])];const f=r4(n)===r,h=this.processSegment(c,l,u,f?y2:r);return null===h?null:[new Ce(a,h)]}}function tW(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Ev(e){const n=[],t=new Set;for(const i of e){if(!tW(i)){n.push(i);continue}const r=n.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=Ev(i.children);n.push(new Ce(i.value,r))}return n.filter(i=>!t.has(i))}function Av(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Tv(e){let n=e,t=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift?n._segmentIndexShift:0;return t-1}function kv(e){return e.data||{}}function Iv(e){return e.resolve||{}}function Ov(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Os(e){return re(n=>{const t=e(n);return t?G1(t).pipe(m2(()=>n)):s2(n)})}class lW extends class cW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const Rs=new v2("ROUTES");class Rv{constructor(n,t,i,r){this.injector=n,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const r=this.loadModuleFactory(t.loadChildren).pipe(m2(a=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=a.create(n);return new As(Xm(o.injector.get(Rs,void 0,a2.Self|a2.Optional)).map(ks),o)}),Re(a=>{throw t._loader$=void 0,a}));return t._loader$=new bG(r,()=>new C2).pipe(jm()),t._loader$}loadModuleFactory(n){return G4(n()).pipe(b1(t=>t instanceof xC?s2(t):G1(this.compiler.compileModuleAsync(t))))}}class fW{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function CW(e){throw e}function dW(e,n,t){return n.parse("/")}function Pv(e,n){return s2(null)}const hW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let X1=(()=>{class e{constructor(t,i,r,a,o,s,c){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=r,this.location=a,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new C2,this.errorHandler=CW,this.malformedUriErrorHandler=dW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Pv,afterPreactivation:Pv},this.urlHandlingStrategy=new fW,this.routeReuseStrategy=new lW,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(ee),this.console=o.get(vT);const f=o.get(P2);this.isNgZoneEnabled=f instanceof P2&&P2.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=function BG(){return new Mt(new V2([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Rv(o,s,h=>this.triggerEvent(new Km(h)),h=>this.triggerEvent(new Ym(h))),this.routerState=dv(this.currentUrlTree,this.rootComponentType),this.transitions=new W1({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(Z1(r=>0!==r.id),m2(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),re(r=>{let a=!1,o=!1;return s2(r).pipe(g3(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),re(s=>{const c=this.browserUrlTree.toString(),l=!this.navigated||s.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Fv(s.source)&&(this.browserUrlTree=s.extractedUrl),s2(s).pipe(re(f=>{const h=this.transitions.getValue();return i.next(new K0(f.id,this.serializeUrl(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions.getValue()?c4:Promise.resolve(f)}),function I$(e,n,t,i){return re(r=>function A$(e,n,t,i,r){return new T$(e,n,t,i,r).apply()}(e,n,t,r.extractedUrl,i).pipe(m2(a=>Object.assign(Object.assign({},r),{urlAfterRedirects:a}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),g3(f=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:f.urlAfterRedirects})}),function nW(e,n,t,i,r){return b1(a=>function Z$(e,n,t,i,r="emptyOnly",a="legacy"){try{const o=new J$(e,n,t,i,r,a).recognize();return null===o?xv(new Q$):s2(o)}catch(o){return xv(o)}}(e,n,a.urlAfterRedirects,t(a.urlAfterRedirects),i,r).pipe(m2(o=>Object.assign(Object.assign({},a),{targetSnapshot:o}))))}(this.rootComponentType,this.config,f=>this.serializeUrl(f),this.paramsInheritanceStrategy,this.relativeLinkResolution),g3(f=>{if("eager"===this.urlUpdateStrategy){if(!f.extras.skipLocationChange){const g=this.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);this.setBrowserUrl(g,f)}this.browserUrlTree=f.urlAfterRedirects}const h=new SG(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.next(h)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:g,source:V,restoredState:H,extras:N}=s,z=new K0(h,this.serializeUrl(g),V,H);i.next(z);const w=dv(g,this.rootComponentType).snapshot;return s2(Object.assign(Object.assign({},s),{targetSnapshot:w,urlAfterRedirects:g,extras:Object.assign(Object.assign({},N),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),c4}),Os(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:g}}=s;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!g})}),g3(s=>{const c=new NG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),m2(s=>Object.assign(Object.assign({},s),{guards:O$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function U$(e,n){return b1(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:o}}=t;return 0===o.length&&0===a.length?s2(Object.assign(Object.assign({},t),{guardsResult:!0})):function j$(e,n,t,i){return G1(e).pipe(b1(r=>function Y$(e,n,t,i,r){const a=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return a&&0!==a.length?s2(a.map(s=>{const c=ci(s,n,r);let l;if(function b$(e){return e&&Pe(e.canDeactivate)}(c))l=G4(c.canDeactivate(e,n,t,i));else{if(!Pe(c))throw new Error("Invalid CanDeactivate guard");l=G4(c(e,n,t,i))}return l.pipe(R6())})).pipe(bn()):s2(!0)}(r.component,r.route,t,n,i)),R6(r=>!0!==r,!0))}(o,i,r,e).pipe(b1(s=>s&&function v$(e){return"boolean"==typeof e}(s)?function G$(e,n,t,i){return G1(n).pipe(pn(r=>Z5(function W$(e,n){return null!==e&&n&&n(new AG(e)),s2(!0)}(r.route.parent,i),function $$(e,n){return null!==e&&n&&n(new kG(e)),s2(!0)}(r.route,i),function K$(e,n,t){const i=n[n.length-1],a=n.slice(0,n.length-1).reverse().map(o=>function R$(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(o)).filter(o=>null!==o).map(o=>Um(()=>s2(o.guards.map(c=>{const l=ci(c,o.node,t);let u;if(function y$(e){return e&&Pe(e.canActivateChild)}(l))u=G4(l.canActivateChild(i,e));else{if(!Pe(l))throw new Error("Invalid CanActivateChild guard");u=G4(l(i,e))}return u.pipe(R6())})).pipe(bn())));return s2(a).pipe(bn())}(e,r.path,t),function q$(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return s2(!0);const r=i.map(a=>Um(()=>{const o=ci(a,n,t);let s;if(function M$(e){return e&&Pe(e.canActivate)}(o))s=G4(o.canActivate(n,e));else{if(!Pe(o))throw new Error("Invalid CanActivate guard");s=G4(o(n,e))}return s.pipe(R6())}));return s2(r).pipe(bn())}(e,r.route,t))),R6(r=>!0!==r,!0))}(i,a,e,n):s2(s)),m2(s=>Object.assign(Object.assign({},t),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),g3(s=>{if(bt(s.guardsResult)){const l=Ls(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw l.url=s.guardsResult,l}const c=new zG(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(c)}),Z1(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),Os(s=>{if(s.guards.canActivateChecks.length)return s2(s).pipe(g3(c=>{const l=new xG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),re(c=>{let l=!1;return s2(c).pipe(function iW(e,n){return b1(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return s2(t);let a=0;return G1(r).pipe(pn(o=>function rW(e,n,t,i){return function aW(e,n,t,i){const r=Ov(e);if(0===r.length)return s2({});const a={};return G1(r).pipe(b1(o=>function oW(e,n,t,i){const r=ci(e,n,i);return G4(r.resolve?r.resolve(n,t):r(n,t))}(e[o],n,t,i).pipe(g3(s=>{a[o]=s}))),bs(1),b1(()=>Ov(a).length===r.length?s2(a):c4))}(e._resolve,e,n,i).pipe(m2(a=>(e._resolvedData=a,e.data=Object.assign(Object.assign({},e.data),hv(e,t).resolve),null)))}(o.route,i,e,n)),g3(()=>a++),bs(1),b1(o=>a===r.length?s2(t):c4))})}(this.paramsInheritanceStrategy,this.ngModule.injector),g3({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),g3(c=>{const l=new EG(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),Os(s=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:f,extras:{skipLocationChange:h,replaceUrl:g}}=s;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:f,skipLocationChange:!!h,replaceUrl:!!g})}),m2(s=>{const c=function a$(e,n,t){const i=_n(e,n._root,t?t._root:void 0);return new Cv(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:c})}),g3(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>m2(i=>(new g$(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),g3({next(){a=!0},complete(){a=!0}}),function wG(e){return a1((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{var s;a||o||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),Re(s=>{if(o=!0,function RG(e){return e&&e[Zm]}(s)){const c=bt(s.url);c||(this.navigated=!0,this.restoreHistory(r,!0));const l=new qm(r.id,this.serializeUrl(r.extractedUrl),s.message);i.next(l),c?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fv(r.source)};this.scheduleNavigation(u,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const c=new DG(r.id,this.serializeUrl(r.extractedUrl),s);i.next(c);try{r.resolve(this.errorHandler(s))}catch(l){r.reject(l)}}return c4}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const a={replaceUrl:!0},o=(null===(r=t.state)||void 0===r?void 0:r.navigationId)?t.state:null;if(o){const c=Object.assign({},o);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}const s=this.parseUrl(t.url);this.scheduleNavigation(s,i,o,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Lv(t),this.config=t.map(ks),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:r,queryParams:a,fragment:o,queryParamsHandling:s,preserveFragment:c}=i,l=r||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let f=null;switch(s){case"merge":f=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}return null!==f&&(f=this.removeEmptyProps(f)),function c$(e,n,t,i,r){if(0===t.length)return zs(n.root,n.root,n.root,i,r);const a=function l$(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new vv(!0,0,e);let n=0,t=!1;const i=e.reduce((r,a,o)=>{if("object"==typeof a&&null!=a){if(a.outlets){const s={};return J1(a.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===o?(a.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?t=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,a]},[]);return new vv(t,n,i)}(t);if(a.toRoot())return zs(n.root,n.root,new V2([],{}),i,r);const o=function u$(e,n,t){if(e.isAbsolute)return new xs(n.root,!0,0);if(-1===t.snapshot._lastPathIndex){const a=t.snapshot._urlSegment;return new xs(a,a===n.root,0)}const i=ti(e.commands[0])?0:1;return function f$(e,n,t){let i=e,r=n,a=t;for(;a>r;){if(a-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new xs(i,!1,r-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,n,e),s=o.processChildren?ni(o.segmentGroup,o.index,a.commands):_v(o.segmentGroup,o.index,a.commands);return zs(n.root,o.segmentGroup,s,i,r)}(l,this.currentUrlTree,t,f,null!=u?u:null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=bt(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function gW(e){for(let n=0;n<e.length;n++){const t=e[n];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${n}`)}}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return i}isActive(t,i){let r;if(r=!0===i?Object.assign({},hW):!1===i?Object.assign({},pW):i,bt(t))return nv(this.currentUrlTree,t,r);const a=this.parseUrl(t);return nv(this.currentUrlTree,a,r)}removeEmptyProps(t){return Object.keys(t).reduce((i,r)=>{const a=t[r];return null!=a&&(i[r]=a),i},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new gn(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,r,a,o){var s,c;if(this.disposed)return Promise.resolve(!1);let l,u,f;o?(l=o.resolve,u=o.reject,f=o.promise):f=new Promise((V,H)=>{l=V,u=H});const h=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),g=r&&r.\u0275routerPageId?r.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):g=0,this.setTransition({id:h,targetPageId:g,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:a,resolve:l,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(V=>Promise.reject(V))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",a):this.location.go(r,"",a)}restoreHistory(t,i=!1){var r,a;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i){const r=new qm(t.id,this.serializeUrl(t.extractedUrl),i);this.triggerEvent(r),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){za()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function Fv(e){return"imperative"!==e}let he=(()=>{class e{constructor(t,i,r){this.router=t,this.route=i,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new C2,this.subscription=t.events.subscribe(a=>{a instanceof gn&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,i,r,a,o){if(0!==t||i||r||a||o||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:B6(this.skipLocationChange),replaceUrl:B6(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:B6(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(L(X1),L(de),L(it))},e.\u0275dir=B({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&A("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&t&&j("target",i.target)("href",i.href,Qe)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[V1]}),e})();function B6(e){return""===e||!!e}class Bv{}class Uv{preload(n,t){return s2(null)}}let jv=(()=>{class e{constructor(t,i,r,a){this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new Rv(r,i,c=>t.triggerEvent(new Km(c)),c=>t.triggerEvent(new Ym(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(Z1(t=>t instanceof gn),pn(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ee);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const a of i)if(a.loadChildren&&!a.canLoad&&a._loadedConfig){const o=a._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?r.push(this.preloadConfig(t,a)):a.children&&r.push(this.processRoutes(t,a.children));return G1(r).pipe(Q6(),m2(a=>{}))}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?s2(i._loadedConfig):this.loader.load(t.injector,i)).pipe(b1(a=>(i._loadedConfig=a,this.processRoutes(a.module,a.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(q(X1),q(dd),q(A1),q(Bv))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})(),Fs=(()=>{class e{constructor(t,i,r={}){this.router=t,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof K0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof gn&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Qm&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new Qm(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){za()},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();const Lt=new v2("ROUTER_CONFIGURATION"),Gv=new v2("ROUTER_FORROOT_GUARD"),MW=[No,{provide:ov,useClass:sv},{provide:X1,useFactory:function HW(e,n,t,i,r,a,o={},s,c){const l=new X1(null,e,n,t,i,r,Xm(a));return s&&(l.urlHandlingStrategy=s),c&&(l.routeReuseStrategy=c),function wW(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(o,l),o.enableTracing&&l.events.subscribe(u=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(h=console.groupEnd)||void 0===h||h.call(console)}),l},deps:[ov,Ln,No,A1,dd,Rs,Lt,[class uW{},new Le],[class sW{},new Le]]},Ln,{provide:de,useFactory:function DW(e){return e.routerState.root},deps:[X1]},jv,Uv,class _W{preload(n,t){return t().pipe(Re(()=>s2(null)))}},{provide:Lt,useValue:{enableTracing:!1}}];function yW(){return new vd("Router",X1)}let $v=(()=>{class e{constructor(t,i){}static forRoot(t,i){return{ngModule:e,providers:[MW,Wv(t),{provide:Gv,useFactory:VW,deps:[[X1,new Le,new d5]]},{provide:Lt,useValue:i||{}},{provide:it,useFactory:LW,deps:[nt,[new C8(So),new Le],Lt]},{provide:Fs,useFactory:bW,deps:[X1,SI,Lt]},{provide:Bv,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Uv},{provide:vd,multi:!0,useFactory:yW},[Bs,{provide:fo,multi:!0,useFactory:SW,deps:[Bs]},{provide:qv,useFactory:NW,deps:[Bs]},{provide:Cd,multi:!0,useExisting:qv}]]}}static forChild(t){return{ngModule:e,providers:[Wv(t)]}}}return e.\u0275fac=function(t){return new(t||e)(q(Gv,8),q(X1,8))},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({}),e})();function bW(e,n,t){return t.scrollOffset&&n.setOffset(t.scrollOffset),new Fs(e,n,t)}function LW(e,n,t={}){return t.useHash?new Rd(e,n):new Od(e,n)}function VW(e){return"guarded"}function Wv(e){return[{provide:XD,multi:!0,useValue:e},{provide:Rs,multi:!0,useValue:e}]}let Bs=(()=>{class e{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new C2}appInitializer(){return this.injector.get(sk,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(s=>i=s),a=this.injector.get(X1),o=this.injector.get(Lt);return"disabled"===o.initialNavigation?(a.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(a.hooks.afterPreactivation=()=>this.initNavigation?s2(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),a.initialNavigation()):i(!0),r})}bootstrapListener(t){const i=this.injector.get(Lt),r=this.injector.get(jv),a=this.injector.get(Fs),o=this.injector.get(X1),s=this.injector.get(L6);t===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),a.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(q(A1))},e.\u0275prov=Z({token:e,factory:e.\u0275fac}),e})();function SW(e){return e.appInitializer.bind(e)}function NW(e){return e.bootstrapListener.bind(e)}const qv=new v2("Router Initializer");let xW=(()=>{class e{constructor(){this.title="config-ui",this.logoSrc="assets/images/homebridge-eufy-security.png"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"div",0)(1,"div",1),I(2,"img",2),m(),p(3,"h3",3),M(4," Welcome to"),I(5,"br"),p(6,"b",4),M(7,"Eufy Security Plugin"),m()(),p(8,"h6",3),M(9,"Homebridge plugin for Eufy Security Devices"),m(),I(10,"hr"),p(11,"div",5),I(12,"router-outlet"),m(),I(13,"hr"),p(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. "),m()()),2&t&&(_(2),b("src",i.logoSrc,Qe))},directives:[Ts],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}"]}),e})();function Kv(e,n,t,i,r,a,o){try{var s=e[a](o),c=s.value}catch(l){return void t(l)}s.done?n(c):Promise.resolve(c).then(i,r)}function L2(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var a=e.apply(n,t);function o(c){Kv(a,i,r,o,s,"next",c)}function s(c){Kv(a,i,r,o,s,"throw",c)}o(void 0)})}}var mM={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9898,9899,11044,61708,61915,9679],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"]},IM={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM168 232C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H168z"]},FM={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 368C269.3 368 280 357.3 280 344V280H344C357.3 280 368 269.3 368 256C368 242.7 357.3 232 344 232H280V168C280 154.7 269.3 144 256 144C242.7 144 232 154.7 232 168V232H168C154.7 232 144 242.7 144 256C144 269.3 154.7 280 168 280H232V344C232 357.3 242.7 368 256 368z"]},My={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"]},M9={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M449.9 39.96l-48.5 48.53C362.5 53.19 311.4 32 256 32C161.5 32 78.59 92.34 49.58 182.2c-5.438 16.81 3.797 34.88 20.61 40.28c16.97 5.5 34.86-3.812 40.3-20.59C130.9 138.5 189.4 96 256 96c37.96 0 73 14.18 100.2 37.8L311.1 178C295.1 194.8 306.8 223.4 330.4 224h146.9C487.7 223.7 496 215.3 496 204.9V59.04C496 34.99 466.9 22.95 449.9 39.96zM441.8 289.6c-16.94-5.438-34.88 3.812-40.3 20.59C381.1 373.5 322.6 416 256 416c-37.96 0-73-14.18-100.2-37.8L200 334C216.9 317.2 205.2 288.6 181.6 288H34.66C24.32 288.3 16 296.7 16 307.1v145.9c0 24.04 29.07 36.08 46.07 19.07l48.5-48.53C149.5 458.8 200.6 480 255.1 480c94.45 0 177.4-60.34 206.4-150.2C467.9 313 458.6 294.1 441.8 289.6z"]},b9={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M331.8 224.1c28.29 0 54.88 10.99 74.86 30.97l19.59 19.59c40.01-17.74 71.25-53.3 81.62-96.65c5.725-23.92 5.34-47.08 .2148-68.4c-2.613-10.88-16.43-14.51-24.34-6.604l-68.9 68.9h-75.6V97.2l68.9-68.9c7.912-7.912 4.275-21.73-6.604-24.34c-21.32-5.125-44.48-5.51-68.4 .2148c-55.3 13.23-98.39 60.22-107.2 116.4C224.5 128.9 224.2 137 224.3 145l82.78 82.86C315.2 225.1 323.5 224.1 331.8 224.1zM384 278.6c-23.16-23.16-57.57-27.57-85.39-13.9L191.1 158L191.1 95.99l-127.1-95.99L0 63.1l96 127.1l62.04 .0077l106.7 106.6c-13.67 27.82-9.251 62.23 13.91 85.39l117 117.1c14.62 14.5 38.21 14.5 52.71-.0016l52.75-52.75c14.5-14.5 14.5-38.08-.0016-52.71L384 278.6zM227.9 307L168.7 247.9l-148.9 148.9c-26.37 26.37-26.37 69.08 0 95.45C32.96 505.4 50.21 512 67.5 512s34.54-6.592 47.72-19.78l119.1-119.1C225.5 352.3 222.6 329.4 227.9 307zM64 472c-13.25 0-24-10.75-24-24c0-13.26 10.75-24 24-24S88 434.7 88 448C88 461.3 77.25 472 64 472z"]},S=(()=>{return(e=S||(S={}))[e.STATION=0]="STATION",e[e.CAMERA=1]="CAMERA",e[e.SENSOR=2]="SENSOR",e[e.FLOODLIGHT=3]="FLOODLIGHT",e[e.CAMERA_E=4]="CAMERA_E",e[e.DOORBELL=5]="DOORBELL",e[e.BATTERY_DOORBELL=7]="BATTERY_DOORBELL",e[e.CAMERA2C=8]="CAMERA2C",e[e.CAMERA2=9]="CAMERA2",e[e.MOTION_SENSOR=10]="MOTION_SENSOR",e[e.KEYPAD=11]="KEYPAD",e[e.CAMERA2_PRO=14]="CAMERA2_PRO",e[e.CAMERA2C_PRO=15]="CAMERA2C_PRO",e[e.BATTERY_DOORBELL_2=16]="BATTERY_DOORBELL_2",e[e.HB3=18]="HB3",e[e.CAMERA3=19]="CAMERA3",e[e.CAMERA3C=23]="CAMERA3C",e[e.INDOOR_CAMERA=30]="INDOOR_CAMERA",e[e.INDOOR_PT_CAMERA=31]="INDOOR_PT_CAMERA",e[e.SOLO_CAMERA=32]="SOLO_CAMERA",e[e.SOLO_CAMERA_PRO=33]="SOLO_CAMERA_PRO",e[e.INDOOR_CAMERA_1080=34]="INDOOR_CAMERA_1080",e[e.INDOOR_PT_CAMERA_1080=35]="INDOOR_PT_CAMERA_1080",e[e.FLOODLIGHT_CAMERA_8422=37]="FLOODLIGHT_CAMERA_8422",e[e.FLOODLIGHT_CAMERA_8423=38]="FLOODLIGHT_CAMERA_8423",e[e.FLOODLIGHT_CAMERA_8424=39]="FLOODLIGHT_CAMERA_8424",e[e.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT=44]="INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT",e[e.INDOOR_OUTDOOR_CAMERA_2K=45]="INDOOR_OUTDOOR_CAMERA_2K",e[e.INDOOR_OUTDOOR_CAMERA_1080P=46]="INDOOR_OUTDOOR_CAMERA_1080P",e[e.LOCK_BLE=50]="LOCK_BLE",e[e.LOCK_WIFI=51]="LOCK_WIFI",e[e.LOCK_BLE_NO_FINGER=52]="LOCK_BLE_NO_FINGER",e[e.LOCK_WIFI_NO_FINGER=53]="LOCK_WIFI_NO_FINGER",e[e.LOCK_8503=54]="LOCK_8503",e[e.LOCK_8530=55]="LOCK_8530",e[e.LOCK_85A3=56]="LOCK_85A3",e[e.LOCK_8592=57]="LOCK_8592",e[e.LOCK_8504=58]="LOCK_8504",e[e.SOLO_CAMERA_SPOTLIGHT_1080=60]="SOLO_CAMERA_SPOTLIGHT_1080",e[e.SOLO_CAMERA_SPOTLIGHT_2K=61]="SOLO_CAMERA_SPOTLIGHT_2K",e[e.SOLO_CAMERA_SPOTLIGHT_SOLAR=62]="SOLO_CAMERA_SPOTLIGHT_SOLAR",e[e.SMART_DROP=90]="SMART_DROP",e[e.BATTERY_DOORBELL_PLUS=91]="BATTERY_DOORBELL_PLUS",e[e.DOORBELL_SOLO=93]="DOORBELL_SOLO",e[e.INDOOR_COST_DOWN_CAMERA=100]="INDOOR_COST_DOWN_CAMERA",e[e.CAMERA_GUN=101]="CAMERA_GUN",e[e.CAMERA_SNAIL=102]="CAMERA_SNAIL",e[e.CAMERA_FG=110]="CAMERA_FG",e[e.CAMERA_GARAGE_T8453_COMMON=131]="CAMERA_GARAGE_T8453_COMMON",e[e.CAMERA_GARAGE_T8452=132]="CAMERA_GARAGE_T8452",e[e.CAMERA_GARAGE_T8453=133]="CAMERA_GARAGE_T8453",e[e.SMART_SAFE_7400=140]="SMART_SAFE_7400",e[e.SMART_SAFE_7401=141]="SMART_SAFE_7401",e[e.SMART_SAFE_7402=142]="SMART_SAFE_7402",e[e.SMART_SAFE_7403=143]="SMART_SAFE_7403",e[e.WALL_LIGHT_CAM=151]="WALL_LIGHT_CAM",e[e.SMART_TRACK_LINK=157]="SMART_TRACK_LINK",e[e.SMART_TRACK_CARD=159]="SMART_TRACK_CARD",e[e.LOCK_8502=180]="LOCK_8502",e[e.LOCK_8506=181]="LOCK_8506",e[e.WALL_LIGHT_CAM_81A0=10005]="WALL_LIGHT_CAM_81A0",S;var e})();class En{static isDoorbell(n){return n===S.DOORBELL||n===S.BATTERY_DOORBELL||n===S.BATTERY_DOORBELL_2||n===S.BATTERY_DOORBELL_PLUS||n===S.DOORBELL_SOLO}static isCamera(n){return n===S.CAMERA||n===S.CAMERA2||n===S.CAMERA_E||n===S.CAMERA2C||n===S.INDOOR_CAMERA||n===S.INDOOR_PT_CAMERA||n===S.FLOODLIGHT||n===S.DOORBELL||n===S.BATTERY_DOORBELL||n===S.BATTERY_DOORBELL_2||n===S.BATTERY_DOORBELL_PLUS||n===S.DOORBELL_SOLO||n===S.CAMERA2C_PRO||n===S.CAMERA2_PRO||n===S.CAMERA3||n===S.CAMERA3C||n===S.INDOOR_CAMERA_1080||n===S.INDOOR_PT_CAMERA_1080||n===S.SOLO_CAMERA||n===S.SOLO_CAMERA_PRO||n===S.SOLO_CAMERA_SPOTLIGHT_1080||n===S.SOLO_CAMERA_SPOTLIGHT_2K||n===S.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===S.INDOOR_OUTDOOR_CAMERA_1080P||n===S.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===S.INDOOR_OUTDOOR_CAMERA_2K||n===S.INDOOR_COST_DOWN_CAMERA||n===S.FLOODLIGHT_CAMERA_8422||n===S.FLOODLIGHT_CAMERA_8423||n===S.FLOODLIGHT_CAMERA_8424||n===S.WALL_LIGHT_CAM||n===S.WALL_LIGHT_CAM_81A0||n===S.CAMERA_GARAGE_T8453_COMMON||n===S.CAMERA_GARAGE_T8453||n===S.CAMERA_GARAGE_T8452||n===S.CAMERA_FG}static supportsRTSP(n){return n===S.CAMERA||n===S.CAMERA2||n===S.CAMERA2C||n===S.CAMERA2C_PRO||n===S.CAMERA3||n===S.CAMERA3C||n===S.CAMERA_E||n===S.INDOOR_CAMERA||n===S.INDOOR_CAMERA_1080||n===S.INDOOR_OUTDOOR_CAMERA_1080P||n===S.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===S.INDOOR_OUTDOOR_CAMERA_2K||n===S.INDOOR_PT_CAMERA||n===S.INDOOR_PT_CAMERA_1080||n===S.INDOOR_COST_DOWN_CAMERA||n===S.FLOODLIGHT_CAMERA_8423||n===S.CAMERA_GARAGE_T8453_COMMON||n===S.CAMERA_GARAGE_T8453||n===S.CAMERA_GARAGE_T8452||n===S.CAMERA_FG}static supportsTalkback(n){return n===S.CAMERA2||n===S.CAMERA2C||n===S.CAMERA2C_PRO||n===S.CAMERA2_PRO||n===S.CAMERA3||n===S.CAMERA3C||n===S.DOORBELL||n===S.BATTERY_DOORBELL||n===S.BATTERY_DOORBELL_2||n===S.BATTERY_DOORBELL_PLUS||n===S.DOORBELL_SOLO||n===S.INDOOR_CAMERA||n===S.INDOOR_CAMERA_1080||n===S.INDOOR_OUTDOOR_CAMERA_1080P||n===S.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT||n===S.INDOOR_OUTDOOR_CAMERA_2K||n===S.INDOOR_PT_CAMERA||n===S.INDOOR_PT_CAMERA_1080||n===S.INDOOR_COST_DOWN_CAMERA||n===S.SOLO_CAMERA||n===S.SOLO_CAMERA_PRO||n===S.SOLO_CAMERA_SPOTLIGHT_1080||n===S.SOLO_CAMERA_SPOTLIGHT_2K||n===S.SOLO_CAMERA_SPOTLIGHT_SOLAR||n===S.FLOODLIGHT||n===S.FLOODLIGHT_CAMERA_8422||n===S.FLOODLIGHT_CAMERA_8423||n===S.FLOODLIGHT_CAMERA_8424||n===S.WALL_LIGHT_CAM||n===S.WALL_LIGHT_CAM_81A0||n===S.CAMERA_GARAGE_T8453_COMMON||n===S.CAMERA_GARAGE_T8453||n===S.CAMERA_GARAGE_T8452||n===S.CAMERA_FG}}const O9=new Map([[S.STATION,{image:"homebase2_large.jpg",padding:"0px"}],[S.HB3,{image:"homebase3_large.jpg",padding:"0px"}],[S.CAMERA,{image:"eufycam_large.jpg",padding:"0px"}],[S.SENSOR,{image:"sensor_large.jpg",padding:"0px"}],[S.FLOODLIGHT,{image:"floodlight_large.jpg",padding:"0px"}],[S.CAMERA_E,{image:"eufycam_large.jpg",padding:"0px"}],[S.DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[S.BATTERY_DOORBELL,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[S.CAMERA2C,{image:"eufycam2c_large.jpg",padding:"0px"}],[S.CAMERA2,{image:"eufycam2_large.jpg",padding:"0px"}],[S.CAMERA3C,{image:"eufycam3c_large.jpg",padding:"0px"}],[S.CAMERA3,{image:"eufycam3_large.jpg",padding:"0px"}],[S.MOTION_SENSOR,{image:"motionsensor_large.jpg",padding:"0px"}],[S.KEYPAD,{image:"keypad_large.jpg",padding:"0px"}],[S.CAMERA2_PRO,{image:"eufycam2pro_large.jpg",padding:"0px"}],[S.CAMERA2C_PRO,{image:"eufycam2cpro_large.jpg",padding:"0px"}],[S.BATTERY_DOORBELL_2,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[S.INDOOR_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[S.INDOOR_PT_CAMERA,{image:"indoorcamp24_large.jpg",padding:"0px"}],[S.SOLO_CAMERA,{image:"solocame20_large.jpg",padding:"0px"}],[S.SOLO_CAMERA_PRO,{image:"solocame20_large.jpg",padding:"0px"}],[S.INDOOR_CAMERA_1080,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[S.INDOOR_PT_CAMERA_1080,{image:"indoorcamp24_large.jpg",padding:"0px"}],[S.FLOODLIGHT_CAMERA_8422,{image:"floodlight_large.jpg",padding:"0px"}],[S.FLOODLIGHT_CAMERA_8423,{image:"floodlight2pro_large.jpg",padding:"0px"}],[S.FLOODLIGHT_CAMERA_8424,{image:"floodlight2_large.jpg",padding:"0px"}],[S.INDOOR_OUTDOOR_CAMERA_1080P_NO_LIGHT,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[S.INDOOR_OUTDOOR_CAMERA_2K,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[S.INDOOR_OUTDOOR_CAMERA_1080P,{image:"soloindoorcamc24_large.jpg",padding:"10px"}],[S.LOCK_BLE,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[S.LOCK_WIFI,{image:"smartlock_touch_t8510_large.jpg",padding:"0px"}],[S.LOCK_BLE_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_WIFI_NO_FINGER,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_8503,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_8530,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_85A3,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_8592,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.LOCK_8504,{image:"smartlock_t8500_large.jpg",padding:"0px"}],[S.SOLO_CAMERA_SPOTLIGHT_1080,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[S.SOLO_CAMERA_SPOTLIGHT_2K,{image:"solooutdoorcamc24_large.jpg",padding:"15px"}],[S.SOLO_CAMERA_SPOTLIGHT_SOLAR,{image:"solocams40_large.jpg",padding:"10px"}],[S.SMART_DROP,{image:"smartdrop_t8790_large.jpg",padding:"20px"}],[S.BATTERY_DOORBELL_PLUS,{image:"batterydoorbell2k_large.jpg",padding:"0px"}],[S.DOORBELL_SOLO,{image:"wireddoorbelldual_large.jpg",padding:"0px"}],[S.INDOOR_COST_DOWN_CAMERA,{image:"indoorcammini_large.jpg",padding:"0px"}],[S.CAMERA_GUN,{image:"unknown.png",padding:"20px"}],[S.CAMERA_SNAIL,{image:"unknown.png",padding:"20px"}],[S.CAMERA_FG,{image:"4g_lte_starlight_large.jpg",padding:"20px"}],[S.SMART_SAFE_7400,{image:"smartsafe_s10_t7400_large.jpg",padding:"20px"}],[S.SMART_SAFE_7401,{image:"smartsafe_s12_t7401_large.jpg",padding:"20px"}],[S.SMART_SAFE_7402,{image:"unknown.png",padding:"20px"}],[S.SMART_SAFE_7403,{image:"unknown.png",padding:"20px"}],[S.WALL_LIGHT_CAM,{image:"walllight_s100_large.jpg",padding:"20px"}],[S.SMART_TRACK_LINK,{image:"unknown.png",padding:"20px"}],[S.SMART_TRACK_CARD,{image:"unknown.png",padding:"20px"}],[S.LOCK_8502,{image:"unknown.png",padding:"20px"}],[S.LOCK_8506,{image:"unknown.png",padding:"20px"}],[S.WALL_LIGHT_CAM_81A0,{image:"walllight_s100_large",padding:"20px"}],[S.CAMERA_GARAGE_T8452,{image:"garage_camera_t8452_small.jpg",padding:"20px"}],[S.CAMERA_GARAGE_T8453,{image:"unknown.png",padding:"20px"}],[S.CAMERA_GARAGE_T8453_COMMON,{image:"unknown.png",padding:"20px"}]]);let X2=(()=>{class e extends EventTarget{constructor(){super(),this.stations=[],this.devices=[],this.accessories$=p3(window.homebridge,"addAccessory"),this.init()}init(){this.accessories$.subscribe(t=>{this.loadStoredAccessories()}),this.loadStoredAccessories()}getStations(){return this.stations}getDevices(){return this.devices}getStation(t){return this.stations.find(i=>i.uniqueId===t)}getDevice(t){return this.devices.find(i=>i.uniqueId===t)}loadStoredAccessories(){var t=this;return L2(function*(){try{const i=yield window.homebridge.request("/storedAccessories");return i.forEach(r=>{t.addAccessory(r)}),0!==i.length&&t.dispatchEvent(new Event("newAccessories")),Promise.resolve(0!==i.length)}catch(i){return Promise.reject(i)}})()}addAccessory(t){const i=t.station?this.stations:this.devices;i.find(r=>r.uniqueId===t.uniqueId)||i.push(t)}getConfig(){var t=this;return L2(function*(){return t.config?Promise.resolve(t.config):t.getPlatformConfig()})()}updateConfig(t,i){var r=this;return L2(function*(){try{yield window.homebridge.updatePluginConfig([t]),r.config=t,i&&(yield window.homebridge.savePluginConfig()),r.dispatchEvent(new Event("configChanged"))}catch(a){console.log("There was an error updating the credentials in your config: "+a)}})()}getPlatformConfig(){var t=this;return L2(function*(){try{const i=yield window.homebridge.getPluginConfig();return i.length>0?(t.config=i[0],t.config.platform="EufySecurity",Promise.resolve(i[0])):Promise.reject("Could not get Platform config")}catch(i){return Promise.reject(i)}})()}getCachedName(t){return L2(function*(){let r;return(yield window.homebridge.getCachedAccessories()).forEach(a=>{a.context&&a.context.device&&a.context.device.uniqueId===t.uniqueId&&a.context.device.station===t.station&&(r=a.context.device.displayName)}),Promise.resolve(r)})()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Yl2(e,n){if(1&e){const t=H1();p(0,"div",2)(1,"h4",3),M(2,"Refresh stations and devices"),m(),p(3,"button",4),A("click",function(){return W(t).$implicit.dismiss("Cross click")}),m()(),p(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. "),I(7,"p"),p(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."),m(),I(10,"p"),M(11," Otherwise you might experience glitches like no longer working push notifications for the plugin (see "),p(12,"a",8),M(13,"here"),m(),M(14," for more information). "),m()(),p(15,"div",9)(16,"a",10),A("click",function(){return W(t).$implicit.close("Login")}),M(17,"Login with eufy"),m()()}}function Ql2(e,n){1&e&&(p(0,"div",11)(1,"div",12),I(2,"div",13),p(3,"div",14)(4,"div",15)(5,"div",16),M(6," Loading Accessories... "),p(7,"div",17),I(8,"div",18),m()()()(),I(9,"div",13),m()())}function Zl2(e,n){if(1&e&&(p(0,"span",42),I(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function Jl2(e,n){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),I(5,"img",36),p(6,"span",37),I(7,"fa-icon",38),m(),O(8,Zl2,2,1,"span",39),m()()()(),p(9,"span",40),M(10),m(),p(11,"span",41),M(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),h6("routerLink","/stationConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),N5(t.cachedName?t.cachedName:t.displayName),_(2),X3("(",t.uniqueId,")")}}function Xl2(e,n){if(1&e&&(p(0,"span",42),I(1,"fa-icon",43),m()),2&e){const t=E(3);_(1),b("icon",t.ignoreIcon)}}function eu2(e,n){if(1&e&&(p(0,"div",31)(1,"div",32)(2,"div",33)(3,"a",34)(4,"div",35),I(5,"img",36),p(6,"span",37),I(7,"fa-icon",38),m(),O(8,Xl2,2,1,"span",39),m()()()(),p(9,"span",40),M(10),m(),p(11,"span",41),M(12),m()()),2&e){const t=n.$implicit,i=E(2);let r;_(3),h6("routerLink","/cameraConfig/",t.uniqueId,""),_(2),b("src","assets/devices/"+(i.DeviceImage.get(t.type)?null==(r=i.DeviceImage.get(t.type))?null:r.image:"unknown.png"),Qe),j("style",i.getDevicePanelStyle(t),Q4),_(2),b("icon",i.settingsIcon),_(1),b("ngIf",t.ignored),_(2),N5(t.cachedName?t.cachedName:t.displayName),_(2),X3("(",t.uniqueId,")")}}function tu2(e,n){if(1&e){const t=H1();p(0,"div",11)(1,"div",19)(2,"div",20)(3,"button",21),A("click",function(){W(t);const r=E(),a=R3(1);return r.openReloadModal(a)}),I(4,"fa-icon",22),m()(),p(5,"div",23)(6,"a",24),M(7,"Plugin Settings"),m()()(),I(8,"p"),p(9,"span"),M(10,"Click on any device below to access its settings."),m(),I(11,"p"),p(12,"div",25)(13,"div",26),M(14," Stations "),m(),p(15,"div",27)(16,"div",19),O(17,Jl2,13,7,"div",28),m()()(),I(18,"p"),p(19,"div",25)(20,"div",26),M(21," Devices "),m(),p(22,"div",29)(23,"div",19),O(24,eu2,13,7,"div",28),m()()(),I(25,"p"),p(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 "),p(29,"a",30),M(30,"Github page."),m()()()()}if(2&e){const t=E();_(4),b("icon",t.reloadIcon),_(13),b("ngForOf",t.stations),_(7),b("ngForOf",t.devices)}}let nu2=(()=>{class e{constructor(t,i,r,a){this.modalService=t,this.pluginService=i,this.route=r,this.routerService=a,this.stations=[],this.devices=[],this.settingsIcon=b9,this.ignoreIcon=My,this.reloadIcon=M9,this.DeviceImage=O9,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(t=>{t||this.routerService.navigateByUrl("/login")}).catch(t=>{this.routerService.navigateByUrl("/login")})}updateStations(){this.stations=this.pluginService.getStations(),this.updateProperties()}updateDevices(){this.devices=this.pluginService.getDevices(),this.updateProperties()}updateProperties(){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();Array.isArray(i.ignoreStations)&&t.stations.forEach(r=>{r.ignored=void 0!==i.ignoreStations.find(a=>a===r.uniqueId)}),Array.isArray(i.ignoreDevices)&&t.devices.forEach(r=>{r.ignored=void 0!==i.ignoreDevices.find(a=>a===r.uniqueId)}),t.stations.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)}),t.devices.forEach(r=>{t.pluginService.getCachedName(r).then(a=>r.cachedName=a)})})()}openReloadModal(t){this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(t){return t===gt.ESC?"by pressing ESC":t===gt.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}getDevicePanelStyle(t){var i;let r="";return t.ignored&&(r+="opacity: 0.2;"),O9.get(t.type)?r+="padding:"+(null===(i=O9.get(t.type))||void 0===i?void 0:i.padding):r+="padding:20px",r}}return e.\u0275fac=function(t){return new(t||e)(L(_g),L(X2),L(de),L(X1))},e.\u0275cmp=o2({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(t,i){1&t&&(O(0,Yl2,18,0,"ng-template",null,0,F3),O(2,Ql2,10,0,"div",1),O(3,tu2,31,3,"div",1)),2&t&&(_(2),b("ngIf",0===i.stations.length&&0===i.devices.length),_(1),b("ngIf",0!==i.stations.length||0!==i.devices.length))},directives:[he,B1,Bm,rt],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}"]}),e})(),iu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Change username, password and country"),m(),p(4,"a",3),M(5,"New Login"),m()()())},directives:[he],encapsulation:2}),e})();class y1{constructor(n){this.pluginService=n,this.config={},this.pluginService.getConfig().then(t=>{this.config=t}).catch(t=>console.log("Could not get config in config interpreter: "+t))}getCameraConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.cameras)?Promise.resolve(i.cameras.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}getStationConfig(n){var t=this;return L2(function*(){const i=yield t.pluginService.getConfig();return Array.isArray(i.stations)?Promise.resolve(i.stations.find(r=>r.serialNumber===n)):Promise.resolve(void 0)})()}updateConfig(n,t){var i=this;return L2(function*(){let r=yield i.pluginService.getConfig();if(t||(r=Object.assign(Object.assign({},r),n)),t&&!1===t.station){Array.isArray(r.cameras)||(r.cameras=[]);let a=-1;r.cameras.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.cameras[a]=Object.assign(Object.assign({},r.cameras[a]),n):r.cameras.push(Object.assign({serialNumber:t.uniqueId},n))}else if(t&&!0===t.station){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{o.serialNumber===t.uniqueId&&(a=s)}),a>=0?r.stations[a]=Object.assign(Object.assign({},r.stations[a]),n):r.stations.push(Object.assign({serialNumber:t.uniqueId},n))}i.pluginService.updateConfig(r)})()}}let ru2=(()=>{class e extends y1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-polling-interval-minutes"]],features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Polling Interval"),m(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),p(7,"div",5)(8,"span",6),M(9,"minutes"),m()()()()(),p(10,"small")(11,"i"),M(12," Time in minutes before polling the eufy cloud for updated device information (set to 0 for no polling). "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[w6,Ne,M1,h1],encapsulation:2}),e})(),au2=(()=>{class e extends y1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-livestream-duration-seconds"]],features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Maximum Livestream Duration"),m(),p(4,"div",2)(5,"div",3)(6,"input",4),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),p(7,"div",5)(8,"span",6),M(9,"seconds"),m()()()()(),p(10,"small")(11,"i"),M(12," Time in second before ending the livestream automatically (longer livestreams imply shorter batterylife) "),m()()()),2&t&&(_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[w6,Ne,M1,h1],encapsulation:2}),e})(),ou2=(()=>{class e extends y1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-enable-detailed-logging"]],features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Debug Mode"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),p(6,"small")(7,"i"),M(8," This will output more information to the homebridge logs. This helps the plugin team to understand what's going on. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[d3,M1,h1],encapsulation:2}),e})(),su2=(()=>{class e extends y1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-omit-log-files"]],features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Don't store log files"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(6,"small")(7,"i"),M(8," This setting prevents log files to be stored to disk. If enabled, log messages will only be written to the Homebridge UI log window. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})(),cu2=(()=>{class e extends y1{constructor(t){super(t),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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-clean-cache"]],features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Clean cache automatically"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.model=a})("change",function(){return i.update()}),m()()(),p(6,"small")(7,"i"),M(8," When enabled, you let the plugin clean accessory when removed from the Eufy app. "),m()()()),2&t&&(_(5),b("ngModel",i.model))},directives:[d3,M1,h1],encapsulation:2}),e})();function lu2(e,n){1&e&&(p(0,"span"),M(1,"These settings will only apply for this station. The global mappings can be found in the plugin settings."),m())}function uu2(e,n){1&e&&(p(0,"option",6),M(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function fu2(e,n){1&e&&(p(0,"option",6),M(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function Cu2(e,n){1&e&&(p(0,"option",6),M(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}function du2(e,n){1&e&&(p(0,"option",6),M(1,"Use global setting"),m()),2&e&&b("ngValue",void 0)}let hu2=(()=>{class e extends y1{constructor(t){super(t),this.hkHome=void 0,this.hkAway=void 0,this.hkNight=void 0,this.hkOff=void 0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){const i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();i&&Object.prototype.hasOwnProperty.call(i,"hkHome")?t.hkHome=i.hkHome:t.accessory||(t.hkHome=1),i&&Object.prototype.hasOwnProperty.call(i,"hkAway")?t.hkAway=i.hkAway:t.accessory||(t.hkAway=0),i&&Object.prototype.hasOwnProperty.call(i,"hkNight")?t.hkNight=i.hkNight:t.accessory||(t.hkNight=3),i&&Object.prototype.hasOwnProperty.call(i,"hkOff")?t.hkOff=i.hkOff:t.accessory||(t.hkOff=63)})()}update(){var t=this;return L2(function*(){let i=t.accessory?yield t.getStationConfig(t.accessory.uniqueId):yield t.pluginService.getConfig();void 0===i&&(i={}),void 0===t.hkHome&&Object.prototype.hasOwnProperty.call(i,"hkHome")?delete i.hkHome:i.hkHome=t.hkHome,void 0===t.hkAway&&Object.prototype.hasOwnProperty.call(i,"hkAway")?delete i.hkAway:i.hkAway=t.hkAway,void 0===t.hkNight&&Object.prototype.hasOwnProperty.call(i,"hkNight")?delete i.hkNight:i.hkNight=t.hkNight,void 0===t.hkOff&&Object.prototype.hasOwnProperty.call(i,"hkOff")?delete i.hkOff:i.hkOff=t.hkOff;let r=yield t.pluginService.getConfig();if(t.accessory){Array.isArray(r.stations)||(r.stations=[]);let a=-1;r.stations.forEach((o,s)=>{var c;o.serialNumber===(null===(c=t.accessory)||void 0===c?void 0:c.uniqueId)&&(a=s)}),a>=0?r.stations[a]=i:(i.serialNumber=t.accessory.uniqueId,r.stations.push(i))}else r=i;t.pluginService.updateConfig(r)})()}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-guard-modes-mapping"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"span"),M(2,"Change how each mode in the HomeKit security system is mapped to the modes in the Eufy App."),m(),I(3,"p"),O(4,lu2,2,0,"span",1),I(5,"p"),p(6,"div",2)(7,"label",3),M(8,"HomeKit Home"),m(),p(9,"select",4),A("ngModelChange",function(a){return i.hkHome=a})("change",function(){return i.update()}),O(10,uu2,2,1,"option",5),p(11,"option",6),M(12,"Eufy Home"),m(),p(13,"option",6),M(14,"Eufy Away"),m(),p(15,"option",6),M(16,"Eufy Schedule"),m(),p(17,"option",6),M(18,"Eufy Custom 1 (Night)"),m(),p(19,"option",6),M(20,"Eufy Custom 2"),m(),p(21,"option",6),M(22,"Eufy Custom 3"),m(),p(23,"option",6),M(24,"Eufy Geofencing"),m(),p(25,"option",6),M(26,"Eufy Disarmed"),m()()(),p(27,"div",2)(28,"label",7),M(29,"HomeKit Away"),m(),p(30,"select",8),A("ngModelChange",function(a){return i.hkAway=a})("change",function(){return i.update()}),O(31,fu2,2,1,"option",5),p(32,"option",6),M(33,"Eufy Home"),m(),p(34,"option",6),M(35,"Eufy Away"),m(),p(36,"option",6),M(37,"Eufy Schedule"),m(),p(38,"option",6),M(39,"Eufy Custom 1 (Night)"),m(),p(40,"option",6),M(41,"Eufy Custom 2"),m(),p(42,"option",6),M(43,"Eufy Custom 3"),m(),p(44,"option",6),M(45,"Eufy Geofencing"),m(),p(46,"option",6),M(47,"Eufy Disarmed"),m()()(),p(48,"div",2)(49,"label",9),M(50,"HomeKit Night"),m(),p(51,"select",10),A("ngModelChange",function(a){return i.hkNight=a})("change",function(){return i.update()}),O(52,Cu2,2,1,"option",5),p(53,"option",6),M(54,"Eufy Home"),m(),p(55,"option",6),M(56,"Eufy Away"),m(),p(57,"option",6),M(58,"Eufy Schedule"),m(),p(59,"option",6),M(60,"Eufy Custom 1 (Night)"),m(),p(61,"option",6),M(62,"Eufy Custom 2"),m(),p(63,"option",6),M(64,"Eufy Custom 3"),m(),p(65,"option",6),M(66,"Eufy Geofencing"),m(),p(67,"option",6),M(68,"Eufy Disarmed"),m()()(),p(69,"div",2)(70,"label",11),M(71,"HomeKit Off"),m(),p(72,"select",12),A("ngModelChange",function(a){return i.hkOff=a})("change",function(){return i.update()}),O(73,du2,2,1,"option",5),p(74,"option",6),M(75,"Eufy Home"),m(),p(76,"option",6),M(77,"Eufy Away"),m(),p(78,"option",6),M(79,"Eufy Schedule"),m(),p(80,"option",6),M(81,"Eufy Custom 1 (Night)"),m(),p(82,"option",6),M(83,"Eufy Custom 2"),m(),p(84,"option",6),M(85,"Eufy Custom 3"),m(),p(86,"option",6),M(87,"Eufy Geofencing"),m(),p(88,"option",6),M(89,"Eufy Disarmed"),m()()()()),2&t&&(_(4),b("ngIf",i.accessory),_(5),b("ngModel",i.hkHome),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkAway),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkNight),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63),_(5),b("ngModel",i.hkOff),_(1),b("ngIf",i.accessory),_(1),b("ngValue",1),_(2),b("ngValue",0),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngValue",4),_(2),b("ngValue",5),_(2),b("ngValue",47),_(2),b("ngValue",63))},directives:[B1,ie,M1,h1,ot,st],encapsulation:2}),e})();var pu2=r1(172);function gu2(e,n){if(1&e&&(p(0,"div",7),M(1),m()),2&e){const t=E();_(1),X3(" ",t.failureMessage," ")}}function mu2(e,n){1&e&&I(0,"span",10)}function vu2(e,n){1&e&&(p(0,"span"),M(1,"Download Logs"),m())}function _u2(e,n){1&e&&(p(0,"span"),M(1," Generating Log File..."),m())}function Mu2(e,n){if(1&e){const t=H1();p(0,"button",8),A("click",function(){return W(t),E().downloadLogs()}),O(1,mu2,1,0,"span",9),O(2,vu2,2,0,"span",6),O(3,_u2,2,0,"span",6),m()}if(2&e){const t=E();j("disabled",!!t.isDownloading||null),_(1),b("ngIf",t.isDownloading),_(1),b("ngIf",!t.isDownloading),_(1),b("ngIf",t.isDownloading)}}function yu2(e,n){if(1&e){const t=H1();p(0,"a",11),A("click",function(){return W(t),E().openLink()}),p(1,"span"),M(2,"Download Logs"),m()()}}function bu2(e,n){if(1&e&&(p(0,"small")(1,"i"),M(2),m()()),2&e){const t=E();_(2),X3(" ",t.downloadMessage," ")}}function Lu2(e,n){1&e&&(p(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."),I(3,"br"),p(4,"b"),M(5,"Please make sure that you have pop-ups allowed for this site. If you're not sure, maybe this "),p(6,"a",12),M(7,"site"),m(),M(8," can help."),m()()())}let Vu2=(()=>{class e{constructor(t,i){this.router=t,this.zone=i,this.failed=!1,this.isDownloading=!1,this.hasDownloaded=!1,this.failureMessage="",this.logFileLocation=""}ngOnInit(){this.routeSub=this.router.events.subscribe(t=>{t instanceof K0&&""!==this.logFileLocation&&(console.log("revoke log zip file blob location url."),window.URL.revokeObjectURL(this.logFileLocation),this.logFileLocation="")}),window.homebridge.addEventListener("downloadLogsFileCount",t=>{this.updateDownloadMessage(`Compressing ${t.data.numberOfFiles} log files...`)})}downloadLogs(){var t=this;return L2(function*(){try{t.isDownloading=!0;const i=yield window.homebridge.request("/downloadLogs"),r=pu2.lW.from(i.data),a=new File([r],"logs.zip",{type:"application/zip"}),o=window.URL.createObjectURL(a);t.logFileLocation=o,window.open(t.logFileLocation),t.updateDownloadMessage(void 0),t.hasDownloaded=!0}catch(i){console.log(i);const r=i;t.failed=!0,t.updateDownloadMessage(void 0),t.failureMessage=`Generating of compressed logs.zip file did not complete: ${r.message}`}finally{t.isDownloading=!1}})()}openLink(){window.open(this.logFileLocation)}updateDownloadMessage(t){this.zone.run(()=>{this.downloadMessage=t})}}return e.\u0275fac=function(t){return new(t||e)(L(X1),L(P2))},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"div",0),O(1,gu2,2,1,"div",1),p(2,"div",2)(3,"span",3),M(4,"Download Logs"),m(),O(5,Mu2,4,4,"button",4),O(6,yu2,3,0,"a",5),m(),O(7,bu2,3,1,"small",6),O(8,Lu2,9,0,"small",6),m()),2&t&&(_(1),b("ngIf",i.failed),_(4),b("ngIf",!i.hasDownloaded),_(1),b("ngIf",i.hasDownloaded),_(1),b("ngIf",i.downloadMessage),_(1),b("ngIf",i.hasDownloaded))},directives:[B1],encapsulation:2}),e})(),Hu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span",2),M(3,"Reset Plugin"),m(),p(4,"a",3),M(5,"Remove everything"),m()(),p(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. "),m()()())},directives:[he],encapsulation:2}),e})(),wu2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"a",0),M(1,"Back to Devices List"),m(),p(2,"div",1)(3,"div",2),M(4," Advanced Settings "),m(),p(5,"div",3),I(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"),m()())},directives:[he,iu2,ru2,au2,ou2,su2,cu2,hu2,Vu2,Hu2],encapsulation:2}),e})(),vw=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){if(t.config=yield t.pluginService.getConfig(),t.accessory){const i=t.accessory.station?"ignoreStations":"ignoreDevices";Array.isArray(t.config[i])&&(t.value=void 0!==t.config[i].find(r=>r===t.accessory.uniqueId))}})()}update(){var t=this;return L2(function*(){if(!t.accessory)return;const i=t.accessory.station?"ignoreStations":"ignoreDevices";t.config=yield t.pluginService.getConfig(),t.value?Array.isArray(t.config[i])&&!t.config[i].find(r=>r===t.accessory.uniqueId)?t.config[i].push(t.accessory.uniqueId):Array.isArray(t.config[i])||(t.config[i]=[t.accessory.uniqueId]):Array.isArray(t.config[i])&&void 0!==t.config[i].find(r=>r===t.accessory.uniqueId)&&(t.config[i]=t.config[i].filter(r=>r!==t.accessory.uniqueId)),t.pluginService.updateConfig(t.config)})()}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-ignore-accessory"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()()()),2&t&&(_(3),X3("Ignore ",i.accessory&&i.accessory.station?"Station":"Device",""),_(2),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})();function Du2(e,n){1&e&&(p(0,"small")(1,"i"),M(2," This option is disabled since doorbells are handled always as cameras. "),m()())}function Su2(e,n){1&e&&(p(0,"small")(1,"i"),M(2," Cameras are handled as Motion Sensor by default, switch this setting to use as Camera "),m()())}let Nu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.disabled=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;t.accessory&&En.isDoorbell(t.accessory.type)&&(t.value=!0,t.disabled=!0,t.update());const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableCamera")&&(t.value=r.enableCamera)})()}update(){this.updateConfig({enableCamera:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-enable-camera"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Operation Mode"),m(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),p(6,"option",4),M(7,"Motion Sensor"),m(),p(8,"option",5),M(9,"Camera"),m()()()(),O(10,Du2,3,0,"small",6),O(11,Su2,3,0,"small",6),m()),2&t&&(_(5),b("ngModel",i.value),j("disabled",!!i.disabled||null),_(5),b("ngIf",i.disabled),_(1),b("ngIf",!i.disabled))},directives:[ie,M1,h1,ot,st,B1],encapsulation:2}),e})(),zu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"useCachedLocalLivestream")&&(t.value=r.useCachedLocalLivestream)})()}update(){this.updateConfig({useCachedLocalLivestream:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-livestream-cache"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use Local Livestream Caching"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(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)."),m(),I(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. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})();function xu2(e,n){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let Eu2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.talkbackIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.value=r.rtsp),r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.talkbackIsEnabled=r.talkback)})()}update(){this.updateConfig({rtsp:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-rtsp-streaming"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Use RTSP streaming"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),O(6,xu2,2,0,"div",4),p(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!"),I(10,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.talkbackIsEnabled&&i.value))},directives:[d3,M1,h1,B1],encapsulation:2}),e})(),Au2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.samplerate=0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");if(r&&r.videoConfig&&Object.prototype.hasOwnProperty.call(r.videoConfig,"audio")&&(t.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)&&(t.samplerate=a)}})()}update(){var t=this;return L2(function*(){var i,r;if(!t.accessory)return;let a=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");a||(a={serialNumber:null===(r=t.accessory)||void 0===r?void 0:r.uniqueId,videoConfig:{}}),Object.prototype.hasOwnProperty.call(a,"videoConfig")||(a.videoConfig={}),a.videoConfig.audio=t.value,a.videoConfig.audioSampleRate=t.samplerate,t.updateConfig(a,t.accessory)})()}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-enable-audio"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Audio"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(6,"small")(7,"i"),M(8," Try to enable audio streaming for this device."),I(9,"br"),M(10," If you encounter problems try to disable this setting. "),m()(),I(11,"p"),p(12,"div",4)(13,"span"),M(14,"Force Audio Sample Rate"),m(),p(15,"div",5)(16,"select",6),A("ngModelChange",function(a){return i.samplerate=a})("change",function(){return i.update()}),p(17,"option",7),M(18,"Default Sample Rate"),m(),p(19,"option",7),M(20,"8 kHz"),m(),p(21,"option",7),M(22,"16 kHz"),m(),p(23,"option",7),M(24,"24 kHz"),m()()()()()),2&t&&(_(5),b("ngModel",i.value),_(11),b("ngModel",i.samplerate),j("disabled",!i.value||null),_(1),b("ngValue",0),_(2),b("ngValue",8),_(2),b("ngValue",16),_(2),b("ngValue",24))},directives:[d3,M1,h1,ie,ot,st],encapsulation:2}),e})();function Tu2(e,n){1&e&&(p(0,"div",5),M(1," Talkback will not work while 'RTSP Streaming' is enabled! "),m())}let ku2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1,this.rtspIsEnabled=!1}ngOnInit(){this.readValue(),this.pluginService.addEventListener("configChanged",()=>this.readValue())}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"talkback")&&(t.value=r.talkback),r&&Object.prototype.hasOwnProperty.call(r,"rtsp")&&(t.rtspIsEnabled=r.rtsp)})()}update(){this.updateConfig({talkback:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-talkback"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Enable Talkback (Two way communication)"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),O(6,Tu2,2,0,"div",4),p(7,"small")(8,"i"),M(9," Enables you to talk with someone infront of the camera while streaming. "),I(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."),I(12,"br"),m()()()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngIf",i.rtspIsEnabled&&i.value))},directives:[d3,M1,h1,B1],encapsulation:2}),e})(),Iu2=(()=>{class e extends y1{constructor(t){super(t),this.enableCameraButton=!0,this.enableMotionButton=!0}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"enableButton")&&(t.enableCameraButton=r.enableButton),r&&Object.prototype.hasOwnProperty.call(r,"motionButton")&&(t.enableMotionButton=r.motionButton)})()}update(){this.updateConfig({enableButton:this.enableCameraButton,motionButton:this.enableMotionButton},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-camera-buttons"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Display HomeKit button to switch camera on/off"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.enableCameraButton=a})("change",function(){return i.update()}),m()()(),p(6,"div",1)(7,"span"),M(8,"Display HomeKit button to switch motion detection on/off"),m(),p(9,"div",2)(10,"input",3),A("ngModelChange",function(a){return i.enableMotionButton=a})("change",function(){return i.update()}),m()()(),p(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 "),p(14,"a",4),M(15,"here"),m(),M(16," for more details. "),m()()()),2&t&&(_(5),b("ngModel",i.enableCameraButton),_(5),b("ngModel",i.enableMotionButton))},directives:[d3,M1,h1],encapsulation:2}),e})(),Ou2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"unbridge")&&(t.value=r.unbridge)})()}update(){this.updateConfig({unbridge:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-unbridge-accessory"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Unbridge Camera"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(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 "),p(9,"a",4),M(10,"here"),m(),M(11," for mor details. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})();function Ru2(e,n){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),m(),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."),I(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. "),I(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",6),M(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",7),M(15," Performance"),I(16,"br")(17,"fa-icon",7),M(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.minusIcon)}}function Pu2(e,n){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),m(),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."),I(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. "),I(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",8),M(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",6),M(15," Performance"),I(16,"br")(17,"fa-icon",7),M(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.mediumIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon)}}function Fu2(e,n){if(1&e&&(p(0,"small")(1,"i")(2,"b"),M(3,"Description:"),m(),M(4," The plugin will preferablly use cloud snapshots from eufy to fulfill snapshot requests as fast as possible."),I(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). "),I(7,"p")(8,"fa-icon",6),M(9," Up-to-date Snapshots (events)"),I(10,"br")(11,"fa-icon",7),M(12," Up-to-date Snapshots (HomeKit View)"),I(13,"br")(14,"fa-icon",6),M(15," Performance"),I(16,"br")(17,"fa-icon",6),M(18," Battery life"),I(19,"br"),m()()),2&e){const t=E();_(8),b("icon",t.plusIcon),_(3),b("icon",t.minusIcon),_(3),b("icon",t.plusIcon),_(3),b("icon",t.plusIcon)}}let Bu2=(()=>{class e extends y1{constructor(t){super(t),this.plusIcon=FM,this.minusIcon=IM,this.mediumIcon=mM,this.value=3}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"snapshotHandlingMethod")?t.value=r.snapshotHandlingMethod:r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap?1:3)})()}update(){this.updateConfig({snapshotHandlingMethod:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-snapshot-handling-method"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Snapshot Handling Method"),m(),p(4,"div",2)(5,"select",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),p(6,"option",4),M(7,"Force Refresh Snapshots"),m(),p(8,"option",4),M(9,"Balanced"),m(),p(10,"option",4),M(11,"Cloud Snapshots"),m()()()(),O(12,Ru2,20,4,"small",5),O(13,Pu2,20,4,"small",5),O(14,Fu2,20,4,"small",5),m()),2&t&&(_(5),b("ngModel",i.value),_(1),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",1===i.value),_(1),b("ngIf",2===i.value),_(1),b("ngIf",3===i.value))},directives:[ie,M1,h1,ot,st,B1,Bm],encapsulation:2}),e})(),Uu2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"immediateRingNotificationWithoutSnapshot")&&(t.value=r.immediateRingNotificationWithoutSnapshot)})()}update(){this.updateConfig({immediateRingNotificationWithoutSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-immediate-notification-on-ring"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Immediate Notification on ring events"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(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."),I(9,"br"),p(10,"b"),M(11,"This option however delivers most likely an empty (black) snapshot on those events!"),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})(),ju2=(()=>{class e extends y1{constructor(t){super(t),this.value=false}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"delayCameraSnapshot")&&(t.value=r.delayCameraSnapshot)})()}update(){this.updateConfig({delayCameraSnapshot:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-delay-camera-snapshots"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Night-Vision Improvement for camera snapshots"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(6,"small")(7,"i"),M(8," Force night vision on dark snapshots to improve the image."),I(9,"br"),p(10,"b"),M(11,"The snapshot request will be delayed by half a second if you enable this setting."),m()()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})(),Gu2=(()=>{class e extends y1{constructor(t){super(t),this.value=0,this.inputIsInvalid=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"refreshSnapshotIntervalMinutes")&&(t.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.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-periodic-snapshot-refresh"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Periodic Snapshot Refresh"),m(),p(4,"div",2)(5,"input",3),A("change",function(){return i.switchSetting()}),m()()(),p(6,"div",4)(7,"span"),M(8,"Refresh Interval"),m(),p(9,"div",5)(10,"div",6)(11,"input",7),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m(),p(12,"div",8)(13,"span",9),M(14,"minutes"),m()()()()(),p(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."),I(18,"br"),M(19," Best used with 'Cloud Snapshots' handling method."),I(20,"br"),M(21," Every setting below 5 minutes will be discarded due to performance reasons."),I(22,"br"),p(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."),m()()()()),2&t&&(_(5),j("checked",i.value>0||null),_(6),b("ngModel",i.value),j("class",i.inputIsInvalid?"form-control text-end is-invalid":"form-control text-end"))},directives:[w6,Ne,M1,h1],encapsulation:2}),e})(),$u2=(()=>{class e extends y1{constructor(t){super(t),this.value=!1}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"forcerefreshsnap")&&(t.value=r.forcerefreshsnap)})()}update(){this.updateConfig({forcerefreshsnap:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-force-refreshsnap"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"div",1)(2,"span"),M(3,"Force Refresh Snapshot (Deprecated)"),m(),p(4,"div",2)(5,"input",3),A("ngModelChange",function(a){return i.value=a})("change",function(){return i.update()}),m()()(),p(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)."),I(9,"br"),M(10," This option is only used if you have disabled enhanced snapshot handling. "),m()()()),2&t&&(_(5),b("ngModel",i.value))},directives:[d3,M1,h1],encapsulation:2}),e})();function Wu2(e,n){1&e&&(p(0,"span")(1,"b"),M(2,"Advanced Video Config"),m()())}function qu2(e,n){1&e&&(p(0,"button",4)(1,"span")(2,"b"),M(3,"Advanced Video Config"),m()()())}function Ku2(e,n){if(1&e&&(p(0,"div"),M(1),m()),2&e){const t=E(2);_(1),X3(" ",t.presetDescription," ")}}function Yu2(e,n){if(1&e){const t=H1();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. "),I(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."),I(3,"p"),p(4,"div",5)(5,"div",6)(6,"select",7),A("ngModelChange",function(r){return W(t),E().preset=r})("change",function(){return W(t),E().loadPreset()}),p(7,"option",8),M(8,"No Preset (default)"),m(),p(9,"option",8),M(10,"Copy"),m(),p(11,"option",8),M(12,"Performance"),m(),p(13,"option",8),M(14,"Custom"),m()()()(),O(15,Ku2,2,1,"div",9),I(16,"p"),p(17,"div",10)(18,"div",11)(19,"input",12),A("ngModelChange",function(r){return W(t),E().debug=r})("change",function(){return W(t),E().update()}),m()(),p(20,"span",13),M(21,"ffmpeg debug"),m()(),p(22,"div",10)(23,"div",11)(24,"input",12),A("ngModelChange",function(r){return W(t),E().useSeparateProcesses=r})("change",function(){return W(t),E().update()}),m()(),p(25,"span",13),M(26,"use separate processes for video and audio"),m()(),p(27,"div",10)(28,"div",11)(29,"input",12),A("ngModelChange",function(r){return W(t),E().readRate=r})("change",function(){return W(t),E().update()}),m()(),p(30,"span",13),M(31,"readRate"),m()(),p(32,"div",10)(33,"div",11)(34,"input",14),A("change",function(){W(t);const r=E();return r.vcodec=void 0===r.vcodec?"":void 0,r.update()}),m()(),p(35,"span",13),M(36,"vcodec"),m(),p(37,"input",15),A("ngModelChange",function(r){return W(t),E().vcodec=r})("change",function(){return W(t),E().update()}),m()(),p(38,"div",10)(39,"div",11)(40,"input",14),A("change",function(){W(t);const r=E();return r.acodec=void 0===r.acodec?"":void 0,r.update()}),m()(),p(41,"span",13),M(42,"acodec"),m(),p(43,"input",16),A("ngModelChange",function(r){return W(t),E().acodec=r})("change",function(){return W(t),E().update()}),m()(),p(44,"div",10)(45,"div",11)(46,"input",14),A("change",function(){W(t);const r=E();return r.videoFilter=void 0===r.videoFilter?"":void 0,r.update()}),m()(),p(47,"span",13),M(48,"videoFilter"),m(),p(49,"input",17),A("ngModelChange",function(r){return W(t),E().videoFilter=r})("change",function(){return W(t),E().update()}),m()(),p(50,"div",10)(51,"div",11)(52,"input",14),A("change",function(){W(t);const r=E();return r.encoderOptions=void 0===r.encoderOptions?"":void 0,r.update()}),m()(),p(53,"span",13),M(54,"encoderOptions"),m(),p(55,"input",18),A("ngModelChange",function(r){return W(t),E().encoderOptions=r})("change",function(){return W(t),E().update()}),m()(),p(56,"div",10)(57,"div",11)(58,"input",14),A("change",function(){W(t);const r=E();return r.probeSize=void 0===r.probeSize?0:void 0,r.update()}),m()(),p(59,"span",13),M(60,"probeSize"),m(),p(61,"input",19),A("ngModelChange",function(r){return W(t),E().probeSize=r})("change",function(){return W(t),E().update()}),m()(),p(62,"div",10)(63,"div",11)(64,"input",14),A("change",function(){W(t);const r=E();return r.analyzeDuration=void 0===r.analyzeDuration?0:void 0,r.update()}),m()(),p(65,"span",13),M(66,"analyzeDuration"),m(),p(67,"input",19),A("ngModelChange",function(r){return W(t),E().analyzeDuration=r})("change",function(){return W(t),E().update()}),m()(),p(68,"div",10)(69,"div",11)(70,"input",14),A("change",function(){W(t);const r=E();return r.maxStreams=void 0===r.maxStreams?0:void 0,r.update()}),m()(),p(71,"span",13),M(72,"maxStreams"),m(),p(73,"input",19),A("ngModelChange",function(r){return W(t),E().maxStreams=r})("change",function(){return W(t),E().update()}),m()(),p(74,"div",10)(75,"div",11)(76,"input",14),A("change",function(){W(t);const r=E();return r.maxWidth=void 0===r.maxWidth?0:void 0,r.update()}),m()(),p(77,"span",13),M(78,"maxWidth"),m(),p(79,"input",19),A("ngModelChange",function(r){return W(t),E().maxWidth=r})("change",function(){return W(t),E().update()}),m()(),p(80,"div",10)(81,"div",11)(82,"input",14),A("change",function(){W(t);const r=E();return r.maxHeight=void 0===r.maxHeight?0:void 0,r.update()}),m()(),p(83,"span",13),M(84,"maxHeight"),m(),p(85,"input",19),A("ngModelChange",function(r){return W(t),E().maxHeight=r})("change",function(){return W(t),E().update()}),m()(),p(86,"div",10)(87,"div",11)(88,"input",14),A("change",function(){W(t);const r=E();return r.maxFPS=void 0===r.maxFPS?0:void 0,r.update()}),m()(),p(89,"span",13),M(90,"fps"),m(),p(91,"input",19),A("ngModelChange",function(r){return W(t),E().maxFPS=r})("change",function(){return W(t),E().update()}),m()(),p(92,"div",10)(93,"div",11)(94,"input",14),A("change",function(){W(t);const r=E();return r.maxBitrate=void 0===r.maxBitrate?0:void 0,r.update()}),m()(),p(95,"span",13),M(96,"bitrate"),m(),p(97,"input",19),A("ngModelChange",function(r){return W(t),E().maxBitrate=r})("change",function(){return W(t),E().update()}),m()()}if(2&e){const t=E();_(6),b("ngModel",t.preset),_(1),b("ngValue",0),_(2),b("ngValue",1),_(2),b("ngValue",2),_(2),b("ngValue",3),_(2),b("ngIf",t.presetDescription),_(4),b("ngModel",t.debug),_(5),b("ngModel",t.useSeparateProcesses),_(5),b("ngModel",t.readRate),_(5),b("checked",void 0!==t.vcodec||null),_(3),b("ngModel",t.vcodec),j("disabled",void 0===t.vcodec||null),_(3),b("checked",void 0!==t.acodec||null),_(3),b("ngModel",t.acodec),j("disabled",void 0===t.acodec||null),_(3),b("checked",void 0!==t.videoFilter||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.videoFilter),j("disabled",void 0===t.videoFilter||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.encoderOptions||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.encoderOptions),j("disabled",void 0===t.encoderOptions||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.probeSize||null),_(3),b("ngModel",t.probeSize),j("disabled",void 0===t.probeSize||null),_(3),b("checked",void 0!==t.analyzeDuration||null),_(3),b("ngModel",t.analyzeDuration),j("disabled",void 0===t.analyzeDuration||null),_(3),b("checked",void 0!==t.maxStreams||null),_(3),b("ngModel",t.maxStreams),j("disabled",void 0===t.maxStreams||null),_(3),b("checked",void 0!==t.maxWidth||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxWidth),j("disabled",void 0===t.maxWidth||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxHeight||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxHeight),j("disabled",void 0===t.maxHeight||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxFPS||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxFPS),j("disabled",void 0===t.maxFPS||"copy"===t.vcodec||null),_(3),b("checked",void 0!==t.maxBitrate||null),j("disabled","copy"===t.vcodec||null),_(1),j("style","copy"===t.vcodec?"text-decoration: line-through; color: lightgray;":null,Q4),_(2),b("ngModel",t.maxBitrate),j("disabled",void 0===t.maxBitrate||"copy"===t.vcodec||null)}}let Qu2=(()=>{class e extends y1{constructor(t){super(t),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 t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")&&Object.entries(r.videoConfig).forEach(([a,o])=>{t[a]=o}),t.updatePreset()})()}loadPreset(){0===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=void 0,this.presetDescription=void 0):1===this.preset?(this.readRate=void 0,this.vcodec="copy",this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=void 0,this.maxHeight=void 0,this.maxFPS=void 0,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="Most eufy cams support the same codec that HomeKit requests. You can try and 'forward' the stream directly without encoding it with ffmpeg. This can increase performance and quality drastically."):2===this.preset?(this.readRate=void 0,this.vcodec=void 0,this.acodec=void 0,this.videoFilter=void 0,this.encoderOptions=void 0,this.probeSize=void 0,this.analyzeDuration=void 0,this.maxStreams=void 0,this.maxWidth=640,this.maxHeight=480,this.maxFPS=15,this.maxBitrate=void 0,this.useSeparateProcesses=!0,this.presetDescription="This preset tries to increase performance by reducing the quality of the stream. This can work for low performance hardware like raspberry pis."):this.presetDescription=void 0,this.update()}updatePreset(){let t=3;!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&void 0===this.useSeparateProcesses&&(t=0),!this.readRate&&"copy"===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&void 0===this.maxWidth&&void 0===this.maxHeight&&void 0===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=1),!this.readRate&&void 0===this.vcodec&&void 0===this.acodec&&void 0===this.videoFilter&&void 0===this.encoderOptions&&void 0===this.probeSize&&void 0===this.analyzeDuration&&void 0===this.maxStreams&&640===this.maxWidth&&480===this.maxHeight&&15===this.maxFPS&&void 0===this.maxBitrate&&!0===this.useSeparateProcesses&&(t=2),t!==this.preset&&(this.preset=t)}update(){var t=this;return L2(function*(){var i;const r=yield t.getCameraConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||""),a=r&&Object.prototype.hasOwnProperty.call(r,"videoConfig")?r.videoConfig:{},o={};Object.prototype.hasOwnProperty.call(a,"audio")&&(o.audio=a.audio),t.debug&&(o.debug=t.debug),t.readRate&&(o.readRate=t.readRate),t.vcodec&&""!==t.vcodec&&(o.vcodec=t.vcodec),t.acodec&&""!==t.acodec&&(o.acodec=t.acodec),t.videoFilter&&""!==t.videoFilter&&(o.videoFilter=t.videoFilter),t.encoderOptions&&""!==t.encoderOptions&&(o.encoderOptions=t.encoderOptions),void 0!==t.probeSize&&(o.probeSize=t.probeSize),void 0!==t.analyzeDuration&&(o.analyzeDuration=t.analyzeDuration),void 0!==t.maxStreams&&(o.maxStreams=t.maxStreams),void 0!==t.maxWidth&&(o.maxWidth=t.maxWidth),void 0!==t.maxHeight&&(o.maxHeight=t.maxHeight),void 0!==t.maxFPS&&(o.maxFPS=t.maxFPS),void 0!==t.maxBitrate&&(o.maxBitrate=t.maxBitrate),t.useSeparateProcesses&&(o.useSeparateProcesses=t.useSeparateProcesses),t.updateConfig({videoConfig:o},t.accessory),t.updatePreset()})()}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-advanced-videoconfig"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"ngb-accordion",null,0)(2,"ngb-panel"),O(3,Wu2,3,0,"ng-template",1),O(4,qu2,4,0,"ng-template",2),O(5,Yu2,98,54,"ng-template",3),m()())},directives:[O7,V0,k7,L0,R7,I7,ie,M1,h1,ot,st,B1,d3,Ne,w6],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}"]}),e})();function Zu2(e,n){1&e&&I(0,"hr")}function Ju2(e,n){1&e&&I(0,"app-rtsp-streaming",6),2&e&&b("accessory",E(3).accessory)}function Xu2(e,n){1&e&&I(0,"hr")}function ef2(e,n){1&e&&I(0,"app-talkback",6),2&e&&b("accessory",E(3).accessory)}function tf2(e,n){if(1&e&&(p(0,"div"),I(1,"hr")(2,"app-enable-camera",6)(3,"hr")(4,"app-livestream-cache",6),O(5,Zu2,1,0,"hr",2),O(6,Ju2,1,1,"app-rtsp-streaming",7),I(7,"hr")(8,"app-enable-audio",6),O(9,Xu2,1,0,"hr",2),O(10,ef2,1,1,"app-talkback",7),m()),2&e){const t=E(2);_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsRTSP),_(1),b("ngIf",t.supportsRTSP),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.supportsTalkback),_(1),b("ngIf",t.supportsTalkback)}}function nf2(e,n){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Camera Settings"),m(),M(4," for "),p(5,"i"),M(6),m()(),p(7,"div",5),I(8,"app-ignore-accessory",6),O(9,tf2,11,7,"div",2),m()()),2&e){const t=E();_(6),g6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isCamera)}}function if2(e,n){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"HomeKit Behaviour"),m(),M(4," for "),p(5,"i"),M(6),m()(),p(7,"div",5),I(8,"app-camera-buttons",6)(9,"hr")(10,"app-unbridge-accessory",6),m()()),2&e){const t=E(2);_(6),g6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function rf2(e,n){1&e&&I(0,"hr")}function af2(e,n){1&e&&I(0,"app-immediate-notification-on-ring",6),2&e&&b("accessory",E(3).accessory)}function of2(e,n){if(1&e&&(p(0,"div"),I(1,"app-force-refreshsnap",6),m()),2&e){const t=E(3);_(1),b("accessory",t.accessory)}}function sf2(e,n){if(1&e&&(p(0,"div",3)(1,"div",4)(2,"b"),M(3,"Snapshot Behaviour"),m(),M(4," for "),p(5,"i"),M(6),m()(),p(7,"div",5),I(8,"app-snapshot-handling-method",6),O(9,rf2,1,0,"hr",2),O(10,af2,1,1,"app-immediate-notification-on-ring",7),I(11,"hr")(12,"app-delay-camera-snapshots",6)(13,"hr")(14,"app-periodic-snapshot-refresh",6),O(15,of2,2,1,"div",2),m()()),2&e){const t=E(2);_(6),g6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(1),b("ngIf",t.isDoorbell),_(1),b("ngIf",t.isDoorbell),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory),_(1),b("ngIf",!t.showEnhancedSnapshotBehaviour)}}function cf2(e,n){if(1&e&&(p(0,"div"),I(1,"p"),O(2,if2,11,4,"div",1),I(3,"p"),O(4,sf2,16,8,"div",1),I(5,"p")(6,"app-advanced-videoconfig",6),m()),2&e){const t=E();_(2),b("ngIf",t.accessory),_(2),b("ngIf",t.accessory),_(2),b("accessory",t.accessory)}}let lf2=(()=>{class e extends y1{constructor(t,i){super(t),this.route=i,this.showEnhancedSnapshotBehaviour=!0,this.isDoorbell=!1,this.isCamera=!1,this.supportsRTSP=!1,this.supportsTalkback=!1}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getDevice(t),this.accessory&&(this.isDoorbell=En.isDoorbell(this.accessory.type),this.isCamera=En.isCamera(this.accessory.type),this.supportsRTSP=En.supportsRTSP(this.accessory.type),this.supportsTalkback=En.supportsTalkback(this.accessory.type),this.supportsRTSP||this.updateConfig({rtsp:!1},this.accessory),this.supportsTalkback||this.updateConfig({talkback:!1},this.accessory))}updateSnapshotView(t){this.showEnhancedSnapshotBehaviour=t}}return e.\u0275fac=function(t){return new(t||e)(L(X2),L(de))},e.\u0275cmp=o2({type:e,selectors:[["app-camera-config-options"]],features:[J],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(t,i){1&t&&(p(0,"a",0),M(1,"Back to Devices List"),m(),O(2,nf2,10,4,"div",1),O(3,cf2,7,3,"div",2)),2&t&&(_(2),b("ngIf",i.accessory),_(1),b("ngIf",i.isCamera))},directives:[he,B1,vw,Nu2,zu2,Eu2,Au2,ku2,Iu2,Ou2,Bu2,Uu2,ju2,Gu2,$u2,Qu2],encapsulation:2}),e})();var An=(()=>{return(e=An||(An={}))[e.UNKNOWN=0]="UNKNOWN",e[e.CAPTCHA=1]="CAPTCHA",e[e.TFA=2]="TFA",e[e.TIMEOUT=3]="TIMEOUT",An;var e})();const uf2={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 ff2=(()=>{class e{constructor(t){this.pluginService=t}getCredentials(){var t=this;return L2(function*(){try{const i=yield t.pluginService.getConfig();return i.username&&i.password?Promise.resolve({username:i.username,password:i.password,country:i.country?i.country:"US",deviceName:i.deviceName}):Promise.reject("no full credentials in config")}catch(i){return Promise.reject("no config")}})()}login(t){return L2(function*(){try{const i=yield window.homebridge.request("/login",t);return Promise.resolve(i)}catch(i){return Promise.reject(i)}})()}updateConfigCredentials(t){var i=this;return L2(function*(){let r={};try{r=yield i.pluginService.getConfig()}catch(a){console.log("Could not get credentials from config: "+a)}r.username=t.username,r.password=t.password,r.country=t.country,r.deviceName=t.deviceName,yield i.pluginService.updateConfig(r,!0)})()}}return e.\u0275fac=function(t){return new(t||e)(q(X2))},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Cf2(e,n){1&e&&(It(),M(0," If you login here the new connection might interfere with any already established connection that was made by the eufy plugin itself."),Ot(),I(1,"p"),p(2,"i"),M(3,"So even if you do not change any settings we recommened that you restart the plugin after you've connected to the eufy cloud here."),m())}function df2(e,n){if(1&e){const t=H1();p(0,"p",10)(1,"ngb-alert",11),A("closed",function(){return W(t),E().resetLoginFailed()}),It(),p(2,"svg",12),I(3,"use",13),m(),Ot(),p(4,"strong"),M(5,"Login was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}function hf2(e,n){if(1&e&&(p(0,"div",32),It(),p(1,"svg",33),I(2,"use",34),m(),Ot(),p(3,"div"),M(4," Please make sure to restart plugin after you're done. "),p(5,"u",35),M(6," Tell me why... "),m()()()),2&e){E(2);const t=R3(6);_(5),b("autoClose","outside")("ngbPopover",t)}}function pf2(e,n){1&e&&(M(0,"You can leave this field blank."),I(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 "),p(3,"a",36),M(4,"this disussion"),m(),M(5," to learn more."))}function gf2(e,n){if(1&e&&(p(0,"option"),M(1),m()),2&e){const t=n.$implicit,i=E(2);j("value",t.short)("selected",i.credentials.country===t.short||null),_(1),X3("",t.long," ")}}function mf2(e,n){1&e&&I(0,"span",37)}function vf2(e,n){1&e&&(p(0,"span"),M(1,"..."),m())}function _f2(e,n){if(1&e){const t=H1();p(0,"div"),O(1,hf2,7,2,"div",14),p(2,"div",15)(3,"input",16),A("ngModelChange",function(r){return W(t),E().credentials.username=r}),m(),p(4,"label",17),M(5,"Email address"),m()(),I(6,"p"),p(7,"div",15)(8,"input",18),A("ngModelChange",function(r){return W(t),E().credentials.password=r}),m(),p(9,"label",19),M(10,"Password"),m()(),I(11,"p"),p(12,"div",15),O(13,pf2,6,0,"ng-template",null,20,F3),p(15,"input",21),A("ngModelChange",function(r){return W(t),E().credentials.deviceName=r}),m(),p(16,"label",22),M(17,"Device Name"),m()(),p(18,"div",23)(19,"div",24)(20,"select",25),A("ngModelChange",function(r){return W(t),E().credentials.country=r}),O(21,gf2,2,3,"option",26),m(),p(22,"small")(23,"i"),M(24," Make sure to use the same country that you use to login with the eufy app. "),m()()(),I(25,"span",27),p(26,"div",28)(27,"button",29),A("click",function(){return W(t),E().login()}),O(28,mf2,1,0,"span",30),M(29," Login "),O(30,vf2,2,0,"span",9),m(),p(31,"button",31),A("click",function(){return W(t),E().cancelLogin()}),M(32," Cancel "),m()()()()}if(2&e){const t=R3(14),i=E();_(1),b("ngIf",!i.firstLoginAssumed),_(2),b("ngModel",i.credentials.username),j("class",i.emailIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),_(5),b("ngModel",i.credentials.password),j("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),_(7),b("ngModel",i.credentials.deviceName)("ngbTooltip",t)("closeDelay",2500),j("class",i.passwordIsValid?"form-control":"form-control is-invalid")("disabled",!!i.loginInProgress||null),_(5),b("ngModel",i.credentials.country),j("disabled",!!i.loginInProgress||null),_(1),b("ngForOf",i.countries),_(6),j("disabled",!!i.loginInProgress||null),_(1),b("ngIf",i.loginInProgress),_(2),b("ngIf",i.loginInProgress),_(1),j("disabled",!!i.loginInProgress||null)}}function Mf2(e,n){1&e&&I(0,"span",37)}function yf2(e,n){1&e&&(p(0,"span"),M(1,"..."),m())}function bf2(e,n){if(1&e){const t=H1();p(0,"div")(1,"div",38),M(2,"You should have gotten a 2FA verification code from eufy in your mail. Please enter this below."),m(),p(3,"div",6)(4,"div",39)(5,"input",40),A("ngModelChange",function(r){return W(t),E().otp=r}),m(),p(6,"label",41),M(7,"2FA Code"),m()()(),p(8,"div",42)(9,"div",43)(10,"button",44),A("click",function(){return W(t),E().login()}),O(11,Mf2,1,0,"span",30),M(12," Verify "),O(13,yf2,2,0,"span",9),m()()(),p(14,"div",6)(15,"div",43)(16,"button",31),A("click",function(){return W(t),E().cancelLogin()}),M(17," Cancel "),m()()()()}if(2&e){const t=E();_(5),b("ngModel",t.otp),j("class",t.otpIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}function Lf2(e,n){1&e&&I(0,"span",37)}function Vf2(e,n){1&e&&(p(0,"span"),M(1,"..."),m())}function Hf2(e,n){if(1&e){const t=H1();p(0,"div")(1,"div",38),M(2,"Please enter the captcha below."),m(),p(3,"div",42),I(4,"img",45),m(),p(5,"div",6)(6,"div",39)(7,"input",40),A("ngModelChange",function(r){return W(t),E().captcha=r}),m(),p(8,"label",41),M(9,"Captcha"),m()()(),p(10,"div",42)(11,"div",43)(12,"button",44),A("click",function(){return W(t),E().login()}),O(13,Lf2,1,0,"span",30),M(14," Verify "),O(15,Vf2,2,0,"span",9),m()()(),p(16,"div",6)(17,"div",43)(18,"button",31),A("click",function(){return W(t),E().cancelLogin()}),M(19," Cancel "),m()()()()}if(2&e){const t=E();_(4),b("src",t.captchaImageData,Qe),_(3),b("ngModel",t.captcha),j("class",t.captchaIsValid?"form-control":"form-control is-invalid")("disabled",!!t.loginInProgress||null),_(5),j("disabled",!!t.loginInProgress||null),_(1),b("ngIf",t.loginInProgress),_(2),b("ngIf",t.loginInProgress),_(3),j("disabled",!!t.loginInProgress||null)}}var S3=(()=>{return(e=S3||(S3={}))[e.LOGIN=1]="LOGIN",e[e.TFA=2]="TFA",e[e.CAPTCHA=3]="CAPTCHA",S3;var e})();let wf2=(()=>{class e{constructor(t,i){this.loginService=t,this.routerService=i,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=S3.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(t=>this.credentials=t).catch(t=>{this.firstLoginAssumed=!0,console.log("Could not get config in login component: "+t)})}fillCountryArray(){Object.entries(uf2).forEach(([t,i])=>{this.countries.push({short:t,long:i})})}login(){this.inputIsInvalid()||(this.resetLoginFailed(),this.loginInProgress=!0,this.loginStep===S3.LOGIN&&this.loginWithCredentials(),this.loginStep===S3.TFA&&this.loginWithTFA(),this.loginStep===S3.CAPTCHA&&this.loginWithCaptcha())}loginWithCredentials(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login(t.credentials)}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithTFA(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({verifyCode:t.otp})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}loginWithCaptcha(){var t=this;return L2(function*(){let i;try{i=yield t.loginService.login({captcha:{captchaCode:t.captcha,captchaId:t.captchaId}})}catch(r){console.log("login error: "+r)}t.evaluateLoginResult(i)})()}evaluateLoginResult(t){if(this.loginInProgress=!1,t&&t.success)this.loginService.updateConfigCredentials(this.credentials),this.routerService.navigate(["/accessories",{waitForAccessories:!0}]);else{if(t&&t.failReason&&t.failReason===An.TFA)return void(this.loginStep=S3.TFA);if(t&&t.failReason&&t.failReason===An.CAPTCHA&&t.data&&t.data.id&&t.data.captcha)return this.loginStep=S3.CAPTCHA,this.captchaId=t.data.id,void(this.captchaImageData=t.data.captcha);this.loginStep=S3.LOGIN,this.loginFailed=!0}}inputIsInvalid(){this.emailIsValid=!0,this.passwordIsValid=!0,this.otpIsValid=!0;let t=!1;return this.loginStep===S3.LOGIN&&this.credentials.username.length<4&&(this.emailIsValid=!1,t=!0),this.loginStep===S3.LOGIN&&this.credentials.password.length<4&&(this.passwordIsValid=!1,t=!0),this.loginStep===S3.TFA&&this.otp.length<6&&(this.otpIsValid=!1,t=!0),this.loginStep===S3.CAPTCHA&&this.captcha.length<4&&(this.captchaIsValid=!1,t=!0),t}resetLoginFailed(){this.loginFailed=!1}cancelLogin(){this.routerService.navigate(["/accessories"])}}return e.\u0275fac=function(t){return new(t||e)(L(ff2),L(X1))},e.\u0275cmp=o2({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(t,i){1&t&&(It(),p(0,"svg",0)(1,"symbol",1),I(2,"path",2),m(),p(3,"symbol",3),I(4,"path",4),m()(),O(5,Cf2,4,0,"ng-template",null,5,F3),Ot(),p(7,"div",6),O(8,df2,6,1,"p",7),p(9,"div",8),O(10,_f2,33,19,"div",9),O(11,bf2,18,7,"div",9),O(12,Hf2,20,8,"div",9),m()()),2&t&&(_(8),b("ngIf",i.loginFailed),_(2),b("ngIf",1===i.loginStep),_(1),b("ngIf",2===i.loginStep),_(1),b("ngIf",3===i.loginStep))},directives:[B1,qp,vU,Ne,M1,h1,v7,VU,ie,rt,ot,st],encapsulation:2}),e})(),Df2=(()=>{class e extends y1{constructor(t){super(t),this.value=[]}ngOnInit(){this.readValue()}readValue(){var t=this;return L2(function*(){var i;const r=yield t.getStationConfig((null===(i=t.accessory)||void 0===i?void 0:i.uniqueId)||"");r&&Array.isArray(r.manualTriggerModes)&&(t.value=r.manualTriggerModes)})()}toggle(t){-1!==this.value.indexOf(t)?this.value=this.value.filter(i=>i!==t):this.value.push(t)}update(){this.updateConfig({manualTriggerModes:this.value},this.accessory)}}return e.\u0275fac=function(t){return new(t||e)(L(X2))},e.\u0275cmp=o2({type:e,selectors:[["app-manual-alarm-modes"]],inputs:{accessory:"accessory"},features:[J],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(t,i){1&t&&(p(0,"div",0)(1,"span",1),M(2,"Manual Alarm Trigger Modes"),m(),p(3,"div",2)(4,"span"),M(5,"HomeKit Home"),m(),p(6,"div",3)(7,"input",4),A("change",function(){return i.toggle(0),i.update()}),m()()(),p(8,"div",2)(9,"span"),M(10,"HomeKit Away"),m(),p(11,"div",3)(12,"input",4),A("change",function(){return i.toggle(1),i.update()}),m()()(),p(13,"div",2)(14,"span"),M(15,"HomeKit Night"),m(),p(16,"div",3)(17,"input",4),A("change",function(){return i.toggle(2),i.update()}),m()()(),p(18,"div",2)(19,"span"),M(20,"HomeKit Off/Disarmed"),m(),p(21,"div",3)(22,"input",4),A("change",function(){return i.toggle(3),i.update()}),m()()(),p(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."),I(26,"p"),M(27," In order to do so, you must specify in which station mode the alarm can be triggered. "),I(28,"p"),M(29," Please be aware that this setting can only be set on a per station basis and not per automation."),I(30,"br"),M(31," By default the alarm cause will be shown as 'motion detected' in the eufy app. "),I(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."),I(34,"br"),M(35," The native alarm delay setting is currently not supported. "),m()()()),2&t&&(_(7),j("checked",-1!==i.value.indexOf(0)||null),_(5),j("checked",-1!==i.value.indexOf(1)||null),_(5),j("checked",-1!==i.value.indexOf(2)||null),_(5),j("checked",-1!==i.value.indexOf(3)||null))},encapsulation:2}),e})();function Sf2(e,n){if(1&e&&(p(0,"div",2)(1,"div",3)(2,"b"),M(3,"Station Settings"),m(),M(4," for "),p(5,"i"),M(6),m()(),p(7,"div",4),I(8,"app-ignore-accessory",5)(9,"hr")(10,"app-manual-alarm-modes",5),m()()),2&e){const t=E();_(6),g6("",t.accessory.displayName," (",t.accessory.uniqueId,")"),_(2),b("accessory",t.accessory),_(2),b("accessory",t.accessory)}}function zf2(e,n){if(1&e){const t=H1();p(0,"p",7)(1,"ngb-alert",8),A("closed",function(){return W(t),E().failed=!1}),It(),p(2,"svg",9),I(3,"use",10),m(),Ot(),p(4,"strong"),M(5,"Reset was not successful!"),m()()()}2&e&&(_(1),b("dismissible",!0))}const xf2=[{path:"",redirectTo:"/accessories",pathMatch:"full"},{path:"accessories",component:nu2},{path:"advancedConfig",component:wu2},{path:"cameraConfig/:uniqueId",component:lf2},{path:"stationConfig/:uniqueId",component:(()=>{class e{constructor(t,i){this.pluginService=t,this.route=i}ngOnInit(){const t=this.route.snapshot.paramMap.get("uniqueId");this.accessory=this.pluginService.getStation(t)}}return e.\u0275fac=function(t){return new(t||e)(L(X2),L(de))},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"a",0),M(1,"Back to Devices List"),m(),O(2,Sf2,11,4,"div",1)),2&t&&(_(2),b("ngIf",i.accessory))},directives:[he,B1,vw,Df2],encapsulation:2}),e})()},{path:"login",component:wf2},{path:"reset",component:(()=>{class e{constructor(t,i){this.routerService=t,this.pluginService=i,this.disabled=!1,this.failed=!1}cancel(){this.routerService.navigateByUrl("/accessories")}resetEverything(){var t=this;return L2(function*(){t.disabled=!0;try{const i=yield window.homebridge.request("/reset");t.failed=1!==i.result}catch(i){t.failed=!0}t.disabled=!1,t.failed||(yield t.pluginService.updateConfig({},!0),window.homebridge.closeSettings())})()}}return e.\u0275fac=function(t){return new(t||e)(L(X1),L(X2))},e.\u0275cmp=o2({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(t,i){1&t&&(p(0,"div",0),O(1,zf2,6,1,"p",1),p(2,"div",2)(3,"h3",3),M(4,"Are you sure that you want to erase everything?"),m(),p(5,"div",4)(6,"button",5),A("click",function(){return i.cancel()}),M(7,"No"),m(),p(8,"button",6),A("click",function(){return i.resetEverything()}),M(9,"Do it!"),m()()()()),2&t&&(_(1),b("ngIf",i.failed),_(5),j("disabled",!!i.disabled||null),_(2),j("disabled",!!i.disabled||null))},directives:[B1,qp],encapsulation:2}),e})()},{path:"**",redirectTo:"/accessories"}];let Ef2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e}),e.\u0275inj=E2({imports:[[$v.forRoot(xf2,{scrollPositionRestoration:"enabled"})],$v]}),e})(),Af2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A2({type:e,bootstrap:[xW]}),e.\u0275inj=E2({providers:[{provide:it,useClass:Rd}],imports:[[nO,vp,DU,Ef2,yG]]}),e})();(function FT(){Ld=!1})(),eO().bootstrapModule(Af2).catch(e=>console.error(e))},343:(Dt,N3)=>{"use strict";N3.byteLength=function t1(n2){var _2=x2(n2),u1=_2[1];return 3*(_2[0]+u1)/4-u1},N3.toByteArray=function z1(n2){var _2,a3,B2=x2(n2),u1=B2[0],g1=B2[1],q2=new n3(function x(n2,_2,B2){return 3*(_2+B2)/4-B2}(0,u1,g1)),r3=0,W3=g1>0?u1-4:u1;for(a3=0;a3<W3;a3+=4)_2=K[n2.charCodeAt(a3)]<<18|K[n2.charCodeAt(a3+1)]<<12|K[n2.charCodeAt(a3+2)]<<6|K[n2.charCodeAt(a3+3)],q2[r3++]=_2>>16&255,q2[r3++]=_2>>8&255,q2[r3++]=255&_2;return 2===g1&&(_2=K[n2.charCodeAt(a3)]<<2|K[n2.charCodeAt(a3+1)]>>4,q2[r3++]=255&_2),1===g1&&(_2=K[n2.charCodeAt(a3)]<<10|K[n2.charCodeAt(a3+1)]<<4|K[n2.charCodeAt(a3+2)]>>2,q2[r3++]=_2>>8&255,q2[r3++]=255&_2),q2},N3.fromByteArray=function I1(n2){for(var _2,B2=n2.length,u1=B2%3,g1=[],r3=0,W3=B2-u1;r3<W3;r3+=16383)g1.push(x1(n2,r3,r3+16383>W3?W3:r3+16383));return 1===u1?g1.push(r1[(_2=n2[B2-1])>>2]+r1[_2<<4&63]+"=="):2===u1&&g1.push(r1[(_2=(n2[B2-2]<<8)+n2[B2-1])>>10]+r1[_2>>4&63]+r1[_2<<2&63]+"="),g1.join("")};for(var r1=[],K=[],n3="undefined"!=typeof Uint8Array?Uint8Array:Array,p1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W2=0,H2=p1.length;W2<H2;++W2)r1[W2]=p1[W2],K[p1.charCodeAt(W2)]=W2;function x2(n2){var _2=n2.length;if(_2%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var B2=n2.indexOf("=");return-1===B2&&(B2=_2),[B2,B2===_2?0:4-B2%4]}function n1(n2){return r1[n2>>18&63]+r1[n2>>12&63]+r1[n2>>6&63]+r1[63&n2]}function x1(n2,_2,B2){for(var g1=[],q2=_2;q2<B2;q2+=3)g1.push(n1((n2[q2]<<16&16711680)+(n2[q2+1]<<8&65280)+(255&n2[q2+2])));return g1.join("")}K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63},172:(Dt,N3,r1)=>{"use strict";var n3=r1(343),p1=r1(461),W2="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;N3.lW=x,N3.h2=50;var H2=2147483647;function t1(v){if(v>H2)throw new RangeError('The value "'+v+'" is invalid for option "size"');var C=new Uint8Array(v);return Object.setPrototypeOf(C,x.prototype),C}function x(v,C,d){if("number"==typeof v){if("string"==typeof C)throw new TypeError('The "string" argument must be of type string. Received type number');return I1(v)}return z1(v,C,d)}function z1(v,C,d){if("string"==typeof v)return function n2(v,C){if(("string"!=typeof C||""===C)&&(C="utf8"),!x.isEncoding(C))throw new TypeError("Unknown encoding: "+C);var d=0|W3(v,C),y=t1(d),D=y.write(v,C);return D!==d&&(y=y.slice(0,D)),y}(v,C);if(ArrayBuffer.isView(v))return function B2(v){if(s4(v,Uint8Array)){var C=new Uint8Array(v);return u1(C.buffer,C.byteOffset,C.byteLength)}return _2(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(s4(v,ArrayBuffer)||v&&s4(v.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(s4(v,SharedArrayBuffer)||v&&s4(v.buffer,SharedArrayBuffer)))return u1(v,C,d);if("number"==typeof v)throw new TypeError('The "value" argument must not be of type number. Received type number');var y=v.valueOf&&v.valueOf();if(null!=y&&y!==v)return x.from(y,C,d);var D=function g1(v){if(x.isBuffer(v)){var C=0|q2(v.length),d=t1(C);return 0===d.length||v.copy(d,0,0,C),d}return void 0!==v.length?"number"!=typeof v.length||Pn(v.length)?t1(0):_2(v):"Buffer"===v.type&&Array.isArray(v.data)?_2(v.data):void 0}(v);if(D)return D;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof v[Symbol.toPrimitive])return x.from(v[Symbol.toPrimitive]("string"),C,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}function n1(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 I1(v){return n1(v),t1(v<0?0:0|q2(v))}function _2(v){for(var C=v.length<0?0:0|q2(v.length),d=t1(C),y=0;y<C;y+=1)d[y]=255&v[y];return d}function u1(v,C,d){if(C<0||v.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<C+(d||0))throw new RangeError('"length" is outside of buffer bounds');var y;return y=void 0===C&&void 0===d?new Uint8Array(v):void 0===d?new Uint8Array(v,C):new Uint8Array(v,C,d),Object.setPrototypeOf(y,x.prototype),y}function q2(v){if(v>=H2)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H2.toString(16)+" bytes");return 0|v}function W3(v,C){if(x.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||s4(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);var d=v.length,y=arguments.length>2&&!0===arguments[2];if(!y&&0===d)return 0;for(var D=!1;;)switch(C){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ue(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*d;case"hex":return d>>>1;case"base64":return Ri(v).length;default:if(D)return y?-1:Ue(v).length;C=(""+C).toLowerCase(),D=!0}}function a3(v,C,d){var y=!1;if((void 0===C||C<0)&&(C=0),C>this.length||((void 0===d||d>this.length)&&(d=this.length),d<=0)||(d>>>=0)<=(C>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return ki(this,C,d);case"utf8":case"utf-8":return Ai(this,C,d);case"ascii":return On(this,C,d);case"latin1":case"binary":return Ti(this,C,d);case"base64":return o4(this,C,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ii(this,C,d);default:if(y)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),y=!0}}function a4(v,C,d){var y=v[C];v[C]=v[d],v[d]=y}function In(v,C,d,y,D){if(0===v.length)return-1;if("string"==typeof d?(y=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),Pn(d=+d)&&(d=D?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(D)return-1;d=v.length-1}else if(d<0){if(!D)return-1;d=0}if("string"==typeof C&&(C=x.from(C,y)),x.isBuffer(C))return 0===C.length?-1:Be(v,C,d,y,D);if("number"==typeof C)return C&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(v,C,d):Uint8Array.prototype.lastIndexOf.call(v,C,d):Be(v,[C],d,y,D);throw new TypeError("val must be string, number or Buffer")}function Be(v,C,d,y,D){var K2,R=1,P=v.length,D2=C.length;if(void 0!==y&&("ucs2"===(y=String(y).toLowerCase())||"ucs-2"===y||"utf16le"===y||"utf-16le"===y)){if(v.length<2||C.length<2)return-1;R=2,P/=2,D2/=2,d/=2}function w2(Fn,Fi){return 1===R?Fn[Fi]:Fn.readUInt16BE(Fi*R)}if(D){var K1=-1;for(K2=d;K2<P;K2++)if(w2(v,K2)===w2(C,-1===K1?0:K2-K1)){if(-1===K1&&(K1=K2),K2-K1+1===D2)return K1*R}else-1!==K1&&(K2-=K2-K1),K1=-1}else for(d+D2>P&&(d=P-D2),K2=d;K2>=0;K2--){for(var o1=!0,Y6=0;Y6<D2;Y6++)if(w2(v,K2+Y6)!==w2(C,Y6)){o1=!1;break}if(o1)return K2}return-1}function St(v,C,d,y){d=Number(d)||0;var D=v.length-d;y?(y=Number(y))>D&&(y=D):y=D;var R=C.length;y>R/2&&(y=R/2);for(var P=0;P<y;++P){var D2=parseInt(C.substr(2*P,2),16);if(Pn(D2))return P;v[d+P]=D2}return P}function xi(v,C,d,y){return K6(Ue(C,v.length-d),v,d,y)}function G6(v,C,d,y){return K6(function U9(v){for(var C=[],d=0;d<v.length;++d)C.push(255&v.charCodeAt(d));return C}(C),v,d,y)}function Ei(v,C,d,y){return K6(Ri(C),v,d,y)}function $6(v,C,d,y){return K6(function Rn(v,C){for(var d,y,R=[],P=0;P<v.length&&!((C-=2)<0);++P)y=(d=v.charCodeAt(P))>>8,R.push(d%256),R.push(y);return R}(C,v.length-d),v,d,y)}function o4(v,C,d){return n3.fromByteArray(0===C&&d===v.length?v:v.slice(C,d))}function Ai(v,C,d){d=Math.min(v.length,d);for(var y=[],D=C;D<d;){var w2,K2,K1,o1,R=v[D],P=null,D2=R>239?4:R>223?3:R>191?2:1;if(D+D2<=d)switch(D2){case 1:R<128&&(P=R);break;case 2:128==(192&(w2=v[D+1]))&&(o1=(31&R)<<6|63&w2)>127&&(P=o1);break;case 3:K2=v[D+2],128==(192&(w2=v[D+1]))&&128==(192&K2)&&(o1=(15&R)<<12|(63&w2)<<6|63&K2)>2047&&(o1<55296||o1>57343)&&(P=o1);break;case 4:K2=v[D+2],K1=v[D+3],128==(192&(w2=v[D+1]))&&128==(192&K2)&&128==(192&K1)&&(o1=(15&R)<<18|(63&w2)<<12|(63&K2)<<6|63&K1)>65535&&o1<1114112&&(P=o1)}null===P?(P=65533,D2=1):P>65535&&(y.push((P-=65536)>>>10&1023|55296),P=56320|1023&P),y.push(P),D+=D2}return function k2(v){var C=v.length;if(C<=4096)return String.fromCharCode.apply(String,v);for(var d="",y=0;y<C;)d+=String.fromCharCode.apply(String,v.slice(y,y+=4096));return d}(y)}function On(v,C,d){var y="";d=Math.min(v.length,d);for(var D=C;D<d;++D)y+=String.fromCharCode(127&v[D]);return y}function Ti(v,C,d){var y="";d=Math.min(v.length,d);for(var D=C;D<d;++D)y+=String.fromCharCode(v[D]);return y}function ki(v,C,d){var y=v.length;(!C||C<0)&&(C=0),(!d||d<0||d>y)&&(d=y);for(var D="",R=C;R<d;++R)D+=Pi[v[R]];return D}function Ii(v,C,d){for(var y=v.slice(C,d),D="",R=0;R<y.length-1;R+=2)D+=String.fromCharCode(y[R]+256*y[R+1]);return D}function C2(v,C,d){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+C>d)throw new RangeError("Trying to access beyond buffer length")}function q1(v,C,d,y,D,R){if(!x.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>D||C<R)throw new RangeError('"value" argument is out of bounds');if(d+y>v.length)throw new RangeError("Index out of range")}function q6(v,C,d,y,D,R){if(d+y>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function a1(v,C,d,y,D){return C=+C,d>>>=0,D||q6(v,0,d,4),p1.write(v,C,d,y,23,4),d+4}function O2(v,C,d,y,D){return C=+C,d>>>=0,D||q6(v,0,d,8),p1.write(v,C,d,y,52,8),d+8}!(x.TYPED_ARRAY_SUPPORT=function x2(){try{var v=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(v,C),42===v.foo()}catch(d){return!1}}())&&"undefined"!=typeof console&&"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(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}}),x.poolSize=8192,x.from=function(v,C,d){return z1(v,C,d)},Object.setPrototypeOf(x.prototype,Uint8Array.prototype),Object.setPrototypeOf(x,Uint8Array),x.alloc=function(v,C,d){return function x1(v,C,d){return n1(v),v<=0?t1(v):void 0!==C?"string"==typeof d?t1(v).fill(C,d):t1(v).fill(C):t1(v)}(v,C,d)},x.allocUnsafe=function(v){return I1(v)},x.allocUnsafeSlow=function(v){return I1(v)},x.isBuffer=function(C){return null!=C&&!0===C._isBuffer&&C!==x.prototype},x.compare=function(C,d){if(s4(C,Uint8Array)&&(C=x.from(C,C.offset,C.byteLength)),s4(d,Uint8Array)&&(d=x.from(d,d.offset,d.byteLength)),!x.isBuffer(C)||!x.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===d)return 0;for(var y=C.length,D=d.length,R=0,P=Math.min(y,D);R<P;++R)if(C[R]!==d[R]){y=C[R],D=d[R];break}return y<D?-1:D<y?1:0},x.isEncoding=function(C){switch(String(C).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}},x.concat=function(C,d){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(0===C.length)return x.alloc(0);var y;if(void 0===d)for(d=0,y=0;y<C.length;++y)d+=C[y].length;var D=x.allocUnsafe(d),R=0;for(y=0;y<C.length;++y){var P=C[y];if(s4(P,Uint8Array))R+P.length>D.length?x.from(P).copy(D,R):Uint8Array.prototype.set.call(D,P,R);else{if(!x.isBuffer(P))throw new TypeError('"list" argument must be an Array of Buffers');P.copy(D,R)}R+=P.length}return D},x.byteLength=W3,x.prototype._isBuffer=!0,x.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<C;d+=2)a4(this,d,d+1);return this},x.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<C;d+=4)a4(this,d,d+3),a4(this,d+1,d+2);return this},x.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<C;d+=8)a4(this,d,d+7),a4(this,d+1,d+6),a4(this,d+2,d+5),a4(this,d+3,d+4);return this},x.prototype.toLocaleString=x.prototype.toString=function(){var C=this.length;return 0===C?"":0===arguments.length?Ai(this,0,C):a3.apply(this,arguments)},x.prototype.equals=function(C){if(!x.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||0===x.compare(this,C)},x.prototype.inspect=function(){var C="",d=N3.h2;return C=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(C+=" ... "),"<Buffer "+C+">"},W2&&(x.prototype[W2]=x.prototype.inspect),x.prototype.compare=function(C,d,y,D,R){if(s4(C,Uint8Array)&&(C=x.from(C,C.offset,C.byteLength)),!x.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(void 0===d&&(d=0),void 0===y&&(y=C?C.length:0),void 0===D&&(D=0),void 0===R&&(R=this.length),d<0||y>C.length||D<0||R>this.length)throw new RangeError("out of range index");if(D>=R&&d>=y)return 0;if(D>=R)return-1;if(d>=y)return 1;if(this===C)return 0;for(var P=(R>>>=0)-(D>>>=0),D2=(y>>>=0)-(d>>>=0),w2=Math.min(P,D2),K2=this.slice(D,R),K1=C.slice(d,y),o1=0;o1<w2;++o1)if(K2[o1]!==K1[o1]){P=K2[o1],D2=K1[o1];break}return P<D2?-1:D2<P?1:0},x.prototype.includes=function(C,d,y){return-1!==this.indexOf(C,d,y)},x.prototype.indexOf=function(C,d,y){return In(this,C,d,y,!0)},x.prototype.lastIndexOf=function(C,d,y){return In(this,C,d,y,!1)},x.prototype.write=function(C,d,y,D){if(void 0===d)D="utf8",y=this.length,d=0;else if(void 0===y&&"string"==typeof d)D=d,y=this.length,d=0;else{if(!isFinite(d))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");d>>>=0,isFinite(y)?(y>>>=0,void 0===D&&(D="utf8")):(D=y,y=void 0)}var R=this.length-d;if((void 0===y||y>R)&&(y=R),C.length>0&&(y<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var P=!1;;)switch(D){case"hex":return St(this,C,d,y);case"utf8":case"utf-8":return xi(this,C,d,y);case"ascii":case"latin1":case"binary":return G6(this,C,d,y);case"base64":return Ei(this,C,d,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $6(this,C,d,y);default:if(P)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),P=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},x.prototype.slice=function(C,d){var y=this.length;(C=~~C)<0?(C+=y)<0&&(C=0):C>y&&(C=y),(d=void 0===d?y:~~d)<0?(d+=y)<0&&(d=0):d>y&&(d=y),d<C&&(d=C);var D=this.subarray(C,d);return Object.setPrototypeOf(D,x.prototype),D},x.prototype.readUintLE=x.prototype.readUIntLE=function(C,d,y){C>>>=0,d>>>=0,y||C2(C,d,this.length);for(var D=this[C],R=1,P=0;++P<d&&(R*=256);)D+=this[C+P]*R;return D},x.prototype.readUintBE=x.prototype.readUIntBE=function(C,d,y){C>>>=0,d>>>=0,y||C2(C,d,this.length);for(var D=this[C+--d],R=1;d>0&&(R*=256);)D+=this[C+--d]*R;return D},x.prototype.readUint8=x.prototype.readUInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),this[C]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]|this[C+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(C,d){return C>>>=0,d||C2(C,2,this.length),this[C]<<8|this[C+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},x.prototype.readIntLE=function(C,d,y){C>>>=0,d>>>=0,y||C2(C,d,this.length);for(var D=this[C],R=1,P=0;++P<d&&(R*=256);)D+=this[C+P]*R;return D>=(R*=128)&&(D-=Math.pow(2,8*d)),D},x.prototype.readIntBE=function(C,d,y){C>>>=0,d>>>=0,y||C2(C,d,this.length);for(var D=d,R=1,P=this[C+--D];D>0&&(R*=256);)P+=this[C+--D]*R;return P>=(R*=128)&&(P-=Math.pow(2,8*d)),P},x.prototype.readInt8=function(C,d){return C>>>=0,d||C2(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},x.prototype.readInt16LE=function(C,d){C>>>=0,d||C2(C,2,this.length);var y=this[C]|this[C+1]<<8;return 32768&y?4294901760|y:y},x.prototype.readInt16BE=function(C,d){C>>>=0,d||C2(C,2,this.length);var y=this[C+1]|this[C]<<8;return 32768&y?4294901760|y:y},x.prototype.readInt32LE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},x.prototype.readInt32BE=function(C,d){return C>>>=0,d||C2(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},x.prototype.readFloatLE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!0,23,4)},x.prototype.readFloatBE=function(C,d){return C>>>=0,d||C2(C,4,this.length),p1.read(this,C,!1,23,4)},x.prototype.readDoubleLE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!0,52,8)},x.prototype.readDoubleBE=function(C,d){return C>>>=0,d||C2(C,8,this.length),p1.read(this,C,!1,52,8)},x.prototype.writeUintLE=x.prototype.writeUIntLE=function(C,d,y,D){C=+C,d>>>=0,y>>>=0,D||q1(this,C,d,y,Math.pow(2,8*y)-1,0);var P=1,D2=0;for(this[d]=255&C;++D2<y&&(P*=256);)this[d+D2]=C/P&255;return d+y},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(C,d,y,D){C=+C,d>>>=0,y>>>=0,D||q1(this,C,d,y,Math.pow(2,8*y)-1,0);var P=y-1,D2=1;for(this[d+P]=255&C;--P>=0&&(D2*=256);)this[d+P]=C/D2&255;return d+y},x.prototype.writeUint8=x.prototype.writeUInt8=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,1,255,0),this[d]=255&C,d+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,2,65535,0),this[d]=255&C,this[d+1]=C>>>8,d+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,2,65535,0),this[d]=C>>>8,this[d+1]=255&C,d+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,4,4294967295,0),this[d+3]=C>>>24,this[d+2]=C>>>16,this[d+1]=C>>>8,this[d]=255&C,d+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,4,4294967295,0),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},x.prototype.writeIntLE=function(C,d,y,D){if(C=+C,d>>>=0,!D){var R=Math.pow(2,8*y-1);q1(this,C,d,y,R-1,-R)}var P=0,D2=1,w2=0;for(this[d]=255&C;++P<y&&(D2*=256);)C<0&&0===w2&&0!==this[d+P-1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+y},x.prototype.writeIntBE=function(C,d,y,D){if(C=+C,d>>>=0,!D){var R=Math.pow(2,8*y-1);q1(this,C,d,y,R-1,-R)}var P=y-1,D2=1,w2=0;for(this[d+P]=255&C;--P>=0&&(D2*=256);)C<0&&0===w2&&0!==this[d+P+1]&&(w2=1),this[d+P]=(C/D2>>0)-w2&255;return d+y},x.prototype.writeInt8=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,1,127,-128),C<0&&(C=255+C+1),this[d]=255&C,d+1},x.prototype.writeInt16LE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,2,32767,-32768),this[d]=255&C,this[d+1]=C>>>8,d+2},x.prototype.writeInt16BE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,2,32767,-32768),this[d]=C>>>8,this[d+1]=255&C,d+2},x.prototype.writeInt32LE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,4,2147483647,-2147483648),this[d]=255&C,this[d+1]=C>>>8,this[d+2]=C>>>16,this[d+3]=C>>>24,d+4},x.prototype.writeInt32BE=function(C,d,y){return C=+C,d>>>=0,y||q1(this,C,d,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[d]=C>>>24,this[d+1]=C>>>16,this[d+2]=C>>>8,this[d+3]=255&C,d+4},x.prototype.writeFloatLE=function(C,d,y){return a1(this,C,d,!0,y)},x.prototype.writeFloatBE=function(C,d,y){return a1(this,C,d,!1,y)},x.prototype.writeDoubleLE=function(C,d,y){return O2(this,C,d,!0,y)},x.prototype.writeDoubleBE=function(C,d,y){return O2(this,C,d,!1,y)},x.prototype.copy=function(C,d,y,D){if(!x.isBuffer(C))throw new TypeError("argument should be a Buffer");if(y||(y=0),!D&&0!==D&&(D=this.length),d>=C.length&&(d=C.length),d||(d=0),D>0&&D<y&&(D=y),D===y||0===C.length||0===this.length)return 0;if(d<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),C.length-d<D-y&&(D=C.length-d+y);var R=D-y;return this===C&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(d,y,D):Uint8Array.prototype.set.call(C,this.subarray(y,D),d),R},x.prototype.fill=function(C,d,y,D){if("string"==typeof C){if("string"==typeof d?(D=d,d=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&&!x.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===C.length){var R=C.charCodeAt(0);("utf8"===D&&R<128||"latin1"===D)&&(C=R)}}else"number"==typeof C?C&=255:"boolean"==typeof C&&(C=Number(C));if(d<0||this.length<d||this.length<y)throw new RangeError("Out of range index");if(y<=d)return this;var P;if(d>>>=0,y=void 0===y?this.length:y>>>0,C||(C=0),"number"==typeof C)for(P=d;P<y;++P)this[P]=C;else{var D2=x.isBuffer(C)?C:x.from(C,D),w2=D2.length;if(0===w2)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(P=0;P<y-d;++P)this[P+d]=D2[P%w2]}return this};var Oi=/[^+/0-9A-Za-z-_]/g;function Ue(v,C){C=C||1/0;for(var d,y=v.length,D=null,R=[],P=0;P<y;++P){if((d=v.charCodeAt(P))>55295&&d<57344){if(!D){if(d>56319){(C-=3)>-1&&R.push(239,191,189);continue}if(P+1===y){(C-=3)>-1&&R.push(239,191,189);continue}D=d;continue}if(d<56320){(C-=3)>-1&&R.push(239,191,189),D=d;continue}d=65536+(D-55296<<10|d-56320)}else D&&(C-=3)>-1&&R.push(239,191,189);if(D=null,d<128){if((C-=1)<0)break;R.push(d)}else if(d<2048){if((C-=2)<0)break;R.push(d>>6|192,63&d|128)}else if(d<65536){if((C-=3)<0)break;R.push(d>>12|224,d>>6&63|128,63&d|128)}else{if(!(d<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;R.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}}return R}function Ri(v){return n3.toByteArray(function m2(v){if((v=(v=v.split("=")[0]).trim().replace(Oi,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function K6(v,C,d,y){for(var D=0;D<y&&!(D+d>=C.length||D>=v.length);++D)C[D+d]=v[D];return D}function s4(v,C){return v instanceof C||null!=v&&null!=v.constructor&&null!=v.constructor.name&&v.constructor.name===C.name}function Pn(v){return v!=v}var Pi=function(){for(var v="0123456789abcdef",C=new Array(256),d=0;d<16;++d)for(var y=16*d,D=0;D<16;++D)C[y+D]=v[d]+v[D];return C}()},461:(Dt,N3)=>{N3.read=function(r1,K,n3,p1,W2){var H2,x2,t1=8*W2-p1-1,x=(1<<t1)-1,z1=x>>1,n1=-7,x1=n3?W2-1:0,I1=n3?-1:1,n2=r1[K+x1];for(x1+=I1,H2=n2&(1<<-n1)-1,n2>>=-n1,n1+=t1;n1>0;H2=256*H2+r1[K+x1],x1+=I1,n1-=8);for(x2=H2&(1<<-n1)-1,H2>>=-n1,n1+=p1;n1>0;x2=256*x2+r1[K+x1],x1+=I1,n1-=8);if(0===H2)H2=1-z1;else{if(H2===x)return x2?NaN:1/0*(n2?-1:1);x2+=Math.pow(2,p1),H2-=z1}return(n2?-1:1)*x2*Math.pow(2,H2-p1)},N3.write=function(r1,K,n3,p1,W2,H2){var x2,t1,x,z1=8*H2-W2-1,n1=(1<<z1)-1,x1=n1>>1,I1=23===W2?Math.pow(2,-24)-Math.pow(2,-77):0,n2=p1?0:H2-1,_2=p1?1:-1,B2=K<0||0===K&&1/K<0?1:0;for(K=Math.abs(K),isNaN(K)||K===1/0?(t1=isNaN(K)?1:0,x2=n1):(x2=Math.floor(Math.log(K)/Math.LN2),K*(x=Math.pow(2,-x2))<1&&(x2--,x*=2),(K+=x2+x1>=1?I1/x:I1*Math.pow(2,1-x1))*x>=2&&(x2++,x/=2),x2+x1>=n1?(t1=0,x2=n1):x2+x1>=1?(t1=(K*x-1)*Math.pow(2,W2),x2+=x1):(t1=K*Math.pow(2,x1-1)*Math.pow(2,W2),x2=0));W2>=8;r1[n3+n2]=255&t1,n2+=_2,t1/=256,W2-=8);for(x2=x2<<W2|t1,z1+=W2;z1>0;r1[n3+n2]=255&x2,n2+=_2,x2/=256,z1-=8);r1[n3+n2-_2]|=128*B2}}},Dt=>{Dt(Dt.s=623)}]);